@vitest/browser 0.24.2 → 0.24.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,33 @@
1
+ (function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))o(a);new MutationObserver(a=>{for(const u of a)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(a){const u={};return a.integrity&&(u.integrity=a.integrity),a.referrerpolicy&&(u.referrerPolicy=a.referrerpolicy),a.crossorigin==="use-credentials"?u.credentials="include":a.crossorigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function o(a){if(a.ep)return;a.ep=!0;const u=r(a);fetch(a.href,u)}})();function wf(t,n){const r=Object.create(null),o=t.split(",");for(let a=0;a<o.length;a++)r[o[a]]=!0;return n?a=>!!r[a.toLowerCase()]:a=>!!r[a]}const Qw="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Jw=wf(Qw);function zv(t){return!!t||t===""}function kn(t){if(Ht(t)){const n={};for(let r=0;r<t.length;r++){const o=t[r],a=Ue(o)?nx(o):kn(o);if(a)for(const u in a)n[u]=a[u]}return n}else{if(Ue(t))return t;if(xe(t))return t}}const tx=/;(?![^(]*\))/g,ex=/:(.+)/;function nx(t){const n={};return t.split(tx).forEach(r=>{if(r){const o=r.split(ex);o.length>1&&(n[o[0].trim()]=o[1].trim())}}),n}function ge(t){let n="";if(Ue(t))n=t;else if(Ht(t))for(let r=0;r<t.length;r++){const o=ge(t[r]);o&&(n+=o+" ")}else if(xe(t))for(const r in t)t[r]&&(n+=r+" ");return n.trim()}const Zt=t=>Ue(t)?t:t==null?"":Ht(t)||xe(t)&&(t.toString===Hv||!Wt(t.toString))?JSON.stringify(t,Iv,2):String(t),Iv=(t,n)=>n&&n.__v_isRef?Iv(t,n.value):To(n)?{[`Map(${n.size})`]:[...n.entries()].reduce((r,[o,a])=>(r[`${o} =>`]=a,r),{})}:Fv(n)?{[`Set(${n.size})`]:[...n.values()]}:xe(n)&&!Ht(n)&&!Bv(n)?String(n):n,me={},Co=[],Vn=()=>{},rx=()=>!1,ix=/^on[^a-z]/,Ka=t=>ix.test(t),xf=t=>t.startsWith("onUpdate:"),Xe=Object.assign,_f=(t,n)=>{const r=t.indexOf(n);r>-1&&t.splice(r,1)},ox=Object.prototype.hasOwnProperty,Jt=(t,n)=>ox.call(t,n),Ht=Array.isArray,To=t=>Xa(t)==="[object Map]",Fv=t=>Xa(t)==="[object Set]",Wt=t=>typeof t=="function",Ue=t=>typeof t=="string",Sf=t=>typeof t=="symbol",xe=t=>t!==null&&typeof t=="object",qv=t=>xe(t)&&Wt(t.then)&&Wt(t.catch),Hv=Object.prototype.toString,Xa=t=>Hv.call(t),sx=t=>Xa(t).slice(8,-1),Bv=t=>Xa(t)==="[object Object]",kf=t=>Ue(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,ua=wf(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ya=t=>{const n=Object.create(null);return r=>n[r]||(n[r]=t(r))},lx=/-(\w)/g,fr=Ya(t=>t.replace(lx,(n,r)=>r?r.toUpperCase():"")),ax=/\B([A-Z])/g,Xi=Ya(t=>t.replace(ax,"-$1").toLowerCase()),Za=Ya(t=>t.charAt(0).toUpperCase()+t.slice(1)),pu=Ya(t=>t?`on${Za(t)}`:""),Ws=(t,n)=>!Object.is(t,n),fa=(t,n)=>{for(let r=0;r<t.length;r++)t[r](n)},Sa=(t,n,r)=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value:r})},Us=t=>{const n=parseFloat(t);return isNaN(n)?t:n};let bp;const cx=()=>bp||(bp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Mn;class ux{constructor(n=!1){this.active=!0,this.effects=[],this.cleanups=[],!n&&Mn&&(this.parent=Mn,this.index=(Mn.scopes||(Mn.scopes=[])).push(this)-1)}run(n){if(this.active){const r=Mn;try{return Mn=this,n()}finally{Mn=r}}}on(){Mn=this}off(){Mn=this.parent}stop(n){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.parent&&!n){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.active=!1}}}function fx(t,n=Mn){n&&n.active&&n.effects.push(t)}function hx(){return Mn}function dx(t){Mn&&Mn.cleanups.push(t)}const Cf=t=>{const n=new Set(t);return n.w=0,n.n=0,n},Wv=t=>(t.w&di)>0,Uv=t=>(t.n&di)>0,px=({deps:t})=>{if(t.length)for(let n=0;n<t.length;n++)t[n].w|=di},gx=t=>{const{deps:n}=t;if(n.length){let r=0;for(let o=0;o<n.length;o++){const a=n[o];Wv(a)&&!Uv(a)?a.delete(t):n[r++]=a,a.w&=~di,a.n&=~di}n.length=r}},Nu=new WeakMap;let $s=0,di=1;const Pu=30;let jn;const Hi=Symbol(""),Ou=Symbol("");class Tf{constructor(n,r=null,o){this.fn=n,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,fx(this,o)}run(){if(!this.active)return this.fn();let n=jn,r=ci;for(;n;){if(n===this)return;n=n.parent}try{return this.parent=jn,jn=this,ci=!0,di=1<<++$s,$s<=Pu?px(this):wp(this),this.fn()}finally{$s<=Pu&&gx(this),di=1<<--$s,jn=this.parent,ci=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){jn===this?this.deferStop=!0:this.active&&(wp(this),this.onStop&&this.onStop(),this.active=!1)}}function wp(t){const{deps:n}=t;if(n.length){for(let r=0;r<n.length;r++)n[r].delete(t);n.length=0}}let ci=!0;const jv=[];function Go(){jv.push(ci),ci=!1}function Vo(){const t=jv.pop();ci=t===void 0?!0:t}function Pn(t,n,r){if(ci&&jn){let o=Nu.get(t);o||Nu.set(t,o=new Map);let a=o.get(r);a||o.set(r,a=Cf()),Gv(a)}}function Gv(t,n){let r=!1;$s<=Pu?Uv(t)||(t.n|=di,r=!Wv(t)):r=!t.has(jn),r&&(t.add(jn),jn.deps.push(t))}function $r(t,n,r,o,a,u){const f=Nu.get(t);if(!f)return;let h=[];if(n==="clear")h=[...f.values()];else if(r==="length"&&Ht(t))f.forEach((p,g)=>{(g==="length"||g>=o)&&h.push(p)});else switch(r!==void 0&&h.push(f.get(r)),n){case"add":Ht(t)?kf(r)&&h.push(f.get("length")):(h.push(f.get(Hi)),To(t)&&h.push(f.get(Ou)));break;case"delete":Ht(t)||(h.push(f.get(Hi)),To(t)&&h.push(f.get(Ou)));break;case"set":To(t)&&h.push(f.get(Hi));break}if(h.length===1)h[0]&&$u(h[0]);else{const p=[];for(const g of h)g&&p.push(...g);$u(Cf(p))}}function $u(t,n){const r=Ht(t)?t:[...t];for(const o of r)o.computed&&xp(o);for(const o of r)o.computed||xp(o)}function xp(t,n){(t!==jn||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const vx=wf("__proto__,__v_isRef,__isVue"),Vv=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Sf)),mx=Lf(),yx=Lf(!1,!0),bx=Lf(!0),_p=wx();function wx(){const t={};return["includes","indexOf","lastIndexOf"].forEach(n=>{t[n]=function(...r){const o=le(this);for(let u=0,f=this.length;u<f;u++)Pn(o,"get",u+"");const a=o[n](...r);return a===-1||a===!1?o[n](...r.map(le)):a}}),["push","pop","shift","unshift","splice"].forEach(n=>{t[n]=function(...r){Go();const o=le(this)[n].apply(this,r);return Vo(),o}}),t}function Lf(t=!1,n=!1){return function(o,a,u){if(a==="__v_isReactive")return!t;if(a==="__v_isReadonly")return t;if(a==="__v_isShallow")return n;if(a==="__v_raw"&&u===(t?n?Rx:Qv:n?Zv:Yv).get(o))return o;const f=Ht(o);if(!t&&f&&Jt(_p,a))return Reflect.get(_p,a,u);const h=Reflect.get(o,a,u);return(Sf(a)?Vv.has(a):vx(a))||(t||Pn(o,"get",a),n)?h:Ie(h)?f&&kf(a)?h:h.value:xe(h)?t?Jv(h):hr(h):h}}const xx=Kv(),_x=Kv(!0);function Kv(t=!1){return function(r,o,a,u){let f=r[o];if($o(f)&&Ie(f)&&!Ie(a))return!1;if(!t&&(!ka(a)&&!$o(a)&&(f=le(f),a=le(a)),!Ht(r)&&Ie(f)&&!Ie(a)))return f.value=a,!0;const h=Ht(r)&&kf(o)?Number(o)<r.length:Jt(r,o),p=Reflect.set(r,o,a,u);return r===le(u)&&(h?Ws(a,f)&&$r(r,"set",o,a):$r(r,"add",o,a)),p}}function Sx(t,n){const r=Jt(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&r&&$r(t,"delete",n,void 0),o}function kx(t,n){const r=Reflect.has(t,n);return(!Sf(n)||!Vv.has(n))&&Pn(t,"has",n),r}function Cx(t){return Pn(t,"iterate",Ht(t)?"length":Hi),Reflect.ownKeys(t)}const Xv={get:mx,set:xx,deleteProperty:Sx,has:kx,ownKeys:Cx},Tx={get:bx,set(t,n){return!0},deleteProperty(t,n){return!0}},Lx=Xe({},Xv,{get:yx,set:_x}),Ef=t=>t,Qa=t=>Reflect.getPrototypeOf(t);function Ql(t,n,r=!1,o=!1){t=t.__v_raw;const a=le(t),u=le(n);r||(n!==u&&Pn(a,"get",n),Pn(a,"get",u));const{has:f}=Qa(a),h=o?Ef:r?Pf:js;if(f.call(a,n))return h(t.get(n));if(f.call(a,u))return h(t.get(u));t!==a&&t.get(n)}function Jl(t,n=!1){const r=this.__v_raw,o=le(r),a=le(t);return n||(t!==a&&Pn(o,"has",t),Pn(o,"has",a)),t===a?r.has(t):r.has(t)||r.has(a)}function ta(t,n=!1){return t=t.__v_raw,!n&&Pn(le(t),"iterate",Hi),Reflect.get(t,"size",t)}function Sp(t){t=le(t);const n=le(this);return Qa(n).has.call(n,t)||(n.add(t),$r(n,"add",t,t)),this}function kp(t,n){n=le(n);const r=le(this),{has:o,get:a}=Qa(r);let u=o.call(r,t);u||(t=le(t),u=o.call(r,t));const f=a.call(r,t);return r.set(t,n),u?Ws(n,f)&&$r(r,"set",t,n):$r(r,"add",t,n),this}function Cp(t){const n=le(this),{has:r,get:o}=Qa(n);let a=r.call(n,t);a||(t=le(t),a=r.call(n,t)),o&&o.call(n,t);const u=n.delete(t);return a&&$r(n,"delete",t,void 0),u}function Tp(){const t=le(this),n=t.size!==0,r=t.clear();return n&&$r(t,"clear",void 0,void 0),r}function ea(t,n){return function(o,a){const u=this,f=u.__v_raw,h=le(f),p=n?Ef:t?Pf:js;return!t&&Pn(h,"iterate",Hi),f.forEach((g,m)=>o.call(a,p(g),p(m),u))}}function na(t,n,r){return function(...o){const a=this.__v_raw,u=le(a),f=To(u),h=t==="entries"||t===Symbol.iterator&&f,p=t==="keys"&&f,g=a[t](...o),m=r?Ef:n?Pf:js;return!n&&Pn(u,"iterate",p?Ou:Hi),{next(){const{value:b,done:x}=g.next();return x?{value:b,done:x}:{value:h?[m(b[0]),m(b[1])]:m(b),done:x}},[Symbol.iterator](){return this}}}}function Jr(t){return function(...n){return t==="delete"?!1:this}}function Ex(){const t={get(u){return Ql(this,u)},get size(){return ta(this)},has:Jl,add:Sp,set:kp,delete:Cp,clear:Tp,forEach:ea(!1,!1)},n={get(u){return Ql(this,u,!1,!0)},get size(){return ta(this)},has:Jl,add:Sp,set:kp,delete:Cp,clear:Tp,forEach:ea(!1,!0)},r={get(u){return Ql(this,u,!0)},get size(){return ta(this,!0)},has(u){return Jl.call(this,u,!0)},add:Jr("add"),set:Jr("set"),delete:Jr("delete"),clear:Jr("clear"),forEach:ea(!0,!1)},o={get(u){return Ql(this,u,!0,!0)},get size(){return ta(this,!0)},has(u){return Jl.call(this,u,!0)},add:Jr("add"),set:Jr("set"),delete:Jr("delete"),clear:Jr("clear"),forEach:ea(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(u=>{t[u]=na(u,!1,!1),r[u]=na(u,!0,!1),n[u]=na(u,!1,!0),o[u]=na(u,!0,!0)}),[t,r,n,o]}const[Ax,Mx,Nx,Px]=Ex();function Af(t,n){const r=n?t?Px:Nx:t?Mx:Ax;return(o,a,u)=>a==="__v_isReactive"?!t:a==="__v_isReadonly"?t:a==="__v_raw"?o:Reflect.get(Jt(r,a)&&a in o?r:o,a,u)}const Ox={get:Af(!1,!1)},$x={get:Af(!1,!0)},Dx={get:Af(!0,!1)},Yv=new WeakMap,Zv=new WeakMap,Qv=new WeakMap,Rx=new WeakMap;function zx(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ix(t){return t.__v_skip||!Object.isExtensible(t)?0:zx(sx(t))}function hr(t){return $o(t)?t:Mf(t,!1,Xv,Ox,Yv)}function Fx(t){return Mf(t,!1,Lx,$x,Zv)}function Jv(t){return Mf(t,!0,Tx,Dx,Qv)}function Mf(t,n,r,o,a){if(!xe(t)||t.__v_raw&&!(n&&t.__v_isReactive))return t;const u=a.get(t);if(u)return u;const f=Ix(t);if(f===0)return t;const h=new Proxy(t,f===2?o:r);return a.set(t,h),h}function Lo(t){return $o(t)?Lo(t.__v_raw):!!(t&&t.__v_isReactive)}function $o(t){return!!(t&&t.__v_isReadonly)}function ka(t){return!!(t&&t.__v_isShallow)}function tm(t){return Lo(t)||$o(t)}function le(t){const n=t&&t.__v_raw;return n?le(n):t}function Nf(t){return Sa(t,"__v_skip",!0),t}const js=t=>xe(t)?hr(t):t,Pf=t=>xe(t)?Jv(t):t;function em(t){ci&&jn&&(t=le(t),Gv(t.dep||(t.dep=Cf())))}function nm(t,n){t=le(t),t.dep&&$u(t.dep)}function Ie(t){return!!(t&&t.__v_isRef===!0)}function Kt(t){return rm(t,!1)}function sl(t){return rm(t,!0)}function rm(t,n){return Ie(t)?t:new qx(t,n)}class qx{constructor(n,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?n:le(n),this._value=r?n:js(n)}get value(){return em(this),this._value}set value(n){const r=this.__v_isShallow||ka(n)||$o(n);n=r?n:le(n),Ws(n,this._rawValue)&&(this._rawValue=n,this._value=r?n:js(n),nm(this))}}function Z(t){return Ie(t)?t.value:t}const Hx={get:(t,n,r)=>Z(Reflect.get(t,n,r)),set:(t,n,r,o)=>{const a=t[n];return Ie(a)&&!Ie(r)?(a.value=r,!0):Reflect.set(t,n,r,o)}};function im(t){return Lo(t)?t:new Proxy(t,Hx)}function Bx(t){const n=Ht(t)?new Array(t.length):{};for(const r in t)n[r]=Of(t,r);return n}class Wx{constructor(n,r,o){this._object=n,this._key=r,this._defaultValue=o,this.__v_isRef=!0}get value(){const n=this._object[this._key];return n===void 0?this._defaultValue:n}set value(n){this._object[this._key]=n}}function Of(t,n,r){const o=t[n];return Ie(o)?o:new Wx(t,n,r)}var om;class Ux{constructor(n,r,o,a){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this[om]=!1,this._dirty=!0,this.effect=new Tf(n,()=>{this._dirty||(this._dirty=!0,nm(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=o}get value(){const n=le(this);return em(n),(n._dirty||!n._cacheable)&&(n._dirty=!1,n._value=n.effect.run()),n._value}set value(n){this._setter(n)}}om="__v_isReadonly";function jx(t,n,r=!1){let o,a;const u=Wt(t);return u?(o=t,a=Vn):(o=t.get,a=t.set),new Ux(o,a,u||!a,r)}function ui(t,n,r,o){let a;try{a=o?t(...o):t()}catch(u){ll(u,n,r)}return a}function In(t,n,r,o){if(Wt(t)){const u=ui(t,n,r,o);return u&&qv(u)&&u.catch(f=>{ll(f,n,r)}),u}const a=[];for(let u=0;u<t.length;u++)a.push(In(t[u],n,r,o));return a}function ll(t,n,r,o=!0){const a=n?n.vnode:null;if(n){let u=n.parent;const f=n.proxy,h=r;for(;u;){const g=u.ec;if(g){for(let m=0;m<g.length;m++)if(g[m](t,f,h)===!1)return}u=u.parent}const p=n.appContext.config.errorHandler;if(p){ui(p,null,10,[t,f,h]);return}}Gx(t,r,a,o)}function Gx(t,n,r,o=!0){console.error(t)}let Gs=!1,Du=!1;const tn=[];let sr=0;const Eo=[];let Er=null,Di=0;const sm=Promise.resolve();let $f=null;function al(t){const n=$f||sm;return t?n.then(this?t.bind(this):t):n}function Vx(t){let n=sr+1,r=tn.length;for(;n<r;){const o=n+r>>>1;Vs(tn[o])<t?n=o+1:r=o}return n}function Df(t){(!tn.length||!tn.includes(t,Gs&&t.allowRecurse?sr+1:sr))&&(t.id==null?tn.push(t):tn.splice(Vx(t.id),0,t),lm())}function lm(){!Gs&&!Du&&(Du=!0,$f=sm.then(um))}function Kx(t){const n=tn.indexOf(t);n>sr&&tn.splice(n,1)}function am(t){Ht(t)?Eo.push(...t):(!Er||!Er.includes(t,t.allowRecurse?Di+1:Di))&&Eo.push(t),lm()}function Lp(t,n=Gs?sr+1:0){for(;n<tn.length;n++){const r=tn[n];r&&r.pre&&(tn.splice(n,1),n--,r())}}function cm(t){if(Eo.length){const n=[...new Set(Eo)];if(Eo.length=0,Er){Er.push(...n);return}for(Er=n,Er.sort((r,o)=>Vs(r)-Vs(o)),Di=0;Di<Er.length;Di++)Er[Di]();Er=null,Di=0}}const Vs=t=>t.id==null?1/0:t.id,Xx=(t,n)=>{const r=Vs(t)-Vs(n);if(r===0){if(t.pre&&!n.pre)return-1;if(n.pre&&!t.pre)return 1}return r};function um(t){Du=!1,Gs=!0,tn.sort(Xx);const n=Vn;try{for(sr=0;sr<tn.length;sr++){const r=tn[sr];r&&r.active!==!1&&ui(r,null,14)}}finally{sr=0,tn.length=0,cm(),Gs=!1,$f=null,(tn.length||Eo.length)&&um()}}function Yx(t,n,...r){if(t.isUnmounted)return;const o=t.vnode.props||me;let a=r;const u=n.startsWith("update:"),f=u&&n.slice(7);if(f&&f in o){const m=`${f==="modelValue"?"model":f}Modifiers`,{number:b,trim:x}=o[m]||me;x&&(a=r.map(S=>S.trim())),b&&(a=r.map(Us))}let h,p=o[h=pu(n)]||o[h=pu(fr(n))];!p&&u&&(p=o[h=pu(Xi(n))]),p&&In(p,t,6,a);const g=o[h+"Once"];if(g){if(!t.emitted)t.emitted={};else if(t.emitted[h])return;t.emitted[h]=!0,In(g,t,6,a)}}function fm(t,n,r=!1){const o=n.emitsCache,a=o.get(t);if(a!==void 0)return a;const u=t.emits;let f={},h=!1;if(!Wt(t)){const p=g=>{const m=fm(g,n,!0);m&&(h=!0,Xe(f,m))};!r&&n.mixins.length&&n.mixins.forEach(p),t.extends&&p(t.extends),t.mixins&&t.mixins.forEach(p)}return!u&&!h?(xe(t)&&o.set(t,null),null):(Ht(u)?u.forEach(p=>f[p]=null):Xe(f,u),xe(t)&&o.set(t,f),f)}function Ja(t,n){return!t||!Ka(n)?!1:(n=n.slice(2).replace(/Once$/,""),Jt(t,n[0].toLowerCase()+n.slice(1))||Jt(t,Xi(n))||Jt(t,n))}let en=null,tc=null;function Ca(t){const n=en;return en=t,tc=t&&t.type.__scopeId||null,n}function hm(t){tc=t}function dm(){tc=null}const Zx=t=>Yt;function Yt(t,n=en,r){if(!n||t._n)return t;const o=(...a)=>{o._d&&Fp(-1);const u=Ca(n),f=t(...a);return Ca(u),o._d&&Fp(1),f};return o._n=!0,o._c=!0,o._d=!0,o}function gu(t){const{type:n,vnode:r,proxy:o,withProxy:a,props:u,propsOptions:[f],slots:h,attrs:p,emit:g,render:m,renderCache:b,data:x,setupState:S,ctx:N,inheritAttrs:A}=t;let L,C;const E=Ca(t);try{if(r.shapeFlag&4){const D=a||o;L=Un(m.call(D,D,b,u,S,x,N)),C=p}else{const D=n;L=Un(D.length>1?D(u,{attrs:p,slots:h,emit:g}):D(u,null)),C=n.props?p:Jx(p)}}catch(D){Is.length=0,ll(D,t,1),L=Rt(Cn)}let z=L;if(C&&A!==!1){const D=Object.keys(C),{shapeFlag:G}=z;D.length&&G&7&&(f&&D.some(xf)&&(C=t1(C,f)),z=pi(z,C))}return r.dirs&&(z=pi(z),z.dirs=z.dirs?z.dirs.concat(r.dirs):r.dirs),r.transition&&(z.transition=r.transition),L=z,Ca(E),L}function Qx(t){let n;for(let r=0;r<t.length;r++){const o=t[r];if(Xs(o)){if(o.type!==Cn||o.children==="v-if"){if(n)return;n=o}}else return}return n}const Jx=t=>{let n;for(const r in t)(r==="class"||r==="style"||Ka(r))&&((n||(n={}))[r]=t[r]);return n},t1=(t,n)=>{const r={};for(const o in t)(!xf(o)||!(o.slice(9)in n))&&(r[o]=t[o]);return r};function e1(t,n,r){const{props:o,children:a,component:u}=t,{props:f,children:h,patchFlag:p}=n,g=u.emitsOptions;if(n.dirs||n.transition)return!0;if(r&&p>=0){if(p&1024)return!0;if(p&16)return o?Ep(o,f,g):!!f;if(p&8){const m=n.dynamicProps;for(let b=0;b<m.length;b++){const x=m[b];if(f[x]!==o[x]&&!Ja(g,x))return!0}}}else return(a||h)&&(!h||!h.$stable)?!0:o===f?!1:o?f?Ep(o,f,g):!0:!!f;return!1}function Ep(t,n,r){const o=Object.keys(n);if(o.length!==Object.keys(t).length)return!0;for(let a=0;a<o.length;a++){const u=o[a];if(n[u]!==t[u]&&!Ja(r,u))return!0}return!1}function Rf({vnode:t,parent:n},r){for(;n&&n.subTree===t;)(t=n.vnode).el=r,n=n.parent}const n1=t=>t.__isSuspense,r1={name:"Suspense",__isSuspense:!0,process(t,n,r,o,a,u,f,h,p,g){t==null?o1(n,r,o,a,u,f,h,p,g):s1(t,n,r,o,a,f,h,p,g)},hydrate:l1,create:zf,normalize:a1},i1=r1;function Ks(t,n){const r=t.props&&t.props[n];Wt(r)&&r()}function o1(t,n,r,o,a,u,f,h,p){const{p:g,o:{createElement:m}}=p,b=m("div"),x=t.suspense=zf(t,a,o,n,b,r,u,f,h,p);g(null,x.pendingBranch=t.ssContent,b,null,o,x,u,f),x.deps>0?(Ks(t,"onPending"),Ks(t,"onFallback"),g(null,t.ssFallback,n,r,o,null,u,f),Ao(x,t.ssFallback)):x.resolve()}function s1(t,n,r,o,a,u,f,h,{p,um:g,o:{createElement:m}}){const b=n.suspense=t.suspense;b.vnode=n,n.el=t.el;const x=n.ssContent,S=n.ssFallback,{activeBranch:N,pendingBranch:A,isInFallback:L,isHydrating:C}=b;if(A)b.pendingBranch=x,ar(x,A)?(p(A,x,b.hiddenContainer,null,a,b,u,f,h),b.deps<=0?b.resolve():L&&(p(N,S,r,o,a,null,u,f,h),Ao(b,S))):(b.pendingId++,C?(b.isHydrating=!1,b.activeBranch=A):g(A,a,b),b.deps=0,b.effects.length=0,b.hiddenContainer=m("div"),L?(p(null,x,b.hiddenContainer,null,a,b,u,f,h),b.deps<=0?b.resolve():(p(N,S,r,o,a,null,u,f,h),Ao(b,S))):N&&ar(x,N)?(p(N,x,r,o,a,b,u,f,h),b.resolve(!0)):(p(null,x,b.hiddenContainer,null,a,b,u,f,h),b.deps<=0&&b.resolve()));else if(N&&ar(x,N))p(N,x,r,o,a,b,u,f,h),Ao(b,x);else if(Ks(n,"onPending"),b.pendingBranch=x,b.pendingId++,p(null,x,b.hiddenContainer,null,a,b,u,f,h),b.deps<=0)b.resolve();else{const{timeout:E,pendingId:z}=b;E>0?setTimeout(()=>{b.pendingId===z&&b.fallback(S)},E):E===0&&b.fallback(S)}}function zf(t,n,r,o,a,u,f,h,p,g,m=!1){const{p:b,m:x,um:S,n:N,o:{parentNode:A,remove:L}}=g,C=Us(t.props&&t.props.timeout),E={vnode:t,parent:n,parentComponent:r,isSVG:f,container:o,hiddenContainer:a,anchor:u,deps:0,pendingId:0,timeout:typeof C=="number"?C:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:m,isUnmounted:!1,effects:[],resolve(z=!1){const{vnode:D,activeBranch:G,pendingBranch:j,pendingId:it,effects:J,parentComponent:dt,container:vt}=E;if(E.isHydrating)E.isHydrating=!1;else if(!z){const U=G&&j.transition&&j.transition.mode==="out-in";U&&(G.transition.afterLeave=()=>{it===E.pendingId&&x(j,vt,I,0)});let{anchor:I}=E;G&&(I=N(G),S(G,dt,E,!0)),U||x(j,vt,I,0)}Ao(E,j),E.pendingBranch=null,E.isInFallback=!1;let kt=E.parent,ft=!1;for(;kt;){if(kt.pendingBranch){kt.effects.push(...J),ft=!0;break}kt=kt.parent}ft||am(J),E.effects=[],Ks(D,"onResolve")},fallback(z){if(!E.pendingBranch)return;const{vnode:D,activeBranch:G,parentComponent:j,container:it,isSVG:J}=E;Ks(D,"onFallback");const dt=N(G),vt=()=>{!E.isInFallback||(b(null,z,it,dt,j,null,J,h,p),Ao(E,z))},kt=z.transition&&z.transition.mode==="out-in";kt&&(G.transition.afterLeave=vt),E.isInFallback=!0,S(G,j,null,!0),kt||vt()},move(z,D,G){E.activeBranch&&x(E.activeBranch,z,D,G),E.container=z},next(){return E.activeBranch&&N(E.activeBranch)},registerDep(z,D){const G=!!E.pendingBranch;G&&E.deps++;const j=z.vnode.el;z.asyncDep.catch(it=>{ll(it,z,0)}).then(it=>{if(z.isUnmounted||E.isUnmounted||E.pendingId!==z.suspenseId)return;z.asyncResolved=!0;const{vnode:J}=z;Wu(z,it,!1),j&&(J.el=j);const dt=!j&&z.subTree.el;D(z,J,A(j||z.subTree.el),j?null:N(z.subTree),E,f,p),dt&&L(dt),Rf(z,J.el),G&&--E.deps===0&&E.resolve()})},unmount(z,D){E.isUnmounted=!0,E.activeBranch&&S(E.activeBranch,r,z,D),E.pendingBranch&&S(E.pendingBranch,r,z,D)}};return E}function l1(t,n,r,o,a,u,f,h,p){const g=n.suspense=zf(n,o,r,t.parentNode,document.createElement("div"),null,a,u,f,h,!0),m=p(t,g.pendingBranch=n.ssContent,r,g,u,f);return g.deps===0&&g.resolve(),m}function a1(t){const{shapeFlag:n,children:r}=t,o=n&32;t.ssContent=Ap(o?r.default:r),t.ssFallback=o?Ap(r.fallback):Rt(Cn)}function Ap(t){let n;if(Wt(t)){const r=Do&&t._c;r&&(t._d=!1,ht()),t=t(),r&&(t._d=!0,n=zn,Nm())}return Ht(t)&&(t=Qx(t)),t=Un(t),n&&!t.dynamicChildren&&(t.dynamicChildren=n.filter(r=>r!==t)),t}function c1(t,n){n&&n.pendingBranch?Ht(t)?n.effects.push(...t):n.effects.push(t):am(t)}function Ao(t,n){t.activeBranch=n;const{vnode:r,parentComponent:o}=t,a=r.el=n.el;o&&o.subTree===r&&(o.vnode.el=a,Rf(o,a))}function ha(t,n){if(Be){let r=Be.provides;const o=Be.parent&&Be.parent.provides;o===r&&(r=Be.provides=Object.create(o)),r[t]=n}}function fi(t,n,r=!1){const o=Be||en;if(o){const a=o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(a&&t in a)return a[t];if(arguments.length>1)return r&&Wt(n)?n.call(o.proxy):n}}function If(t,n){return Ff(t,null,n)}const Mp={};function Fe(t,n,r){return Ff(t,n,r)}function Ff(t,n,{immediate:r,deep:o,flush:a,onTrack:u,onTrigger:f}=me){const h=Be;let p,g=!1,m=!1;if(Ie(t)?(p=()=>t.value,g=ka(t)):Lo(t)?(p=()=>t,o=!0):Ht(t)?(m=!0,g=t.some(C=>Lo(C)||ka(C)),p=()=>t.map(C=>{if(Ie(C))return C.value;if(Lo(C))return zi(C);if(Wt(C))return ui(C,h,2)})):Wt(t)?n?p=()=>ui(t,h,2):p=()=>{if(!(h&&h.isUnmounted))return b&&b(),In(t,h,3,[x])}:p=Vn,n&&o){const C=p;p=()=>zi(C())}let b,x=C=>{b=L.onStop=()=>{ui(C,h,4)}};if(Ys)return x=Vn,n?r&&In(n,h,3,[p(),m?[]:void 0,x]):p(),Vn;let S=m?[]:Mp;const N=()=>{if(!!L.active)if(n){const C=L.run();(o||g||(m?C.some((E,z)=>Ws(E,S[z])):Ws(C,S)))&&(b&&b(),In(n,h,3,[C,S===Mp?void 0:S,x]),S=C)}else L.run()};N.allowRecurse=!!n;let A;a==="sync"?A=N:a==="post"?A=()=>xn(N,h&&h.suspense):(N.pre=!0,h&&(N.id=h.uid),A=()=>Df(N));const L=new Tf(p,A);return n?r?N():S=L.run():a==="post"?xn(L.run.bind(L),h&&h.suspense):L.run(),()=>{L.stop(),h&&h.scope&&_f(h.scope.effects,L)}}function u1(t,n,r){const o=this.proxy,a=Ue(t)?t.includes(".")?pm(o,t):()=>o[t]:t.bind(o,o);let u;Wt(n)?u=n:(u=n.handler,r=n);const f=Be;Ro(this);const h=Ff(a,u.bind(o),r);return f?Ro(f):Bi(),h}function pm(t,n){const r=n.split(".");return()=>{let o=t;for(let a=0;a<r.length&&o;a++)o=o[r[a]];return o}}function zi(t,n){if(!xe(t)||t.__v_skip||(n=n||new Set,n.has(t)))return t;if(n.add(t),Ie(t))zi(t.value,n);else if(Ht(t))for(let r=0;r<t.length;r++)zi(t[r],n);else if(Fv(t)||To(t))t.forEach(r=>{zi(r,n)});else if(Bv(t))for(const r in t)zi(t[r],n);return t}function f1(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return cl(()=>{t.isMounted=!0}),bm(()=>{t.isUnmounting=!0}),t}const Rn=[Function,Array],h1={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Rn,onEnter:Rn,onAfterEnter:Rn,onEnterCancelled:Rn,onBeforeLeave:Rn,onLeave:Rn,onAfterLeave:Rn,onLeaveCancelled:Rn,onBeforeAppear:Rn,onAppear:Rn,onAfterAppear:Rn,onAppearCancelled:Rn},setup(t,{slots:n}){const r=ic(),o=f1();let a;return()=>{const u=n.default&&mm(n.default(),!0);if(!u||!u.length)return;let f=u[0];if(u.length>1){for(const A of u)if(A.type!==Cn){f=A;break}}const h=le(t),{mode:p}=h;if(o.isLeaving)return vu(f);const g=Np(f);if(!g)return vu(f);const m=Ru(g,h,o,r);zu(g,m);const b=r.subTree,x=b&&Np(b);let S=!1;const{getTransitionKey:N}=g.type;if(N){const A=N();a===void 0?a=A:A!==a&&(a=A,S=!0)}if(x&&x.type!==Cn&&(!ar(g,x)||S)){const A=Ru(x,h,o,r);if(zu(x,A),p==="out-in")return o.isLeaving=!0,A.afterLeave=()=>{o.isLeaving=!1,r.update()},vu(f);p==="in-out"&&g.type!==Cn&&(A.delayLeave=(L,C,E)=>{const z=vm(o,x);z[String(x.key)]=x,L._leaveCb=()=>{C(),L._leaveCb=void 0,delete m.delayedLeave},m.delayedLeave=E})}return f}}},gm=h1;function vm(t,n){const{leavingVNodes:r}=t;let o=r.get(n.type);return o||(o=Object.create(null),r.set(n.type,o)),o}function Ru(t,n,r,o){const{appear:a,mode:u,persisted:f=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:g,onEnterCancelled:m,onBeforeLeave:b,onLeave:x,onAfterLeave:S,onLeaveCancelled:N,onBeforeAppear:A,onAppear:L,onAfterAppear:C,onAppearCancelled:E}=n,z=String(t.key),D=vm(r,t),G=(J,dt)=>{J&&In(J,o,9,dt)},j=(J,dt)=>{const vt=dt[1];G(J,dt),Ht(J)?J.every(kt=>kt.length<=1)&&vt():J.length<=1&&vt()},it={mode:u,persisted:f,beforeEnter(J){let dt=h;if(!r.isMounted)if(a)dt=A||h;else return;J._leaveCb&&J._leaveCb(!0);const vt=D[z];vt&&ar(t,vt)&&vt.el._leaveCb&&vt.el._leaveCb(),G(dt,[J])},enter(J){let dt=p,vt=g,kt=m;if(!r.isMounted)if(a)dt=L||p,vt=C||g,kt=E||m;else return;let ft=!1;const U=J._enterCb=I=>{ft||(ft=!0,I?G(kt,[J]):G(vt,[J]),it.delayedLeave&&it.delayedLeave(),J._enterCb=void 0)};dt?j(dt,[J,U]):U()},leave(J,dt){const vt=String(t.key);if(J._enterCb&&J._enterCb(!0),r.isUnmounting)return dt();G(b,[J]);let kt=!1;const ft=J._leaveCb=U=>{kt||(kt=!0,dt(),U?G(N,[J]):G(S,[J]),J._leaveCb=void 0,D[vt]===t&&delete D[vt])};D[vt]=t,x?j(x,[J,ft]):ft()},clone(J){return Ru(J,n,r,o)}};return it}function vu(t){if(ec(t))return t=pi(t),t.children=null,t}function Np(t){return ec(t)?t.children?t.children[0]:void 0:t}function zu(t,n){t.shapeFlag&6&&t.component?zu(t.component.subTree,n):t.shapeFlag&128?(t.ssContent.transition=n.clone(t.ssContent),t.ssFallback.transition=n.clone(t.ssFallback)):t.transition=n}function mm(t,n=!1,r){let o=[],a=0;for(let u=0;u<t.length;u++){let f=t[u];const h=r==null?f.key:String(r)+String(f.key!=null?f.key:u);f.type===ue?(f.patchFlag&128&&a++,o=o.concat(mm(f.children,n,h))):(n||f.type!==Cn)&&o.push(h!=null?pi(f,{key:h}):f)}if(a>1)for(let u=0;u<o.length;u++)o[u].patchFlag=-2;return o}function oe(t){return Wt(t)?{setup:t,name:t.name}:t}const zs=t=>!!t.type.__asyncLoader,ec=t=>t.type.__isKeepAlive;function d1(t,n){ym(t,"a",n)}function p1(t,n){ym(t,"da",n)}function ym(t,n,r=Be){const o=t.__wdc||(t.__wdc=()=>{let a=r;for(;a;){if(a.isDeactivated)return;a=a.parent}return t()});if(nc(n,o,r),r){let a=r.parent;for(;a&&a.parent;)ec(a.parent.vnode)&&g1(o,n,r,a),a=a.parent}}function g1(t,n,r,o){const a=nc(n,t,o,!0);qf(()=>{_f(o[n],a)},r)}function nc(t,n,r=Be,o=!1){if(r){const a=r[t]||(r[t]=[]),u=n.__weh||(n.__weh=(...f)=>{if(r.isUnmounted)return;Go(),Ro(r);const h=In(n,r,t,f);return Bi(),Vo(),h});return o?a.unshift(u):a.push(u),u}}const Ir=t=>(n,r=Be)=>(!Ys||t==="sp")&&nc(t,(...o)=>n(...o),r),v1=Ir("bm"),cl=Ir("m"),m1=Ir("bu"),y1=Ir("u"),bm=Ir("bum"),qf=Ir("um"),b1=Ir("sp"),w1=Ir("rtg"),x1=Ir("rtc");function _1(t,n=Be){nc("ec",t,n)}function pn(t,n){const r=en;if(r===null)return t;const o=oc(r)||r.proxy,a=t.dirs||(t.dirs=[]);for(let u=0;u<n.length;u++){let[f,h,p,g=me]=n[u];Wt(f)&&(f={mounted:f,updated:f}),f.deep&&zi(h),a.push({dir:f,instance:o,value:h,oldValue:void 0,arg:p,modifiers:g})}return t}function Ai(t,n,r,o){const a=t.dirs,u=n&&n.dirs;for(let f=0;f<a.length;f++){const h=a[f];u&&(h.oldValue=u[f].value);let p=h.dir[o];p&&(Go(),In(p,r,8,[t.el,h,t,n]),Vo())}}const wm="components",S1="directives";function ji(t,n){return xm(wm,t,!0,n)||t}const k1=Symbol();function Yi(t){return xm(S1,t)}function xm(t,n,r=!0,o=!1){const a=en||Be;if(a){const u=a.type;if(t===wm){const h=Y1(u,!1);if(h&&(h===n||h===fr(n)||h===Za(fr(n))))return u}const f=Pp(a[t]||u[t],n)||Pp(a.appContext[t],n);return!f&&o?u:f}}function Pp(t,n){return t&&(t[n]||t[fr(n)]||t[Za(fr(n))])}function lr(t,n,r,o){let a;const u=r&&r[o];if(Ht(t)||Ue(t)){a=new Array(t.length);for(let f=0,h=t.length;f<h;f++)a[f]=n(t[f],f,void 0,u&&u[f])}else if(typeof t=="number"){a=new Array(t);for(let f=0;f<t;f++)a[f]=n(f+1,f,void 0,u&&u[f])}else if(xe(t))if(t[Symbol.iterator])a=Array.from(t,(f,h)=>n(f,h,void 0,u&&u[h]));else{const f=Object.keys(t);a=new Array(f.length);for(let h=0,p=f.length;h<p;h++){const g=f[h];a[h]=n(t[g],g,h,u&&u[h])}}else a=[];return r&&(r[o]=a),a}function Kn(t,n,r={},o,a){if(en.isCE||en.parent&&zs(en.parent)&&en.parent.isCE)return Rt("slot",n==="default"?null:{name:n},o&&o());let u=t[n];u&&u._c&&(u._d=!1),ht();const f=u&&_m(u(r)),h=ce(ue,{key:r.key||f&&f.key||`_${n}`},f||(o?o():[]),f&&t._===1?64:-2);return!a&&h.scopeId&&(h.slotScopeIds=[h.scopeId+"-s"]),u&&u._c&&(u._d=!0),h}function _m(t){return t.some(n=>Xs(n)?!(n.type===Cn||n.type===ue&&!_m(n.children)):!0)?t:null}const Iu=t=>t?$m(t)?oc(t)||t.proxy:Iu(t.parent):null,Ta=Xe(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Iu(t.parent),$root:t=>Iu(t.root),$emit:t=>t.emit,$options:t=>Hf(t),$forceUpdate:t=>t.f||(t.f=()=>Df(t.update)),$nextTick:t=>t.n||(t.n=al.bind(t.proxy)),$watch:t=>u1.bind(t)}),C1={get({_:t},n){const{ctx:r,setupState:o,data:a,props:u,accessCache:f,type:h,appContext:p}=t;let g;if(n[0]!=="$"){const S=f[n];if(S!==void 0)switch(S){case 1:return o[n];case 2:return a[n];case 4:return r[n];case 3:return u[n]}else{if(o!==me&&Jt(o,n))return f[n]=1,o[n];if(a!==me&&Jt(a,n))return f[n]=2,a[n];if((g=t.propsOptions[0])&&Jt(g,n))return f[n]=3,u[n];if(r!==me&&Jt(r,n))return f[n]=4,r[n];Fu&&(f[n]=0)}}const m=Ta[n];let b,x;if(m)return n==="$attrs"&&Pn(t,"get",n),m(t);if((b=h.__cssModules)&&(b=b[n]))return b;if(r!==me&&Jt(r,n))return f[n]=4,r[n];if(x=p.config.globalProperties,Jt(x,n))return x[n]},set({_:t},n,r){const{data:o,setupState:a,ctx:u}=t;return a!==me&&Jt(a,n)?(a[n]=r,!0):o!==me&&Jt(o,n)?(o[n]=r,!0):Jt(t.props,n)||n[0]==="$"&&n.slice(1)in t?!1:(u[n]=r,!0)},has({_:{data:t,setupState:n,accessCache:r,ctx:o,appContext:a,propsOptions:u}},f){let h;return!!r[f]||t!==me&&Jt(t,f)||n!==me&&Jt(n,f)||(h=u[0])&&Jt(h,f)||Jt(o,f)||Jt(Ta,f)||Jt(a.config.globalProperties,f)},defineProperty(t,n,r){return r.get!=null?t._.accessCache[n]=0:Jt(r,"value")&&this.set(t,n,r.value,null),Reflect.defineProperty(t,n,r)}};let Fu=!0;function T1(t){const n=Hf(t),r=t.proxy,o=t.ctx;Fu=!1,n.beforeCreate&&Op(n.beforeCreate,t,"bc");const{data:a,computed:u,methods:f,watch:h,provide:p,inject:g,created:m,beforeMount:b,mounted:x,beforeUpdate:S,updated:N,activated:A,deactivated:L,beforeDestroy:C,beforeUnmount:E,destroyed:z,unmounted:D,render:G,renderTracked:j,renderTriggered:it,errorCaptured:J,serverPrefetch:dt,expose:vt,inheritAttrs:kt,components:ft,directives:U,filters:I}=n;if(g&&L1(g,o,null,t.appContext.config.unwrapInjectedRef),f)for(const W in f){const et=f[W];Wt(et)&&(o[W]=et.bind(r))}if(a){const W=a.call(r,r);xe(W)&&(t.data=hr(W))}if(Fu=!0,u)for(const W in u){const et=u[W],wt=Wt(et)?et.bind(r,r):Wt(et.get)?et.get.bind(r,r):Vn,Et=!Wt(et)&&Wt(et.set)?et.set.bind(r):Vn,qt=St({get:wt,set:Et});Object.defineProperty(o,W,{enumerable:!0,configurable:!0,get:()=>qt.value,set:Bt=>qt.value=Bt})}if(h)for(const W in h)Sm(h[W],o,r,W);if(p){const W=Wt(p)?p.call(r):p;Reflect.ownKeys(W).forEach(et=>{ha(et,W[et])})}m&&Op(m,t,"c");function H(W,et){Ht(et)?et.forEach(wt=>W(wt.bind(r))):et&&W(et.bind(r))}if(H(v1,b),H(cl,x),H(m1,S),H(y1,N),H(d1,A),H(p1,L),H(_1,J),H(x1,j),H(w1,it),H(bm,E),H(qf,D),H(b1,dt),Ht(vt))if(vt.length){const W=t.exposed||(t.exposed={});vt.forEach(et=>{Object.defineProperty(W,et,{get:()=>r[et],set:wt=>r[et]=wt})})}else t.exposed||(t.exposed={});G&&t.render===Vn&&(t.render=G),kt!=null&&(t.inheritAttrs=kt),ft&&(t.components=ft),U&&(t.directives=U)}function L1(t,n,r=Vn,o=!1){Ht(t)&&(t=qu(t));for(const a in t){const u=t[a];let f;xe(u)?"default"in u?f=fi(u.from||a,u.default,!0):f=fi(u.from||a):f=fi(u),Ie(f)&&o?Object.defineProperty(n,a,{enumerable:!0,configurable:!0,get:()=>f.value,set:h=>f.value=h}):n[a]=f}}function Op(t,n,r){In(Ht(t)?t.map(o=>o.bind(n.proxy)):t.bind(n.proxy),n,r)}function Sm(t,n,r,o){const a=o.includes(".")?pm(r,o):()=>r[o];if(Ue(t)){const u=n[t];Wt(u)&&Fe(a,u)}else if(Wt(t))Fe(a,t.bind(r));else if(xe(t))if(Ht(t))t.forEach(u=>Sm(u,n,r,o));else{const u=Wt(t.handler)?t.handler.bind(r):n[t.handler];Wt(u)&&Fe(a,u,t)}}function Hf(t){const n=t.type,{mixins:r,extends:o}=n,{mixins:a,optionsCache:u,config:{optionMergeStrategies:f}}=t.appContext,h=u.get(n);let p;return h?p=h:!a.length&&!r&&!o?p=n:(p={},a.length&&a.forEach(g=>La(p,g,f,!0)),La(p,n,f)),xe(n)&&u.set(n,p),p}function La(t,n,r,o=!1){const{mixins:a,extends:u}=n;u&&La(t,u,r,!0),a&&a.forEach(f=>La(t,f,r,!0));for(const f in n)if(!(o&&f==="expose")){const h=E1[f]||r&&r[f];t[f]=h?h(t[f],n[f]):n[f]}return t}const E1={data:$p,props:Oi,emits:Oi,methods:Oi,computed:Oi,beforeCreate:un,created:un,beforeMount:un,mounted:un,beforeUpdate:un,updated:un,beforeDestroy:un,beforeUnmount:un,destroyed:un,unmounted:un,activated:un,deactivated:un,errorCaptured:un,serverPrefetch:un,components:Oi,directives:Oi,watch:M1,provide:$p,inject:A1};function $p(t,n){return n?t?function(){return Xe(Wt(t)?t.call(this,this):t,Wt(n)?n.call(this,this):n)}:n:t}function A1(t,n){return Oi(qu(t),qu(n))}function qu(t){if(Ht(t)){const n={};for(let r=0;r<t.length;r++)n[t[r]]=t[r];return n}return t}function un(t,n){return t?[...new Set([].concat(t,n))]:n}function Oi(t,n){return t?Xe(Xe(Object.create(null),t),n):n}function M1(t,n){if(!t)return n;if(!n)return t;const r=Xe(Object.create(null),t);for(const o in n)r[o]=un(t[o],n[o]);return r}function N1(t,n,r,o=!1){const a={},u={};Sa(u,rc,1),t.propsDefaults=Object.create(null),km(t,n,a,u);for(const f in t.propsOptions[0])f in a||(a[f]=void 0);r?t.props=o?a:Fx(a):t.type.props?t.props=a:t.props=u,t.attrs=u}function P1(t,n,r,o){const{props:a,attrs:u,vnode:{patchFlag:f}}=t,h=le(a),[p]=t.propsOptions;let g=!1;if((o||f>0)&&!(f&16)){if(f&8){const m=t.vnode.dynamicProps;for(let b=0;b<m.length;b++){let x=m[b];if(Ja(t.emitsOptions,x))continue;const S=n[x];if(p)if(Jt(u,x))S!==u[x]&&(u[x]=S,g=!0);else{const N=fr(x);a[N]=Hu(p,h,N,S,t,!1)}else S!==u[x]&&(u[x]=S,g=!0)}}}else{km(t,n,a,u)&&(g=!0);let m;for(const b in h)(!n||!Jt(n,b)&&((m=Xi(b))===b||!Jt(n,m)))&&(p?r&&(r[b]!==void 0||r[m]!==void 0)&&(a[b]=Hu(p,h,b,void 0,t,!0)):delete a[b]);if(u!==h)for(const b in u)(!n||!Jt(n,b)&&!0)&&(delete u[b],g=!0)}g&&$r(t,"set","$attrs")}function km(t,n,r,o){const[a,u]=t.propsOptions;let f=!1,h;if(n)for(let p in n){if(ua(p))continue;const g=n[p];let m;a&&Jt(a,m=fr(p))?!u||!u.includes(m)?r[m]=g:(h||(h={}))[m]=g:Ja(t.emitsOptions,p)||(!(p in o)||g!==o[p])&&(o[p]=g,f=!0)}if(u){const p=le(r),g=h||me;for(let m=0;m<u.length;m++){const b=u[m];r[b]=Hu(a,p,b,g[b],t,!Jt(g,b))}}return f}function Hu(t,n,r,o,a,u){const f=t[r];if(f!=null){const h=Jt(f,"default");if(h&&o===void 0){const p=f.default;if(f.type!==Function&&Wt(p)){const{propsDefaults:g}=a;r in g?o=g[r]:(Ro(a),o=g[r]=p.call(null,n),Bi())}else o=p}f[0]&&(u&&!h?o=!1:f[1]&&(o===""||o===Xi(r))&&(o=!0))}return o}function Cm(t,n,r=!1){const o=n.propsCache,a=o.get(t);if(a)return a;const u=t.props,f={},h=[];let p=!1;if(!Wt(t)){const m=b=>{p=!0;const[x,S]=Cm(b,n,!0);Xe(f,x),S&&h.push(...S)};!r&&n.mixins.length&&n.mixins.forEach(m),t.extends&&m(t.extends),t.mixins&&t.mixins.forEach(m)}if(!u&&!p)return xe(t)&&o.set(t,Co),Co;if(Ht(u))for(let m=0;m<u.length;m++){const b=fr(u[m]);Dp(b)&&(f[b]=me)}else if(u)for(const m in u){const b=fr(m);if(Dp(b)){const x=u[m],S=f[b]=Ht(x)||Wt(x)?{type:x}:x;if(S){const N=Ip(Boolean,S.type),A=Ip(String,S.type);S[0]=N>-1,S[1]=A<0||N<A,(N>-1||Jt(S,"default"))&&h.push(b)}}}const g=[f,h];return xe(t)&&o.set(t,g),g}function Dp(t){return t[0]!=="$"}function Rp(t){const n=t&&t.toString().match(/^\s*function (\w+)/);return n?n[1]:t===null?"null":""}function zp(t,n){return Rp(t)===Rp(n)}function Ip(t,n){return Ht(n)?n.findIndex(r=>zp(r,t)):Wt(n)&&zp(n,t)?0:-1}const Tm=t=>t[0]==="_"||t==="$stable",Bf=t=>Ht(t)?t.map(Un):[Un(t)],O1=(t,n,r)=>{if(n._n)return n;const o=Yt((...a)=>Bf(n(...a)),r);return o._c=!1,o},Lm=(t,n,r)=>{const o=t._ctx;for(const a in t){if(Tm(a))continue;const u=t[a];if(Wt(u))n[a]=O1(a,u,o);else if(u!=null){const f=Bf(u);n[a]=()=>f}}},Em=(t,n)=>{const r=Bf(n);t.slots.default=()=>r},$1=(t,n)=>{if(t.vnode.shapeFlag&32){const r=n._;r?(t.slots=le(n),Sa(n,"_",r)):Lm(n,t.slots={})}else t.slots={},n&&Em(t,n);Sa(t.slots,rc,1)},D1=(t,n,r)=>{const{vnode:o,slots:a}=t;let u=!0,f=me;if(o.shapeFlag&32){const h=n._;h?r&&h===1?u=!1:(Xe(a,n),!r&&h===1&&delete a._):(u=!n.$stable,Lm(n,a)),f=n}else n&&(Em(t,n),f={default:1});if(u)for(const h in a)!Tm(h)&&!(h in f)&&delete a[h]};function Am(){return{app:null,config:{isNativeTag:rx,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 R1=0;function z1(t,n){return function(o,a=null){Wt(o)||(o=Object.assign({},o)),a!=null&&!xe(a)&&(a=null);const u=Am(),f=new Set;let h=!1;const p=u.app={_uid:R1++,_component:o,_props:a,_container:null,_context:u,_instance:null,version:t_,get config(){return u.config},set config(g){},use(g,...m){return f.has(g)||(g&&Wt(g.install)?(f.add(g),g.install(p,...m)):Wt(g)&&(f.add(g),g(p,...m))),p},mixin(g){return u.mixins.includes(g)||u.mixins.push(g),p},component(g,m){return m?(u.components[g]=m,p):u.components[g]},directive(g,m){return m?(u.directives[g]=m,p):u.directives[g]},mount(g,m,b){if(!h){const x=Rt(o,a);return x.appContext=u,m&&n?n(x,g):t(x,g,b),h=!0,p._container=g,g.__vue_app__=p,oc(x.component)||x.component.proxy}},unmount(){h&&(t(null,p._container),delete p._container.__vue_app__)},provide(g,m){return u.provides[g]=m,p}};return p}}function Bu(t,n,r,o,a=!1){if(Ht(t)){t.forEach((x,S)=>Bu(x,n&&(Ht(n)?n[S]:n),r,o,a));return}if(zs(o)&&!a)return;const u=o.shapeFlag&4?oc(o.component)||o.component.proxy:o.el,f=a?null:u,{i:h,r:p}=t,g=n&&n.r,m=h.refs===me?h.refs={}:h.refs,b=h.setupState;if(g!=null&&g!==p&&(Ue(g)?(m[g]=null,Jt(b,g)&&(b[g]=null)):Ie(g)&&(g.value=null)),Wt(p))ui(p,h,12,[f,m]);else{const x=Ue(p),S=Ie(p);if(x||S){const N=()=>{if(t.f){const A=x?m[p]:p.value;a?Ht(A)&&_f(A,u):Ht(A)?A.includes(u)||A.push(u):x?(m[p]=[u],Jt(b,p)&&(b[p]=m[p])):(p.value=[u],t.k&&(m[t.k]=p.value))}else x?(m[p]=f,Jt(b,p)&&(b[p]=f)):S&&(p.value=f,t.k&&(m[t.k]=f))};f?(N.id=-1,xn(N,r)):N()}}}const xn=c1;function I1(t){return F1(t)}function F1(t,n){const r=cx();r.__VUE__=!0;const{insert:o,remove:a,patchProp:u,createElement:f,createText:h,createComment:p,setText:g,setElementText:m,parentNode:b,nextSibling:x,setScopeId:S=Vn,insertStaticContent:N}=t,A=(P,F,Y,nt=null,ot=null,pt=null,lt=!1,gt=null,xt=!!F.dynamicChildren)=>{if(P===F)return;P&&!ar(P,F)&&(nt=V(P),Bt(P,ot,pt,!0),P=null),F.patchFlag===-2&&(xt=!1,F.dynamicChildren=null);const{type:at,ref:$t,shapeFlag:Nt}=F;switch(at){case Wf:L(P,F,Y,nt);break;case Cn:C(P,F,Y,nt);break;case mu:P==null&&E(F,Y,nt,lt);break;case ue:ft(P,F,Y,nt,ot,pt,lt,gt,xt);break;default:Nt&1?G(P,F,Y,nt,ot,pt,lt,gt,xt):Nt&6?U(P,F,Y,nt,ot,pt,lt,gt,xt):(Nt&64||Nt&128)&&at.process(P,F,Y,nt,ot,pt,lt,gt,xt,Ct)}$t!=null&&ot&&Bu($t,P&&P.ref,pt,F||P,!F)},L=(P,F,Y,nt)=>{if(P==null)o(F.el=h(F.children),Y,nt);else{const ot=F.el=P.el;F.children!==P.children&&g(ot,F.children)}},C=(P,F,Y,nt)=>{P==null?o(F.el=p(F.children||""),Y,nt):F.el=P.el},E=(P,F,Y,nt)=>{[P.el,P.anchor]=N(P.children,F,Y,nt,P.el,P.anchor)},z=({el:P,anchor:F},Y,nt)=>{let ot;for(;P&&P!==F;)ot=x(P),o(P,Y,nt),P=ot;o(F,Y,nt)},D=({el:P,anchor:F})=>{let Y;for(;P&&P!==F;)Y=x(P),a(P),P=Y;a(F)},G=(P,F,Y,nt,ot,pt,lt,gt,xt)=>{lt=lt||F.type==="svg",P==null?j(F,Y,nt,ot,pt,lt,gt,xt):dt(P,F,ot,pt,lt,gt,xt)},j=(P,F,Y,nt,ot,pt,lt,gt)=>{let xt,at;const{type:$t,props:Nt,shapeFlag:Ot,transition:zt,dirs:jt}=P;if(xt=P.el=f(P.type,pt,Nt&&Nt.is,Nt),Ot&8?m(xt,P.children):Ot&16&&J(P.children,xt,null,nt,ot,pt&&$t!=="foreignObject",lt,gt),jt&&Ai(P,null,nt,"created"),Nt){for(const Qt in Nt)Qt!=="value"&&!ua(Qt)&&u(xt,Qt,null,Nt[Qt],pt,P.children,nt,ot,tt);"value"in Nt&&u(xt,"value",null,Nt.value),(at=Nt.onVnodeBeforeMount)&&ir(at,nt,P)}it(xt,P,P.scopeId,lt,nt),jt&&Ai(P,null,nt,"beforeMount");const te=(!ot||ot&&!ot.pendingBranch)&&zt&&!zt.persisted;te&&zt.beforeEnter(xt),o(xt,F,Y),((at=Nt&&Nt.onVnodeMounted)||te||jt)&&xn(()=>{at&&ir(at,nt,P),te&&zt.enter(xt),jt&&Ai(P,null,nt,"mounted")},ot)},it=(P,F,Y,nt,ot)=>{if(Y&&S(P,Y),nt)for(let pt=0;pt<nt.length;pt++)S(P,nt[pt]);if(ot){let pt=ot.subTree;if(F===pt){const lt=ot.vnode;it(P,lt,lt.scopeId,lt.slotScopeIds,ot.parent)}}},J=(P,F,Y,nt,ot,pt,lt,gt,xt=0)=>{for(let at=xt;at<P.length;at++){const $t=P[at]=gt?ri(P[at]):Un(P[at]);A(null,$t,F,Y,nt,ot,pt,lt,gt)}},dt=(P,F,Y,nt,ot,pt,lt)=>{const gt=F.el=P.el;let{patchFlag:xt,dynamicChildren:at,dirs:$t}=F;xt|=P.patchFlag&16;const Nt=P.props||me,Ot=F.props||me;let zt;Y&&Mi(Y,!1),(zt=Ot.onVnodeBeforeUpdate)&&ir(zt,Y,F,P),$t&&Ai(F,P,Y,"beforeUpdate"),Y&&Mi(Y,!0);const jt=ot&&F.type!=="foreignObject";if(at?vt(P.dynamicChildren,at,gt,Y,nt,jt,pt):lt||et(P,F,gt,null,Y,nt,jt,pt,!1),xt>0){if(xt&16)kt(gt,F,Nt,Ot,Y,nt,ot);else if(xt&2&&Nt.class!==Ot.class&&u(gt,"class",null,Ot.class,ot),xt&4&&u(gt,"style",Nt.style,Ot.style,ot),xt&8){const te=F.dynamicProps;for(let Qt=0;Qt<te.length;Qt++){const se=te[Qt],Xt=Nt[se],mn=Ot[se];(mn!==Xt||se==="value")&&u(gt,se,Xt,mn,ot,P.children,Y,nt,tt)}}xt&1&&P.children!==F.children&&m(gt,F.children)}else!lt&&at==null&&kt(gt,F,Nt,Ot,Y,nt,ot);((zt=Ot.onVnodeUpdated)||$t)&&xn(()=>{zt&&ir(zt,Y,F,P),$t&&Ai(F,P,Y,"updated")},nt)},vt=(P,F,Y,nt,ot,pt,lt)=>{for(let gt=0;gt<F.length;gt++){const xt=P[gt],at=F[gt],$t=xt.el&&(xt.type===ue||!ar(xt,at)||xt.shapeFlag&70)?b(xt.el):Y;A(xt,at,$t,null,nt,ot,pt,lt,!0)}},kt=(P,F,Y,nt,ot,pt,lt)=>{if(Y!==nt){if(Y!==me)for(const gt in Y)!ua(gt)&&!(gt in nt)&&u(P,gt,Y[gt],null,lt,F.children,ot,pt,tt);for(const gt in nt){if(ua(gt))continue;const xt=nt[gt],at=Y[gt];xt!==at&&gt!=="value"&&u(P,gt,at,xt,lt,F.children,ot,pt,tt)}"value"in nt&&u(P,"value",Y.value,nt.value)}},ft=(P,F,Y,nt,ot,pt,lt,gt,xt)=>{const at=F.el=P?P.el:h(""),$t=F.anchor=P?P.anchor:h("");let{patchFlag:Nt,dynamicChildren:Ot,slotScopeIds:zt}=F;zt&&(gt=gt?gt.concat(zt):zt),P==null?(o(at,Y,nt),o($t,Y,nt),J(F.children,Y,$t,ot,pt,lt,gt,xt)):Nt>0&&Nt&64&&Ot&&P.dynamicChildren?(vt(P.dynamicChildren,Ot,Y,ot,pt,lt,gt),(F.key!=null||ot&&F===ot.subTree)&&Mm(P,F,!0)):et(P,F,Y,$t,ot,pt,lt,gt,xt)},U=(P,F,Y,nt,ot,pt,lt,gt,xt)=>{F.slotScopeIds=gt,P==null?F.shapeFlag&512?ot.ctx.activate(F,Y,nt,lt,xt):I(F,Y,nt,ot,pt,lt,xt):k(P,F,xt)},I=(P,F,Y,nt,ot,pt,lt)=>{const gt=P.component=G1(P,nt,ot);if(ec(P)&&(gt.ctx.renderer=Ct),V1(gt),gt.asyncDep){if(ot&&ot.registerDep(gt,H),!P.el){const xt=gt.subTree=Rt(Cn);C(null,xt,F,Y)}return}H(gt,P,F,Y,ot,pt,lt)},k=(P,F,Y)=>{const nt=F.component=P.component;if(e1(P,F,Y))if(nt.asyncDep&&!nt.asyncResolved){W(nt,F,Y);return}else nt.next=F,Kx(nt.update),nt.update();else F.el=P.el,nt.vnode=F},H=(P,F,Y,nt,ot,pt,lt)=>{const gt=()=>{if(P.isMounted){let{next:$t,bu:Nt,u:Ot,parent:zt,vnode:jt}=P,te=$t,Qt;Mi(P,!1),$t?($t.el=jt.el,W(P,$t,lt)):$t=jt,Nt&&fa(Nt),(Qt=$t.props&&$t.props.onVnodeBeforeUpdate)&&ir(Qt,zt,$t,jt),Mi(P,!0);const se=gu(P),Xt=P.subTree;P.subTree=se,A(Xt,se,b(Xt.el),V(Xt),P,ot,pt),$t.el=se.el,te===null&&Rf(P,se.el),Ot&&xn(Ot,ot),(Qt=$t.props&&$t.props.onVnodeUpdated)&&xn(()=>ir(Qt,zt,$t,jt),ot)}else{let $t;const{el:Nt,props:Ot}=F,{bm:zt,m:jt,parent:te}=P,Qt=zs(F);if(Mi(P,!1),zt&&fa(zt),!Qt&&($t=Ot&&Ot.onVnodeBeforeMount)&&ir($t,te,F),Mi(P,!0),Nt&&Lt){const se=()=>{P.subTree=gu(P),Lt(Nt,P.subTree,P,ot,null)};Qt?F.type.__asyncLoader().then(()=>!P.isUnmounted&&se()):se()}else{const se=P.subTree=gu(P);A(null,se,Y,nt,P,ot,pt),F.el=se.el}if(jt&&xn(jt,ot),!Qt&&($t=Ot&&Ot.onVnodeMounted)){const se=F;xn(()=>ir($t,te,se),ot)}(F.shapeFlag&256||te&&zs(te.vnode)&&te.vnode.shapeFlag&256)&&P.a&&xn(P.a,ot),P.isMounted=!0,F=Y=nt=null}},xt=P.effect=new Tf(gt,()=>Df(at),P.scope),at=P.update=()=>xt.run();at.id=P.uid,Mi(P,!0),at()},W=(P,F,Y)=>{F.component=P;const nt=P.vnode.props;P.vnode=F,P.next=null,P1(P,F.props,nt,Y),D1(P,F.children,Y),Go(),Lp(),Vo()},et=(P,F,Y,nt,ot,pt,lt,gt,xt=!1)=>{const at=P&&P.children,$t=P?P.shapeFlag:0,Nt=F.children,{patchFlag:Ot,shapeFlag:zt}=F;if(Ot>0){if(Ot&128){Et(at,Nt,Y,nt,ot,pt,lt,gt,xt);return}else if(Ot&256){wt(at,Nt,Y,nt,ot,pt,lt,gt,xt);return}}zt&8?($t&16&&tt(at,ot,pt),Nt!==at&&m(Y,Nt)):$t&16?zt&16?Et(at,Nt,Y,nt,ot,pt,lt,gt,xt):tt(at,ot,pt,!0):($t&8&&m(Y,""),zt&16&&J(Nt,Y,nt,ot,pt,lt,gt,xt))},wt=(P,F,Y,nt,ot,pt,lt,gt,xt)=>{P=P||Co,F=F||Co;const at=P.length,$t=F.length,Nt=Math.min(at,$t);let Ot;for(Ot=0;Ot<Nt;Ot++){const zt=F[Ot]=xt?ri(F[Ot]):Un(F[Ot]);A(P[Ot],zt,Y,null,ot,pt,lt,gt,xt)}at>$t?tt(P,ot,pt,!0,!1,Nt):J(F,Y,nt,ot,pt,lt,gt,xt,Nt)},Et=(P,F,Y,nt,ot,pt,lt,gt,xt)=>{let at=0;const $t=F.length;let Nt=P.length-1,Ot=$t-1;for(;at<=Nt&&at<=Ot;){const zt=P[at],jt=F[at]=xt?ri(F[at]):Un(F[at]);if(ar(zt,jt))A(zt,jt,Y,null,ot,pt,lt,gt,xt);else break;at++}for(;at<=Nt&&at<=Ot;){const zt=P[Nt],jt=F[Ot]=xt?ri(F[Ot]):Un(F[Ot]);if(ar(zt,jt))A(zt,jt,Y,null,ot,pt,lt,gt,xt);else break;Nt--,Ot--}if(at>Nt){if(at<=Ot){const zt=Ot+1,jt=zt<$t?F[zt].el:nt;for(;at<=Ot;)A(null,F[at]=xt?ri(F[at]):Un(F[at]),Y,jt,ot,pt,lt,gt,xt),at++}}else if(at>Ot)for(;at<=Nt;)Bt(P[at],ot,pt,!0),at++;else{const zt=at,jt=at,te=new Map;for(at=jt;at<=Ot;at++){const be=F[at]=xt?ri(F[at]):Un(F[at]);be.key!=null&&te.set(be.key,at)}let Qt,se=0;const Xt=Ot-jt+1;let mn=!1,Ln=0;const qe=new Array(Xt);for(at=0;at<Xt;at++)qe[at]=0;for(at=zt;at<=Nt;at++){const be=P[at];if(se>=Xt){Bt(be,ot,pt,!0);continue}let nn;if(be.key!=null)nn=te.get(be.key);else for(Qt=jt;Qt<=Ot;Qt++)if(qe[Qt-jt]===0&&ar(be,F[Qt])){nn=Qt;break}nn===void 0?Bt(be,ot,pt,!0):(qe[nn-jt]=at+1,nn>=Ln?Ln=nn:mn=!0,A(be,F[nn],Y,null,ot,pt,lt,gt,xt),se++)}const Zi=mn?q1(qe):Co;for(Qt=Zi.length-1,at=Xt-1;at>=0;at--){const be=jt+at,nn=F[be],bt=be+1<$t?F[be+1].el:nt;qe[at]===0?A(null,nn,Y,bt,ot,pt,lt,gt,xt):mn&&(Qt<0||at!==Zi[Qt]?qt(nn,Y,bt,2):Qt--)}}},qt=(P,F,Y,nt,ot=null)=>{const{el:pt,type:lt,transition:gt,children:xt,shapeFlag:at}=P;if(at&6){qt(P.component.subTree,F,Y,nt);return}if(at&128){P.suspense.move(F,Y,nt);return}if(at&64){lt.move(P,F,Y,Ct);return}if(lt===ue){o(pt,F,Y);for(let Nt=0;Nt<xt.length;Nt++)qt(xt[Nt],F,Y,nt);o(P.anchor,F,Y);return}if(lt===mu){z(P,F,Y);return}if(nt!==2&&at&1&&gt)if(nt===0)gt.beforeEnter(pt),o(pt,F,Y),xn(()=>gt.enter(pt),ot);else{const{leave:Nt,delayLeave:Ot,afterLeave:zt}=gt,jt=()=>o(pt,F,Y),te=()=>{Nt(pt,()=>{jt(),zt&&zt()})};Ot?Ot(pt,jt,te):te()}else o(pt,F,Y)},Bt=(P,F,Y,nt=!1,ot=!1)=>{const{type:pt,props:lt,ref:gt,children:xt,dynamicChildren:at,shapeFlag:$t,patchFlag:Nt,dirs:Ot}=P;if(gt!=null&&Bu(gt,null,Y,P,!0),$t&256){F.ctx.deactivate(P);return}const zt=$t&1&&Ot,jt=!zs(P);let te;if(jt&&(te=lt&&lt.onVnodeBeforeUnmount)&&ir(te,F,P),$t&6)Q(P.component,Y,nt);else{if($t&128){P.suspense.unmount(Y,nt);return}zt&&Ai(P,null,F,"beforeUnmount"),$t&64?P.type.remove(P,F,Y,ot,Ct,nt):at&&(pt!==ue||Nt>0&&Nt&64)?tt(at,F,Y,!1,!0):(pt===ue&&Nt&384||!ot&&$t&16)&&tt(xt,F,Y),nt&&Gt(P)}(jt&&(te=lt&&lt.onVnodeUnmounted)||zt)&&xn(()=>{te&&ir(te,F,P),zt&&Ai(P,null,F,"unmounted")},Y)},Gt=P=>{const{type:F,el:Y,anchor:nt,transition:ot}=P;if(F===ue){ne(Y,nt);return}if(F===mu){D(P);return}const pt=()=>{a(Y),ot&&!ot.persisted&&ot.afterLeave&&ot.afterLeave()};if(P.shapeFlag&1&&ot&&!ot.persisted){const{leave:lt,delayLeave:gt}=ot,xt=()=>lt(Y,pt);gt?gt(P.el,pt,xt):xt()}else pt()},ne=(P,F)=>{let Y;for(;P!==F;)Y=x(P),a(P),P=Y;a(F)},Q=(P,F,Y)=>{const{bum:nt,scope:ot,update:pt,subTree:lt,um:gt}=P;nt&&fa(nt),ot.stop(),pt&&(pt.active=!1,Bt(lt,P,F,Y)),gt&&xn(gt,F),xn(()=>{P.isUnmounted=!0},F),F&&F.pendingBranch&&!F.isUnmounted&&P.asyncDep&&!P.asyncResolved&&P.suspenseId===F.pendingId&&(F.deps--,F.deps===0&&F.resolve())},tt=(P,F,Y,nt=!1,ot=!1,pt=0)=>{for(let lt=pt;lt<P.length;lt++)Bt(P[lt],F,Y,nt,ot)},V=P=>P.shapeFlag&6?V(P.component.subTree):P.shapeFlag&128?P.suspense.next():x(P.anchor||P.el),st=(P,F,Y)=>{P==null?F._vnode&&Bt(F._vnode,null,null,!0):A(F._vnode||null,P,F,null,null,null,Y),Lp(),cm(),F._vnode=P},Ct={p:A,um:Bt,m:qt,r:Gt,mt:I,mc:J,pc:et,pbc:vt,n:V,o:t};let de,Lt;return n&&([de,Lt]=n(Ct)),{render:st,hydrate:de,createApp:z1(st,de)}}function Mi({effect:t,update:n},r){t.allowRecurse=n.allowRecurse=r}function Mm(t,n,r=!1){const o=t.children,a=n.children;if(Ht(o)&&Ht(a))for(let u=0;u<o.length;u++){const f=o[u];let h=a[u];h.shapeFlag&1&&!h.dynamicChildren&&((h.patchFlag<=0||h.patchFlag===32)&&(h=a[u]=ri(a[u]),h.el=f.el),r||Mm(f,h))}}function q1(t){const n=t.slice(),r=[0];let o,a,u,f,h;const p=t.length;for(o=0;o<p;o++){const g=t[o];if(g!==0){if(a=r[r.length-1],t[a]<g){n[o]=a,r.push(o);continue}for(u=0,f=r.length-1;u<f;)h=u+f>>1,t[r[h]]<g?u=h+1:f=h;g<t[r[u]]&&(u>0&&(n[o]=r[u-1]),r[u]=o)}}for(u=r.length,f=r[u-1];u-- >0;)r[u]=f,f=n[f];return r}const H1=t=>t.__isTeleport,ue=Symbol(void 0),Wf=Symbol(void 0),Cn=Symbol(void 0),mu=Symbol(void 0),Is=[];let zn=null;function ht(t=!1){Is.push(zn=t?null:[])}function Nm(){Is.pop(),zn=Is[Is.length-1]||null}let Do=1;function Fp(t){Do+=t}function Pm(t){return t.dynamicChildren=Do>0?zn||Co:null,Nm(),Do>0&&zn&&zn.push(t),t}function Mt(t,n,r,o,a,u){return Pm(ut(t,n,r,o,a,u,!0))}function ce(t,n,r,o,a){return Pm(Rt(t,n,r,o,a,!0))}function Xs(t){return t?t.__v_isVNode===!0:!1}function ar(t,n){return t.type===n.type&&t.key===n.key}const rc="__vInternal",Om=({key:t})=>t!=null?t:null,da=({ref:t,ref_key:n,ref_for:r})=>t!=null?Ue(t)||Ie(t)||Wt(t)?{i:en,r:t,k:n,f:!!r}:t:null;function ut(t,n=null,r=null,o=0,a=null,u=t===ue?0:1,f=!1,h=!1){const p={__v_isVNode:!0,__v_skip:!0,type:t,props:n,key:n&&Om(n),ref:n&&da(n),scopeId:tc,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:u,patchFlag:o,dynamicProps:a,dynamicChildren:null,appContext:null};return h?(Uf(p,r),u&128&&t.normalize(p)):r&&(p.shapeFlag|=Ue(r)?8:16),Do>0&&!f&&zn&&(p.patchFlag>0||u&6)&&p.patchFlag!==32&&zn.push(p),p}const Rt=B1;function B1(t,n=null,r=null,o=0,a=null,u=!1){if((!t||t===k1)&&(t=Cn),Xs(t)){const h=pi(t,n,!0);return r&&Uf(h,r),Do>0&&!u&&zn&&(h.shapeFlag&6?zn[zn.indexOf(t)]=h:zn.push(h)),h.patchFlag|=-2,h}if(Z1(t)&&(t=t.__vccOpts),n){n=W1(n);let{class:h,style:p}=n;h&&!Ue(h)&&(n.class=ge(h)),xe(p)&&(tm(p)&&!Ht(p)&&(p=Xe({},p)),n.style=kn(p))}const f=Ue(t)?1:n1(t)?128:H1(t)?64:xe(t)?4:Wt(t)?2:0;return ut(t,n,r,o,a,f,u,!0)}function W1(t){return t?tm(t)||rc in t?Xe({},t):t:null}function pi(t,n,r=!1){const{props:o,ref:a,patchFlag:u,children:f}=t,h=n?hi(o||{},n):o;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:h,key:h&&Om(h),ref:n&&n.ref?r&&a?Ht(a)?a.concat(da(n)):[a,da(n)]:da(n):a,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:f,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:n&&t.type!==ue?u===-1?16:u|16:u,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&pi(t.ssContent),ssFallback:t.ssFallback&&pi(t.ssFallback),el:t.el,anchor:t.anchor}}function fn(t=" ",n=0){return Rt(Wf,null,t,n)}function ye(t="",n=!1){return n?(ht(),ce(Cn,null,t)):Rt(Cn,null,t)}function Un(t){return t==null||typeof t=="boolean"?Rt(Cn):Ht(t)?Rt(ue,null,t.slice()):typeof t=="object"?ri(t):Rt(Wf,null,String(t))}function ri(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:pi(t)}function Uf(t,n){let r=0;const{shapeFlag:o}=t;if(n==null)n=null;else if(Ht(n))r=16;else if(typeof n=="object")if(o&65){const a=n.default;a&&(a._c&&(a._d=!1),Uf(t,a()),a._c&&(a._d=!0));return}else{r=32;const a=n._;!a&&!(rc in n)?n._ctx=en:a===3&&en&&(en.slots._===1?n._=1:(n._=2,t.patchFlag|=1024))}else Wt(n)?(n={default:n,_ctx:en},r=32):(n=String(n),o&64?(r=16,n=[fn(n)]):r=8);t.children=n,t.shapeFlag|=r}function hi(...t){const n={};for(let r=0;r<t.length;r++){const o=t[r];for(const a in o)if(a==="class")n.class!==o.class&&(n.class=ge([n.class,o.class]));else if(a==="style")n.style=kn([n.style,o.style]);else if(Ka(a)){const u=n[a],f=o[a];f&&u!==f&&!(Ht(u)&&u.includes(f))&&(n[a]=u?[].concat(u,f):f)}else a!==""&&(n[a]=o[a])}return n}function ir(t,n,r,o=null){In(t,n,7,[r,o])}const U1=Am();let j1=0;function G1(t,n,r){const o=t.type,a=(n?n.appContext:t.appContext)||U1,u={uid:j1++,vnode:t,type:o,parent:n,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new ux(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Cm(o,a),emitsOptions:fm(o,a),emit:null,emitted:null,propsDefaults:me,inheritAttrs:o.inheritAttrs,ctx:me,data:me,props:me,attrs:me,slots:me,refs:me,setupState:me,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 u.ctx={_:u},u.root=n?n.root:u,u.emit=Yx.bind(null,u),t.ce&&t.ce(u),u}let Be=null;const ic=()=>Be||en,Ro=t=>{Be=t,t.scope.on()},Bi=()=>{Be&&Be.scope.off(),Be=null};function $m(t){return t.vnode.shapeFlag&4}let Ys=!1;function V1(t,n=!1){Ys=n;const{props:r,children:o}=t.vnode,a=$m(t);N1(t,r,a,n),$1(t,o);const u=a?K1(t,n):void 0;return Ys=!1,u}function K1(t,n){const r=t.type;t.accessCache=Object.create(null),t.proxy=Nf(new Proxy(t.ctx,C1));const{setup:o}=r;if(o){const a=t.setupContext=o.length>1?Rm(t):null;Ro(t),Go();const u=ui(o,t,0,[t.props,a]);if(Vo(),Bi(),qv(u)){if(u.then(Bi,Bi),n)return u.then(f=>{Wu(t,f,n)}).catch(f=>{ll(f,t,0)});t.asyncDep=u}else Wu(t,u,n)}else Dm(t,n)}function Wu(t,n,r){Wt(n)?t.type.__ssrInlineRender?t.ssrRender=n:t.render=n:xe(n)&&(t.setupState=im(n)),Dm(t,r)}let qp;function Dm(t,n,r){const o=t.type;if(!t.render){if(!n&&qp&&!o.render){const a=o.template||Hf(t).template;if(a){const{isCustomElement:u,compilerOptions:f}=t.appContext.config,{delimiters:h,compilerOptions:p}=o,g=Xe(Xe({isCustomElement:u,delimiters:h},f),p);o.render=qp(a,g)}}t.render=o.render||Vn}Ro(t),Go(),T1(t),Vo(),Bi()}function X1(t){return new Proxy(t.attrs,{get(n,r){return Pn(t,"get","$attrs"),n[r]}})}function Rm(t){const n=o=>{t.exposed=o||{}};let r;return{get attrs(){return r||(r=X1(t))},slots:t.slots,emit:t.emit,expose:n}}function oc(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(im(Nf(t.exposed)),{get(n,r){if(r in n)return n[r];if(r in Ta)return Ta[r](t)}}))}function Y1(t,n=!0){return Wt(t)?t.displayName||t.name:t.name||n&&t.__name}function Z1(t){return Wt(t)&&"__vccOpts"in t}const St=(t,n)=>jx(t,n,Ys);function Q1(){return J1().attrs}function J1(){const t=ic();return t.setupContext||(t.setupContext=Rm(t))}function ul(t,n,r){const o=arguments.length;return o===2?xe(n)&&!Ht(n)?Xs(n)?Rt(t,null,[n]):Rt(t,n):Rt(t,null,n):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&Xs(r)&&(r=[r]),Rt(t,n,r))}const t_="3.2.40",e_="http://www.w3.org/2000/svg",Ri=typeof document<"u"?document:null,Hp=Ri&&Ri.createElement("template"),n_={insert:(t,n,r)=>{n.insertBefore(t,r||null)},remove:t=>{const n=t.parentNode;n&&n.removeChild(t)},createElement:(t,n,r,o)=>{const a=n?Ri.createElementNS(e_,t):Ri.createElement(t,r?{is:r}:void 0);return t==="select"&&o&&o.multiple!=null&&a.setAttribute("multiple",o.multiple),a},createText:t=>Ri.createTextNode(t),createComment:t=>Ri.createComment(t),setText:(t,n)=>{t.nodeValue=n},setElementText:(t,n)=>{t.textContent=n},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Ri.querySelector(t),setScopeId(t,n){t.setAttribute(n,"")},insertStaticContent(t,n,r,o,a,u){const f=r?r.previousSibling:n.lastChild;if(a&&(a===u||a.nextSibling))for(;n.insertBefore(a.cloneNode(!0),r),!(a===u||!(a=a.nextSibling)););else{Hp.innerHTML=o?`<svg>${t}</svg>`:t;const h=Hp.content;if(o){const p=h.firstChild;for(;p.firstChild;)h.appendChild(p.firstChild);h.removeChild(p)}n.insertBefore(h,r)}return[f?f.nextSibling:n.firstChild,r?r.previousSibling:n.lastChild]}};function r_(t,n,r){const o=t._vtc;o&&(n=(n?[n,...o]:[...o]).join(" ")),n==null?t.removeAttribute("class"):r?t.setAttribute("class",n):t.className=n}function i_(t,n,r){const o=t.style,a=Ue(r);if(r&&!a){for(const u in r)Uu(o,u,r[u]);if(n&&!Ue(n))for(const u in n)r[u]==null&&Uu(o,u,"")}else{const u=o.display;a?n!==r&&(o.cssText=r):n&&t.removeAttribute("style"),"_vod"in t&&(o.display=u)}}const Bp=/\s*!important$/;function Uu(t,n,r){if(Ht(r))r.forEach(o=>Uu(t,n,o));else if(r==null&&(r=""),n.startsWith("--"))t.setProperty(n,r);else{const o=o_(t,n);Bp.test(r)?t.setProperty(Xi(o),r.replace(Bp,""),"important"):t[o]=r}}const Wp=["Webkit","Moz","ms"],yu={};function o_(t,n){const r=yu[n];if(r)return r;let o=fr(n);if(o!=="filter"&&o in t)return yu[n]=o;o=Za(o);for(let a=0;a<Wp.length;a++){const u=Wp[a]+o;if(u in t)return yu[n]=u}return n}const Up="http://www.w3.org/1999/xlink";function s_(t,n,r,o,a){if(o&&n.startsWith("xlink:"))r==null?t.removeAttributeNS(Up,n.slice(6,n.length)):t.setAttributeNS(Up,n,r);else{const u=Jw(n);r==null||u&&!zv(r)?t.removeAttribute(n):t.setAttribute(n,u?"":r)}}function l_(t,n,r,o,a,u,f){if(n==="innerHTML"||n==="textContent"){o&&f(o,a,u),t[n]=r==null?"":r;return}if(n==="value"&&t.tagName!=="PROGRESS"&&!t.tagName.includes("-")){t._value=r;const p=r==null?"":r;(t.value!==p||t.tagName==="OPTION")&&(t.value=p),r==null&&t.removeAttribute(n);return}let h=!1;if(r===""||r==null){const p=typeof t[n];p==="boolean"?r=zv(r):r==null&&p==="string"?(r="",h=!0):p==="number"&&(r=0,h=!0)}try{t[n]=r}catch{}h&&t.removeAttribute(n)}const[zm,a_]=(()=>{let t=Date.now,n=!1;if(typeof window<"u"){Date.now()>document.createEvent("Event").timeStamp&&(t=performance.now.bind(performance));const r=navigator.userAgent.match(/firefox\/(\d+)/i);n=!!(r&&Number(r[1])<=53)}return[t,n]})();let ju=0;const c_=Promise.resolve(),u_=()=>{ju=0},f_=()=>ju||(c_.then(u_),ju=zm());function So(t,n,r,o){t.addEventListener(n,r,o)}function h_(t,n,r,o){t.removeEventListener(n,r,o)}function d_(t,n,r,o,a=null){const u=t._vei||(t._vei={}),f=u[n];if(o&&f)f.value=o;else{const[h,p]=p_(n);if(o){const g=u[n]=g_(o,a);So(t,h,g,p)}else f&&(h_(t,h,f,p),u[n]=void 0)}}const jp=/(?:Once|Passive|Capture)$/;function p_(t){let n;if(jp.test(t)){n={};let o;for(;o=t.match(jp);)t=t.slice(0,t.length-o[0].length),n[o[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Xi(t.slice(2)),n]}function g_(t,n){const r=o=>{const a=o.timeStamp||zm();(a_||a>=r.attached-1)&&In(v_(o,r.value),n,5,[o])};return r.value=t,r.attached=f_(),r}function v_(t,n){if(Ht(n)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},n.map(o=>a=>!a._stopped&&o&&o(a))}else return n}const Gp=/^on[a-z]/,m_=(t,n,r,o,a=!1,u,f,h,p)=>{n==="class"?r_(t,o,a):n==="style"?i_(t,r,o):Ka(n)?xf(n)||d_(t,n,r,o,f):(n[0]==="."?(n=n.slice(1),!0):n[0]==="^"?(n=n.slice(1),!1):y_(t,n,o,a))?l_(t,n,o,u,f,h,p):(n==="true-value"?t._trueValue=o:n==="false-value"&&(t._falseValue=o),s_(t,n,o,a))};function y_(t,n,r,o){return o?!!(n==="innerHTML"||n==="textContent"||n in t&&Gp.test(n)&&Wt(r)):n==="spellcheck"||n==="draggable"||n==="translate"||n==="form"||n==="list"&&t.tagName==="INPUT"||n==="type"&&t.tagName==="TEXTAREA"||Gp.test(n)&&Ue(r)?!1:n in t}const ti="transition",As="animation",jf=(t,{slots:n})=>ul(gm,b_(t),n);jf.displayName="Transition";const Im={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};jf.props=Xe({},gm.props,Im);const Ni=(t,n=[])=>{Ht(t)?t.forEach(r=>r(...n)):t&&t(...n)},Vp=t=>t?Ht(t)?t.some(n=>n.length>1):t.length>1:!1;function b_(t){const n={};for(const ft in t)ft in Im||(n[ft]=t[ft]);if(t.css===!1)return n;const{name:r="v",type:o,duration:a,enterFromClass:u=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:h=`${r}-enter-to`,appearFromClass:p=u,appearActiveClass:g=f,appearToClass:m=h,leaveFromClass:b=`${r}-leave-from`,leaveActiveClass:x=`${r}-leave-active`,leaveToClass:S=`${r}-leave-to`}=t,N=w_(a),A=N&&N[0],L=N&&N[1],{onBeforeEnter:C,onEnter:E,onEnterCancelled:z,onLeave:D,onLeaveCancelled:G,onBeforeAppear:j=C,onAppear:it=E,onAppearCancelled:J=z}=n,dt=(ft,U,I)=>{Pi(ft,U?m:h),Pi(ft,U?g:f),I&&I()},vt=(ft,U)=>{ft._isLeaving=!1,Pi(ft,b),Pi(ft,S),Pi(ft,x),U&&U()},kt=ft=>(U,I)=>{const k=ft?it:E,H=()=>dt(U,ft,I);Ni(k,[U,H]),Kp(()=>{Pi(U,ft?p:u),ei(U,ft?m:h),Vp(k)||Xp(U,o,A,H)})};return Xe(n,{onBeforeEnter(ft){Ni(C,[ft]),ei(ft,u),ei(ft,f)},onBeforeAppear(ft){Ni(j,[ft]),ei(ft,p),ei(ft,g)},onEnter:kt(!1),onAppear:kt(!0),onLeave(ft,U){ft._isLeaving=!0;const I=()=>vt(ft,U);ei(ft,b),S_(),ei(ft,x),Kp(()=>{!ft._isLeaving||(Pi(ft,b),ei(ft,S),Vp(D)||Xp(ft,o,L,I))}),Ni(D,[ft,I])},onEnterCancelled(ft){dt(ft,!1),Ni(z,[ft])},onAppearCancelled(ft){dt(ft,!0),Ni(J,[ft])},onLeaveCancelled(ft){vt(ft),Ni(G,[ft])}})}function w_(t){if(t==null)return null;if(xe(t))return[bu(t.enter),bu(t.leave)];{const n=bu(t);return[n,n]}}function bu(t){return Us(t)}function ei(t,n){n.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t._vtc||(t._vtc=new Set)).add(n)}function Pi(t,n){n.split(/\s+/).forEach(o=>o&&t.classList.remove(o));const{_vtc:r}=t;r&&(r.delete(n),r.size||(t._vtc=void 0))}function Kp(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let x_=0;function Xp(t,n,r,o){const a=t._endId=++x_,u=()=>{a===t._endId&&o()};if(r)return setTimeout(u,r);const{type:f,timeout:h,propCount:p}=__(t,n);if(!f)return o();const g=f+"end";let m=0;const b=()=>{t.removeEventListener(g,x),u()},x=S=>{S.target===t&&++m>=p&&b()};setTimeout(()=>{m<p&&b()},h+1),t.addEventListener(g,x)}function __(t,n){const r=window.getComputedStyle(t),o=N=>(r[N]||"").split(", "),a=o(ti+"Delay"),u=o(ti+"Duration"),f=Yp(a,u),h=o(As+"Delay"),p=o(As+"Duration"),g=Yp(h,p);let m=null,b=0,x=0;n===ti?f>0&&(m=ti,b=f,x=u.length):n===As?g>0&&(m=As,b=g,x=p.length):(b=Math.max(f,g),m=b>0?f>g?ti:As:null,x=m?m===ti?u.length:p.length:0);const S=m===ti&&/\b(transform|all)(,|$)/.test(r[ti+"Property"]);return{type:m,timeout:b,propCount:x,hasTransform:S}}function Yp(t,n){for(;t.length<n.length;)t=t.concat(t);return Math.max(...n.map((r,o)=>Zp(r)+Zp(t[o])))}function Zp(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function S_(){return document.body.offsetHeight}const Qp=t=>{const n=t.props["onUpdate:modelValue"]||!1;return Ht(n)?r=>fa(n,r):n};function k_(t){t.target.composing=!0}function Jp(t){const n=t.target;n.composing&&(n.composing=!1,n.dispatchEvent(new Event("input")))}const C_={created(t,{modifiers:{lazy:n,trim:r,number:o}},a){t._assign=Qp(a);const u=o||a.props&&a.props.type==="number";So(t,n?"change":"input",f=>{if(f.target.composing)return;let h=t.value;r&&(h=h.trim()),u&&(h=Us(h)),t._assign(h)}),r&&So(t,"change",()=>{t.value=t.value.trim()}),n||(So(t,"compositionstart",k_),So(t,"compositionend",Jp),So(t,"change",Jp))},mounted(t,{value:n}){t.value=n==null?"":n},beforeUpdate(t,{value:n,modifiers:{lazy:r,trim:o,number:a}},u){if(t._assign=Qp(u),t.composing||document.activeElement===t&&t.type!=="range"&&(r||o&&t.value.trim()===n||(a||t.type==="number")&&Us(t.value)===n))return;const f=n==null?"":n;t.value!==f&&(t.value=f)}},T_={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Gu=(t,n)=>r=>{if(!("key"in r))return;const o=Xi(r.key);if(n.some(a=>a===o||T_[a]===o))return t(r)},Fm={beforeMount(t,{value:n},{transition:r}){t._vod=t.style.display==="none"?"":t.style.display,r&&n?r.beforeEnter(t):Ms(t,n)},mounted(t,{value:n},{transition:r}){r&&n&&r.enter(t)},updated(t,{value:n,oldValue:r},{transition:o}){!n!=!r&&(o?n?(o.beforeEnter(t),Ms(t,!0),o.enter(t)):o.leave(t,()=>{Ms(t,!1)}):Ms(t,n))},beforeUnmount(t,{value:n}){Ms(t,n)}};function Ms(t,n){t.style.display=n?t._vod:"none"}const L_=Xe({patchProp:m_},n_);let tg;function E_(){return tg||(tg=I1(L_))}const qm=(...t)=>{const n=E_().createApp(...t),{mount:r}=n;return n.mount=o=>{const a=A_(o);if(!a)return;const u=n._component;!Wt(u)&&!u.render&&!u.template&&(u.template=a.innerHTML),a.innerHTML="";const f=r(a,!1,a instanceof SVGElement);return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),f},n};function A_(t){return Ue(t)?document.querySelector(t):t}const Ko=(t,n)=>{const r=t.__vccOpts||t;for(const[o,a]of n)r[o]=a;return r},M_={};function N_(t,n){const r=ji("RouterView");return ht(),ce(r)}const P_=Ko(M_,[["render",N_]]);/*!
2
+ * vue-router v4.1.5
3
+ * (c) 2022 Eduardo San Martin Morote
4
+ * @license MIT
5
+ */const ko=typeof window<"u";function O_(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const he=Object.assign;function wu(t,n){const r={};for(const o in n){const a=n[o];r[o]=Xn(a)?a.map(t):t(a)}return r}const Fs=()=>{},Xn=Array.isArray,$_=/\/$/,D_=t=>t.replace($_,"");function xu(t,n,r="/"){let o,a={},u="",f="";const h=n.indexOf("#");let p=n.indexOf("?");return h<p&&h>=0&&(p=-1),p>-1&&(o=n.slice(0,p),u=n.slice(p+1,h>-1?h:n.length),a=t(u)),h>-1&&(o=o||n.slice(0,h),f=n.slice(h,n.length)),o=F_(o!=null?o:n,r),{fullPath:o+(u&&"?")+u+f,path:o,query:a,hash:f}}function R_(t,n){const r=n.query?t(n.query):"";return n.path+(r&&"?")+r+(n.hash||"")}function eg(t,n){return!n||!t.toLowerCase().startsWith(n.toLowerCase())?t:t.slice(n.length)||"/"}function z_(t,n,r){const o=n.matched.length-1,a=r.matched.length-1;return o>-1&&o===a&&zo(n.matched[o],r.matched[a])&&Hm(n.params,r.params)&&t(n.query)===t(r.query)&&n.hash===r.hash}function zo(t,n){return(t.aliasOf||t)===(n.aliasOf||n)}function Hm(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(!I_(t[r],n[r]))return!1;return!0}function I_(t,n){return Xn(t)?ng(t,n):Xn(n)?ng(n,t):t===n}function ng(t,n){return Xn(n)?t.length===n.length&&t.every((r,o)=>r===n[o]):t.length===1&&t[0]===n}function F_(t,n){if(t.startsWith("/"))return t;if(!t)return n;const r=n.split("/"),o=t.split("/");let a=r.length-1,u,f;for(u=0;u<o.length;u++)if(f=o[u],f!==".")if(f==="..")a>1&&a--;else break;return r.slice(0,a).join("/")+"/"+o.slice(u-(u===o.length?1:0)).join("/")}var Zs;(function(t){t.pop="pop",t.push="push"})(Zs||(Zs={}));var qs;(function(t){t.back="back",t.forward="forward",t.unknown=""})(qs||(qs={}));function q_(t){if(!t)if(ko){const n=document.querySelector("base");t=n&&n.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),D_(t)}const H_=/^[^#]+#/;function B_(t,n){return t.replace(H_,"#")+n}function W_(t,n){const r=document.documentElement.getBoundingClientRect(),o=t.getBoundingClientRect();return{behavior:n.behavior,left:o.left-r.left-(n.left||0),top:o.top-r.top-(n.top||0)}}const sc=()=>({left:window.pageXOffset,top:window.pageYOffset});function U_(t){let n;if("el"in t){const r=t.el,o=typeof r=="string"&&r.startsWith("#"),a=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!a)return;n=W_(a,t)}else n=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(n):window.scrollTo(n.left!=null?n.left:window.pageXOffset,n.top!=null?n.top:window.pageYOffset)}function rg(t,n){return(history.state?history.state.position-n:-1)+t}const Vu=new Map;function j_(t,n){Vu.set(t,n)}function G_(t){const n=Vu.get(t);return Vu.delete(t),n}let V_=()=>location.protocol+"//"+location.host;function Bm(t,n){const{pathname:r,search:o,hash:a}=n,u=t.indexOf("#");if(u>-1){let h=a.includes(t.slice(u))?t.slice(u).length:1,p=a.slice(h);return p[0]!=="/"&&(p="/"+p),eg(p,"")}return eg(r,t)+o+a}function K_(t,n,r,o){let a=[],u=[],f=null;const h=({state:x})=>{const S=Bm(t,location),N=r.value,A=n.value;let L=0;if(x){if(r.value=S,n.value=x,f&&f===N){f=null;return}L=A?x.position-A.position:0}else o(S);a.forEach(C=>{C(r.value,N,{delta:L,type:Zs.pop,direction:L?L>0?qs.forward:qs.back:qs.unknown})})};function p(){f=r.value}function g(x){a.push(x);const S=()=>{const N=a.indexOf(x);N>-1&&a.splice(N,1)};return u.push(S),S}function m(){const{history:x}=window;!x.state||x.replaceState(he({},x.state,{scroll:sc()}),"")}function b(){for(const x of u)x();u=[],window.removeEventListener("popstate",h),window.removeEventListener("beforeunload",m)}return window.addEventListener("popstate",h),window.addEventListener("beforeunload",m),{pauseListeners:p,listen:g,destroy:b}}function ig(t,n,r,o=!1,a=!1){return{back:t,current:n,forward:r,replaced:o,position:window.history.length,scroll:a?sc():null}}function X_(t){const{history:n,location:r}=window,o={value:Bm(t,r)},a={value:n.state};a.value||u(o.value,{back:null,current:o.value,forward:null,position:n.length-1,replaced:!0,scroll:null},!0);function u(p,g,m){const b=t.indexOf("#"),x=b>-1?(r.host&&document.querySelector("base")?t:t.slice(b))+p:V_()+t+p;try{n[m?"replaceState":"pushState"](g,"",x),a.value=g}catch(S){console.error(S),r[m?"replace":"assign"](x)}}function f(p,g){const m=he({},n.state,ig(a.value.back,p,a.value.forward,!0),g,{position:a.value.position});u(p,m,!0),o.value=p}function h(p,g){const m=he({},a.value,n.state,{forward:p,scroll:sc()});u(m.current,m,!0);const b=he({},ig(o.value,p,null),{position:m.position+1},g);u(p,b,!1),o.value=p}return{location:o,state:a,push:h,replace:f}}function Y_(t){t=q_(t);const n=X_(t),r=K_(t,n.state,n.location,n.replace);function o(u,f=!0){f||r.pauseListeners(),history.go(u)}const a=he({location:"",base:t,go:o,createHref:B_.bind(null,t)},n,r);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>n.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>n.state.value}),a}function Z_(t){return typeof t=="string"||t&&typeof t=="object"}function Wm(t){return typeof t=="string"||typeof t=="symbol"}const ni={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Um=Symbol("");var og;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(og||(og={}));function Io(t,n){return he(new Error,{type:t,[Um]:!0},n)}function Tr(t,n){return t instanceof Error&&Um in t&&(n==null||!!(t.type&n))}const sg="[^/]+?",Q_={sensitive:!1,strict:!1,start:!0,end:!0},J_=/[.+*?^${}()[\]/\\]/g;function tS(t,n){const r=he({},Q_,n),o=[];let a=r.start?"^":"";const u=[];for(const g of t){const m=g.length?[]:[90];r.strict&&!g.length&&(a+="/");for(let b=0;b<g.length;b++){const x=g[b];let S=40+(r.sensitive?.25:0);if(x.type===0)b||(a+="/"),a+=x.value.replace(J_,"\\$&"),S+=40;else if(x.type===1){const{value:N,repeatable:A,optional:L,regexp:C}=x;u.push({name:N,repeatable:A,optional:L});const E=C||sg;if(E!==sg){S+=10;try{new RegExp(`(${E})`)}catch(D){throw new Error(`Invalid custom RegExp for param "${N}" (${E}): `+D.message)}}let z=A?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;b||(z=L&&g.length<2?`(?:/${z})`:"/"+z),L&&(z+="?"),a+=z,S+=20,L&&(S+=-8),A&&(S+=-20),E===".*"&&(S+=-50)}m.push(S)}o.push(m)}if(r.strict&&r.end){const g=o.length-1;o[g][o[g].length-1]+=.7000000000000001}r.strict||(a+="/?"),r.end?a+="$":r.strict&&(a+="(?:/|$)");const f=new RegExp(a,r.sensitive?"":"i");function h(g){const m=g.match(f),b={};if(!m)return null;for(let x=1;x<m.length;x++){const S=m[x]||"",N=u[x-1];b[N.name]=S&&N.repeatable?S.split("/"):S}return b}function p(g){let m="",b=!1;for(const x of t){(!b||!m.endsWith("/"))&&(m+="/"),b=!1;for(const S of x)if(S.type===0)m+=S.value;else if(S.type===1){const{value:N,repeatable:A,optional:L}=S,C=N in g?g[N]:"";if(Xn(C)&&!A)throw new Error(`Provided param "${N}" is an array but it is not repeatable (* or + modifiers)`);const E=Xn(C)?C.join("/"):C;if(!E)if(L)x.length<2&&(m.endsWith("/")?m=m.slice(0,-1):b=!0);else throw new Error(`Missing required param "${N}"`);m+=E}}return m||"/"}return{re:f,score:o,keys:u,parse:h,stringify:p}}function eS(t,n){let r=0;for(;r<t.length&&r<n.length;){const o=n[r]-t[r];if(o)return o;r++}return t.length<n.length?t.length===1&&t[0]===40+40?-1:1:t.length>n.length?n.length===1&&n[0]===40+40?1:-1:0}function nS(t,n){let r=0;const o=t.score,a=n.score;for(;r<o.length&&r<a.length;){const u=eS(o[r],a[r]);if(u)return u;r++}if(Math.abs(a.length-o.length)===1){if(lg(o))return 1;if(lg(a))return-1}return a.length-o.length}function lg(t){const n=t[t.length-1];return t.length>0&&n[n.length-1]<0}const rS={type:0,value:""},iS=/[a-zA-Z0-9_]/;function oS(t){if(!t)return[[]];if(t==="/")return[[rS]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function n(S){throw new Error(`ERR (${r})/"${g}": ${S}`)}let r=0,o=r;const a=[];let u;function f(){u&&a.push(u),u=[]}let h=0,p,g="",m="";function b(){!g||(r===0?u.push({type:0,value:g}):r===1||r===2||r===3?(u.length>1&&(p==="*"||p==="+")&&n(`A repeatable param (${g}) must be alone in its segment. eg: '/:ids+.`),u.push({type:1,value:g,regexp:m,repeatable:p==="*"||p==="+",optional:p==="*"||p==="?"})):n("Invalid state to consume buffer"),g="")}function x(){g+=p}for(;h<t.length;){if(p=t[h++],p==="\\"&&r!==2){o=r,r=4;continue}switch(r){case 0:p==="/"?(g&&b(),f()):p===":"?(b(),r=1):x();break;case 4:x(),r=o;break;case 1:p==="("?r=2:iS.test(p)?x():(b(),r=0,p!=="*"&&p!=="?"&&p!=="+"&&h--);break;case 2:p===")"?m[m.length-1]=="\\"?m=m.slice(0,-1)+p:r=3:m+=p;break;case 3:b(),r=0,p!=="*"&&p!=="?"&&p!=="+"&&h--,m="";break;default:n("Unknown state");break}}return r===2&&n(`Unfinished custom RegExp for param "${g}"`),b(),f(),a}function sS(t,n,r){const o=tS(oS(t.path),r),a=he(o,{record:t,parent:n,children:[],alias:[]});return n&&!a.record.aliasOf==!n.record.aliasOf&&n.children.push(a),a}function lS(t,n){const r=[],o=new Map;n=ug({strict:!1,end:!0,sensitive:!1},n);function a(m){return o.get(m)}function u(m,b,x){const S=!x,N=aS(m);N.aliasOf=x&&x.record;const A=ug(n,m),L=[N];if("alias"in m){const z=typeof m.alias=="string"?[m.alias]:m.alias;for(const D of z)L.push(he({},N,{components:x?x.record.components:N.components,path:D,aliasOf:x?x.record:N}))}let C,E;for(const z of L){const{path:D}=z;if(b&&D[0]!=="/"){const G=b.record.path,j=G[G.length-1]==="/"?"":"/";z.path=b.record.path+(D&&j+D)}if(C=sS(z,b,A),x?x.alias.push(C):(E=E||C,E!==C&&E.alias.push(C),S&&m.name&&!cg(C)&&f(m.name)),N.children){const G=N.children;for(let j=0;j<G.length;j++)u(G[j],C,x&&x.children[j])}x=x||C,p(C)}return E?()=>{f(E)}:Fs}function f(m){if(Wm(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 h(){return r}function p(m){let b=0;for(;b<r.length&&nS(m,r[b])>=0&&(m.record.path!==r[b].record.path||!jm(m,r[b]));)b++;r.splice(b,0,m),m.record.name&&!cg(m)&&o.set(m.record.name,m)}function g(m,b){let x,S={},N,A;if("name"in m&&m.name){if(x=o.get(m.name),!x)throw Io(1,{location:m});A=x.record.name,S=he(ag(b.params,x.keys.filter(E=>!E.optional).map(E=>E.name)),m.params&&ag(m.params,x.keys.map(E=>E.name))),N=x.stringify(S)}else if("path"in m)N=m.path,x=r.find(E=>E.re.test(N)),x&&(S=x.parse(N),A=x.record.name);else{if(x=b.name?o.get(b.name):r.find(E=>E.re.test(b.path)),!x)throw Io(1,{location:m,currentLocation:b});A=x.record.name,S=he({},b.params,m.params),N=x.stringify(S)}const L=[];let C=x;for(;C;)L.unshift(C.record),C=C.parent;return{name:A,path:N,params:S,matched:L,meta:uS(L)}}return t.forEach(m=>u(m)),{addRoute:u,resolve:g,removeRoute:f,getRoutes:h,getRecordMatcher:a}}function ag(t,n){const r={};for(const o of n)o in t&&(r[o]=t[o]);return r}function aS(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:cS(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function cS(t){const n={},r=t.props||!1;if("component"in t)n.default=r;else for(const o in t.components)n[o]=typeof r=="boolean"?r:r[o];return n}function cg(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function uS(t){return t.reduce((n,r)=>he(n,r.meta),{})}function ug(t,n){const r={};for(const o in t)r[o]=o in n?n[o]:t[o];return r}function jm(t,n){return n.children.some(r=>r===t||jm(t,r))}const Gm=/#/g,fS=/&/g,hS=/\//g,dS=/=/g,pS=/\?/g,Vm=/\+/g,gS=/%5B/g,vS=/%5D/g,Km=/%5E/g,mS=/%60/g,Xm=/%7B/g,yS=/%7C/g,Ym=/%7D/g,bS=/%20/g;function Gf(t){return encodeURI(""+t).replace(yS,"|").replace(gS,"[").replace(vS,"]")}function wS(t){return Gf(t).replace(Xm,"{").replace(Ym,"}").replace(Km,"^")}function Ku(t){return Gf(t).replace(Vm,"%2B").replace(bS,"+").replace(Gm,"%23").replace(fS,"%26").replace(mS,"`").replace(Xm,"{").replace(Ym,"}").replace(Km,"^")}function xS(t){return Ku(t).replace(dS,"%3D")}function _S(t){return Gf(t).replace(Gm,"%23").replace(pS,"%3F")}function SS(t){return t==null?"":_S(t).replace(hS,"%2F")}function Ea(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function kS(t){const n={};if(t===""||t==="?")return n;const o=(t[0]==="?"?t.slice(1):t).split("&");for(let a=0;a<o.length;++a){const u=o[a].replace(Vm," "),f=u.indexOf("="),h=Ea(f<0?u:u.slice(0,f)),p=f<0?null:Ea(u.slice(f+1));if(h in n){let g=n[h];Xn(g)||(g=n[h]=[g]),g.push(p)}else n[h]=p}return n}function fg(t){let n="";for(let r in t){const o=t[r];if(r=xS(r),o==null){o!==void 0&&(n+=(n.length?"&":"")+r);continue}(Xn(o)?o.map(u=>u&&Ku(u)):[o&&Ku(o)]).forEach(u=>{u!==void 0&&(n+=(n.length?"&":"")+r,u!=null&&(n+="="+u))})}return n}function CS(t){const n={};for(const r in t){const o=t[r];o!==void 0&&(n[r]=Xn(o)?o.map(a=>a==null?null:""+a):o==null?o:""+o)}return n}const TS=Symbol(""),hg=Symbol(""),Vf=Symbol(""),Zm=Symbol(""),Xu=Symbol("");function Ns(){let t=[];function n(o){return t.push(o),()=>{const a=t.indexOf(o);a>-1&&t.splice(a,1)}}function r(){t=[]}return{add:n,list:()=>t,reset:r}}function ii(t,n,r,o,a){const u=o&&(o.enterCallbacks[a]=o.enterCallbacks[a]||[]);return()=>new Promise((f,h)=>{const p=b=>{b===!1?h(Io(4,{from:r,to:n})):b instanceof Error?h(b):Z_(b)?h(Io(2,{from:n,to:b})):(u&&o.enterCallbacks[a]===u&&typeof b=="function"&&u.push(b),f())},g=t.call(o&&o.instances[a],n,r,p);let m=Promise.resolve(g);t.length<3&&(m=m.then(p)),m.catch(b=>h(b))})}function _u(t,n,r,o){const a=[];for(const u of t)for(const f in u.components){let h=u.components[f];if(!(n!=="beforeRouteEnter"&&!u.instances[f]))if(LS(h)){const g=(h.__vccOpts||h)[n];g&&a.push(ii(g,r,o,u,f))}else{let p=h();a.push(()=>p.then(g=>{if(!g)return Promise.reject(new Error(`Couldn't resolve component "${f}" at "${u.path}"`));const m=O_(g)?g.default:g;u.components[f]=m;const x=(m.__vccOpts||m)[n];return x&&ii(x,r,o,u,f)()}))}}return a}function LS(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function dg(t){const n=fi(Vf),r=fi(Zm),o=St(()=>n.resolve(Z(t.to))),a=St(()=>{const{matched:p}=o.value,{length:g}=p,m=p[g-1],b=r.matched;if(!m||!b.length)return-1;const x=b.findIndex(zo.bind(null,m));if(x>-1)return x;const S=pg(p[g-2]);return g>1&&pg(m)===S&&b[b.length-1].path!==S?b.findIndex(zo.bind(null,p[g-2])):x}),u=St(()=>a.value>-1&&NS(r.params,o.value.params)),f=St(()=>a.value>-1&&a.value===r.matched.length-1&&Hm(r.params,o.value.params));function h(p={}){return MS(p)?n[Z(t.replace)?"replace":"push"](Z(t.to)).catch(Fs):Promise.resolve()}return{route:o,href:St(()=>o.value.href),isActive:u,isExactActive:f,navigate:h}}const ES=oe({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:dg,setup(t,{slots:n}){const r=hr(dg(t)),{options:o}=fi(Vf),a=St(()=>({[gg(t.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[gg(t.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const u=n.default&&n.default(r);return t.custom?u:ul("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},u)}}}),AS=ES;function MS(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const n=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(n))return}return t.preventDefault&&t.preventDefault(),!0}}function NS(t,n){for(const r in n){const o=n[r],a=t[r];if(typeof o=="string"){if(o!==a)return!1}else if(!Xn(a)||a.length!==o.length||o.some((u,f)=>u!==a[f]))return!1}return!0}function pg(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const gg=(t,n,r)=>t!=null?t:n!=null?n:r,PS=oe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:n,slots:r}){const o=fi(Xu),a=St(()=>t.route||o.value),u=fi(hg,0),f=St(()=>{let g=Z(u);const{matched:m}=a.value;let b;for(;(b=m[g])&&!b.components;)g++;return g}),h=St(()=>a.value.matched[f.value]);ha(hg,St(()=>f.value+1)),ha(TS,h),ha(Xu,a);const p=Kt();return Fe(()=>[p.value,h.value,t.name],([g,m,b],[x,S,N])=>{m&&(m.instances[b]=g,S&&S!==m&&g&&g===x&&(m.leaveGuards.size||(m.leaveGuards=S.leaveGuards),m.updateGuards.size||(m.updateGuards=S.updateGuards))),g&&m&&(!S||!zo(m,S)||!x)&&(m.enterCallbacks[b]||[]).forEach(A=>A(g))},{flush:"post"}),()=>{const g=a.value,m=t.name,b=h.value,x=b&&b.components[m];if(!x)return vg(r.default,{Component:x,route:g});const S=b.props[m],N=S?S===!0?g.params:typeof S=="function"?S(g):S:null,L=ul(x,he({},N,n,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(b.instances[m]=null)},ref:p}));return vg(r.default,{Component:L,route:g})||L}}});function vg(t,n){if(!t)return null;const r=t(n);return r.length===1?r[0]:r}const OS=PS;function $S(t){const n=lS(t.routes,t),r=t.parseQuery||kS,o=t.stringifyQuery||fg,a=t.history,u=Ns(),f=Ns(),h=Ns(),p=sl(ni);let g=ni;ko&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const m=wu.bind(null,Q=>""+Q),b=wu.bind(null,SS),x=wu.bind(null,Ea);function S(Q,tt){let V,st;return Wm(Q)?(V=n.getRecordMatcher(Q),st=tt):st=Q,n.addRoute(st,V)}function N(Q){const tt=n.getRecordMatcher(Q);tt&&n.removeRoute(tt)}function A(){return n.getRoutes().map(Q=>Q.record)}function L(Q){return!!n.getRecordMatcher(Q)}function C(Q,tt){if(tt=he({},tt||p.value),typeof Q=="string"){const P=xu(r,Q,tt.path),F=n.resolve({path:P.path},tt),Y=a.createHref(P.fullPath);return he(P,F,{params:x(F.params),hash:Ea(P.hash),redirectedFrom:void 0,href:Y})}let V;if("path"in Q)V=he({},Q,{path:xu(r,Q.path,tt.path).path});else{const P=he({},Q.params);for(const F in P)P[F]==null&&delete P[F];V=he({},Q,{params:b(Q.params)}),tt.params=b(tt.params)}const st=n.resolve(V,tt),Ct=Q.hash||"";st.params=m(x(st.params));const de=R_(o,he({},Q,{hash:wS(Ct),path:st.path})),Lt=a.createHref(de);return he({fullPath:de,hash:Ct,query:o===fg?CS(Q.query):Q.query||{}},st,{redirectedFrom:void 0,href:Lt})}function E(Q){return typeof Q=="string"?xu(r,Q,p.value.path):he({},Q)}function z(Q,tt){if(g!==Q)return Io(8,{from:tt,to:Q})}function D(Q){return it(Q)}function G(Q){return D(he(E(Q),{replace:!0}))}function j(Q){const tt=Q.matched[Q.matched.length-1];if(tt&&tt.redirect){const{redirect:V}=tt;let st=typeof V=="function"?V(Q):V;return typeof st=="string"&&(st=st.includes("?")||st.includes("#")?st=E(st):{path:st},st.params={}),he({query:Q.query,hash:Q.hash,params:"path"in st?{}:Q.params},st)}}function it(Q,tt){const V=g=C(Q),st=p.value,Ct=Q.state,de=Q.force,Lt=Q.replace===!0,P=j(V);if(P)return it(he(E(P),{state:typeof P=="object"?he({},Ct,P.state):Ct,force:de,replace:Lt}),tt||V);const F=V;F.redirectedFrom=tt;let Y;return!de&&z_(o,st,V)&&(Y=Io(16,{to:F,from:st}),Et(st,st,!0,!1)),(Y?Promise.resolve(Y):dt(F,st)).catch(nt=>Tr(nt)?Tr(nt,2)?nt:wt(nt):W(nt,F,st)).then(nt=>{if(nt){if(Tr(nt,2))return it(he({replace:Lt},E(nt.to),{state:typeof nt.to=="object"?he({},Ct,nt.to.state):Ct,force:de}),tt||F)}else nt=kt(F,st,!0,Lt,Ct);return vt(F,st,nt),nt})}function J(Q,tt){const V=z(Q,tt);return V?Promise.reject(V):Promise.resolve()}function dt(Q,tt){let V;const[st,Ct,de]=DS(Q,tt);V=_u(st.reverse(),"beforeRouteLeave",Q,tt);for(const P of st)P.leaveGuards.forEach(F=>{V.push(ii(F,Q,tt))});const Lt=J.bind(null,Q,tt);return V.push(Lt),xo(V).then(()=>{V=[];for(const P of u.list())V.push(ii(P,Q,tt));return V.push(Lt),xo(V)}).then(()=>{V=_u(Ct,"beforeRouteUpdate",Q,tt);for(const P of Ct)P.updateGuards.forEach(F=>{V.push(ii(F,Q,tt))});return V.push(Lt),xo(V)}).then(()=>{V=[];for(const P of Q.matched)if(P.beforeEnter&&!tt.matched.includes(P))if(Xn(P.beforeEnter))for(const F of P.beforeEnter)V.push(ii(F,Q,tt));else V.push(ii(P.beforeEnter,Q,tt));return V.push(Lt),xo(V)}).then(()=>(Q.matched.forEach(P=>P.enterCallbacks={}),V=_u(de,"beforeRouteEnter",Q,tt),V.push(Lt),xo(V))).then(()=>{V=[];for(const P of f.list())V.push(ii(P,Q,tt));return V.push(Lt),xo(V)}).catch(P=>Tr(P,8)?P:Promise.reject(P))}function vt(Q,tt,V){for(const st of h.list())st(Q,tt,V)}function kt(Q,tt,V,st,Ct){const de=z(Q,tt);if(de)return de;const Lt=tt===ni,P=ko?history.state:{};V&&(st||Lt?a.replace(Q.fullPath,he({scroll:Lt&&P&&P.scroll},Ct)):a.push(Q.fullPath,Ct)),p.value=Q,Et(Q,tt,V,Lt),wt()}let ft;function U(){ft||(ft=a.listen((Q,tt,V)=>{if(!ne.listening)return;const st=C(Q),Ct=j(st);if(Ct){it(he(Ct,{replace:!0}),st).catch(Fs);return}g=st;const de=p.value;ko&&j_(rg(de.fullPath,V.delta),sc()),dt(st,de).catch(Lt=>Tr(Lt,12)?Lt:Tr(Lt,2)?(it(Lt.to,st).then(P=>{Tr(P,20)&&!V.delta&&V.type===Zs.pop&&a.go(-1,!1)}).catch(Fs),Promise.reject()):(V.delta&&a.go(-V.delta,!1),W(Lt,st,de))).then(Lt=>{Lt=Lt||kt(st,de,!1),Lt&&(V.delta&&!Tr(Lt,8)?a.go(-V.delta,!1):V.type===Zs.pop&&Tr(Lt,20)&&a.go(-1,!1)),vt(st,de,Lt)}).catch(Fs)}))}let I=Ns(),k=Ns(),H;function W(Q,tt,V){wt(Q);const st=k.list();return st.length?st.forEach(Ct=>Ct(Q,tt,V)):console.error(Q),Promise.reject(Q)}function et(){return H&&p.value!==ni?Promise.resolve():new Promise((Q,tt)=>{I.add([Q,tt])})}function wt(Q){return H||(H=!Q,U(),I.list().forEach(([tt,V])=>Q?V(Q):tt()),I.reset()),Q}function Et(Q,tt,V,st){const{scrollBehavior:Ct}=t;if(!ko||!Ct)return Promise.resolve();const de=!V&&G_(rg(Q.fullPath,0))||(st||!V)&&history.state&&history.state.scroll||null;return al().then(()=>Ct(Q,tt,de)).then(Lt=>Lt&&U_(Lt)).catch(Lt=>W(Lt,Q,tt))}const qt=Q=>a.go(Q);let Bt;const Gt=new Set,ne={currentRoute:p,listening:!0,addRoute:S,removeRoute:N,hasRoute:L,getRoutes:A,resolve:C,options:t,push:D,replace:G,go:qt,back:()=>qt(-1),forward:()=>qt(1),beforeEach:u.add,beforeResolve:f.add,afterEach:h.add,onError:k.add,isReady:et,install(Q){const tt=this;Q.component("RouterLink",AS),Q.component("RouterView",OS),Q.config.globalProperties.$router=tt,Object.defineProperty(Q.config.globalProperties,"$route",{enumerable:!0,get:()=>Z(p)}),ko&&!Bt&&p.value===ni&&(Bt=!0,D(a.location).catch(Ct=>{}));const V={};for(const Ct in ni)V[Ct]=St(()=>p.value[Ct]);Q.provide(Vf,tt),Q.provide(Zm,hr(V)),Q.provide(Xu,p);const st=Q.unmount;Gt.add(Q),Q.unmount=function(){Gt.delete(Q),Gt.size<1&&(g=ni,ft&&ft(),ft=null,p.value=ni,Bt=!1,H=!1),st()}}};return ne}function xo(t){return t.reduce((n,r)=>n.then(()=>r()),Promise.resolve())}function DS(t,n){const r=[],o=[],a=[],u=Math.max(n.matched.length,t.matched.length);for(let f=0;f<u;f++){const h=n.matched[f];h&&(t.matched.find(g=>zo(g,h))?o.push(h):r.push(h));const p=t.matched[f];p&&(n.matched.find(g=>zo(g,p))||a.push(p))}return[r,o,a]}function Fr(t){return t.split("-")[0]}function Mo(t){return t.split("-")[1]}function fl(t){return["top","bottom"].includes(Fr(t))?"x":"y"}function Kf(t){return t==="y"?"height":"width"}function mg(t){let{reference:n,floating:r,placement:o}=t;const a=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;let f;switch(Fr(o)){case"top":f={x:a,y:n.y-r.height};break;case"bottom":f={x:a,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:u};break;case"left":f={x:n.x-r.width,y:u};break;default:f={x:n.x,y:n.y}}const h=fl(o),p=Kf(h);switch(Mo(o)){case"start":f[h]=f[h]-(n[p]/2-r[p]/2);break;case"end":f[h]=f[h]+(n[p]/2-r[p]/2);break}return f}const RS=async(t,n,r)=>{const{placement:o="bottom",strategy:a="absolute",middleware:u=[],platform:f}=r;let h=await f.getElementRects({reference:t,floating:n,strategy:a}),{x:p,y:g}=mg({...h,placement:o}),m=o,b={};for(let x=0;x<u.length;x++){const{name:S,fn:N}=u[x],{x:A,y:L,data:C,reset:E}=await N({x:p,y:g,initialPlacement:o,placement:m,strategy:a,middlewareData:b,rects:h,platform:f,elements:{reference:t,floating:n}});if(p=A!=null?A:p,g=L!=null?L:g,b={...b,[S]:C!=null?C:{}},E){typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(h=E.rects===!0?await f.getElementRects({reference:t,floating:n,strategy:a}):E.rects),{x:p,y:g}=mg({...h,placement:m})),x=-1;continue}}return{x:p,y:g,placement:m,strategy:a,middlewareData:b}};function zS(t){return{top:0,right:0,bottom:0,left:0,...t}}function Qm(t){return typeof t!="number"?zS(t):{top:t,right:t,bottom:t,left:t}}function Yu(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function lc(t,n){n===void 0&&(n={});const{x:r,y:o,platform:a,rects:u,elements:f,strategy:h}=t,{boundary:p="clippingParents",rootBoundary:g="viewport",elementContext:m="floating",altBoundary:b=!1,padding:x=0}=n,S=Qm(x),A=f[b?m==="floating"?"reference":"floating":m],L=await a.getClippingClientRect({element:await a.isElement(A)?A:A.contextElement||await a.getDocumentElement({element:f.floating}),boundary:p,rootBoundary:g}),C=Yu(await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:m==="floating"?{...u.floating,x:r,y:o}:u.reference,offsetParent:await a.getOffsetParent({element:f.floating}),strategy:h}));return{top:L.top-C.top+S.top,bottom:C.bottom-L.bottom+S.bottom,left:L.left-C.left+S.left,right:C.right-L.right+S.right}}const IS=Math.min,$i=Math.max;function Zu(t,n,r){return $i(t,IS(n,r))}const FS=t=>({name:"arrow",options:t,async fn(n){const{element:r,padding:o=0}=t!=null?t:{},{x:a,y:u,placement:f,rects:h,platform:p}=n;if(r==null)return{};const g=Qm(o),m={x:a,y:u},b=Fr(f),x=fl(b),S=Kf(x),N=await p.getDimensions({element:r}),A=x==="y"?"top":"left",L=x==="y"?"bottom":"right",C=h.reference[S]+h.reference[x]-m[x]-h.floating[S],E=m[x]-h.reference[x],z=await p.getOffsetParent({element:r}),D=z?x==="y"?z.clientHeight||0:z.clientWidth||0:0,G=C/2-E/2,j=g[A],it=D-N[S]-g[L],J=D/2-N[S]/2+G,dt=Zu(j,J,it);return{data:{[x]:dt,centerOffset:J-dt}}}}),qS={left:"right",right:"left",bottom:"top",top:"bottom"};function Aa(t){return t.replace(/left|right|bottom|top/g,n=>qS[n])}function Jm(t,n){const r=Mo(t)==="start",o=fl(t),a=Kf(o);let u=o==="x"?r?"right":"left":r?"bottom":"top";return n.reference[a]>n.floating[a]&&(u=Aa(u)),{main:u,cross:Aa(u)}}const HS={start:"end",end:"start"};function Qu(t){return t.replace(/start|end/g,n=>HS[n])}const BS=["top","right","bottom","left"],WS=BS.reduce((t,n)=>t.concat(n,n+"-start",n+"-end"),[]);function US(t,n,r){return(t?[...r.filter(a=>Mo(a)===t),...r.filter(a=>Mo(a)!==t)]:r.filter(a=>Fr(a)===a)).filter(a=>t?Mo(a)===t||(n?Qu(a)!==a:!1):!0)}const jS=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(n){var r,o,a,u,f,h;const{x:p,y:g,rects:m,middlewareData:b,placement:x}=n,{alignment:S=null,allowedPlacements:N=WS,autoAlignment:A=!0,...L}=t;if((r=b.autoPlacement)!=null&&r.skip)return{};const C=US(S,A,N),E=await lc(n,L),z=(o=(a=b.autoPlacement)==null?void 0:a.index)!=null?o:0,D=C[z],{main:G,cross:j}=Jm(D,m);if(x!==D)return{x:p,y:g,reset:{placement:C[0]}};const it=[E[Fr(D)],E[G],E[j]],J=[...(u=(f=b.autoPlacement)==null?void 0:f.overflows)!=null?u:[],{placement:D,overflows:it}],dt=C[z+1];if(dt)return{data:{index:z+1,overflows:J},reset:{placement:dt}};const vt=J.slice().sort((ft,U)=>ft.overflows[0]-U.overflows[0]),kt=(h=vt.find(ft=>{let{overflows:U}=ft;return U.every(I=>I<=0)}))==null?void 0:h.placement;return{data:{skip:!0},reset:{placement:kt!=null?kt:vt[0].placement}}}}};function GS(t){const n=Aa(t);return[Qu(t),n,Qu(n)]}const VS=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(n){var r,o;const{placement:a,middlewareData:u,rects:f,initialPlacement:h}=n;if((r=u.flip)!=null&&r.skip)return{};const{mainAxis:p=!0,crossAxis:g=!0,fallbackPlacements:m,fallbackStrategy:b="bestFit",flipAlignment:x=!0,...S}=t,N=Fr(a),L=m||(N===h||!x?[Aa(h)]:GS(h)),C=[h,...L],E=await lc(n,S),z=[];let D=((o=u.flip)==null?void 0:o.overflows)||[];if(p&&z.push(E[N]),g){const{main:J,cross:dt}=Jm(a,f);z.push(E[J],E[dt])}if(D=[...D,{placement:a,overflows:z}],!z.every(J=>J<=0)){var G,j;const J=((G=(j=u.flip)==null?void 0:j.index)!=null?G:0)+1,dt=C[J];if(dt)return{data:{index:J,overflows:D},reset:{placement:dt}};let vt="bottom";switch(b){case"bestFit":{var it;const kt=(it=D.slice().sort((ft,U)=>ft.overflows.filter(I=>I>0).reduce((I,k)=>I+k,0)-U.overflows.filter(I=>I>0).reduce((I,k)=>I+k,0))[0])==null?void 0:it.placement;kt&&(vt=kt);break}case"initialPlacement":vt=h;break}return{data:{skip:!0},reset:{placement:vt}}}return{}}}};function KS(t){let{placement:n,rects:r,value:o}=t;const a=Fr(n),u=["left","top"].includes(a)?-1:1,f=typeof o=="function"?o({...r,placement:n}):o,{mainAxis:h,crossAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};return fl(a)==="x"?{x:p,y:h*u}:{x:h*u,y:p}}const XS=function(t){return t===void 0&&(t=0),{name:"offset",options:t,fn(n){const{x:r,y:o,placement:a,rects:u}=n,f=KS({placement:a,rects:u,value:t});return{x:r+f.x,y:o+f.y,data:f}}}};function YS(t){return t==="x"?"y":"x"}const ZS=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(n){const{x:r,y:o,placement:a}=n,{mainAxis:u=!0,crossAxis:f=!1,limiter:h={fn:L=>{let{x:C,y:E}=L;return{x:C,y:E}}},...p}=t,g={x:r,y:o},m=await lc(n,p),b=fl(Fr(a)),x=YS(b);let S=g[b],N=g[x];if(u){const L=b==="y"?"top":"left",C=b==="y"?"bottom":"right",E=S+m[L],z=S-m[C];S=Zu(E,S,z)}if(f){const L=x==="y"?"top":"left",C=x==="y"?"bottom":"right",E=N+m[L],z=N-m[C];N=Zu(E,N,z)}const A=h.fn({...n,[b]:S,[x]:N});return{...A,data:{x:A.x-r,y:A.y-o}}}}},QS=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(n){var r;const{placement:o,rects:a,middlewareData:u}=n,{apply:f,...h}=t;if((r=u.size)!=null&&r.skip)return{};const p=await lc(n,h),g=Fr(o),m=Mo(o)==="end";let b,x;g==="top"||g==="bottom"?(b=g,x=m?"left":"right"):(x=g,b=m?"top":"bottom");const S=$i(p.left,0),N=$i(p.right,0),A=$i(p.top,0),L=$i(p.bottom,0),C={height:a.floating.height-(["left","right"].includes(o)?2*(A!==0||L!==0?A+L:$i(p.top,p.bottom)):p[b]),width:a.floating.width-(["top","bottom"].includes(o)?2*(S!==0||N!==0?S+N:$i(p.left,p.right)):p[x])};return f==null||f({...C,...a}),{data:{skip:!0},reset:{rects:!0}}}}};function Xf(t){return(t==null?void 0:t.toString())==="[object Window]"}function vi(t){if(t==null)return window;if(!Xf(t)){const n=t.ownerDocument;return n&&n.defaultView||window}return t}function ac(t){return vi(t).getComputedStyle(t)}function Dr(t){return Xf(t)?"":t?(t.nodeName||"").toLowerCase():""}function Rr(t){return t instanceof vi(t).HTMLElement}function Ma(t){return t instanceof vi(t).Element}function JS(t){return t instanceof vi(t).Node}function t0(t){const n=vi(t).ShadowRoot;return t instanceof n||t instanceof ShadowRoot}function cc(t){const{overflow:n,overflowX:r,overflowY:o}=ac(t);return/auto|scroll|overlay|hidden/.test(n+o+r)}function tk(t){return["table","td","th"].includes(Dr(t))}function e0(t){const n=navigator.userAgent.toLowerCase().includes("firefox"),r=ac(t);return r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].includes(r.willChange)||n&&r.willChange==="filter"||n&&(r.filter?r.filter!=="none":!1)}const yg=Math.min,Hs=Math.max,Na=Math.round;function Fo(t,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect();let o=1,a=1;return n&&Rr(t)&&(o=t.offsetWidth>0&&Na(r.width)/t.offsetWidth||1,a=t.offsetHeight>0&&Na(r.height)/t.offsetHeight||1),{width:r.width/o,height:r.height/a,top:r.top/a,right:r.right/o,bottom:r.bottom/a,left:r.left/o,x:r.left/o,y:r.top/a}}function mi(t){return((JS(t)?t.ownerDocument:t.document)||window.document).documentElement}function uc(t){return Xf(t)?{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}:{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function n0(t){return Fo(mi(t)).left+uc(t).scrollLeft}function ek(t){const n=Fo(t);return Na(n.width)!==t.offsetWidth||Na(n.height)!==t.offsetHeight}function nk(t,n,r){const o=Rr(n),a=mi(n),u=Fo(t,o&&ek(n));let f={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if(o||!o&&r!=="fixed")if((Dr(n)!=="body"||cc(a))&&(f=uc(n)),Rr(n)){const p=Fo(n,!0);h.x=p.x+n.clientLeft,h.y=p.y+n.clientTop}else a&&(h.x=n0(a));return{x:u.left+f.scrollLeft-h.x,y:u.top+f.scrollTop-h.y,width:u.width,height:u.height}}function fc(t){return Dr(t)==="html"?t:t.assignedSlot||t.parentNode||(t0(t)?t.host:null)||mi(t)}function bg(t){return!Rr(t)||getComputedStyle(t).position==="fixed"?null:t.offsetParent}function rk(t){let n=fc(t);for(;Rr(n)&&!["html","body"].includes(Dr(n));){if(e0(n))return n;n=n.parentNode}return null}function Ju(t){const n=vi(t);let r=bg(t);for(;r&&tk(r)&&getComputedStyle(r).position==="static";)r=bg(r);return r&&(Dr(r)==="html"||Dr(r)==="body"&&getComputedStyle(r).position==="static"&&!e0(r))?n:r||rk(t)||n}function wg(t){return{width:t.offsetWidth,height:t.offsetHeight}}function ik(t){let{rect:n,offsetParent:r,strategy:o}=t;const a=Rr(r),u=mi(r);if(r===u)return n;let f={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if((a||!a&&o!=="fixed")&&((Dr(r)!=="body"||cc(u))&&(f=uc(r)),Rr(r))){const p=Fo(r,!0);h.x=p.x+r.clientLeft,h.y=p.y+r.clientTop}return{...n,x:n.x-f.scrollLeft+h.x,y:n.y-f.scrollTop+h.y}}function ok(t){const n=vi(t),r=mi(t),o=n.visualViewport;let a=r.clientWidth,u=r.clientHeight,f=0,h=0;return o&&(a=o.width,u=o.height,Math.abs(n.innerWidth/o.scale-o.width)<.01&&(f=o.offsetLeft,h=o.offsetTop)),{width:a,height:u,x:f,y:h}}function sk(t){var n;const r=mi(t),o=uc(t),a=(n=t.ownerDocument)==null?void 0:n.body,u=Hs(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),f=Hs(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0);let h=-o.scrollLeft+n0(t);const p=-o.scrollTop;return ac(a||r).direction==="rtl"&&(h+=Hs(r.clientWidth,a?a.clientWidth:0)-u),{width:u,height:f,x:h,y:p}}function r0(t){return["html","body","#document"].includes(Dr(t))?t.ownerDocument.body:Rr(t)&&cc(t)?t:r0(fc(t))}function Pa(t,n){var r;n===void 0&&(n=[]);const o=r0(t),a=o===((r=t.ownerDocument)==null?void 0:r.body),u=vi(o),f=a?[u].concat(u.visualViewport||[],cc(o)?o:[]):o,h=n.concat(f);return a?h:h.concat(Pa(fc(f)))}function lk(t,n){const r=n.getRootNode==null?void 0:n.getRootNode();if(t.contains(n))return!0;if(r&&t0(r)){let o=n;do{if(o&&t===o)return!0;o=o.parentNode||o.host}while(o)}return!1}function ak(t){const n=Fo(t),r=n.top+t.clientTop,o=n.left+t.clientLeft;return{top:r,left:o,x:o,y:r,right:o+t.clientWidth,bottom:r+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}function xg(t,n){return n==="viewport"?Yu(ok(t)):Ma(n)?ak(n):Yu(sk(mi(t)))}function ck(t){const n=Pa(fc(t)),o=["absolute","fixed"].includes(ac(t).position)&&Rr(t)?Ju(t):t;return Ma(o)?n.filter(a=>Ma(a)&&lk(a,o)&&Dr(a)!=="body"):[]}function uk(t){let{element:n,boundary:r,rootBoundary:o}=t;const u=[...r==="clippingParents"?ck(n):[].concat(r),o],f=u[0],h=u.reduce((p,g)=>{const m=xg(n,g);return p.top=Hs(m.top,p.top),p.right=yg(m.right,p.right),p.bottom=yg(m.bottom,p.bottom),p.left=Hs(m.left,p.left),p},xg(n,f));return h.width=h.right-h.left,h.height=h.bottom-h.top,h.x=h.left,h.y=h.top,h}const fk={getElementRects:t=>{let{reference:n,floating:r,strategy:o}=t;return{reference:nk(n,Ju(r),o),floating:{...wg(r),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:t=>ik(t),getOffsetParent:t=>{let{element:n}=t;return Ju(n)},isElement:t=>Ma(t),getDocumentElement:t=>{let{element:n}=t;return mi(n)},getClippingClientRect:t=>uk(t),getDimensions:t=>{let{element:n}=t;return wg(n)},getClientRects:t=>{let{element:n}=t;return n.getClientRects()}},hk=(t,n,r)=>RS(t,n,{platform:fk,...r});var dk=Object.defineProperty,pk=Object.defineProperties,gk=Object.getOwnPropertyDescriptors,_g=Object.getOwnPropertySymbols,vk=Object.prototype.hasOwnProperty,mk=Object.prototype.propertyIsEnumerable,Sg=(t,n,r)=>n in t?dk(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,Nr=(t,n)=>{for(var r in n||(n={}))vk.call(n,r)&&Sg(t,r,n[r]);if(_g)for(var r of _g(n))mk.call(n,r)&&Sg(t,r,n[r]);return t},hl=(t,n)=>pk(t,gk(n));function i0(t,n){for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(typeof n[r]=="object"&&t[r]?i0(t[r],n[r]):t[r]=n[r])}const Wi={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:t=>[...t,"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","focus"],delay:{show:0,hide:400}}}};function qo(t,n){let r=Wi.themes[t]||{},o;do o=r[n],typeof o>"u"?r.$extend?r=Wi.themes[r.$extend]||{}:(r=null,o=Wi[n]):r=null;while(r);return o}function yk(t){const n=[t];let r=Wi.themes[t]||{};do r.$extend&&!r.$resetCss?(n.push(r.$extend),r=Wi.themes[r.$extend]||{}):r=null;while(r);return n.map(o=>`v-popper--theme-${o}`)}let Ho=!1;if(typeof window<"u"){Ho=!1;try{const t=Object.defineProperty({},"passive",{get(){Ho=!0}});window.addEventListener("test",null,t)}catch{}}let o0=!1;typeof window<"u"&&typeof navigator<"u"&&(o0=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const s0=["auto","top","bottom","left","right"].reduce((t,n)=>t.concat([n,`${n}-start`,`${n}-end`]),[]),kg={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},Cg={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function bk(t,n){const r=t.indexOf(n);r!==-1&&t.splice(r,1)}function Su(){return new Promise(t=>requestAnimationFrame(()=>{requestAnimationFrame(t)}))}const cr=[];let _o=null,tf=function(){};typeof window<"u"&&(tf=window.Element);function fe(t){return function(n){return qo(n.theme,t)}}var l0=()=>oe({name:"VPopper",props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,required:!0},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:fe("disabled")},placement:{type:String,default:fe("placement"),validator:t=>s0.includes(t)},delay:{type:[String,Number,Object],default:fe("delay")},distance:{type:[Number,String],default:fe("distance")},skidding:{type:[Number,String],default:fe("skidding")},triggers:{type:Array,default:fe("triggers")},showTriggers:{type:[Array,Function],default:fe("showTriggers")},hideTriggers:{type:[Array,Function],default:fe("hideTriggers")},popperTriggers:{type:Array,default:fe("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:fe("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:fe("popperHideTriggers")},container:{type:[String,Object,tf,Boolean],default:fe("container")},boundary:{type:[String,tf],default:fe("boundary")},strategy:{type:String,validator:t=>["absolute","fixed"].includes(t),default:fe("strategy")},autoHide:{type:Boolean,default:fe("autoHide")},handleResize:{type:Boolean,default:fe("handleResize")},instantMove:{type:Boolean,default:fe("instantMove")},eagerMount:{type:Boolean,default:fe("eagerMount")},popperClass:{type:[String,Array,Object],default:fe("popperClass")},computeTransformOrigin:{type:Boolean,default:fe("computeTransformOrigin")},autoMinSize:{type:Boolean,default:fe("autoMinSize")},autoMaxSize:{type:Boolean,default:fe("autoMaxSize")},preventOverflow:{type:Boolean,default:fe("preventOverflow")},overflowPadding:{type:[Number,String],default:fe("overflowPadding")},arrowPadding:{type:[Number,String],default:fe("arrowPadding")},arrowOverflow:{type:Boolean,default:fe("arrowOverflow")},flip:{type:Boolean,default:fe("flip")},shift:{type:Boolean,default:fe("shift")},shiftCrossAxis:{type:Boolean,default:fe("shiftCrossAxis")}},emits:["show","hide","update:shown","apply-show","apply-hide","close-group","close-directive","auto-hide","resize","dispose"],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}}},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:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:hl(Nr({},this.classes),{popperClass:this.popperClass}),result:this.result}}},watch:Nr({shown:"$_autoShowHide",disabled(t){t?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())}},["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((t,n)=>(t[n]="$_computePosition",t),{})),created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(t=>t.toString(36).substring(2,10)).join("_")}`},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:t=null,skipDelay:n=!1,force:r=!1}={}){(r||!this.disabled)&&(this.$_scheduleShow(t,n),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0)},hide({event:t=null,skipDelay:n=!1}={}){this.$_scheduleHide(t,n),this.$emit("hide"),this.$emit("update:shown",!1)},init(){!this.$_isDisposed||(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=this.referenceNode(),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.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){var t;if(this.$_isDisposed)return;const n={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&n.middleware.push(XS({mainAxis:this.distance,crossAxis:this.skidding}));const r=this.placement.startsWith("auto");r?n.middleware.push(jS({alignment:(t=this.placement.split("-")[1])!=null?t:""})):n.placement=this.placement,this.preventOverflow&&(this.shift&&n.middleware.push(ZS({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!r&&this.flip&&n.middleware.push(VS({padding:this.overflowPadding,boundary:this.boundary}))),n.middleware.push(FS({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&n.middleware.push({name:"arrowOverflow",fn:({placement:a,rects:u,middlewareData:f})=>{let h;const{centerOffset:p}=f.arrow;return a.startsWith("top")||a.startsWith("bottom")?h=Math.abs(p)>u.reference.width/2:h=Math.abs(p)>u.reference.height/2,{data:{overflow:h}}}}),this.autoMinSize&&n.middleware.push({name:"autoMinSize",fn:({rects:a,placement:u,middlewareData:f})=>{var h;if((h=f.autoMinSize)!=null&&h.skip)return{};let p,g;return u.startsWith("top")||u.startsWith("bottom")?p=a.reference.width:g=a.reference.height,this.$_innerNode.style.minWidth=p!=null?`${p}px`:null,this.$_innerNode.style.minHeight=g!=null?`${g}px`:null,{data:{skip:!0},reset:{rects:!0}}}}),this.autoMaxSize&&n.middleware.push(QS({boundary:this.boundary,padding:this.overflowPadding,apply:({width:a,height:u})=>{this.$_innerNode.style.maxWidth=a!=null?`${a}px`:null,this.$_innerNode.style.maxHeight=u!=null?`${u}px`:null}}));const o=await hk(this.$_referenceNode,this.$_popperNode,n);Object.assign(this.result,{x:o.x,y:o.y,placement:o.placement,strategy:o.strategy,arrow:Nr(Nr({},o.middlewareData.arrow),o.middlewareData.arrowOverflow)})},$_scheduleShow(t=null,n=!1){if(this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),_o&&this.instantMove&&_o.instantMove){_o.$_applyHide(!0),this.$_applyShow(!0);return}n?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(t=null,n=!1){this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(_o=this),n?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(t){const n=this.delay;return parseInt(n&&n[t]||n||0)},async $_applyShow(t=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=t,!this.isShown&&(this.$_ensureTeleport(),await Su(),await this.$_computePosition(),await this.$_applyShowEffect())},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const n=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),a=n.x+n.width/2-(o.left+r.offsetLeft),u=n.y+n.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${a}px ${u}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const t=this.showGroup;if(t){let n;for(let r=0;r<cr.length;r++)n=cr[r],n.showGroup!==t&&(n.hide(),n.$emit("close-group"))}cr.push(this),this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Su(),this.classes.showFrom=!1,this.classes.showTo=!0},async $_applyHide(t=!1){if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=t,bk(cr,this),_o===this&&(_o=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const n=qo(this.theme,"disposeTimeout");n!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},n)),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Su(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let t=this.container;if(typeof t=="string"?t=window.document.querySelector(t):t===!1&&(t=this.$_targetNodes[0].parentNode),!t)throw new Error("No container for popover: "+this.container);t.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const t=(a,u,f)=>{this.$_events.push({targetNodes:a,eventType:u,handler:f}),a.forEach(h=>h.addEventListener(u,f,Ho?{passive:!0}:void 0))},n=(a,u,f,h,p)=>{let g=f;h!=null&&(g=typeof h=="function"?h(g):h),g.forEach(m=>{const b=u[m];b&&t(a,b,p)})},r=a=>{this.isShown&&!this.$_hideInProgress||(a.usedByTooltip=!0,!this.$_preventShow&&this.show({event:a}))};n(this.$_targetNodes,kg,this.triggers,this.showTriggers,r),n([this.$_popperNode],kg,this.popperTriggers,this.popperShowTriggers,r);const o=a=>{a.usedByTooltip||this.hide({event:a})};n(this.$_targetNodes,Cg,this.triggers,this.hideTriggers,o),n([this.$_popperNode],Cg,this.popperTriggers,this.popperHideTriggers,o),t([...Pa(this.$_referenceNode),...Pa(this.$_popperNode)],"scroll",()=>{this.$_computePosition()})},$_removeEventListeners(){this.$_events.forEach(({targetNodes:t,eventType:n,handler:r})=>{t.forEach(o=>o.removeEventListener(n,r))}),this.$_events=[]},$_handleGlobalClose(t,n=!1){this.$_showFrameLocked||(this.hide({event:t}),t.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),n&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(t,n){for(const r of this.$_targetNodes){const o=r.getAttribute(t);o&&(r.removeAttribute(t),r.setAttribute(n,o))}},$_applyAttrsToTarget(t){for(const n of this.$_targetNodes)for(const r in t){const o=t[r];o==null?n.removeAttribute(r):n.setAttribute(r,o)}}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(o0?(document.addEventListener("touchstart",Tg,Ho?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",xk,Ho?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",Tg,!0),window.addEventListener("click",wk,!0)),window.addEventListener("resize",_k));function Tg(t){for(let n=0;n<cr.length;n++){const r=cr[n],o=r.popperNode();r.$_mouseDownContains=o.contains(t.target)}}function wk(t){a0(t)}function xk(t){a0(t,!0)}function a0(t,n=!1){for(let r=0;r<cr.length;r++){const o=cr[r],a=o.popperNode(),u=o.$_mouseDownContains||a.contains(t.target);requestAnimationFrame(()=>{(t.closeAllPopover||t.closePopover&&u||o.autoHide&&!u)&&o.$_handleGlobalClose(t,n)})}}function _k(t){for(let n=0;n<cr.length;n++)cr[n].$_computePosition(t)}function Sk(){var t=window.navigator.userAgent,n=t.indexOf("MSIE ");if(n>0)return parseInt(t.substring(n+5,t.indexOf(".",n)),10);var r=t.indexOf("Trident/");if(r>0){var o=t.indexOf("rv:");return parseInt(t.substring(o+3,t.indexOf(".",o)),10)}var a=t.indexOf("Edge/");return a>0?parseInt(t.substring(a+5,t.indexOf(".",a)),10):-1}let pa;function ef(){ef.init||(ef.init=!0,pa=Sk()!==-1)}var hc={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){ef(),al(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",pa&&this.$el.appendChild(t),t.data="about:blank",pa||this.$el.appendChild(t)},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&&(!pa&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const kk=Zx();hm("data-v-b329ee4c");const Ck={class:"resize-observer",tabindex:"-1"};dm();const Tk=kk((t,n,r,o,a,u)=>(ht(),ce("div",Ck)));hc.render=Tk;hc.__scopeId="data-v-b329ee4c";hc.__file="src/components/ResizeObserver.vue";var c0={computed:{themeClass(){return yk(this.theme)}}},Yf=(t,n)=>{const r=t.__vccOpts||t;for(const[o,a]of n)r[o]=a;return r};const Lk=oe({name:"VPopperContent",components:{ResizeObserver:hc},mixins:[c0],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(t){return t!=null&&!isNaN(t)?`${t}px`:null}}}),Ek=["id","aria-hidden","tabindex","data-popper-placement"],Ak={ref:"inner",class:"v-popper__inner"},Mk=ut("div",{class:"v-popper__arrow-outer"},null,-1),Nk=ut("div",{class:"v-popper__arrow-inner"},null,-1),Pk=[Mk,Nk];function Ok(t,n,r,o,a,u){const f=ji("ResizeObserver");return ht(),Mt("div",{id:t.popperId,ref:"popover",class:ge(["v-popper__popper",[t.themeClass,t.classes.popperClass,{"v-popper__popper--shown":t.shown,"v-popper__popper--hidden":!t.shown,"v-popper__popper--show-from":t.classes.showFrom,"v-popper__popper--show-to":t.classes.showTo,"v-popper__popper--hide-from":t.classes.hideFrom,"v-popper__popper--hide-to":t.classes.hideTo,"v-popper__popper--skip-transition":t.skipTransition,"v-popper__popper--arrow-overflow":t.result.arrow.overflow}]]),style:kn({position:t.result.strategy,transform:`translate3d(${Math.round(t.result.x)}px,${Math.round(t.result.y)}px,0)`}),"aria-hidden":t.shown?"false":"true",tabindex:t.autoHide?0:void 0,"data-popper-placement":t.result.placement,onKeyup:n[1]||(n[1]=Gu(h=>t.autoHide&&t.$emit("hide"),["esc"]))},[ut("div",{class:"v-popper__wrapper",style:kn({transformOrigin:t.result.transformOrigin})},[ut("div",Ak,[t.mounted?(ht(),Mt(ue,{key:0},[ut("div",null,[Kn(t.$slots,"default")]),t.handleResize?(ht(),ce(f,{key:0,onNotify:n[0]||(n[0]=h=>t.$emit("resize",h))})):ye("",!0)],64)):ye("",!0)],512),ut("div",{ref:"arrow",class:"v-popper__arrow-container",style:kn({left:t.toPx(t.result.arrow.x),top:t.toPx(t.result.arrow.y)})},Pk,4)],4)],46,Ek)}var u0=Yf(Lk,[["render",Ok]]),f0={methods:{show(...t){return this.$refs.popper.show(...t)},hide(...t){return this.$refs.popper.hide(...t)},dispose(...t){return this.$refs.popper.dispose(...t)},onResize(...t){return this.$refs.popper.onResize(...t)}}};const $k=oe({name:"VPopperWrapper",components:{Popper:l0(),PopperContent:u0},mixins:[f0,c0],inheritAttrs:!1,props:{theme:{type:String,default:null}},computed:{finalTheme(){var t;return(t=this.theme)!=null?t:this.$options.vPopperTheme},popperAttrs(){const t=Nr({},this.$attrs);return delete t.class,delete t.style,t}},methods:{getTargetNodes(){return Array.from(this.$refs.reference.children).filter(t=>t!==this.$refs.popperContent.$el)}}});function Dk(t,n,r,o,a,u){const f=ji("PopperContent"),h=ji("Popper");return ht(),ce(h,hi({ref:"popper"},t.popperAttrs,{theme:t.finalTheme,"target-nodes":t.getTargetNodes,"reference-node":()=>t.$refs.reference,"popper-node":()=>t.$refs.popperContent.$el}),{default:Yt(({popperId:p,isShown:g,shouldMountContent:m,skipTransition:b,autoHide:x,show:S,hide:N,handleResize:A,onResize:L,classes:C,result:E})=>[ut("div",{ref:"reference",class:ge(["v-popper",[t.$attrs.class,t.themeClass,{"v-popper--shown":g}]]),style:kn(t.$attrs.style)},[Kn(t.$slots,"default",{shown:g,show:S,hide:N}),Rt(f,{ref:"popperContent","popper-id":p,theme:t.finalTheme,shown:g,mounted:m,"skip-transition":b,"auto-hide":x,"handle-resize":A,classes:C,result:E,onHide:N,onResize:L},{default:Yt(()=>[Kn(t.$slots,"popper",{shown:g,hide:N})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])],6)]),_:3},16,["theme","target-nodes","reference-node","popper-node"])}var Zf=Yf($k,[["render",Dk]]);const Lg=oe(hl(Nr({},Zf),{name:"VDropdown",vPopperTheme:"dropdown"})),Eg=oe(hl(Nr({},Zf),{name:"VMenu",vPopperTheme:"menu"})),Ag=oe(hl(Nr({},Zf),{name:"VTooltip",vPopperTheme:"tooltip"})),Rk=oe({name:"VTooltipDirective",components:{Popper:l0(),PopperContent:u0},mixins:[f0],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:t=>qo(t.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:t=>qo(t.theme,"loadingContent")}},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(t){if(typeof this.content=="function"&&this.$_isShown&&(t||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const n=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(n,o)):this.onResult(n,r)}},onResult(t,n){t===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=n)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),zk=["innerHTML"],Ik=["textContent"];function Fk(t,n,r,o,a,u){const f=ji("PopperContent"),h=ji("Popper");return ht(),ce(h,hi({ref:"popper"},t.$attrs,{theme:t.theme,"popper-node":()=>t.$refs.popperContent.$el,onApplyShow:t.onShow,onApplyHide:t.onHide}),{default:Yt(({popperId:p,isShown:g,shouldMountContent:m,skipTransition:b,autoHide:x,hide:S,handleResize:N,onResize:A,classes:L,result:C})=>[Rt(f,{ref:"popperContent",class:ge({"v-popper--tooltip-loading":t.loading}),"popper-id":p,theme:t.theme,shown:g,mounted:m,"skip-transition":b,"auto-hide":x,"handle-resize":N,classes:L,result:C,onHide:S,onResize:A},{default:Yt(()=>[t.html?(ht(),Mt("div",{key:0,innerHTML:t.finalContent},null,8,zk)):(ht(),Mt("div",{key:1,textContent:Zt(t.finalContent)},null,8,Ik))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","popper-node","onApplyShow","onApplyHide"])}var qk=Yf(Rk,[["render",Fk]]);const h0="v-popper--has-tooltip";function Hk(t,n){let r=t.placement;if(!r&&n)for(const o of s0)n[o]&&(r=o);return r||(r=qo(t.theme||"tooltip","placement")),r}function d0(t,n,r){let o;const a=typeof n;return a==="string"?o={content:n}:n&&a==="object"?o=n:o={content:!1},o.placement=Hk(o,r),o.targetNodes=()=>[t],o.referenceNode=()=>t,o}let ku,Qs,Bk=0;function Wk(){if(ku)return;Qs=Kt([]),ku=qm({name:"VTooltipDirectiveApp",setup(){return{directives:Qs}},render(){return this.directives.map(n=>ul(qk,hl(Nr({},n.options),{shown:n.shown.value||n.options.shown,key:n.id})))},devtools:{hide:!0}});const t=document.createElement("div");document.body.appendChild(t),ku.mount(t)}function p0(t,n,r){Wk();const o=Kt(d0(t,n,r)),a=Kt(!1),u={id:Bk++,options:o,shown:a};return Qs.value.push(u),t.classList&&t.classList.add(h0),t.$_popper={options:o,item:u,show(){a.value=!0},hide(){a.value=!1}}}function Qf(t){if(t.$_popper){const n=Qs.value.indexOf(t.$_popper.item);n!==-1&&Qs.value.splice(n,1),delete t.$_popper,delete t.$_popperOldShown,delete t.$_popperMountTarget}t.classList&&t.classList.remove(h0)}function Mg(t,{value:n,oldValue:r,modifiers:o}){const a=d0(t,n,o);if(!a.content||qo(a.theme||"tooltip","disabled"))Qf(t);else{let u;t.$_popper?(u=t.$_popper,u.options.value=a):u=p0(t,n,o),typeof n.shown<"u"&&n.shown!==t.$_popperOldShown&&(t.$_popperOldShown=n.shown,n.shown?u.show():u.hide())}}var g0={beforeMount:Mg,updated:Mg,beforeUnmount(t){Qf(t)}};function Ng(t){t.addEventListener("click",v0),t.addEventListener("touchstart",m0,Ho?{passive:!0}:!1)}function Pg(t){t.removeEventListener("click",v0),t.removeEventListener("touchstart",m0),t.removeEventListener("touchend",y0),t.removeEventListener("touchcancel",b0)}function v0(t){const n=t.currentTarget;t.closePopover=!n.$_vclosepopover_touch,t.closeAllPopover=n.$_closePopoverModifiers&&!!n.$_closePopoverModifiers.all}function m0(t){if(t.changedTouches.length===1){const n=t.currentTarget;n.$_vclosepopover_touch=!0;const r=t.changedTouches[0];n.$_vclosepopover_touchPoint=r,n.addEventListener("touchend",y0),n.addEventListener("touchcancel",b0)}}function y0(t){const n=t.currentTarget;if(n.$_vclosepopover_touch=!1,t.changedTouches.length===1){const r=t.changedTouches[0],o=n.$_vclosepopover_touchPoint;t.closePopover=Math.abs(r.screenY-o.screenY)<20&&Math.abs(r.screenX-o.screenX)<20,t.closeAllPopover=n.$_closePopoverModifiers&&!!n.$_closePopoverModifiers.all}}function b0(t){const n=t.currentTarget;n.$_vclosepopover_touch=!1}var Uk={beforeMount(t,{value:n,modifiers:r}){t.$_closePopoverModifiers=r,(typeof n>"u"||n)&&Ng(t)},updated(t,{value:n,oldValue:r,modifiers:o}){t.$_closePopoverModifiers=o,n!==r&&(typeof n>"u"||n?Ng(t):Pg(t))},beforeUnmount(t){Pg(t)}};const jk=g0;function Gk(t,n={}){t.$_vTooltipInstalled||(t.$_vTooltipInstalled=!0,i0(Wi,n),t.directive("tooltip",g0),t.directive("close-popper",Uk),t.component("v-tooltip",Ag),t.component("VTooltip",Ag),t.component("v-dropdown",Lg),t.component("VDropdown",Lg),t.component("v-menu",Eg),t.component("VMenu",Eg))}const w0={version:"2.0.0-y.0",install:Gk,options:Wi};var Og;const x0=typeof window<"u",Vk=t=>typeof t<"u",_0=t=>typeof t=="function",Kk=t=>typeof t=="string",ga=()=>{};x0&&((Og=window==null?void 0:window.navigator)==null?void 0:Og.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Gi(t){return typeof t=="function"?t():Z(t)}function Jf(t,n){function r(...o){t(()=>n.apply(this,o),{fn:n,thisArg:this,args:o})}return r}const S0=t=>t();function k0(t,n={}){let r,o;return u=>{const f=Gi(t),h=Gi(n.maxWait);if(r&&clearTimeout(r),f<=0||h!==void 0&&h<=0)return o&&(clearTimeout(o),o=null),u();h&&!o&&(o=setTimeout(()=>{r&&clearTimeout(r),o=null,u()},h)),r=setTimeout(()=>{o&&clearTimeout(o),o=null,u()},f)}}function Xk(t,n=!0,r=!0){let o=0,a,u=!0;const f=()=>{a&&(clearTimeout(a),a=void 0)};return p=>{const g=Gi(t),m=Date.now()-o;if(f(),g<=0)return o=Date.now(),p();m>g&&(r||!u)?(o=Date.now(),p()):n&&(a=setTimeout(()=>{o=Date.now(),u=!0,f(),p()},g)),!r&&!a&&(a=setTimeout(()=>u=!0,g)),u=!1}}function Yk(t=S0){const n=Kt(!0);function r(){n.value=!1}function o(){n.value=!0}return{isActive:n,pause:r,resume:o,eventFilter:(...u)=>{n.value&&t(...u)}}}function Zk(t){return t}function th(t){return hx()?(dx(t),!0):!1}function $g(t,n=200,r={}){return Jf(k0(n,r),t)}function Qk(t,n=200,r=!1,o=!0){return Jf(Xk(n,r,o),t)}function Jk(t,n=200,r=!0,o=!0){if(n<=0)return t;const a=Kt(t.value),u=Qk(()=>{a.value=t.value},n,r,o);return Fe(t,()=>u()),a}function tC(t){return typeof t=="function"?St(t):Kt(t)}function eh(t,n=!0){ic()?cl(t):n?t():al(t)}function eC(t=!1,n={}){const{truthyValue:r=!0,falsyValue:o=!1}=n,a=Ie(t),u=Kt(t);function f(h){if(arguments.length)return u.value=h,u.value;{const p=Gi(r);return u.value=u.value===p?Gi(o):p,u.value}}return a?f:[u,f]}var Dg=Object.getOwnPropertySymbols,nC=Object.prototype.hasOwnProperty,rC=Object.prototype.propertyIsEnumerable,iC=(t,n)=>{var r={};for(var o in t)nC.call(t,o)&&n.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Dg)for(var o of Dg(t))n.indexOf(o)<0&&rC.call(t,o)&&(r[o]=t[o]);return r};function C0(t,n,r={}){const o=r,{eventFilter:a=S0}=o,u=iC(o,["eventFilter"]);return Fe(t,Jf(a,n),u)}var oC=Object.defineProperty,sC=Object.defineProperties,lC=Object.getOwnPropertyDescriptors,Oa=Object.getOwnPropertySymbols,T0=Object.prototype.hasOwnProperty,L0=Object.prototype.propertyIsEnumerable,Rg=(t,n,r)=>n in t?oC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,aC=(t,n)=>{for(var r in n||(n={}))T0.call(n,r)&&Rg(t,r,n[r]);if(Oa)for(var r of Oa(n))L0.call(n,r)&&Rg(t,r,n[r]);return t},cC=(t,n)=>sC(t,lC(n)),uC=(t,n)=>{var r={};for(var o in t)T0.call(t,o)&&n.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Oa)for(var o of Oa(t))n.indexOf(o)<0&&L0.call(t,o)&&(r[o]=t[o]);return r};function fC(t,n,r={}){const o=r,{debounce:a=0,maxWait:u=void 0}=o,f=uC(o,["debounce","maxWait"]);return C0(t,n,cC(aC({},f),{eventFilter:k0(a,{maxWait:u})}))}function hC(t,n,r){const o=Fe(t,(...a)=>(al(()=>o()),n(...a)),r)}var dC=Object.defineProperty,pC=Object.defineProperties,gC=Object.getOwnPropertyDescriptors,$a=Object.getOwnPropertySymbols,E0=Object.prototype.hasOwnProperty,A0=Object.prototype.propertyIsEnumerable,zg=(t,n,r)=>n in t?dC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,vC=(t,n)=>{for(var r in n||(n={}))E0.call(n,r)&&zg(t,r,n[r]);if($a)for(var r of $a(n))A0.call(n,r)&&zg(t,r,n[r]);return t},mC=(t,n)=>pC(t,gC(n)),yC=(t,n)=>{var r={};for(var o in t)E0.call(t,o)&&n.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&$a)for(var o of $a(t))n.indexOf(o)<0&&A0.call(t,o)&&(r[o]=t[o]);return r};function M0(t,n,r={}){const o=r,{eventFilter:a}=o,u=yC(o,["eventFilter"]),{eventFilter:f,pause:h,resume:p,isActive:g}=Yk(a);return{stop:C0(t,n,mC(vC({},u),{eventFilter:f})),pause:h,resume:p,isActive:g}}function bC(t,n,r){let o;Ie(r)?o={evaluating:r}:o=r||{};const{lazy:a=!1,evaluating:u=void 0,onError:f=ga}=o,h=Kt(!a),p=Kt(n);let g=0;return If(async m=>{if(!h.value)return;g++;const b=g;let x=!1;u&&Promise.resolve().then(()=>{u.value=!0});try{const S=await t(N=>{m(()=>{u&&(u.value=!1),x||N()})});b===g&&(p.value=S)}catch(S){f(S)}finally{u&&b===g&&(u.value=!1),x=!0}}),a?St(()=>(h.value=!0,p.value)):p}function N0(t){var n;const r=Gi(t);return(n=r==null?void 0:r.$el)!=null?n:r}const dr=x0?window:void 0;function Bo(...t){let n,r,o,a;if(Kk(t[0])?([r,o,a]=t,n=dr):[n,r,o,a]=t,!n)return ga;let u=ga;const f=Fe(()=>N0(n),p=>{u(),p&&(p.addEventListener(r,o,a),u=()=>{p.removeEventListener(r,o,a),u=ga})},{immediate:!0,flush:"post"}),h=()=>{f(),u()};return th(h),h}const wC=t=>typeof t=="function"?t:typeof t=="string"?n=>n.key===t:Array.isArray(t)?n=>t.includes(n.key):()=>!0;function xC(...t){let n,r,o={};t.length===3?(n=t[0],r=t[1],o=t[2]):t.length===2?typeof t[1]=="object"?(n=!0,r=t[0],o=t[1]):(n=t[0],r=t[1]):(n=!0,r=t[0]);const{target:a=dr,eventName:u="keydown",passive:f=!1}=o,h=wC(n);return Bo(a,u,g=>{h(g)&&r(g)},f)}function P0(t,n=!1){const r=Kt(),o=()=>r.value=Boolean(t());return o(),eh(o,n),r}function _C(t,n={}){const{window:r=dr}=n,o=P0(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let a;const u=Kt(!1),f=()=>{!a||("removeEventListener"in a?a.removeEventListener("change",h):a.removeListener(h))},h=()=>{!o.value||(f(),a=r.matchMedia(tC(t).value),u.value=a.matches,"addEventListener"in a?a.addEventListener("change",h):a.addListener(h))};return If(h),th(()=>f()),u}function SC(t){return JSON.parse(JSON.stringify(t))}const nf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},rf="__vueuse_ssr_handlers__";nf[rf]=nf[rf]||{};const kC=nf[rf];function O0(t,n){return kC[t]||n}function CC(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"||Array.isArray(t)?"object":Number.isNaN(t)?"any":"number"}var TC=Object.defineProperty,Ig=Object.getOwnPropertySymbols,LC=Object.prototype.hasOwnProperty,EC=Object.prototype.propertyIsEnumerable,Fg=(t,n,r)=>n in t?TC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,qg=(t,n)=>{for(var r in n||(n={}))LC.call(n,r)&&Fg(t,r,n[r]);if(Ig)for(var r of Ig(n))EC.call(n,r)&&Fg(t,r,n[r]);return t};const AC={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}};function MC(t,n,r,o={}){var a;const{flush:u="pre",deep:f=!0,listenToStorageChanges:h=!0,writeDefaults:p=!0,mergeDefaults:g=!1,shallow:m,window:b=dr,eventFilter:x,onError:S=it=>{console.error(it)}}=o,N=(m?sl:Kt)(n);if(!r)try{r=O0("getDefaultStorage",()=>{var it;return(it=dr)==null?void 0:it.localStorage})()}catch(it){S(it)}if(!r)return N;const A=Gi(n),L=CC(A),C=(a=o.serializer)!=null?a:AC[L],{pause:E,resume:z}=M0(N,()=>D(N.value),{flush:u,deep:f,eventFilter:x});return b&&h&&Bo(b,"storage",j),j(),N;function D(it){try{it==null?r.removeItem(t):r.setItem(t,C.write(it))}catch(J){S(J)}}function G(it){if(!(it&&it.key!==t)){E();try{const J=it?it.newValue:r.getItem(t);if(J==null)return p&&A!==null&&r.setItem(t,C.write(A)),A;if(!it&&g){const dt=C.read(J);return _0(g)?g(dt,A):L==="object"&&!Array.isArray(dt)?qg(qg({},A),dt):dt}else return typeof J!="string"?J:C.read(J)}catch(J){S(J)}finally{z()}}}function j(it){it&&it.key!==t||(N.value=G(it))}}function $0(t){return _C("(prefers-color-scheme: dark)",t)}var NC=Object.defineProperty,Hg=Object.getOwnPropertySymbols,PC=Object.prototype.hasOwnProperty,OC=Object.prototype.propertyIsEnumerable,Bg=(t,n,r)=>n in t?NC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,$C=(t,n)=>{for(var r in n||(n={}))PC.call(n,r)&&Bg(t,r,n[r]);if(Hg)for(var r of Hg(n))OC.call(n,r)&&Bg(t,r,n[r]);return t};function DC(t={}){const{selector:n="html",attribute:r="class",initialValue:o="auto",window:a=dr,storage:u,storageKey:f="vueuse-color-scheme",listenToStorageChanges:h=!0,storageRef:p,emitAuto:g}=t,m=$C({auto:"",light:"light",dark:"dark"},t.modes||{}),b=$0({window:a}),x=St(()=>b.value?"dark":"light"),S=p||(f==null?Kt(o):MC(f,o,u,{window:a,listenToStorageChanges:h})),N=St({get(){return S.value==="auto"&&!g?x.value:S.value},set(E){S.value=E}}),A=O0("updateHTMLAttrs",(E,z,D)=>{const G=a==null?void 0:a.document.querySelector(E);if(!!G)if(z==="class"){const j=D.split(/\s/g);Object.values(m).flatMap(it=>(it||"").split(/\s/g)).filter(Boolean).forEach(it=>{j.includes(it)?G.classList.add(it):G.classList.remove(it)})}else G.setAttribute(z,D)});function L(E){var z;const D=E==="auto"?x.value:E;A(n,r,(z=m[D])!=null?z:D)}function C(E){t.onChanged?t.onChanged(E,L):L(E)}return Fe(N,C,{flush:"post",immediate:!0}),g&&Fe(x,()=>C(N.value),{flush:"post"}),eh(()=>C(N.value)),N}var RC=Object.defineProperty,zC=Object.defineProperties,IC=Object.getOwnPropertyDescriptors,Wg=Object.getOwnPropertySymbols,FC=Object.prototype.hasOwnProperty,qC=Object.prototype.propertyIsEnumerable,Ug=(t,n,r)=>n in t?RC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,HC=(t,n)=>{for(var r in n||(n={}))FC.call(n,r)&&Ug(t,r,n[r]);if(Wg)for(var r of Wg(n))qC.call(n,r)&&Ug(t,r,n[r]);return t},BC=(t,n)=>zC(t,IC(n));function WC(t={}){const{valueDark:n="dark",valueLight:r="",window:o=dr}=t,a=DC(BC(HC({},t),{onChanged:(h,p)=>{var g;t.onChanged?(g=t.onChanged)==null||g.call(t,h==="dark"):p(h)},modes:{dark:n,light:r}})),u=$0({window:o});return St({get(){return a.value==="dark"},set(h){h===u.value?a.value="auto":a.value=h?"dark":"light"}})}var jg=Object.getOwnPropertySymbols,UC=Object.prototype.hasOwnProperty,jC=Object.prototype.propertyIsEnumerable,GC=(t,n)=>{var r={};for(var o in t)UC.call(t,o)&&n.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&jg)for(var o of jg(t))n.indexOf(o)<0&&jC.call(t,o)&&(r[o]=t[o]);return r};function VC(t,n,r={}){const o=r,{window:a=dr}=o,u=GC(o,["window"]);let f;const h=P0(()=>a&&"ResizeObserver"in a),p=()=>{f&&(f.disconnect(),f=void 0)},g=Fe(()=>N0(t),b=>{p(),h.value&&a&&b&&(f=new ResizeObserver(n),f.observe(b,u))},{immediate:!0,flush:"post"}),m=()=>{p(),g()};return th(m),{isSupported:h,stop:m}}var Gg;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(Gg||(Gg={}));var KC=Object.defineProperty,Vg=Object.getOwnPropertySymbols,XC=Object.prototype.hasOwnProperty,YC=Object.prototype.propertyIsEnumerable,Kg=(t,n,r)=>n in t?KC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,ZC=(t,n)=>{for(var r in n||(n={}))XC.call(n,r)&&Kg(t,r,n[r]);if(Vg)for(var r of Vg(n))YC.call(n,r)&&Kg(t,r,n[r]);return t};const QC={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};ZC({linear:Zk},QC);function JC(t="history",n={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:a=!1,write:u=!0,window:f=dr}=n;if(!f)return hr(r);const h=hr({});function p(){if(t==="history")return f.location.search||"";if(t==="hash"){const C=f.location.hash||"",E=C.indexOf("?");return E>0?C.slice(E):""}else return(f.location.hash||"").replace(/^#/,"")}function g(C){const E=C.toString();if(t==="history")return`${E?`?${E}`:""}${f.location.hash||""}`;if(t==="hash-params")return`${f.location.search||""}${E?`#${E}`:""}`;const z=f.location.hash||"#",D=z.indexOf("?");return D>0?`${z.slice(0,D)}${E?`?${E}`:""}`:`${z}${E?`?${E}`:""}`}function m(){return new URLSearchParams(p())}function b(C){const E=new Set(Object.keys(h));for(const z of C.keys()){const D=C.getAll(z);h[z]=D.length>1?D:C.get(z)||"",E.delete(z)}Array.from(E).forEach(z=>delete h[z])}const{pause:x,resume:S}=M0(h,()=>{const C=new URLSearchParams("");Object.keys(h).forEach(E=>{const z=h[E];Array.isArray(z)?z.forEach(D=>C.append(E,D)):o&&z==null||a&&!z?C.delete(E):C.set(E,z)}),N(C)},{deep:!0});function N(C,E){x(),E&&b(C),f.history.replaceState(f.history.state,f.document.title,f.location.pathname+g(C)),S()}function A(){!u||N(m(),!0)}Bo(f,"popstate",A,!1),t!=="history"&&Bo(f,"hashchange",A,!1);const L=m();return L.keys().next().value?b(L):Object.assign(h,r),h}function tT(t,n,r,o={}){var a,u,f;const{clone:h=!1,passive:p=!1,eventName:g,deep:m=!1,defaultValue:b}=o,x=ic(),S=r||(x==null?void 0:x.emit)||((a=x==null?void 0:x.$emit)==null?void 0:a.bind(x))||((f=(u=x==null?void 0:x.proxy)==null?void 0:u.$emit)==null?void 0:f.bind(x==null?void 0:x.proxy));let N=g;n||(n="modelValue"),N=g||N||`update:${n.toString()}`;const A=C=>h?_0(h)?h(C):SC(C):C,L=()=>Vk(t[n])?A(t[n]):b;if(p){const C=L(),E=Kt(C);return Fe(()=>t[n],z=>E.value=A(z)),Fe(E,z=>{(z!==t[n]||m)&&S(N,z)},{deep:m}),E}else return St({get(){return L()},set(C){S(N,C)}})}function eT(t={}){const{window:n=dr,initialWidth:r=1/0,initialHeight:o=1/0,listenOrientation:a=!0,includeScrollbar:u=!0}=t,f=Kt(r),h=Kt(o),p=()=>{n&&(u?(f.value=n.innerWidth,h.value=n.innerHeight):(f.value=n.document.documentElement.clientWidth,h.value=n.document.documentElement.clientHeight))};return p(),eh(p),Bo("resize",p,{passive:!0}),a&&Bo("orientationchange",p,{passive:!0}),{width:f,height:h}}const nT=6e4;function rT(t,n){const{post:r,on:o,eventNames:a=[],serialize:u=m=>m,deserialize:f=m=>m,timeout:h=nT}=n,p=new Map,g=new Proxy({},{get(m,b){const x=(...N)=>{r(u({m:b,a:N,t:"q"}))};if(a.includes(b))return x.asEvent=x,x;const S=(...N)=>new Promise((A,L)=>{const C=oT();p.set(C,{resolve:A,reject:L}),r(u({m:b,a:N,i:C,t:"q"})),h>=0&&setTimeout(()=>{L(new Error(`[birpc] timeout on calling "${b}"`)),p.delete(C)},h)});return S.asEvent=x,S}});return o(async(m,...b)=>{const x=f(m);if(x.t==="q"){const{m:S,a:N}=x;let A,L;try{A=await t[S].apply(g,N)}catch(C){L=C}x.i&&r(u({t:"s",i:x.i,r:A,e:L}),...b)}else{const{i:S,r:N,e:A}=x,L=p.get(S);A?L==null||L.reject(A):L==null||L.resolve(N),p.delete(S)}}),g}const iT="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function oT(t=21){let n="",r=t;for(;r--;)n+=iT[Math.random()*64|0];return n}/*! (c) 2020 Andrea Giammarchi */const{parse:sT,stringify:lT}=JSON,{keys:aT}=Object,Js=String,D0="string",Xg={},Da="object",R0=(t,n)=>n,cT=t=>t instanceof Js?Js(t):t,uT=(t,n)=>typeof n===D0?new Js(n):n,z0=(t,n,r,o)=>{const a=[];for(let u=aT(r),{length:f}=u,h=0;h<f;h++){const p=u[h],g=r[p];if(g instanceof Js){const m=t[g];typeof m===Da&&!n.has(m)?(n.add(m),r[p]=Xg,a.push({k:p,a:[t,n,m,o]})):r[p]=o.call(r,p,m)}else r[p]!==Xg&&(r[p]=o.call(r,p,g))}for(let{length:u}=a,f=0;f<u;f++){const{k:h,a:p}=a[f];r[h]=o.call(r,h,z0.apply(null,p))}return r},Yg=(t,n,r)=>{const o=Js(n.push(r)-1);return t.set(r,o),o},fT=(t,n)=>{const r=sT(t,uT).map(cT),o=r[0],a=n||R0,u=typeof o===Da&&o?z0(r,new Set,o,a):o;return a.call({"":u},"",u)},hT=(t,n,r)=>{const o=n&&typeof n===Da?(m,b)=>m===""||-1<n.indexOf(m)?b:void 0:n||R0,a=new Map,u=[],f=[];let h=+Yg(a,u,o.call({"":t},"",t)),p=!h;for(;h<u.length;)p=!0,f[h]=lT(u[h++],g,r);return"["+f.join(",")+"]";function g(m,b){if(p)return p=!p,b;const x=o.call(this,m,b);switch(typeof x){case Da:if(x===null)return x;case D0:return a.get(x)||Yg(a,u,x)}return x}},dT=t=>typeof AggregateError<"u"&&t instanceof AggregateError?!0:t instanceof Error&&"errors"in t;class pT{constructor(){this.filesMap=new Map,this.pathsSet=new Set,this.collectingPromise=void 0,this.idMap=new Map,this.taskFileMap=new WeakMap,this.errorsSet=new Set}catchError(n,r){if(dT(n))return n.errors.forEach(o=>this.catchError(o,r));n.type=r,this.errorsSet.add(n)}clearErrors(){this.errorsSet.clear()}getUnhandledErrors(){return Array.from(this.errorsSet.values())}startCollectingPaths(){let n;const r=new Promise(o=>{n=o});this.collectingPromise={promise:r,resolve:n}}finishCollectingPaths(){var n;(n=this.collectingPromise)==null||n.resolve(),this.collectingPromise=void 0}async getPaths(){var n;return await((n=this.collectingPromise)==null?void 0:n.promise),Array.from(this.pathsSet)}getFiles(n){return n?n.map(r=>this.filesMap.get(r)).filter(Boolean):Array.from(this.filesMap.values())}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(n=>{var r;return((r=n.result)==null?void 0:r.state)==="fail"}).map(n=>n.filepath)}collectPaths(n=[]){n.forEach(r=>{this.pathsSet.add(r)})}collectFiles(n=[]){n.forEach(r=>{this.filesMap.set(r.filepath,r),this.updateId(r)})}clearFiles(n=[]){n.forEach(r=>{this.filesMap.delete(r)})}updateId(n){this.idMap.get(n.id)!==n&&(this.idMap.set(n.id,n),n.type==="suite"&&n.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(n){for(const[r,o]of n)this.idMap.has(r)&&(this.idMap.get(r).result=o)}updateUserLog(n){const r=n.taskId&&this.idMap.get(n.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(n))}}const Ii=Date;class tl extends Ii{constructor(n,r,o,a,u,f,h){super();let p;switch(arguments.length){case 0:p=new Ii;break;case 1:p=new Ii(n);break;default:o=typeof o>"u"?1:o,a=a||0,u=u||0,f=f||0,h=h||0,p=new Ii(n,r,o,a,u,f,h);break}return p}}tl.UTC=Ii.UTC;tl.now=function(){return new tl().valueOf()};tl.parse=function(t){return Ii.parse(t)};tl.toString=function(){return Ii.toString()};function I0(t){return t==null&&(t=[]),Array.isArray(t)?t:[t]}function of(t){return t.type==="test"||t.type==="benchmark"}function F0(t){return I0(t).flatMap(n=>of(n)?[n]:n.tasks.flatMap(r=>of(r)?[r]:F0(r)))}function nh(t=[]){return I0(t).flatMap(n=>of(n)?[n]:[n,...nh(n.tasks)])}function dc(t){return F0(t).some(n=>{var o,a;const r=(a=(o=n.result)==null?void 0:o.error)==null?void 0:a.message;return r==null?void 0:r.match(/Snapshot .* mismatched/)})}function gT(t){const n=[t.name];let r=t;for(;(r==null?void 0:r.suite)||(r==null?void 0:r.file);)r=r.suite||r.file,r!=null&&r.name&&n.unshift(r.name);return n}function vT(t,n={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:a=2e3,reconnectTries:u=10,reactive:f=C=>C,WebSocketConstructor:h=globalThis.WebSocket}=n;let p=u;const g=f({ws:new h(t),state:new pT,waitForConnection:L,reconnect:N});g.state.filesMap=f(g.state.filesMap),g.state.idMap=f(g.state.idMap);let m;const b={onPathsCollected(C){var E;g.state.collectPaths(C),(E=r.onPathsCollected)==null||E.call(r,C)},onCollected(C){var E;g.state.collectFiles(C),(E=r.onCollected)==null||E.call(r,C)},onTaskUpdate(C){var E;g.state.updateTasks(C),(E=r.onTaskUpdate)==null||E.call(r,C)},onUserConsoleLog(C){g.state.updateUserLog(C)},onFinished(C){var E;(E=r.onFinished)==null||E.call(r,C)}},x={post:C=>g.ws.send(C),on:C=>m=C,serialize:hT,deserialize:fT};g.rpc=rT(b,x);let S;function N(C=!1){C&&(p=u),g.ws=new h(t),A()}function A(){S=new Promise(C=>{g.ws.addEventListener("open",()=>{p=u,C()})}),g.ws.addEventListener("message",C=>{m(C.data)}),g.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(N,a)})}A();function L(){return S}return g}const q0=JC("hash-params",{initialValue:{file:"",view:null}}),Mr=Of(q0,"file"),or=Of(q0,"view"),mT=location.port,yT=[location.hostname,mT].filter(Boolean).join(":"),bT=`${location.protocol==="https:"?"wss:":"ws:"}//${yT}/__vitest_api__`,Ra=Kt("idle"),We=vT(bT,{reactive:hr,handlers:{onTaskUpdate(){Ra.value="running"},onFinished(){Ra.value="idle"}}}),sf=sl({}),Fi=Kt("CONNECTING"),Tn=St(()=>We.state.getFiles()),Le=St(()=>Tn.value.find(t=>t.id===Mr.value)),H0=St(()=>nh(Le.value).map(t=>(t==null?void 0:t.logs)||[]).flat()||[]),za=t=>Tn.value.find(n=>n.id===t),wT=St(()=>Fi.value==="OPEN"),Cu=St(()=>Fi.value==="CONNECTING");St(()=>Fi.value==="CLOSED");function Zg(t=We.state.getFiles()){return B0(t)}function B0(t){return t.forEach(n=>{delete n.result,nh(n).forEach(r=>delete r.result)}),We.rpc.rerun(t.map(n=>n.filepath))}function xT(){if(Le.value)return B0([Le.value])}Fe(()=>We.ws,t=>{Fi.value="CONNECTING",t.addEventListener("open",()=>{Fi.value="OPEN",We.state.filesMap.clear(),We.rpc.getFiles().then(n=>We.state.collectFiles(n)),We.rpc.getConfig().then(n=>sf.value=n)}),t.addEventListener("close",()=>{setTimeout(()=>{Fi.value==="CONNECTING"&&(Fi.value="CLOSED")},1e3)})},{immediate:!0});const _T={"text-2xl":""},ST=ut("div",{"text-lg":"",op50:""}," Check your terminal or start a new server with `vitest --ui` ",-1),kT=oe({__name:"ConnectionOverlay",setup(t){return(n,r)=>Z(wT)?ye("",!0):(ht(),Mt("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)=>Z(We).reconnect&&Z(We).reconnect(...o))},[ut("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:ge(Z(Cu)?"animate-pulse":"")},[ut("div",{text:"5xl",class:ge(Z(Cu)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),ut("div",_T,Zt(Z(Cu)?"Connecting...":"Disconnected"),1),ST],2)]))}});var Vi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},W0={},Or={};const CT="\xC1",TT="\xE1",LT="\u0102",ET="\u0103",AT="\u223E",MT="\u223F",NT="\u223E\u0333",PT="\xC2",OT="\xE2",$T="\xB4",DT="\u0410",RT="\u0430",zT="\xC6",IT="\xE6",FT="\u2061",qT="\u{1D504}",HT="\u{1D51E}",BT="\xC0",WT="\xE0",UT="\u2135",jT="\u2135",GT="\u0391",VT="\u03B1",KT="\u0100",XT="\u0101",YT="\u2A3F",ZT="&",QT="&",JT="\u2A55",tL="\u2A53",eL="\u2227",nL="\u2A5C",rL="\u2A58",iL="\u2A5A",oL="\u2220",sL="\u29A4",lL="\u2220",aL="\u29A8",cL="\u29A9",uL="\u29AA",fL="\u29AB",hL="\u29AC",dL="\u29AD",pL="\u29AE",gL="\u29AF",vL="\u2221",mL="\u221F",yL="\u22BE",bL="\u299D",wL="\u2222",xL="\xC5",_L="\u237C",SL="\u0104",kL="\u0105",CL="\u{1D538}",TL="\u{1D552}",LL="\u2A6F",EL="\u2248",AL="\u2A70",ML="\u224A",NL="\u224B",PL="'",OL="\u2061",$L="\u2248",DL="\u224A",RL="\xC5",zL="\xE5",IL="\u{1D49C}",FL="\u{1D4B6}",qL="\u2254",HL="*",BL="\u2248",WL="\u224D",UL="\xC3",jL="\xE3",GL="\xC4",VL="\xE4",KL="\u2233",XL="\u2A11",YL="\u224C",ZL="\u03F6",QL="\u2035",JL="\u223D",tE="\u22CD",eE="\u2216",nE="\u2AE7",rE="\u22BD",iE="\u2305",oE="\u2306",sE="\u2305",lE="\u23B5",aE="\u23B6",cE="\u224C",uE="\u0411",fE="\u0431",hE="\u201E",dE="\u2235",pE="\u2235",gE="\u2235",vE="\u29B0",mE="\u03F6",yE="\u212C",bE="\u212C",wE="\u0392",xE="\u03B2",_E="\u2136",SE="\u226C",kE="\u{1D505}",CE="\u{1D51F}",TE="\u22C2",LE="\u25EF",EE="\u22C3",AE="\u2A00",ME="\u2A01",NE="\u2A02",PE="\u2A06",OE="\u2605",$E="\u25BD",DE="\u25B3",RE="\u2A04",zE="\u22C1",IE="\u22C0",FE="\u290D",qE="\u29EB",HE="\u25AA",BE="\u25B4",WE="\u25BE",UE="\u25C2",jE="\u25B8",GE="\u2423",VE="\u2592",KE="\u2591",XE="\u2593",YE="\u2588",ZE="=\u20E5",QE="\u2261\u20E5",JE="\u2AED",tA="\u2310",eA="\u{1D539}",nA="\u{1D553}",rA="\u22A5",iA="\u22A5",oA="\u22C8",sA="\u29C9",lA="\u2510",aA="\u2555",cA="\u2556",uA="\u2557",fA="\u250C",hA="\u2552",dA="\u2553",pA="\u2554",gA="\u2500",vA="\u2550",mA="\u252C",yA="\u2564",bA="\u2565",wA="\u2566",xA="\u2534",_A="\u2567",SA="\u2568",kA="\u2569",CA="\u229F",TA="\u229E",LA="\u22A0",EA="\u2518",AA="\u255B",MA="\u255C",NA="\u255D",PA="\u2514",OA="\u2558",$A="\u2559",DA="\u255A",RA="\u2502",zA="\u2551",IA="\u253C",FA="\u256A",qA="\u256B",HA="\u256C",BA="\u2524",WA="\u2561",UA="\u2562",jA="\u2563",GA="\u251C",VA="\u255E",KA="\u255F",XA="\u2560",YA="\u2035",ZA="\u02D8",QA="\u02D8",JA="\xA6",tM="\u{1D4B7}",eM="\u212C",nM="\u204F",rM="\u223D",iM="\u22CD",oM="\u29C5",sM="\\",lM="\u27C8",aM="\u2022",cM="\u2022",uM="\u224E",fM="\u2AAE",hM="\u224F",dM="\u224E",pM="\u224F",gM="\u0106",vM="\u0107",mM="\u2A44",yM="\u2A49",bM="\u2A4B",wM="\u2229",xM="\u22D2",_M="\u2A47",SM="\u2A40",kM="\u2145",CM="\u2229\uFE00",TM="\u2041",LM="\u02C7",EM="\u212D",AM="\u2A4D",MM="\u010C",NM="\u010D",PM="\xC7",OM="\xE7",$M="\u0108",DM="\u0109",RM="\u2230",zM="\u2A4C",IM="\u2A50",FM="\u010A",qM="\u010B",HM="\xB8",BM="\xB8",WM="\u29B2",UM="\xA2",jM="\xB7",GM="\xB7",VM="\u{1D520}",KM="\u212D",XM="\u0427",YM="\u0447",ZM="\u2713",QM="\u2713",JM="\u03A7",tN="\u03C7",eN="\u02C6",nN="\u2257",rN="\u21BA",iN="\u21BB",oN="\u229B",sN="\u229A",lN="\u229D",aN="\u2299",cN="\xAE",uN="\u24C8",fN="\u2296",hN="\u2295",dN="\u2297",pN="\u25CB",gN="\u29C3",vN="\u2257",mN="\u2A10",yN="\u2AEF",bN="\u29C2",wN="\u2232",xN="\u201D",_N="\u2019",SN="\u2663",kN="\u2663",CN=":",TN="\u2237",LN="\u2A74",EN="\u2254",AN="\u2254",MN=",",NN="@",PN="\u2201",ON="\u2218",$N="\u2201",DN="\u2102",RN="\u2245",zN="\u2A6D",IN="\u2261",FN="\u222E",qN="\u222F",HN="\u222E",BN="\u{1D554}",WN="\u2102",UN="\u2210",jN="\u2210",GN="\xA9",VN="\xA9",KN="\u2117",XN="\u2233",YN="\u21B5",ZN="\u2717",QN="\u2A2F",JN="\u{1D49E}",tP="\u{1D4B8}",eP="\u2ACF",nP="\u2AD1",rP="\u2AD0",iP="\u2AD2",oP="\u22EF",sP="\u2938",lP="\u2935",aP="\u22DE",cP="\u22DF",uP="\u21B6",fP="\u293D",hP="\u2A48",dP="\u2A46",pP="\u224D",gP="\u222A",vP="\u22D3",mP="\u2A4A",yP="\u228D",bP="\u2A45",wP="\u222A\uFE00",xP="\u21B7",_P="\u293C",SP="\u22DE",kP="\u22DF",CP="\u22CE",TP="\u22CF",LP="\xA4",EP="\u21B6",AP="\u21B7",MP="\u22CE",NP="\u22CF",PP="\u2232",OP="\u2231",$P="\u232D",DP="\u2020",RP="\u2021",zP="\u2138",IP="\u2193",FP="\u21A1",qP="\u21D3",HP="\u2010",BP="\u2AE4",WP="\u22A3",UP="\u290F",jP="\u02DD",GP="\u010E",VP="\u010F",KP="\u0414",XP="\u0434",YP="\u2021",ZP="\u21CA",QP="\u2145",JP="\u2146",tO="\u2911",eO="\u2A77",nO="\xB0",rO="\u2207",iO="\u0394",oO="\u03B4",sO="\u29B1",lO="\u297F",aO="\u{1D507}",cO="\u{1D521}",uO="\u2965",fO="\u21C3",hO="\u21C2",dO="\xB4",pO="\u02D9",gO="\u02DD",vO="`",mO="\u02DC",yO="\u22C4",bO="\u22C4",wO="\u22C4",xO="\u2666",_O="\u2666",SO="\xA8",kO="\u2146",CO="\u03DD",TO="\u22F2",LO="\xF7",EO="\xF7",AO="\u22C7",MO="\u22C7",NO="\u0402",PO="\u0452",OO="\u231E",$O="\u230D",DO="$",RO="\u{1D53B}",zO="\u{1D555}",IO="\xA8",FO="\u02D9",qO="\u20DC",HO="\u2250",BO="\u2251",WO="\u2250",UO="\u2238",jO="\u2214",GO="\u22A1",VO="\u2306",KO="\u222F",XO="\xA8",YO="\u21D3",ZO="\u21D0",QO="\u21D4",JO="\u2AE4",t$="\u27F8",e$="\u27FA",n$="\u27F9",r$="\u21D2",i$="\u22A8",o$="\u21D1",s$="\u21D5",l$="\u2225",a$="\u2913",c$="\u2193",u$="\u2193",f$="\u21D3",h$="\u21F5",d$="\u0311",p$="\u21CA",g$="\u21C3",v$="\u21C2",m$="\u2950",y$="\u295E",b$="\u2956",w$="\u21BD",x$="\u295F",_$="\u2957",S$="\u21C1",k$="\u21A7",C$="\u22A4",T$="\u2910",L$="\u231F",E$="\u230C",A$="\u{1D49F}",M$="\u{1D4B9}",N$="\u0405",P$="\u0455",O$="\u29F6",$$="\u0110",D$="\u0111",R$="\u22F1",z$="\u25BF",I$="\u25BE",F$="\u21F5",q$="\u296F",H$="\u29A6",B$="\u040F",W$="\u045F",U$="\u27FF",j$="\xC9",G$="\xE9",V$="\u2A6E",K$="\u011A",X$="\u011B",Y$="\xCA",Z$="\xEA",Q$="\u2256",J$="\u2255",tD="\u042D",eD="\u044D",nD="\u2A77",rD="\u0116",iD="\u0117",oD="\u2251",sD="\u2147",lD="\u2252",aD="\u{1D508}",cD="\u{1D522}",uD="\u2A9A",fD="\xC8",hD="\xE8",dD="\u2A96",pD="\u2A98",gD="\u2A99",vD="\u2208",mD="\u23E7",yD="\u2113",bD="\u2A95",wD="\u2A97",xD="\u0112",_D="\u0113",SD="\u2205",kD="\u2205",CD="\u25FB",TD="\u2205",LD="\u25AB",ED="\u2004",AD="\u2005",MD="\u2003",ND="\u014A",PD="\u014B",OD="\u2002",$D="\u0118",DD="\u0119",RD="\u{1D53C}",zD="\u{1D556}",ID="\u22D5",FD="\u29E3",qD="\u2A71",HD="\u03B5",BD="\u0395",WD="\u03B5",UD="\u03F5",jD="\u2256",GD="\u2255",VD="\u2242",KD="\u2A96",XD="\u2A95",YD="\u2A75",ZD="=",QD="\u2242",JD="\u225F",tR="\u21CC",eR="\u2261",nR="\u2A78",rR="\u29E5",iR="\u2971",oR="\u2253",sR="\u212F",lR="\u2130",aR="\u2250",cR="\u2A73",uR="\u2242",fR="\u0397",hR="\u03B7",dR="\xD0",pR="\xF0",gR="\xCB",vR="\xEB",mR="\u20AC",yR="!",bR="\u2203",wR="\u2203",xR="\u2130",_R="\u2147",SR="\u2147",kR="\u2252",CR="\u0424",TR="\u0444",LR="\u2640",ER="\uFB03",AR="\uFB00",MR="\uFB04",NR="\u{1D509}",PR="\u{1D523}",OR="\uFB01",$R="\u25FC",DR="\u25AA",RR="fj",zR="\u266D",IR="\uFB02",FR="\u25B1",qR="\u0192",HR="\u{1D53D}",BR="\u{1D557}",WR="\u2200",UR="\u2200",jR="\u22D4",GR="\u2AD9",VR="\u2131",KR="\u2A0D",XR="\xBD",YR="\u2153",ZR="\xBC",QR="\u2155",JR="\u2159",tz="\u215B",ez="\u2154",nz="\u2156",rz="\xBE",iz="\u2157",oz="\u215C",sz="\u2158",lz="\u215A",az="\u215D",cz="\u215E",uz="\u2044",fz="\u2322",hz="\u{1D4BB}",dz="\u2131",pz="\u01F5",gz="\u0393",vz="\u03B3",mz="\u03DC",yz="\u03DD",bz="\u2A86",wz="\u011E",xz="\u011F",_z="\u0122",Sz="\u011C",kz="\u011D",Cz="\u0413",Tz="\u0433",Lz="\u0120",Ez="\u0121",Az="\u2265",Mz="\u2267",Nz="\u2A8C",Pz="\u22DB",Oz="\u2265",$z="\u2267",Dz="\u2A7E",Rz="\u2AA9",zz="\u2A7E",Iz="\u2A80",Fz="\u2A82",qz="\u2A84",Hz="\u22DB\uFE00",Bz="\u2A94",Wz="\u{1D50A}",Uz="\u{1D524}",jz="\u226B",Gz="\u22D9",Vz="\u22D9",Kz="\u2137",Xz="\u0403",Yz="\u0453",Zz="\u2AA5",Qz="\u2277",Jz="\u2A92",tI="\u2AA4",eI="\u2A8A",nI="\u2A8A",rI="\u2A88",iI="\u2269",oI="\u2A88",sI="\u2269",lI="\u22E7",aI="\u{1D53E}",cI="\u{1D558}",uI="`",fI="\u2265",hI="\u22DB",dI="\u2267",pI="\u2AA2",gI="\u2277",vI="\u2A7E",mI="\u2273",yI="\u{1D4A2}",bI="\u210A",wI="\u2273",xI="\u2A8E",_I="\u2A90",SI="\u2AA7",kI="\u2A7A",CI=">",TI=">",LI="\u226B",EI="\u22D7",AI="\u2995",MI="\u2A7C",NI="\u2A86",PI="\u2978",OI="\u22D7",$I="\u22DB",DI="\u2A8C",RI="\u2277",zI="\u2273",II="\u2269\uFE00",FI="\u2269\uFE00",qI="\u02C7",HI="\u200A",BI="\xBD",WI="\u210B",UI="\u042A",jI="\u044A",GI="\u2948",VI="\u2194",KI="\u21D4",XI="\u21AD",YI="^",ZI="\u210F",QI="\u0124",JI="\u0125",tF="\u2665",eF="\u2665",nF="\u2026",rF="\u22B9",iF="\u{1D525}",oF="\u210C",sF="\u210B",lF="\u2925",aF="\u2926",cF="\u21FF",uF="\u223B",fF="\u21A9",hF="\u21AA",dF="\u{1D559}",pF="\u210D",gF="\u2015",vF="\u2500",mF="\u{1D4BD}",yF="\u210B",bF="\u210F",wF="\u0126",xF="\u0127",_F="\u224E",SF="\u224F",kF="\u2043",CF="\u2010",TF="\xCD",LF="\xED",EF="\u2063",AF="\xCE",MF="\xEE",NF="\u0418",PF="\u0438",OF="\u0130",$F="\u0415",DF="\u0435",RF="\xA1",zF="\u21D4",IF="\u{1D526}",FF="\u2111",qF="\xCC",HF="\xEC",BF="\u2148",WF="\u2A0C",UF="\u222D",jF="\u29DC",GF="\u2129",VF="\u0132",KF="\u0133",XF="\u012A",YF="\u012B",ZF="\u2111",QF="\u2148",JF="\u2110",tq="\u2111",eq="\u0131",nq="\u2111",rq="\u22B7",iq="\u01B5",oq="\u21D2",sq="\u2105",lq="\u221E",aq="\u29DD",cq="\u0131",uq="\u22BA",fq="\u222B",hq="\u222C",dq="\u2124",pq="\u222B",gq="\u22BA",vq="\u22C2",mq="\u2A17",yq="\u2A3C",bq="\u2063",wq="\u2062",xq="\u0401",_q="\u0451",Sq="\u012E",kq="\u012F",Cq="\u{1D540}",Tq="\u{1D55A}",Lq="\u0399",Eq="\u03B9",Aq="\u2A3C",Mq="\xBF",Nq="\u{1D4BE}",Pq="\u2110",Oq="\u2208",$q="\u22F5",Dq="\u22F9",Rq="\u22F4",zq="\u22F3",Iq="\u2208",Fq="\u2062",qq="\u0128",Hq="\u0129",Bq="\u0406",Wq="\u0456",Uq="\xCF",jq="\xEF",Gq="\u0134",Vq="\u0135",Kq="\u0419",Xq="\u0439",Yq="\u{1D50D}",Zq="\u{1D527}",Qq="\u0237",Jq="\u{1D541}",t2="\u{1D55B}",e2="\u{1D4A5}",n2="\u{1D4BF}",r2="\u0408",i2="\u0458",o2="\u0404",s2="\u0454",l2="\u039A",a2="\u03BA",c2="\u03F0",u2="\u0136",f2="\u0137",h2="\u041A",d2="\u043A",p2="\u{1D50E}",g2="\u{1D528}",v2="\u0138",m2="\u0425",y2="\u0445",b2="\u040C",w2="\u045C",x2="\u{1D542}",_2="\u{1D55C}",S2="\u{1D4A6}",k2="\u{1D4C0}",C2="\u21DA",T2="\u0139",L2="\u013A",E2="\u29B4",A2="\u2112",M2="\u039B",N2="\u03BB",P2="\u27E8",O2="\u27EA",$2="\u2991",D2="\u27E8",R2="\u2A85",z2="\u2112",I2="\xAB",F2="\u21E4",q2="\u291F",H2="\u2190",B2="\u219E",W2="\u21D0",U2="\u291D",j2="\u21A9",G2="\u21AB",V2="\u2939",K2="\u2973",X2="\u21A2",Y2="\u2919",Z2="\u291B",Q2="\u2AAB",J2="\u2AAD",tH="\u2AAD\uFE00",eH="\u290C",nH="\u290E",rH="\u2772",iH="{",oH="[",sH="\u298B",lH="\u298F",aH="\u298D",cH="\u013D",uH="\u013E",fH="\u013B",hH="\u013C",dH="\u2308",pH="{",gH="\u041B",vH="\u043B",mH="\u2936",yH="\u201C",bH="\u201E",wH="\u2967",xH="\u294B",_H="\u21B2",SH="\u2264",kH="\u2266",CH="\u27E8",TH="\u21E4",LH="\u2190",EH="\u2190",AH="\u21D0",MH="\u21C6",NH="\u21A2",PH="\u2308",OH="\u27E6",$H="\u2961",DH="\u2959",RH="\u21C3",zH="\u230A",IH="\u21BD",FH="\u21BC",qH="\u21C7",HH="\u2194",BH="\u2194",WH="\u21D4",UH="\u21C6",jH="\u21CB",GH="\u21AD",VH="\u294E",KH="\u21A4",XH="\u22A3",YH="\u295A",ZH="\u22CB",QH="\u29CF",JH="\u22B2",tB="\u22B4",eB="\u2951",nB="\u2960",rB="\u2958",iB="\u21BF",oB="\u2952",sB="\u21BC",lB="\u2A8B",aB="\u22DA",cB="\u2264",uB="\u2266",fB="\u2A7D",hB="\u2AA8",dB="\u2A7D",pB="\u2A7F",gB="\u2A81",vB="\u2A83",mB="\u22DA\uFE00",yB="\u2A93",bB="\u2A85",wB="\u22D6",xB="\u22DA",_B="\u2A8B",SB="\u22DA",kB="\u2266",CB="\u2276",TB="\u2276",LB="\u2AA1",EB="\u2272",AB="\u2A7D",MB="\u2272",NB="\u297C",PB="\u230A",OB="\u{1D50F}",$B="\u{1D529}",DB="\u2276",RB="\u2A91",zB="\u2962",IB="\u21BD",FB="\u21BC",qB="\u296A",HB="\u2584",BB="\u0409",WB="\u0459",UB="\u21C7",jB="\u226A",GB="\u22D8",VB="\u231E",KB="\u21DA",XB="\u296B",YB="\u25FA",ZB="\u013F",QB="\u0140",JB="\u23B0",t3="\u23B0",e3="\u2A89",n3="\u2A89",r3="\u2A87",i3="\u2268",o3="\u2A87",s3="\u2268",l3="\u22E6",a3="\u27EC",c3="\u21FD",u3="\u27E6",f3="\u27F5",h3="\u27F5",d3="\u27F8",p3="\u27F7",g3="\u27F7",v3="\u27FA",m3="\u27FC",y3="\u27F6",b3="\u27F6",w3="\u27F9",x3="\u21AB",_3="\u21AC",S3="\u2985",k3="\u{1D543}",C3="\u{1D55D}",T3="\u2A2D",L3="\u2A34",E3="\u2217",A3="_",M3="\u2199",N3="\u2198",P3="\u25CA",O3="\u25CA",$3="\u29EB",D3="(",R3="\u2993",z3="\u21C6",I3="\u231F",F3="\u21CB",q3="\u296D",H3="\u200E",B3="\u22BF",W3="\u2039",U3="\u{1D4C1}",j3="\u2112",G3="\u21B0",V3="\u21B0",K3="\u2272",X3="\u2A8D",Y3="\u2A8F",Z3="[",Q3="\u2018",J3="\u201A",t5="\u0141",e5="\u0142",n5="\u2AA6",r5="\u2A79",i5="<",o5="<",s5="\u226A",l5="\u22D6",a5="\u22CB",c5="\u22C9",u5="\u2976",f5="\u2A7B",h5="\u25C3",d5="\u22B4",p5="\u25C2",g5="\u2996",v5="\u294A",m5="\u2966",y5="\u2268\uFE00",b5="\u2268\uFE00",w5="\xAF",x5="\u2642",_5="\u2720",S5="\u2720",k5="\u21A6",C5="\u21A6",T5="\u21A7",L5="\u21A4",E5="\u21A5",A5="\u25AE",M5="\u2A29",N5="\u041C",P5="\u043C",O5="\u2014",$5="\u223A",D5="\u2221",R5="\u205F",z5="\u2133",I5="\u{1D510}",F5="\u{1D52A}",q5="\u2127",H5="\xB5",B5="*",W5="\u2AF0",U5="\u2223",j5="\xB7",G5="\u229F",V5="\u2212",K5="\u2238",X5="\u2A2A",Y5="\u2213",Z5="\u2ADB",Q5="\u2026",J5="\u2213",tW="\u22A7",eW="\u{1D544}",nW="\u{1D55E}",rW="\u2213",iW="\u{1D4C2}",oW="\u2133",sW="\u223E",lW="\u039C",aW="\u03BC",cW="\u22B8",uW="\u22B8",fW="\u2207",hW="\u0143",dW="\u0144",pW="\u2220\u20D2",gW="\u2249",vW="\u2A70\u0338",mW="\u224B\u0338",yW="\u0149",bW="\u2249",wW="\u266E",xW="\u2115",_W="\u266E",SW="\xA0",kW="\u224E\u0338",CW="\u224F\u0338",TW="\u2A43",LW="\u0147",EW="\u0148",AW="\u0145",MW="\u0146",NW="\u2247",PW="\u2A6D\u0338",OW="\u2A42",$W="\u041D",DW="\u043D",RW="\u2013",zW="\u2924",IW="\u2197",FW="\u21D7",qW="\u2197",HW="\u2260",BW="\u2250\u0338",WW="\u200B",UW="\u200B",jW="\u200B",GW="\u200B",VW="\u2262",KW="\u2928",XW="\u2242\u0338",YW="\u226B",ZW="\u226A",QW=`
6
+ `,JW="\u2204",tU="\u2204",eU="\u{1D511}",nU="\u{1D52B}",rU="\u2267\u0338",iU="\u2271",oU="\u2271",sU="\u2267\u0338",lU="\u2A7E\u0338",aU="\u2A7E\u0338",cU="\u22D9\u0338",uU="\u2275",fU="\u226B\u20D2",hU="\u226F",dU="\u226F",pU="\u226B\u0338",gU="\u21AE",vU="\u21CE",mU="\u2AF2",yU="\u220B",bU="\u22FC",wU="\u22FA",xU="\u220B",_U="\u040A",SU="\u045A",kU="\u219A",CU="\u21CD",TU="\u2025",LU="\u2266\u0338",EU="\u2270",AU="\u219A",MU="\u21CD",NU="\u21AE",PU="\u21CE",OU="\u2270",$U="\u2266\u0338",DU="\u2A7D\u0338",RU="\u2A7D\u0338",zU="\u226E",IU="\u22D8\u0338",FU="\u2274",qU="\u226A\u20D2",HU="\u226E",BU="\u22EA",WU="\u22EC",UU="\u226A\u0338",jU="\u2224",GU="\u2060",VU="\xA0",KU="\u{1D55F}",XU="\u2115",YU="\u2AEC",ZU="\xAC",QU="\u2262",JU="\u226D",t8="\u2226",e8="\u2209",n8="\u2260",r8="\u2242\u0338",i8="\u2204",o8="\u226F",s8="\u2271",l8="\u2267\u0338",a8="\u226B\u0338",c8="\u2279",u8="\u2A7E\u0338",f8="\u2275",h8="\u224E\u0338",d8="\u224F\u0338",p8="\u2209",g8="\u22F5\u0338",v8="\u22F9\u0338",m8="\u2209",y8="\u22F7",b8="\u22F6",w8="\u29CF\u0338",x8="\u22EA",_8="\u22EC",S8="\u226E",k8="\u2270",C8="\u2278",T8="\u226A\u0338",L8="\u2A7D\u0338",E8="\u2274",A8="\u2AA2\u0338",M8="\u2AA1\u0338",N8="\u220C",P8="\u220C",O8="\u22FE",$8="\u22FD",D8="\u2280",R8="\u2AAF\u0338",z8="\u22E0",I8="\u220C",F8="\u29D0\u0338",q8="\u22EB",H8="\u22ED",B8="\u228F\u0338",W8="\u22E2",U8="\u2290\u0338",j8="\u22E3",G8="\u2282\u20D2",V8="\u2288",K8="\u2281",X8="\u2AB0\u0338",Y8="\u22E1",Z8="\u227F\u0338",Q8="\u2283\u20D2",J8="\u2289",t4="\u2241",e4="\u2244",n4="\u2247",r4="\u2249",i4="\u2224",o4="\u2226",s4="\u2226",l4="\u2AFD\u20E5",a4="\u2202\u0338",c4="\u2A14",u4="\u2280",f4="\u22E0",h4="\u2280",d4="\u2AAF\u0338",p4="\u2AAF\u0338",g4="\u2933\u0338",v4="\u219B",m4="\u21CF",y4="\u219D\u0338",b4="\u219B",w4="\u21CF",x4="\u22EB",_4="\u22ED",S4="\u2281",k4="\u22E1",C4="\u2AB0\u0338",T4="\u{1D4A9}",L4="\u{1D4C3}",E4="\u2224",A4="\u2226",M4="\u2241",N4="\u2244",P4="\u2244",O4="\u2224",$4="\u2226",D4="\u22E2",R4="\u22E3",z4="\u2284",I4="\u2AC5\u0338",F4="\u2288",q4="\u2282\u20D2",H4="\u2288",B4="\u2AC5\u0338",W4="\u2281",U4="\u2AB0\u0338",j4="\u2285",G4="\u2AC6\u0338",V4="\u2289",K4="\u2283\u20D2",X4="\u2289",Y4="\u2AC6\u0338",Z4="\u2279",Q4="\xD1",J4="\xF1",t6="\u2278",e6="\u22EA",n6="\u22EC",r6="\u22EB",i6="\u22ED",o6="\u039D",s6="\u03BD",l6="#",a6="\u2116",c6="\u2007",u6="\u224D\u20D2",f6="\u22AC",h6="\u22AD",d6="\u22AE",p6="\u22AF",g6="\u2265\u20D2",v6=">\u20D2",m6="\u2904",y6="\u29DE",b6="\u2902",w6="\u2264\u20D2",x6="<\u20D2",_6="\u22B4\u20D2",S6="\u2903",k6="\u22B5\u20D2",C6="\u223C\u20D2",T6="\u2923",L6="\u2196",E6="\u21D6",A6="\u2196",M6="\u2927",N6="\xD3",P6="\xF3",O6="\u229B",$6="\xD4",D6="\xF4",R6="\u229A",z6="\u041E",I6="\u043E",F6="\u229D",q6="\u0150",H6="\u0151",B6="\u2A38",W6="\u2299",U6="\u29BC",j6="\u0152",G6="\u0153",V6="\u29BF",K6="\u{1D512}",X6="\u{1D52C}",Y6="\u02DB",Z6="\xD2",Q6="\xF2",J6="\u29C1",tj="\u29B5",ej="\u03A9",nj="\u222E",rj="\u21BA",ij="\u29BE",oj="\u29BB",sj="\u203E",lj="\u29C0",aj="\u014C",cj="\u014D",uj="\u03A9",fj="\u03C9",hj="\u039F",dj="\u03BF",pj="\u29B6",gj="\u2296",vj="\u{1D546}",mj="\u{1D560}",yj="\u29B7",bj="\u201C",wj="\u2018",xj="\u29B9",_j="\u2295",Sj="\u21BB",kj="\u2A54",Cj="\u2228",Tj="\u2A5D",Lj="\u2134",Ej="\u2134",Aj="\xAA",Mj="\xBA",Nj="\u22B6",Pj="\u2A56",Oj="\u2A57",$j="\u2A5B",Dj="\u24C8",Rj="\u{1D4AA}",zj="\u2134",Ij="\xD8",Fj="\xF8",qj="\u2298",Hj="\xD5",Bj="\xF5",Wj="\u2A36",Uj="\u2A37",jj="\u2297",Gj="\xD6",Vj="\xF6",Kj="\u233D",Xj="\u203E",Yj="\u23DE",Zj="\u23B4",Qj="\u23DC",Jj="\xB6",t9="\u2225",e9="\u2225",n9="\u2AF3",r9="\u2AFD",i9="\u2202",o9="\u2202",s9="\u041F",l9="\u043F",a9="%",c9=".",u9="\u2030",f9="\u22A5",h9="\u2031",d9="\u{1D513}",p9="\u{1D52D}",g9="\u03A6",v9="\u03C6",m9="\u03D5",y9="\u2133",b9="\u260E",w9="\u03A0",x9="\u03C0",_9="\u22D4",S9="\u03D6",k9="\u210F",C9="\u210E",T9="\u210F",L9="\u2A23",E9="\u229E",A9="\u2A22",M9="+",N9="\u2214",P9="\u2A25",O9="\u2A72",$9="\xB1",D9="\xB1",R9="\u2A26",z9="\u2A27",I9="\xB1",F9="\u210C",q9="\u2A15",H9="\u{1D561}",B9="\u2119",W9="\xA3",U9="\u2AB7",j9="\u2ABB",G9="\u227A",V9="\u227C",K9="\u2AB7",X9="\u227A",Y9="\u227C",Z9="\u227A",Q9="\u2AAF",J9="\u227C",tG="\u227E",eG="\u2AAF",nG="\u2AB9",rG="\u2AB5",iG="\u22E8",oG="\u2AAF",sG="\u2AB3",lG="\u227E",aG="\u2032",cG="\u2033",uG="\u2119",fG="\u2AB9",hG="\u2AB5",dG="\u22E8",pG="\u220F",gG="\u220F",vG="\u232E",mG="\u2312",yG="\u2313",bG="\u221D",wG="\u221D",xG="\u2237",_G="\u221D",SG="\u227E",kG="\u22B0",CG="\u{1D4AB}",TG="\u{1D4C5}",LG="\u03A8",EG="\u03C8",AG="\u2008",MG="\u{1D514}",NG="\u{1D52E}",PG="\u2A0C",OG="\u{1D562}",$G="\u211A",DG="\u2057",RG="\u{1D4AC}",zG="\u{1D4C6}",IG="\u210D",FG="\u2A16",qG="?",HG="\u225F",BG='"',WG='"',UG="\u21DB",jG="\u223D\u0331",GG="\u0154",VG="\u0155",KG="\u221A",XG="\u29B3",YG="\u27E9",ZG="\u27EB",QG="\u2992",JG="\u29A5",tV="\u27E9",eV="\xBB",nV="\u2975",rV="\u21E5",iV="\u2920",oV="\u2933",sV="\u2192",lV="\u21A0",aV="\u21D2",cV="\u291E",uV="\u21AA",fV="\u21AC",hV="\u2945",dV="\u2974",pV="\u2916",gV="\u21A3",vV="\u219D",mV="\u291A",yV="\u291C",bV="\u2236",wV="\u211A",xV="\u290D",_V="\u290F",SV="\u2910",kV="\u2773",CV="}",TV="]",LV="\u298C",EV="\u298E",AV="\u2990",MV="\u0158",NV="\u0159",PV="\u0156",OV="\u0157",$V="\u2309",DV="}",RV="\u0420",zV="\u0440",IV="\u2937",FV="\u2969",qV="\u201D",HV="\u201D",BV="\u21B3",WV="\u211C",UV="\u211B",jV="\u211C",GV="\u211D",VV="\u211C",KV="\u25AD",XV="\xAE",YV="\xAE",ZV="\u220B",QV="\u21CB",JV="\u296F",tK="\u297D",eK="\u230B",nK="\u{1D52F}",rK="\u211C",iK="\u2964",oK="\u21C1",sK="\u21C0",lK="\u296C",aK="\u03A1",cK="\u03C1",uK="\u03F1",fK="\u27E9",hK="\u21E5",dK="\u2192",pK="\u2192",gK="\u21D2",vK="\u21C4",mK="\u21A3",yK="\u2309",bK="\u27E7",wK="\u295D",xK="\u2955",_K="\u21C2",SK="\u230B",kK="\u21C1",CK="\u21C0",TK="\u21C4",LK="\u21CC",EK="\u21C9",AK="\u219D",MK="\u21A6",NK="\u22A2",PK="\u295B",OK="\u22CC",$K="\u29D0",DK="\u22B3",RK="\u22B5",zK="\u294F",IK="\u295C",FK="\u2954",qK="\u21BE",HK="\u2953",BK="\u21C0",WK="\u02DA",UK="\u2253",jK="\u21C4",GK="\u21CC",VK="\u200F",KK="\u23B1",XK="\u23B1",YK="\u2AEE",ZK="\u27ED",QK="\u21FE",JK="\u27E7",t7="\u2986",e7="\u{1D563}",n7="\u211D",r7="\u2A2E",i7="\u2A35",o7="\u2970",s7=")",l7="\u2994",a7="\u2A12",c7="\u21C9",u7="\u21DB",f7="\u203A",h7="\u{1D4C7}",d7="\u211B",p7="\u21B1",g7="\u21B1",v7="]",m7="\u2019",y7="\u2019",b7="\u22CC",w7="\u22CA",x7="\u25B9",_7="\u22B5",S7="\u25B8",k7="\u29CE",C7="\u29F4",T7="\u2968",L7="\u211E",E7="\u015A",A7="\u015B",M7="\u201A",N7="\u2AB8",P7="\u0160",O7="\u0161",$7="\u2ABC",D7="\u227B",R7="\u227D",z7="\u2AB0",I7="\u2AB4",F7="\u015E",q7="\u015F",H7="\u015C",B7="\u015D",W7="\u2ABA",U7="\u2AB6",j7="\u22E9",G7="\u2A13",V7="\u227F",K7="\u0421",X7="\u0441",Y7="\u22A1",Z7="\u22C5",Q7="\u2A66",J7="\u2925",tX="\u2198",eX="\u21D8",nX="\u2198",rX="\xA7",iX=";",oX="\u2929",sX="\u2216",lX="\u2216",aX="\u2736",cX="\u{1D516}",uX="\u{1D530}",fX="\u2322",hX="\u266F",dX="\u0429",pX="\u0449",gX="\u0428",vX="\u0448",mX="\u2193",yX="\u2190",bX="\u2223",wX="\u2225",xX="\u2192",_X="\u2191",SX="\xAD",kX="\u03A3",CX="\u03C3",TX="\u03C2",LX="\u03C2",EX="\u223C",AX="\u2A6A",MX="\u2243",NX="\u2243",PX="\u2A9E",OX="\u2AA0",$X="\u2A9D",DX="\u2A9F",RX="\u2246",zX="\u2A24",IX="\u2972",FX="\u2190",qX="\u2218",HX="\u2216",BX="\u2A33",WX="\u29E4",UX="\u2223",jX="\u2323",GX="\u2AAA",VX="\u2AAC",KX="\u2AAC\uFE00",XX="\u042C",YX="\u044C",ZX="\u233F",QX="\u29C4",JX="/",tY="\u{1D54A}",eY="\u{1D564}",nY="\u2660",rY="\u2660",iY="\u2225",oY="\u2293",sY="\u2293\uFE00",lY="\u2294",aY="\u2294\uFE00",cY="\u221A",uY="\u228F",fY="\u2291",hY="\u228F",dY="\u2291",pY="\u2290",gY="\u2292",vY="\u2290",mY="\u2292",yY="\u25A1",bY="\u25A1",wY="\u2293",xY="\u228F",_Y="\u2291",SY="\u2290",kY="\u2292",CY="\u2294",TY="\u25AA",LY="\u25A1",EY="\u25AA",AY="\u2192",MY="\u{1D4AE}",NY="\u{1D4C8}",PY="\u2216",OY="\u2323",$Y="\u22C6",DY="\u22C6",RY="\u2606",zY="\u2605",IY="\u03F5",FY="\u03D5",qY="\xAF",HY="\u2282",BY="\u22D0",WY="\u2ABD",UY="\u2AC5",jY="\u2286",GY="\u2AC3",VY="\u2AC1",KY="\u2ACB",XY="\u228A",YY="\u2ABF",ZY="\u2979",QY="\u2282",JY="\u22D0",tZ="\u2286",eZ="\u2AC5",nZ="\u2286",rZ="\u228A",iZ="\u2ACB",oZ="\u2AC7",sZ="\u2AD5",lZ="\u2AD3",aZ="\u2AB8",cZ="\u227B",uZ="\u227D",fZ="\u227B",hZ="\u2AB0",dZ="\u227D",pZ="\u227F",gZ="\u2AB0",vZ="\u2ABA",mZ="\u2AB6",yZ="\u22E9",bZ="\u227F",wZ="\u220B",xZ="\u2211",_Z="\u2211",SZ="\u266A",kZ="\xB9",CZ="\xB2",TZ="\xB3",LZ="\u2283",EZ="\u22D1",AZ="\u2ABE",MZ="\u2AD8",NZ="\u2AC6",PZ="\u2287",OZ="\u2AC4",$Z="\u2283",DZ="\u2287",RZ="\u27C9",zZ="\u2AD7",IZ="\u297B",FZ="\u2AC2",qZ="\u2ACC",HZ="\u228B",BZ="\u2AC0",WZ="\u2283",UZ="\u22D1",jZ="\u2287",GZ="\u2AC6",VZ="\u228B",KZ="\u2ACC",XZ="\u2AC8",YZ="\u2AD4",ZZ="\u2AD6",QZ="\u2926",JZ="\u2199",tQ="\u21D9",eQ="\u2199",nQ="\u292A",rQ="\xDF",iQ=" ",oQ="\u2316",sQ="\u03A4",lQ="\u03C4",aQ="\u23B4",cQ="\u0164",uQ="\u0165",fQ="\u0162",hQ="\u0163",dQ="\u0422",pQ="\u0442",gQ="\u20DB",vQ="\u2315",mQ="\u{1D517}",yQ="\u{1D531}",bQ="\u2234",wQ="\u2234",xQ="\u2234",_Q="\u0398",SQ="\u03B8",kQ="\u03D1",CQ="\u03D1",TQ="\u2248",LQ="\u223C",EQ="\u205F\u200A",AQ="\u2009",MQ="\u2009",NQ="\u2248",PQ="\u223C",OQ="\xDE",$Q="\xFE",DQ="\u02DC",RQ="\u223C",zQ="\u2243",IQ="\u2245",FQ="\u2248",qQ="\u2A31",HQ="\u22A0",BQ="\xD7",WQ="\u2A30",UQ="\u222D",jQ="\u2928",GQ="\u2336",VQ="\u2AF1",KQ="\u22A4",XQ="\u{1D54B}",YQ="\u{1D565}",ZQ="\u2ADA",QQ="\u2929",JQ="\u2034",tJ="\u2122",eJ="\u2122",nJ="\u25B5",rJ="\u25BF",iJ="\u25C3",oJ="\u22B4",sJ="\u225C",lJ="\u25B9",aJ="\u22B5",cJ="\u25EC",uJ="\u225C",fJ="\u2A3A",hJ="\u20DB",dJ="\u2A39",pJ="\u29CD",gJ="\u2A3B",vJ="\u23E2",mJ="\u{1D4AF}",yJ="\u{1D4C9}",bJ="\u0426",wJ="\u0446",xJ="\u040B",_J="\u045B",SJ="\u0166",kJ="\u0167",CJ="\u226C",TJ="\u219E",LJ="\u21A0",EJ="\xDA",AJ="\xFA",MJ="\u2191",NJ="\u219F",PJ="\u21D1",OJ="\u2949",$J="\u040E",DJ="\u045E",RJ="\u016C",zJ="\u016D",IJ="\xDB",FJ="\xFB",qJ="\u0423",HJ="\u0443",BJ="\u21C5",WJ="\u0170",UJ="\u0171",jJ="\u296E",GJ="\u297E",VJ="\u{1D518}",KJ="\u{1D532}",XJ="\xD9",YJ="\xF9",ZJ="\u2963",QJ="\u21BF",JJ="\u21BE",ttt="\u2580",ett="\u231C",ntt="\u231C",rtt="\u230F",itt="\u25F8",ott="\u016A",stt="\u016B",ltt="\xA8",att="_",ctt="\u23DF",utt="\u23B5",ftt="\u23DD",htt="\u22C3",dtt="\u228E",ptt="\u0172",gtt="\u0173",vtt="\u{1D54C}",mtt="\u{1D566}",ytt="\u2912",btt="\u2191",wtt="\u2191",xtt="\u21D1",_tt="\u21C5",Stt="\u2195",ktt="\u2195",Ctt="\u21D5",Ttt="\u296E",Ltt="\u21BF",Ett="\u21BE",Att="\u228E",Mtt="\u2196",Ntt="\u2197",Ptt="\u03C5",Ott="\u03D2",$tt="\u03D2",Dtt="\u03A5",Rtt="\u03C5",ztt="\u21A5",Itt="\u22A5",Ftt="\u21C8",qtt="\u231D",Htt="\u231D",Btt="\u230E",Wtt="\u016E",Utt="\u016F",jtt="\u25F9",Gtt="\u{1D4B0}",Vtt="\u{1D4CA}",Ktt="\u22F0",Xtt="\u0168",Ytt="\u0169",Ztt="\u25B5",Qtt="\u25B4",Jtt="\u21C8",tet="\xDC",eet="\xFC",net="\u29A7",ret="\u299C",iet="\u03F5",oet="\u03F0",set="\u2205",aet="\u03D5",cet="\u03D6",uet="\u221D",fet="\u2195",het="\u21D5",det="\u03F1",pet="\u03C2",get="\u228A\uFE00",vet="\u2ACB\uFE00",met="\u228B\uFE00",yet="\u2ACC\uFE00",bet="\u03D1",wet="\u22B2",xet="\u22B3",_et="\u2AE8",ket="\u2AEB",Cet="\u2AE9",Tet="\u0412",Let="\u0432",Eet="\u22A2",Aet="\u22A8",Met="\u22A9",Net="\u22AB",Pet="\u2AE6",Oet="\u22BB",$et="\u2228",Det="\u22C1",Ret="\u225A",zet="\u22EE",Iet="|",Fet="\u2016",qet="|",Het="\u2016",Bet="\u2223",Wet="|",Uet="\u2758",jet="\u2240",Get="\u200A",Vet="\u{1D519}",Ket="\u{1D533}",Xet="\u22B2",Yet="\u2282\u20D2",Zet="\u2283\u20D2",Qet="\u{1D54D}",Jet="\u{1D567}",tnt="\u221D",ent="\u22B3",nnt="\u{1D4B1}",rnt="\u{1D4CB}",int="\u2ACB\uFE00",ont="\u228A\uFE00",snt="\u2ACC\uFE00",lnt="\u228B\uFE00",ant="\u22AA",cnt="\u299A",unt="\u0174",fnt="\u0175",hnt="\u2A5F",dnt="\u2227",pnt="\u22C0",gnt="\u2259",vnt="\u2118",mnt="\u{1D51A}",ynt="\u{1D534}",bnt="\u{1D54E}",wnt="\u{1D568}",xnt="\u2118",_nt="\u2240",Snt="\u2240",knt="\u{1D4B2}",Cnt="\u{1D4CC}",Tnt="\u22C2",Lnt="\u25EF",Ent="\u22C3",Ant="\u25BD",Mnt="\u{1D51B}",Nnt="\u{1D535}",Pnt="\u27F7",Ont="\u27FA",$nt="\u039E",Dnt="\u03BE",Rnt="\u27F5",znt="\u27F8",Int="\u27FC",Fnt="\u22FB",qnt="\u2A00",Hnt="\u{1D54F}",Bnt="\u{1D569}",Wnt="\u2A01",Unt="\u2A02",jnt="\u27F6",Gnt="\u27F9",Vnt="\u{1D4B3}",Knt="\u{1D4CD}",Xnt="\u2A06",Ynt="\u2A04",Znt="\u25B3",Qnt="\u22C1",Jnt="\u22C0",trt="\xDD",ert="\xFD",nrt="\u042F",rrt="\u044F",irt="\u0176",ort="\u0177",srt="\u042B",lrt="\u044B",art="\xA5",crt="\u{1D51C}",urt="\u{1D536}",frt="\u0407",hrt="\u0457",drt="\u{1D550}",prt="\u{1D56A}",grt="\u{1D4B4}",vrt="\u{1D4CE}",mrt="\u042E",yrt="\u044E",brt="\xFF",wrt="\u0178",xrt="\u0179",_rt="\u017A",Srt="\u017D",krt="\u017E",Crt="\u0417",Trt="\u0437",Lrt="\u017B",Ert="\u017C",Art="\u2128",Mrt="\u200B",Nrt="\u0396",Prt="\u03B6",Ort="\u{1D537}",$rt="\u2128",Drt="\u0416",Rrt="\u0436",zrt="\u21DD",Irt="\u{1D56B}",Frt="\u2124",qrt="\u{1D4B5}",Hrt="\u{1D4CF}",Brt="\u200D",Wrt="\u200C",U0={Aacute:CT,aacute:TT,Abreve:LT,abreve:ET,ac:AT,acd:MT,acE:NT,Acirc:PT,acirc:OT,acute:$T,Acy:DT,acy:RT,AElig:zT,aelig:IT,af:FT,Afr:qT,afr:HT,Agrave:BT,agrave:WT,alefsym:UT,aleph:jT,Alpha:GT,alpha:VT,Amacr:KT,amacr:XT,amalg:YT,amp:ZT,AMP:QT,andand:JT,And:tL,and:eL,andd:nL,andslope:rL,andv:iL,ang:oL,ange:sL,angle:lL,angmsdaa:aL,angmsdab:cL,angmsdac:uL,angmsdad:fL,angmsdae:hL,angmsdaf:dL,angmsdag:pL,angmsdah:gL,angmsd:vL,angrt:mL,angrtvb:yL,angrtvbd:bL,angsph:wL,angst:xL,angzarr:_L,Aogon:SL,aogon:kL,Aopf:CL,aopf:TL,apacir:LL,ap:EL,apE:AL,ape:ML,apid:NL,apos:PL,ApplyFunction:OL,approx:$L,approxeq:DL,Aring:RL,aring:zL,Ascr:IL,ascr:FL,Assign:qL,ast:HL,asymp:BL,asympeq:WL,Atilde:UL,atilde:jL,Auml:GL,auml:VL,awconint:KL,awint:XL,backcong:YL,backepsilon:ZL,backprime:QL,backsim:JL,backsimeq:tE,Backslash:eE,Barv:nE,barvee:rE,barwed:iE,Barwed:oE,barwedge:sE,bbrk:lE,bbrktbrk:aE,bcong:cE,Bcy:uE,bcy:fE,bdquo:hE,becaus:dE,because:pE,Because:gE,bemptyv:vE,bepsi:mE,bernou:yE,Bernoullis:bE,Beta:wE,beta:xE,beth:_E,between:SE,Bfr:kE,bfr:CE,bigcap:TE,bigcirc:LE,bigcup:EE,bigodot:AE,bigoplus:ME,bigotimes:NE,bigsqcup:PE,bigstar:OE,bigtriangledown:$E,bigtriangleup:DE,biguplus:RE,bigvee:zE,bigwedge:IE,bkarow:FE,blacklozenge:qE,blacksquare:HE,blacktriangle:BE,blacktriangledown:WE,blacktriangleleft:UE,blacktriangleright:jE,blank:GE,blk12:VE,blk14:KE,blk34:XE,block:YE,bne:ZE,bnequiv:QE,bNot:JE,bnot:tA,Bopf:eA,bopf:nA,bot:rA,bottom:iA,bowtie:oA,boxbox:sA,boxdl:lA,boxdL:aA,boxDl:cA,boxDL:uA,boxdr:fA,boxdR:hA,boxDr:dA,boxDR:pA,boxh:gA,boxH:vA,boxhd:mA,boxHd:yA,boxhD:bA,boxHD:wA,boxhu:xA,boxHu:_A,boxhU:SA,boxHU:kA,boxminus:CA,boxplus:TA,boxtimes:LA,boxul:EA,boxuL:AA,boxUl:MA,boxUL:NA,boxur:PA,boxuR:OA,boxUr:$A,boxUR:DA,boxv:RA,boxV:zA,boxvh:IA,boxvH:FA,boxVh:qA,boxVH:HA,boxvl:BA,boxvL:WA,boxVl:UA,boxVL:jA,boxvr:GA,boxvR:VA,boxVr:KA,boxVR:XA,bprime:YA,breve:ZA,Breve:QA,brvbar:JA,bscr:tM,Bscr:eM,bsemi:nM,bsim:rM,bsime:iM,bsolb:oM,bsol:sM,bsolhsub:lM,bull:aM,bullet:cM,bump:uM,bumpE:fM,bumpe:hM,Bumpeq:dM,bumpeq:pM,Cacute:gM,cacute:vM,capand:mM,capbrcup:yM,capcap:bM,cap:wM,Cap:xM,capcup:_M,capdot:SM,CapitalDifferentialD:kM,caps:CM,caret:TM,caron:LM,Cayleys:EM,ccaps:AM,Ccaron:MM,ccaron:NM,Ccedil:PM,ccedil:OM,Ccirc:$M,ccirc:DM,Cconint:RM,ccups:zM,ccupssm:IM,Cdot:FM,cdot:qM,cedil:HM,Cedilla:BM,cemptyv:WM,cent:UM,centerdot:jM,CenterDot:GM,cfr:VM,Cfr:KM,CHcy:XM,chcy:YM,check:ZM,checkmark:QM,Chi:JM,chi:tN,circ:eN,circeq:nN,circlearrowleft:rN,circlearrowright:iN,circledast:oN,circledcirc:sN,circleddash:lN,CircleDot:aN,circledR:cN,circledS:uN,CircleMinus:fN,CirclePlus:hN,CircleTimes:dN,cir:pN,cirE:gN,cire:vN,cirfnint:mN,cirmid:yN,cirscir:bN,ClockwiseContourIntegral:wN,CloseCurlyDoubleQuote:xN,CloseCurlyQuote:_N,clubs:SN,clubsuit:kN,colon:CN,Colon:TN,Colone:LN,colone:EN,coloneq:AN,comma:MN,commat:NN,comp:PN,compfn:ON,complement:$N,complexes:DN,cong:RN,congdot:zN,Congruent:IN,conint:FN,Conint:qN,ContourIntegral:HN,copf:BN,Copf:WN,coprod:UN,Coproduct:jN,copy:GN,COPY:VN,copysr:KN,CounterClockwiseContourIntegral:XN,crarr:YN,cross:ZN,Cross:QN,Cscr:JN,cscr:tP,csub:eP,csube:nP,csup:rP,csupe:iP,ctdot:oP,cudarrl:sP,cudarrr:lP,cuepr:aP,cuesc:cP,cularr:uP,cularrp:fP,cupbrcap:hP,cupcap:dP,CupCap:pP,cup:gP,Cup:vP,cupcup:mP,cupdot:yP,cupor:bP,cups:wP,curarr:xP,curarrm:_P,curlyeqprec:SP,curlyeqsucc:kP,curlyvee:CP,curlywedge:TP,curren:LP,curvearrowleft:EP,curvearrowright:AP,cuvee:MP,cuwed:NP,cwconint:PP,cwint:OP,cylcty:$P,dagger:DP,Dagger:RP,daleth:zP,darr:IP,Darr:FP,dArr:qP,dash:HP,Dashv:BP,dashv:WP,dbkarow:UP,dblac:jP,Dcaron:GP,dcaron:VP,Dcy:KP,dcy:XP,ddagger:YP,ddarr:ZP,DD:QP,dd:JP,DDotrahd:tO,ddotseq:eO,deg:nO,Del:rO,Delta:iO,delta:oO,demptyv:sO,dfisht:lO,Dfr:aO,dfr:cO,dHar:uO,dharl:fO,dharr:hO,DiacriticalAcute:dO,DiacriticalDot:pO,DiacriticalDoubleAcute:gO,DiacriticalGrave:vO,DiacriticalTilde:mO,diam:yO,diamond:bO,Diamond:wO,diamondsuit:xO,diams:_O,die:SO,DifferentialD:kO,digamma:CO,disin:TO,div:LO,divide:EO,divideontimes:AO,divonx:MO,DJcy:NO,djcy:PO,dlcorn:OO,dlcrop:$O,dollar:DO,Dopf:RO,dopf:zO,Dot:IO,dot:FO,DotDot:qO,doteq:HO,doteqdot:BO,DotEqual:WO,dotminus:UO,dotplus:jO,dotsquare:GO,doublebarwedge:VO,DoubleContourIntegral:KO,DoubleDot:XO,DoubleDownArrow:YO,DoubleLeftArrow:ZO,DoubleLeftRightArrow:QO,DoubleLeftTee:JO,DoubleLongLeftArrow:t$,DoubleLongLeftRightArrow:e$,DoubleLongRightArrow:n$,DoubleRightArrow:r$,DoubleRightTee:i$,DoubleUpArrow:o$,DoubleUpDownArrow:s$,DoubleVerticalBar:l$,DownArrowBar:a$,downarrow:c$,DownArrow:u$,Downarrow:f$,DownArrowUpArrow:h$,DownBreve:d$,downdownarrows:p$,downharpoonleft:g$,downharpoonright:v$,DownLeftRightVector:m$,DownLeftTeeVector:y$,DownLeftVectorBar:b$,DownLeftVector:w$,DownRightTeeVector:x$,DownRightVectorBar:_$,DownRightVector:S$,DownTeeArrow:k$,DownTee:C$,drbkarow:T$,drcorn:L$,drcrop:E$,Dscr:A$,dscr:M$,DScy:N$,dscy:P$,dsol:O$,Dstrok:$$,dstrok:D$,dtdot:R$,dtri:z$,dtrif:I$,duarr:F$,duhar:q$,dwangle:H$,DZcy:B$,dzcy:W$,dzigrarr:U$,Eacute:j$,eacute:G$,easter:V$,Ecaron:K$,ecaron:X$,Ecirc:Y$,ecirc:Z$,ecir:Q$,ecolon:J$,Ecy:tD,ecy:eD,eDDot:nD,Edot:rD,edot:iD,eDot:oD,ee:sD,efDot:lD,Efr:aD,efr:cD,eg:uD,Egrave:fD,egrave:hD,egs:dD,egsdot:pD,el:gD,Element:vD,elinters:mD,ell:yD,els:bD,elsdot:wD,Emacr:xD,emacr:_D,empty:SD,emptyset:kD,EmptySmallSquare:CD,emptyv:TD,EmptyVerySmallSquare:LD,emsp13:ED,emsp14:AD,emsp:MD,ENG:ND,eng:PD,ensp:OD,Eogon:$D,eogon:DD,Eopf:RD,eopf:zD,epar:ID,eparsl:FD,eplus:qD,epsi:HD,Epsilon:BD,epsilon:WD,epsiv:UD,eqcirc:jD,eqcolon:GD,eqsim:VD,eqslantgtr:KD,eqslantless:XD,Equal:YD,equals:ZD,EqualTilde:QD,equest:JD,Equilibrium:tR,equiv:eR,equivDD:nR,eqvparsl:rR,erarr:iR,erDot:oR,escr:sR,Escr:lR,esdot:aR,Esim:cR,esim:uR,Eta:fR,eta:hR,ETH:dR,eth:pR,Euml:gR,euml:vR,euro:mR,excl:yR,exist:bR,Exists:wR,expectation:xR,exponentiale:_R,ExponentialE:SR,fallingdotseq:kR,Fcy:CR,fcy:TR,female:LR,ffilig:ER,fflig:AR,ffllig:MR,Ffr:NR,ffr:PR,filig:OR,FilledSmallSquare:$R,FilledVerySmallSquare:DR,fjlig:RR,flat:zR,fllig:IR,fltns:FR,fnof:qR,Fopf:HR,fopf:BR,forall:WR,ForAll:UR,fork:jR,forkv:GR,Fouriertrf:VR,fpartint:KR,frac12:XR,frac13:YR,frac14:ZR,frac15:QR,frac16:JR,frac18:tz,frac23:ez,frac25:nz,frac34:rz,frac35:iz,frac38:oz,frac45:sz,frac56:lz,frac58:az,frac78:cz,frasl:uz,frown:fz,fscr:hz,Fscr:dz,gacute:pz,Gamma:gz,gamma:vz,Gammad:mz,gammad:yz,gap:bz,Gbreve:wz,gbreve:xz,Gcedil:_z,Gcirc:Sz,gcirc:kz,Gcy:Cz,gcy:Tz,Gdot:Lz,gdot:Ez,ge:Az,gE:Mz,gEl:Nz,gel:Pz,geq:Oz,geqq:$z,geqslant:Dz,gescc:Rz,ges:zz,gesdot:Iz,gesdoto:Fz,gesdotol:qz,gesl:Hz,gesles:Bz,Gfr:Wz,gfr:Uz,gg:jz,Gg:Gz,ggg:Vz,gimel:Kz,GJcy:Xz,gjcy:Yz,gla:Zz,gl:Qz,glE:Jz,glj:tI,gnap:eI,gnapprox:nI,gne:rI,gnE:iI,gneq:oI,gneqq:sI,gnsim:lI,Gopf:aI,gopf:cI,grave:uI,GreaterEqual:fI,GreaterEqualLess:hI,GreaterFullEqual:dI,GreaterGreater:pI,GreaterLess:gI,GreaterSlantEqual:vI,GreaterTilde:mI,Gscr:yI,gscr:bI,gsim:wI,gsime:xI,gsiml:_I,gtcc:SI,gtcir:kI,gt:CI,GT:TI,Gt:LI,gtdot:EI,gtlPar:AI,gtquest:MI,gtrapprox:NI,gtrarr:PI,gtrdot:OI,gtreqless:$I,gtreqqless:DI,gtrless:RI,gtrsim:zI,gvertneqq:II,gvnE:FI,Hacek:qI,hairsp:HI,half:BI,hamilt:WI,HARDcy:UI,hardcy:jI,harrcir:GI,harr:VI,hArr:KI,harrw:XI,Hat:YI,hbar:ZI,Hcirc:QI,hcirc:JI,hearts:tF,heartsuit:eF,hellip:nF,hercon:rF,hfr:iF,Hfr:oF,HilbertSpace:sF,hksearow:lF,hkswarow:aF,hoarr:cF,homtht:uF,hookleftarrow:fF,hookrightarrow:hF,hopf:dF,Hopf:pF,horbar:gF,HorizontalLine:vF,hscr:mF,Hscr:yF,hslash:bF,Hstrok:wF,hstrok:xF,HumpDownHump:_F,HumpEqual:SF,hybull:kF,hyphen:CF,Iacute:TF,iacute:LF,ic:EF,Icirc:AF,icirc:MF,Icy:NF,icy:PF,Idot:OF,IEcy:$F,iecy:DF,iexcl:RF,iff:zF,ifr:IF,Ifr:FF,Igrave:qF,igrave:HF,ii:BF,iiiint:WF,iiint:UF,iinfin:jF,iiota:GF,IJlig:VF,ijlig:KF,Imacr:XF,imacr:YF,image:ZF,ImaginaryI:QF,imagline:JF,imagpart:tq,imath:eq,Im:nq,imof:rq,imped:iq,Implies:oq,incare:sq,in:"\u2208",infin:lq,infintie:aq,inodot:cq,intcal:uq,int:fq,Int:hq,integers:dq,Integral:pq,intercal:gq,Intersection:vq,intlarhk:mq,intprod:yq,InvisibleComma:bq,InvisibleTimes:wq,IOcy:xq,iocy:_q,Iogon:Sq,iogon:kq,Iopf:Cq,iopf:Tq,Iota:Lq,iota:Eq,iprod:Aq,iquest:Mq,iscr:Nq,Iscr:Pq,isin:Oq,isindot:$q,isinE:Dq,isins:Rq,isinsv:zq,isinv:Iq,it:Fq,Itilde:qq,itilde:Hq,Iukcy:Bq,iukcy:Wq,Iuml:Uq,iuml:jq,Jcirc:Gq,jcirc:Vq,Jcy:Kq,jcy:Xq,Jfr:Yq,jfr:Zq,jmath:Qq,Jopf:Jq,jopf:t2,Jscr:e2,jscr:n2,Jsercy:r2,jsercy:i2,Jukcy:o2,jukcy:s2,Kappa:l2,kappa:a2,kappav:c2,Kcedil:u2,kcedil:f2,Kcy:h2,kcy:d2,Kfr:p2,kfr:g2,kgreen:v2,KHcy:m2,khcy:y2,KJcy:b2,kjcy:w2,Kopf:x2,kopf:_2,Kscr:S2,kscr:k2,lAarr:C2,Lacute:T2,lacute:L2,laemptyv:E2,lagran:A2,Lambda:M2,lambda:N2,lang:P2,Lang:O2,langd:$2,langle:D2,lap:R2,Laplacetrf:z2,laquo:I2,larrb:F2,larrbfs:q2,larr:H2,Larr:B2,lArr:W2,larrfs:U2,larrhk:j2,larrlp:G2,larrpl:V2,larrsim:K2,larrtl:X2,latail:Y2,lAtail:Z2,lat:Q2,late:J2,lates:tH,lbarr:eH,lBarr:nH,lbbrk:rH,lbrace:iH,lbrack:oH,lbrke:sH,lbrksld:lH,lbrkslu:aH,Lcaron:cH,lcaron:uH,Lcedil:fH,lcedil:hH,lceil:dH,lcub:pH,Lcy:gH,lcy:vH,ldca:mH,ldquo:yH,ldquor:bH,ldrdhar:wH,ldrushar:xH,ldsh:_H,le:SH,lE:kH,LeftAngleBracket:CH,LeftArrowBar:TH,leftarrow:LH,LeftArrow:EH,Leftarrow:AH,LeftArrowRightArrow:MH,leftarrowtail:NH,LeftCeiling:PH,LeftDoubleBracket:OH,LeftDownTeeVector:$H,LeftDownVectorBar:DH,LeftDownVector:RH,LeftFloor:zH,leftharpoondown:IH,leftharpoonup:FH,leftleftarrows:qH,leftrightarrow:HH,LeftRightArrow:BH,Leftrightarrow:WH,leftrightarrows:UH,leftrightharpoons:jH,leftrightsquigarrow:GH,LeftRightVector:VH,LeftTeeArrow:KH,LeftTee:XH,LeftTeeVector:YH,leftthreetimes:ZH,LeftTriangleBar:QH,LeftTriangle:JH,LeftTriangleEqual:tB,LeftUpDownVector:eB,LeftUpTeeVector:nB,LeftUpVectorBar:rB,LeftUpVector:iB,LeftVectorBar:oB,LeftVector:sB,lEg:lB,leg:aB,leq:cB,leqq:uB,leqslant:fB,lescc:hB,les:dB,lesdot:pB,lesdoto:gB,lesdotor:vB,lesg:mB,lesges:yB,lessapprox:bB,lessdot:wB,lesseqgtr:xB,lesseqqgtr:_B,LessEqualGreater:SB,LessFullEqual:kB,LessGreater:CB,lessgtr:TB,LessLess:LB,lesssim:EB,LessSlantEqual:AB,LessTilde:MB,lfisht:NB,lfloor:PB,Lfr:OB,lfr:$B,lg:DB,lgE:RB,lHar:zB,lhard:IB,lharu:FB,lharul:qB,lhblk:HB,LJcy:BB,ljcy:WB,llarr:UB,ll:jB,Ll:GB,llcorner:VB,Lleftarrow:KB,llhard:XB,lltri:YB,Lmidot:ZB,lmidot:QB,lmoustache:JB,lmoust:t3,lnap:e3,lnapprox:n3,lne:r3,lnE:i3,lneq:o3,lneqq:s3,lnsim:l3,loang:a3,loarr:c3,lobrk:u3,longleftarrow:f3,LongLeftArrow:h3,Longleftarrow:d3,longleftrightarrow:p3,LongLeftRightArrow:g3,Longleftrightarrow:v3,longmapsto:m3,longrightarrow:y3,LongRightArrow:b3,Longrightarrow:w3,looparrowleft:x3,looparrowright:_3,lopar:S3,Lopf:k3,lopf:C3,loplus:T3,lotimes:L3,lowast:E3,lowbar:A3,LowerLeftArrow:M3,LowerRightArrow:N3,loz:P3,lozenge:O3,lozf:$3,lpar:D3,lparlt:R3,lrarr:z3,lrcorner:I3,lrhar:F3,lrhard:q3,lrm:H3,lrtri:B3,lsaquo:W3,lscr:U3,Lscr:j3,lsh:G3,Lsh:V3,lsim:K3,lsime:X3,lsimg:Y3,lsqb:Z3,lsquo:Q3,lsquor:J3,Lstrok:t5,lstrok:e5,ltcc:n5,ltcir:r5,lt:i5,LT:o5,Lt:s5,ltdot:l5,lthree:a5,ltimes:c5,ltlarr:u5,ltquest:f5,ltri:h5,ltrie:d5,ltrif:p5,ltrPar:g5,lurdshar:v5,luruhar:m5,lvertneqq:y5,lvnE:b5,macr:w5,male:x5,malt:_5,maltese:S5,Map:"\u2905",map:k5,mapsto:C5,mapstodown:T5,mapstoleft:L5,mapstoup:E5,marker:A5,mcomma:M5,Mcy:N5,mcy:P5,mdash:O5,mDDot:$5,measuredangle:D5,MediumSpace:R5,Mellintrf:z5,Mfr:I5,mfr:F5,mho:q5,micro:H5,midast:B5,midcir:W5,mid:U5,middot:j5,minusb:G5,minus:V5,minusd:K5,minusdu:X5,MinusPlus:Y5,mlcp:Z5,mldr:Q5,mnplus:J5,models:tW,Mopf:eW,mopf:nW,mp:rW,mscr:iW,Mscr:oW,mstpos:sW,Mu:lW,mu:aW,multimap:cW,mumap:uW,nabla:fW,Nacute:hW,nacute:dW,nang:pW,nap:gW,napE:vW,napid:mW,napos:yW,napprox:bW,natural:wW,naturals:xW,natur:_W,nbsp:SW,nbump:kW,nbumpe:CW,ncap:TW,Ncaron:LW,ncaron:EW,Ncedil:AW,ncedil:MW,ncong:NW,ncongdot:PW,ncup:OW,Ncy:$W,ncy:DW,ndash:RW,nearhk:zW,nearr:IW,neArr:FW,nearrow:qW,ne:HW,nedot:BW,NegativeMediumSpace:WW,NegativeThickSpace:UW,NegativeThinSpace:jW,NegativeVeryThinSpace:GW,nequiv:VW,nesear:KW,nesim:XW,NestedGreaterGreater:YW,NestedLessLess:ZW,NewLine:QW,nexist:JW,nexists:tU,Nfr:eU,nfr:nU,ngE:rU,nge:iU,ngeq:oU,ngeqq:sU,ngeqslant:lU,nges:aU,nGg:cU,ngsim:uU,nGt:fU,ngt:hU,ngtr:dU,nGtv:pU,nharr:gU,nhArr:vU,nhpar:mU,ni:yU,nis:bU,nisd:wU,niv:xU,NJcy:_U,njcy:SU,nlarr:kU,nlArr:CU,nldr:TU,nlE:LU,nle:EU,nleftarrow:AU,nLeftarrow:MU,nleftrightarrow:NU,nLeftrightarrow:PU,nleq:OU,nleqq:$U,nleqslant:DU,nles:RU,nless:zU,nLl:IU,nlsim:FU,nLt:qU,nlt:HU,nltri:BU,nltrie:WU,nLtv:UU,nmid:jU,NoBreak:GU,NonBreakingSpace:VU,nopf:KU,Nopf:XU,Not:YU,not:ZU,NotCongruent:QU,NotCupCap:JU,NotDoubleVerticalBar:t8,NotElement:e8,NotEqual:n8,NotEqualTilde:r8,NotExists:i8,NotGreater:o8,NotGreaterEqual:s8,NotGreaterFullEqual:l8,NotGreaterGreater:a8,NotGreaterLess:c8,NotGreaterSlantEqual:u8,NotGreaterTilde:f8,NotHumpDownHump:h8,NotHumpEqual:d8,notin:p8,notindot:g8,notinE:v8,notinva:m8,notinvb:y8,notinvc:b8,NotLeftTriangleBar:w8,NotLeftTriangle:x8,NotLeftTriangleEqual:_8,NotLess:S8,NotLessEqual:k8,NotLessGreater:C8,NotLessLess:T8,NotLessSlantEqual:L8,NotLessTilde:E8,NotNestedGreaterGreater:A8,NotNestedLessLess:M8,notni:N8,notniva:P8,notnivb:O8,notnivc:$8,NotPrecedes:D8,NotPrecedesEqual:R8,NotPrecedesSlantEqual:z8,NotReverseElement:I8,NotRightTriangleBar:F8,NotRightTriangle:q8,NotRightTriangleEqual:H8,NotSquareSubset:B8,NotSquareSubsetEqual:W8,NotSquareSuperset:U8,NotSquareSupersetEqual:j8,NotSubset:G8,NotSubsetEqual:V8,NotSucceeds:K8,NotSucceedsEqual:X8,NotSucceedsSlantEqual:Y8,NotSucceedsTilde:Z8,NotSuperset:Q8,NotSupersetEqual:J8,NotTilde:t4,NotTildeEqual:e4,NotTildeFullEqual:n4,NotTildeTilde:r4,NotVerticalBar:i4,nparallel:o4,npar:s4,nparsl:l4,npart:a4,npolint:c4,npr:u4,nprcue:f4,nprec:h4,npreceq:d4,npre:p4,nrarrc:g4,nrarr:v4,nrArr:m4,nrarrw:y4,nrightarrow:b4,nRightarrow:w4,nrtri:x4,nrtrie:_4,nsc:S4,nsccue:k4,nsce:C4,Nscr:T4,nscr:L4,nshortmid:E4,nshortparallel:A4,nsim:M4,nsime:N4,nsimeq:P4,nsmid:O4,nspar:$4,nsqsube:D4,nsqsupe:R4,nsub:z4,nsubE:I4,nsube:F4,nsubset:q4,nsubseteq:H4,nsubseteqq:B4,nsucc:W4,nsucceq:U4,nsup:j4,nsupE:G4,nsupe:V4,nsupset:K4,nsupseteq:X4,nsupseteqq:Y4,ntgl:Z4,Ntilde:Q4,ntilde:J4,ntlg:t6,ntriangleleft:e6,ntrianglelefteq:n6,ntriangleright:r6,ntrianglerighteq:i6,Nu:o6,nu:s6,num:l6,numero:a6,numsp:c6,nvap:u6,nvdash:f6,nvDash:h6,nVdash:d6,nVDash:p6,nvge:g6,nvgt:v6,nvHarr:m6,nvinfin:y6,nvlArr:b6,nvle:w6,nvlt:x6,nvltrie:_6,nvrArr:S6,nvrtrie:k6,nvsim:C6,nwarhk:T6,nwarr:L6,nwArr:E6,nwarrow:A6,nwnear:M6,Oacute:N6,oacute:P6,oast:O6,Ocirc:$6,ocirc:D6,ocir:R6,Ocy:z6,ocy:I6,odash:F6,Odblac:q6,odblac:H6,odiv:B6,odot:W6,odsold:U6,OElig:j6,oelig:G6,ofcir:V6,Ofr:K6,ofr:X6,ogon:Y6,Ograve:Z6,ograve:Q6,ogt:J6,ohbar:tj,ohm:ej,oint:nj,olarr:rj,olcir:ij,olcross:oj,oline:sj,olt:lj,Omacr:aj,omacr:cj,Omega:uj,omega:fj,Omicron:hj,omicron:dj,omid:pj,ominus:gj,Oopf:vj,oopf:mj,opar:yj,OpenCurlyDoubleQuote:bj,OpenCurlyQuote:wj,operp:xj,oplus:_j,orarr:Sj,Or:kj,or:Cj,ord:Tj,order:Lj,orderof:Ej,ordf:Aj,ordm:Mj,origof:Nj,oror:Pj,orslope:Oj,orv:$j,oS:Dj,Oscr:Rj,oscr:zj,Oslash:Ij,oslash:Fj,osol:qj,Otilde:Hj,otilde:Bj,otimesas:Wj,Otimes:Uj,otimes:jj,Ouml:Gj,ouml:Vj,ovbar:Kj,OverBar:Xj,OverBrace:Yj,OverBracket:Zj,OverParenthesis:Qj,para:Jj,parallel:t9,par:e9,parsim:n9,parsl:r9,part:i9,PartialD:o9,Pcy:s9,pcy:l9,percnt:a9,period:c9,permil:u9,perp:f9,pertenk:h9,Pfr:d9,pfr:p9,Phi:g9,phi:v9,phiv:m9,phmmat:y9,phone:b9,Pi:w9,pi:x9,pitchfork:_9,piv:S9,planck:k9,planckh:C9,plankv:T9,plusacir:L9,plusb:E9,pluscir:A9,plus:M9,plusdo:N9,plusdu:P9,pluse:O9,PlusMinus:$9,plusmn:D9,plussim:R9,plustwo:z9,pm:I9,Poincareplane:F9,pointint:q9,popf:H9,Popf:B9,pound:W9,prap:U9,Pr:j9,pr:G9,prcue:V9,precapprox:K9,prec:X9,preccurlyeq:Y9,Precedes:Z9,PrecedesEqual:Q9,PrecedesSlantEqual:J9,PrecedesTilde:tG,preceq:eG,precnapprox:nG,precneqq:rG,precnsim:iG,pre:oG,prE:sG,precsim:lG,prime:aG,Prime:cG,primes:uG,prnap:fG,prnE:hG,prnsim:dG,prod:pG,Product:gG,profalar:vG,profline:mG,profsurf:yG,prop:bG,Proportional:wG,Proportion:xG,propto:_G,prsim:SG,prurel:kG,Pscr:CG,pscr:TG,Psi:LG,psi:EG,puncsp:AG,Qfr:MG,qfr:NG,qint:PG,qopf:OG,Qopf:$G,qprime:DG,Qscr:RG,qscr:zG,quaternions:IG,quatint:FG,quest:qG,questeq:HG,quot:BG,QUOT:WG,rAarr:UG,race:jG,Racute:GG,racute:VG,radic:KG,raemptyv:XG,rang:YG,Rang:ZG,rangd:QG,range:JG,rangle:tV,raquo:eV,rarrap:nV,rarrb:rV,rarrbfs:iV,rarrc:oV,rarr:sV,Rarr:lV,rArr:aV,rarrfs:cV,rarrhk:uV,rarrlp:fV,rarrpl:hV,rarrsim:dV,Rarrtl:pV,rarrtl:gV,rarrw:vV,ratail:mV,rAtail:yV,ratio:bV,rationals:wV,rbarr:xV,rBarr:_V,RBarr:SV,rbbrk:kV,rbrace:CV,rbrack:TV,rbrke:LV,rbrksld:EV,rbrkslu:AV,Rcaron:MV,rcaron:NV,Rcedil:PV,rcedil:OV,rceil:$V,rcub:DV,Rcy:RV,rcy:zV,rdca:IV,rdldhar:FV,rdquo:qV,rdquor:HV,rdsh:BV,real:WV,realine:UV,realpart:jV,reals:GV,Re:VV,rect:KV,reg:XV,REG:YV,ReverseElement:ZV,ReverseEquilibrium:QV,ReverseUpEquilibrium:JV,rfisht:tK,rfloor:eK,rfr:nK,Rfr:rK,rHar:iK,rhard:oK,rharu:sK,rharul:lK,Rho:aK,rho:cK,rhov:uK,RightAngleBracket:fK,RightArrowBar:hK,rightarrow:dK,RightArrow:pK,Rightarrow:gK,RightArrowLeftArrow:vK,rightarrowtail:mK,RightCeiling:yK,RightDoubleBracket:bK,RightDownTeeVector:wK,RightDownVectorBar:xK,RightDownVector:_K,RightFloor:SK,rightharpoondown:kK,rightharpoonup:CK,rightleftarrows:TK,rightleftharpoons:LK,rightrightarrows:EK,rightsquigarrow:AK,RightTeeArrow:MK,RightTee:NK,RightTeeVector:PK,rightthreetimes:OK,RightTriangleBar:$K,RightTriangle:DK,RightTriangleEqual:RK,RightUpDownVector:zK,RightUpTeeVector:IK,RightUpVectorBar:FK,RightUpVector:qK,RightVectorBar:HK,RightVector:BK,ring:WK,risingdotseq:UK,rlarr:jK,rlhar:GK,rlm:VK,rmoustache:KK,rmoust:XK,rnmid:YK,roang:ZK,roarr:QK,robrk:JK,ropar:t7,ropf:e7,Ropf:n7,roplus:r7,rotimes:i7,RoundImplies:o7,rpar:s7,rpargt:l7,rppolint:a7,rrarr:c7,Rrightarrow:u7,rsaquo:f7,rscr:h7,Rscr:d7,rsh:p7,Rsh:g7,rsqb:v7,rsquo:m7,rsquor:y7,rthree:b7,rtimes:w7,rtri:x7,rtrie:_7,rtrif:S7,rtriltri:k7,RuleDelayed:C7,ruluhar:T7,rx:L7,Sacute:E7,sacute:A7,sbquo:M7,scap:N7,Scaron:P7,scaron:O7,Sc:$7,sc:D7,sccue:R7,sce:z7,scE:I7,Scedil:F7,scedil:q7,Scirc:H7,scirc:B7,scnap:W7,scnE:U7,scnsim:j7,scpolint:G7,scsim:V7,Scy:K7,scy:X7,sdotb:Y7,sdot:Z7,sdote:Q7,searhk:J7,searr:tX,seArr:eX,searrow:nX,sect:rX,semi:iX,seswar:oX,setminus:sX,setmn:lX,sext:aX,Sfr:cX,sfr:uX,sfrown:fX,sharp:hX,SHCHcy:dX,shchcy:pX,SHcy:gX,shcy:vX,ShortDownArrow:mX,ShortLeftArrow:yX,shortmid:bX,shortparallel:wX,ShortRightArrow:xX,ShortUpArrow:_X,shy:SX,Sigma:kX,sigma:CX,sigmaf:TX,sigmav:LX,sim:EX,simdot:AX,sime:MX,simeq:NX,simg:PX,simgE:OX,siml:$X,simlE:DX,simne:RX,simplus:zX,simrarr:IX,slarr:FX,SmallCircle:qX,smallsetminus:HX,smashp:BX,smeparsl:WX,smid:UX,smile:jX,smt:GX,smte:VX,smtes:KX,SOFTcy:XX,softcy:YX,solbar:ZX,solb:QX,sol:JX,Sopf:tY,sopf:eY,spades:nY,spadesuit:rY,spar:iY,sqcap:oY,sqcaps:sY,sqcup:lY,sqcups:aY,Sqrt:cY,sqsub:uY,sqsube:fY,sqsubset:hY,sqsubseteq:dY,sqsup:pY,sqsupe:gY,sqsupset:vY,sqsupseteq:mY,square:yY,Square:bY,SquareIntersection:wY,SquareSubset:xY,SquareSubsetEqual:_Y,SquareSuperset:SY,SquareSupersetEqual:kY,SquareUnion:CY,squarf:TY,squ:LY,squf:EY,srarr:AY,Sscr:MY,sscr:NY,ssetmn:PY,ssmile:OY,sstarf:$Y,Star:DY,star:RY,starf:zY,straightepsilon:IY,straightphi:FY,strns:qY,sub:HY,Sub:BY,subdot:WY,subE:UY,sube:jY,subedot:GY,submult:VY,subnE:KY,subne:XY,subplus:YY,subrarr:ZY,subset:QY,Subset:JY,subseteq:tZ,subseteqq:eZ,SubsetEqual:nZ,subsetneq:rZ,subsetneqq:iZ,subsim:oZ,subsub:sZ,subsup:lZ,succapprox:aZ,succ:cZ,succcurlyeq:uZ,Succeeds:fZ,SucceedsEqual:hZ,SucceedsSlantEqual:dZ,SucceedsTilde:pZ,succeq:gZ,succnapprox:vZ,succneqq:mZ,succnsim:yZ,succsim:bZ,SuchThat:wZ,sum:xZ,Sum:_Z,sung:SZ,sup1:kZ,sup2:CZ,sup3:TZ,sup:LZ,Sup:EZ,supdot:AZ,supdsub:MZ,supE:NZ,supe:PZ,supedot:OZ,Superset:$Z,SupersetEqual:DZ,suphsol:RZ,suphsub:zZ,suplarr:IZ,supmult:FZ,supnE:qZ,supne:HZ,supplus:BZ,supset:WZ,Supset:UZ,supseteq:jZ,supseteqq:GZ,supsetneq:VZ,supsetneqq:KZ,supsim:XZ,supsub:YZ,supsup:ZZ,swarhk:QZ,swarr:JZ,swArr:tQ,swarrow:eQ,swnwar:nQ,szlig:rQ,Tab:iQ,target:oQ,Tau:sQ,tau:lQ,tbrk:aQ,Tcaron:cQ,tcaron:uQ,Tcedil:fQ,tcedil:hQ,Tcy:dQ,tcy:pQ,tdot:gQ,telrec:vQ,Tfr:mQ,tfr:yQ,there4:bQ,therefore:wQ,Therefore:xQ,Theta:_Q,theta:SQ,thetasym:kQ,thetav:CQ,thickapprox:TQ,thicksim:LQ,ThickSpace:EQ,ThinSpace:AQ,thinsp:MQ,thkap:NQ,thksim:PQ,THORN:OQ,thorn:$Q,tilde:DQ,Tilde:RQ,TildeEqual:zQ,TildeFullEqual:IQ,TildeTilde:FQ,timesbar:qQ,timesb:HQ,times:BQ,timesd:WQ,tint:UQ,toea:jQ,topbot:GQ,topcir:VQ,top:KQ,Topf:XQ,topf:YQ,topfork:ZQ,tosa:QQ,tprime:JQ,trade:tJ,TRADE:eJ,triangle:nJ,triangledown:rJ,triangleleft:iJ,trianglelefteq:oJ,triangleq:sJ,triangleright:lJ,trianglerighteq:aJ,tridot:cJ,trie:uJ,triminus:fJ,TripleDot:hJ,triplus:dJ,trisb:pJ,tritime:gJ,trpezium:vJ,Tscr:mJ,tscr:yJ,TScy:bJ,tscy:wJ,TSHcy:xJ,tshcy:_J,Tstrok:SJ,tstrok:kJ,twixt:CJ,twoheadleftarrow:TJ,twoheadrightarrow:LJ,Uacute:EJ,uacute:AJ,uarr:MJ,Uarr:NJ,uArr:PJ,Uarrocir:OJ,Ubrcy:$J,ubrcy:DJ,Ubreve:RJ,ubreve:zJ,Ucirc:IJ,ucirc:FJ,Ucy:qJ,ucy:HJ,udarr:BJ,Udblac:WJ,udblac:UJ,udhar:jJ,ufisht:GJ,Ufr:VJ,ufr:KJ,Ugrave:XJ,ugrave:YJ,uHar:ZJ,uharl:QJ,uharr:JJ,uhblk:ttt,ulcorn:ett,ulcorner:ntt,ulcrop:rtt,ultri:itt,Umacr:ott,umacr:stt,uml:ltt,UnderBar:att,UnderBrace:ctt,UnderBracket:utt,UnderParenthesis:ftt,Union:htt,UnionPlus:dtt,Uogon:ptt,uogon:gtt,Uopf:vtt,uopf:mtt,UpArrowBar:ytt,uparrow:btt,UpArrow:wtt,Uparrow:xtt,UpArrowDownArrow:_tt,updownarrow:Stt,UpDownArrow:ktt,Updownarrow:Ctt,UpEquilibrium:Ttt,upharpoonleft:Ltt,upharpoonright:Ett,uplus:Att,UpperLeftArrow:Mtt,UpperRightArrow:Ntt,upsi:Ptt,Upsi:Ott,upsih:$tt,Upsilon:Dtt,upsilon:Rtt,UpTeeArrow:ztt,UpTee:Itt,upuparrows:Ftt,urcorn:qtt,urcorner:Htt,urcrop:Btt,Uring:Wtt,uring:Utt,urtri:jtt,Uscr:Gtt,uscr:Vtt,utdot:Ktt,Utilde:Xtt,utilde:Ytt,utri:Ztt,utrif:Qtt,uuarr:Jtt,Uuml:tet,uuml:eet,uwangle:net,vangrt:ret,varepsilon:iet,varkappa:oet,varnothing:set,varphi:aet,varpi:cet,varpropto:uet,varr:fet,vArr:het,varrho:det,varsigma:pet,varsubsetneq:get,varsubsetneqq:vet,varsupsetneq:met,varsupsetneqq:yet,vartheta:bet,vartriangleleft:wet,vartriangleright:xet,vBar:_et,Vbar:ket,vBarv:Cet,Vcy:Tet,vcy:Let,vdash:Eet,vDash:Aet,Vdash:Met,VDash:Net,Vdashl:Pet,veebar:Oet,vee:$et,Vee:Det,veeeq:Ret,vellip:zet,verbar:Iet,Verbar:Fet,vert:qet,Vert:Het,VerticalBar:Bet,VerticalLine:Wet,VerticalSeparator:Uet,VerticalTilde:jet,VeryThinSpace:Get,Vfr:Vet,vfr:Ket,vltri:Xet,vnsub:Yet,vnsup:Zet,Vopf:Qet,vopf:Jet,vprop:tnt,vrtri:ent,Vscr:nnt,vscr:rnt,vsubnE:int,vsubne:ont,vsupnE:snt,vsupne:lnt,Vvdash:ant,vzigzag:cnt,Wcirc:unt,wcirc:fnt,wedbar:hnt,wedge:dnt,Wedge:pnt,wedgeq:gnt,weierp:vnt,Wfr:mnt,wfr:ynt,Wopf:bnt,wopf:wnt,wp:xnt,wr:_nt,wreath:Snt,Wscr:knt,wscr:Cnt,xcap:Tnt,xcirc:Lnt,xcup:Ent,xdtri:Ant,Xfr:Mnt,xfr:Nnt,xharr:Pnt,xhArr:Ont,Xi:$nt,xi:Dnt,xlarr:Rnt,xlArr:znt,xmap:Int,xnis:Fnt,xodot:qnt,Xopf:Hnt,xopf:Bnt,xoplus:Wnt,xotime:Unt,xrarr:jnt,xrArr:Gnt,Xscr:Vnt,xscr:Knt,xsqcup:Xnt,xuplus:Ynt,xutri:Znt,xvee:Qnt,xwedge:Jnt,Yacute:trt,yacute:ert,YAcy:nrt,yacy:rrt,Ycirc:irt,ycirc:ort,Ycy:srt,ycy:lrt,yen:art,Yfr:crt,yfr:urt,YIcy:frt,yicy:hrt,Yopf:drt,yopf:prt,Yscr:grt,yscr:vrt,YUcy:mrt,yucy:yrt,yuml:brt,Yuml:wrt,Zacute:xrt,zacute:_rt,Zcaron:Srt,zcaron:krt,Zcy:Crt,zcy:Trt,Zdot:Lrt,zdot:Ert,zeetrf:Art,ZeroWidthSpace:Mrt,Zeta:Nrt,zeta:Prt,zfr:Ort,Zfr:$rt,ZHcy:Drt,zhcy:Rrt,zigrarr:zrt,zopf:Irt,Zopf:Frt,Zscr:qrt,zscr:Hrt,zwj:Brt,zwnj:Wrt},Urt="\xC1",jrt="\xE1",Grt="\xC2",Vrt="\xE2",Krt="\xB4",Xrt="\xC6",Yrt="\xE6",Zrt="\xC0",Qrt="\xE0",Jrt="&",tit="&",eit="\xC5",nit="\xE5",rit="\xC3",iit="\xE3",oit="\xC4",sit="\xE4",lit="\xA6",ait="\xC7",cit="\xE7",uit="\xB8",fit="\xA2",hit="\xA9",dit="\xA9",pit="\xA4",git="\xB0",vit="\xF7",mit="\xC9",yit="\xE9",bit="\xCA",wit="\xEA",xit="\xC8",_it="\xE8",Sit="\xD0",kit="\xF0",Cit="\xCB",Tit="\xEB",Lit="\xBD",Eit="\xBC",Ait="\xBE",Mit=">",Nit=">",Pit="\xCD",Oit="\xED",$it="\xCE",Dit="\xEE",Rit="\xA1",zit="\xCC",Iit="\xEC",Fit="\xBF",qit="\xCF",Hit="\xEF",Bit="\xAB",Wit="<",Uit="<",jit="\xAF",Git="\xB5",Vit="\xB7",Kit="\xA0",Xit="\xAC",Yit="\xD1",Zit="\xF1",Qit="\xD3",Jit="\xF3",tot="\xD4",eot="\xF4",not="\xD2",rot="\xF2",iot="\xAA",oot="\xBA",sot="\xD8",lot="\xF8",aot="\xD5",cot="\xF5",uot="\xD6",fot="\xF6",hot="\xB6",dot="\xB1",pot="\xA3",got='"',vot='"',mot="\xBB",yot="\xAE",bot="\xAE",wot="\xA7",xot="\xAD",_ot="\xB9",Sot="\xB2",kot="\xB3",Cot="\xDF",Tot="\xDE",Lot="\xFE",Eot="\xD7",Aot="\xDA",Mot="\xFA",Not="\xDB",Pot="\xFB",Oot="\xD9",$ot="\xF9",Dot="\xA8",Rot="\xDC",zot="\xFC",Iot="\xDD",Fot="\xFD",qot="\xA5",Hot="\xFF",Bot={Aacute:Urt,aacute:jrt,Acirc:Grt,acirc:Vrt,acute:Krt,AElig:Xrt,aelig:Yrt,Agrave:Zrt,agrave:Qrt,amp:Jrt,AMP:tit,Aring:eit,aring:nit,Atilde:rit,atilde:iit,Auml:oit,auml:sit,brvbar:lit,Ccedil:ait,ccedil:cit,cedil:uit,cent:fit,copy:hit,COPY:dit,curren:pit,deg:git,divide:vit,Eacute:mit,eacute:yit,Ecirc:bit,ecirc:wit,Egrave:xit,egrave:_it,ETH:Sit,eth:kit,Euml:Cit,euml:Tit,frac12:Lit,frac14:Eit,frac34:Ait,gt:Mit,GT:Nit,Iacute:Pit,iacute:Oit,Icirc:$it,icirc:Dit,iexcl:Rit,Igrave:zit,igrave:Iit,iquest:Fit,Iuml:qit,iuml:Hit,laquo:Bit,lt:Wit,LT:Uit,macr:jit,micro:Git,middot:Vit,nbsp:Kit,not:Xit,Ntilde:Yit,ntilde:Zit,Oacute:Qit,oacute:Jit,Ocirc:tot,ocirc:eot,Ograve:not,ograve:rot,ordf:iot,ordm:oot,Oslash:sot,oslash:lot,Otilde:aot,otilde:cot,Ouml:uot,ouml:fot,para:hot,plusmn:dot,pound:pot,quot:got,QUOT:vot,raquo:mot,reg:yot,REG:bot,sect:wot,shy:xot,sup1:_ot,sup2:Sot,sup3:kot,szlig:Cot,THORN:Tot,thorn:Lot,times:Eot,Uacute:Aot,uacute:Mot,Ucirc:Not,ucirc:Pot,Ugrave:Oot,ugrave:$ot,uml:Dot,Uuml:Rot,uuml:zot,Yacute:Iot,yacute:Fot,yen:qot,yuml:Hot},Wot="&",Uot="'",jot=">",Got="<",Vot='"',j0={amp:Wot,apos:Uot,gt:jot,lt:Got,quot:Vot};var rh={};const Kot={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 Xot=Vi&&Vi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(rh,"__esModule",{value:!0});var Qg=Xot(Kot),Yot=String.fromCodePoint||function(t){var n="";return t>65535&&(t-=65536,n+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),n+=String.fromCharCode(t),n};function Zot(t){return t>=55296&&t<=57343||t>1114111?"\uFFFD":(t in Qg.default&&(t=Qg.default[t]),Yot(t))}rh.default=Zot;var pc=Vi&&Vi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Or,"__esModule",{value:!0});Or.decodeHTML=Or.decodeHTMLStrict=Or.decodeXML=void 0;var lf=pc(U0),Qot=pc(Bot),Jot=pc(j0),Jg=pc(rh),tst=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Or.decodeXML=G0(Jot.default);Or.decodeHTMLStrict=G0(lf.default);function G0(t){var n=V0(t);return function(r){return String(r).replace(tst,n)}}var tv=function(t,n){return t<n?1:-1};Or.decodeHTML=function(){for(var t=Object.keys(Qot.default).sort(tv),n=Object.keys(lf.default).sort(tv),r=0,o=0;r<n.length;r++)t[o]===n[r]?(n[r]+=";?",o++):n[r]+=";";var a=new RegExp("&(?:"+n.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),u=V0(lf.default);function f(h){return h.substr(-1)!==";"&&(h+=";"),u(h)}return function(h){return String(h).replace(a,f)}}();function V0(t){return function(r){if(r.charAt(1)==="#"){var o=r.charAt(2);return o==="X"||o==="x"?Jg.default(parseInt(r.substr(3),16)):Jg.default(parseInt(r.substr(2),10))}return t[r.slice(1,-1)]||r}}var Nn={},K0=Vi&&Vi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Nn,"__esModule",{value:!0});Nn.escapeUTF8=Nn.escape=Nn.encodeNonAsciiHTML=Nn.encodeHTML=Nn.encodeXML=void 0;var est=K0(j0),X0=Z0(est.default),Y0=Q0(X0);Nn.encodeXML=ey(X0);var nst=K0(U0),ih=Z0(nst.default),rst=Q0(ih);Nn.encodeHTML=ost(ih,rst);Nn.encodeNonAsciiHTML=ey(ih);function Z0(t){return Object.keys(t).sort().reduce(function(n,r){return n[t[r]]="&"+r+";",n},{})}function Q0(t){for(var n=[],r=[],o=0,a=Object.keys(t);o<a.length;o++){var u=a[o];u.length===1?n.push("\\"+u):r.push(u)}n.sort();for(var f=0;f<n.length-1;f++){for(var h=f;h<n.length-1&&n[h].charCodeAt(1)+1===n[h+1].charCodeAt(1);)h+=1;var p=1+h-f;p<3||n.splice(f,p,n[f]+"-"+n[h])}return r.unshift("["+n.join("")+"]"),new RegExp(r.join("|"),"g")}var J0=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,ist=String.prototype.codePointAt!=null?function(t){return t.codePointAt(0)}:function(t){return(t.charCodeAt(0)-55296)*1024+t.charCodeAt(1)-56320+65536};function gc(t){return"&#x"+(t.length>1?ist(t):t.charCodeAt(0)).toString(16).toUpperCase()+";"}function ost(t,n){return function(r){return r.replace(n,function(o){return t[o]}).replace(J0,gc)}}var ty=new RegExp(Y0.source+"|"+J0.source,"g");function sst(t){return t.replace(ty,gc)}Nn.escape=sst;function lst(t){return t.replace(Y0,gc)}Nn.escapeUTF8=lst;function ey(t){return function(n){return n.replace(ty,function(r){return t[r]||gc(r)})}}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=t.encode=t.decodeStrict=t.decode=void 0;var n=Or,r=Nn;function o(p,g){return(!g||g<=0?n.decodeXML:n.decodeHTML)(p)}t.decode=o;function a(p,g){return(!g||g<=0?n.decodeXML:n.decodeHTMLStrict)(p)}t.decodeStrict=a;function u(p,g){return(!g||g<=0?r.encodeXML:r.encodeHTML)(p)}t.encode=u;var f=Nn;Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return f.encodeXML}}),Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return f.encodeNonAsciiHTML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return f.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return f.escapeUTF8}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return f.encodeHTML}});var h=Or;Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return h.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return h.decodeXML}})})(W0);function ast(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function ev(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function cst(t,n,r){return n&&ev(t.prototype,n),r&&ev(t,r),t}function ny(t,n){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=ust(t))||n&&t&&typeof t.length=="number"){r&&(t=r);var o=0,a=function(){};return{s:a,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(g){throw g},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
7
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u=!0,f=!1,h;return{s:function(){r=r.call(t)},n:function(){var g=r.next();return u=g.done,g},e:function(g){f=!0,h=g},f:function(){try{!u&&r.return!=null&&r.return()}finally{if(f)throw h}}}}function ust(t,n){if(!!t){if(typeof t=="string")return nv(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nv(t,n)}}function nv(t,n){(n==null||n>t.length)&&(n=t.length);for(var r=0,o=new Array(n);r<n;r++)o[r]=t[r];return o}var fst=W0,rv={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:hst()};function hst(){var t={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 ra(0,5).forEach(function(n){ra(0,5).forEach(function(r){ra(0,5).forEach(function(o){return dst(n,r,o,t)})})}),ra(0,23).forEach(function(n){var r=n+232,o=ry(n*10+8);t[r]="#"+o+o+o}),t}function dst(t,n,r,o){var a=16+t*36+n*6+r,u=t>0?t*40+55:0,f=n>0?n*40+55:0,h=r>0?r*40+55:0;o[a]=pst([u,f,h])}function ry(t){for(var n=t.toString(16);n.length<2;)n="0"+n;return n}function pst(t){var n=[],r=ny(t),o;try{for(r.s();!(o=r.n()).done;){var a=o.value;n.push(ry(a))}}catch(u){r.e(u)}finally{r.f()}return"#"+n.join("")}function iv(t,n,r,o){var a;return n==="text"?a=yst(r,o):n==="display"?a=vst(t,r,o):n==="xterm256Foreground"?a=ma(t,o.colors[r]):n==="xterm256Background"?a=ya(t,o.colors[r]):n==="rgb"&&(a=gst(t,r)),a}function gst(t,n){n=n.substring(2).slice(0,-1);var r=+n.substr(0,2),o=n.substring(5).split(";"),a=o.map(function(u){return("0"+Number(u).toString(16)).substr(-2)}).join("");return va(t,(r===38?"color:#":"background-color:#")+a)}function vst(t,n,r){n=parseInt(n,10);var o={"-1":function(){return"<br/>"},0:function(){return t.length&&iy(t)},1:function(){return si(t,"b")},3:function(){return si(t,"i")},4:function(){return si(t,"u")},8:function(){return va(t,"display:none")},9:function(){return si(t,"strike")},22:function(){return va(t,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return sv(t,"i")},24:function(){return sv(t,"u")},39:function(){return ma(t,r.fg)},49:function(){return ya(t,r.bg)},53:function(){return va(t,"text-decoration:overline")}},a;return o[n]?a=o[n]():4<n&&n<7?a=si(t,"blink"):29<n&&n<38?a=ma(t,r.colors[n-30]):39<n&&n<48?a=ya(t,r.colors[n-40]):89<n&&n<98?a=ma(t,r.colors[8+(n-90)]):99<n&&n<108&&(a=ya(t,r.colors[8+(n-100)])),a}function iy(t){var n=t.slice(0);return t.length=0,n.reverse().map(function(r){return"</"+r+">"}).join("")}function ra(t,n){for(var r=[],o=t;o<=n;o++)r.push(o);return r}function mst(t){return function(n){return(t===null||n.category!==t)&&t!=="all"}}function ov(t){t=parseInt(t,10);var n=null;return t===0?n="all":t===1?n="bold":2<t&&t<5?n="underline":4<t&&t<7?n="blink":t===8?n="hide":t===9?n="strike":29<t&&t<38||t===39||89<t&&t<98?n="foreground-color":(39<t&&t<48||t===49||99<t&&t<108)&&(n="background-color"),n}function yst(t,n){return n.escapeXML?fst.encodeXML(t):t}function si(t,n,r){return r||(r=""),t.push(n),"<".concat(n).concat(r?' style="'.concat(r,'"'):"",">")}function va(t,n){return si(t,"span",n)}function ma(t,n){return si(t,"span","color:"+n)}function ya(t,n){return si(t,"span","background-color:"+n)}function sv(t,n){var r;if(t.slice(-1)[0]===n&&(r=t.pop()),r)return"</"+n+">"}function bst(t,n,r){var o=!1,a=3;function u(){return""}function f(G,j){return r("xterm256Foreground",j),""}function h(G,j){return r("xterm256Background",j),""}function p(G){return n.newline?r("display",-1):r("text",G),""}function g(G,j){o=!0,j.trim().length===0&&(j="0"),j=j.trimRight(";").split(";");var it=ny(j),J;try{for(it.s();!(J=it.n()).done;){var dt=J.value;r("display",dt)}}catch(vt){it.e(vt)}finally{it.f()}return""}function m(G){return r("text",G),""}function b(G){return r("rgb",G),""}var x=[{pattern:/^\x08+/,sub:u},{pattern:/^\x1b\[[012]?K/,sub:u},{pattern:/^\x1b\[\(B/,sub:u},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:b},{pattern:/^\x1b\[38;5;(\d+)m/,sub:f},{pattern:/^\x1b\[48;5;(\d+)m/,sub:h},{pattern:/^\n/,sub:p},{pattern:/^\r+\n/,sub:p},{pattern:/^\r/,sub:p},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:g},{pattern:/^\x1b\[\d?J/,sub:u},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:u},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:u},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:m}];function S(G,j){j>a&&o||(o=!1,t=t.replace(G.pattern,G.sub))}var N=[],A=t,L=A.length;t:for(;L>0;){for(var C=0,E=0,z=x.length;E<z;C=++E){var D=x[C];if(S(D,C),t.length!==L){L=t.length;continue t}}if(t.length===L)break;N.push(0),L=t.length}return N}function wst(t,n,r){return n!=="text"&&(t=t.filter(mst(ov(r))),t.push({token:n,data:r,category:ov(r)})),t}var xst=function(){function t(n){ast(this,t),n=n||{},n.colors&&(n.colors=Object.assign({},rv.colors,n.colors)),this.options=Object.assign({},rv,n),this.stack=[],this.stickyStack=[]}return cst(t,[{key:"toHtml",value:function(r){var o=this;r=typeof r=="string"?[r]:r;var a=this.stack,u=this.options,f=[];return this.stickyStack.forEach(function(h){var p=iv(a,h.token,h.data,u);p&&f.push(p)}),bst(r.join(""),u,function(h,p){var g=iv(a,h,p,u);g&&f.push(g),u.stream&&(o.stickyStack=wst(o.stickyStack,h,p))}),a.length&&f.push(iy(a)),f.join("")}}]),t}(),_st=xst;function Sst(t,n){return n&&t.endsWith(n)}async function oy(t,n,r){const o=encodeURI(`${t}:${n}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function sy(t){return new _st({fg:t?"#FFF":"#000",bg:t?"#000":"#FFF"})}const vc=WC(),kst=eC(vc),Cst={"h-full":"",class:"scrolls"},Tst={key:0,class:"scrolls scrolls-rounded task-error"},Lst=["innerHTML"],Est={key:1,class:"scrolls scrolls-rounded task-error"},Ast=["onClickPassive"],Mst={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},Nst=oe({__name:"ViewReport",props:{file:null},setup(t){const n=t;function r(g,m){var b;return((b=g.result)==null?void 0:b.state)!=="fail"?[]:g.type==="test"||g.type==="benchmark"?[{...g,level:m}]:[{...g,level:m},...g.tasks.flatMap(x=>r(x,m+1))]}function o(g){return g.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function a(g,m){const b=sy(g);return m.map(x=>{var N,A;const S=x.result;if(S){const L=S.error;if(L){let C="";L.message.includes("\x1B")&&(C=`<b>${L.nameStr||L.name}</b>: ${b.toHtml(o(L.message))}`);const E=(N=L.stackStr)==null?void 0:N.includes("\x1B");(E||((A=L.stack)==null?void 0:A.includes("\x1B")))&&(C.length>0?C+=b.toHtml(o(E?L.stackStr:L.stack)):C=`<b>${L.nameStr||L.name}</b>: ${L.message}${b.toHtml(o(E?L.stackStr:L.stack))}`),C.length>0&&(S.htmlError=C)}}return x})}const u=St(()=>{var S,N;const g=n.file,m=(N=(S=g==null?void 0:g.tasks)==null?void 0:S.flatMap(A=>r(A,0)))!=null?N:[],b=g==null?void 0:g.result;if(b==null?void 0:b.error){const A={id:g.id,name:g.name,level:0,type:"suite",mode:"run",tasks:[],result:b};m.unshift(A)}return m.length>0?a(vc.value,m):m});function f(g){return g.startsWith(sf.value.root)?g.slice(sf.value.root.length):g}function h(g){var m,b;return(b=(m=g.sourcePos)==null?void 0:m.line)!=null?b:g.line}function p(g){var m,b;return(b=(m=g.sourcePos)==null?void 0:m.column)!=null?b:g.column}return(g,m)=>{const b=Yi("tooltip");return ht(),Mt("div",Cst,[Z(u).length?(ht(!0),Mt(ue,{key:0},lr(Z(u),x=>{var S,N,A;return ht(),Mt("div",{key:x.id},[ut("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:kn({"margin-left":`${(S=x.result)!=null&&S.htmlError?.5:2*x.level+.5}rem`})},[fn(Zt(x.name)+" ",1),(N=x.result)!=null&&N.htmlError?(ht(),Mt("div",Tst,[ut("pre",{innerHTML:x.result.htmlError},null,8,Lst)])):(A=x.result)!=null&&A.error?(ht(),Mt("div",Est,[ut("pre",null,[ut("b",null,Zt(x.result.error.name||x.result.error.nameStr),1),fn(": "+Zt(x.result.error.message),1)]),(ht(!0),Mt(ue,null,lr(x.result.error.stacks,(L,C)=>{var E;return ht(),Mt("div",{key:C,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[ut("pre",null," - "+Zt(f(L.file))+":"+Zt(h(L))+":"+Zt(p(L)),1),Z(Sst)(L.file,(E=n.file)==null?void 0:E.name)?pn((ht(),Mt("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:z=>Z(oy)(L.file,h(L),p(L))},null,40,Ast)),[[b,"Open in Editor",void 0,{bottom:!0}]]):ye("",!0)])}),128))])):ye("",!0)],4)])}),128)):(ht(),Mt("div",Mst," All tests passed in this file "))])}}});const Pst=Ko(Nst,[["__scopeId","data-v-cbc93645"]]),Ost={border:"b base","p-4":""},$st=["innerHTML"],Dst=["textContent"],Rst=oe({__name:"ViewConsoleOutputEntry",props:{taskName:null,type:null,time:null,content:null,html:{type:Boolean}},setup(t){const n=t;function r(o){return new Date(o).toLocaleTimeString()}return(o,a)=>(ht(),Mt("div",Ost,[ut("div",{"text-xs":"","mb-1":"",class:ge(n.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Zt(r(n.time))+" | "+Zt(n.taskName)+" | "+Zt(n.type),3),n.html?(ht(),Mt("pre",{key:0,"data-type":"html",innerHTML:n.content},null,8,$st)):(ht(),Mt("pre",{key:1,"data-type":"text",textContent:Zt(n.content)},null,8,Dst))]))}}),zst={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},Ist={key:1,p6:""},Fst=ut("pre",{inline:""},"console.log(foo)",-1),qst=oe({__name:"ViewConsoleOutput",setup(t){const n=St(()=>{const o=H0.value;if(o){const a=sy(vc.value);return o.map(({taskId:u,type:f,time:h,content:p})=>{const g=p.trim(),m=a.toHtml(g);return m!==g?{taskId:u,type:f,time:h,html:!0,content:m}:{taskId:u,type:f,time:h,html:!1,content:p}})}});function r(o){const a=o&&We.state.idMap.get(o);return a?gT(a).slice(1).join(" > "):"-"}return(o,a)=>{var f;const u=Rst;return(f=Z(n))!=null&&f.length?(ht(),Mt("div",zst,[(ht(!0),Mt(ue,null,lr(Z(n),({taskId:h,type:p,time:g,html:m,content:b})=>(ht(),Mt("div",{key:h,"font-mono":""},[Rt(u,{"task-name":r(h),type:p,time:g,content:b,html:m},null,8,["task-name","type","time","content","html"])]))),128))])):(ht(),Mt("p",Ist,[fn(" Log something in your test and it would print here. (e.g. "),Fst,fn(") ")]))}}});var Tu={exports:{}},lv;function Xo(){return lv||(lv=1,function(t,n){(function(r,o){t.exports=o()})(Vi,function(){var r=navigator.userAgent,o=navigator.platform,a=/gecko\/\d/i.test(r),u=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),h=/Edge\/(\d+)/.exec(r),p=u||f||h,g=p&&(u?document.documentMode||6:+(h||f)[1]),m=!h&&/WebKit\//.test(r),b=m&&/Qt\/\d+\.\d+/.test(r),x=!h&&/Chrome\/(\d+)/.exec(r),S=x&&+x[1],N=/Opera\//.test(r),A=/Apple Computer/.test(navigator.vendor),L=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),C=/PhantomJS/.test(r),E=A&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),z=/Android/.test(r),D=E||z||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),G=E||/Mac/.test(o),j=/\bCrOS\b/.test(r),it=/win/i.test(o),J=N&&r.match(/Version\/(\d*\.\d*)/);J&&(J=Number(J[1])),J&&J>=15&&(N=!1,m=!0);var dt=G&&(b||N&&(J==null||J<12.11)),vt=a||p&&g>=9;function kt(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ft=function(e,i){var l=e.className,s=kt(i).exec(l);if(s){var c=l.slice(s.index+s[0].length);e.className=l.slice(0,s.index)+(c?s[1]+c:"")}};function U(e){for(var i=e.childNodes.length;i>0;--i)e.removeChild(e.firstChild);return e}function I(e,i){return U(e).appendChild(i)}function k(e,i,l,s){var c=document.createElement(e);if(l&&(c.className=l),s&&(c.style.cssText=s),typeof i=="string")c.appendChild(document.createTextNode(i));else if(i)for(var d=0;d<i.length;++d)c.appendChild(i[d]);return c}function H(e,i,l,s){var c=k(e,i,l,s);return c.setAttribute("role","presentation"),c}var W;document.createRange?W=function(e,i,l,s){var c=document.createRange();return c.setEnd(s||e,l),c.setStart(e,i),c}:W=function(e,i,l){var s=document.body.createTextRange();try{s.moveToElementText(e.parentNode)}catch{return s}return s.collapse(!0),s.moveEnd("character",l),s.moveStart("character",i),s};function et(e,i){if(i.nodeType==3&&(i=i.parentNode),e.contains)return e.contains(i);do if(i.nodeType==11&&(i=i.host),i==e)return!0;while(i=i.parentNode)}function wt(e){var i;try{i=e.activeElement}catch{i=e.body||null}for(;i&&i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function Et(e,i){var l=e.className;kt(i).test(l)||(e.className+=(l?" ":"")+i)}function qt(e,i){for(var l=e.split(" "),s=0;s<l.length;s++)l[s]&&!kt(l[s]).test(i)&&(i+=" "+l[s]);return i}var Bt=function(e){e.select()};E?Bt=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:p&&(Bt=function(e){try{e.select()}catch{}});function Gt(e){return e.display.wrapper.ownerDocument}function ne(e){return Gt(e).defaultView}function Q(e){var i=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,i)}}function tt(e,i,l){i||(i={});for(var s in e)e.hasOwnProperty(s)&&(l!==!1||!i.hasOwnProperty(s))&&(i[s]=e[s]);return i}function V(e,i,l,s,c){i==null&&(i=e.search(/[^\s\u00a0]/),i==-1&&(i=e.length));for(var d=s||0,v=c||0;;){var y=e.indexOf(" ",d);if(y<0||y>=i)return v+(i-d);v+=y-d,v+=l-v%l,d=y+1}}var st=function(){this.id=null,this.f=null,this.time=0,this.handler=Q(this.onTimeout,this)};st.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},st.prototype.set=function(e,i){this.f=i;var l=+new Date+e;(!this.id||l<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=l)};function Ct(e,i){for(var l=0;l<e.length;++l)if(e[l]==i)return l;return-1}var de=50,Lt={toString:function(){return"CodeMirror.Pass"}},P={scroll:!1},F={origin:"*mouse"},Y={origin:"+move"};function nt(e,i,l){for(var s=0,c=0;;){var d=e.indexOf(" ",s);d==-1&&(d=e.length);var v=d-s;if(d==e.length||c+v>=i)return s+Math.min(v,i-c);if(c+=d-s,c+=l-c%l,s=d+1,c>=i)return s}}var ot=[""];function pt(e){for(;ot.length<=e;)ot.push(lt(ot)+" ");return ot[e]}function lt(e){return e[e.length-1]}function gt(e,i){for(var l=[],s=0;s<e.length;s++)l[s]=i(e[s],s);return l}function xt(e,i,l){for(var s=0,c=l(i);s<e.length&&l(e[s])<=c;)s++;e.splice(s,0,i)}function at(){}function $t(e,i){var l;return Object.create?l=Object.create(e):(at.prototype=e,l=new at),i&&tt(i,l),l}var Nt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ot(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Nt.test(e))}function zt(e,i){return i?i.source.indexOf("\\w")>-1&&Ot(e)?!0:i.test(e):Ot(e)}function jt(e){for(var i in e)if(e.hasOwnProperty(i)&&e[i])return!1;return!0}var te=/[\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 Qt(e){return e.charCodeAt(0)>=768&&te.test(e)}function se(e,i,l){for(;(l<0?i>0:i<e.length)&&Qt(e.charAt(i));)i+=l;return i}function Xt(e,i,l){for(var s=i>l?-1:1;;){if(i==l)return i;var c=(i+l)/2,d=s<0?Math.ceil(c):Math.floor(c);if(d==i)return e(d)?i:l;e(d)?l=d:i=d+s}}function mn(e,i,l,s){if(!e)return s(i,l,"ltr",0);for(var c=!1,d=0;d<e.length;++d){var v=e[d];(v.from<l&&v.to>i||i==l&&v.to==i)&&(s(Math.max(v.from,i),Math.min(v.to,l),v.level==1?"rtl":"ltr",d),c=!0)}c||s(i,l,"ltr")}var Ln=null;function qe(e,i,l){var s;Ln=null;for(var c=0;c<e.length;++c){var d=e[c];if(d.from<i&&d.to>i)return c;d.to==i&&(d.from!=d.to&&l=="before"?s=c:Ln=c),d.from==i&&(d.from!=d.to&&l!="before"?s=c:Ln=c)}return s!=null?s:Ln}var Zi=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function l(_){return _<=247?e.charAt(_):1424<=_&&_<=1524?"R":1536<=_&&_<=1785?i.charAt(_-1536):1774<=_&&_<=2220?"r":8192<=_&&_<=8203?"w":_==8204?"b":"L"}var s=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,c=/[stwN]/,d=/[LRr]/,v=/[Lb1n]/,y=/[1n]/;function w(_,M,O){this.level=_,this.from=M,this.to=O}return function(_,M){var O=M=="ltr"?"L":"R";if(_.length==0||M=="ltr"&&!s.test(_))return!1;for(var B=_.length,q=[],X=0;X<B;++X)q.push(l(_.charCodeAt(X)));for(var rt=0,ct=O;rt<B;++rt){var mt=q[rt];mt=="m"?q[rt]=ct:ct=mt}for(var _t=0,yt=O;_t<B;++_t){var Tt=q[_t];Tt=="1"&&yt=="r"?q[_t]="n":d.test(Tt)&&(yt=Tt,Tt=="r"&&(q[_t]="R"))}for(var Dt=1,Pt=q[0];Dt<B-1;++Dt){var Ut=q[Dt];Ut=="+"&&Pt=="1"&&q[Dt+1]=="1"?q[Dt]="1":Ut==","&&Pt==q[Dt+1]&&(Pt=="1"||Pt=="n")&&(q[Dt]=Pt),Pt=Ut}for(var pe=0;pe<B;++pe){var Re=q[pe];if(Re==",")q[pe]="N";else if(Re=="%"){var _e=void 0;for(_e=pe+1;_e<B&&q[_e]=="%";++_e);for(var wn=pe&&q[pe-1]=="!"||_e<B&&q[_e]=="1"?"1":"N",ln=pe;ln<_e;++ln)q[ln]=wn;pe=_e-1}}for(var Ee=0,an=O;Ee<B;++Ee){var He=q[Ee];an=="L"&&He=="1"?q[Ee]="L":d.test(He)&&(an=He)}for(var Pe=0;Pe<B;++Pe)if(c.test(q[Pe])){var Ae=void 0;for(Ae=Pe+1;Ae<B&&c.test(q[Ae]);++Ae);for(var Ce=(Pe?q[Pe-1]:O)=="L",cn=(Ae<B?q[Ae]:O)=="L",bo=Ce==cn?Ce?"L":"R":O,Qr=Pe;Qr<Ae;++Qr)q[Qr]=bo;Pe=Ae-1}for(var Ke=[],rr,ze=0;ze<B;)if(v.test(q[ze])){var hu=ze;for(++ze;ze<B&&v.test(q[ze]);++ze);Ke.push(new w(0,hu,ze))}else{var Cr=ze,Li=Ke.length,Ei=M=="rtl"?1:0;for(++ze;ze<B&&q[ze]!="L";++ze);for(var Je=Cr;Je<ze;)if(y.test(q[Je])){Cr<Je&&(Ke.splice(Li,0,new w(1,Cr,Je)),Li+=Ei);var wo=Je;for(++Je;Je<ze&&y.test(q[Je]);++Je);Ke.splice(Li,0,new w(2,wo,Je)),Li+=Ei,Cr=Je}else++Je;Cr<ze&&Ke.splice(Li,0,new w(1,Cr,ze))}return M=="ltr"&&(Ke[0].level==1&&(rr=_.match(/^\s+/))&&(Ke[0].from=rr[0].length,Ke.unshift(new w(0,0,rr[0].length))),lt(Ke).level==1&&(rr=_.match(/\s+$/))&&(lt(Ke).to-=rr[0].length,Ke.push(new w(0,B-rr[0].length,B)))),M=="rtl"?Ke.reverse():Ke}}();function be(e,i){var l=e.order;return l==null&&(l=e.order=Zi(e.text,i)),l}var nn=[],bt=function(e,i,l){if(e.addEventListener)e.addEventListener(i,l,!1);else if(e.attachEvent)e.attachEvent("on"+i,l);else{var s=e._handlers||(e._handlers={});s[i]=(s[i]||nn).concat(l)}};function Zo(e,i){return e._handlers&&e._handlers[i]||nn}function je(e,i,l){if(e.removeEventListener)e.removeEventListener(i,l,!1);else if(e.detachEvent)e.detachEvent("on"+i,l);else{var s=e._handlers,c=s&&s[i];if(c){var d=Ct(c,l);d>-1&&(s[i]=c.slice(0,d).concat(c.slice(d+1)))}}}function ve(e,i){var l=Zo(e,i);if(!!l.length)for(var s=Array.prototype.slice.call(arguments,2),c=0;c<l.length;++c)l[c].apply(null,s)}function Se(e,i,l){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),ve(e,l||i.type,e,i),Qo(i)||i.codemirrorIgnore}function ml(e){var i=e._handlers&&e._handlers.cursorActivity;if(!!i)for(var l=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),s=0;s<i.length;++s)Ct(l,i[s])==-1&&l.push(i[s])}function Ye(e,i){return Zo(e,i).length>0}function Ze(e){e.prototype.on=function(i,l){bt(this,i,l)},e.prototype.off=function(i,l){je(this,i,l)}}function Ge(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function yi(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Qo(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function vr(e){Ge(e),yi(e)}function rn(e){return e.target||e.srcElement}function Jo(e){var i=e.which;return i==null&&(e.button&1?i=1:e.button&2?i=3:e.button&4&&(i=2)),G&&e.ctrlKey&&i==1&&(i=3),i}var wc=function(){if(p&&g<9)return!1;var e=k("div");return"draggable"in e||"dragDrop"in e}(),$n;function xc(e){if($n==null){var i=k("span","\u200B");I(e,k("span",[i,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&($n=i.offsetWidth<=1&&i.offsetHeight>2&&!(p&&g<8))}var l=$n?k("span","\u200B"):k("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return l.setAttribute("cm-text",""),l}var Qi;function yl(e){if(Qi!=null)return Qi;var i=I(e,document.createTextNode("A\u062EA")),l=W(i,0,1).getBoundingClientRect(),s=W(i,1,2).getBoundingClientRect();return U(e),!l||l.left==l.right?!1:Qi=s.right-l.right<3}var ts=`
8
+
9
+ b`.split(/\n/).length!=3?function(e){for(var i=0,l=[],s=e.length;i<=s;){var c=e.indexOf(`
10
+ `,i);c==-1&&(c=e.length);var d=e.slice(i,e.charAt(c-1)=="\r"?c-1:c),v=d.indexOf("\r");v!=-1?(l.push(d.slice(0,v)),i+=v+1):(l.push(d),i=c+1)}return l}:function(e){return e.split(/\r\n?|\n/)},qr=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var i;try{i=e.ownerDocument.selection.createRange()}catch{}return!i||i.parentElement()!=e?!1:i.compareEndPoints("StartToEnd",i)!=0},Zn=function(){var e=k("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Qn=null;function bl(e){if(Qn!=null)return Qn;var i=I(e,k("span","x")),l=i.getBoundingClientRect(),s=W(i,0,1).getBoundingClientRect();return Qn=Math.abs(l.left-s.left)>1}var Fn={},Hr={};function wl(e,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Fn[e]=i}function Ji(e,i){Hr[e]=i}function yn(e){if(typeof e=="string"&&Hr.hasOwnProperty(e))e=Hr[e];else if(e&&typeof e.name=="string"&&Hr.hasOwnProperty(e.name)){var i=Hr[e.name];typeof i=="string"&&(i={name:i}),e=$t(i,e),e.name=i.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return yn("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return yn("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function mr(e,i){i=yn(i);var l=Fn[i.name];if(!l)return mr(e,"text/plain");var s=l(e,i);if(Br.hasOwnProperty(i.name)){var c=Br[i.name];for(var d in c)!c.hasOwnProperty(d)||(s.hasOwnProperty(d)&&(s["_"+d]=s[d]),s[d]=c[d])}if(s.name=i.name,i.helperType&&(s.helperType=i.helperType),i.modeProps)for(var v in i.modeProps)s[v]=i.modeProps[v];return s}var Br={};function xl(e,i){var l=Br.hasOwnProperty(e)?Br[e]:Br[e]={};tt(i,l)}function yr(e,i){if(i===!0)return i;if(e.copyState)return e.copyState(i);var l={};for(var s in i){var c=i[s];c instanceof Array&&(c=c.concat([])),l[s]=c}return l}function Wr(e,i){for(var l;e.innerMode&&(l=e.innerMode(i),!(!l||l.mode==e));)i=l.state,e=l.mode;return l||{mode:e,state:i}}function es(e,i,l){return e.startState?e.startState(i,l):!0}var ke=function(e,i,l){this.pos=this.start=0,this.string=e,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=l};ke.prototype.eol=function(){return this.pos>=this.string.length},ke.prototype.sol=function(){return this.pos==this.lineStart},ke.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ke.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ke.prototype.eat=function(e){var i=this.string.charAt(this.pos),l;if(typeof e=="string"?l=i==e:l=i&&(e.test?e.test(i):e(i)),l)return++this.pos,i},ke.prototype.eatWhile=function(e){for(var i=this.pos;this.eat(e););return this.pos>i},ke.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},ke.prototype.skipToEnd=function(){this.pos=this.string.length},ke.prototype.skipTo=function(e){var i=this.string.indexOf(e,this.pos);if(i>-1)return this.pos=i,!0},ke.prototype.backUp=function(e){this.pos-=e},ke.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=V(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},ke.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},ke.prototype.match=function(e,i,l){if(typeof e=="string"){var s=function(v){return l?v.toLowerCase():v},c=this.string.substr(this.pos,e.length);if(s(c)==s(e))return i!==!1&&(this.pos+=e.length),!0}else{var d=this.string.slice(this.pos).match(e);return d&&d.index>0?null:(d&&i!==!1&&(this.pos+=d[0].length),d)}},ke.prototype.current=function(){return this.string.slice(this.start,this.pos)},ke.prototype.hideFirstChars=function(e,i){this.lineStart+=e;try{return i()}finally{this.lineStart-=e}},ke.prototype.lookAhead=function(e){var i=this.lineOracle;return i&&i.lookAhead(e)},ke.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function At(e,i){if(i-=e.first,i<0||i>=e.size)throw new Error("There is no line "+(i+e.first)+" in the document.");for(var l=e;!l.lines;)for(var s=0;;++s){var c=l.children[s],d=c.chunkSize();if(i<d){l=c;break}i-=d}return l.lines[i]}function br(e,i,l){var s=[],c=i.line;return e.iter(i.line,l.line+1,function(d){var v=d.text;c==l.line&&(v=v.slice(0,l.ch)),c==i.line&&(v=v.slice(i.ch)),s.push(v),++c}),s}function to(e,i,l){var s=[];return e.iter(i,l,function(c){s.push(c.text)}),s}function Dn(e,i){var l=i-e.height;if(l)for(var s=e;s;s=s.parent)s.height+=l}function re(e){if(e.parent==null)return null;for(var i=e.parent,l=Ct(i.lines,e),s=i.parent;s;i=s,s=s.parent)for(var c=0;s.children[c]!=i;++c)l+=s.children[c].chunkSize();return l+i.first}function Jn(e,i){var l=e.first;t:do{for(var s=0;s<e.children.length;++s){var c=e.children[s],d=c.height;if(i<d){e=c;continue t}i-=d,l+=c.chunkSize()}return l}while(!e.lines);for(var v=0;v<e.lines.length;++v){var y=e.lines[v],w=y.height;if(i<w)break;i-=w}return l+v}function T(e,i){return i>=e.first&&i<e.first+e.size}function $(e,i){return String(e.lineNumberFormatter(i+e.firstLineNumber))}function R(e,i,l){if(l===void 0&&(l=null),!(this instanceof R))return new R(e,i,l);this.line=e,this.ch=i,this.sticky=l}function K(e,i){return e.line-i.line||e.ch-i.ch}function It(e,i){return e.sticky==i.sticky&&K(e,i)==0}function Vt(e){return R(e.line,e.ch)}function ee(e,i){return K(e,i)<0?i:e}function Ne(e,i){return K(e,i)<0?e:i}function En(e,i){return Math.max(e.first,Math.min(i,e.first+e.size-1))}function Ft(e,i){if(i.line<e.first)return R(e.first,0);var l=e.first+e.size-1;return i.line>l?R(l,At(e,l).text.length):Jy(i,At(e,i.line).text.length)}function Jy(e,i){var l=e.ch;return l==null||l>i?R(e.line,i):l<0?R(e.line,0):e}function wh(e,i){for(var l=[],s=0;s<i.length;s++)l[s]=Ft(e,i[s]);return l}var _l=function(e,i){this.state=e,this.lookAhead=i},tr=function(e,i,l,s){this.state=i,this.doc=e,this.line=l,this.maxLookAhead=s||0,this.baseTokens=null,this.baseTokenPos=1};tr.prototype.lookAhead=function(e){var i=this.doc.getLine(this.line+e);return i!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),i},tr.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},tr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},tr.fromSaved=function(e,i,l){return i instanceof _l?new tr(e,yr(e.mode,i.state),l,i.lookAhead):new tr(e,yr(e.mode,i),l)},tr.prototype.save=function(e){var i=e!==!1?yr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new _l(i,this.maxLookAhead):i};function xh(e,i,l,s){var c=[e.state.modeGen],d={};Lh(e,i.text,e.doc.mode,l,function(_,M){return c.push(_,M)},d,s);for(var v=l.state,y=function(_){l.baseTokens=c;var M=e.state.overlays[_],O=1,B=0;l.state=!0,Lh(e,i.text,M.mode,l,function(q,X){for(var rt=O;B<q;){var ct=c[O];ct>q&&c.splice(O,1,q,c[O+1],ct),O+=2,B=Math.min(q,ct)}if(!!X)if(M.opaque)c.splice(rt,O-rt,q,"overlay "+X),O=rt+2;else for(;rt<O;rt+=2){var mt=c[rt+1];c[rt+1]=(mt?mt+" ":"")+"overlay "+X}},d),l.state=v,l.baseTokens=null,l.baseTokenPos=1},w=0;w<e.state.overlays.length;++w)y(w);return{styles:c,classes:d.bgClass||d.textClass?d:null}}function _h(e,i,l){if(!i.styles||i.styles[0]!=e.state.modeGen){var s=ns(e,re(i)),c=i.text.length>e.options.maxHighlightLength&&yr(e.doc.mode,s.state),d=xh(e,i,s);c&&(s.state=c),i.stateAfter=s.save(!c),i.styles=d.styles,d.classes?i.styleClasses=d.classes:i.styleClasses&&(i.styleClasses=null),l===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return i.styles}function ns(e,i,l){var s=e.doc,c=e.display;if(!s.mode.startState)return new tr(s,!0,i);var d=tb(e,i,l),v=d>s.first&&At(s,d-1).stateAfter,y=v?tr.fromSaved(s,v,d):new tr(s,es(s.mode),d);return s.iter(d,i,function(w){_c(e,w.text,y);var _=y.line;w.stateAfter=_==i-1||_%5==0||_>=c.viewFrom&&_<c.viewTo?y.save():null,y.nextLine()}),l&&(s.modeFrontier=y.line),y}function _c(e,i,l,s){var c=e.doc.mode,d=new ke(i,e.options.tabSize,l);for(d.start=d.pos=s||0,i==""&&Sh(c,l.state);!d.eol();)Sc(c,d,l.state),d.start=d.pos}function Sh(e,i){if(e.blankLine)return e.blankLine(i);if(!!e.innerMode){var l=Wr(e,i);if(l.mode.blankLine)return l.mode.blankLine(l.state)}}function Sc(e,i,l,s){for(var c=0;c<10;c++){s&&(s[0]=Wr(e,l).mode);var d=e.token(i,l);if(i.pos>i.start)return d}throw new Error("Mode "+e.name+" failed to advance stream.")}var kh=function(e,i,l){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=i||null,this.state=l};function Ch(e,i,l,s){var c=e.doc,d=c.mode,v;i=Ft(c,i);var y=At(c,i.line),w=ns(e,i.line,l),_=new ke(y.text,e.options.tabSize,w),M;for(s&&(M=[]);(s||_.pos<i.ch)&&!_.eol();)_.start=_.pos,v=Sc(d,_,w.state),s&&M.push(new kh(_,v,yr(c.mode,w.state)));return s?M:new kh(_,v,w.state)}function Th(e,i){if(e)for(;;){var l=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!l)break;e=e.slice(0,l.index)+e.slice(l.index+l[0].length);var s=l[1]?"bgClass":"textClass";i[s]==null?i[s]=l[2]:new RegExp("(?:^|\\s)"+l[2]+"(?:$|\\s)").test(i[s])||(i[s]+=" "+l[2])}return e}function Lh(e,i,l,s,c,d,v){var y=l.flattenSpans;y==null&&(y=e.options.flattenSpans);var w=0,_=null,M=new ke(i,e.options.tabSize,s),O,B=e.options.addModeClass&&[null];for(i==""&&Th(Sh(l,s.state),d);!M.eol();){if(M.pos>e.options.maxHighlightLength?(y=!1,v&&_c(e,i,s,M.pos),M.pos=i.length,O=null):O=Th(Sc(l,M,s.state,B),d),B){var q=B[0].name;q&&(O="m-"+(O?q+" "+O:q))}if(!y||_!=O){for(;w<M.start;)w=Math.min(M.start,w+5e3),c(w,_);_=O}M.start=M.pos}for(;w<M.pos;){var X=Math.min(M.pos,w+5e3);c(X,_),w=X}}function tb(e,i,l){for(var s,c,d=e.doc,v=l?-1:i-(e.doc.mode.innerMode?1e3:100),y=i;y>v;--y){if(y<=d.first)return d.first;var w=At(d,y-1),_=w.stateAfter;if(_&&(!l||y+(_ instanceof _l?_.lookAhead:0)<=d.modeFrontier))return y;var M=V(w.text,null,e.options.tabSize);(c==null||s>M)&&(c=y-1,s=M)}return c}function eb(e,i){if(e.modeFrontier=Math.min(e.modeFrontier,i),!(e.highlightFrontier<i-10)){for(var l=e.first,s=i-1;s>l;s--){var c=At(e,s).stateAfter;if(c&&(!(c instanceof _l)||s+c.lookAhead<i)){l=s+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,l)}}var Eh=!1,wr=!1;function nb(){Eh=!0}function rb(){wr=!0}function Sl(e,i,l){this.marker=e,this.from=i,this.to=l}function rs(e,i){if(e)for(var l=0;l<e.length;++l){var s=e[l];if(s.marker==i)return s}}function ib(e,i){for(var l,s=0;s<e.length;++s)e[s]!=i&&(l||(l=[])).push(e[s]);return l}function ob(e,i,l){var s=l&&window.WeakSet&&(l.markedSpans||(l.markedSpans=new WeakSet));s&&e.markedSpans&&s.has(e.markedSpans)?e.markedSpans.push(i):(e.markedSpans=e.markedSpans?e.markedSpans.concat([i]):[i],s&&s.add(e.markedSpans)),i.marker.attachLine(e)}function sb(e,i,l){var s;if(e)for(var c=0;c<e.length;++c){var d=e[c],v=d.marker,y=d.from==null||(v.inclusiveLeft?d.from<=i:d.from<i);if(y||d.from==i&&v.type=="bookmark"&&(!l||!d.marker.insertLeft)){var w=d.to==null||(v.inclusiveRight?d.to>=i:d.to>i);(s||(s=[])).push(new Sl(v,d.from,w?null:d.to))}}return s}function lb(e,i,l){var s;if(e)for(var c=0;c<e.length;++c){var d=e[c],v=d.marker,y=d.to==null||(v.inclusiveRight?d.to>=i:d.to>i);if(y||d.from==i&&v.type=="bookmark"&&(!l||d.marker.insertLeft)){var w=d.from==null||(v.inclusiveLeft?d.from<=i:d.from<i);(s||(s=[])).push(new Sl(v,w?null:d.from-i,d.to==null?null:d.to-i))}}return s}function kc(e,i){if(i.full)return null;var l=T(e,i.from.line)&&At(e,i.from.line).markedSpans,s=T(e,i.to.line)&&At(e,i.to.line).markedSpans;if(!l&&!s)return null;var c=i.from.ch,d=i.to.ch,v=K(i.from,i.to)==0,y=sb(l,c,v),w=lb(s,d,v),_=i.text.length==1,M=lt(i.text).length+(_?c:0);if(y)for(var O=0;O<y.length;++O){var B=y[O];if(B.to==null){var q=rs(w,B.marker);q?_&&(B.to=q.to==null?null:q.to+M):B.to=c}}if(w)for(var X=0;X<w.length;++X){var rt=w[X];if(rt.to!=null&&(rt.to+=M),rt.from==null){var ct=rs(y,rt.marker);ct||(rt.from=M,_&&(y||(y=[])).push(rt))}else rt.from+=M,_&&(y||(y=[])).push(rt)}y&&(y=Ah(y)),w&&w!=y&&(w=Ah(w));var mt=[y];if(!_){var _t=i.text.length-2,yt;if(_t>0&&y)for(var Tt=0;Tt<y.length;++Tt)y[Tt].to==null&&(yt||(yt=[])).push(new Sl(y[Tt].marker,null,null));for(var Dt=0;Dt<_t;++Dt)mt.push(yt);mt.push(w)}return mt}function Ah(e){for(var i=0;i<e.length;++i){var l=e[i];l.from!=null&&l.from==l.to&&l.marker.clearWhenEmpty!==!1&&e.splice(i--,1)}return e.length?e:null}function ab(e,i,l){var s=null;if(e.iter(i.line,l.line+1,function(q){if(q.markedSpans)for(var X=0;X<q.markedSpans.length;++X){var rt=q.markedSpans[X].marker;rt.readOnly&&(!s||Ct(s,rt)==-1)&&(s||(s=[])).push(rt)}}),!s)return null;for(var c=[{from:i,to:l}],d=0;d<s.length;++d)for(var v=s[d],y=v.find(0),w=0;w<c.length;++w){var _=c[w];if(!(K(_.to,y.from)<0||K(_.from,y.to)>0)){var M=[w,1],O=K(_.from,y.from),B=K(_.to,y.to);(O<0||!v.inclusiveLeft&&!O)&&M.push({from:_.from,to:y.from}),(B>0||!v.inclusiveRight&&!B)&&M.push({from:y.to,to:_.to}),c.splice.apply(c,M),w+=M.length-3}}return c}function Mh(e){var i=e.markedSpans;if(!!i){for(var l=0;l<i.length;++l)i[l].marker.detachLine(e);e.markedSpans=null}}function Nh(e,i){if(!!i){for(var l=0;l<i.length;++l)i[l].marker.attachLine(e);e.markedSpans=i}}function kl(e){return e.inclusiveLeft?-1:0}function Cl(e){return e.inclusiveRight?1:0}function Cc(e,i){var l=e.lines.length-i.lines.length;if(l!=0)return l;var s=e.find(),c=i.find(),d=K(s.from,c.from)||kl(e)-kl(i);if(d)return-d;var v=K(s.to,c.to)||Cl(e)-Cl(i);return v||i.id-e.id}function Ph(e,i){var l=wr&&e.markedSpans,s;if(l)for(var c=void 0,d=0;d<l.length;++d)c=l[d],c.marker.collapsed&&(i?c.from:c.to)==null&&(!s||Cc(s,c.marker)<0)&&(s=c.marker);return s}function Oh(e){return Ph(e,!0)}function Tl(e){return Ph(e,!1)}function cb(e,i){var l=wr&&e.markedSpans,s;if(l)for(var c=0;c<l.length;++c){var d=l[c];d.marker.collapsed&&(d.from==null||d.from<i)&&(d.to==null||d.to>i)&&(!s||Cc(s,d.marker)<0)&&(s=d.marker)}return s}function $h(e,i,l,s,c){var d=At(e,i),v=wr&&d.markedSpans;if(v)for(var y=0;y<v.length;++y){var w=v[y];if(!!w.marker.collapsed){var _=w.marker.find(0),M=K(_.from,l)||kl(w.marker)-kl(c),O=K(_.to,s)||Cl(w.marker)-Cl(c);if(!(M>=0&&O<=0||M<=0&&O>=0)&&(M<=0&&(w.marker.inclusiveRight&&c.inclusiveLeft?K(_.to,l)>=0:K(_.to,l)>0)||M>=0&&(w.marker.inclusiveRight&&c.inclusiveLeft?K(_.from,s)<=0:K(_.from,s)<0)))return!0}}}function qn(e){for(var i;i=Oh(e);)e=i.find(-1,!0).line;return e}function ub(e){for(var i;i=Tl(e);)e=i.find(1,!0).line;return e}function fb(e){for(var i,l;i=Tl(e);)e=i.find(1,!0).line,(l||(l=[])).push(e);return l}function Tc(e,i){var l=At(e,i),s=qn(l);return l==s?i:re(s)}function Dh(e,i){if(i>e.lastLine())return i;var l=At(e,i),s;if(!Ur(e,l))return i;for(;s=Tl(l);)l=s.find(1,!0).line;return re(l)+1}function Ur(e,i){var l=wr&&i.markedSpans;if(l){for(var s=void 0,c=0;c<l.length;++c)if(s=l[c],!!s.marker.collapsed){if(s.from==null)return!0;if(!s.marker.widgetNode&&s.from==0&&s.marker.inclusiveLeft&&Lc(e,i,s))return!0}}}function Lc(e,i,l){if(l.to==null){var s=l.marker.find(1,!0);return Lc(e,s.line,rs(s.line.markedSpans,l.marker))}if(l.marker.inclusiveRight&&l.to==i.text.length)return!0;for(var c=void 0,d=0;d<i.markedSpans.length;++d)if(c=i.markedSpans[d],c.marker.collapsed&&!c.marker.widgetNode&&c.from==l.to&&(c.to==null||c.to!=l.from)&&(c.marker.inclusiveLeft||l.marker.inclusiveRight)&&Lc(e,i,c))return!0}function xr(e){e=qn(e);for(var i=0,l=e.parent,s=0;s<l.lines.length;++s){var c=l.lines[s];if(c==e)break;i+=c.height}for(var d=l.parent;d;l=d,d=l.parent)for(var v=0;v<d.children.length;++v){var y=d.children[v];if(y==l)break;i+=y.height}return i}function Ll(e){if(e.height==0)return 0;for(var i=e.text.length,l,s=e;l=Oh(s);){var c=l.find(0,!0);s=c.from.line,i+=c.from.ch-c.to.ch}for(s=e;l=Tl(s);){var d=l.find(0,!0);i-=s.text.length-d.from.ch,s=d.to.line,i+=s.text.length-d.to.ch}return i}function Ec(e){var i=e.display,l=e.doc;i.maxLine=At(l,l.first),i.maxLineLength=Ll(i.maxLine),i.maxLineChanged=!0,l.iter(function(s){var c=Ll(s);c>i.maxLineLength&&(i.maxLineLength=c,i.maxLine=s)})}var eo=function(e,i,l){this.text=e,Nh(this,i),this.height=l?l(this):1};eo.prototype.lineNo=function(){return re(this)},Ze(eo);function hb(e,i,l,s){e.text=i,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Mh(e),Nh(e,l);var c=s?s(e):1;c!=e.height&&Dn(e,c)}function db(e){e.parent=null,Mh(e)}var pb={},gb={};function Rh(e,i){if(!e||/^\s*$/.test(e))return null;var l=i.addModeClass?gb:pb;return l[e]||(l[e]=e.replace(/\S+/g,"cm-$&"))}function zh(e,i){var l=H("span",null,null,m?"padding-right: .1px":null),s={pre:H("pre",[l],"CodeMirror-line"),content:l,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};i.measure={};for(var c=0;c<=(i.rest?i.rest.length:0);c++){var d=c?i.rest[c-1]:i.line,v=void 0;s.pos=0,s.addToken=mb,yl(e.display.measure)&&(v=be(d,e.doc.direction))&&(s.addToken=bb(s.addToken,v)),s.map=[];var y=i!=e.display.externalMeasured&&re(d);wb(d,s,_h(e,d,y)),d.styleClasses&&(d.styleClasses.bgClass&&(s.bgClass=qt(d.styleClasses.bgClass,s.bgClass||"")),d.styleClasses.textClass&&(s.textClass=qt(d.styleClasses.textClass,s.textClass||""))),s.map.length==0&&s.map.push(0,0,s.content.appendChild(xc(e.display.measure))),c==0?(i.measure.map=s.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(s.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(m){var w=s.content.lastChild;(/\bcm-tab\b/.test(w.className)||w.querySelector&&w.querySelector(".cm-tab"))&&(s.content.className="cm-tab-wrap-hack")}return ve(e,"renderLine",e,i.line,s.pre),s.pre.className&&(s.textClass=qt(s.pre.className,s.textClass||"")),s}function vb(e){var i=k("span","\u2022","cm-invalidchar");return i.title="\\u"+e.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function mb(e,i,l,s,c,d,v){if(!!i){var y=e.splitSpaces?yb(i,e.trailingSpace):i,w=e.cm.state.specialChars,_=!1,M;if(!w.test(i))e.col+=i.length,M=document.createTextNode(y),e.map.push(e.pos,e.pos+i.length,M),p&&g<9&&(_=!0),e.pos+=i.length;else{M=document.createDocumentFragment();for(var O=0;;){w.lastIndex=O;var B=w.exec(i),q=B?B.index-O:i.length-O;if(q){var X=document.createTextNode(y.slice(O,O+q));p&&g<9?M.appendChild(k("span",[X])):M.appendChild(X),e.map.push(e.pos,e.pos+q,X),e.col+=q,e.pos+=q}if(!B)break;O+=q+1;var rt=void 0;if(B[0]==" "){var ct=e.cm.options.tabSize,mt=ct-e.col%ct;rt=M.appendChild(k("span",pt(mt),"cm-tab")),rt.setAttribute("role","presentation"),rt.setAttribute("cm-text"," "),e.col+=mt}else B[0]=="\r"||B[0]==`
11
+ `?(rt=M.appendChild(k("span",B[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),rt.setAttribute("cm-text",B[0]),e.col+=1):(rt=e.cm.options.specialCharPlaceholder(B[0]),rt.setAttribute("cm-text",B[0]),p&&g<9?M.appendChild(k("span",[rt])):M.appendChild(rt),e.col+=1);e.map.push(e.pos,e.pos+1,rt),e.pos++}}if(e.trailingSpace=y.charCodeAt(i.length-1)==32,l||s||c||_||d||v){var _t=l||"";s&&(_t+=s),c&&(_t+=c);var yt=k("span",[M],_t,d);if(v)for(var Tt in v)v.hasOwnProperty(Tt)&&Tt!="style"&&Tt!="class"&&yt.setAttribute(Tt,v[Tt]);return e.content.appendChild(yt)}e.content.appendChild(M)}}function yb(e,i){if(e.length>1&&!/ /.test(e))return e;for(var l=i,s="",c=0;c<e.length;c++){var d=e.charAt(c);d==" "&&l&&(c==e.length-1||e.charCodeAt(c+1)==32)&&(d="\xA0"),s+=d,l=d==" "}return s}function bb(e,i){return function(l,s,c,d,v,y,w){c=c?c+" cm-force-border":"cm-force-border";for(var _=l.pos,M=_+s.length;;){for(var O=void 0,B=0;B<i.length&&(O=i[B],!(O.to>_&&O.from<=_));B++);if(O.to>=M)return e(l,s,c,d,v,y,w);e(l,s.slice(0,O.to-_),c,d,null,y,w),d=null,s=s.slice(O.to-_),_=O.to}}}function Ih(e,i,l,s){var c=!s&&l.widgetNode;c&&e.map.push(e.pos,e.pos+i,c),!s&&e.cm.display.input.needsContentAttribute&&(c||(c=e.content.appendChild(document.createElement("span"))),c.setAttribute("cm-marker",l.id)),c&&(e.cm.display.input.setUneditable(c),e.content.appendChild(c)),e.pos+=i,e.trailingSpace=!1}function wb(e,i,l){var s=e.markedSpans,c=e.text,d=0;if(!s){for(var v=1;v<l.length;v+=2)i.addToken(i,c.slice(d,d=l[v]),Rh(l[v+1],i.cm.options));return}for(var y=c.length,w=0,_=1,M="",O,B,q=0,X,rt,ct,mt,_t;;){if(q==w){X=rt=ct=B="",_t=null,mt=null,q=1/0;for(var yt=[],Tt=void 0,Dt=0;Dt<s.length;++Dt){var Pt=s[Dt],Ut=Pt.marker;if(Ut.type=="bookmark"&&Pt.from==w&&Ut.widgetNode)yt.push(Ut);else if(Pt.from<=w&&(Pt.to==null||Pt.to>w||Ut.collapsed&&Pt.to==w&&Pt.from==w)){if(Pt.to!=null&&Pt.to!=w&&q>Pt.to&&(q=Pt.to,rt=""),Ut.className&&(X+=" "+Ut.className),Ut.css&&(B=(B?B+";":"")+Ut.css),Ut.startStyle&&Pt.from==w&&(ct+=" "+Ut.startStyle),Ut.endStyle&&Pt.to==q&&(Tt||(Tt=[])).push(Ut.endStyle,Pt.to),Ut.title&&((_t||(_t={})).title=Ut.title),Ut.attributes)for(var pe in Ut.attributes)(_t||(_t={}))[pe]=Ut.attributes[pe];Ut.collapsed&&(!mt||Cc(mt.marker,Ut)<0)&&(mt=Pt)}else Pt.from>w&&q>Pt.from&&(q=Pt.from)}if(Tt)for(var Re=0;Re<Tt.length;Re+=2)Tt[Re+1]==q&&(rt+=" "+Tt[Re]);if(!mt||mt.from==w)for(var _e=0;_e<yt.length;++_e)Ih(i,0,yt[_e]);if(mt&&(mt.from||0)==w){if(Ih(i,(mt.to==null?y+1:mt.to)-w,mt.marker,mt.from==null),mt.to==null)return;mt.to==w&&(mt=!1)}}if(w>=y)break;for(var wn=Math.min(y,q);;){if(M){var ln=w+M.length;if(!mt){var Ee=ln>wn?M.slice(0,wn-w):M;i.addToken(i,Ee,O?O+X:X,ct,w+Ee.length==q?rt:"",B,_t)}if(ln>=wn){M=M.slice(wn-w),w=wn;break}w=ln,ct=""}M=c.slice(d,d=l[_++]),O=Rh(l[_++],i.cm.options)}}}function Fh(e,i,l){this.line=i,this.rest=fb(i),this.size=this.rest?re(lt(this.rest))-l+1:1,this.node=this.text=null,this.hidden=Ur(e,i)}function El(e,i,l){for(var s=[],c,d=i;d<l;d=c){var v=new Fh(e.doc,At(e.doc,d),d);c=d+v.size,s.push(v)}return s}var no=null;function xb(e){no?no.ops.push(e):e.ownsGroup=no={ops:[e],delayedCallbacks:[]}}function _b(e){var i=e.delayedCallbacks,l=0;do{for(;l<i.length;l++)i[l].call(null);for(var s=0;s<e.ops.length;s++){var c=e.ops[s];if(c.cursorActivityHandlers)for(;c.cursorActivityCalled<c.cursorActivityHandlers.length;)c.cursorActivityHandlers[c.cursorActivityCalled++].call(null,c.cm)}}while(l<i.length)}function Sb(e,i){var l=e.ownsGroup;if(!!l)try{_b(l)}finally{no=null,i(l)}}var is=null;function Oe(e,i){var l=Zo(e,i);if(!!l.length){var s=Array.prototype.slice.call(arguments,2),c;no?c=no.delayedCallbacks:is?c=is:(c=is=[],setTimeout(kb,0));for(var d=function(y){c.push(function(){return l[y].apply(null,s)})},v=0;v<l.length;++v)d(v)}}function kb(){var e=is;is=null;for(var i=0;i<e.length;++i)e[i]()}function qh(e,i,l,s){for(var c=0;c<i.changes.length;c++){var d=i.changes[c];d=="text"?Tb(e,i):d=="gutter"?Bh(e,i,l,s):d=="class"?Ac(e,i):d=="widget"&&Lb(e,i,s)}i.changes=null}function os(e){return e.node==e.text&&(e.node=k("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),p&&g<8&&(e.node.style.zIndex=2)),e.node}function Cb(e,i){var l=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(l&&(l+=" CodeMirror-linebackground"),i.background)l?i.background.className=l:(i.background.parentNode.removeChild(i.background),i.background=null);else if(l){var s=os(i);i.background=s.insertBefore(k("div",null,l),s.firstChild),e.display.input.setUneditable(i.background)}}function Hh(e,i){var l=e.display.externalMeasured;return l&&l.line==i.line?(e.display.externalMeasured=null,i.measure=l.measure,l.built):zh(e,i)}function Tb(e,i){var l=i.text.className,s=Hh(e,i);i.text==i.node&&(i.node=s.pre),i.text.parentNode.replaceChild(s.pre,i.text),i.text=s.pre,s.bgClass!=i.bgClass||s.textClass!=i.textClass?(i.bgClass=s.bgClass,i.textClass=s.textClass,Ac(e,i)):l&&(i.text.className=l)}function Ac(e,i){Cb(e,i),i.line.wrapClass?os(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var l=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=l||""}function Bh(e,i,l,s){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 c=os(i);i.gutterBackground=k("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(e.options.fixedGutter?s.fixedPos:-s.gutterTotalWidth)+"px; width: "+s.gutterTotalWidth+"px"),e.display.input.setUneditable(i.gutterBackground),c.insertBefore(i.gutterBackground,i.text)}var d=i.line.gutterMarkers;if(e.options.lineNumbers||d){var v=os(i),y=i.gutter=k("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?s.fixedPos:-s.gutterTotalWidth)+"px");if(y.setAttribute("aria-hidden","true"),e.display.input.setUneditable(y),v.insertBefore(y,i.text),i.line.gutterClass&&(y.className+=" "+i.line.gutterClass),e.options.lineNumbers&&(!d||!d["CodeMirror-linenumbers"])&&(i.lineNumber=y.appendChild(k("div",$(e.options,l),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+s.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),d)for(var w=0;w<e.display.gutterSpecs.length;++w){var _=e.display.gutterSpecs[w].className,M=d.hasOwnProperty(_)&&d[_];M&&y.appendChild(k("div",[M],"CodeMirror-gutter-elt","left: "+s.gutterLeft[_]+"px; width: "+s.gutterWidth[_]+"px"))}}}function Lb(e,i,l){i.alignable&&(i.alignable=null);for(var s=kt("CodeMirror-linewidget"),c=i.node.firstChild,d=void 0;c;c=d)d=c.nextSibling,s.test(c.className)&&i.node.removeChild(c);Wh(e,i,l)}function Eb(e,i,l,s){var c=Hh(e,i);return i.text=i.node=c.pre,c.bgClass&&(i.bgClass=c.bgClass),c.textClass&&(i.textClass=c.textClass),Ac(e,i),Bh(e,i,l,s),Wh(e,i,s),i.node}function Wh(e,i,l){if(Uh(e,i.line,i,l,!0),i.rest)for(var s=0;s<i.rest.length;s++)Uh(e,i.rest[s],i,l,!1)}function Uh(e,i,l,s,c){if(!!i.widgets)for(var d=os(l),v=0,y=i.widgets;v<y.length;++v){var w=y[v],_=k("div",[w.node],"CodeMirror-linewidget"+(w.className?" "+w.className:""));w.handleMouseEvents||_.setAttribute("cm-ignore-events","true"),Ab(w,_,l,s),e.display.input.setUneditable(_),c&&w.above?d.insertBefore(_,l.gutter||l.text):d.appendChild(_),Oe(w,"redraw")}}function Ab(e,i,l,s){if(e.noHScroll){(l.alignable||(l.alignable=[])).push(i);var c=s.wrapperWidth;i.style.left=s.fixedPos+"px",e.coverGutter||(c-=s.gutterTotalWidth,i.style.paddingLeft=s.gutterTotalWidth+"px"),i.style.width=c+"px"}e.coverGutter&&(i.style.zIndex=5,i.style.position="relative",e.noHScroll||(i.style.marginLeft=-s.gutterTotalWidth+"px"))}function ss(e){if(e.height!=null)return e.height;var i=e.doc.cm;if(!i)return 0;if(!et(document.body,e.node)){var l="position: relative;";e.coverGutter&&(l+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),e.noHScroll&&(l+="width: "+i.display.wrapper.clientWidth+"px;"),I(i.display.measure,k("div",[e.node],null,l))}return e.height=e.node.parentNode.offsetHeight}function _r(e,i){for(var l=rn(i);l!=e.wrapper;l=l.parentNode)if(!l||l.nodeType==1&&l.getAttribute("cm-ignore-events")=="true"||l.parentNode==e.sizer&&l!=e.mover)return!0}function Al(e){return e.lineSpace.offsetTop}function Mc(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function jh(e){if(e.cachedPaddingH)return e.cachedPaddingH;var i=I(e.measure,k("pre","x","CodeMirror-line-like")),l=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,s={left:parseInt(l.paddingLeft),right:parseInt(l.paddingRight)};return!isNaN(s.left)&&!isNaN(s.right)&&(e.cachedPaddingH=s),s}function er(e){return de-e.display.nativeBarWidth}function bi(e){return e.display.scroller.clientWidth-er(e)-e.display.barWidth}function Nc(e){return e.display.scroller.clientHeight-er(e)-e.display.barHeight}function Mb(e,i,l){var s=e.options.lineWrapping,c=s&&bi(e);if(!i.measure.heights||s&&i.measure.width!=c){var d=i.measure.heights=[];if(s){i.measure.width=c;for(var v=i.text.firstChild.getClientRects(),y=0;y<v.length-1;y++){var w=v[y],_=v[y+1];Math.abs(w.bottom-_.bottom)>2&&d.push((w.bottom+_.top)/2-l.top)}}d.push(l.bottom-l.top)}}function Gh(e,i,l){if(e.line==i)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var s=0;s<e.rest.length;s++)if(e.rest[s]==i)return{map:e.measure.maps[s],cache:e.measure.caches[s]};for(var c=0;c<e.rest.length;c++)if(re(e.rest[c])>l)return{map:e.measure.maps[c],cache:e.measure.caches[c],before:!0}}}function Nb(e,i){i=qn(i);var l=re(i),s=e.display.externalMeasured=new Fh(e.doc,i,l);s.lineN=l;var c=s.built=zh(e,s);return s.text=c.pre,I(e.display.lineMeasure,c.pre),s}function Vh(e,i,l,s){return nr(e,ro(e,i),l,s)}function Pc(e,i){if(i>=e.display.viewFrom&&i<e.display.viewTo)return e.display.view[_i(e,i)];var l=e.display.externalMeasured;if(l&&i>=l.lineN&&i<l.lineN+l.size)return l}function ro(e,i){var l=re(i),s=Pc(e,l);s&&!s.text?s=null:s&&s.changes&&(qh(e,s,l,zc(e)),e.curOp.forceUpdate=!0),s||(s=Nb(e,i));var c=Gh(s,i,l);return{line:i,view:s,rect:null,map:c.map,cache:c.cache,before:c.before,hasHeights:!1}}function nr(e,i,l,s,c){i.before&&(l=-1);var d=l+(s||""),v;return i.cache.hasOwnProperty(d)?v=i.cache[d]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(Mb(e,i.view,i.rect),i.hasHeights=!0),v=Ob(e,i,l,s),v.bogus||(i.cache[d]=v)),{left:v.left,right:v.right,top:c?v.rtop:v.top,bottom:c?v.rbottom:v.bottom}}var Kh={left:0,right:0,top:0,bottom:0};function Xh(e,i,l){for(var s,c,d,v,y,w,_=0;_<e.length;_+=3)if(y=e[_],w=e[_+1],i<y?(c=0,d=1,v="left"):i<w?(c=i-y,d=c+1):(_==e.length-3||i==w&&e[_+3]>i)&&(d=w-y,c=d-1,i>=w&&(v="right")),c!=null){if(s=e[_+2],y==w&&l==(s.insertLeft?"left":"right")&&(v=l),l=="left"&&c==0)for(;_&&e[_-2]==e[_-3]&&e[_-1].insertLeft;)s=e[(_-=3)+2],v="left";if(l=="right"&&c==w-y)for(;_<e.length-3&&e[_+3]==e[_+4]&&!e[_+5].insertLeft;)s=e[(_+=3)+2],v="right";break}return{node:s,start:c,end:d,collapse:v,coverStart:y,coverEnd:w}}function Pb(e,i){var l=Kh;if(i=="left")for(var s=0;s<e.length&&(l=e[s]).left==l.right;s++);else for(var c=e.length-1;c>=0&&(l=e[c]).left==l.right;c--);return l}function Ob(e,i,l,s){var c=Xh(i.map,l,s),d=c.node,v=c.start,y=c.end,w=c.collapse,_;if(d.nodeType==3){for(var M=0;M<4;M++){for(;v&&Qt(i.line.text.charAt(c.coverStart+v));)--v;for(;c.coverStart+y<c.coverEnd&&Qt(i.line.text.charAt(c.coverStart+y));)++y;if(p&&g<9&&v==0&&y==c.coverEnd-c.coverStart?_=d.parentNode.getBoundingClientRect():_=Pb(W(d,v,y).getClientRects(),s),_.left||_.right||v==0)break;y=v,v=v-1,w="right"}p&&g<11&&(_=$b(e.display.measure,_))}else{v>0&&(w=s="right");var O;e.options.lineWrapping&&(O=d.getClientRects()).length>1?_=O[s=="right"?O.length-1:0]:_=d.getBoundingClientRect()}if(p&&g<9&&!v&&(!_||!_.left&&!_.right)){var B=d.parentNode.getClientRects()[0];B?_={left:B.left,right:B.left+oo(e.display),top:B.top,bottom:B.bottom}:_=Kh}for(var q=_.top-i.rect.top,X=_.bottom-i.rect.top,rt=(q+X)/2,ct=i.view.measure.heights,mt=0;mt<ct.length-1&&!(rt<ct[mt]);mt++);var _t=mt?ct[mt-1]:0,yt=ct[mt],Tt={left:(w=="right"?_.right:_.left)-i.rect.left,right:(w=="left"?_.left:_.right)-i.rect.left,top:_t,bottom:yt};return!_.left&&!_.right&&(Tt.bogus=!0),e.options.singleCursorHeightPerLine||(Tt.rtop=q,Tt.rbottom=X),Tt}function $b(e,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!bl(e))return i;var l=screen.logicalXDPI/screen.deviceXDPI,s=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*l,right:i.right*l,top:i.top*s,bottom:i.bottom*s}}function Yh(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var i=0;i<e.rest.length;i++)e.measure.caches[i]={}}function Zh(e){e.display.externalMeasure=null,U(e.display.lineMeasure);for(var i=0;i<e.display.view.length;i++)Yh(e.display.view[i])}function ls(e){Zh(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Qh(e){return x&&z?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function Jh(e){return x&&z?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function Oc(e){var i=qn(e),l=i.widgets,s=0;if(l)for(var c=0;c<l.length;++c)l[c].above&&(s+=ss(l[c]));return s}function Ml(e,i,l,s,c){if(!c){var d=Oc(i);l.top+=d,l.bottom+=d}if(s=="line")return l;s||(s="local");var v=xr(i);if(s=="local"?v+=Al(e.display):v-=e.display.viewOffset,s=="page"||s=="window"){var y=e.display.lineSpace.getBoundingClientRect();v+=y.top+(s=="window"?0:Jh(Gt(e)));var w=y.left+(s=="window"?0:Qh(Gt(e)));l.left+=w,l.right+=w}return l.top+=v,l.bottom+=v,l}function td(e,i,l){if(l=="div")return i;var s=i.left,c=i.top;if(l=="page")s-=Qh(Gt(e)),c-=Jh(Gt(e));else if(l=="local"||!l){var d=e.display.sizer.getBoundingClientRect();s+=d.left,c+=d.top}var v=e.display.lineSpace.getBoundingClientRect();return{left:s-v.left,top:c-v.top}}function Nl(e,i,l,s,c){return s||(s=At(e.doc,i.line)),Ml(e,s,Vh(e,s,i.ch,c),l)}function Hn(e,i,l,s,c,d){s=s||At(e.doc,i.line),c||(c=ro(e,s));function v(X,rt){var ct=nr(e,c,X,rt?"right":"left",d);return rt?ct.left=ct.right:ct.right=ct.left,Ml(e,s,ct,l)}var y=be(s,e.doc.direction),w=i.ch,_=i.sticky;if(w>=s.text.length?(w=s.text.length,_="before"):w<=0&&(w=0,_="after"),!y)return v(_=="before"?w-1:w,_=="before");function M(X,rt,ct){var mt=y[rt],_t=mt.level==1;return v(ct?X-1:X,_t!=ct)}var O=qe(y,w,_),B=Ln,q=M(w,O,_=="before");return B!=null&&(q.other=M(w,B,_!="before")),q}function ed(e,i){var l=0;i=Ft(e.doc,i),e.options.lineWrapping||(l=oo(e.display)*i.ch);var s=At(e.doc,i.line),c=xr(s)+Al(e.display);return{left:l,right:l,top:c,bottom:c+s.height}}function $c(e,i,l,s,c){var d=R(e,i,l);return d.xRel=c,s&&(d.outside=s),d}function Dc(e,i,l){var s=e.doc;if(l+=e.display.viewOffset,l<0)return $c(s.first,0,null,-1,-1);var c=Jn(s,l),d=s.first+s.size-1;if(c>d)return $c(s.first+s.size-1,At(s,d).text.length,null,1,1);i<0&&(i=0);for(var v=At(s,c);;){var y=Db(e,v,c,i,l),w=cb(v,y.ch+(y.xRel>0||y.outside>0?1:0));if(!w)return y;var _=w.find(1);if(_.line==c)return _;v=At(s,c=_.line)}}function nd(e,i,l,s){s-=Oc(i);var c=i.text.length,d=Xt(function(v){return nr(e,l,v-1).bottom<=s},c,0);return c=Xt(function(v){return nr(e,l,v).top>s},d,c),{begin:d,end:c}}function rd(e,i,l,s){l||(l=ro(e,i));var c=Ml(e,i,nr(e,l,s),"line").top;return nd(e,i,l,c)}function Rc(e,i,l,s){return e.bottom<=l?!1:e.top>l?!0:(s?e.left:e.right)>i}function Db(e,i,l,s,c){c-=xr(i);var d=ro(e,i),v=Oc(i),y=0,w=i.text.length,_=!0,M=be(i,e.doc.direction);if(M){var O=(e.options.lineWrapping?zb:Rb)(e,i,l,d,M,s,c);_=O.level!=1,y=_?O.from:O.to-1,w=_?O.to:O.from-1}var B=null,q=null,X=Xt(function(Dt){var Pt=nr(e,d,Dt);return Pt.top+=v,Pt.bottom+=v,Rc(Pt,s,c,!1)?(Pt.top<=c&&Pt.left<=s&&(B=Dt,q=Pt),!0):!1},y,w),rt,ct,mt=!1;if(q){var _t=s-q.left<q.right-s,yt=_t==_;X=B+(yt?0:1),ct=yt?"after":"before",rt=_t?q.left:q.right}else{!_&&(X==w||X==y)&&X++,ct=X==0?"after":X==i.text.length?"before":nr(e,d,X-(_?1:0)).bottom+v<=c==_?"after":"before";var Tt=Hn(e,R(l,X,ct),"line",i,d);rt=Tt.left,mt=c<Tt.top?-1:c>=Tt.bottom?1:0}return X=se(i.text,X,1),$c(l,X,ct,mt,s-rt)}function Rb(e,i,l,s,c,d,v){var y=Xt(function(O){var B=c[O],q=B.level!=1;return Rc(Hn(e,R(l,q?B.to:B.from,q?"before":"after"),"line",i,s),d,v,!0)},0,c.length-1),w=c[y];if(y>0){var _=w.level!=1,M=Hn(e,R(l,_?w.from:w.to,_?"after":"before"),"line",i,s);Rc(M,d,v,!0)&&M.top>v&&(w=c[y-1])}return w}function zb(e,i,l,s,c,d,v){var y=nd(e,i,s,v),w=y.begin,_=y.end;/\s/.test(i.text.charAt(_-1))&&_--;for(var M=null,O=null,B=0;B<c.length;B++){var q=c[B];if(!(q.from>=_||q.to<=w)){var X=q.level!=1,rt=nr(e,s,X?Math.min(_,q.to)-1:Math.max(w,q.from)).right,ct=rt<d?d-rt+1e9:rt-d;(!M||O>ct)&&(M=q,O=ct)}}return M||(M=c[c.length-1]),M.from<w&&(M={from:w,to:M.to,level:M.level}),M.to>_&&(M={from:M.from,to:_,level:M.level}),M}var wi;function io(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(wi==null){wi=k("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)wi.appendChild(document.createTextNode("x")),wi.appendChild(k("br"));wi.appendChild(document.createTextNode("x"))}I(e.measure,wi);var l=wi.offsetHeight/50;return l>3&&(e.cachedTextHeight=l),U(e.measure),l||1}function oo(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var i=k("span","xxxxxxxxxx"),l=k("pre",[i],"CodeMirror-line-like");I(e.measure,l);var s=i.getBoundingClientRect(),c=(s.right-s.left)/10;return c>2&&(e.cachedCharWidth=c),c||10}function zc(e){for(var i=e.display,l={},s={},c=i.gutters.clientLeft,d=i.gutters.firstChild,v=0;d;d=d.nextSibling,++v){var y=e.display.gutterSpecs[v].className;l[y]=d.offsetLeft+d.clientLeft+c,s[y]=d.clientWidth}return{fixedPos:Ic(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:l,gutterWidth:s,wrapperWidth:i.wrapper.clientWidth}}function Ic(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function id(e){var i=io(e.display),l=e.options.lineWrapping,s=l&&Math.max(5,e.display.scroller.clientWidth/oo(e.display)-3);return function(c){if(Ur(e.doc,c))return 0;var d=0;if(c.widgets)for(var v=0;v<c.widgets.length;v++)c.widgets[v].height&&(d+=c.widgets[v].height);return l?d+(Math.ceil(c.text.length/s)||1)*i:d+i}}function Fc(e){var i=e.doc,l=id(e);i.iter(function(s){var c=l(s);c!=s.height&&Dn(s,c)})}function xi(e,i,l,s){var c=e.display;if(!l&&rn(i).getAttribute("cm-not-content")=="true")return null;var d,v,y=c.lineSpace.getBoundingClientRect();try{d=i.clientX-y.left,v=i.clientY-y.top}catch{return null}var w=Dc(e,d,v),_;if(s&&w.xRel>0&&(_=At(e.doc,w.line).text).length==w.ch){var M=V(_,_.length,e.options.tabSize)-_.length;w=R(w.line,Math.max(0,Math.round((d-jh(e.display).left)/oo(e.display))-M))}return w}function _i(e,i){if(i>=e.display.viewTo||(i-=e.display.viewFrom,i<0))return null;for(var l=e.display.view,s=0;s<l.length;s++)if(i-=l[s].size,i<0)return s}function on(e,i,l,s){i==null&&(i=e.doc.first),l==null&&(l=e.doc.first+e.doc.size),s||(s=0);var c=e.display;if(s&&l<c.viewTo&&(c.updateLineNumbers==null||c.updateLineNumbers>i)&&(c.updateLineNumbers=i),e.curOp.viewChanged=!0,i>=c.viewTo)wr&&Tc(e.doc,i)<c.viewTo&&Gr(e);else if(l<=c.viewFrom)wr&&Dh(e.doc,l+s)>c.viewFrom?Gr(e):(c.viewFrom+=s,c.viewTo+=s);else if(i<=c.viewFrom&&l>=c.viewTo)Gr(e);else if(i<=c.viewFrom){var d=Pl(e,l,l+s,1);d?(c.view=c.view.slice(d.index),c.viewFrom=d.lineN,c.viewTo+=s):Gr(e)}else if(l>=c.viewTo){var v=Pl(e,i,i,-1);v?(c.view=c.view.slice(0,v.index),c.viewTo=v.lineN):Gr(e)}else{var y=Pl(e,i,i,-1),w=Pl(e,l,l+s,1);y&&w?(c.view=c.view.slice(0,y.index).concat(El(e,y.lineN,w.lineN)).concat(c.view.slice(w.index)),c.viewTo+=s):Gr(e)}var _=c.externalMeasured;_&&(l<_.lineN?_.lineN+=s:i<_.lineN+_.size&&(c.externalMeasured=null))}function jr(e,i,l){e.curOp.viewChanged=!0;var s=e.display,c=e.display.externalMeasured;if(c&&i>=c.lineN&&i<c.lineN+c.size&&(s.externalMeasured=null),!(i<s.viewFrom||i>=s.viewTo)){var d=s.view[_i(e,i)];if(d.node!=null){var v=d.changes||(d.changes=[]);Ct(v,l)==-1&&v.push(l)}}}function Gr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Pl(e,i,l,s){var c=_i(e,i),d,v=e.display.view;if(!wr||l==e.doc.first+e.doc.size)return{index:c,lineN:l};for(var y=e.display.viewFrom,w=0;w<c;w++)y+=v[w].size;if(y!=i){if(s>0){if(c==v.length-1)return null;d=y+v[c].size-i,c++}else d=y-i;i+=d,l+=d}for(;Tc(e.doc,l)!=l;){if(c==(s<0?0:v.length-1))return null;l+=s*v[c-(s<0?1:0)].size,c+=s}return{index:c,lineN:l}}function Ib(e,i,l){var s=e.display,c=s.view;c.length==0||i>=s.viewTo||l<=s.viewFrom?(s.view=El(e,i,l),s.viewFrom=i):(s.viewFrom>i?s.view=El(e,i,s.viewFrom).concat(s.view):s.viewFrom<i&&(s.view=s.view.slice(_i(e,i))),s.viewFrom=i,s.viewTo<l?s.view=s.view.concat(El(e,s.viewTo,l)):s.viewTo>l&&(s.view=s.view.slice(0,_i(e,l)))),s.viewTo=l}function od(e){for(var i=e.display.view,l=0,s=0;s<i.length;s++){var c=i[s];!c.hidden&&(!c.node||c.changes)&&++l}return l}function as(e){e.display.input.showSelection(e.display.input.prepareSelection())}function sd(e,i){i===void 0&&(i=!0);var l=e.doc,s={},c=s.cursors=document.createDocumentFragment(),d=s.selection=document.createDocumentFragment(),v=e.options.$customCursor;v&&(i=!0);for(var y=0;y<l.sel.ranges.length;y++)if(!(!i&&y==l.sel.primIndex)){var w=l.sel.ranges[y];if(!(w.from().line>=e.display.viewTo||w.to().line<e.display.viewFrom)){var _=w.empty();if(v){var M=v(e,w);M&&qc(e,M,c)}else(_||e.options.showCursorWhenSelecting)&&qc(e,w.head,c);_||Fb(e,w,d)}}return s}function qc(e,i,l){var s=Hn(e,i,"div",null,null,!e.options.singleCursorHeightPerLine),c=l.appendChild(k("div","\xA0","CodeMirror-cursor"));if(c.style.left=s.left+"px",c.style.top=s.top+"px",c.style.height=Math.max(0,s.bottom-s.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var d=Nl(e,i,"div",null,null),v=d.right-d.left;c.style.width=(v>0?v:e.defaultCharWidth())+"px"}if(s.other){var y=l.appendChild(k("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));y.style.display="",y.style.left=s.other.left+"px",y.style.top=s.other.top+"px",y.style.height=(s.other.bottom-s.other.top)*.85+"px"}}function Ol(e,i){return e.top-i.top||e.left-i.left}function Fb(e,i,l){var s=e.display,c=e.doc,d=document.createDocumentFragment(),v=jh(e.display),y=v.left,w=Math.max(s.sizerWidth,bi(e)-s.sizer.offsetLeft)-v.right,_=c.direction=="ltr";function M(yt,Tt,Dt,Pt){Tt<0&&(Tt=0),Tt=Math.round(Tt),Pt=Math.round(Pt),d.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+yt+`px;
12
+ top: `+Tt+"px; width: "+(Dt==null?w-yt:Dt)+`px;
13
+ height: `+(Pt-Tt)+"px"))}function O(yt,Tt,Dt){var Pt=At(c,yt),Ut=Pt.text.length,pe,Re;function _e(Ee,an){return Nl(e,R(yt,Ee),"div",Pt,an)}function wn(Ee,an,He){var Pe=rd(e,Pt,null,Ee),Ae=an=="ltr"==(He=="after")?"left":"right",Ce=He=="after"?Pe.begin:Pe.end-(/\s/.test(Pt.text.charAt(Pe.end-1))?2:1);return _e(Ce,Ae)[Ae]}var ln=be(Pt,c.direction);return mn(ln,Tt||0,Dt==null?Ut:Dt,function(Ee,an,He,Pe){var Ae=He=="ltr",Ce=_e(Ee,Ae?"left":"right"),cn=_e(an-1,Ae?"right":"left"),bo=Tt==null&&Ee==0,Qr=Dt==null&&an==Ut,Ke=Pe==0,rr=!ln||Pe==ln.length-1;if(cn.top-Ce.top<=3){var ze=(_?bo:Qr)&&Ke,hu=(_?Qr:bo)&&rr,Cr=ze?y:(Ae?Ce:cn).left,Li=hu?w:(Ae?cn:Ce).right;M(Cr,Ce.top,Li-Cr,Ce.bottom)}else{var Ei,Je,wo,du;Ae?(Ei=_&&bo&&Ke?y:Ce.left,Je=_?w:wn(Ee,He,"before"),wo=_?y:wn(an,He,"after"),du=_&&Qr&&rr?w:cn.right):(Ei=_?wn(Ee,He,"before"):y,Je=!_&&bo&&Ke?w:Ce.right,wo=!_&&Qr&&rr?y:cn.left,du=_?wn(an,He,"after"):w),M(Ei,Ce.top,Je-Ei,Ce.bottom),Ce.bottom<cn.top&&M(y,Ce.bottom,null,cn.top),M(wo,cn.top,du-wo,cn.bottom)}(!pe||Ol(Ce,pe)<0)&&(pe=Ce),Ol(cn,pe)<0&&(pe=cn),(!Re||Ol(Ce,Re)<0)&&(Re=Ce),Ol(cn,Re)<0&&(Re=cn)}),{start:pe,end:Re}}var B=i.from(),q=i.to();if(B.line==q.line)O(B.line,B.ch,q.ch);else{var X=At(c,B.line),rt=At(c,q.line),ct=qn(X)==qn(rt),mt=O(B.line,B.ch,ct?X.text.length+1:null).end,_t=O(q.line,ct?0:null,q.ch).start;ct&&(mt.top<_t.top-2?(M(mt.right,mt.top,null,mt.bottom),M(y,_t.top,_t.left,_t.bottom)):M(mt.right,mt.top,_t.left-mt.right,mt.bottom)),mt.bottom<_t.top&&M(y,mt.bottom,null,_t.top)}l.appendChild(d)}function Hc(e){if(!!e.state.focused){var i=e.display;clearInterval(i.blinker);var l=!0;i.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?i.blinker=setInterval(function(){e.hasFocus()||so(e),i.cursorDiv.style.visibility=(l=!l)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function ld(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Wc(e))}function Bc(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&so(e))},100)}function Wc(e,i){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(ve(e,"focus",e,i),e.state.focused=!0,Et(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),m&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Hc(e))}function so(e,i){e.state.delayingBlurEvent||(e.state.focused&&(ve(e,"blur",e,i),e.state.focused=!1,ft(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function $l(e){for(var i=e.display,l=i.lineDiv.offsetTop,s=Math.max(0,i.scroller.getBoundingClientRect().top),c=i.lineDiv.getBoundingClientRect().top,d=0,v=0;v<i.view.length;v++){var y=i.view[v],w=e.options.lineWrapping,_=void 0,M=0;if(!y.hidden){if(c+=y.line.height,p&&g<8){var O=y.node.offsetTop+y.node.offsetHeight;_=O-l,l=O}else{var B=y.node.getBoundingClientRect();_=B.bottom-B.top,!w&&y.text.firstChild&&(M=y.text.firstChild.getBoundingClientRect().right-B.left-1)}var q=y.line.height-_;if((q>.005||q<-.005)&&(c<s&&(d-=q),Dn(y.line,_),ad(y.line),y.rest))for(var X=0;X<y.rest.length;X++)ad(y.rest[X]);if(M>e.display.sizerWidth){var rt=Math.ceil(M/oo(e.display));rt>e.display.maxLineLength&&(e.display.maxLineLength=rt,e.display.maxLine=y.line,e.display.maxLineChanged=!0)}}}Math.abs(d)>2&&(i.scroller.scrollTop+=d)}function ad(e){if(e.widgets)for(var i=0;i<e.widgets.length;++i){var l=e.widgets[i],s=l.node.parentNode;s&&(l.height=s.offsetHeight)}}function Dl(e,i,l){var s=l&&l.top!=null?Math.max(0,l.top):e.scroller.scrollTop;s=Math.floor(s-Al(e));var c=l&&l.bottom!=null?l.bottom:s+e.wrapper.clientHeight,d=Jn(i,s),v=Jn(i,c);if(l&&l.ensure){var y=l.ensure.from.line,w=l.ensure.to.line;y<d?(d=y,v=Jn(i,xr(At(i,y))+e.wrapper.clientHeight)):Math.min(w,i.lastLine())>=v&&(d=Jn(i,xr(At(i,w))-e.wrapper.clientHeight),v=w)}return{from:d,to:Math.max(v,d+1)}}function qb(e,i){if(!Se(e,"scrollCursorIntoView")){var l=e.display,s=l.sizer.getBoundingClientRect(),c=null,d=l.wrapper.ownerDocument;if(i.top+s.top<0?c=!0:i.bottom+s.top>(d.defaultView.innerHeight||d.documentElement.clientHeight)&&(c=!1),c!=null&&!C){var v=k("div","\u200B",null,`position: absolute;
14
+ top: `+(i.top-l.viewOffset-Al(e.display))+`px;
15
+ height: `+(i.bottom-i.top+er(e)+l.barHeight)+`px;
16
+ left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");e.display.lineSpace.appendChild(v),v.scrollIntoView(c),e.display.lineSpace.removeChild(v)}}}function Hb(e,i,l,s){s==null&&(s=0);var c;!e.options.lineWrapping&&i==l&&(l=i.sticky=="before"?R(i.line,i.ch+1,"before"):i,i=i.ch?R(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var d=0;d<5;d++){var v=!1,y=Hn(e,i),w=!l||l==i?y:Hn(e,l);c={left:Math.min(y.left,w.left),top:Math.min(y.top,w.top)-s,right:Math.max(y.left,w.left),bottom:Math.max(y.bottom,w.bottom)+s};var _=Uc(e,c),M=e.doc.scrollTop,O=e.doc.scrollLeft;if(_.scrollTop!=null&&(us(e,_.scrollTop),Math.abs(e.doc.scrollTop-M)>1&&(v=!0)),_.scrollLeft!=null&&(Si(e,_.scrollLeft),Math.abs(e.doc.scrollLeft-O)>1&&(v=!0)),!v)break}return c}function Bb(e,i){var l=Uc(e,i);l.scrollTop!=null&&us(e,l.scrollTop),l.scrollLeft!=null&&Si(e,l.scrollLeft)}function Uc(e,i){var l=e.display,s=io(e.display);i.top<0&&(i.top=0);var c=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:l.scroller.scrollTop,d=Nc(e),v={};i.bottom-i.top>d&&(i.bottom=i.top+d);var y=e.doc.height+Mc(l),w=i.top<s,_=i.bottom>y-s;if(i.top<c)v.scrollTop=w?0:i.top;else if(i.bottom>c+d){var M=Math.min(i.top,(_?y:i.bottom)-d);M!=c&&(v.scrollTop=M)}var O=e.options.fixedGutter?0:l.gutters.offsetWidth,B=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:l.scroller.scrollLeft-O,q=bi(e)-l.gutters.offsetWidth,X=i.right-i.left>q;return X&&(i.right=i.left+q),i.left<10?v.scrollLeft=0:i.left<B?v.scrollLeft=Math.max(0,i.left+O-(X?0:10)):i.right>q+B-3&&(v.scrollLeft=i.right+(X?0:10)-q),v}function jc(e,i){i!=null&&(Rl(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+i)}function lo(e){Rl(e);var i=e.getCursor();e.curOp.scrollToPos={from:i,to:i,margin:e.options.cursorScrollMargin}}function cs(e,i,l){(i!=null||l!=null)&&Rl(e),i!=null&&(e.curOp.scrollLeft=i),l!=null&&(e.curOp.scrollTop=l)}function Wb(e,i){Rl(e),e.curOp.scrollToPos=i}function Rl(e){var i=e.curOp.scrollToPos;if(i){e.curOp.scrollToPos=null;var l=ed(e,i.from),s=ed(e,i.to);cd(e,l,s,i.margin)}}function cd(e,i,l,s){var c=Uc(e,{left:Math.min(i.left,l.left),top:Math.min(i.top,l.top)-s,right:Math.max(i.right,l.right),bottom:Math.max(i.bottom,l.bottom)+s});cs(e,c.scrollLeft,c.scrollTop)}function us(e,i){Math.abs(e.doc.scrollTop-i)<2||(a||Vc(e,{top:i}),ud(e,i,!0),a&&Vc(e),ds(e,100))}function ud(e,i,l){i=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,i)),!(e.display.scroller.scrollTop==i&&!l)&&(e.doc.scrollTop=i,e.display.scrollbars.setScrollTop(i),e.display.scroller.scrollTop!=i&&(e.display.scroller.scrollTop=i))}function Si(e,i,l,s){i=Math.max(0,Math.min(i,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((l?i==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-i)<2)&&!s)&&(e.doc.scrollLeft=i,gd(e),e.display.scroller.scrollLeft!=i&&(e.display.scroller.scrollLeft=i),e.display.scrollbars.setScrollLeft(i))}function fs(e){var i=e.display,l=i.gutters.offsetWidth,s=Math.round(e.doc.height+Mc(e.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:e.options.fixedGutter?l:0,docHeight:s,scrollHeight:s+er(e)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:l}}var ki=function(e,i,l){this.cm=l;var s=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),c=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");s.tabIndex=c.tabIndex=-1,e(s),e(c),bt(s,"scroll",function(){s.clientHeight&&i(s.scrollTop,"vertical")}),bt(c,"scroll",function(){c.clientWidth&&i(c.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,p&&g<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ki.prototype.update=function(e){var i=e.scrollWidth>e.clientWidth+1,l=e.scrollHeight>e.clientHeight+1,s=e.nativeBarWidth;if(l){this.vert.style.display="block",this.vert.style.bottom=i?s+"px":"0";var c=e.viewHeight-(i?s:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+c)+"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=l?s+"px":"0",this.horiz.style.left=e.barLeft+"px";var d=e.viewWidth-e.barLeft-(l?s:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+d)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(s==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:l?s:0,bottom:i?s:0}},ki.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ki.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ki.prototype.zeroWidthHack=function(){var e=G&&!L?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new st,this.disableVert=new st},ki.prototype.enableZeroWidthBar=function(e,i,l){e.style.visibility="";function s(){var c=e.getBoundingClientRect(),d=l=="vert"?document.elementFromPoint(c.right-1,(c.top+c.bottom)/2):document.elementFromPoint((c.right+c.left)/2,c.bottom-1);d!=e?e.style.visibility="hidden":i.set(1e3,s)}i.set(1e3,s)},ki.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var hs=function(){};hs.prototype.update=function(){return{bottom:0,right:0}},hs.prototype.setScrollLeft=function(){},hs.prototype.setScrollTop=function(){},hs.prototype.clear=function(){};function ao(e,i){i||(i=fs(e));var l=e.display.barWidth,s=e.display.barHeight;fd(e,i);for(var c=0;c<4&&l!=e.display.barWidth||s!=e.display.barHeight;c++)l!=e.display.barWidth&&e.options.lineWrapping&&$l(e),fd(e,fs(e)),l=e.display.barWidth,s=e.display.barHeight}function fd(e,i){var l=e.display,s=l.scrollbars.update(i);l.sizer.style.paddingRight=(l.barWidth=s.right)+"px",l.sizer.style.paddingBottom=(l.barHeight=s.bottom)+"px",l.heightForcer.style.borderBottom=s.bottom+"px solid transparent",s.right&&s.bottom?(l.scrollbarFiller.style.display="block",l.scrollbarFiller.style.height=s.bottom+"px",l.scrollbarFiller.style.width=s.right+"px"):l.scrollbarFiller.style.display="",s.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(l.gutterFiller.style.display="block",l.gutterFiller.style.height=s.bottom+"px",l.gutterFiller.style.width=i.gutterWidth+"px"):l.gutterFiller.style.display=""}var hd={native:ki,null:hs};function dd(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ft(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new hd[e.options.scrollbarStyle](function(i){e.display.wrapper.insertBefore(i,e.display.scrollbarFiller),bt(i,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,l){l=="horizontal"?Si(e,i):us(e,i)},e),e.display.scrollbars.addClass&&Et(e.display.wrapper,e.display.scrollbars.addClass)}var Ub=0;function Ci(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ub,markArrays:null},xb(e.curOp)}function Ti(e){var i=e.curOp;i&&Sb(i,function(l){for(var s=0;s<l.ops.length;s++)l.ops[s].cm.curOp=null;jb(l)})}function jb(e){for(var i=e.ops,l=0;l<i.length;l++)Gb(i[l]);for(var s=0;s<i.length;s++)Vb(i[s]);for(var c=0;c<i.length;c++)Kb(i[c]);for(var d=0;d<i.length;d++)Xb(i[d]);for(var v=0;v<i.length;v++)Yb(i[v])}function Gb(e){var i=e.cm,l=i.display;Qb(i),e.updateMaxLine&&Ec(i),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<l.viewFrom||e.scrollToPos.to.line>=l.viewTo)||l.maxLineChanged&&i.options.lineWrapping,e.update=e.mustUpdate&&new zl(i,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Vb(e){e.updatedDisplay=e.mustUpdate&&Gc(e.cm,e.update)}function Kb(e){var i=e.cm,l=i.display;e.updatedDisplay&&$l(i),e.barMeasure=fs(i),l.maxLineChanged&&!i.options.lineWrapping&&(e.adjustWidthTo=Vh(i,l.maxLine,l.maxLine.text.length).left+3,i.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(l.scroller.clientWidth,l.sizer.offsetLeft+e.adjustWidthTo+er(i)+i.display.barWidth),e.maxScrollLeft=Math.max(0,l.sizer.offsetLeft+e.adjustWidthTo-bi(i))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=l.input.prepareSelection())}function Xb(e){var i=e.cm;e.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<i.doc.scrollLeft&&Si(i,Math.min(i.display.scroller.scrollLeft,e.maxScrollLeft),!0),i.display.maxLineChanged=!1);var l=e.focus&&e.focus==wt(Gt(i));e.preparedSelection&&i.display.input.showSelection(e.preparedSelection,l),(e.updatedDisplay||e.startHeight!=i.doc.height)&&ao(i,e.barMeasure),e.updatedDisplay&&Xc(i,e.barMeasure),e.selectionChanged&&Hc(i),i.state.focused&&e.updateInput&&i.display.input.reset(e.typing),l&&ld(e.cm)}function Yb(e){var i=e.cm,l=i.display,s=i.doc;if(e.updatedDisplay&&pd(i,e.update),l.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(l.wheelStartX=l.wheelStartY=null),e.scrollTop!=null&&ud(i,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Si(i,e.scrollLeft,!0,!0),e.scrollToPos){var c=Hb(i,Ft(s,e.scrollToPos.from),Ft(s,e.scrollToPos.to),e.scrollToPos.margin);qb(i,c)}var d=e.maybeHiddenMarkers,v=e.maybeUnhiddenMarkers;if(d)for(var y=0;y<d.length;++y)d[y].lines.length||ve(d[y],"hide");if(v)for(var w=0;w<v.length;++w)v[w].lines.length&&ve(v[w],"unhide");l.wrapper.offsetHeight&&(s.scrollTop=i.display.scroller.scrollTop),e.changeObjs&&ve(i,"changes",i,e.changeObjs),e.update&&e.update.finish()}function bn(e,i){if(e.curOp)return i();Ci(e);try{return i()}finally{Ti(e)}}function $e(e,i){return function(){if(e.curOp)return i.apply(e,arguments);Ci(e);try{return i.apply(e,arguments)}finally{Ti(e)}}}function Qe(e){return function(){if(this.curOp)return e.apply(this,arguments);Ci(this);try{return e.apply(this,arguments)}finally{Ti(this)}}}function De(e){return function(){var i=this.cm;if(!i||i.curOp)return e.apply(this,arguments);Ci(i);try{return e.apply(this,arguments)}finally{Ti(i)}}}function ds(e,i){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(i,Q(Zb,e))}function Zb(e){var i=e.doc;if(!(i.highlightFrontier>=e.display.viewTo)){var l=+new Date+e.options.workTime,s=ns(e,i.highlightFrontier),c=[];i.iter(s.line,Math.min(i.first+i.size,e.display.viewTo+500),function(d){if(s.line>=e.display.viewFrom){var v=d.styles,y=d.text.length>e.options.maxHighlightLength?yr(i.mode,s.state):null,w=xh(e,d,s,!0);y&&(s.state=y),d.styles=w.styles;var _=d.styleClasses,M=w.classes;M?d.styleClasses=M:_&&(d.styleClasses=null);for(var O=!v||v.length!=d.styles.length||_!=M&&(!_||!M||_.bgClass!=M.bgClass||_.textClass!=M.textClass),B=0;!O&&B<v.length;++B)O=v[B]!=d.styles[B];O&&c.push(s.line),d.stateAfter=s.save(),s.nextLine()}else d.text.length<=e.options.maxHighlightLength&&_c(e,d.text,s),d.stateAfter=s.line%5==0?s.save():null,s.nextLine();if(+new Date>l)return ds(e,e.options.workDelay),!0}),i.highlightFrontier=s.line,i.modeFrontier=Math.max(i.modeFrontier,s.line),c.length&&bn(e,function(){for(var d=0;d<c.length;d++)jr(e,c[d],"text")})}}var zl=function(e,i,l){var s=e.display;this.viewport=i,this.visible=Dl(s,e.doc,i),this.editorIsHidden=!s.wrapper.offsetWidth,this.wrapperHeight=s.wrapper.clientHeight,this.wrapperWidth=s.wrapper.clientWidth,this.oldDisplayWidth=bi(e),this.force=l,this.dims=zc(e),this.events=[]};zl.prototype.signal=function(e,i){Ye(e,i)&&this.events.push(arguments)},zl.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ve.apply(null,this.events[e])};function Qb(e){var i=e.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=er(e)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=er(e)+"px",i.scrollbarsClipped=!0)}function Jb(e){if(e.hasFocus())return null;var i=wt(Gt(e));if(!i||!et(e.display.lineDiv,i))return null;var l={activeElt:i};if(window.getSelection){var s=ne(e).getSelection();s.anchorNode&&s.extend&&et(e.display.lineDiv,s.anchorNode)&&(l.anchorNode=s.anchorNode,l.anchorOffset=s.anchorOffset,l.focusNode=s.focusNode,l.focusOffset=s.focusOffset)}return l}function tw(e){if(!(!e||!e.activeElt||e.activeElt==wt(e.activeElt.ownerDocument))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&et(document.body,e.anchorNode)&&et(document.body,e.focusNode))){var i=e.activeElt.ownerDocument,l=i.defaultView.getSelection(),s=i.createRange();s.setEnd(e.anchorNode,e.anchorOffset),s.collapse(!1),l.removeAllRanges(),l.addRange(s),l.extend(e.focusNode,e.focusOffset)}}function Gc(e,i){var l=e.display,s=e.doc;if(i.editorIsHidden)return Gr(e),!1;if(!i.force&&i.visible.from>=l.viewFrom&&i.visible.to<=l.viewTo&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo)&&l.renderedView==l.view&&od(e)==0)return!1;vd(e)&&(Gr(e),i.dims=zc(e));var c=s.first+s.size,d=Math.max(i.visible.from-e.options.viewportMargin,s.first),v=Math.min(c,i.visible.to+e.options.viewportMargin);l.viewFrom<d&&d-l.viewFrom<20&&(d=Math.max(s.first,l.viewFrom)),l.viewTo>v&&l.viewTo-v<20&&(v=Math.min(c,l.viewTo)),wr&&(d=Tc(e.doc,d),v=Dh(e.doc,v));var y=d!=l.viewFrom||v!=l.viewTo||l.lastWrapHeight!=i.wrapperHeight||l.lastWrapWidth!=i.wrapperWidth;Ib(e,d,v),l.viewOffset=xr(At(e.doc,l.viewFrom)),e.display.mover.style.top=l.viewOffset+"px";var w=od(e);if(!y&&w==0&&!i.force&&l.renderedView==l.view&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo))return!1;var _=Jb(e);return w>4&&(l.lineDiv.style.display="none"),ew(e,l.updateLineNumbers,i.dims),w>4&&(l.lineDiv.style.display=""),l.renderedView=l.view,tw(_),U(l.cursorDiv),U(l.selectionDiv),l.gutters.style.height=l.sizer.style.minHeight=0,y&&(l.lastWrapHeight=i.wrapperHeight,l.lastWrapWidth=i.wrapperWidth,ds(e,400)),l.updateLineNumbers=null,!0}function pd(e,i){for(var l=i.viewport,s=!0;;s=!1){if(!s||!e.options.lineWrapping||i.oldDisplayWidth==bi(e)){if(l&&l.top!=null&&(l={top:Math.min(e.doc.height+Mc(e.display)-Nc(e),l.top)}),i.visible=Dl(e.display,e.doc,l),i.visible.from>=e.display.viewFrom&&i.visible.to<=e.display.viewTo)break}else s&&(i.visible=Dl(e.display,e.doc,l));if(!Gc(e,i))break;$l(e);var c=fs(e);as(e),ao(e,c),Xc(e,c),i.force=!1}i.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(i.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Vc(e,i){var l=new zl(e,i);if(Gc(e,l)){$l(e),pd(e,l);var s=fs(e);as(e),ao(e,s),Xc(e,s),l.finish()}}function ew(e,i,l){var s=e.display,c=e.options.lineNumbers,d=s.lineDiv,v=d.firstChild;function y(X){var rt=X.nextSibling;return m&&G&&e.display.currentWheelTarget==X?X.style.display="none":X.parentNode.removeChild(X),rt}for(var w=s.view,_=s.viewFrom,M=0;M<w.length;M++){var O=w[M];if(!O.hidden)if(!O.node||O.node.parentNode!=d){var B=Eb(e,O,_,l);d.insertBefore(B,v)}else{for(;v!=O.node;)v=y(v);var q=c&&i!=null&&i<=_&&O.lineNumber;O.changes&&(Ct(O.changes,"gutter")>-1&&(q=!1),qh(e,O,_,l)),q&&(U(O.lineNumber),O.lineNumber.appendChild(document.createTextNode($(e.options,_)))),v=O.node.nextSibling}_+=O.size}for(;v;)v=y(v)}function Kc(e){var i=e.gutters.offsetWidth;e.sizer.style.marginLeft=i+"px",Oe(e,"gutterChanged",e)}function Xc(e,i){e.display.sizer.style.minHeight=i.docHeight+"px",e.display.heightForcer.style.top=i.docHeight+"px",e.display.gutters.style.height=i.docHeight+e.display.barHeight+er(e)+"px"}function gd(e){var i=e.display,l=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!e.options.fixedGutter))){for(var s=Ic(i)-i.scroller.scrollLeft+e.doc.scrollLeft,c=i.gutters.offsetWidth,d=s+"px",v=0;v<l.length;v++)if(!l[v].hidden){e.options.fixedGutter&&(l[v].gutter&&(l[v].gutter.style.left=d),l[v].gutterBackground&&(l[v].gutterBackground.style.left=d));var y=l[v].alignable;if(y)for(var w=0;w<y.length;w++)y[w].style.left=d}e.options.fixedGutter&&(i.gutters.style.left=s+c+"px")}}function vd(e){if(!e.options.lineNumbers)return!1;var i=e.doc,l=$(e.options,i.first+i.size-1),s=e.display;if(l.length!=s.lineNumChars){var c=s.measure.appendChild(k("div",[k("div",l)],"CodeMirror-linenumber CodeMirror-gutter-elt")),d=c.firstChild.offsetWidth,v=c.offsetWidth-d;return s.lineGutter.style.width="",s.lineNumInnerWidth=Math.max(d,s.lineGutter.offsetWidth-v)+1,s.lineNumWidth=s.lineNumInnerWidth+v,s.lineNumChars=s.lineNumInnerWidth?l.length:-1,s.lineGutter.style.width=s.lineNumWidth+"px",Kc(e.display),!0}return!1}function Yc(e,i){for(var l=[],s=!1,c=0;c<e.length;c++){var d=e[c],v=null;if(typeof d!="string"&&(v=d.style,d=d.className),d=="CodeMirror-linenumbers")if(i)s=!0;else continue;l.push({className:d,style:v})}return i&&!s&&l.push({className:"CodeMirror-linenumbers",style:null}),l}function md(e){var i=e.gutters,l=e.gutterSpecs;U(i),e.lineGutter=null;for(var s=0;s<l.length;++s){var c=l[s],d=c.className,v=c.style,y=i.appendChild(k("div",null,"CodeMirror-gutter "+d));v&&(y.style.cssText=v),d=="CodeMirror-linenumbers"&&(e.lineGutter=y,y.style.width=(e.lineNumWidth||1)+"px")}i.style.display=l.length?"":"none",Kc(e)}function ps(e){md(e.display),on(e),gd(e)}function nw(e,i,l,s){var c=this;this.input=l,c.scrollbarFiller=k("div",null,"CodeMirror-scrollbar-filler"),c.scrollbarFiller.setAttribute("cm-not-content","true"),c.gutterFiller=k("div",null,"CodeMirror-gutter-filler"),c.gutterFiller.setAttribute("cm-not-content","true"),c.lineDiv=H("div",null,"CodeMirror-code"),c.selectionDiv=k("div",null,null,"position: relative; z-index: 1"),c.cursorDiv=k("div",null,"CodeMirror-cursors"),c.measure=k("div",null,"CodeMirror-measure"),c.lineMeasure=k("div",null,"CodeMirror-measure"),c.lineSpace=H("div",[c.measure,c.lineMeasure,c.selectionDiv,c.cursorDiv,c.lineDiv],null,"position: relative; outline: none");var d=H("div",[c.lineSpace],"CodeMirror-lines");c.mover=k("div",[d],null,"position: relative"),c.sizer=k("div",[c.mover],"CodeMirror-sizer"),c.sizerWidth=null,c.heightForcer=k("div",null,null,"position: absolute; height: "+de+"px; width: 1px;"),c.gutters=k("div",null,"CodeMirror-gutters"),c.lineGutter=null,c.scroller=k("div",[c.sizer,c.heightForcer,c.gutters],"CodeMirror-scroll"),c.scroller.setAttribute("tabIndex","-1"),c.wrapper=k("div",[c.scrollbarFiller,c.gutterFiller,c.scroller],"CodeMirror"),x&&S>=105&&(c.wrapper.style.clipPath="inset(0px)"),c.wrapper.setAttribute("translate","no"),p&&g<8&&(c.gutters.style.zIndex=-1,c.scroller.style.paddingRight=0),!m&&!(a&&D)&&(c.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(c.wrapper):e(c.wrapper)),c.viewFrom=c.viewTo=i.first,c.reportedViewFrom=c.reportedViewTo=i.first,c.view=[],c.renderedView=null,c.externalMeasured=null,c.viewOffset=0,c.lastWrapHeight=c.lastWrapWidth=0,c.updateLineNumbers=null,c.nativeBarWidth=c.barHeight=c.barWidth=0,c.scrollbarsClipped=!1,c.lineNumWidth=c.lineNumInnerWidth=c.lineNumChars=null,c.alignWidgets=!1,c.cachedCharWidth=c.cachedTextHeight=c.cachedPaddingH=null,c.maxLine=null,c.maxLineLength=0,c.maxLineChanged=!1,c.wheelDX=c.wheelDY=c.wheelStartX=c.wheelStartY=null,c.shift=!1,c.selForContextMenu=null,c.activeTouch=null,c.gutterSpecs=Yc(s.gutters,s.lineNumbers),md(c),l.init(c)}var Il=0,Sr=null;p?Sr=-.53:a?Sr=15:x?Sr=-.7:A&&(Sr=-1/3);function yd(e){var i=e.wheelDeltaX,l=e.wheelDeltaY;return i==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(i=e.detail),l==null&&e.detail&&e.axis==e.VERTICAL_AXIS?l=e.detail:l==null&&(l=e.wheelDelta),{x:i,y:l}}function rw(e){var i=yd(e);return i.x*=Sr,i.y*=Sr,i}function bd(e,i){x&&S==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var l=yd(i),s=l.x,c=l.y,d=Sr;i.deltaMode===0&&(s=i.deltaX,c=i.deltaY,d=1);var v=e.display,y=v.scroller,w=y.scrollWidth>y.clientWidth,_=y.scrollHeight>y.clientHeight;if(!!(s&&w||c&&_)){if(c&&G&&m){t:for(var M=i.target,O=v.view;M!=y;M=M.parentNode)for(var B=0;B<O.length;B++)if(O[B].node==M){e.display.currentWheelTarget=M;break t}}if(s&&!a&&!N&&d!=null){c&&_&&us(e,Math.max(0,y.scrollTop+c*d)),Si(e,Math.max(0,y.scrollLeft+s*d)),(!c||c&&_)&&Ge(i),v.wheelStartX=null;return}if(c&&d!=null){var q=c*d,X=e.doc.scrollTop,rt=X+v.wrapper.clientHeight;q<0?X=Math.max(0,X+q-50):rt=Math.min(e.doc.height,rt+q+50),Vc(e,{top:X,bottom:rt})}Il<20&&i.deltaMode!==0&&(v.wheelStartX==null?(v.wheelStartX=y.scrollLeft,v.wheelStartY=y.scrollTop,v.wheelDX=s,v.wheelDY=c,setTimeout(function(){if(v.wheelStartX!=null){var ct=y.scrollLeft-v.wheelStartX,mt=y.scrollTop-v.wheelStartY,_t=mt&&v.wheelDY&&mt/v.wheelDY||ct&&v.wheelDX&&ct/v.wheelDX;v.wheelStartX=v.wheelStartY=null,_t&&(Sr=(Sr*Il+_t)/(Il+1),++Il)}},200)):(v.wheelDX+=s,v.wheelDY+=c))}}var An=function(e,i){this.ranges=e,this.primIndex=i};An.prototype.primary=function(){return this.ranges[this.primIndex]},An.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var l=this.ranges[i],s=e.ranges[i];if(!It(l.anchor,s.anchor)||!It(l.head,s.head))return!1}return!0},An.prototype.deepCopy=function(){for(var e=[],i=0;i<this.ranges.length;i++)e[i]=new ie(Vt(this.ranges[i].anchor),Vt(this.ranges[i].head));return new An(e,this.primIndex)},An.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},An.prototype.contains=function(e,i){i||(i=e);for(var l=0;l<this.ranges.length;l++){var s=this.ranges[l];if(K(i,s.from())>=0&&K(e,s.to())<=0)return l}return-1};var ie=function(e,i){this.anchor=e,this.head=i};ie.prototype.from=function(){return Ne(this.anchor,this.head)},ie.prototype.to=function(){return ee(this.anchor,this.head)},ie.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Bn(e,i,l){var s=e&&e.options.selectionsMayTouch,c=i[l];i.sort(function(B,q){return K(B.from(),q.from())}),l=Ct(i,c);for(var d=1;d<i.length;d++){var v=i[d],y=i[d-1],w=K(y.to(),v.from());if(s&&!v.empty()?w>0:w>=0){var _=Ne(y.from(),v.from()),M=ee(y.to(),v.to()),O=y.empty()?v.from()==v.head:y.from()==y.head;d<=l&&--l,i.splice(--d,2,new ie(O?M:_,O?_:M))}}return new An(i,l)}function Vr(e,i){return new An([new ie(e,i||e)],0)}function Kr(e){return e.text?R(e.from.line+e.text.length-1,lt(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function wd(e,i){if(K(e,i.from)<0)return e;if(K(e,i.to)<=0)return Kr(i);var l=e.line+i.text.length-(i.to.line-i.from.line)-1,s=e.ch;return e.line==i.to.line&&(s+=Kr(i).ch-i.to.ch),R(l,s)}function Zc(e,i){for(var l=[],s=0;s<e.sel.ranges.length;s++){var c=e.sel.ranges[s];l.push(new ie(wd(c.anchor,i),wd(c.head,i)))}return Bn(e.cm,l,e.sel.primIndex)}function xd(e,i,l){return e.line==i.line?R(l.line,e.ch-i.ch+l.ch):R(l.line+(e.line-i.line),e.ch)}function iw(e,i,l){for(var s=[],c=R(e.first,0),d=c,v=0;v<i.length;v++){var y=i[v],w=xd(y.from,c,d),_=xd(Kr(y),c,d);if(c=y.to,d=_,l=="around"){var M=e.sel.ranges[v],O=K(M.head,M.anchor)<0;s[v]=new ie(O?_:w,O?w:_)}else s[v]=new ie(w,w)}return new An(s,e.sel.primIndex)}function Qc(e){e.doc.mode=mr(e.options,e.doc.modeOption),gs(e)}function gs(e){e.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ds(e,100),e.state.modeGen++,e.curOp&&on(e)}function _d(e,i){return i.from.ch==0&&i.to.ch==0&&lt(i.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Jc(e,i,l,s){function c(_t){return l?l[_t]:null}function d(_t,yt,Tt){hb(_t,yt,Tt,s),Oe(_t,"change",_t,i)}function v(_t,yt){for(var Tt=[],Dt=_t;Dt<yt;++Dt)Tt.push(new eo(_[Dt],c(Dt),s));return Tt}var y=i.from,w=i.to,_=i.text,M=At(e,y.line),O=At(e,w.line),B=lt(_),q=c(_.length-1),X=w.line-y.line;if(i.full)e.insert(0,v(0,_.length)),e.remove(_.length,e.size-_.length);else if(_d(e,i)){var rt=v(0,_.length-1);d(O,O.text,q),X&&e.remove(y.line,X),rt.length&&e.insert(y.line,rt)}else if(M==O)if(_.length==1)d(M,M.text.slice(0,y.ch)+B+M.text.slice(w.ch),q);else{var ct=v(1,_.length-1);ct.push(new eo(B+M.text.slice(w.ch),q,s)),d(M,M.text.slice(0,y.ch)+_[0],c(0)),e.insert(y.line+1,ct)}else if(_.length==1)d(M,M.text.slice(0,y.ch)+_[0]+O.text.slice(w.ch),c(0)),e.remove(y.line+1,X);else{d(M,M.text.slice(0,y.ch)+_[0],c(0)),d(O,B+O.text.slice(w.ch),q);var mt=v(1,_.length-1);X>1&&e.remove(y.line+1,X-1),e.insert(y.line+1,mt)}Oe(e,"change",e,i)}function Xr(e,i,l){function s(c,d,v){if(c.linked)for(var y=0;y<c.linked.length;++y){var w=c.linked[y];if(w.doc!=d){var _=v&&w.sharedHist;l&&!_||(i(w.doc,_),s(w.doc,c,_))}}}s(e,null,!0)}function Sd(e,i){if(i.cm)throw new Error("This document is already in use.");e.doc=i,i.cm=e,Fc(e),Qc(e),kd(e),e.options.direction=i.direction,e.options.lineWrapping||Ec(e),e.options.mode=i.modeOption,on(e)}function kd(e){(e.doc.direction=="rtl"?Et:ft)(e.display.lineDiv,"CodeMirror-rtl")}function ow(e){bn(e,function(){kd(e),on(e)})}function Fl(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function tu(e,i){var l={from:Vt(i.from),to:Kr(i),text:br(e,i.from,i.to)};return Ld(e,l,i.from.line,i.to.line+1),Xr(e,function(s){return Ld(s,l,i.from.line,i.to.line+1)},!0),l}function Cd(e){for(;e.length;){var i=lt(e);if(i.ranges)e.pop();else break}}function sw(e,i){if(i)return Cd(e.done),lt(e.done);if(e.done.length&&!lt(e.done).ranges)return lt(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),lt(e.done)}function Td(e,i,l,s){var c=e.history;c.undone.length=0;var d=+new Date,v,y;if((c.lastOp==s||c.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&c.lastModTime>d-(e.cm?e.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(v=sw(c,c.lastOp==s)))y=lt(v.changes),K(i.from,i.to)==0&&K(i.from,y.to)==0?y.to=Kr(i):v.changes.push(tu(e,i));else{var w=lt(c.done);for((!w||!w.ranges)&&ql(e.sel,c.done),v={changes:[tu(e,i)],generation:c.generation},c.done.push(v);c.done.length>c.undoDepth;)c.done.shift(),c.done[0].ranges||c.done.shift()}c.done.push(l),c.generation=++c.maxGeneration,c.lastModTime=c.lastSelTime=d,c.lastOp=c.lastSelOp=s,c.lastOrigin=c.lastSelOrigin=i.origin,y||ve(e,"historyAdded")}function lw(e,i,l,s){var c=i.charAt(0);return c=="*"||c=="+"&&l.ranges.length==s.ranges.length&&l.somethingSelected()==s.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function aw(e,i,l,s){var c=e.history,d=s&&s.origin;l==c.lastSelOp||d&&c.lastSelOrigin==d&&(c.lastModTime==c.lastSelTime&&c.lastOrigin==d||lw(e,d,lt(c.done),i))?c.done[c.done.length-1]=i:ql(i,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=d,c.lastSelOp=l,s&&s.clearRedo!==!1&&Cd(c.undone)}function ql(e,i){var l=lt(i);l&&l.ranges&&l.equals(e)||i.push(e)}function Ld(e,i,l,s){var c=i["spans_"+e.id],d=0;e.iter(Math.max(e.first,l),Math.min(e.first+e.size,s),function(v){v.markedSpans&&((c||(c=i["spans_"+e.id]={}))[d]=v.markedSpans),++d})}function cw(e){if(!e)return null;for(var i,l=0;l<e.length;++l)e[l].marker.explicitlyCleared?i||(i=e.slice(0,l)):i&&i.push(e[l]);return i?i.length?i:null:e}function uw(e,i){var l=i["spans_"+e.id];if(!l)return null;for(var s=[],c=0;c<i.text.length;++c)s.push(cw(l[c]));return s}function Ed(e,i){var l=uw(e,i),s=kc(e,i);if(!l)return s;if(!s)return l;for(var c=0;c<l.length;++c){var d=l[c],v=s[c];if(d&&v){t:for(var y=0;y<v.length;++y){for(var w=v[y],_=0;_<d.length;++_)if(d[_].marker==w.marker)continue t;d.push(w)}}else v&&(l[c]=v)}return l}function co(e,i,l){for(var s=[],c=0;c<e.length;++c){var d=e[c];if(d.ranges){s.push(l?An.prototype.deepCopy.call(d):d);continue}var v=d.changes,y=[];s.push({changes:y});for(var w=0;w<v.length;++w){var _=v[w],M=void 0;if(y.push({from:_.from,to:_.to,text:_.text}),i)for(var O in _)(M=O.match(/^spans_(\d+)$/))&&Ct(i,Number(M[1]))>-1&&(lt(y)[O]=_[O],delete _[O])}}return s}function eu(e,i,l,s){if(s){var c=e.anchor;if(l){var d=K(i,c)<0;d!=K(l,c)<0?(c=i,i=l):d!=K(i,l)<0&&(i=l)}return new ie(c,i)}else return new ie(l||i,i)}function Hl(e,i,l,s,c){c==null&&(c=e.cm&&(e.cm.display.shift||e.extend)),Ve(e,new An([eu(e.sel.primary(),i,l,c)],0),s)}function Ad(e,i,l){for(var s=[],c=e.cm&&(e.cm.display.shift||e.extend),d=0;d<e.sel.ranges.length;d++)s[d]=eu(e.sel.ranges[d],i[d],null,c);var v=Bn(e.cm,s,e.sel.primIndex);Ve(e,v,l)}function nu(e,i,l,s){var c=e.sel.ranges.slice(0);c[i]=l,Ve(e,Bn(e.cm,c,e.sel.primIndex),s)}function Md(e,i,l,s){Ve(e,Vr(i,l),s)}function fw(e,i,l){var s={ranges:i.ranges,update:function(c){this.ranges=[];for(var d=0;d<c.length;d++)this.ranges[d]=new ie(Ft(e,c[d].anchor),Ft(e,c[d].head))},origin:l&&l.origin};return ve(e,"beforeSelectionChange",e,s),e.cm&&ve(e.cm,"beforeSelectionChange",e.cm,s),s.ranges!=i.ranges?Bn(e.cm,s.ranges,s.ranges.length-1):i}function Nd(e,i,l){var s=e.history.done,c=lt(s);c&&c.ranges?(s[s.length-1]=i,Bl(e,i,l)):Ve(e,i,l)}function Ve(e,i,l){Bl(e,i,l),aw(e,e.sel,e.cm?e.cm.curOp.id:NaN,l)}function Bl(e,i,l){(Ye(e,"beforeSelectionChange")||e.cm&&Ye(e.cm,"beforeSelectionChange"))&&(i=fw(e,i,l));var s=l&&l.bias||(K(i.primary().head,e.sel.primary().head)<0?-1:1);Pd(e,$d(e,i,s,!0)),!(l&&l.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&lo(e.cm)}function Pd(e,i){i.equals(e.sel)||(e.sel=i,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,ml(e.cm)),Oe(e,"cursorActivity",e))}function Od(e){Pd(e,$d(e,e.sel,null,!1))}function $d(e,i,l,s){for(var c,d=0;d<i.ranges.length;d++){var v=i.ranges[d],y=i.ranges.length==e.sel.ranges.length&&e.sel.ranges[d],w=Wl(e,v.anchor,y&&y.anchor,l,s),_=v.head==v.anchor?w:Wl(e,v.head,y&&y.head,l,s);(c||w!=v.anchor||_!=v.head)&&(c||(c=i.ranges.slice(0,d)),c[d]=new ie(w,_))}return c?Bn(e.cm,c,i.primIndex):i}function uo(e,i,l,s,c){var d=At(e,i.line);if(d.markedSpans)for(var v=0;v<d.markedSpans.length;++v){var y=d.markedSpans[v],w=y.marker,_="selectLeft"in w?!w.selectLeft:w.inclusiveLeft,M="selectRight"in w?!w.selectRight:w.inclusiveRight;if((y.from==null||(_?y.from<=i.ch:y.from<i.ch))&&(y.to==null||(M?y.to>=i.ch:y.to>i.ch))){if(c&&(ve(w,"beforeCursorEnter"),w.explicitlyCleared))if(d.markedSpans){--v;continue}else break;if(!w.atomic)continue;if(l){var O=w.find(s<0?1:-1),B=void 0;if((s<0?M:_)&&(O=Dd(e,O,-s,O&&O.line==i.line?d:null)),O&&O.line==i.line&&(B=K(O,l))&&(s<0?B<0:B>0))return uo(e,O,i,s,c)}var q=w.find(s<0?-1:1);return(s<0?_:M)&&(q=Dd(e,q,s,q.line==i.line?d:null)),q?uo(e,q,i,s,c):null}}return i}function Wl(e,i,l,s,c){var d=s||1,v=uo(e,i,l,d,c)||!c&&uo(e,i,l,d,!0)||uo(e,i,l,-d,c)||!c&&uo(e,i,l,-d,!0);return v||(e.cantEdit=!0,R(e.first,0))}function Dd(e,i,l,s){return l<0&&i.ch==0?i.line>e.first?Ft(e,R(i.line-1)):null:l>0&&i.ch==(s||At(e,i.line)).text.length?i.line<e.first+e.size-1?R(i.line+1,0):null:new R(i.line,i.ch+l)}function Rd(e){e.setSelection(R(e.firstLine(),0),R(e.lastLine()),P)}function zd(e,i,l){var s={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return s.canceled=!0}};return l&&(s.update=function(c,d,v,y){c&&(s.from=Ft(e,c)),d&&(s.to=Ft(e,d)),v&&(s.text=v),y!==void 0&&(s.origin=y)}),ve(e,"beforeChange",e,s),e.cm&&ve(e.cm,"beforeChange",e.cm,s),s.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:s.from,to:s.to,text:s.text,origin:s.origin}}function fo(e,i,l){if(e.cm){if(!e.cm.curOp)return $e(e.cm,fo)(e,i,l);if(e.cm.state.suppressEdits)return}if(!((Ye(e,"beforeChange")||e.cm&&Ye(e.cm,"beforeChange"))&&(i=zd(e,i,!0),!i))){var s=Eh&&!l&&ab(e,i.from,i.to);if(s)for(var c=s.length-1;c>=0;--c)Id(e,{from:s[c].from,to:s[c].to,text:c?[""]:i.text,origin:i.origin});else Id(e,i)}}function Id(e,i){if(!(i.text.length==1&&i.text[0]==""&&K(i.from,i.to)==0)){var l=Zc(e,i);Td(e,i,l,e.cm?e.cm.curOp.id:NaN),vs(e,i,l,kc(e,i));var s=[];Xr(e,function(c,d){!d&&Ct(s,c.history)==-1&&(Bd(c.history,i),s.push(c.history)),vs(c,i,null,kc(c,i))})}}function Ul(e,i,l){var s=e.cm&&e.cm.state.suppressEdits;if(!(s&&!l)){for(var c=e.history,d,v=e.sel,y=i=="undo"?c.done:c.undone,w=i=="undo"?c.undone:c.done,_=0;_<y.length&&(d=y[_],!(l?d.ranges&&!d.equals(e.sel):!d.ranges));_++);if(_!=y.length){for(c.lastOrigin=c.lastSelOrigin=null;;)if(d=y.pop(),d.ranges){if(ql(d,w),l&&!d.equals(e.sel)){Ve(e,d,{clearRedo:!1});return}v=d}else if(s){y.push(d);return}else break;var M=[];ql(v,w),w.push({changes:M,generation:c.generation}),c.generation=d.generation||++c.maxGeneration;for(var O=Ye(e,"beforeChange")||e.cm&&Ye(e.cm,"beforeChange"),B=function(rt){var ct=d.changes[rt];if(ct.origin=i,O&&!zd(e,ct,!1))return y.length=0,{};M.push(tu(e,ct));var mt=rt?Zc(e,ct):lt(y);vs(e,ct,mt,Ed(e,ct)),!rt&&e.cm&&e.cm.scrollIntoView({from:ct.from,to:Kr(ct)});var _t=[];Xr(e,function(yt,Tt){!Tt&&Ct(_t,yt.history)==-1&&(Bd(yt.history,ct),_t.push(yt.history)),vs(yt,ct,null,Ed(yt,ct))})},q=d.changes.length-1;q>=0;--q){var X=B(q);if(X)return X.v}}}}function Fd(e,i){if(i!=0&&(e.first+=i,e.sel=new An(gt(e.sel.ranges,function(c){return new ie(R(c.anchor.line+i,c.anchor.ch),R(c.head.line+i,c.head.ch))}),e.sel.primIndex),e.cm)){on(e.cm,e.first,e.first-i,i);for(var l=e.cm.display,s=l.viewFrom;s<l.viewTo;s++)jr(e.cm,s,"gutter")}}function vs(e,i,l,s){if(e.cm&&!e.cm.curOp)return $e(e.cm,vs)(e,i,l,s);if(i.to.line<e.first){Fd(e,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>e.lastLine())){if(i.from.line<e.first){var c=i.text.length-1-(e.first-i.from.line);Fd(e,c),i={from:R(e.first,0),to:R(i.to.line+c,i.to.ch),text:[lt(i.text)],origin:i.origin}}var d=e.lastLine();i.to.line>d&&(i={from:i.from,to:R(d,At(e,d).text.length),text:[i.text[0]],origin:i.origin}),i.removed=br(e,i.from,i.to),l||(l=Zc(e,i)),e.cm?hw(e.cm,i,s):Jc(e,i,s),Bl(e,l,P),e.cantEdit&&Wl(e,R(e.firstLine(),0))&&(e.cantEdit=!1)}}function hw(e,i,l){var s=e.doc,c=e.display,d=i.from,v=i.to,y=!1,w=d.line;e.options.lineWrapping||(w=re(qn(At(s,d.line))),s.iter(w,v.line+1,function(q){if(q==c.maxLine)return y=!0,!0})),s.sel.contains(i.from,i.to)>-1&&ml(e),Jc(s,i,l,id(e)),e.options.lineWrapping||(s.iter(w,d.line+i.text.length,function(q){var X=Ll(q);X>c.maxLineLength&&(c.maxLine=q,c.maxLineLength=X,c.maxLineChanged=!0,y=!1)}),y&&(e.curOp.updateMaxLine=!0)),eb(s,d.line),ds(e,400);var _=i.text.length-(v.line-d.line)-1;i.full?on(e):d.line==v.line&&i.text.length==1&&!_d(e.doc,i)?jr(e,d.line,"text"):on(e,d.line,v.line+1,_);var M=Ye(e,"changes"),O=Ye(e,"change");if(O||M){var B={from:d,to:v,text:i.text,removed:i.removed,origin:i.origin};O&&Oe(e,"change",e,B),M&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(B)}e.display.selForContextMenu=null}function ho(e,i,l,s,c){var d;s||(s=l),K(s,l)<0&&(d=[s,l],l=d[0],s=d[1]),typeof i=="string"&&(i=e.splitLines(i)),fo(e,{from:l,to:s,text:i,origin:c})}function qd(e,i,l,s){l<e.line?e.line+=s:i<e.line&&(e.line=i,e.ch=0)}function Hd(e,i,l,s){for(var c=0;c<e.length;++c){var d=e[c],v=!0;if(d.ranges){d.copied||(d=e[c]=d.deepCopy(),d.copied=!0);for(var y=0;y<d.ranges.length;y++)qd(d.ranges[y].anchor,i,l,s),qd(d.ranges[y].head,i,l,s);continue}for(var w=0;w<d.changes.length;++w){var _=d.changes[w];if(l<_.from.line)_.from=R(_.from.line+s,_.from.ch),_.to=R(_.to.line+s,_.to.ch);else if(i<=_.to.line){v=!1;break}}v||(e.splice(0,c+1),c=0)}}function Bd(e,i){var l=i.from.line,s=i.to.line,c=i.text.length-(s-l)-1;Hd(e.done,l,s,c),Hd(e.undone,l,s,c)}function ms(e,i,l,s){var c=i,d=i;return typeof i=="number"?d=At(e,En(e,i)):c=re(i),c==null?null:(s(d,c)&&e.cm&&jr(e.cm,c,l),d)}function ys(e){this.lines=e,this.parent=null;for(var i=0,l=0;l<e.length;++l)e[l].parent=this,i+=e[l].height;this.height=i}ys.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,i){for(var l=e,s=e+i;l<s;++l){var c=this.lines[l];this.height-=c.height,db(c),Oe(c,"delete")}this.lines.splice(e,i)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,i,l){this.height+=l,this.lines=this.lines.slice(0,e).concat(i).concat(this.lines.slice(e));for(var s=0;s<i.length;++s)i[s].parent=this},iterN:function(e,i,l){for(var s=e+i;e<s;++e)if(l(this.lines[e]))return!0}};function bs(e){this.children=e;for(var i=0,l=0,s=0;s<e.length;++s){var c=e[s];i+=c.chunkSize(),l+=c.height,c.parent=this}this.size=i,this.height=l,this.parent=null}bs.prototype={chunkSize:function(){return this.size},removeInner:function(e,i){this.size-=i;for(var l=0;l<this.children.length;++l){var s=this.children[l],c=s.chunkSize();if(e<c){var d=Math.min(i,c-e),v=s.height;if(s.removeInner(e,d),this.height-=v-s.height,c==d&&(this.children.splice(l--,1),s.parent=null),(i-=d)==0)break;e=0}else e-=c}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof ys))){var y=[];this.collapse(y),this.children=[new ys(y)],this.children[0].parent=this}},collapse:function(e){for(var i=0;i<this.children.length;++i)this.children[i].collapse(e)},insertInner:function(e,i,l){this.size+=i.length,this.height+=l;for(var s=0;s<this.children.length;++s){var c=this.children[s],d=c.chunkSize();if(e<=d){if(c.insertInner(e,i,l),c.lines&&c.lines.length>50){for(var v=c.lines.length%25+25,y=v;y<c.lines.length;){var w=new ys(c.lines.slice(y,y+=25));c.height-=w.height,this.children.splice(++s,0,w),w.parent=this}c.lines=c.lines.slice(0,v),this.maybeSpill()}break}e-=d}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var i=e.children.splice(e.children.length-5,5),l=new bs(i);if(e.parent){e.size-=l.size,e.height-=l.height;var c=Ct(e.parent.children,e);e.parent.children.splice(c+1,0,l)}else{var s=new bs(e.children);s.parent=e,e.children=[s,l],e=s}l.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,i,l){for(var s=0;s<this.children.length;++s){var c=this.children[s],d=c.chunkSize();if(e<d){var v=Math.min(i,d-e);if(c.iterN(e,v,l))return!0;if((i-=v)==0)break;e=0}else e-=d}}};var ws=function(e,i,l){if(l)for(var s in l)l.hasOwnProperty(s)&&(this[s]=l[s]);this.doc=e,this.node=i};ws.prototype.clear=function(){var e=this.doc.cm,i=this.line.widgets,l=this.line,s=re(l);if(!(s==null||!i)){for(var c=0;c<i.length;++c)i[c]==this&&i.splice(c--,1);i.length||(l.widgets=null);var d=ss(this);Dn(l,Math.max(0,l.height-d)),e&&(bn(e,function(){Wd(e,l,-d),jr(e,s,"widget")}),Oe(e,"lineWidgetCleared",e,this,s))}},ws.prototype.changed=function(){var e=this,i=this.height,l=this.doc.cm,s=this.line;this.height=null;var c=ss(this)-i;!c||(Ur(this.doc,s)||Dn(s,s.height+c),l&&bn(l,function(){l.curOp.forceUpdate=!0,Wd(l,s,c),Oe(l,"lineWidgetChanged",l,e,re(s))}))},Ze(ws);function Wd(e,i,l){xr(i)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&jc(e,l)}function dw(e,i,l,s){var c=new ws(e,l,s),d=e.cm;return d&&c.noHScroll&&(d.display.alignWidgets=!0),ms(e,i,"widget",function(v){var y=v.widgets||(v.widgets=[]);if(c.insertAt==null?y.push(c):y.splice(Math.min(y.length,Math.max(0,c.insertAt)),0,c),c.line=v,d&&!Ur(e,v)){var w=xr(v)<e.scrollTop;Dn(v,v.height+ss(c)),w&&jc(d,c.height),d.curOp.forceUpdate=!0}return!0}),d&&Oe(d,"lineWidgetAdded",d,c,typeof i=="number"?i:re(i)),c}var Ud=0,Yr=function(e,i){this.lines=[],this.type=i,this.doc=e,this.id=++Ud};Yr.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,i=e&&!e.curOp;if(i&&Ci(e),Ye(this,"clear")){var l=this.find();l&&Oe(this,"clear",l.from,l.to)}for(var s=null,c=null,d=0;d<this.lines.length;++d){var v=this.lines[d],y=rs(v.markedSpans,this);e&&!this.collapsed?jr(e,re(v),"text"):e&&(y.to!=null&&(c=re(v)),y.from!=null&&(s=re(v))),v.markedSpans=ib(v.markedSpans,y),y.from==null&&this.collapsed&&!Ur(this.doc,v)&&e&&Dn(v,io(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var w=0;w<this.lines.length;++w){var _=qn(this.lines[w]),M=Ll(_);M>e.display.maxLineLength&&(e.display.maxLine=_,e.display.maxLineLength=M,e.display.maxLineChanged=!0)}s!=null&&e&&this.collapsed&&on(e,s,c+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Od(e.doc)),e&&Oe(e,"markerCleared",e,this,s,c),i&&Ti(e),this.parent&&this.parent.clear()}},Yr.prototype.find=function(e,i){e==null&&this.type=="bookmark"&&(e=1);for(var l,s,c=0;c<this.lines.length;++c){var d=this.lines[c],v=rs(d.markedSpans,this);if(v.from!=null&&(l=R(i?d:re(d),v.from),e==-1))return l;if(v.to!=null&&(s=R(i?d:re(d),v.to),e==1))return s}return l&&{from:l,to:s}},Yr.prototype.changed=function(){var e=this,i=this.find(-1,!0),l=this,s=this.doc.cm;!i||!s||bn(s,function(){var c=i.line,d=re(i.line),v=Pc(s,d);if(v&&(Yh(v),s.curOp.selectionChanged=s.curOp.forceUpdate=!0),s.curOp.updateMaxLine=!0,!Ur(l.doc,c)&&l.height!=null){var y=l.height;l.height=null;var w=ss(l)-y;w&&Dn(c,c.height+w)}Oe(s,"markerChanged",s,e)})},Yr.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||Ct(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Yr.prototype.detachLine=function(e){if(this.lines.splice(Ct(this.lines,e),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},Ze(Yr);function po(e,i,l,s,c){if(s&&s.shared)return pw(e,i,l,s,c);if(e.cm&&!e.cm.curOp)return $e(e.cm,po)(e,i,l,s,c);var d=new Yr(e,c),v=K(i,l);if(s&&tt(s,d,!1),v>0||v==0&&d.clearWhenEmpty!==!1)return d;if(d.replacedWith&&(d.collapsed=!0,d.widgetNode=H("span",[d.replacedWith],"CodeMirror-widget"),s.handleMouseEvents||d.widgetNode.setAttribute("cm-ignore-events","true"),s.insertLeft&&(d.widgetNode.insertLeft=!0)),d.collapsed){if($h(e,i.line,i,l,d)||i.line!=l.line&&$h(e,l.line,i,l,d))throw new Error("Inserting collapsed marker partially overlapping an existing one");rb()}d.addToHistory&&Td(e,{from:i,to:l,origin:"markText"},e.sel,NaN);var y=i.line,w=e.cm,_;if(e.iter(y,l.line+1,function(O){w&&d.collapsed&&!w.options.lineWrapping&&qn(O)==w.display.maxLine&&(_=!0),d.collapsed&&y!=i.line&&Dn(O,0),ob(O,new Sl(d,y==i.line?i.ch:null,y==l.line?l.ch:null),e.cm&&e.cm.curOp),++y}),d.collapsed&&e.iter(i.line,l.line+1,function(O){Ur(e,O)&&Dn(O,0)}),d.clearOnEnter&&bt(d,"beforeCursorEnter",function(){return d.clear()}),d.readOnly&&(nb(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),d.collapsed&&(d.id=++Ud,d.atomic=!0),w){if(_&&(w.curOp.updateMaxLine=!0),d.collapsed)on(w,i.line,l.line+1);else if(d.className||d.startStyle||d.endStyle||d.css||d.attributes||d.title)for(var M=i.line;M<=l.line;M++)jr(w,M,"text");d.atomic&&Od(w.doc),Oe(w,"markerAdded",w,d)}return d}var xs=function(e,i){this.markers=e,this.primary=i;for(var l=0;l<e.length;++l)e[l].parent=this};xs.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Oe(this,"clear")}},xs.prototype.find=function(e,i){return this.primary.find(e,i)},Ze(xs);function pw(e,i,l,s,c){s=tt(s),s.shared=!1;var d=[po(e,i,l,s,c)],v=d[0],y=s.widgetNode;return Xr(e,function(w){y&&(s.widgetNode=y.cloneNode(!0)),d.push(po(w,Ft(w,i),Ft(w,l),s,c));for(var _=0;_<w.linked.length;++_)if(w.linked[_].isParent)return;v=lt(d)}),new xs(d,v)}function jd(e){return e.findMarks(R(e.first,0),e.clipPos(R(e.lastLine())),function(i){return i.parent})}function gw(e,i){for(var l=0;l<i.length;l++){var s=i[l],c=s.find(),d=e.clipPos(c.from),v=e.clipPos(c.to);if(K(d,v)){var y=po(e,d,v,s.primary,s.primary.type);s.markers.push(y),y.parent=s}}}function vw(e){for(var i=function(s){var c=e[s],d=[c.primary.doc];Xr(c.primary.doc,function(w){return d.push(w)});for(var v=0;v<c.markers.length;v++){var y=c.markers[v];Ct(d,y.doc)==-1&&(y.parent=null,c.markers.splice(v--,1))}},l=0;l<e.length;l++)i(l)}var mw=0,sn=function(e,i,l,s,c){if(!(this instanceof sn))return new sn(e,i,l,s,c);l==null&&(l=0),bs.call(this,[new ys([new eo("",null)])]),this.first=l,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=l;var d=R(l,0);this.sel=Vr(d),this.history=new Fl(null),this.id=++mw,this.modeOption=i,this.lineSep=s,this.direction=c=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),Jc(this,{from:d,to:d,text:e}),Ve(this,Vr(d),P)};sn.prototype=$t(bs.prototype,{constructor:sn,iter:function(e,i,l){l?this.iterN(e-this.first,i-e,l):this.iterN(this.first,this.first+this.size,e)},insert:function(e,i){for(var l=0,s=0;s<i.length;++s)l+=i[s].height;this.insertInner(e-this.first,i,l)},remove:function(e,i){this.removeInner(e-this.first,i)},getValue:function(e){var i=to(this,this.first,this.first+this.size);return e===!1?i:i.join(e||this.lineSeparator())},setValue:De(function(e){var i=R(this.first,0),l=this.first+this.size-1;fo(this,{from:i,to:R(l,At(this,l).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&cs(this.cm,0,0),Ve(this,Vr(i),P)}),replaceRange:function(e,i,l,s){i=Ft(this,i),l=l?Ft(this,l):i,ho(this,e,i,l,s)},getRange:function(e,i,l){var s=br(this,Ft(this,e),Ft(this,i));return l===!1?s:l===""?s.join(""):s.join(l||this.lineSeparator())},getLine:function(e){var i=this.getLineHandle(e);return i&&i.text},getLineHandle:function(e){if(T(this,e))return At(this,e)},getLineNumber:function(e){return re(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=At(this,e)),qn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return Ft(this,e)},getCursor:function(e){var i=this.sel.primary(),l;return e==null||e=="head"?l=i.head:e=="anchor"?l=i.anchor:e=="end"||e=="to"||e===!1?l=i.to():l=i.from(),l},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:De(function(e,i,l){Md(this,Ft(this,typeof e=="number"?R(e,i||0):e),null,l)}),setSelection:De(function(e,i,l){Md(this,Ft(this,e),Ft(this,i||e),l)}),extendSelection:De(function(e,i,l){Hl(this,Ft(this,e),i&&Ft(this,i),l)}),extendSelections:De(function(e,i){Ad(this,wh(this,e),i)}),extendSelectionsBy:De(function(e,i){var l=gt(this.sel.ranges,e);Ad(this,wh(this,l),i)}),setSelections:De(function(e,i,l){if(!!e.length){for(var s=[],c=0;c<e.length;c++)s[c]=new ie(Ft(this,e[c].anchor),Ft(this,e[c].head||e[c].anchor));i==null&&(i=Math.min(e.length-1,this.sel.primIndex)),Ve(this,Bn(this.cm,s,i),l)}}),addSelection:De(function(e,i,l){var s=this.sel.ranges.slice(0);s.push(new ie(Ft(this,e),Ft(this,i||e))),Ve(this,Bn(this.cm,s,s.length-1),l)}),getSelection:function(e){for(var i=this.sel.ranges,l,s=0;s<i.length;s++){var c=br(this,i[s].from(),i[s].to());l=l?l.concat(c):c}return e===!1?l:l.join(e||this.lineSeparator())},getSelections:function(e){for(var i=[],l=this.sel.ranges,s=0;s<l.length;s++){var c=br(this,l[s].from(),l[s].to());e!==!1&&(c=c.join(e||this.lineSeparator())),i[s]=c}return i},replaceSelection:function(e,i,l){for(var s=[],c=0;c<this.sel.ranges.length;c++)s[c]=e;this.replaceSelections(s,i,l||"+input")},replaceSelections:De(function(e,i,l){for(var s=[],c=this.sel,d=0;d<c.ranges.length;d++){var v=c.ranges[d];s[d]={from:v.from(),to:v.to(),text:this.splitLines(e[d]),origin:l}}for(var y=i&&i!="end"&&iw(this,s,i),w=s.length-1;w>=0;w--)fo(this,s[w]);y?Nd(this,y):this.cm&&lo(this.cm)}),undo:De(function(){Ul(this,"undo")}),redo:De(function(){Ul(this,"redo")}),undoSelection:De(function(){Ul(this,"undo",!0)}),redoSelection:De(function(){Ul(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,i=0,l=0,s=0;s<e.done.length;s++)e.done[s].ranges||++i;for(var c=0;c<e.undone.length;c++)e.undone[c].ranges||++l;return{undo:i,redo:l}},clearHistory:function(){var e=this;this.history=new Fl(this.history),Xr(this,function(i){return i.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:co(this.history.done),undone:co(this.history.undone)}},setHistory:function(e){var i=this.history=new Fl(this.history);i.done=co(e.done.slice(0),null,!0),i.undone=co(e.undone.slice(0),null,!0)},setGutterMarker:De(function(e,i,l){return ms(this,e,"gutter",function(s){var c=s.gutterMarkers||(s.gutterMarkers={});return c[i]=l,!l&&jt(c)&&(s.gutterMarkers=null),!0})}),clearGutter:De(function(e){var i=this;this.iter(function(l){l.gutterMarkers&&l.gutterMarkers[e]&&ms(i,l,"gutter",function(){return l.gutterMarkers[e]=null,jt(l.gutterMarkers)&&(l.gutterMarkers=null),!0})})}),lineInfo:function(e){var i;if(typeof e=="number"){if(!T(this,e)||(i=e,e=At(this,e),!e))return null}else if(i=re(e),i==null)return null;return{line:i,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:De(function(e,i,l){return ms(this,e,i=="gutter"?"gutter":"class",function(s){var c=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!s[c])s[c]=l;else{if(kt(l).test(s[c]))return!1;s[c]+=" "+l}return!0})}),removeLineClass:De(function(e,i,l){return ms(this,e,i=="gutter"?"gutter":"class",function(s){var c=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",d=s[c];if(d)if(l==null)s[c]=null;else{var v=d.match(kt(l));if(!v)return!1;var y=v.index+v[0].length;s[c]=d.slice(0,v.index)+(!v.index||y==d.length?"":" ")+d.slice(y)||null}else return!1;return!0})}),addLineWidget:De(function(e,i,l){return dw(this,e,i,l)}),removeLineWidget:function(e){e.clear()},markText:function(e,i,l){return po(this,Ft(this,e),Ft(this,i),l,l&&l.type||"range")},setBookmark:function(e,i){var l={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return e=Ft(this,e),po(this,e,e,l,"bookmark")},findMarksAt:function(e){e=Ft(this,e);var i=[],l=At(this,e.line).markedSpans;if(l)for(var s=0;s<l.length;++s){var c=l[s];(c.from==null||c.from<=e.ch)&&(c.to==null||c.to>=e.ch)&&i.push(c.marker.parent||c.marker)}return i},findMarks:function(e,i,l){e=Ft(this,e),i=Ft(this,i);var s=[],c=e.line;return this.iter(e.line,i.line+1,function(d){var v=d.markedSpans;if(v)for(var y=0;y<v.length;y++){var w=v[y];!(w.to!=null&&c==e.line&&e.ch>=w.to||w.from==null&&c!=e.line||w.from!=null&&c==i.line&&w.from>=i.ch)&&(!l||l(w.marker))&&s.push(w.marker.parent||w.marker)}++c}),s},getAllMarks:function(){var e=[];return this.iter(function(i){var l=i.markedSpans;if(l)for(var s=0;s<l.length;++s)l[s].from!=null&&e.push(l[s].marker)}),e},posFromIndex:function(e){var i,l=this.first,s=this.lineSeparator().length;return this.iter(function(c){var d=c.text.length+s;if(d>e)return i=e,!0;e-=d,++l}),Ft(this,R(l,i))},indexFromPos:function(e){e=Ft(this,e);var i=e.ch;if(e.line<this.first||e.ch<0)return 0;var l=this.lineSeparator().length;return this.iter(this.first,e.line,function(s){i+=s.text.length+l}),i},copy:function(e){var i=new sn(to(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,e&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(e){e||(e={});var i=this.first,l=this.first+this.size;e.from!=null&&e.from>i&&(i=e.from),e.to!=null&&e.to<l&&(l=e.to);var s=new sn(to(this,i,l),e.mode||this.modeOption,i,this.lineSep,this.direction);return e.sharedHist&&(s.history=this.history),(this.linked||(this.linked=[])).push({doc:s,sharedHist:e.sharedHist}),s.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],gw(s,jd(this)),s},unlinkDoc:function(e){if(e instanceof we&&(e=e.doc),this.linked)for(var i=0;i<this.linked.length;++i){var l=this.linked[i];if(l.doc==e){this.linked.splice(i,1),e.unlinkDoc(this),vw(jd(this));break}}if(e.history==this.history){var s=[e.id];Xr(e,function(c){return s.push(c.id)},!0),e.history=new Fl(null),e.history.done=co(this.history.done,s),e.history.undone=co(this.history.undone,s)}},iterLinkedDocs:function(e){Xr(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):ts(e)},lineSeparator:function(){return this.lineSep||`
17
+ `},setDirection:De(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(i){return i.order=null}),this.cm&&ow(this.cm))})}),sn.prototype.eachLine=sn.prototype.iter;var Gd=0;function yw(e){var i=this;if(Vd(i),!(Se(i,e)||_r(i.display,e))){Ge(e),p&&(Gd=+new Date);var l=xi(i,e,!0),s=e.dataTransfer.files;if(!(!l||i.isReadOnly()))if(s&&s.length&&window.FileReader&&window.File)for(var c=s.length,d=Array(c),v=0,y=function(){++v==c&&$e(i,function(){l=Ft(i.doc,l);var q={from:l,to:l,text:i.doc.splitLines(d.filter(function(X){return X!=null}).join(i.doc.lineSeparator())),origin:"paste"};fo(i.doc,q),Nd(i.doc,Vr(Ft(i.doc,l),Ft(i.doc,Kr(q))))})()},w=function(q,X){if(i.options.allowDropFileTypes&&Ct(i.options.allowDropFileTypes,q.type)==-1){y();return}var rt=new FileReader;rt.onerror=function(){return y()},rt.onload=function(){var ct=rt.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ct)){y();return}d[X]=ct,y()},rt.readAsText(q)},_=0;_<s.length;_++)w(s[_],_);else{if(i.state.draggingText&&i.doc.sel.contains(l)>-1){i.state.draggingText(e),setTimeout(function(){return i.display.input.focus()},20);return}try{var M=e.dataTransfer.getData("Text");if(M){var O;if(i.state.draggingText&&!i.state.draggingText.copy&&(O=i.listSelections()),Bl(i.doc,Vr(l,l)),O)for(var B=0;B<O.length;++B)ho(i.doc,"",O[B].anchor,O[B].head,"drag");i.replaceSelection(M,"around","paste"),i.display.input.focus()}}catch{}}}}function bw(e,i){if(p&&(!e.state.draggingText||+new Date-Gd<100)){vr(i);return}if(!(Se(e,i)||_r(e.display,i))&&(i.dataTransfer.setData("Text",e.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!A)){var l=k("img",null,null,"position: fixed; left: 0; top: 0;");l.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",N&&(l.width=l.height=1,e.display.wrapper.appendChild(l),l._top=l.offsetTop),i.dataTransfer.setDragImage(l,0,0),N&&l.parentNode.removeChild(l)}}function ww(e,i){var l=xi(e,i);if(!!l){var s=document.createDocumentFragment();qc(e,l,s),e.display.dragCursor||(e.display.dragCursor=k("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),I(e.display.dragCursor,s)}}function Vd(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Kd(e){if(!!document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),l=[],s=0;s<i.length;s++){var c=i[s].CodeMirror;c&&l.push(c)}l.length&&l[0].operation(function(){for(var d=0;d<l.length;d++)e(l[d])})}}var Xd=!1;function xw(){Xd||(_w(),Xd=!0)}function _w(){var e;bt(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Kd(Sw)},100))}),bt(window,"blur",function(){return Kd(so)})}function Sw(e){var i=e.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,e.setSize()}for(var Zr={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"},_s=0;_s<10;_s++)Zr[_s+48]=Zr[_s+96]=String(_s);for(var jl=65;jl<=90;jl++)Zr[jl]=String.fromCharCode(jl);for(var Ss=1;Ss<=12;Ss++)Zr[Ss+111]=Zr[Ss+63235]="F"+Ss;var kr={};kr.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"},kr.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"},kr.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"},kr.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"]},kr.default=G?kr.macDefault:kr.pcDefault;function kw(e){var i=e.split(/-(?!$)/);e=i[i.length-1];for(var l,s,c,d,v=0;v<i.length-1;v++){var y=i[v];if(/^(cmd|meta|m)$/i.test(y))d=!0;else if(/^a(lt)?$/i.test(y))l=!0;else if(/^(c|ctrl|control)$/i.test(y))s=!0;else if(/^s(hift)?$/i.test(y))c=!0;else throw new Error("Unrecognized modifier name: "+y)}return l&&(e="Alt-"+e),s&&(e="Ctrl-"+e),d&&(e="Cmd-"+e),c&&(e="Shift-"+e),e}function Cw(e){var i={};for(var l in e)if(e.hasOwnProperty(l)){var s=e[l];if(/^(name|fallthrough|(de|at)tach)$/.test(l))continue;if(s=="..."){delete e[l];continue}for(var c=gt(l.split(" "),kw),d=0;d<c.length;d++){var v=void 0,y=void 0;d==c.length-1?(y=c.join(" "),v=s):(y=c.slice(0,d+1).join(" "),v="...");var w=i[y];if(!w)i[y]=v;else if(w!=v)throw new Error("Inconsistent bindings for "+y)}delete e[l]}for(var _ in i)e[_]=i[_];return e}function go(e,i,l,s){i=Gl(i);var c=i.call?i.call(e,s):i[e];if(c===!1)return"nothing";if(c==="...")return"multi";if(c!=null&&l(c))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return go(e,i.fallthrough,l,s);for(var d=0;d<i.fallthrough.length;d++){var v=go(e,i.fallthrough[d],l,s);if(v)return v}}}function Yd(e){var i=typeof e=="string"?e:Zr[e.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Zd(e,i,l){var s=e;return i.altKey&&s!="Alt"&&(e="Alt-"+e),(dt?i.metaKey:i.ctrlKey)&&s!="Ctrl"&&(e="Ctrl-"+e),(dt?i.ctrlKey:i.metaKey)&&s!="Mod"&&(e="Cmd-"+e),!l&&i.shiftKey&&s!="Shift"&&(e="Shift-"+e),e}function Qd(e,i){if(N&&e.keyCode==34&&e.char)return!1;var l=Zr[e.keyCode];return l==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(l=e.code),Zd(l,e,i))}function Gl(e){return typeof e=="string"?kr[e]:e}function vo(e,i){for(var l=e.doc.sel.ranges,s=[],c=0;c<l.length;c++){for(var d=i(l[c]);s.length&&K(d.from,lt(s).to)<=0;){var v=s.pop();if(K(v.from,d.from)<0){d.from=v.from;break}}s.push(d)}bn(e,function(){for(var y=s.length-1;y>=0;y--)ho(e.doc,"",s[y].from,s[y].to,"+delete");lo(e)})}function ru(e,i,l){var s=se(e.text,i+l,l);return s<0||s>e.text.length?null:s}function iu(e,i,l){var s=ru(e,i.ch,l);return s==null?null:new R(i.line,s,l<0?"after":"before")}function ou(e,i,l,s,c){if(e){i.doc.direction=="rtl"&&(c=-c);var d=be(l,i.doc.direction);if(d){var v=c<0?lt(d):d[0],y=c<0==(v.level==1),w=y?"after":"before",_;if(v.level>0||i.doc.direction=="rtl"){var M=ro(i,l);_=c<0?l.text.length-1:0;var O=nr(i,M,_).top;_=Xt(function(B){return nr(i,M,B).top==O},c<0==(v.level==1)?v.from:v.to-1,_),w=="before"&&(_=ru(l,_,1))}else _=c<0?v.to:v.from;return new R(s,_,w)}}return new R(s,c<0?l.text.length:0,c<0?"before":"after")}function Tw(e,i,l,s){var c=be(i,e.doc.direction);if(!c)return iu(i,l,s);l.ch>=i.text.length?(l.ch=i.text.length,l.sticky="before"):l.ch<=0&&(l.ch=0,l.sticky="after");var d=qe(c,l.ch,l.sticky),v=c[d];if(e.doc.direction=="ltr"&&v.level%2==0&&(s>0?v.to>l.ch:v.from<l.ch))return iu(i,l,s);var y=function(mt,_t){return ru(i,mt instanceof R?mt.ch:mt,_t)},w,_=function(mt){return e.options.lineWrapping?(w=w||ro(e,i),rd(e,i,w,mt)):{begin:0,end:i.text.length}},M=_(l.sticky=="before"?y(l,-1):l.ch);if(e.doc.direction=="rtl"||v.level==1){var O=v.level==1==s<0,B=y(l,O?1:-1);if(B!=null&&(O?B<=v.to&&B<=M.end:B>=v.from&&B>=M.begin)){var q=O?"before":"after";return new R(l.line,B,q)}}var X=function(mt,_t,yt){for(var Tt=function(pe,Re){return Re?new R(l.line,y(pe,1),"before"):new R(l.line,pe,"after")};mt>=0&&mt<c.length;mt+=_t){var Dt=c[mt],Pt=_t>0==(Dt.level!=1),Ut=Pt?yt.begin:y(yt.end,-1);if(Dt.from<=Ut&&Ut<Dt.to||(Ut=Pt?Dt.from:y(Dt.to,-1),yt.begin<=Ut&&Ut<yt.end))return Tt(Ut,Pt)}},rt=X(d+s,s,M);if(rt)return rt;var ct=s>0?M.end:y(M.begin,-1);return ct!=null&&!(s>0&&ct==i.text.length)&&(rt=X(s>0?0:c.length-1,s,_(ct)),rt)?rt:null}var ks={selectAll:Rd,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),P)},killLine:function(e){return vo(e,function(i){if(i.empty()){var l=At(e.doc,i.head.line).text.length;return i.head.ch==l&&i.head.line<e.lastLine()?{from:i.head,to:R(i.head.line+1,0)}:{from:i.head,to:R(i.head.line,l)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(e){return vo(e,function(i){return{from:R(i.from().line,0),to:Ft(e.doc,R(i.to().line+1,0))}})},delLineLeft:function(e){return vo(e,function(i){return{from:R(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(e){return vo(e,function(i){var l=e.charCoords(i.head,"div").top+5,s=e.coordsChar({left:0,top:l},"div");return{from:s,to:i.from()}})},delWrappedLineRight:function(e){return vo(e,function(i){var l=e.charCoords(i.head,"div").top+5,s=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:l},"div");return{from:i.from(),to:s}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(R(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(R(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(i){return Jd(e,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(i){return tp(e,i.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(i){return Lw(e,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(i){var l=e.cursorCoords(i.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:l},"div")},Y)},goLineLeft:function(e){return e.extendSelectionsBy(function(i){var l=e.cursorCoords(i.head,"div").top+5;return e.coordsChar({left:0,top:l},"div")},Y)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(i){var l=e.cursorCoords(i.head,"div").top+5,s=e.coordsChar({left:0,top:l},"div");return s.ch<e.getLine(s.line).search(/\S/)?tp(e,i.head):s},Y)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var i=[],l=e.listSelections(),s=e.options.tabSize,c=0;c<l.length;c++){var d=l[c].from(),v=V(e.getLine(d.line),d.ch,s);i.push(pt(s-v%s))}e.replaceSelections(i)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return bn(e,function(){for(var i=e.listSelections(),l=[],s=0;s<i.length;s++)if(!!i[s].empty()){var c=i[s].head,d=At(e.doc,c.line).text;if(d){if(c.ch==d.length&&(c=new R(c.line,c.ch-1)),c.ch>0)c=new R(c.line,c.ch+1),e.replaceRange(d.charAt(c.ch-1)+d.charAt(c.ch-2),R(c.line,c.ch-2),c,"+transpose");else if(c.line>e.doc.first){var v=At(e.doc,c.line-1).text;v&&(c=new R(c.line,1),e.replaceRange(d.charAt(0)+e.doc.lineSeparator()+v.charAt(v.length-1),R(c.line-1,v.length-1),c,"+transpose"))}}l.push(new ie(c,c))}e.setSelections(l)})},newlineAndIndent:function(e){return bn(e,function(){for(var i=e.listSelections(),l=i.length-1;l>=0;l--)e.replaceRange(e.doc.lineSeparator(),i[l].anchor,i[l].head,"+input");i=e.listSelections();for(var s=0;s<i.length;s++)e.indentLine(i[s].from().line,null,!0);lo(e)})},openLine:function(e){return e.replaceSelection(`
18
+ `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Jd(e,i){var l=At(e.doc,i),s=qn(l);return s!=l&&(i=re(s)),ou(!0,e,s,i,1)}function Lw(e,i){var l=At(e.doc,i),s=ub(l);return s!=l&&(i=re(s)),ou(!0,e,l,i,-1)}function tp(e,i){var l=Jd(e,i.line),s=At(e.doc,l.line),c=be(s,e.doc.direction);if(!c||c[0].level==0){var d=Math.max(l.ch,s.text.search(/\S/)),v=i.line==l.line&&i.ch<=d&&i.ch;return R(l.line,v?0:d,l.sticky)}return l}function Vl(e,i,l){if(typeof i=="string"&&(i=ks[i],!i))return!1;e.display.input.ensurePolled();var s=e.display.shift,c=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),l&&(e.display.shift=!1),c=i(e)!=Lt}finally{e.display.shift=s,e.state.suppressEdits=!1}return c}function Ew(e,i,l){for(var s=0;s<e.state.keyMaps.length;s++){var c=go(i,e.state.keyMaps[s],l,e);if(c)return c}return e.options.extraKeys&&go(i,e.options.extraKeys,l,e)||go(i,e.options.keyMap,l,e)}var Aw=new st;function Cs(e,i,l,s){var c=e.state.keySeq;if(c){if(Yd(i))return"handled";if(/\'$/.test(i)?e.state.keySeq=null:Aw.set(50,function(){e.state.keySeq==c&&(e.state.keySeq=null,e.display.input.reset())}),ep(e,c+" "+i,l,s))return!0}return ep(e,i,l,s)}function ep(e,i,l,s){var c=Ew(e,i,s);return c=="multi"&&(e.state.keySeq=i),c=="handled"&&Oe(e,"keyHandled",e,i,l),(c=="handled"||c=="multi")&&(Ge(l),Hc(e)),!!c}function np(e,i){var l=Qd(i,!0);return l?i.shiftKey&&!e.state.keySeq?Cs(e,"Shift-"+l,i,function(s){return Vl(e,s,!0)})||Cs(e,l,i,function(s){if(typeof s=="string"?/^go[A-Z]/.test(s):s.motion)return Vl(e,s)}):Cs(e,l,i,function(s){return Vl(e,s)}):!1}function Mw(e,i,l){return Cs(e,"'"+l+"'",i,function(s){return Vl(e,s,!0)})}var su=null;function rp(e){var i=this;if(!(e.target&&e.target!=i.display.input.getField())&&(i.curOp.focus=wt(Gt(i)),!Se(i,e))){p&&g<11&&e.keyCode==27&&(e.returnValue=!1);var l=e.keyCode;i.display.shift=l==16||e.shiftKey;var s=np(i,e);N&&(su=s?l:null,!s&&l==88&&!Zn&&(G?e.metaKey:e.ctrlKey)&&i.replaceSelection("",null,"cut")),a&&!G&&!s&&l==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),l==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&Nw(i)}}function Nw(e){var i=e.display.lineDiv;Et(i,"CodeMirror-crosshair");function l(s){(s.keyCode==18||!s.altKey)&&(ft(i,"CodeMirror-crosshair"),je(document,"keyup",l),je(document,"mouseover",l))}bt(document,"keyup",l),bt(document,"mouseover",l)}function ip(e){e.keyCode==16&&(this.doc.sel.shift=!1),Se(this,e)}function op(e){var i=this;if(!(e.target&&e.target!=i.display.input.getField())&&!(_r(i.display,e)||Se(i,e)||e.ctrlKey&&!e.altKey||G&&e.metaKey)){var l=e.keyCode,s=e.charCode;if(N&&l==su){su=null,Ge(e);return}if(!(N&&(!e.which||e.which<10)&&np(i,e))){var c=String.fromCharCode(s==null?l:s);c!="\b"&&(Mw(i,e,c)||i.display.input.onKeyPress(e))}}}var Pw=400,lu=function(e,i,l){this.time=e,this.pos=i,this.button=l};lu.prototype.compare=function(e,i,l){return this.time+Pw>e&&K(i,this.pos)==0&&l==this.button};var Ts,Ls;function Ow(e,i){var l=+new Date;return Ls&&Ls.compare(l,e,i)?(Ts=Ls=null,"triple"):Ts&&Ts.compare(l,e,i)?(Ls=new lu(l,e,i),Ts=null,"double"):(Ts=new lu(l,e,i),Ls=null,"single")}function sp(e){var i=this,l=i.display;if(!(Se(i,e)||l.activeTouch&&l.input.supportsTouch())){if(l.input.ensurePolled(),l.shift=e.shiftKey,_r(l,e)){m||(l.scroller.draggable=!1,setTimeout(function(){return l.scroller.draggable=!0},100));return}if(!au(i,e)){var s=xi(i,e),c=Jo(e),d=s?Ow(s,c):"single";ne(i).focus(),c==1&&i.state.selectingText&&i.state.selectingText(e),!(s&&$w(i,c,s,d,e))&&(c==1?s?Rw(i,s,d,e):rn(e)==l.scroller&&Ge(e):c==2?(s&&Hl(i.doc,s),setTimeout(function(){return l.input.focus()},20)):c==3&&(vt?i.display.input.onContextMenu(e):Bc(i)))}}}function $w(e,i,l,s,c){var d="Click";return s=="double"?d="Double"+d:s=="triple"&&(d="Triple"+d),d=(i==1?"Left":i==2?"Middle":"Right")+d,Cs(e,Zd(d,c),c,function(v){if(typeof v=="string"&&(v=ks[v]),!v)return!1;var y=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),y=v(e,l)!=Lt}finally{e.state.suppressEdits=!1}return y})}function Dw(e,i,l){var s=e.getOption("configureMouse"),c=s?s(e,i,l):{};if(c.unit==null){var d=j?l.shiftKey&&l.metaKey:l.altKey;c.unit=d?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(c.extend==null||e.doc.extend)&&(c.extend=e.doc.extend||l.shiftKey),c.addNew==null&&(c.addNew=G?l.metaKey:l.ctrlKey),c.moveOnDrag==null&&(c.moveOnDrag=!(G?l.altKey:l.ctrlKey)),c}function Rw(e,i,l,s){p?setTimeout(Q(ld,e),0):e.curOp.focus=wt(Gt(e));var c=Dw(e,l,s),d=e.doc.sel,v;e.options.dragDrop&&wc&&!e.isReadOnly()&&l=="single"&&(v=d.contains(i))>-1&&(K((v=d.ranges[v]).from(),i)<0||i.xRel>0)&&(K(v.to(),i)>0||i.xRel<0)?zw(e,s,i,c):Iw(e,s,i,c)}function zw(e,i,l,s){var c=e.display,d=!1,v=$e(e,function(_){m&&(c.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Bc(e)),je(c.wrapper.ownerDocument,"mouseup",v),je(c.wrapper.ownerDocument,"mousemove",y),je(c.scroller,"dragstart",w),je(c.scroller,"drop",v),d||(Ge(_),s.addNew||Hl(e.doc,l,null,null,s.extend),m&&!A||p&&g==9?setTimeout(function(){c.wrapper.ownerDocument.body.focus({preventScroll:!0}),c.input.focus()},20):c.input.focus())}),y=function(_){d=d||Math.abs(i.clientX-_.clientX)+Math.abs(i.clientY-_.clientY)>=10},w=function(){return d=!0};m&&(c.scroller.draggable=!0),e.state.draggingText=v,v.copy=!s.moveOnDrag,bt(c.wrapper.ownerDocument,"mouseup",v),bt(c.wrapper.ownerDocument,"mousemove",y),bt(c.scroller,"dragstart",w),bt(c.scroller,"drop",v),e.state.delayingBlurEvent=!0,setTimeout(function(){return c.input.focus()},20),c.scroller.dragDrop&&c.scroller.dragDrop()}function lp(e,i,l){if(l=="char")return new ie(i,i);if(l=="word")return e.findWordAt(i);if(l=="line")return new ie(R(i.line,0),Ft(e.doc,R(i.line+1,0)));var s=l(e,i);return new ie(s.from,s.to)}function Iw(e,i,l,s){p&&Bc(e);var c=e.display,d=e.doc;Ge(i);var v,y,w=d.sel,_=w.ranges;if(s.addNew&&!s.extend?(y=d.sel.contains(l),y>-1?v=_[y]:v=new ie(l,l)):(v=d.sel.primary(),y=d.sel.primIndex),s.unit=="rectangle")s.addNew||(v=new ie(l,l)),l=xi(e,i,!0,!0),y=-1;else{var M=lp(e,l,s.unit);s.extend?v=eu(v,M.anchor,M.head,s.extend):v=M}s.addNew?y==-1?(y=_.length,Ve(d,Bn(e,_.concat([v]),y),{scroll:!1,origin:"*mouse"})):_.length>1&&_[y].empty()&&s.unit=="char"&&!s.extend?(Ve(d,Bn(e,_.slice(0,y).concat(_.slice(y+1)),0),{scroll:!1,origin:"*mouse"}),w=d.sel):nu(d,y,v,F):(y=0,Ve(d,new An([v],0),F),w=d.sel);var O=l;function B(yt){if(K(O,yt)!=0)if(O=yt,s.unit=="rectangle"){for(var Tt=[],Dt=e.options.tabSize,Pt=V(At(d,l.line).text,l.ch,Dt),Ut=V(At(d,yt.line).text,yt.ch,Dt),pe=Math.min(Pt,Ut),Re=Math.max(Pt,Ut),_e=Math.min(l.line,yt.line),wn=Math.min(e.lastLine(),Math.max(l.line,yt.line));_e<=wn;_e++){var ln=At(d,_e).text,Ee=nt(ln,pe,Dt);pe==Re?Tt.push(new ie(R(_e,Ee),R(_e,Ee))):ln.length>Ee&&Tt.push(new ie(R(_e,Ee),R(_e,nt(ln,Re,Dt))))}Tt.length||Tt.push(new ie(l,l)),Ve(d,Bn(e,w.ranges.slice(0,y).concat(Tt),y),{origin:"*mouse",scroll:!1}),e.scrollIntoView(yt)}else{var an=v,He=lp(e,yt,s.unit),Pe=an.anchor,Ae;K(He.anchor,Pe)>0?(Ae=He.head,Pe=Ne(an.from(),He.anchor)):(Ae=He.anchor,Pe=ee(an.to(),He.head));var Ce=w.ranges.slice(0);Ce[y]=Fw(e,new ie(Ft(d,Pe),Ae)),Ve(d,Bn(e,Ce,y),F)}}var q=c.wrapper.getBoundingClientRect(),X=0;function rt(yt){var Tt=++X,Dt=xi(e,yt,!0,s.unit=="rectangle");if(!!Dt)if(K(Dt,O)!=0){e.curOp.focus=wt(Gt(e)),B(Dt);var Pt=Dl(c,d);(Dt.line>=Pt.to||Dt.line<Pt.from)&&setTimeout($e(e,function(){X==Tt&&rt(yt)}),150)}else{var Ut=yt.clientY<q.top?-20:yt.clientY>q.bottom?20:0;Ut&&setTimeout($e(e,function(){X==Tt&&(c.scroller.scrollTop+=Ut,rt(yt))}),50)}}function ct(yt){e.state.selectingText=!1,X=1/0,yt&&(Ge(yt),c.input.focus()),je(c.wrapper.ownerDocument,"mousemove",mt),je(c.wrapper.ownerDocument,"mouseup",_t),d.history.lastSelOrigin=null}var mt=$e(e,function(yt){yt.buttons===0||!Jo(yt)?ct(yt):rt(yt)}),_t=$e(e,ct);e.state.selectingText=_t,bt(c.wrapper.ownerDocument,"mousemove",mt),bt(c.wrapper.ownerDocument,"mouseup",_t)}function Fw(e,i){var l=i.anchor,s=i.head,c=At(e.doc,l.line);if(K(l,s)==0&&l.sticky==s.sticky)return i;var d=be(c);if(!d)return i;var v=qe(d,l.ch,l.sticky),y=d[v];if(y.from!=l.ch&&y.to!=l.ch)return i;var w=v+(y.from==l.ch==(y.level!=1)?0:1);if(w==0||w==d.length)return i;var _;if(s.line!=l.line)_=(s.line-l.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var M=qe(d,s.ch,s.sticky),O=M-v||(s.ch-l.ch)*(y.level==1?-1:1);M==w-1||M==w?_=O<0:_=O>0}var B=d[w+(_?-1:0)],q=_==(B.level==1),X=q?B.from:B.to,rt=q?"after":"before";return l.ch==X&&l.sticky==rt?i:new ie(new R(l.line,X,rt),s)}function ap(e,i,l,s){var c,d;if(i.touches)c=i.touches[0].clientX,d=i.touches[0].clientY;else try{c=i.clientX,d=i.clientY}catch{return!1}if(c>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;s&&Ge(i);var v=e.display,y=v.lineDiv.getBoundingClientRect();if(d>y.bottom||!Ye(e,l))return Qo(i);d-=y.top-v.viewOffset;for(var w=0;w<e.display.gutterSpecs.length;++w){var _=v.gutters.childNodes[w];if(_&&_.getBoundingClientRect().right>=c){var M=Jn(e.doc,d),O=e.display.gutterSpecs[w];return ve(e,l,e,M,O.className,i),Qo(i)}}}function au(e,i){return ap(e,i,"gutterClick",!0)}function cp(e,i){_r(e.display,i)||qw(e,i)||Se(e,i,"contextmenu")||vt||e.display.input.onContextMenu(i)}function qw(e,i){return Ye(e,"gutterContextMenu")?ap(e,i,"gutterContextMenu",!1):!1}function up(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ls(e)}var mo={toString:function(){return"CodeMirror.Init"}},fp={},Kl={};function Hw(e){var i=e.optionHandlers;function l(s,c,d,v){e.defaults[s]=c,d&&(i[s]=v?function(y,w,_){_!=mo&&d(y,w,_)}:d)}e.defineOption=l,e.Init=mo,l("value","",function(s,c){return s.setValue(c)},!0),l("mode",null,function(s,c){s.doc.modeOption=c,Qc(s)},!0),l("indentUnit",2,Qc,!0),l("indentWithTabs",!1),l("smartIndent",!0),l("tabSize",4,function(s){gs(s),ls(s),on(s)},!0),l("lineSeparator",null,function(s,c){if(s.doc.lineSep=c,!!c){var d=[],v=s.doc.first;s.doc.iter(function(w){for(var _=0;;){var M=w.text.indexOf(c,_);if(M==-1)break;_=M+c.length,d.push(R(v,M))}v++});for(var y=d.length-1;y>=0;y--)ho(s.doc,c,d[y],R(d[y].line,d[y].ch+c.length))}}),l("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(s,c,d){s.state.specialChars=new RegExp(c.source+(c.test(" ")?"":"| "),"g"),d!=mo&&s.refresh()}),l("specialCharPlaceholder",vb,function(s){return s.refresh()},!0),l("electricChars",!0),l("inputStyle",D?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),l("spellcheck",!1,function(s,c){return s.getInputField().spellcheck=c},!0),l("autocorrect",!1,function(s,c){return s.getInputField().autocorrect=c},!0),l("autocapitalize",!1,function(s,c){return s.getInputField().autocapitalize=c},!0),l("rtlMoveVisually",!it),l("wholeLineUpdateBefore",!0),l("theme","default",function(s){up(s),ps(s)},!0),l("keyMap","default",function(s,c,d){var v=Gl(c),y=d!=mo&&Gl(d);y&&y.detach&&y.detach(s,v),v.attach&&v.attach(s,y||null)}),l("extraKeys",null),l("configureMouse",null),l("lineWrapping",!1,Ww,!0),l("gutters",[],function(s,c){s.display.gutterSpecs=Yc(c,s.options.lineNumbers),ps(s)},!0),l("fixedGutter",!0,function(s,c){s.display.gutters.style.left=c?Ic(s.display)+"px":"0",s.refresh()},!0),l("coverGutterNextToScrollbar",!1,function(s){return ao(s)},!0),l("scrollbarStyle","native",function(s){dd(s),ao(s),s.display.scrollbars.setScrollTop(s.doc.scrollTop),s.display.scrollbars.setScrollLeft(s.doc.scrollLeft)},!0),l("lineNumbers",!1,function(s,c){s.display.gutterSpecs=Yc(s.options.gutters,c),ps(s)},!0),l("firstLineNumber",1,ps,!0),l("lineNumberFormatter",function(s){return s},ps,!0),l("showCursorWhenSelecting",!1,as,!0),l("resetSelectionOnContextMenu",!0),l("lineWiseCopyCut",!0),l("pasteLinesPerSelection",!0),l("selectionsMayTouch",!1),l("readOnly",!1,function(s,c){c=="nocursor"&&(so(s),s.display.input.blur()),s.display.input.readOnlyChanged(c)}),l("screenReaderLabel",null,function(s,c){c=c===""?null:c,s.display.input.screenReaderLabelChanged(c)}),l("disableInput",!1,function(s,c){c||s.display.input.reset()},!0),l("dragDrop",!0,Bw),l("allowDropFileTypes",null),l("cursorBlinkRate",530),l("cursorScrollMargin",0),l("cursorHeight",1,as,!0),l("singleCursorHeightPerLine",!0,as,!0),l("workTime",100),l("workDelay",100),l("flattenSpans",!0,gs,!0),l("addModeClass",!1,gs,!0),l("pollInterval",100),l("undoDepth",200,function(s,c){return s.doc.history.undoDepth=c}),l("historyEventDelay",1250),l("viewportMargin",10,function(s){return s.refresh()},!0),l("maxHighlightLength",1e4,gs,!0),l("moveInputWithCursor",!0,function(s,c){c||s.display.input.resetPosition()}),l("tabindex",null,function(s,c){return s.display.input.getField().tabIndex=c||""}),l("autofocus",null),l("direction","ltr",function(s,c){return s.doc.setDirection(c)},!0),l("phrases",null)}function Bw(e,i,l){var s=l&&l!=mo;if(!i!=!s){var c=e.display.dragFunctions,d=i?bt:je;d(e.display.scroller,"dragstart",c.start),d(e.display.scroller,"dragenter",c.enter),d(e.display.scroller,"dragover",c.over),d(e.display.scroller,"dragleave",c.leave),d(e.display.scroller,"drop",c.drop)}}function Ww(e){e.options.lineWrapping?(Et(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ft(e.display.wrapper,"CodeMirror-wrap"),Ec(e)),Fc(e),on(e),ls(e),setTimeout(function(){return ao(e)},100)}function we(e,i){var l=this;if(!(this instanceof we))return new we(e,i);this.options=i=i?tt(i):{},tt(fp,i,!1);var s=i.value;typeof s=="string"?s=new sn(s,i.mode,null,i.lineSeparator,i.direction):i.mode&&(s.modeOption=i.mode),this.doc=s;var c=new we.inputStyles[i.inputStyle](this),d=this.display=new nw(e,s,c,i);d.wrapper.CodeMirror=this,up(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),dd(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 st,keySeq:null,specialChars:null},i.autofocus&&!D&&d.input.focus(),p&&g<11&&setTimeout(function(){return l.display.input.reset(!0)},20),Uw(this),xw(),Ci(this),this.curOp.forceUpdate=!0,Sd(this,s),i.autofocus&&!D||this.hasFocus()?setTimeout(function(){l.hasFocus()&&!l.state.focused&&Wc(l)},20):so(this);for(var v in Kl)Kl.hasOwnProperty(v)&&Kl[v](this,i[v],mo);vd(this),i.finishInit&&i.finishInit(this);for(var y=0;y<cu.length;++y)cu[y](this);Ti(this),m&&i.lineWrapping&&getComputedStyle(d.lineDiv).textRendering=="optimizelegibility"&&(d.lineDiv.style.textRendering="auto")}we.defaults=fp,we.optionHandlers=Kl;function Uw(e){var i=e.display;bt(i.scroller,"mousedown",$e(e,sp)),p&&g<11?bt(i.scroller,"dblclick",$e(e,function(w){if(!Se(e,w)){var _=xi(e,w);if(!(!_||au(e,w)||_r(e.display,w))){Ge(w);var M=e.findWordAt(_);Hl(e.doc,M.anchor,M.head)}}})):bt(i.scroller,"dblclick",function(w){return Se(e,w)||Ge(w)}),bt(i.scroller,"contextmenu",function(w){return cp(e,w)}),bt(i.input.getField(),"contextmenu",function(w){i.scroller.contains(w.target)||cp(e,w)});var l,s={end:0};function c(){i.activeTouch&&(l=setTimeout(function(){return i.activeTouch=null},1e3),s=i.activeTouch,s.end=+new Date)}function d(w){if(w.touches.length!=1)return!1;var _=w.touches[0];return _.radiusX<=1&&_.radiusY<=1}function v(w,_){if(_.left==null)return!0;var M=_.left-w.left,O=_.top-w.top;return M*M+O*O>20*20}bt(i.scroller,"touchstart",function(w){if(!Se(e,w)&&!d(w)&&!au(e,w)){i.input.ensurePolled(),clearTimeout(l);var _=+new Date;i.activeTouch={start:_,moved:!1,prev:_-s.end<=300?s:null},w.touches.length==1&&(i.activeTouch.left=w.touches[0].pageX,i.activeTouch.top=w.touches[0].pageY)}}),bt(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),bt(i.scroller,"touchend",function(w){var _=i.activeTouch;if(_&&!_r(i,w)&&_.left!=null&&!_.moved&&new Date-_.start<300){var M=e.coordsChar(i.activeTouch,"page"),O;!_.prev||v(_,_.prev)?O=new ie(M,M):!_.prev.prev||v(_,_.prev.prev)?O=e.findWordAt(M):O=new ie(R(M.line,0),Ft(e.doc,R(M.line+1,0))),e.setSelection(O.anchor,O.head),e.focus(),Ge(w)}c()}),bt(i.scroller,"touchcancel",c),bt(i.scroller,"scroll",function(){i.scroller.clientHeight&&(us(e,i.scroller.scrollTop),Si(e,i.scroller.scrollLeft,!0),ve(e,"scroll",e))}),bt(i.scroller,"mousewheel",function(w){return bd(e,w)}),bt(i.scroller,"DOMMouseScroll",function(w){return bd(e,w)}),bt(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(w){Se(e,w)||vr(w)},over:function(w){Se(e,w)||(ww(e,w),vr(w))},start:function(w){return bw(e,w)},drop:$e(e,yw),leave:function(w){Se(e,w)||Vd(e)}};var y=i.input.getField();bt(y,"keyup",function(w){return ip.call(e,w)}),bt(y,"keydown",$e(e,rp)),bt(y,"keypress",$e(e,op)),bt(y,"focus",function(w){return Wc(e,w)}),bt(y,"blur",function(w){return so(e,w)})}var cu=[];we.defineInitHook=function(e){return cu.push(e)};function Es(e,i,l,s){var c=e.doc,d;l==null&&(l="add"),l=="smart"&&(c.mode.indent?d=ns(e,i).state:l="prev");var v=e.options.tabSize,y=At(c,i),w=V(y.text,null,v);y.stateAfter&&(y.stateAfter=null);var _=y.text.match(/^\s*/)[0],M;if(!s&&!/\S/.test(y.text))M=0,l="not";else if(l=="smart"&&(M=c.mode.indent(d,y.text.slice(_.length),y.text),M==Lt||M>150)){if(!s)return;l="prev"}l=="prev"?i>c.first?M=V(At(c,i-1).text,null,v):M=0:l=="add"?M=w+e.options.indentUnit:l=="subtract"?M=w-e.options.indentUnit:typeof l=="number"&&(M=w+l),M=Math.max(0,M);var O="",B=0;if(e.options.indentWithTabs)for(var q=Math.floor(M/v);q;--q)B+=v,O+=" ";if(B<M&&(O+=pt(M-B)),O!=_)return ho(c,O,R(i,0),R(i,_.length),"+input"),y.stateAfter=null,!0;for(var X=0;X<c.sel.ranges.length;X++){var rt=c.sel.ranges[X];if(rt.head.line==i&&rt.head.ch<_.length){var ct=R(i,_.length);nu(c,X,new ie(ct,ct));break}}}var Wn=null;function Xl(e){Wn=e}function uu(e,i,l,s,c){var d=e.doc;e.display.shift=!1,s||(s=d.sel);var v=+new Date-200,y=c=="paste"||e.state.pasteIncoming>v,w=ts(i),_=null;if(y&&s.ranges.length>1)if(Wn&&Wn.text.join(`
19
+ `)==i){if(s.ranges.length%Wn.text.length==0){_=[];for(var M=0;M<Wn.text.length;M++)_.push(d.splitLines(Wn.text[M]))}}else w.length==s.ranges.length&&e.options.pasteLinesPerSelection&&(_=gt(w,function(mt){return[mt]}));for(var O=e.curOp.updateInput,B=s.ranges.length-1;B>=0;B--){var q=s.ranges[B],X=q.from(),rt=q.to();q.empty()&&(l&&l>0?X=R(X.line,X.ch-l):e.state.overwrite&&!y?rt=R(rt.line,Math.min(At(d,rt.line).text.length,rt.ch+lt(w).length)):y&&Wn&&Wn.lineWise&&Wn.text.join(`
20
+ `)==w.join(`
21
+ `)&&(X=rt=R(X.line,0)));var ct={from:X,to:rt,text:_?_[B%_.length]:w,origin:c||(y?"paste":e.state.cutIncoming>v?"cut":"+input")};fo(e.doc,ct),Oe(e,"inputRead",e,ct)}i&&!y&&dp(e,i),lo(e),e.curOp.updateInput<2&&(e.curOp.updateInput=O),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function hp(e,i){var l=e.clipboardData&&e.clipboardData.getData("Text");if(l)return e.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&bn(i,function(){return uu(i,l,0,null,"paste")}),!0}function dp(e,i){if(!(!e.options.electricChars||!e.options.smartIndent))for(var l=e.doc.sel,s=l.ranges.length-1;s>=0;s--){var c=l.ranges[s];if(!(c.head.ch>100||s&&l.ranges[s-1].head.line==c.head.line)){var d=e.getModeAt(c.head),v=!1;if(d.electricChars){for(var y=0;y<d.electricChars.length;y++)if(i.indexOf(d.electricChars.charAt(y))>-1){v=Es(e,c.head.line,"smart");break}}else d.electricInput&&d.electricInput.test(At(e.doc,c.head.line).text.slice(0,c.head.ch))&&(v=Es(e,c.head.line,"smart"));v&&Oe(e,"electricInput",e,c.head.line)}}}function pp(e){for(var i=[],l=[],s=0;s<e.doc.sel.ranges.length;s++){var c=e.doc.sel.ranges[s].head.line,d={anchor:R(c,0),head:R(c+1,0)};l.push(d),i.push(e.getRange(d.anchor,d.head))}return{text:i,ranges:l}}function gp(e,i,l,s){e.setAttribute("autocorrect",l?"":"off"),e.setAttribute("autocapitalize",s?"":"off"),e.setAttribute("spellcheck",!!i)}function vp(){var e=k("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=k("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return m?e.style.width="1000px":e.setAttribute("wrap","off"),E&&(e.style.border="1px solid black"),gp(e),i}function jw(e){var i=e.optionHandlers,l=e.helpers={};e.prototype={constructor:e,focus:function(){ne(this).focus(),this.display.input.focus()},setOption:function(s,c){var d=this.options,v=d[s];d[s]==c&&s!="mode"||(d[s]=c,i.hasOwnProperty(s)&&$e(this,i[s])(this,c,v),ve(this,"optionChange",this,s))},getOption:function(s){return this.options[s]},getDoc:function(){return this.doc},addKeyMap:function(s,c){this.state.keyMaps[c?"push":"unshift"](Gl(s))},removeKeyMap:function(s){for(var c=this.state.keyMaps,d=0;d<c.length;++d)if(c[d]==s||c[d].name==s)return c.splice(d,1),!0},addOverlay:Qe(function(s,c){var d=s.token?s:e.getMode(this.options,s);if(d.startState)throw new Error("Overlays may not be stateful.");xt(this.state.overlays,{mode:d,modeSpec:s,opaque:c&&c.opaque,priority:c&&c.priority||0},function(v){return v.priority}),this.state.modeGen++,on(this)}),removeOverlay:Qe(function(s){for(var c=this.state.overlays,d=0;d<c.length;++d){var v=c[d].modeSpec;if(v==s||typeof s=="string"&&v.name==s){c.splice(d,1),this.state.modeGen++,on(this);return}}}),indentLine:Qe(function(s,c,d){typeof c!="string"&&typeof c!="number"&&(c==null?c=this.options.smartIndent?"smart":"prev":c=c?"add":"subtract"),T(this.doc,s)&&Es(this,s,c,d)}),indentSelection:Qe(function(s){for(var c=this.doc.sel.ranges,d=-1,v=0;v<c.length;v++){var y=c[v];if(y.empty())y.head.line>d&&(Es(this,y.head.line,s,!0),d=y.head.line,v==this.doc.sel.primIndex&&lo(this));else{var w=y.from(),_=y.to(),M=Math.max(d,w.line);d=Math.min(this.lastLine(),_.line-(_.ch?0:1))+1;for(var O=M;O<d;++O)Es(this,O,s);var B=this.doc.sel.ranges;w.ch==0&&c.length==B.length&&B[v].from().ch>0&&nu(this.doc,v,new ie(w,B[v].to()),P)}}}),getTokenAt:function(s,c){return Ch(this,s,c)},getLineTokens:function(s,c){return Ch(this,R(s),c,!0)},getTokenTypeAt:function(s){s=Ft(this.doc,s);var c=_h(this,At(this.doc,s.line)),d=0,v=(c.length-1)/2,y=s.ch,w;if(y==0)w=c[2];else for(;;){var _=d+v>>1;if((_?c[_*2-1]:0)>=y)v=_;else if(c[_*2+1]<y)d=_+1;else{w=c[_*2+2];break}}var M=w?w.indexOf("overlay "):-1;return M<0?w:M==0?null:w.slice(0,M-1)},getModeAt:function(s){var c=this.doc.mode;return c.innerMode?e.innerMode(c,this.getTokenAt(s).state).mode:c},getHelper:function(s,c){return this.getHelpers(s,c)[0]},getHelpers:function(s,c){var d=[];if(!l.hasOwnProperty(c))return d;var v=l[c],y=this.getModeAt(s);if(typeof y[c]=="string")v[y[c]]&&d.push(v[y[c]]);else if(y[c])for(var w=0;w<y[c].length;w++){var _=v[y[c][w]];_&&d.push(_)}else y.helperType&&v[y.helperType]?d.push(v[y.helperType]):v[y.name]&&d.push(v[y.name]);for(var M=0;M<v._global.length;M++){var O=v._global[M];O.pred(y,this)&&Ct(d,O.val)==-1&&d.push(O.val)}return d},getStateAfter:function(s,c){var d=this.doc;return s=En(d,s==null?d.first+d.size-1:s),ns(this,s+1,c).state},cursorCoords:function(s,c){var d,v=this.doc.sel.primary();return s==null?d=v.head:typeof s=="object"?d=Ft(this.doc,s):d=s?v.from():v.to(),Hn(this,d,c||"page")},charCoords:function(s,c){return Nl(this,Ft(this.doc,s),c||"page")},coordsChar:function(s,c){return s=td(this,s,c||"page"),Dc(this,s.left,s.top)},lineAtHeight:function(s,c){return s=td(this,{top:s,left:0},c||"page").top,Jn(this.doc,s+this.display.viewOffset)},heightAtLine:function(s,c,d){var v=!1,y;if(typeof s=="number"){var w=this.doc.first+this.doc.size-1;s<this.doc.first?s=this.doc.first:s>w&&(s=w,v=!0),y=At(this.doc,s)}else y=s;return Ml(this,y,{top:0,left:0},c||"page",d||v).top+(v?this.doc.height-xr(y):0)},defaultTextHeight:function(){return io(this.display)},defaultCharWidth:function(){return oo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(s,c,d,v,y){var w=this.display;s=Hn(this,Ft(this.doc,s));var _=s.bottom,M=s.left;if(c.style.position="absolute",c.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(c),w.sizer.appendChild(c),v=="over")_=s.top;else if(v=="above"||v=="near"){var O=Math.max(w.wrapper.clientHeight,this.doc.height),B=Math.max(w.sizer.clientWidth,w.lineSpace.clientWidth);(v=="above"||s.bottom+c.offsetHeight>O)&&s.top>c.offsetHeight?_=s.top-c.offsetHeight:s.bottom+c.offsetHeight<=O&&(_=s.bottom),M+c.offsetWidth>B&&(M=B-c.offsetWidth)}c.style.top=_+"px",c.style.left=c.style.right="",y=="right"?(M=w.sizer.clientWidth-c.offsetWidth,c.style.right="0px"):(y=="left"?M=0:y=="middle"&&(M=(w.sizer.clientWidth-c.offsetWidth)/2),c.style.left=M+"px"),d&&Bb(this,{left:M,top:_,right:M+c.offsetWidth,bottom:_+c.offsetHeight})},triggerOnKeyDown:Qe(rp),triggerOnKeyPress:Qe(op),triggerOnKeyUp:ip,triggerOnMouseDown:Qe(sp),execCommand:function(s){if(ks.hasOwnProperty(s))return ks[s].call(null,this)},triggerElectric:Qe(function(s){dp(this,s)}),findPosH:function(s,c,d,v){var y=1;c<0&&(y=-1,c=-c);for(var w=Ft(this.doc,s),_=0;_<c&&(w=fu(this.doc,w,y,d,v),!w.hitSide);++_);return w},moveH:Qe(function(s,c){var d=this;this.extendSelectionsBy(function(v){return d.display.shift||d.doc.extend||v.empty()?fu(d.doc,v.head,s,c,d.options.rtlMoveVisually):s<0?v.from():v.to()},Y)}),deleteH:Qe(function(s,c){var d=this.doc.sel,v=this.doc;d.somethingSelected()?v.replaceSelection("",null,"+delete"):vo(this,function(y){var w=fu(v,y.head,s,c,!1);return s<0?{from:w,to:y.head}:{from:y.head,to:w}})}),findPosV:function(s,c,d,v){var y=1,w=v;c<0&&(y=-1,c=-c);for(var _=Ft(this.doc,s),M=0;M<c;++M){var O=Hn(this,_,"div");if(w==null?w=O.left:O.left=w,_=mp(this,O,y,d),_.hitSide)break}return _},moveV:Qe(function(s,c){var d=this,v=this.doc,y=[],w=!this.display.shift&&!v.extend&&v.sel.somethingSelected();if(v.extendSelectionsBy(function(M){if(w)return s<0?M.from():M.to();var O=Hn(d,M.head,"div");M.goalColumn!=null&&(O.left=M.goalColumn),y.push(O.left);var B=mp(d,O,s,c);return c=="page"&&M==v.sel.primary()&&jc(d,Nl(d,B,"div").top-O.top),B},Y),y.length)for(var _=0;_<v.sel.ranges.length;_++)v.sel.ranges[_].goalColumn=y[_]}),findWordAt:function(s){var c=this.doc,d=At(c,s.line).text,v=s.ch,y=s.ch;if(d){var w=this.getHelper(s,"wordChars");(s.sticky=="before"||y==d.length)&&v?--v:++y;for(var _=d.charAt(v),M=zt(_,w)?function(O){return zt(O,w)}:/\s/.test(_)?function(O){return/\s/.test(O)}:function(O){return!/\s/.test(O)&&!zt(O)};v>0&&M(d.charAt(v-1));)--v;for(;y<d.length&&M(d.charAt(y));)++y}return new ie(R(s.line,v),R(s.line,y))},toggleOverwrite:function(s){s!=null&&s==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Et(this.display.cursorDiv,"CodeMirror-overwrite"):ft(this.display.cursorDiv,"CodeMirror-overwrite"),ve(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==wt(Gt(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Qe(function(s,c){cs(this,s,c)}),getScrollInfo:function(){var s=this.display.scroller;return{left:s.scrollLeft,top:s.scrollTop,height:s.scrollHeight-er(this)-this.display.barHeight,width:s.scrollWidth-er(this)-this.display.barWidth,clientHeight:Nc(this),clientWidth:bi(this)}},scrollIntoView:Qe(function(s,c){s==null?(s={from:this.doc.sel.primary().head,to:null},c==null&&(c=this.options.cursorScrollMargin)):typeof s=="number"?s={from:R(s,0),to:null}:s.from==null&&(s={from:s,to:null}),s.to||(s.to=s.from),s.margin=c||0,s.from.line!=null?Wb(this,s):cd(this,s.from,s.to,s.margin)}),setSize:Qe(function(s,c){var d=this,v=function(w){return typeof w=="number"||/^\d+$/.test(String(w))?w+"px":w};s!=null&&(this.display.wrapper.style.width=v(s)),c!=null&&(this.display.wrapper.style.height=v(c)),this.options.lineWrapping&&Zh(this);var y=this.display.viewFrom;this.doc.iter(y,this.display.viewTo,function(w){if(w.widgets){for(var _=0;_<w.widgets.length;_++)if(w.widgets[_].noHScroll){jr(d,y,"widget");break}}++y}),this.curOp.forceUpdate=!0,ve(this,"refresh",this)}),operation:function(s){return bn(this,s)},startOperation:function(){return Ci(this)},endOperation:function(){return Ti(this)},refresh:Qe(function(){var s=this.display.cachedTextHeight;on(this),this.curOp.forceUpdate=!0,ls(this),cs(this,this.doc.scrollLeft,this.doc.scrollTop),Kc(this.display),(s==null||Math.abs(s-io(this.display))>.5||this.options.lineWrapping)&&Fc(this),ve(this,"refresh",this)}),swapDoc:Qe(function(s){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),Sd(this,s),ls(this),this.display.input.reset(),cs(this,s.scrollLeft,s.scrollTop),this.curOp.forceScroll=!0,Oe(this,"swapDoc",this,c),c}),phrase:function(s){var c=this.options.phrases;return c&&Object.prototype.hasOwnProperty.call(c,s)?c[s]:s},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}},Ze(e),e.registerHelper=function(s,c,d){l.hasOwnProperty(s)||(l[s]=e[s]={_global:[]}),l[s][c]=d},e.registerGlobalHelper=function(s,c,d,v){e.registerHelper(s,c,v),l[s]._global.push({pred:d,val:v})}}function fu(e,i,l,s,c){var d=i,v=l,y=At(e,i.line),w=c&&e.direction=="rtl"?-l:l;function _(){var _t=i.line+w;return _t<e.first||_t>=e.first+e.size?!1:(i=new R(_t,i.ch,i.sticky),y=At(e,_t))}function M(_t){var yt;if(s=="codepoint"){var Tt=y.text.charCodeAt(i.ch+(l>0?0:-1));if(isNaN(Tt))yt=null;else{var Dt=l>0?Tt>=55296&&Tt<56320:Tt>=56320&&Tt<57343;yt=new R(i.line,Math.max(0,Math.min(y.text.length,i.ch+l*(Dt?2:1))),-l)}}else c?yt=Tw(e.cm,y,i,l):yt=iu(y,i,l);if(yt==null)if(!_t&&_())i=ou(c,e.cm,y,i.line,w);else return!1;else i=yt;return!0}if(s=="char"||s=="codepoint")M();else if(s=="column")M(!0);else if(s=="word"||s=="group")for(var O=null,B=s=="group",q=e.cm&&e.cm.getHelper(i,"wordChars"),X=!0;!(l<0&&!M(!X));X=!1){var rt=y.text.charAt(i.ch)||`
22
+ `,ct=zt(rt,q)?"w":B&&rt==`
23
+ `?"n":!B||/\s/.test(rt)?null:"p";if(B&&!X&&!ct&&(ct="s"),O&&O!=ct){l<0&&(l=1,M(),i.sticky="after");break}if(ct&&(O=ct),l>0&&!M(!X))break}var mt=Wl(e,i,d,v,!0);return It(d,mt)&&(mt.hitSide=!0),mt}function mp(e,i,l,s){var c=e.doc,d=i.left,v;if(s=="page"){var y=Math.min(e.display.wrapper.clientHeight,ne(e).innerHeight||c(e).documentElement.clientHeight),w=Math.max(y-.5*io(e.display),3);v=(l>0?i.bottom:i.top)+l*w}else s=="line"&&(v=l>0?i.bottom+3:i.top-3);for(var _;_=Dc(e,d,v),!!_.outside;){if(l<0?v<=0:v>=c.height){_.hitSide=!0;break}v+=l*5}return _}var ae=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new st,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ae.prototype.init=function(e){var i=this,l=this,s=l.cm,c=l.div=e.lineDiv;c.contentEditable=!0,gp(c,s.options.spellcheck,s.options.autocorrect,s.options.autocapitalize);function d(y){for(var w=y.target;w;w=w.parentNode){if(w==c)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(w.className))break}return!1}bt(c,"paste",function(y){!d(y)||Se(s,y)||hp(y,s)||g<=11&&setTimeout($e(s,function(){return i.updateFromDOM()}),20)}),bt(c,"compositionstart",function(y){i.composing={data:y.data,done:!1}}),bt(c,"compositionupdate",function(y){i.composing||(i.composing={data:y.data,done:!1})}),bt(c,"compositionend",function(y){i.composing&&(y.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),bt(c,"touchstart",function(){return l.forceCompositionEnd()}),bt(c,"input",function(){i.composing||i.readFromDOMSoon()});function v(y){if(!(!d(y)||Se(s,y))){if(s.somethingSelected())Xl({lineWise:!1,text:s.getSelections()}),y.type=="cut"&&s.replaceSelection("",null,"cut");else if(s.options.lineWiseCopyCut){var w=pp(s);Xl({lineWise:!0,text:w.text}),y.type=="cut"&&s.operation(function(){s.setSelections(w.ranges,0,P),s.replaceSelection("",null,"cut")})}else return;if(y.clipboardData){y.clipboardData.clearData();var _=Wn.text.join(`
24
+ `);if(y.clipboardData.setData("Text",_),y.clipboardData.getData("Text")==_){y.preventDefault();return}}var M=vp(),O=M.firstChild;s.display.lineSpace.insertBefore(M,s.display.lineSpace.firstChild),O.value=Wn.text.join(`
25
+ `);var B=wt(c.ownerDocument);Bt(O),setTimeout(function(){s.display.lineSpace.removeChild(M),B.focus(),B==c&&l.showPrimarySelection()},50)}}bt(c,"copy",v),bt(c,"cut",v)},ae.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},ae.prototype.prepareSelection=function(){var e=sd(this.cm,!1);return e.focus=wt(this.div.ownerDocument)==this.div,e},ae.prototype.showSelection=function(e,i){!e||!this.cm.display.view.length||((e.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(e))},ae.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ae.prototype.showPrimarySelection=function(){var e=this.getSelection(),i=this.cm,l=i.doc.sel.primary(),s=l.from(),c=l.to();if(i.display.viewTo==i.display.viewFrom||s.line>=i.display.viewTo||c.line<i.display.viewFrom){e.removeAllRanges();return}var d=Yl(i,e.anchorNode,e.anchorOffset),v=Yl(i,e.focusNode,e.focusOffset);if(!(d&&!d.bad&&v&&!v.bad&&K(Ne(d,v),s)==0&&K(ee(d,v),c)==0)){var y=i.display.view,w=s.line>=i.display.viewFrom&&yp(i,s)||{node:y[0].measure.map[2],offset:0},_=c.line<i.display.viewTo&&yp(i,c);if(!_){var M=y[y.length-1].measure,O=M.maps?M.maps[M.maps.length-1]:M.map;_={node:O[O.length-1],offset:O[O.length-2]-O[O.length-3]}}if(!w||!_){e.removeAllRanges();return}var B=e.rangeCount&&e.getRangeAt(0),q;try{q=W(w.node,w.offset,_.offset,_.node)}catch{}q&&(!a&&i.state.focused?(e.collapse(w.node,w.offset),q.collapsed||(e.removeAllRanges(),e.addRange(q))):(e.removeAllRanges(),e.addRange(q)),B&&e.anchorNode==null?e.addRange(B):a&&this.startGracePeriod()),this.rememberSelection()}},ae.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},ae.prototype.showMultipleSelections=function(e){I(this.cm.display.cursorDiv,e.cursors),I(this.cm.display.selectionDiv,e.selection)},ae.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},ae.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var i=e.getRangeAt(0).commonAncestorContainer;return et(this.div,i)},ae.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||wt(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ae.prototype.blur=function(){this.div.blur()},ae.prototype.getField=function(){return this.div},ae.prototype.supportsTouch=function(){return!0},ae.prototype.receivedFocus=function(){var e=this,i=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):bn(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function l(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,l))}this.polling.set(this.cm.options.pollInterval,l)},ae.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},ae.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),i=this.cm;if(z&&x&&this.cm.display.gutterSpecs.length&&Gw(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var l=Yl(i,e.anchorNode,e.anchorOffset),s=Yl(i,e.focusNode,e.focusOffset);l&&s&&bn(i,function(){Ve(i.doc,Vr(l,s),P),(l.bad||s.bad)&&(i.curOp.selectionChanged=!0)})}}},ae.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,i=e.display,l=e.doc.sel.primary(),s=l.from(),c=l.to();if(s.ch==0&&s.line>e.firstLine()&&(s=R(s.line-1,At(e.doc,s.line-1).length)),c.ch==At(e.doc,c.line).text.length&&c.line<e.lastLine()&&(c=R(c.line+1,0)),s.line<i.viewFrom||c.line>i.viewTo-1)return!1;var d,v,y;s.line==i.viewFrom||(d=_i(e,s.line))==0?(v=re(i.view[0].line),y=i.view[0].node):(v=re(i.view[d].line),y=i.view[d-1].node.nextSibling);var w=_i(e,c.line),_,M;if(w==i.view.length-1?(_=i.viewTo-1,M=i.lineDiv.lastChild):(_=re(i.view[w+1].line)-1,M=i.view[w+1].node.previousSibling),!y)return!1;for(var O=e.doc.splitLines(Vw(e,y,M,v,_)),B=br(e.doc,R(v,0),R(_,At(e.doc,_).text.length));O.length>1&&B.length>1;)if(lt(O)==lt(B))O.pop(),B.pop(),_--;else if(O[0]==B[0])O.shift(),B.shift(),v++;else break;for(var q=0,X=0,rt=O[0],ct=B[0],mt=Math.min(rt.length,ct.length);q<mt&&rt.charCodeAt(q)==ct.charCodeAt(q);)++q;for(var _t=lt(O),yt=lt(B),Tt=Math.min(_t.length-(O.length==1?q:0),yt.length-(B.length==1?q:0));X<Tt&&_t.charCodeAt(_t.length-X-1)==yt.charCodeAt(yt.length-X-1);)++X;if(O.length==1&&B.length==1&&v==s.line)for(;q&&q>s.ch&&_t.charCodeAt(_t.length-X-1)==yt.charCodeAt(yt.length-X-1);)q--,X++;O[O.length-1]=_t.slice(0,_t.length-X).replace(/^\u200b+/,""),O[0]=O[0].slice(q).replace(/\u200b+$/,"");var Dt=R(v,q),Pt=R(_,B.length?lt(B).length-X:0);if(O.length>1||O[0]||K(Dt,Pt))return ho(e.doc,O,Dt,Pt,"+input"),!0},ae.prototype.ensurePolled=function(){this.forceCompositionEnd()},ae.prototype.reset=function(){this.forceCompositionEnd()},ae.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ae.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},ae.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&bn(this.cm,function(){return on(e.cm)})},ae.prototype.setUneditable=function(e){e.contentEditable="false"},ae.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||$e(this.cm,uu)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},ae.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},ae.prototype.onContextMenu=function(){},ae.prototype.resetPosition=function(){},ae.prototype.needsContentAttribute=!0;function yp(e,i){var l=Pc(e,i.line);if(!l||l.hidden)return null;var s=At(e.doc,i.line),c=Gh(l,s,i.line),d=be(s,e.doc.direction),v="left";if(d){var y=qe(d,i.ch);v=y%2?"right":"left"}var w=Xh(c.map,i.ch,v);return w.offset=w.collapse=="right"?w.end:w.start,w}function Gw(e){for(var i=e;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function yo(e,i){return i&&(e.bad=!0),e}function Vw(e,i,l,s,c){var d="",v=!1,y=e.doc.lineSeparator(),w=!1;function _(q){return function(X){return X.id==q}}function M(){v&&(d+=y,w&&(d+=y),v=w=!1)}function O(q){q&&(M(),d+=q)}function B(q){if(q.nodeType==1){var X=q.getAttribute("cm-text");if(X){O(X);return}var rt=q.getAttribute("cm-marker"),ct;if(rt){var mt=e.findMarks(R(s,0),R(c+1,0),_(+rt));mt.length&&(ct=mt[0].find(0))&&O(br(e.doc,ct.from,ct.to).join(y));return}if(q.getAttribute("contenteditable")=="false")return;var _t=/^(pre|div|p|li|table|br)$/i.test(q.nodeName);if(!/^br$/i.test(q.nodeName)&&q.textContent.length==0)return;_t&&M();for(var yt=0;yt<q.childNodes.length;yt++)B(q.childNodes[yt]);/^(pre|p)$/i.test(q.nodeName)&&(w=!0),_t&&(v=!0)}else q.nodeType==3&&O(q.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;B(i),i!=l;)i=i.nextSibling,w=!1;return d}function Yl(e,i,l){var s;if(i==e.display.lineDiv){if(s=e.display.lineDiv.childNodes[l],!s)return yo(e.clipPos(R(e.display.viewTo-1)),!0);i=null,l=0}else for(s=i;;s=s.parentNode){if(!s||s==e.display.lineDiv)return null;if(s.parentNode&&s.parentNode==e.display.lineDiv)break}for(var c=0;c<e.display.view.length;c++){var d=e.display.view[c];if(d.node==s)return Kw(d,i,l)}}function Kw(e,i,l){var s=e.text.firstChild,c=!1;if(!i||!et(s,i))return yo(R(re(e.line),0),!0);if(i==s&&(c=!0,i=s.childNodes[l],l=0,!i)){var d=e.rest?lt(e.rest):e.line;return yo(R(re(d),d.text.length),c)}var v=i.nodeType==3?i:null,y=i;for(!v&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(v=i.firstChild,l&&(l=v.nodeValue.length));y.parentNode!=s;)y=y.parentNode;var w=e.measure,_=w.maps;function M(ct,mt,_t){for(var yt=-1;yt<(_?_.length:0);yt++)for(var Tt=yt<0?w.map:_[yt],Dt=0;Dt<Tt.length;Dt+=3){var Pt=Tt[Dt+2];if(Pt==ct||Pt==mt){var Ut=re(yt<0?e.line:e.rest[yt]),pe=Tt[Dt]+_t;return(_t<0||Pt!=ct)&&(pe=Tt[Dt+(_t?1:0)]),R(Ut,pe)}}}var O=M(v,y,l);if(O)return yo(O,c);for(var B=y.nextSibling,q=v?v.nodeValue.length-l:0;B;B=B.nextSibling){if(O=M(B,B.firstChild,0),O)return yo(R(O.line,O.ch-q),c);q+=B.textContent.length}for(var X=y.previousSibling,rt=l;X;X=X.previousSibling){if(O=M(X,X.firstChild,-1),O)return yo(R(O.line,O.ch+rt),c);rt+=X.textContent.length}}var Te=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new st,this.hasSelection=!1,this.composing=null,this.resetting=!1};Te.prototype.init=function(e){var i=this,l=this,s=this.cm;this.createField(e);var c=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),E&&(c.style.width="0px"),bt(c,"input",function(){p&&g>=9&&i.hasSelection&&(i.hasSelection=null),l.poll()}),bt(c,"paste",function(v){Se(s,v)||hp(v,s)||(s.state.pasteIncoming=+new Date,l.fastPoll())});function d(v){if(!Se(s,v)){if(s.somethingSelected())Xl({lineWise:!1,text:s.getSelections()});else if(s.options.lineWiseCopyCut){var y=pp(s);Xl({lineWise:!0,text:y.text}),v.type=="cut"?s.setSelections(y.ranges,null,P):(l.prevInput="",c.value=y.text.join(`
26
+ `),Bt(c))}else return;v.type=="cut"&&(s.state.cutIncoming=+new Date)}}bt(c,"cut",d),bt(c,"copy",d),bt(e.scroller,"paste",function(v){if(!(_r(e,v)||Se(s,v))){if(!c.dispatchEvent){s.state.pasteIncoming=+new Date,l.focus();return}var y=new Event("paste");y.clipboardData=v.clipboardData,c.dispatchEvent(y)}}),bt(e.lineSpace,"selectstart",function(v){_r(e,v)||Ge(v)}),bt(c,"compositionstart",function(){var v=s.getCursor("from");l.composing&&l.composing.range.clear(),l.composing={start:v,range:s.markText(v,s.getCursor("to"),{className:"CodeMirror-composing"})}}),bt(c,"compositionend",function(){l.composing&&(l.poll(),l.composing.range.clear(),l.composing=null)})},Te.prototype.createField=function(e){this.wrapper=vp(),this.textarea=this.wrapper.firstChild},Te.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Te.prototype.prepareSelection=function(){var e=this.cm,i=e.display,l=e.doc,s=sd(e);if(e.options.moveInputWithCursor){var c=Hn(e,l.sel.primary().head,"div"),d=i.wrapper.getBoundingClientRect(),v=i.lineDiv.getBoundingClientRect();s.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,c.top+v.top-d.top)),s.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,c.left+v.left-d.left))}return s},Te.prototype.showSelection=function(e){var i=this.cm,l=i.display;I(l.cursorDiv,e.cursors),I(l.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Te.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var l=i.getSelection();this.textarea.value=l,i.state.focused&&Bt(this.textarea),p&&g>=9&&(this.hasSelection=l)}else e||(this.prevInput=this.textarea.value="",p&&g>=9&&(this.hasSelection=null));this.resetting=!1}},Te.prototype.getField=function(){return this.textarea},Te.prototype.supportsTouch=function(){return!1},Te.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!D||wt(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},Te.prototype.blur=function(){this.textarea.blur()},Te.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Te.prototype.receivedFocus=function(){this.slowPoll()},Te.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Te.prototype.fastPoll=function(){var e=!1,i=this;i.pollingFast=!0;function l(){var s=i.poll();!s&&!e?(e=!0,i.polling.set(60,l)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,l)},Te.prototype.poll=function(){var e=this,i=this.cm,l=this.textarea,s=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||qr(l)&&!s&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var c=l.value;if(c==s&&!i.somethingSelected())return!1;if(p&&g>=9&&this.hasSelection===c||G&&/[\uf700-\uf7ff]/.test(c))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var d=c.charCodeAt(0);if(d==8203&&!s&&(s="\u200B"),d==8666)return this.reset(),this.cm.execCommand("undo")}for(var v=0,y=Math.min(s.length,c.length);v<y&&s.charCodeAt(v)==c.charCodeAt(v);)++v;return bn(i,function(){uu(i,c.slice(v),s.length-v,null,e.composing?"*compose":null),c.length>1e3||c.indexOf(`
27
+ `)>-1?l.value=e.prevInput="":e.prevInput=c,e.composing&&(e.composing.range.clear(),e.composing.range=i.markText(e.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Te.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Te.prototype.onKeyPress=function(){p&&g>=9&&(this.hasSelection=null),this.fastPoll()},Te.prototype.onContextMenu=function(e){var i=this,l=i.cm,s=l.display,c=i.textarea;i.contextMenuPending&&i.contextMenuPending();var d=xi(l,e),v=s.scroller.scrollTop;if(!d||N)return;var y=l.options.resetSelectionOnContextMenu;y&&l.doc.sel.contains(d)==-1&&$e(l,Ve)(l.doc,Vr(d),P);var w=c.style.cssText,_=i.wrapper.style.cssText,M=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",c.style.cssText=`position: absolute; width: 30px; height: 30px;
28
+ top: `+(e.clientY-M.top-5)+"px; left: "+(e.clientX-M.left-5)+`px;
29
+ z-index: 1000; background: `+(p?"rgba(255, 255, 255, .05)":"transparent")+`;
30
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var O;m&&(O=c.ownerDocument.defaultView.scrollY),s.input.focus(),m&&c.ownerDocument.defaultView.scrollTo(null,O),s.input.reset(),l.somethingSelected()||(c.value=i.prevInput=" "),i.contextMenuPending=q,s.selForContextMenu=l.doc.sel,clearTimeout(s.detectingSelectAll);function B(){if(c.selectionStart!=null){var rt=l.somethingSelected(),ct="\u200B"+(rt?c.value:"");c.value="\u21DA",c.value=ct,i.prevInput=rt?"":"\u200B",c.selectionStart=1,c.selectionEnd=ct.length,s.selForContextMenu=l.doc.sel}}function q(){if(i.contextMenuPending==q&&(i.contextMenuPending=!1,i.wrapper.style.cssText=_,c.style.cssText=w,p&&g<9&&s.scrollbars.setScrollTop(s.scroller.scrollTop=v),c.selectionStart!=null)){(!p||p&&g<9)&&B();var rt=0,ct=function(){s.selForContextMenu==l.doc.sel&&c.selectionStart==0&&c.selectionEnd>0&&i.prevInput=="\u200B"?$e(l,Rd)(l):rt++<10?s.detectingSelectAll=setTimeout(ct,500):(s.selForContextMenu=null,s.input.reset())};s.detectingSelectAll=setTimeout(ct,200)}}if(p&&g>=9&&B(),vt){vr(e);var X=function(){je(window,"mouseup",X),setTimeout(q,20)};bt(window,"mouseup",X)}else setTimeout(q,50)},Te.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Te.prototype.setUneditable=function(){},Te.prototype.needsContentAttribute=!1;function Xw(e,i){if(i=i?tt(i):{},i.value=e.value,!i.tabindex&&e.tabIndex&&(i.tabindex=e.tabIndex),!i.placeholder&&e.placeholder&&(i.placeholder=e.placeholder),i.autofocus==null){var l=wt(e.ownerDocument);i.autofocus=l==e||e.getAttribute("autofocus")!=null&&l==document.body}function s(){e.value=y.getValue()}var c;if(e.form&&(bt(e.form,"submit",s),!i.leaveSubmitMethodAlone)){var d=e.form;c=d.submit;try{var v=d.submit=function(){s(),d.submit=c,d.submit(),d.submit=v}}catch{}}i.finishInit=function(w){w.save=s,w.getTextArea=function(){return e},w.toTextArea=function(){w.toTextArea=isNaN,s(),e.parentNode.removeChild(w.getWrapperElement()),e.style.display="",e.form&&(je(e.form,"submit",s),!i.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=c))}},e.style.display="none";var y=we(function(w){return e.parentNode.insertBefore(w,e.nextSibling)},i);return y}function Yw(e){e.off=je,e.on=bt,e.wheelEventPixels=rw,e.Doc=sn,e.splitLines=ts,e.countColumn=V,e.findColumn=nt,e.isWordChar=Ot,e.Pass=Lt,e.signal=ve,e.Line=eo,e.changeEnd=Kr,e.scrollbarModel=hd,e.Pos=R,e.cmpPos=K,e.modes=Fn,e.mimeModes=Hr,e.resolveMode=yn,e.getMode=mr,e.modeExtensions=Br,e.extendMode=xl,e.copyState=yr,e.startState=es,e.innerMode=Wr,e.commands=ks,e.keyMap=kr,e.keyName=Qd,e.isModifierKey=Yd,e.lookupKey=go,e.normalizeKeyMap=Cw,e.StringStream=ke,e.SharedTextMarker=xs,e.TextMarker=Yr,e.LineWidget=ws,e.e_preventDefault=Ge,e.e_stopPropagation=yi,e.e_stop=vr,e.addClass=Et,e.contains=et,e.rmClass=ft,e.keyNames=Zr}Hw(we),jw(we);var Zw="iter insert remove copy getEditor constructor".split(" ");for(var Zl in sn.prototype)sn.prototype.hasOwnProperty(Zl)&&Ct(Zw,Zl)<0&&(we.prototype[Zl]=function(e){return function(){return e.apply(this.doc,arguments)}}(sn.prototype[Zl]));return Ze(sn),we.inputStyles={textarea:Te,contenteditable:ae},we.defineMode=function(e){!we.defaults.mode&&e!="null"&&(we.defaults.mode=e),wl.apply(this,arguments)},we.defineMIME=Ji,we.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),we.defineMIME("text/plain","null"),we.defineExtension=function(e,i){we.prototype[e]=i},we.defineDocExtension=function(e,i){sn.prototype[e]=i},we.fromTextArea=Xw,Yw(we),we.version="5.65.9",we})}(Tu)),Tu.exports}var Hst=Xo(),Bst={exports:{}};(function(t,n){(function(r){r(Xo())})(function(r){r.defineMode("javascript",function(o,a){var u=o.indentUnit,f=a.statementIndent,h=a.jsonld,p=a.json||h,g=a.trackScope!==!1,m=a.typescript,b=a.wordCharacters||/[\w$\xa1-\uffff]/,x=function(){function T(Ne){return{type:Ne,style:"keyword"}}var $=T("keyword a"),R=T("keyword b"),K=T("keyword c"),It=T("keyword d"),Vt=T("operator"),ee={type:"atom",style:"atom"};return{if:T("if"),while:$,with:$,else:R,do:R,try:R,finally:R,return:It,break:It,continue:It,new:T("new"),delete:K,void:K,throw:K,debugger:T("debugger"),var:T("var"),const:T("var"),let:T("var"),function:T("function"),catch:T("catch"),for:T("for"),switch:T("switch"),case:T("case"),default:T("default"),in:Vt,typeof:Vt,instanceof:Vt,true:ee,false:ee,null:ee,undefined:ee,NaN:ee,Infinity:ee,this:T("this"),class:T("class"),super:T("atom"),yield:K,export:T("export"),import:T("import"),extends:K,await:K}}(),S=/[+\-*&%=<>!?|~^@]/,N=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function A(T){for(var $=!1,R,K=!1;(R=T.next())!=null;){if(!$){if(R=="/"&&!K)return;R=="["?K=!0:K&&R=="]"&&(K=!1)}$=!$&&R=="\\"}}var L,C;function E(T,$,R){return L=T,C=R,$}function z(T,$){var R=T.next();if(R=='"'||R=="'")return $.tokenize=D(R),$.tokenize(T,$);if(R=="."&&T.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return E("number","number");if(R=="."&&T.match(".."))return E("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(R))return E(R);if(R=="="&&T.eat(">"))return E("=>","operator");if(R=="0"&&T.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return E("number","number");if(/\d/.test(R))return T.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),E("number","number");if(R=="/")return T.eat("*")?($.tokenize=G,G(T,$)):T.eat("/")?(T.skipToEnd(),E("comment","comment")):Jn(T,$,1)?(A(T),T.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),E("regexp","string-2")):(T.eat("="),E("operator","operator",T.current()));if(R=="`")return $.tokenize=j,j(T,$);if(R=="#"&&T.peek()=="!")return T.skipToEnd(),E("meta","meta");if(R=="#"&&T.eatWhile(b))return E("variable","property");if(R=="<"&&T.match("!--")||R=="-"&&T.match("->")&&!/\S/.test(T.string.slice(0,T.start)))return T.skipToEnd(),E("comment","comment");if(S.test(R))return(R!=">"||!$.lexical||$.lexical.type!=">")&&(T.eat("=")?(R=="!"||R=="=")&&T.eat("="):/[<>*+\-|&?]/.test(R)&&(T.eat(R),R==">"&&T.eat(R))),R=="?"&&T.eat(".")?E("."):E("operator","operator",T.current());if(b.test(R)){T.eatWhile(b);var K=T.current();if($.lastType!="."){if(x.propertyIsEnumerable(K)){var It=x[K];return E(It.type,It.style,K)}if(K=="async"&&T.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return E("async","keyword",K)}return E("variable","variable",K)}}function D(T){return function($,R){var K=!1,It;if(h&&$.peek()=="@"&&$.match(N))return R.tokenize=z,E("jsonld-keyword","meta");for(;(It=$.next())!=null&&!(It==T&&!K);)K=!K&&It=="\\";return K||(R.tokenize=z),E("string","string")}}function G(T,$){for(var R=!1,K;K=T.next();){if(K=="/"&&R){$.tokenize=z;break}R=K=="*"}return E("comment","comment")}function j(T,$){for(var R=!1,K;(K=T.next())!=null;){if(!R&&(K=="`"||K=="$"&&T.eat("{"))){$.tokenize=z;break}R=!R&&K=="\\"}return E("quasi","string-2",T.current())}var it="([{}])";function J(T,$){$.fatArrowAt&&($.fatArrowAt=null);var R=T.string.indexOf("=>",T.start);if(!(R<0)){if(m){var K=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(T.string.slice(T.start,R));K&&(R=K.index)}for(var It=0,Vt=!1,ee=R-1;ee>=0;--ee){var Ne=T.string.charAt(ee),En=it.indexOf(Ne);if(En>=0&&En<3){if(!It){++ee;break}if(--It==0){Ne=="("&&(Vt=!0);break}}else if(En>=3&&En<6)++It;else if(b.test(Ne))Vt=!0;else if(/["'\/`]/.test(Ne))for(;;--ee){if(ee==0)return;var Ft=T.string.charAt(ee-1);if(Ft==Ne&&T.string.charAt(ee-2)!="\\"){ee--;break}}else if(Vt&&!It){++ee;break}}Vt&&!It&&($.fatArrowAt=ee)}}var dt={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function vt(T,$,R,K,It,Vt){this.indented=T,this.column=$,this.type=R,this.prev=It,this.info=Vt,K!=null&&(this.align=K)}function kt(T,$){if(!g)return!1;for(var R=T.localVars;R;R=R.next)if(R.name==$)return!0;for(var K=T.context;K;K=K.prev)for(var R=K.vars;R;R=R.next)if(R.name==$)return!0}function ft(T,$,R,K,It){var Vt=T.cc;for(U.state=T,U.stream=It,U.marked=null,U.cc=Vt,U.style=$,T.lexical.hasOwnProperty("align")||(T.lexical.align=!0);;){var ee=Vt.length?Vt.pop():p?Lt:Ct;if(ee(R,K)){for(;Vt.length&&Vt[Vt.length-1].lex;)Vt.pop()();return U.marked?U.marked:R=="variable"&&kt(T,K)?"variable-2":$}}}var U={state:null,column:null,marked:null,cc:null};function I(){for(var T=arguments.length-1;T>=0;T--)U.cc.push(arguments[T])}function k(){return I.apply(null,arguments),!0}function H(T,$){for(var R=$;R;R=R.next)if(R.name==T)return!0;return!1}function W(T){var $=U.state;if(U.marked="def",!!g){if($.context){if($.lexical.info=="var"&&$.context&&$.context.block){var R=et(T,$.context);if(R!=null){$.context=R;return}}else if(!H(T,$.localVars)){$.localVars=new qt(T,$.localVars);return}}a.globalVars&&!H(T,$.globalVars)&&($.globalVars=new qt(T,$.globalVars))}}function et(T,$){if($)if($.block){var R=et(T,$.prev);return R?R==$.prev?$:new Et(R,$.vars,!0):null}else return H(T,$.vars)?$:new Et($.prev,new qt(T,$.vars),!1);else return null}function wt(T){return T=="public"||T=="private"||T=="protected"||T=="abstract"||T=="readonly"}function Et(T,$,R){this.prev=T,this.vars=$,this.block=R}function qt(T,$){this.name=T,this.next=$}var Bt=new qt("this",new qt("arguments",null));function Gt(){U.state.context=new Et(U.state.context,U.state.localVars,!1),U.state.localVars=Bt}function ne(){U.state.context=new Et(U.state.context,U.state.localVars,!0),U.state.localVars=null}Gt.lex=ne.lex=!0;function Q(){U.state.localVars=U.state.context.vars,U.state.context=U.state.context.prev}Q.lex=!0;function tt(T,$){var R=function(){var K=U.state,It=K.indented;if(K.lexical.type=="stat")It=K.lexical.indented;else for(var Vt=K.lexical;Vt&&Vt.type==")"&&Vt.align;Vt=Vt.prev)It=Vt.indented;K.lexical=new vt(It,U.stream.column(),T,null,K.lexical,$)};return R.lex=!0,R}function V(){var T=U.state;T.lexical.prev&&(T.lexical.type==")"&&(T.indented=T.lexical.indented),T.lexical=T.lexical.prev)}V.lex=!0;function st(T){function $(R){return R==T?k():T==";"||R=="}"||R==")"||R=="]"?I():k($)}return $}function Ct(T,$){return T=="var"?k(tt("vardef",$),vr,st(";"),V):T=="keyword a"?k(tt("form"),F,Ct,V):T=="keyword b"?k(tt("form"),Ct,V):T=="keyword d"?U.stream.match(/^\s*$/,!1)?k():k(tt("stat"),nt,st(";"),V):T=="debugger"?k(st(";")):T=="{"?k(tt("}"),ne,Ln,V,Q):T==";"?k():T=="if"?(U.state.lexical.info=="else"&&U.state.cc[U.state.cc.length-1]==V&&U.state.cc.pop()(),k(tt("form"),F,Ct,V,Qi)):T=="function"?k(Zn):T=="for"?k(tt("form"),ne,yl,Ct,Q,V):T=="class"||m&&$=="interface"?(U.marked="keyword",k(tt("form",T=="class"?T:$),wl,V)):T=="variable"?m&&$=="declare"?(U.marked="keyword",k(Ct)):m&&($=="module"||$=="enum"||$=="type")&&U.stream.match(/^\s*\w/,!1)?(U.marked="keyword",$=="enum"?k(to):$=="type"?k(bl,st("operator"),bt,st(";")):k(tt("form"),rn,st("{"),tt("}"),Ln,V,V)):m&&$=="namespace"?(U.marked="keyword",k(tt("form"),Lt,Ct,V)):m&&$=="abstract"?(U.marked="keyword",k(Ct)):k(tt("stat"),zt):T=="switch"?k(tt("form"),F,st("{"),tt("}","switch"),ne,Ln,V,V,Q):T=="case"?k(Lt,st(":")):T=="default"?k(st(":")):T=="catch"?k(tt("form"),Gt,de,Ct,V,Q):T=="export"?k(tt("stat"),Br,V):T=="import"?k(tt("stat"),yr,V):T=="async"?k(Ct):$=="@"?k(Lt,Ct):I(tt("stat"),Lt,st(";"),V)}function de(T){if(T=="(")return k(Fn,st(")"))}function Lt(T,$){return Y(T,$,!1)}function P(T,$){return Y(T,$,!0)}function F(T){return T!="("?I():k(tt(")"),nt,st(")"),V)}function Y(T,$,R){if(U.state.fatArrowAt==U.stream.start){var K=R?at:xt;if(T=="(")return k(Gt,tt(")"),Xt(Fn,")"),V,st("=>"),K,Q);if(T=="variable")return I(Gt,rn,st("=>"),K,Q)}var It=R?pt:ot;return dt.hasOwnProperty(T)?k(It):T=="function"?k(Zn,It):T=="class"||m&&$=="interface"?(U.marked="keyword",k(tt("form"),Hr,V)):T=="keyword c"||T=="async"?k(R?P:Lt):T=="("?k(tt(")"),nt,st(")"),V,It):T=="operator"||T=="spread"?k(R?P:Lt):T=="["?k(tt("]"),br,V,It):T=="{"?mn(te,"}",null,It):T=="quasi"?I(lt,It):T=="new"?k($t(R)):k()}function nt(T){return T.match(/[;\}\)\],]/)?I():I(Lt)}function ot(T,$){return T==","?k(nt):pt(T,$,!1)}function pt(T,$,R){var K=R==!1?ot:pt,It=R==!1?Lt:P;if(T=="=>")return k(Gt,R?at:xt,Q);if(T=="operator")return/\+\+|--/.test($)||m&&$=="!"?k(K):m&&$=="<"&&U.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(tt(">"),Xt(bt,">"),V,K):$=="?"?k(Lt,st(":"),It):k(It);if(T=="quasi")return I(lt,K);if(T!=";"){if(T=="(")return mn(P,")","call",K);if(T==".")return k(jt,K);if(T=="[")return k(tt("]"),nt,st("]"),V,K);if(m&&$=="as")return U.marked="keyword",k(bt,K);if(T=="regexp")return U.state.lastType=U.marked="operator",U.stream.backUp(U.stream.pos-U.stream.start-1),k(It)}}function lt(T,$){return T!="quasi"?I():$.slice($.length-2)!="${"?k(lt):k(nt,gt)}function gt(T){if(T=="}")return U.marked="string-2",U.state.tokenize=j,k(lt)}function xt(T){return J(U.stream,U.state),I(T=="{"?Ct:Lt)}function at(T){return J(U.stream,U.state),I(T=="{"?Ct:P)}function $t(T){return function($){return $=="."?k(T?Ot:Nt):$=="variable"&&m?k(Ge,T?pt:ot):I(T?P:Lt)}}function Nt(T,$){if($=="target")return U.marked="keyword",k(ot)}function Ot(T,$){if($=="target")return U.marked="keyword",k(pt)}function zt(T){return T==":"?k(V,Ct):I(ot,st(";"),V)}function jt(T){if(T=="variable")return U.marked="property",k()}function te(T,$){if(T=="async")return U.marked="property",k(te);if(T=="variable"||U.style=="keyword"){if(U.marked="property",$=="get"||$=="set")return k(Qt);var R;return m&&U.state.fatArrowAt==U.stream.start&&(R=U.stream.match(/^\s*:\s*/,!1))&&(U.state.fatArrowAt=U.stream.pos+R[0].length),k(se)}else{if(T=="number"||T=="string")return U.marked=h?"property":U.style+" property",k(se);if(T=="jsonld-keyword")return k(se);if(m&&wt($))return U.marked="keyword",k(te);if(T=="[")return k(Lt,qe,st("]"),se);if(T=="spread")return k(P,se);if($=="*")return U.marked="keyword",k(te);if(T==":")return I(se)}}function Qt(T){return T!="variable"?I(se):(U.marked="property",k(Zn))}function se(T){if(T==":")return k(P);if(T=="(")return I(Zn)}function Xt(T,$,R){function K(It,Vt){if(R?R.indexOf(It)>-1:It==","){var ee=U.state.lexical;return ee.info=="call"&&(ee.pos=(ee.pos||0)+1),k(function(Ne,En){return Ne==$||En==$?I():I(T)},K)}return It==$||Vt==$?k():R&&R.indexOf(";")>-1?I(T):k(st($))}return function(It,Vt){return It==$||Vt==$?k():I(T,K)}}function mn(T,$,R){for(var K=3;K<arguments.length;K++)U.cc.push(arguments[K]);return k(tt($,R),Xt(T,$),V)}function Ln(T){return T=="}"?k():I(Ct,Ln)}function qe(T,$){if(m){if(T==":")return k(bt);if($=="?")return k(qe)}}function Zi(T,$){if(m&&(T==":"||$=="in"))return k(bt)}function be(T){if(m&&T==":")return U.stream.match(/^\s*\w+\s+is\b/,!1)?k(Lt,nn,bt):k(bt)}function nn(T,$){if($=="is")return U.marked="keyword",k()}function bt(T,$){if($=="keyof"||$=="typeof"||$=="infer"||$=="readonly")return U.marked="keyword",k($=="typeof"?P:bt);if(T=="variable"||$=="void")return U.marked="type",k(Ze);if($=="|"||$=="&")return k(bt);if(T=="string"||T=="number"||T=="atom")return k(Ze);if(T=="[")return k(tt("]"),Xt(bt,"]",","),V,Ze);if(T=="{")return k(tt("}"),je,V,Ze);if(T=="(")return k(Xt(Ye,")"),Zo,Ze);if(T=="<")return k(Xt(bt,">"),bt);if(T=="quasi")return I(Se,Ze)}function Zo(T){if(T=="=>")return k(bt)}function je(T){return T.match(/[\}\)\]]/)?k():T==","||T==";"?k(je):I(ve,je)}function ve(T,$){if(T=="variable"||U.style=="keyword")return U.marked="property",k(ve);if($=="?"||T=="number"||T=="string")return k(ve);if(T==":")return k(bt);if(T=="[")return k(st("variable"),Zi,st("]"),ve);if(T=="(")return I(Qn,ve);if(!T.match(/[;\}\)\],]/))return k()}function Se(T,$){return T!="quasi"?I():$.slice($.length-2)!="${"?k(Se):k(bt,ml)}function ml(T){if(T=="}")return U.marked="string-2",U.state.tokenize=j,k(Se)}function Ye(T,$){return T=="variable"&&U.stream.match(/^\s*[?:]/,!1)||$=="?"?k(Ye):T==":"?k(bt):T=="spread"?k(Ye):I(bt)}function Ze(T,$){if($=="<")return k(tt(">"),Xt(bt,">"),V,Ze);if($=="|"||T=="."||$=="&")return k(bt);if(T=="[")return k(bt,st("]"),Ze);if($=="extends"||$=="implements")return U.marked="keyword",k(bt);if($=="?")return k(bt,st(":"),bt)}function Ge(T,$){if($=="<")return k(tt(">"),Xt(bt,">"),V,Ze)}function yi(){return I(bt,Qo)}function Qo(T,$){if($=="=")return k(bt)}function vr(T,$){return $=="enum"?(U.marked="keyword",k(to)):I(rn,qe,$n,xc)}function rn(T,$){if(m&&wt($))return U.marked="keyword",k(rn);if(T=="variable")return W($),k();if(T=="spread")return k(rn);if(T=="[")return mn(wc,"]");if(T=="{")return mn(Jo,"}")}function Jo(T,$){return T=="variable"&&!U.stream.match(/^\s*:/,!1)?(W($),k($n)):(T=="variable"&&(U.marked="property"),T=="spread"?k(rn):T=="}"?I():T=="["?k(Lt,st("]"),st(":"),Jo):k(st(":"),rn,$n))}function wc(){return I(rn,$n)}function $n(T,$){if($=="=")return k(P)}function xc(T){if(T==",")return k(vr)}function Qi(T,$){if(T=="keyword b"&&$=="else")return k(tt("form","else"),Ct,V)}function yl(T,$){if($=="await")return k(yl);if(T=="(")return k(tt(")"),ts,V)}function ts(T){return T=="var"?k(vr,qr):T=="variable"?k(qr):I(qr)}function qr(T,$){return T==")"?k():T==";"?k(qr):$=="in"||$=="of"?(U.marked="keyword",k(Lt,qr)):I(Lt,qr)}function Zn(T,$){if($=="*")return U.marked="keyword",k(Zn);if(T=="variable")return W($),k(Zn);if(T=="(")return k(Gt,tt(")"),Xt(Fn,")"),V,be,Ct,Q);if(m&&$=="<")return k(tt(">"),Xt(yi,">"),V,Zn)}function Qn(T,$){if($=="*")return U.marked="keyword",k(Qn);if(T=="variable")return W($),k(Qn);if(T=="(")return k(Gt,tt(")"),Xt(Fn,")"),V,be,Q);if(m&&$=="<")return k(tt(">"),Xt(yi,">"),V,Qn)}function bl(T,$){if(T=="keyword"||T=="variable")return U.marked="type",k(bl);if($=="<")return k(tt(">"),Xt(yi,">"),V)}function Fn(T,$){return $=="@"&&k(Lt,Fn),T=="spread"?k(Fn):m&&wt($)?(U.marked="keyword",k(Fn)):m&&T=="this"?k(qe,$n):I(rn,qe,$n)}function Hr(T,$){return T=="variable"?wl(T,$):Ji(T,$)}function wl(T,$){if(T=="variable")return W($),k(Ji)}function Ji(T,$){if($=="<")return k(tt(">"),Xt(yi,">"),V,Ji);if($=="extends"||$=="implements"||m&&T==",")return $=="implements"&&(U.marked="keyword"),k(m?bt:Lt,Ji);if(T=="{")return k(tt("}"),yn,V)}function yn(T,$){if(T=="async"||T=="variable"&&($=="static"||$=="get"||$=="set"||m&&wt($))&&U.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return U.marked="keyword",k(yn);if(T=="variable"||U.style=="keyword")return U.marked="property",k(mr,yn);if(T=="number"||T=="string")return k(mr,yn);if(T=="[")return k(Lt,qe,st("]"),mr,yn);if($=="*")return U.marked="keyword",k(yn);if(m&&T=="(")return I(Qn,yn);if(T==";"||T==",")return k(yn);if(T=="}")return k();if($=="@")return k(Lt,yn)}function mr(T,$){if($=="!"||$=="?")return k(mr);if(T==":")return k(bt,$n);if($=="=")return k(P);var R=U.state.lexical.prev,K=R&&R.info=="interface";return I(K?Qn:Zn)}function Br(T,$){return $=="*"?(U.marked="keyword",k(At,st(";"))):$=="default"?(U.marked="keyword",k(Lt,st(";"))):T=="{"?k(Xt(xl,"}"),At,st(";")):I(Ct)}function xl(T,$){if($=="as")return U.marked="keyword",k(st("variable"));if(T=="variable")return I(P,xl)}function yr(T){return T=="string"?k():T=="("?I(Lt):T=="."?I(ot):I(Wr,es,At)}function Wr(T,$){return T=="{"?mn(Wr,"}"):(T=="variable"&&W($),$=="*"&&(U.marked="keyword"),k(ke))}function es(T){if(T==",")return k(Wr,es)}function ke(T,$){if($=="as")return U.marked="keyword",k(Wr)}function At(T,$){if($=="from")return U.marked="keyword",k(Lt)}function br(T){return T=="]"?k():I(Xt(P,"]"))}function to(){return I(tt("form"),rn,st("{"),tt("}"),Xt(Dn,"}"),V,V)}function Dn(){return I(rn,$n)}function re(T,$){return T.lastType=="operator"||T.lastType==","||S.test($.charAt(0))||/[,.]/.test($.charAt(0))}function Jn(T,$,R){return $.tokenize==z&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test($.lastType)||$.lastType=="quasi"&&/\{\s*$/.test(T.string.slice(0,T.pos-(R||0)))}return{startState:function(T){var $={tokenize:z,lastType:"sof",cc:[],lexical:new vt((T||0)-u,0,"block",!1),localVars:a.localVars,context:a.localVars&&new Et(null,null,!1),indented:T||0};return a.globalVars&&typeof a.globalVars=="object"&&($.globalVars=a.globalVars),$},token:function(T,$){if(T.sol()&&($.lexical.hasOwnProperty("align")||($.lexical.align=!1),$.indented=T.indentation(),J(T,$)),$.tokenize!=G&&T.eatSpace())return null;var R=$.tokenize(T,$);return L=="comment"?R:($.lastType=L=="operator"&&(C=="++"||C=="--")?"incdec":L,ft($,R,L,C,T))},indent:function(T,$){if(T.tokenize==G||T.tokenize==j)return r.Pass;if(T.tokenize!=z)return 0;var R=$&&$.charAt(0),K=T.lexical,It;if(!/^\s*else\b/.test($))for(var Vt=T.cc.length-1;Vt>=0;--Vt){var ee=T.cc[Vt];if(ee==V)K=K.prev;else if(ee!=Qi&&ee!=Q)break}for(;(K.type=="stat"||K.type=="form")&&(R=="}"||(It=T.cc[T.cc.length-1])&&(It==ot||It==pt)&&!/^[,\.=+\-*:?[\(]/.test($));)K=K.prev;f&&K.type==")"&&K.prev.type=="stat"&&(K=K.prev);var Ne=K.type,En=R==Ne;return Ne=="vardef"?K.indented+(T.lastType=="operator"||T.lastType==","?K.info.length+1:0):Ne=="form"&&R=="{"?K.indented:Ne=="form"?K.indented+u:Ne=="stat"?K.indented+(re(T,$)?f||u:0):K.info=="switch"&&!En&&a.doubleIndentSwitch!=!1?K.indented+(/^(?:case|default)\b/.test($)?u:2*u):K.align?K.column+(En?0:1):K.indented+(En?0:u)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:p?null:"/*",blockCommentEnd:p?null:"*/",blockCommentContinue:p?null:" * ",lineComment:p?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:p?"json":"javascript",jsonldMode:h,jsonMode:p,expressionAllowed:Jn,skipExpression:function(T){ft(T,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var Wst={exports:{}};(function(t,n){(function(r){r(Xo())})(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},a={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(u,f){var h=u.indentUnit,p={},g=f.htmlMode?o:a;for(var m in g)p[m]=g[m];for(var m in f)p[m]=f[m];var b,x;function S(k,H){function W(Et){return H.tokenize=Et,Et(k,H)}var et=k.next();if(et=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?W(L("atom","]]>")):null:k.match("--")?W(L("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),W(C(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),H.tokenize=L("meta","?>"),"meta"):(b=k.eat("/")?"closeTag":"openTag",H.tokenize=N,"tag bracket");if(et=="&"){var wt;return k.eat("#")?k.eat("x")?wt=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):wt=k.eatWhile(/[\d]/)&&k.eat(";"):wt=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),wt?"atom":"error"}else return k.eatWhile(/[^&<]/),null}S.isInText=!0;function N(k,H){var W=k.next();if(W==">"||W=="/"&&k.eat(">"))return H.tokenize=S,b=W==">"?"endTag":"selfcloseTag","tag bracket";if(W=="=")return b="equals",null;if(W=="<"){H.tokenize=S,H.state=j,H.tagName=H.tagStart=null;var et=H.tokenize(k,H);return et?et+" tag error":"tag error"}else return/[\'\"]/.test(W)?(H.tokenize=A(W),H.stringStartCol=k.column(),H.tokenize(k,H)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function A(k){var H=function(W,et){for(;!W.eol();)if(W.next()==k){et.tokenize=N;break}return"string"};return H.isInAttribute=!0,H}function L(k,H){return function(W,et){for(;!W.eol();){if(W.match(H)){et.tokenize=S;break}W.next()}return k}}function C(k){return function(H,W){for(var et;(et=H.next())!=null;){if(et=="<")return W.tokenize=C(k+1),W.tokenize(H,W);if(et==">")if(k==1){W.tokenize=S;break}else return W.tokenize=C(k-1),W.tokenize(H,W)}return"meta"}}function E(k){return k&&k.toLowerCase()}function z(k,H,W){this.prev=k.context,this.tagName=H||"",this.indent=k.indented,this.startOfLine=W,(p.doNotIndent.hasOwnProperty(H)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function D(k){k.context&&(k.context=k.context.prev)}function G(k,H){for(var W;;){if(!k.context||(W=k.context.tagName,!p.contextGrabbers.hasOwnProperty(E(W))||!p.contextGrabbers[E(W)].hasOwnProperty(E(H))))return;D(k)}}function j(k,H,W){return k=="openTag"?(W.tagStart=H.column(),it):k=="closeTag"?J:j}function it(k,H,W){return k=="word"?(W.tagName=H.current(),x="tag",kt):p.allowMissingTagName&&k=="endTag"?(x="tag bracket",kt(k,H,W)):(x="error",it)}function J(k,H,W){if(k=="word"){var et=H.current();return W.context&&W.context.tagName!=et&&p.implicitlyClosed.hasOwnProperty(E(W.context.tagName))&&D(W),W.context&&W.context.tagName==et||p.matchClosing===!1?(x="tag",dt):(x="tag error",vt)}else return p.allowMissingTagName&&k=="endTag"?(x="tag bracket",dt(k,H,W)):(x="error",vt)}function dt(k,H,W){return k!="endTag"?(x="error",dt):(D(W),j)}function vt(k,H,W){return x="error",dt(k,H,W)}function kt(k,H,W){if(k=="word")return x="attribute",ft;if(k=="endTag"||k=="selfcloseTag"){var et=W.tagName,wt=W.tagStart;return W.tagName=W.tagStart=null,k=="selfcloseTag"||p.autoSelfClosers.hasOwnProperty(E(et))?G(W,et):(G(W,et),W.context=new z(W,et,wt==W.indented)),j}return x="error",kt}function ft(k,H,W){return k=="equals"?U:(p.allowMissing||(x="error"),kt(k,H,W))}function U(k,H,W){return k=="string"?I:k=="word"&&p.allowUnquoted?(x="string",kt):(x="error",kt(k,H,W))}function I(k,H,W){return k=="string"?I:kt(k,H,W)}return{startState:function(k){var H={tokenize:S,state:j,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(H.baseIndent=k),H},token:function(k,H){if(!H.tagName&&k.sol()&&(H.indented=k.indentation()),k.eatSpace())return null;b=null;var W=H.tokenize(k,H);return(W||b)&&W!="comment"&&(x=null,H.state=H.state(b||W,k,H),x&&(W=x=="error"?W+" error":x)),W},indent:function(k,H,W){var et=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+h;if(et&&et.noIndent)return r.Pass;if(k.tokenize!=N&&k.tokenize!=S)return W?W.match(/^(\s*)/)[0].length:0;if(k.tagName)return p.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+h*(p.multilineTagIndentFactor||1);if(p.alignCDATA&&/<!\[CDATA\[/.test(H))return 0;var wt=H&&/^<(\/)?([\w_:\.-]*)/.exec(H);if(wt&&wt[1])for(;et;)if(et.tagName==wt[2]){et=et.prev;break}else if(p.implicitlyClosed.hasOwnProperty(E(et.tagName)))et=et.prev;else break;else if(wt)for(;et;){var Et=p.contextGrabbers[E(et.tagName)];if(Et&&Et.hasOwnProperty(E(wt[2])))et=et.prev;else break}for(;et&&et.prev&&!et.startOfLine;)et=et.prev;return et?et.indent+h:k.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:p.htmlMode?"html":"xml",helperType:p.htmlMode?"html":"xml",skipAttribute:function(k){k.state==U&&(k.state=kt)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var H=[],W=k.context;W;W=W.prev)H.push(W.tagName);return H.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();(function(t,n){(function(r){r(Xo(),Wst.exports,Bst.exports)})(function(r){function o(u,f,h,p){this.state=u,this.mode=f,this.depth=h,this.prev=p}function a(u){return new o(r.copyState(u.mode,u.state),u.mode,u.depth,u.prev&&a(u.prev))}r.defineMode("jsx",function(u,f){var h=r.getMode(u,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),p=r.getMode(u,f&&f.base||"javascript");function g(S){var N=S.tagName;S.tagName=null;var A=h.indent(S,"","");return S.tagName=N,A}function m(S,N){return N.context.mode==h?b(S,N,N.context):x(S,N,N.context)}function b(S,N,A){if(A.depth==2)return S.match(/^.*?\*\//)?A.depth=1:S.skipToEnd(),"comment";if(S.peek()=="{"){h.skipAttribute(A.state);var L=g(A.state),C=A.state.context;if(C&&S.match(/^[^>]*>\s*$/,!1)){for(;C.prev&&!C.startOfLine;)C=C.prev;C.startOfLine?L-=u.indentUnit:A.prev.state.lexical&&(L=A.prev.state.lexical.indented)}else A.depth==1&&(L+=u.indentUnit);return N.context=new o(r.startState(p,L),p,0,N.context),null}if(A.depth==1){if(S.peek()=="<")return h.skipAttribute(A.state),N.context=new o(r.startState(h,g(A.state)),h,0,N.context),null;if(S.match("//"))return S.skipToEnd(),"comment";if(S.match("/*"))return A.depth=2,m(S,N)}var E=h.token(S,A.state),z=S.current(),D;return/\btag\b/.test(E)?/>$/.test(z)?A.state.context?A.depth=0:N.context=N.context.prev:/^</.test(z)&&(A.depth=1):!E&&(D=z.indexOf("{"))>-1&&S.backUp(z.length-D),E}function x(S,N,A){if(S.peek()=="<"&&p.expressionAllowed(S,A.state))return N.context=new o(r.startState(h,p.indent(A.state,"","")),h,0,N.context),p.skipExpression(A.state),null;var L=p.token(S,A.state);if(!L&&A.depth!=null){var C=S.current();C=="{"?A.depth++:C=="}"&&--A.depth==0&&(N.context=N.context.prev)}return L}return{startState:function(){return{context:new o(r.startState(p),p)}},copyState:function(S){return{context:a(S.context)}},token:m,indent:function(S,N,A){return S.context.mode.indent(S.context.state,N,A)},innerMode:function(S){return S.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})();(function(t,n){(function(r){r(Xo())})(function(r){r.defineOption("placeholder","",function(g,m,b){var x=b&&b!=r.Init;if(m&&!x)g.on("blur",f),g.on("change",h),g.on("swapDoc",h),r.on(g.getInputField(),"compositionupdate",g.state.placeholderCompose=function(){u(g)}),h(g);else if(!m&&x){g.off("blur",f),g.off("change",h),g.off("swapDoc",h),r.off(g.getInputField(),"compositionupdate",g.state.placeholderCompose),o(g);var S=g.getWrapperElement();S.className=S.className.replace(" CodeMirror-empty","")}m&&!g.hasFocus()&&f(g)});function o(g){g.state.placeholder&&(g.state.placeholder.parentNode.removeChild(g.state.placeholder),g.state.placeholder=null)}function a(g){o(g);var m=g.state.placeholder=document.createElement("pre");m.style.cssText="height: 0; overflow: visible",m.style.direction=g.getOption("direction"),m.className="CodeMirror-placeholder CodeMirror-line-like";var b=g.getOption("placeholder");typeof b=="string"&&(b=document.createTextNode(b)),m.appendChild(b),g.display.lineSpace.insertBefore(m,g.display.lineSpace.firstChild)}function u(g){setTimeout(function(){var m=!1;if(g.lineCount()==1){var b=g.getInputField();m=b.nodeName=="TEXTAREA"?!g.getLine(0).length:!/[^\u200b]/.test(b.querySelector(".CodeMirror-line").textContent)}m?a(g):o(g)},20)}function f(g){p(g)&&a(g)}function h(g){var m=g.getWrapperElement(),b=p(g);m.className=m.className.replace(" CodeMirror-empty","")+(b?" CodeMirror-empty":""),b?a(g):o(g)}function p(g){return g.lineCount()===1&&g.getLine(0)===""}})})();(function(t,n){(function(r){r(Xo())})(function(r){function o(f,h,p){this.orientation=h,this.scroll=p,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+h,this.inner=this.node.appendChild(document.createElement("div"));var g=this;r.on(this.inner,"mousedown",function(b){if(b.which!=1)return;r.e_preventDefault(b);var x=g.orientation=="horizontal"?"pageX":"pageY",S=b[x],N=g.pos;function A(){r.off(document,"mousemove",L),r.off(document,"mouseup",A)}function L(C){if(C.which!=1)return A();g.moveTo(N+(C[x]-S)*(g.total/g.size))}r.on(document,"mousemove",L),r.on(document,"mouseup",A)}),r.on(this.node,"click",function(b){r.e_preventDefault(b);var x=g.inner.getBoundingClientRect(),S;g.orientation=="horizontal"?S=b.clientX<x.left?-1:b.clientX>x.right?1:0:S=b.clientY<x.top?-1:b.clientY>x.bottom?1:0,g.moveTo(g.pos+S*g.screen)});function m(b){var x=r.wheelEventPixels(b)[g.orientation=="horizontal"?"x":"y"],S=g.pos;g.moveTo(g.pos+x),g.pos!=S&&r.e_preventDefault(b)}r.on(this.node,"mousewheel",m),r.on(this.node,"DOMMouseScroll",m)}o.prototype.setPos=function(f,h){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!h&&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 a=10;o.prototype.update=function(f,h,p){var g=this.screen!=h||this.total!=f||this.size!=p;g&&(this.screen=h,this.total=f,this.size=p);var m=this.screen*(this.size/this.total);m<a&&(this.size-=a-m,m=a),this.inner.style[this.orientation=="horizontal"?"width":"height"]=m+"px",this.setPos(this.pos,g)};function u(f,h,p){this.addClass=f,this.horiz=new o(f,"horizontal",p),h(this.horiz.node),this.vert=new o(f,"vertical",p),h(this.vert.node),this.width=null}u.prototype.update=function(f){if(this.width==null){var h=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;h&&(this.width=parseInt(h.height))}var p=this.width||0,g=f.scrollWidth>f.clientWidth+1,m=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=m?"block":"none",this.horiz.node.style.display=g?"block":"none",m&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(g?p:0)),this.vert.node.style.bottom=g?p+"px":"0"),g&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(m?p:0)-f.barLeft),this.horiz.node.style.right=m?p+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:m?p:0,bottom:g?p:0}},u.prototype.setScrollTop=function(f){this.vert.setPos(f)},u.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},u.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,h){return new u("CodeMirror-simplescroll",f,h)},r.scrollbarModel.overlay=function(f,h){return new u("CodeMirror-overlayscroll",f,h)}})})();function Ust(t,n,r={}){const o=Hst.fromTextArea(t.value,{theme:"vars",...r,scrollbarStyle:"simple"});let a=!1;return o.on("change",()=>{if(a){a=!1;return}n.value=o.getValue()}),Fe(n,u=>{if(u!==o.getValue()){a=!0;const f=o.listSelections();o.replaceRange(u,o.posFromIndex(0),o.posFromIndex(1/0)),o.setSelections(f)}},{immediate:!0}),Nf(o)}const jst={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},ly=oe({__name:"CodeMirror",props:{modelValue:null,mode:null,readOnly:{type:Boolean}},emits:["update:modelValue","save"],setup(t,{expose:n,emit:r}){const o=t,a=Q1(),u={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=Kt(),h=tT(o,"modelValue",r,{passive:!0}),p=sl();return n({cm:p}),cl(async()=>{p.value=Ust(f,h,{...o,...a,mode:u[o.mode||""]||o.mode,readOnly:o.readOnly?"nocursor":void 0,extraKeys:{"Cmd-S":function(g){r("save",g.getValue())},"Ctrl-S":function(g){r("save",g.getValue())}}}),p.value.setSize("100%","100%"),p.value.clearHistory(),setTimeout(()=>p.value.refresh(),100)}),(g,m)=>(ht(),Mt("div",jst,[ut("textarea",{ref_key:"el",ref:f},null,512)]))}}),Gst=oe({__name:"ViewEditor",props:{file:null},emits:["draft"],setup(t,{emit:n}){const r=t,o=Kt(""),a=sl(void 0),u=Kt(!1);Fe(()=>r.file,async()=>{var C;if(!r.file||!((C=r.file)!=null&&C.filepath)){o.value="",a.value=o.value,u.value=!1;return}o.value=await We.rpc.readFile(r.file.filepath),a.value=o.value,u.value=!1},{immediate:!0});const f=St(()=>{var C,E;return((E=(C=r.file)==null?void 0:C.filepath)==null?void 0:E.split(/\./g).pop())||"js"}),h=Kt(),p=St(()=>{var C;return(C=h.value)==null?void 0:C.cm}),g=St(()=>{var C;return((C=r.file)==null?void 0:C.tasks.filter(E=>{var z;return((z=E.result)==null?void 0:z.state)==="fail"}))||[]}),m=[],b=[],x=[],S=Kt(!1),N=()=>{x.forEach(([C,E,z])=>{C.removeEventListener("click",E),z()}),x.length=0};VC(h,()=>{var C;(C=p.value)==null||C.refresh()});function A(){u.value=a.value!==p.value.getValue()}Fe(u,C=>{n("draft",C)},{immediate:!0}),Fe([p,g],([C])=>{if(!C){N();return}setTimeout(()=>{N(),m.forEach(E=>E.clear()),b.forEach(E=>{var z;return(z=p.value)==null?void 0:z.removeLineClass(E,"wrap")}),m.length=0,b.length=0,C.on("changes",A),g.value.forEach(E=>{var G;const z=(G=E.result)==null?void 0:G.error,D=((z==null?void 0:z.stacks)||[]).filter(j=>{var it;return j.file&&j.file===((it=r.file)==null?void 0:it.filepath)});if(D.length){const j=D[0].sourcePos||D[0],it=document.createElement("div");it.className="op80 flex gap-x-2 items-center";const J=document.createElement("pre");J.className="c-red-600 dark:c-red-400",J.textContent=`${" ".repeat(j.column)}^ ${z==null?void 0:z.nameStr}: ${z==null?void 0:z.message}`,it.appendChild(J);const dt=document.createElement("span");dt.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",dt.tabIndex=0,dt.ariaLabel="Open in Editor",p0(dt,{content:"Open in Editor",placement:"bottom"},!1);const vt=async()=>{await oy(D[0].file,j.line,j.column)};it.appendChild(dt),x.push([dt,vt,()=>Qf(dt)]),b.push(p.value.addLineClass(j.line-1,"wrap","bg-red-500/10")),m.push(p.value.addLineWidget(j.line-1,it))}}),S.value||C.clearHistory()},100)},{flush:"post"});async function L(C){S.value=!0,await We.rpc.writeFile(r.file.filepath,C),a.value=C,u.value=!1}return(C,E)=>{const z=ly;return ht(),ce(z,hi({ref_key:"editor",ref:h,modelValue:o.value,"onUpdate:modelValue":E[0]||(E[0]=D=>o.value=D),"h-full":""},{lineNumbers:!0},{mode:Z(f),"data-testid":"code-mirror",onSave:L}),null,16,["modelValue","mode"])}}}),Vst=oe({__name:"Modal",props:{modelValue:{type:Boolean,default:!1},direction:{default:"bottom"}},emits:["update:modelValue"],setup(t){const n=t,r=St(()=>{switch(n.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=St(()=>{switch(n.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}});return(a,u)=>(ht(),Mt("div",{class:ge(["fixed inset-0 z-40",t.modelValue?"":"pointer-events-none"])},[ut("div",{class:ge(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.modelValue?"opacity-50":"opacity-0"]),onClick:u[0]||(u[0]=f=>a.$emit("update:modelValue",!1))},null,2),ut("div",{class:ge(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[Z(r)]]),style:kn(t.modelValue?{}:{transform:Z(o)})},[Kn(a.$slots,"default")],6)],2))}}),Kst=["aria-label","opacity","disabled","hover"],Yo=oe({__name:"IconButton",props:{icon:null,title:null,disabled:{type:Boolean}},setup(t){return(n,r)=>(ht(),Mt("button",{"aria-label":t.title,role:"button",opacity:t.disabled?10:70,rounded:"",disabled:t.disabled,hover:t.disabled?"":"bg-active op100",class:"w-1.4em h-1.4em flex"},[Kn(n.$slots,"default",{},()=>[ut("div",{class:ge(t.icon),ma:""},null,2)])],8,Kst))}}),Xst={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Yst={"p-4":"",relative:""},Zst=ut("p",null,"Module Info",-1),Qst={op50:"","font-mono":"","text-sm":""},Jst={key:0,"p-5":""},tlt={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},elt=ut("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1),nlt=ut("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1),rlt={key:0},ilt={p:"x3 y-1","bg-overlay":"",border:"base b t"},olt=oe({__name:"ModuleTransformResultView",props:{id:null},emits:["close"],setup(t,{emit:n}){const r=t,o=bC(()=>We.rpc.getTransformResult(r.id)),a=St(()=>{var p;return((p=r.id)==null?void 0:p.split(/\./g).pop())||"js"}),u=St(()=>{var p,g;return((g=(p=o.value)==null?void 0:p.source)==null?void 0:g.trim())||""}),f=St(()=>{var p,g;return((g=(p=o.value)==null?void 0:p.code)==null?void 0:g.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=St(()=>{var p,g,m,b,x;return{mappings:(m=(g=(p=o.value)==null?void 0:p.map)==null?void 0:g.mappings)!=null?m:"",version:(x=(b=o.value)==null?void 0:b.map)==null?void 0:x.version}});return xC("Escape",()=>{n("close")}),(p,g)=>{const m=Yo,b=ly;return ht(),Mt("div",Xst,[ut("div",Yst,[Zst,ut("p",Qst,Zt(t.id),1),Rt(m,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:g[0]||(g[0]=x=>n("close"))})]),Z(o)?(ht(),Mt(ue,{key:1},[ut("div",tlt,[elt,nlt,Rt(b,hi({"h-full":"","model-value":Z(u),"read-only":""},{lineNumbers:!0},{mode:Z(a)}),null,16,["model-value","mode"]),Rt(b,hi({"h-full":"","model-value":Z(f),"read-only":""},{lineNumbers:!0},{mode:Z(a)}),null,16,["model-value","mode"])]),Z(h).mappings!==""?(ht(),Mt("div",rlt,[ut("div",ilt," Source map (v"+Zt(Z(h).version)+") ",1),Rt(b,hi({"model-value":Z(h).mappings,"read-only":""},{lineNumbers:!0},{mode:Z(a)}),null,16,["model-value","mode"])])):ye("",!0)],64)):(ht(),Mt("div",Jst," No transform result found for this module. "))])}}});var af="http://www.w3.org/1999/xhtml";const av={svg:"http://www.w3.org/2000/svg",xhtml:af,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function mc(t){var n=t+="",r=n.indexOf(":");return r>=0&&(n=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),av.hasOwnProperty(n)?{space:av[n],local:t}:t}function slt(t){return function(){var n=this.ownerDocument,r=this.namespaceURI;return r===af&&n.documentElement.namespaceURI===af?n.createElement(t):n.createElementNS(r,t)}}function llt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function ay(t){var n=mc(t);return(n.local?llt:slt)(n)}function alt(){}function oh(t){return t==null?alt:function(){return this.querySelector(t)}}function clt(t){typeof t!="function"&&(t=oh(t));for(var n=this._groups,r=n.length,o=new Array(r),a=0;a<r;++a)for(var u=n[a],f=u.length,h=o[a]=new Array(f),p,g,m=0;m<f;++m)(p=u[m])&&(g=t.call(p,p.__data__,m,u))&&("__data__"in p&&(g.__data__=p.__data__),h[m]=g);return new On(o,this._parents)}function ult(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function flt(){return[]}function cy(t){return t==null?flt:function(){return this.querySelectorAll(t)}}function hlt(t){return function(){return ult(t.apply(this,arguments))}}function dlt(t){typeof t=="function"?t=hlt(t):t=cy(t);for(var n=this._groups,r=n.length,o=[],a=[],u=0;u<r;++u)for(var f=n[u],h=f.length,p,g=0;g<h;++g)(p=f[g])&&(o.push(t.call(p,p.__data__,g,f)),a.push(p));return new On(o,a)}function uy(t){return function(){return this.matches(t)}}function fy(t){return function(n){return n.matches(t)}}var plt=Array.prototype.find;function glt(t){return function(){return plt.call(this.children,t)}}function vlt(){return this.firstElementChild}function mlt(t){return this.select(t==null?vlt:glt(typeof t=="function"?t:fy(t)))}var ylt=Array.prototype.filter;function blt(){return Array.from(this.children)}function wlt(t){return function(){return ylt.call(this.children,t)}}function xlt(t){return this.selectAll(t==null?blt:wlt(typeof t=="function"?t:fy(t)))}function _lt(t){typeof t!="function"&&(t=uy(t));for(var n=this._groups,r=n.length,o=new Array(r),a=0;a<r;++a)for(var u=n[a],f=u.length,h=o[a]=[],p,g=0;g<f;++g)(p=u[g])&&t.call(p,p.__data__,g,u)&&h.push(p);return new On(o,this._parents)}function hy(t){return new Array(t.length)}function Slt(){return new On(this._enter||this._groups.map(hy),this._parents)}function Ia(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}Ia.prototype={constructor:Ia,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function klt(t){return function(){return t}}function Clt(t,n,r,o,a,u){for(var f=0,h,p=n.length,g=u.length;f<g;++f)(h=n[f])?(h.__data__=u[f],o[f]=h):r[f]=new Ia(t,u[f]);for(;f<p;++f)(h=n[f])&&(a[f]=h)}function Tlt(t,n,r,o,a,u,f){var h,p,g=new Map,m=n.length,b=u.length,x=new Array(m),S;for(h=0;h<m;++h)(p=n[h])&&(x[h]=S=f.call(p,p.__data__,h,n)+"",g.has(S)?a[h]=p:g.set(S,p));for(h=0;h<b;++h)S=f.call(t,u[h],h,u)+"",(p=g.get(S))?(o[h]=p,p.__data__=u[h],g.delete(S)):r[h]=new Ia(t,u[h]);for(h=0;h<m;++h)(p=n[h])&&g.get(x[h])===p&&(a[h]=p)}function Llt(t){return t.__data__}function Elt(t,n){if(!arguments.length)return Array.from(this,Llt);var r=n?Tlt:Clt,o=this._parents,a=this._groups;typeof t!="function"&&(t=klt(t));for(var u=a.length,f=new Array(u),h=new Array(u),p=new Array(u),g=0;g<u;++g){var m=o[g],b=a[g],x=b.length,S=Alt(t.call(m,m&&m.__data__,g,o)),N=S.length,A=h[g]=new Array(N),L=f[g]=new Array(N),C=p[g]=new Array(x);r(m,b,A,L,C,S,n);for(var E=0,z=0,D,G;E<N;++E)if(D=A[E]){for(E>=z&&(z=E+1);!(G=L[z])&&++z<N;);D._next=G||null}}return f=new On(f,o),f._enter=h,f._exit=p,f}function Alt(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Mlt(){return new On(this._exit||this._groups.map(hy),this._parents)}function Nlt(t,n,r){var o=this.enter(),a=this,u=this.exit();return typeof t=="function"?(o=t(o),o&&(o=o.selection())):o=o.append(t+""),n!=null&&(a=n(a),a&&(a=a.selection())),r==null?u.remove():r(u),o&&a?o.merge(a).order():a}function Plt(t){for(var n=t.selection?t.selection():t,r=this._groups,o=n._groups,a=r.length,u=o.length,f=Math.min(a,u),h=new Array(a),p=0;p<f;++p)for(var g=r[p],m=o[p],b=g.length,x=h[p]=new Array(b),S,N=0;N<b;++N)(S=g[N]||m[N])&&(x[N]=S);for(;p<a;++p)h[p]=r[p];return new On(h,this._parents)}function Olt(){for(var t=this._groups,n=-1,r=t.length;++n<r;)for(var o=t[n],a=o.length-1,u=o[a],f;--a>=0;)(f=o[a])&&(u&&f.compareDocumentPosition(u)^4&&u.parentNode.insertBefore(f,u),u=f);return this}function $lt(t){t||(t=Dlt);function n(b,x){return b&&x?t(b.__data__,x.__data__):!b-!x}for(var r=this._groups,o=r.length,a=new Array(o),u=0;u<o;++u){for(var f=r[u],h=f.length,p=a[u]=new Array(h),g,m=0;m<h;++m)(g=f[m])&&(p[m]=g);p.sort(n)}return new On(a,this._parents).order()}function Dlt(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function Rlt(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function zlt(){return Array.from(this)}function Ilt(){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o=t[n],a=0,u=o.length;a<u;++a){var f=o[a];if(f)return f}return null}function Flt(){let t=0;for(const n of this)++t;return t}function qlt(){return!this.node()}function Hlt(t){for(var n=this._groups,r=0,o=n.length;r<o;++r)for(var a=n[r],u=0,f=a.length,h;u<f;++u)(h=a[u])&&t.call(h,h.__data__,u,a);return this}function Blt(t){return function(){this.removeAttribute(t)}}function Wlt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ult(t,n){return function(){this.setAttribute(t,n)}}function jlt(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Glt(t,n){return function(){var r=n.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function Vlt(t,n){return function(){var r=n.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function Klt(t,n){var r=mc(t);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((n==null?r.local?Wlt:Blt:typeof n=="function"?r.local?Vlt:Glt:r.local?jlt:Ult)(r,n))}function dy(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Xlt(t){return function(){this.style.removeProperty(t)}}function Ylt(t,n,r){return function(){this.style.setProperty(t,n,r)}}function Zlt(t,n,r){return function(){var o=n.apply(this,arguments);o==null?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}function Qlt(t,n,r){return arguments.length>1?this.each((n==null?Xlt:typeof n=="function"?Zlt:Ylt)(t,n,r==null?"":r)):Wo(this.node(),t)}function Wo(t,n){return t.style.getPropertyValue(n)||dy(t).getComputedStyle(t,null).getPropertyValue(n)}function Jlt(t){return function(){delete this[t]}}function tat(t,n){return function(){this[t]=n}}function eat(t,n){return function(){var r=n.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function nat(t,n){return arguments.length>1?this.each((n==null?Jlt:typeof n=="function"?eat:tat)(t,n)):this.node()[t]}function py(t){return t.trim().split(/^|\s+/)}function sh(t){return t.classList||new gy(t)}function gy(t){this._node=t,this._names=py(t.getAttribute("class")||"")}gy.prototype={add:function(t){var n=this._names.indexOf(t);n<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function vy(t,n){for(var r=sh(t),o=-1,a=n.length;++o<a;)r.add(n[o])}function my(t,n){for(var r=sh(t),o=-1,a=n.length;++o<a;)r.remove(n[o])}function rat(t){return function(){vy(this,t)}}function iat(t){return function(){my(this,t)}}function oat(t,n){return function(){(n.apply(this,arguments)?vy:my)(this,t)}}function sat(t,n){var r=py(t+"");if(arguments.length<2){for(var o=sh(this.node()),a=-1,u=r.length;++a<u;)if(!o.contains(r[a]))return!1;return!0}return this.each((typeof n=="function"?oat:n?rat:iat)(r,n))}function lat(){this.textContent=""}function aat(t){return function(){this.textContent=t}}function cat(t){return function(){var n=t.apply(this,arguments);this.textContent=n==null?"":n}}function uat(t){return arguments.length?this.each(t==null?lat:(typeof t=="function"?cat:aat)(t)):this.node().textContent}function fat(){this.innerHTML=""}function hat(t){return function(){this.innerHTML=t}}function dat(t){return function(){var n=t.apply(this,arguments);this.innerHTML=n==null?"":n}}function pat(t){return arguments.length?this.each(t==null?fat:(typeof t=="function"?dat:hat)(t)):this.node().innerHTML}function gat(){this.nextSibling&&this.parentNode.appendChild(this)}function vat(){return this.each(gat)}function mat(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function yat(){return this.each(mat)}function bat(t){var n=typeof t=="function"?t:ay(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function wat(){return null}function xat(t,n){var r=typeof t=="function"?t:ay(t),o=n==null?wat:typeof n=="function"?n:oh(n);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function _at(){var t=this.parentNode;t&&t.removeChild(this)}function Sat(){return this.each(_at)}function kat(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Cat(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Tat(t){return this.select(t?Cat:kat)}function Lat(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Eat(t){return function(n){t.call(this,n,this.__data__)}}function Aat(t){return t.trim().split(/^|\s+/).map(function(n){var r="",o=n.indexOf(".");return o>=0&&(r=n.slice(o+1),n=n.slice(0,o)),{type:n,name:r}})}function Mat(t){return function(){var n=this.__on;if(!!n){for(var r=0,o=-1,a=n.length,u;r<a;++r)u=n[r],(!t.type||u.type===t.type)&&u.name===t.name?this.removeEventListener(u.type,u.listener,u.options):n[++o]=u;++o?n.length=o:delete this.__on}}}function Nat(t,n,r){return function(){var o=this.__on,a,u=Eat(n);if(o){for(var f=0,h=o.length;f<h;++f)if((a=o[f]).type===t.type&&a.name===t.name){this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=u,a.options=r),a.value=n;return}}this.addEventListener(t.type,u,r),a={type:t.type,name:t.name,value:n,listener:u,options:r},o?o.push(a):this.__on=[a]}}function Pat(t,n,r){var o=Aat(t+""),a,u=o.length,f;if(arguments.length<2){var h=this.node().__on;if(h){for(var p=0,g=h.length,m;p<g;++p)for(a=0,m=h[p];a<u;++a)if((f=o[a]).type===m.type&&f.name===m.name)return m.value}return}for(h=n?Nat:Mat,a=0;a<u;++a)this.each(h(o[a],n,r));return this}function yy(t,n,r){var o=dy(t),a=o.CustomEvent;typeof a=="function"?a=new a(n,r):(a=o.document.createEvent("Event"),r?(a.initEvent(n,r.bubbles,r.cancelable),a.detail=r.detail):a.initEvent(n,!1,!1)),t.dispatchEvent(a)}function Oat(t,n){return function(){return yy(this,t,n)}}function $at(t,n){return function(){return yy(this,t,n.apply(this,arguments))}}function Dat(t,n){return this.each((typeof n=="function"?$at:Oat)(t,n))}function*Rat(){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o=t[n],a=0,u=o.length,f;a<u;++a)(f=o[a])&&(yield f)}var by=[null];function On(t,n){this._groups=t,this._parents=n}function dl(){return new On([[document.documentElement]],by)}function zat(){return this}On.prototype=dl.prototype={constructor:On,select:clt,selectAll:dlt,selectChild:mlt,selectChildren:xlt,filter:_lt,data:Elt,enter:Slt,exit:Mlt,join:Nlt,merge:Plt,selection:zat,order:Olt,sort:$lt,call:Rlt,nodes:zlt,node:Ilt,size:Flt,empty:qlt,each:Hlt,attr:Klt,style:Qlt,property:nat,classed:sat,text:uat,html:pat,raise:vat,lower:yat,append:bat,insert:xat,remove:Sat,clone:Tat,datum:Lat,on:Pat,dispatch:Dat,[Symbol.iterator]:Rat};function _n(t){return typeof t=="string"?new On([[document.querySelector(t)]],[document.documentElement]):new On([[t]],by)}function Iat(t){let n;for(;n=t.sourceEvent;)t=n;return t}function Ar(t,n){if(t=Iat(t),n===void 0&&(n=t.currentTarget),n){var r=n.ownerSVGElement||n;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=t.clientX,o.y=t.clientY,o=o.matrixTransform(n.getScreenCTM().inverse()),[o.x,o.y]}if(n.getBoundingClientRect){var a=n.getBoundingClientRect();return[t.clientX-a.left-n.clientLeft,t.clientY-a.top-n.clientTop]}}return[t.pageX,t.pageY]}var Fat={value:()=>{}};function pl(){for(var t=0,n=arguments.length,r={},o;t<n;++t){if(!(o=arguments[t]+"")||o in r||/[\s.]/.test(o))throw new Error("illegal type: "+o);r[o]=[]}return new ba(r)}function ba(t){this._=t}function qat(t,n){return t.trim().split(/^|\s+/).map(function(r){var o="",a=r.indexOf(".");if(a>=0&&(o=r.slice(a+1),r=r.slice(0,a)),r&&!n.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}ba.prototype=pl.prototype={constructor:ba,on:function(t,n){var r=this._,o=qat(t+"",r),a,u=-1,f=o.length;if(arguments.length<2){for(;++u<f;)if((a=(t=o[u]).type)&&(a=Hat(r[a],t.name)))return a;return}if(n!=null&&typeof n!="function")throw new Error("invalid callback: "+n);for(;++u<f;)if(a=(t=o[u]).type)r[a]=cv(r[a],t.name,n);else if(n==null)for(a in r)r[a]=cv(r[a],t.name,null);return this},copy:function(){var t={},n=this._;for(var r in n)t[r]=n[r].slice();return new ba(t)},call:function(t,n){if((a=arguments.length-2)>0)for(var r=new Array(a),o=0,a,u;o<a;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(u=this._[t],o=0,a=u.length;o<a;++o)u[o].value.apply(n,r)},apply:function(t,n,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var o=this._[t],a=0,u=o.length;a<u;++a)o[a].value.apply(n,r)}};function Hat(t,n){for(var r=0,o=t.length,a;r<o;++r)if((a=t[r]).name===n)return a.value}function cv(t,n,r){for(var o=0,a=t.length;o<a;++o)if(t[o].name===n){t[o]=Fat,t=t.slice(0,o).concat(t.slice(o+1));break}return r!=null&&t.push({name:n,value:r}),t}const Bat={passive:!1},el={capture:!0,passive:!1};function Lu(t){t.stopImmediatePropagation()}function No(t){t.preventDefault(),t.stopImmediatePropagation()}function wy(t){var n=t.document.documentElement,r=_n(t).on("dragstart.drag",No,el);"onselectstart"in n?r.on("selectstart.drag",No,el):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function xy(t,n){var r=t.document.documentElement,o=_n(t).on("dragstart.drag",null);n&&(o.on("click.drag",No,el),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 ia=t=>()=>t;function cf(t,{sourceEvent:n,subject:r,target:o,identifier:a,active:u,x:f,y:h,dx:p,dy:g,dispatch:m}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:a,enumerable:!0,configurable:!0},active:{value:u,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:h,enumerable:!0,configurable:!0},dx:{value:p,enumerable:!0,configurable:!0},dy:{value:g,enumerable:!0,configurable:!0},_:{value:m}})}cf.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function Wat(t){return!t.ctrlKey&&!t.button}function Uat(){return this.parentNode}function jat(t,n){return n==null?{x:t.x,y:t.y}:n}function Gat(){return navigator.maxTouchPoints||"ontouchstart"in this}function Vat(){var t=Wat,n=Uat,r=jat,o=Gat,a={},u=pl("start","drag","end"),f=0,h,p,g,m,b=0;function x(D){D.on("mousedown.drag",S).filter(o).on("touchstart.drag",L).on("touchmove.drag",C,Bat).on("touchend.drag touchcancel.drag",E).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function S(D,G){if(!(m||!t.call(this,D,G))){var j=z(this,n.call(this,D,G),D,G,"mouse");!j||(_n(D.view).on("mousemove.drag",N,el).on("mouseup.drag",A,el),wy(D.view),Lu(D),g=!1,h=D.clientX,p=D.clientY,j("start",D))}}function N(D){if(No(D),!g){var G=D.clientX-h,j=D.clientY-p;g=G*G+j*j>b}a.mouse("drag",D)}function A(D){_n(D.view).on("mousemove.drag mouseup.drag",null),xy(D.view,g),No(D),a.mouse("end",D)}function L(D,G){if(!!t.call(this,D,G)){var j=D.changedTouches,it=n.call(this,D,G),J=j.length,dt,vt;for(dt=0;dt<J;++dt)(vt=z(this,it,D,G,j[dt].identifier,j[dt]))&&(Lu(D),vt("start",D,j[dt]))}}function C(D){var G=D.changedTouches,j=G.length,it,J;for(it=0;it<j;++it)(J=a[G[it].identifier])&&(No(D),J("drag",D,G[it]))}function E(D){var G=D.changedTouches,j=G.length,it,J;for(m&&clearTimeout(m),m=setTimeout(function(){m=null},500),it=0;it<j;++it)(J=a[G[it].identifier])&&(Lu(D),J("end",D,G[it]))}function z(D,G,j,it,J,dt){var vt=u.copy(),kt=Ar(dt||j,G),ft,U,I;if((I=r.call(D,new cf("beforestart",{sourceEvent:j,target:x,identifier:J,active:f,x:kt[0],y:kt[1],dx:0,dy:0,dispatch:vt}),it))!=null)return ft=I.x-kt[0]||0,U=I.y-kt[1]||0,function k(H,W,et){var wt=kt,Et;switch(H){case"start":a[J]=k,Et=f++;break;case"end":delete a[J],--f;case"drag":kt=Ar(et||W,G),Et=f;break}vt.call(H,D,new cf(H,{sourceEvent:W,subject:I,target:x,identifier:J,active:Et,x:kt[0]+ft,y:kt[1]+U,dx:kt[0]-wt[0],dy:kt[1]-wt[1],dispatch:vt}),it)}}return x.filter=function(D){return arguments.length?(t=typeof D=="function"?D:ia(!!D),x):t},x.container=function(D){return arguments.length?(n=typeof D=="function"?D:ia(D),x):n},x.subject=function(D){return arguments.length?(r=typeof D=="function"?D:ia(D),x):r},x.touchable=function(D){return arguments.length?(o=typeof D=="function"?D:ia(!!D),x):o},x.on=function(){var D=u.on.apply(u,arguments);return D===u?x:D},x.clickDistance=function(D){return arguments.length?(b=(D=+D)*D,x):Math.sqrt(b)},x}function lh(t,n,r){t.prototype=n.prototype=r,r.constructor=t}function _y(t,n){var r=Object.create(t.prototype);for(var o in n)r[o]=n[o];return r}function gl(){}var nl=.7,Fa=1/nl,Po="\\s*([+-]?\\d+)\\s*",rl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ur="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Kat=/^#([0-9a-f]{3,8})$/,Xat=new RegExp(`^rgb\\(${Po},${Po},${Po}\\)$`),Yat=new RegExp(`^rgb\\(${ur},${ur},${ur}\\)$`),Zat=new RegExp(`^rgba\\(${Po},${Po},${Po},${rl}\\)$`),Qat=new RegExp(`^rgba\\(${ur},${ur},${ur},${rl}\\)$`),Jat=new RegExp(`^hsl\\(${rl},${ur},${ur}\\)$`),tct=new RegExp(`^hsla\\(${rl},${ur},${ur},${rl}\\)$`),uv={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};lh(gl,il,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:fv,formatHex:fv,formatHex8:ect,formatHsl:nct,formatRgb:hv,toString:hv});function fv(){return this.rgb().formatHex()}function ect(){return this.rgb().formatHex8()}function nct(){return Sy(this).formatHsl()}function hv(){return this.rgb().formatRgb()}function il(t){var n,r;return t=(t+"").trim().toLowerCase(),(n=Kat.exec(t))?(r=n[1].length,n=parseInt(n[1],16),r===6?dv(n):r===3?new Sn(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):r===8?oa(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):r===4?oa(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=Xat.exec(t))?new Sn(n[1],n[2],n[3],1):(n=Yat.exec(t))?new Sn(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=Zat.exec(t))?oa(n[1],n[2],n[3],n[4]):(n=Qat.exec(t))?oa(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=Jat.exec(t))?vv(n[1],n[2]/100,n[3]/100,1):(n=tct.exec(t))?vv(n[1],n[2]/100,n[3]/100,n[4]):uv.hasOwnProperty(t)?dv(uv[t]):t==="transparent"?new Sn(NaN,NaN,NaN,0):null}function dv(t){return new Sn(t>>16&255,t>>8&255,t&255,1)}function oa(t,n,r,o){return o<=0&&(t=n=r=NaN),new Sn(t,n,r,o)}function rct(t){return t instanceof gl||(t=il(t)),t?(t=t.rgb(),new Sn(t.r,t.g,t.b,t.opacity)):new Sn}function uf(t,n,r,o){return arguments.length===1?rct(t):new Sn(t,n,r,o==null?1:o)}function Sn(t,n,r,o){this.r=+t,this.g=+n,this.b=+r,this.opacity=+o}lh(Sn,uf,_y(gl,{brighter(t){return t=t==null?Fa:Math.pow(Fa,t),new Sn(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?nl:Math.pow(nl,t),new Sn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Sn(Ui(this.r),Ui(this.g),Ui(this.b),qa(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:pv,formatHex:pv,formatHex8:ict,formatRgb:gv,toString:gv}));function pv(){return`#${qi(this.r)}${qi(this.g)}${qi(this.b)}`}function ict(){return`#${qi(this.r)}${qi(this.g)}${qi(this.b)}${qi((isNaN(this.opacity)?1:this.opacity)*255)}`}function gv(){const t=qa(this.opacity);return`${t===1?"rgb(":"rgba("}${Ui(this.r)}, ${Ui(this.g)}, ${Ui(this.b)}${t===1?")":`, ${t})`}`}function qa(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ui(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function qi(t){return t=Ui(t),(t<16?"0":"")+t.toString(16)}function vv(t,n,r,o){return o<=0?t=n=r=NaN:r<=0||r>=1?t=n=NaN:n<=0&&(t=NaN),new Gn(t,n,r,o)}function Sy(t){if(t instanceof Gn)return new Gn(t.h,t.s,t.l,t.opacity);if(t instanceof gl||(t=il(t)),!t)return new Gn;if(t instanceof Gn)return t;t=t.rgb();var n=t.r/255,r=t.g/255,o=t.b/255,a=Math.min(n,r,o),u=Math.max(n,r,o),f=NaN,h=u-a,p=(u+a)/2;return h?(n===u?f=(r-o)/h+(r<o)*6:r===u?f=(o-n)/h+2:f=(n-r)/h+4,h/=p<.5?u+a:2-u-a,f*=60):h=p>0&&p<1?0:f,new Gn(f,h,p,t.opacity)}function oct(t,n,r,o){return arguments.length===1?Sy(t):new Gn(t,n,r,o==null?1:o)}function Gn(t,n,r,o){this.h=+t,this.s=+n,this.l=+r,this.opacity=+o}lh(Gn,oct,_y(gl,{brighter(t){return t=t==null?Fa:Math.pow(Fa,t),new Gn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?nl:Math.pow(nl,t),new Gn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,n=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*n,a=2*r-o;return new Sn(Eu(t>=240?t-240:t+120,a,o),Eu(t,a,o),Eu(t<120?t+240:t-120,a,o),this.opacity)},clamp(){return new Gn(mv(this.h),sa(this.s),sa(this.l),qa(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 t=qa(this.opacity);return`${t===1?"hsl(":"hsla("}${mv(this.h)}, ${sa(this.s)*100}%, ${sa(this.l)*100}%${t===1?")":`, ${t})`}`}}));function mv(t){return t=(t||0)%360,t<0?t+360:t}function sa(t){return Math.max(0,Math.min(1,t||0))}function Eu(t,n,r){return(t<60?n+(r-n)*t/60:t<180?r:t<240?n+(r-n)*(240-t)/60:n)*255}const ky=t=>()=>t;function sct(t,n){return function(r){return t+r*n}}function lct(t,n,r){return t=Math.pow(t,r),n=Math.pow(n,r)-t,r=1/r,function(o){return Math.pow(t+o*n,r)}}function act(t){return(t=+t)==1?Cy:function(n,r){return r-n?lct(n,r,t):ky(isNaN(n)?r:n)}}function Cy(t,n){var r=n-t;return r?sct(t,r):ky(isNaN(t)?n:t)}const yv=function t(n){var r=act(n);function o(a,u){var f=r((a=uf(a)).r,(u=uf(u)).r),h=r(a.g,u.g),p=r(a.b,u.b),g=Cy(a.opacity,u.opacity);return function(m){return a.r=f(m),a.g=h(m),a.b=p(m),a.opacity=g(m),a+""}}return o.gamma=t,o}(1);function oi(t,n){return t=+t,n=+n,function(r){return t*(1-r)+n*r}}var ff=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Au=new RegExp(ff.source,"g");function cct(t){return function(){return t}}function uct(t){return function(n){return t(n)+""}}function fct(t,n){var r=ff.lastIndex=Au.lastIndex=0,o,a,u,f=-1,h=[],p=[];for(t=t+"",n=n+"";(o=ff.exec(t))&&(a=Au.exec(n));)(u=a.index)>r&&(u=n.slice(r,u),h[f]?h[f]+=u:h[++f]=u),(o=o[0])===(a=a[0])?h[f]?h[f]+=a:h[++f]=a:(h[++f]=null,p.push({i:f,x:oi(o,a)})),r=Au.lastIndex;return r<n.length&&(u=n.slice(r),h[f]?h[f]+=u:h[++f]=u),h.length<2?p[0]?uct(p[0].x):cct(n):(n=p.length,function(g){for(var m=0,b;m<n;++m)h[(b=p[m]).i]=b.x(g);return h.join("")})}var bv=180/Math.PI,hf={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ty(t,n,r,o,a,u){var f,h,p;return(f=Math.sqrt(t*t+n*n))&&(t/=f,n/=f),(p=t*r+n*o)&&(r-=t*p,o-=n*p),(h=Math.sqrt(r*r+o*o))&&(r/=h,o/=h,p/=h),t*o<n*r&&(t=-t,n=-n,p=-p,f=-f),{translateX:a,translateY:u,rotate:Math.atan2(n,t)*bv,skewX:Math.atan(p)*bv,scaleX:f,scaleY:h}}var la;function hct(t){const n=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return n.isIdentity?hf:Ty(n.a,n.b,n.c,n.d,n.e,n.f)}function dct(t){return t==null||(la||(la=document.createElementNS("http://www.w3.org/2000/svg","g")),la.setAttribute("transform",t),!(t=la.transform.baseVal.consolidate()))?hf:(t=t.matrix,Ty(t.a,t.b,t.c,t.d,t.e,t.f))}function Ly(t,n,r,o){function a(g){return g.length?g.pop()+" ":""}function u(g,m,b,x,S,N){if(g!==b||m!==x){var A=S.push("translate(",null,n,null,r);N.push({i:A-4,x:oi(g,b)},{i:A-2,x:oi(m,x)})}else(b||x)&&S.push("translate("+b+n+x+r)}function f(g,m,b,x){g!==m?(g-m>180?m+=360:m-g>180&&(g+=360),x.push({i:b.push(a(b)+"rotate(",null,o)-2,x:oi(g,m)})):m&&b.push(a(b)+"rotate("+m+o)}function h(g,m,b,x){g!==m?x.push({i:b.push(a(b)+"skewX(",null,o)-2,x:oi(g,m)}):m&&b.push(a(b)+"skewX("+m+o)}function p(g,m,b,x,S,N){if(g!==b||m!==x){var A=S.push(a(S)+"scale(",null,",",null,")");N.push({i:A-4,x:oi(g,b)},{i:A-2,x:oi(m,x)})}else(b!==1||x!==1)&&S.push(a(S)+"scale("+b+","+x+")")}return function(g,m){var b=[],x=[];return g=t(g),m=t(m),u(g.translateX,g.translateY,m.translateX,m.translateY,b,x),f(g.rotate,m.rotate,b,x),h(g.skewX,m.skewX,b,x),p(g.scaleX,g.scaleY,m.scaleX,m.scaleY,b,x),g=m=null,function(S){for(var N=-1,A=x.length,L;++N<A;)b[(L=x[N]).i]=L.x(S);return b.join("")}}}var pct=Ly(hct,"px, ","px)","deg)"),gct=Ly(dct,", ",")",")"),vct=1e-12;function wv(t){return((t=Math.exp(t))+1/t)/2}function mct(t){return((t=Math.exp(t))-1/t)/2}function yct(t){return((t=Math.exp(2*t))-1)/(t+1)}const bct=function t(n,r,o){function a(u,f){var h=u[0],p=u[1],g=u[2],m=f[0],b=f[1],x=f[2],S=m-h,N=b-p,A=S*S+N*N,L,C;if(A<vct)C=Math.log(x/g)/n,L=function(it){return[h+it*S,p+it*N,g*Math.exp(n*it*C)]};else{var E=Math.sqrt(A),z=(x*x-g*g+o*A)/(2*g*r*E),D=(x*x-g*g-o*A)/(2*x*r*E),G=Math.log(Math.sqrt(z*z+1)-z),j=Math.log(Math.sqrt(D*D+1)-D);C=(j-G)/n,L=function(it){var J=it*C,dt=wv(G),vt=g/(r*E)*(dt*yct(n*J+G)-mct(G));return[h+vt*S,p+vt*N,g*dt/wv(n*J+G)]}}return L.duration=C*1e3*n/Math.SQRT2,L}return a.rho=function(u){var f=Math.max(.001,+u),h=f*f,p=h*h;return t(f,h,p)},a}(Math.SQRT2,2,4);var Uo=0,Ds=0,Ps=0,Ey=1e3,Ha,Rs,Ba=0,Ki=0,yc=0,ol=typeof performance=="object"&&performance.now?performance:Date,Ay=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ah(){return Ki||(Ay(wct),Ki=ol.now()+yc)}function wct(){Ki=0}function Wa(){this._call=this._time=this._next=null}Wa.prototype=ch.prototype={constructor:Wa,restart:function(t,n,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?ah():+r)+(n==null?0:+n),!this._next&&Rs!==this&&(Rs?Rs._next=this:Ha=this,Rs=this),this._call=t,this._time=r,df()},stop:function(){this._call&&(this._call=null,this._time=1/0,df())}};function ch(t,n,r){var o=new Wa;return o.restart(t,n,r),o}function xct(){ah(),++Uo;for(var t=Ha,n;t;)(n=Ki-t._time)>=0&&t._call.call(void 0,n),t=t._next;--Uo}function xv(){Ki=(Ba=ol.now())+yc,Uo=Ds=0;try{xct()}finally{Uo=0,Sct(),Ki=0}}function _ct(){var t=ol.now(),n=t-Ba;n>Ey&&(yc-=n,Ba=t)}function Sct(){for(var t,n=Ha,r,o=1/0;n;)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(r=n._next,n._next=null,n=t?t._next=r:Ha=r);Rs=t,df(o)}function df(t){if(!Uo){Ds&&(Ds=clearTimeout(Ds));var n=t-Ki;n>24?(t<1/0&&(Ds=setTimeout(xv,t-ol.now()-yc)),Ps&&(Ps=clearInterval(Ps))):(Ps||(Ba=ol.now(),Ps=setInterval(_ct,Ey)),Uo=1,Ay(xv))}}function _v(t,n,r){var o=new Wa;return n=n==null?0:+n,o.restart(a=>{o.stop(),t(a+n)},n,r),o}var kct=pl("start","end","cancel","interrupt"),Cct=[],My=0,Sv=1,pf=2,wa=3,kv=4,gf=5,xa=6;function bc(t,n,r,o,a,u){var f=t.__transition;if(!f)t.__transition={};else if(r in f)return;Tct(t,r,{name:n,index:o,group:a,on:kct,tween:Cct,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:My})}function uh(t,n){var r=Yn(t,n);if(r.state>My)throw new Error("too late; already scheduled");return r}function pr(t,n){var r=Yn(t,n);if(r.state>wa)throw new Error("too late; already running");return r}function Yn(t,n){var r=t.__transition;if(!r||!(r=r[n]))throw new Error("transition not found");return r}function Tct(t,n,r){var o=t.__transition,a;o[n]=r,r.timer=ch(u,0,r.time);function u(g){r.state=Sv,r.timer.restart(f,r.delay,r.time),r.delay<=g&&f(g-r.delay)}function f(g){var m,b,x,S;if(r.state!==Sv)return p();for(m in o)if(S=o[m],S.name===r.name){if(S.state===wa)return _v(f);S.state===kv?(S.state=xa,S.timer.stop(),S.on.call("interrupt",t,t.__data__,S.index,S.group),delete o[m]):+m<n&&(S.state=xa,S.timer.stop(),S.on.call("cancel",t,t.__data__,S.index,S.group),delete o[m])}if(_v(function(){r.state===wa&&(r.state=kv,r.timer.restart(h,r.delay,r.time),h(g))}),r.state=pf,r.on.call("start",t,t.__data__,r.index,r.group),r.state===pf){for(r.state=wa,a=new Array(x=r.tween.length),m=0,b=-1;m<x;++m)(S=r.tween[m].value.call(t,t.__data__,r.index,r.group))&&(a[++b]=S);a.length=b+1}}function h(g){for(var m=g<r.duration?r.ease.call(null,g/r.duration):(r.timer.restart(p),r.state=gf,1),b=-1,x=a.length;++b<x;)a[b].call(t,m);r.state===gf&&(r.on.call("end",t,t.__data__,r.index,r.group),p())}function p(){r.state=xa,r.timer.stop(),delete o[n];for(var g in o)return;delete t.__transition}}function _a(t,n){var r=t.__transition,o,a,u=!0,f;if(!!r){n=n==null?null:n+"";for(f in r){if((o=r[f]).name!==n){u=!1;continue}a=o.state>pf&&o.state<gf,o.state=xa,o.timer.stop(),o.on.call(a?"interrupt":"cancel",t,t.__data__,o.index,o.group),delete r[f]}u&&delete t.__transition}}function Lct(t){return this.each(function(){_a(this,t)})}function Ect(t,n){var r,o;return function(){var a=pr(this,t),u=a.tween;if(u!==r){o=r=u;for(var f=0,h=o.length;f<h;++f)if(o[f].name===n){o=o.slice(),o.splice(f,1);break}}a.tween=o}}function Act(t,n,r){var o,a;if(typeof r!="function")throw new Error;return function(){var u=pr(this,t),f=u.tween;if(f!==o){a=(o=f).slice();for(var h={name:n,value:r},p=0,g=a.length;p<g;++p)if(a[p].name===n){a[p]=h;break}p===g&&a.push(h)}u.tween=a}}function Mct(t,n){var r=this._id;if(t+="",arguments.length<2){for(var o=Yn(this.node(),r).tween,a=0,u=o.length,f;a<u;++a)if((f=o[a]).name===t)return f.value;return null}return this.each((n==null?Ect:Act)(r,t,n))}function fh(t,n,r){var o=t._id;return t.each(function(){var a=pr(this,o);(a.value||(a.value={}))[n]=r.apply(this,arguments)}),function(a){return Yn(a,o).value[n]}}function Ny(t,n){var r;return(typeof n=="number"?oi:n instanceof il?yv:(r=il(n))?(n=r,yv):fct)(t,n)}function Nct(t){return function(){this.removeAttribute(t)}}function Pct(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Oct(t,n,r){var o,a=r+"",u;return function(){var f=this.getAttribute(t);return f===a?null:f===o?u:u=n(o=f,r)}}function $ct(t,n,r){var o,a=r+"",u;return function(){var f=this.getAttributeNS(t.space,t.local);return f===a?null:f===o?u:u=n(o=f,r)}}function Dct(t,n,r){var o,a,u;return function(){var f,h=r(this),p;return h==null?void this.removeAttribute(t):(f=this.getAttribute(t),p=h+"",f===p?null:f===o&&p===a?u:(a=p,u=n(o=f,h)))}}function Rct(t,n,r){var o,a,u;return function(){var f,h=r(this),p;return h==null?void this.removeAttributeNS(t.space,t.local):(f=this.getAttributeNS(t.space,t.local),p=h+"",f===p?null:f===o&&p===a?u:(a=p,u=n(o=f,h)))}}function zct(t,n){var r=mc(t),o=r==="transform"?gct:Ny;return this.attrTween(t,typeof n=="function"?(r.local?Rct:Dct)(r,o,fh(this,"attr."+t,n)):n==null?(r.local?Pct:Nct)(r):(r.local?$ct:Oct)(r,o,n))}function Ict(t,n){return function(r){this.setAttribute(t,n.call(this,r))}}function Fct(t,n){return function(r){this.setAttributeNS(t.space,t.local,n.call(this,r))}}function qct(t,n){var r,o;function a(){var u=n.apply(this,arguments);return u!==o&&(r=(o=u)&&Fct(t,u)),r}return a._value=n,a}function Hct(t,n){var r,o;function a(){var u=n.apply(this,arguments);return u!==o&&(r=(o=u)&&Ict(t,u)),r}return a._value=n,a}function Bct(t,n){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(n==null)return this.tween(r,null);if(typeof n!="function")throw new Error;var o=mc(t);return this.tween(r,(o.local?qct:Hct)(o,n))}function Wct(t,n){return function(){uh(this,t).delay=+n.apply(this,arguments)}}function Uct(t,n){return n=+n,function(){uh(this,t).delay=n}}function jct(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?Wct:Uct)(n,t)):Yn(this.node(),n).delay}function Gct(t,n){return function(){pr(this,t).duration=+n.apply(this,arguments)}}function Vct(t,n){return n=+n,function(){pr(this,t).duration=n}}function Kct(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?Gct:Vct)(n,t)):Yn(this.node(),n).duration}function Xct(t,n){if(typeof n!="function")throw new Error;return function(){pr(this,t).ease=n}}function Yct(t){var n=this._id;return arguments.length?this.each(Xct(n,t)):Yn(this.node(),n).ease}function Zct(t,n){return function(){var r=n.apply(this,arguments);if(typeof r!="function")throw new Error;pr(this,t).ease=r}}function Qct(t){if(typeof t!="function")throw new Error;return this.each(Zct(this._id,t))}function Jct(t){typeof t!="function"&&(t=uy(t));for(var n=this._groups,r=n.length,o=new Array(r),a=0;a<r;++a)for(var u=n[a],f=u.length,h=o[a]=[],p,g=0;g<f;++g)(p=u[g])&&t.call(p,p.__data__,g,u)&&h.push(p);return new zr(o,this._parents,this._name,this._id)}function tut(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,r=t._groups,o=n.length,a=r.length,u=Math.min(o,a),f=new Array(o),h=0;h<u;++h)for(var p=n[h],g=r[h],m=p.length,b=f[h]=new Array(m),x,S=0;S<m;++S)(x=p[S]||g[S])&&(b[S]=x);for(;h<o;++h)f[h]=n[h];return new zr(f,this._parents,this._name,this._id)}function eut(t){return(t+"").trim().split(/^|\s+/).every(function(n){var r=n.indexOf(".");return r>=0&&(n=n.slice(0,r)),!n||n==="start"})}function nut(t,n,r){var o,a,u=eut(n)?uh:pr;return function(){var f=u(this,t),h=f.on;h!==o&&(a=(o=h).copy()).on(n,r),f.on=a}}function rut(t,n){var r=this._id;return arguments.length<2?Yn(this.node(),r).on.on(t):this.each(nut(r,t,n))}function iut(t){return function(){var n=this.parentNode;for(var r in this.__transition)if(+r!==t)return;n&&n.removeChild(this)}}function out(){return this.on("end.remove",iut(this._id))}function sut(t){var n=this._name,r=this._id;typeof t!="function"&&(t=oh(t));for(var o=this._groups,a=o.length,u=new Array(a),f=0;f<a;++f)for(var h=o[f],p=h.length,g=u[f]=new Array(p),m,b,x=0;x<p;++x)(m=h[x])&&(b=t.call(m,m.__data__,x,h))&&("__data__"in m&&(b.__data__=m.__data__),g[x]=b,bc(g[x],n,r,x,g,Yn(m,r)));return new zr(u,this._parents,n,r)}function lut(t){var n=this._name,r=this._id;typeof t!="function"&&(t=cy(t));for(var o=this._groups,a=o.length,u=[],f=[],h=0;h<a;++h)for(var p=o[h],g=p.length,m,b=0;b<g;++b)if(m=p[b]){for(var x=t.call(m,m.__data__,b,p),S,N=Yn(m,r),A=0,L=x.length;A<L;++A)(S=x[A])&&bc(S,n,r,A,x,N);u.push(x),f.push(m)}return new zr(u,f,n,r)}var aut=dl.prototype.constructor;function cut(){return new aut(this._groups,this._parents)}function uut(t,n){var r,o,a;return function(){var u=Wo(this,t),f=(this.style.removeProperty(t),Wo(this,t));return u===f?null:u===r&&f===o?a:a=n(r=u,o=f)}}function Py(t){return function(){this.style.removeProperty(t)}}function fut(t,n,r){var o,a=r+"",u;return function(){var f=Wo(this,t);return f===a?null:f===o?u:u=n(o=f,r)}}function hut(t,n,r){var o,a,u;return function(){var f=Wo(this,t),h=r(this),p=h+"";return h==null&&(p=h=(this.style.removeProperty(t),Wo(this,t))),f===p?null:f===o&&p===a?u:(a=p,u=n(o=f,h))}}function dut(t,n){var r,o,a,u="style."+n,f="end."+u,h;return function(){var p=pr(this,t),g=p.on,m=p.value[u]==null?h||(h=Py(n)):void 0;(g!==r||a!==m)&&(o=(r=g).copy()).on(f,a=m),p.on=o}}function put(t,n,r){var o=(t+="")=="transform"?pct:Ny;return n==null?this.styleTween(t,uut(t,o)).on("end.style."+t,Py(t)):typeof n=="function"?this.styleTween(t,hut(t,o,fh(this,"style."+t,n))).each(dut(this._id,t)):this.styleTween(t,fut(t,o,n),r).on("end.style."+t,null)}function gut(t,n,r){return function(o){this.style.setProperty(t,n.call(this,o),r)}}function vut(t,n,r){var o,a;function u(){var f=n.apply(this,arguments);return f!==a&&(o=(a=f)&&gut(t,f,r)),o}return u._value=n,u}function mut(t,n,r){var o="style."+(t+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(n==null)return this.tween(o,null);if(typeof n!="function")throw new Error;return this.tween(o,vut(t,n,r==null?"":r))}function yut(t){return function(){this.textContent=t}}function but(t){return function(){var n=t(this);this.textContent=n==null?"":n}}function wut(t){return this.tween("text",typeof t=="function"?but(fh(this,"text",t)):yut(t==null?"":t+""))}function xut(t){return function(n){this.textContent=t.call(this,n)}}function _ut(t){var n,r;function o(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&xut(a)),n}return o._value=t,o}function Sut(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;return this.tween(n,_ut(t))}function kut(){for(var t=this._name,n=this._id,r=Oy(),o=this._groups,a=o.length,u=0;u<a;++u)for(var f=o[u],h=f.length,p,g=0;g<h;++g)if(p=f[g]){var m=Yn(p,n);bc(p,t,r,g,f,{time:m.time+m.delay+m.duration,delay:0,duration:m.duration,ease:m.ease})}return new zr(o,this._parents,t,r)}function Cut(){var t,n,r=this,o=r._id,a=r.size();return new Promise(function(u,f){var h={value:f},p={value:function(){--a===0&&u()}};r.each(function(){var g=pr(this,o),m=g.on;m!==t&&(n=(t=m).copy(),n._.cancel.push(h),n._.interrupt.push(h),n._.end.push(p)),g.on=n}),a===0&&u()})}var Tut=0;function zr(t,n,r,o){this._groups=t,this._parents=n,this._name=r,this._id=o}function Oy(){return++Tut}var Lr=dl.prototype;zr.prototype={constructor:zr,select:sut,selectAll:lut,selectChild:Lr.selectChild,selectChildren:Lr.selectChildren,filter:Jct,merge:tut,selection:cut,transition:kut,call:Lr.call,nodes:Lr.nodes,node:Lr.node,size:Lr.size,empty:Lr.empty,each:Lr.each,on:rut,attr:zct,attrTween:Bct,style:put,styleTween:mut,text:wut,textTween:Sut,remove:out,tween:Mct,delay:jct,duration:Kct,ease:Yct,easeVarying:Qct,end:Cut,[Symbol.iterator]:Lr[Symbol.iterator]};function Lut(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Eut={time:null,delay:0,duration:250,ease:Lut};function Aut(t,n){for(var r;!(r=t.__transition)||!(r=r[n]);)if(!(t=t.parentNode))throw new Error(`transition ${n} not found`);return r}function Mut(t){var n,r;t instanceof zr?(n=t._id,t=t._name):(n=Oy(),(r=Eut).time=ah(),t=t==null?null:t+"");for(var o=this._groups,a=o.length,u=0;u<a;++u)for(var f=o[u],h=f.length,p,g=0;g<h;++g)(p=f[g])&&bc(p,t,n,g,f,r||Aut(p,n));return new zr(o,this._parents,t,n)}dl.prototype.interrupt=Lct;dl.prototype.transition=Mut;const aa=t=>()=>t;function Nut(t,{sourceEvent:n,target:r,transform:o,dispatch:a}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:a}})}function Pr(t,n,r){this.k=t,this.x=n,this.y=r}Pr.prototype={constructor:Pr,scale:function(t){return t===1?this:new Pr(this.k*t,this.x,this.y)},translate:function(t,n){return t===0&n===0?this:new Pr(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var hh=new Pr(1,0,0);Pr.prototype;function Mu(t){t.stopImmediatePropagation()}function Os(t){t.preventDefault(),t.stopImmediatePropagation()}function Put(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Out(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function Cv(){return this.__zoom||hh}function $ut(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Dut(){return navigator.maxTouchPoints||"ontouchstart"in this}function Rut(t,n,r){var o=t.invertX(n[0][0])-r[0][0],a=t.invertX(n[1][0])-r[1][0],u=t.invertY(n[0][1])-r[0][1],f=t.invertY(n[1][1])-r[1][1];return t.translate(a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a),f>u?(u+f)/2:Math.min(0,u)||Math.max(0,f))}function zut(){var t=Put,n=Out,r=Rut,o=$ut,a=Dut,u=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],h=250,p=bct,g=pl("start","zoom","end"),m,b,x,S=500,N=150,A=0,L=10;function C(I){I.property("__zoom",Cv).on("wheel.zoom",J,{passive:!1}).on("mousedown.zoom",dt).on("dblclick.zoom",vt).filter(a).on("touchstart.zoom",kt).on("touchmove.zoom",ft).on("touchend.zoom touchcancel.zoom",U).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}C.transform=function(I,k,H,W){var et=I.selection?I.selection():I;et.property("__zoom",Cv),I!==et?G(I,k,H,W):et.interrupt().each(function(){j(this,arguments).event(W).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},C.scaleBy=function(I,k,H,W){C.scaleTo(I,function(){var et=this.__zoom.k,wt=typeof k=="function"?k.apply(this,arguments):k;return et*wt},H,W)},C.scaleTo=function(I,k,H,W){C.transform(I,function(){var et=n.apply(this,arguments),wt=this.__zoom,Et=H==null?D(et):typeof H=="function"?H.apply(this,arguments):H,qt=wt.invert(Et),Bt=typeof k=="function"?k.apply(this,arguments):k;return r(z(E(wt,Bt),Et,qt),et,f)},H,W)},C.translateBy=function(I,k,H,W){C.transform(I,function(){return r(this.__zoom.translate(typeof k=="function"?k.apply(this,arguments):k,typeof H=="function"?H.apply(this,arguments):H),n.apply(this,arguments),f)},null,W)},C.translateTo=function(I,k,H,W,et){C.transform(I,function(){var wt=n.apply(this,arguments),Et=this.__zoom,qt=W==null?D(wt):typeof W=="function"?W.apply(this,arguments):W;return r(hh.translate(qt[0],qt[1]).scale(Et.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof H=="function"?-H.apply(this,arguments):-H),wt,f)},W,et)};function E(I,k){return k=Math.max(u[0],Math.min(u[1],k)),k===I.k?I:new Pr(k,I.x,I.y)}function z(I,k,H){var W=k[0]-H[0]*I.k,et=k[1]-H[1]*I.k;return W===I.x&&et===I.y?I:new Pr(I.k,W,et)}function D(I){return[(+I[0][0]+ +I[1][0])/2,(+I[0][1]+ +I[1][1])/2]}function G(I,k,H,W){I.on("start.zoom",function(){j(this,arguments).event(W).start()}).on("interrupt.zoom end.zoom",function(){j(this,arguments).event(W).end()}).tween("zoom",function(){var et=this,wt=arguments,Et=j(et,wt).event(W),qt=n.apply(et,wt),Bt=H==null?D(qt):typeof H=="function"?H.apply(et,wt):H,Gt=Math.max(qt[1][0]-qt[0][0],qt[1][1]-qt[0][1]),ne=et.__zoom,Q=typeof k=="function"?k.apply(et,wt):k,tt=p(ne.invert(Bt).concat(Gt/ne.k),Q.invert(Bt).concat(Gt/Q.k));return function(V){if(V===1)V=Q;else{var st=tt(V),Ct=Gt/st[2];V=new Pr(Ct,Bt[0]-st[0]*Ct,Bt[1]-st[1]*Ct)}Et.zoom(null,V)}})}function j(I,k,H){return!H&&I.__zooming||new it(I,k)}function it(I,k){this.that=I,this.args=k,this.active=0,this.sourceEvent=null,this.extent=n.apply(I,k),this.taps=0}it.prototype={event:function(I){return I&&(this.sourceEvent=I),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(I,k){return this.mouse&&I!=="mouse"&&(this.mouse[1]=k.invert(this.mouse[0])),this.touch0&&I!=="touch"&&(this.touch0[1]=k.invert(this.touch0[0])),this.touch1&&I!=="touch"&&(this.touch1[1]=k.invert(this.touch1[0])),this.that.__zoom=k,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(I){var k=_n(this.that).datum();g.call(I,this.that,new Nut(I,{sourceEvent:this.sourceEvent,target:C,type:I,transform:this.that.__zoom,dispatch:g}),k)}};function J(I,...k){if(!t.apply(this,arguments))return;var H=j(this,k).event(I),W=this.__zoom,et=Math.max(u[0],Math.min(u[1],W.k*Math.pow(2,o.apply(this,arguments)))),wt=Ar(I);if(H.wheel)(H.mouse[0][0]!==wt[0]||H.mouse[0][1]!==wt[1])&&(H.mouse[1]=W.invert(H.mouse[0]=wt)),clearTimeout(H.wheel);else{if(W.k===et)return;H.mouse=[wt,W.invert(wt)],_a(this),H.start()}Os(I),H.wheel=setTimeout(Et,N),H.zoom("mouse",r(z(E(W,et),H.mouse[0],H.mouse[1]),H.extent,f));function Et(){H.wheel=null,H.end()}}function dt(I,...k){if(x||!t.apply(this,arguments))return;var H=I.currentTarget,W=j(this,k,!0).event(I),et=_n(I.view).on("mousemove.zoom",Bt,!0).on("mouseup.zoom",Gt,!0),wt=Ar(I,H),Et=I.clientX,qt=I.clientY;wy(I.view),Mu(I),W.mouse=[wt,this.__zoom.invert(wt)],_a(this),W.start();function Bt(ne){if(Os(ne),!W.moved){var Q=ne.clientX-Et,tt=ne.clientY-qt;W.moved=Q*Q+tt*tt>A}W.event(ne).zoom("mouse",r(z(W.that.__zoom,W.mouse[0]=Ar(ne,H),W.mouse[1]),W.extent,f))}function Gt(ne){et.on("mousemove.zoom mouseup.zoom",null),xy(ne.view,W.moved),Os(ne),W.event(ne).end()}}function vt(I,...k){if(!!t.apply(this,arguments)){var H=this.__zoom,W=Ar(I.changedTouches?I.changedTouches[0]:I,this),et=H.invert(W),wt=H.k*(I.shiftKey?.5:2),Et=r(z(E(H,wt),W,et),n.apply(this,k),f);Os(I),h>0?_n(this).transition().duration(h).call(G,Et,W,I):_n(this).call(C.transform,Et,W,I)}}function kt(I,...k){if(!!t.apply(this,arguments)){var H=I.touches,W=H.length,et=j(this,k,I.changedTouches.length===W).event(I),wt,Et,qt,Bt;for(Mu(I),Et=0;Et<W;++Et)qt=H[Et],Bt=Ar(qt,this),Bt=[Bt,this.__zoom.invert(Bt),qt.identifier],et.touch0?!et.touch1&&et.touch0[2]!==Bt[2]&&(et.touch1=Bt,et.taps=0):(et.touch0=Bt,wt=!0,et.taps=1+!!m);m&&(m=clearTimeout(m)),wt&&(et.taps<2&&(b=Bt[0],m=setTimeout(function(){m=null},S)),_a(this),et.start())}}function ft(I,...k){if(!!this.__zooming){var H=j(this,k).event(I),W=I.changedTouches,et=W.length,wt,Et,qt,Bt;for(Os(I),wt=0;wt<et;++wt)Et=W[wt],qt=Ar(Et,this),H.touch0&&H.touch0[2]===Et.identifier?H.touch0[0]=qt:H.touch1&&H.touch1[2]===Et.identifier&&(H.touch1[0]=qt);if(Et=H.that.__zoom,H.touch1){var Gt=H.touch0[0],ne=H.touch0[1],Q=H.touch1[0],tt=H.touch1[1],V=(V=Q[0]-Gt[0])*V+(V=Q[1]-Gt[1])*V,st=(st=tt[0]-ne[0])*st+(st=tt[1]-ne[1])*st;Et=E(Et,Math.sqrt(V/st)),qt=[(Gt[0]+Q[0])/2,(Gt[1]+Q[1])/2],Bt=[(ne[0]+tt[0])/2,(ne[1]+tt[1])/2]}else if(H.touch0)qt=H.touch0[0],Bt=H.touch0[1];else return;H.zoom("touch",r(z(Et,qt,Bt),H.extent,f))}}function U(I,...k){if(!!this.__zooming){var H=j(this,k).event(I),W=I.changedTouches,et=W.length,wt,Et;for(Mu(I),x&&clearTimeout(x),x=setTimeout(function(){x=null},S),wt=0;wt<et;++wt)Et=W[wt],H.touch0&&H.touch0[2]===Et.identifier?delete H.touch0:H.touch1&&H.touch1[2]===Et.identifier&&delete H.touch1;if(H.touch1&&!H.touch0&&(H.touch0=H.touch1,delete H.touch1),H.touch0)H.touch0[1]=this.__zoom.invert(H.touch0[0]);else if(H.end(),H.taps===2&&(Et=Ar(Et,this),Math.hypot(b[0]-Et[0],b[1]-Et[1])<L)){var qt=_n(this).on("dblclick.zoom");qt&&qt.apply(this,arguments)}}}return C.wheelDelta=function(I){return arguments.length?(o=typeof I=="function"?I:aa(+I),C):o},C.filter=function(I){return arguments.length?(t=typeof I=="function"?I:aa(!!I),C):t},C.touchable=function(I){return arguments.length?(a=typeof I=="function"?I:aa(!!I),C):a},C.extent=function(I){return arguments.length?(n=typeof I=="function"?I:aa([[+I[0][0],+I[0][1]],[+I[1][0],+I[1][1]]]),C):n},C.scaleExtent=function(I){return arguments.length?(u[0]=+I[0],u[1]=+I[1],C):[u[0],u[1]]},C.translateExtent=function(I){return arguments.length?(f[0][0]=+I[0][0],f[1][0]=+I[1][0],f[0][1]=+I[0][1],f[1][1]=+I[1][1],C):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},C.constrain=function(I){return arguments.length?(r=I,C):r},C.duration=function(I){return arguments.length?(h=+I,C):h},C.interpolate=function(I){return arguments.length?(p=I,C):p},C.on=function(){var I=g.on.apply(g,arguments);return I===g?C:I},C.clickDistance=function(I){return arguments.length?(A=(I=+I)*I,C):Math.sqrt(A)},C.tapDistance=function(I){return arguments.length?(L=+I,C):L},C}class hn{constructor(n,r){this.x=n,this.y=r}static of([n,r]){return new hn(n,r)}add(n){return new hn(this.x+n.x,this.y+n.y)}subtract(n){return new hn(this.x-n.x,this.y-n.y)}multiply(n){return new hn(this.x*n,this.y*n)}divide(n){return new hn(this.x/n,this.y/n)}dot(n){return this.x*n.x+this.y*n.y}cross(n){return this.x*n.y-n.x*this.y}hadamard(n){return new hn(this.x*n.x,this.y*n.y)}length(){return Math.sqrt(Math.pow(this.x,2)+Math.pow(this.y,2))}normalize(){const n=this.length();return new hn(this.x/n,this.y/n)}rotateByRadians(n){const r=Math.cos(n),o=Math.sin(n);return new hn(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(n){return this.rotateByRadians(n*Math.PI/180)}}function Iut(t){const n=+this._x.call(null,t),r=+this._y.call(null,t);return $y(this.cover(n,r),n,r,t)}function $y(t,n,r,o){if(isNaN(n)||isNaN(r))return t;var a,u=t._root,f={data:o},h=t._x0,p=t._y0,g=t._x1,m=t._y1,b,x,S,N,A,L,C,E;if(!u)return t._root=f,t;for(;u.length;)if((A=n>=(b=(h+g)/2))?h=b:g=b,(L=r>=(x=(p+m)/2))?p=x:m=x,a=u,!(u=u[C=L<<1|A]))return a[C]=f,t;if(S=+t._x.call(null,u.data),N=+t._y.call(null,u.data),n===S&&r===N)return f.next=u,a?a[C]=f:t._root=f,t;do a=a?a[C]=new Array(4):t._root=new Array(4),(A=n>=(b=(h+g)/2))?h=b:g=b,(L=r>=(x=(p+m)/2))?p=x:m=x;while((C=L<<1|A)===(E=(N>=x)<<1|S>=b));return a[E]=u,a[C]=f,t}function Fut(t){var n,r,o=t.length,a,u,f=new Array(o),h=new Array(o),p=1/0,g=1/0,m=-1/0,b=-1/0;for(r=0;r<o;++r)isNaN(a=+this._x.call(null,n=t[r]))||isNaN(u=+this._y.call(null,n))||(f[r]=a,h[r]=u,a<p&&(p=a),a>m&&(m=a),u<g&&(g=u),u>b&&(b=u));if(p>m||g>b)return this;for(this.cover(p,g).cover(m,b),r=0;r<o;++r)$y(this,f[r],h[r],t[r]);return this}function qut(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var r=this._x0,o=this._y0,a=this._x1,u=this._y1;if(isNaN(r))a=(r=Math.floor(t))+1,u=(o=Math.floor(n))+1;else{for(var f=a-r||1,h=this._root,p,g;r>t||t>=a||o>n||n>=u;)switch(g=(n<o)<<1|t<r,p=new Array(4),p[g]=h,h=p,f*=2,g){case 0:a=r+f,u=o+f;break;case 1:r=a-f,u=o+f;break;case 2:a=r+f,o=u-f;break;case 3:r=a-f,o=u-f;break}this._root&&this._root.length&&(this._root=h)}return this._x0=r,this._y0=o,this._x1=a,this._y1=u,this}function Hut(){var t=[];return this.visit(function(n){if(!n.length)do t.push(n.data);while(n=n.next)}),t}function But(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function dn(t,n,r,o,a){this.node=t,this.x0=n,this.y0=r,this.x1=o,this.y1=a}function Wut(t,n,r){var o,a=this._x0,u=this._y0,f,h,p,g,m=this._x1,b=this._y1,x=[],S=this._root,N,A;for(S&&x.push(new dn(S,a,u,m,b)),r==null?r=1/0:(a=t-r,u=n-r,m=t+r,b=n+r,r*=r);N=x.pop();)if(!(!(S=N.node)||(f=N.x0)>m||(h=N.y0)>b||(p=N.x1)<a||(g=N.y1)<u))if(S.length){var L=(f+p)/2,C=(h+g)/2;x.push(new dn(S[3],L,C,p,g),new dn(S[2],f,C,L,g),new dn(S[1],L,h,p,C),new dn(S[0],f,h,L,C)),(A=(n>=C)<<1|t>=L)&&(N=x[x.length-1],x[x.length-1]=x[x.length-1-A],x[x.length-1-A]=N)}else{var E=t-+this._x.call(null,S.data),z=n-+this._y.call(null,S.data),D=E*E+z*z;if(D<r){var G=Math.sqrt(r=D);a=t-G,u=n-G,m=t+G,b=n+G,o=S.data}}return o}function Uut(t){if(isNaN(m=+this._x.call(null,t))||isNaN(b=+this._y.call(null,t)))return this;var n,r=this._root,o,a,u,f=this._x0,h=this._y0,p=this._x1,g=this._y1,m,b,x,S,N,A,L,C;if(!r)return this;if(r.length)for(;;){if((N=m>=(x=(f+p)/2))?f=x:p=x,(A=b>=(S=(h+g)/2))?h=S:g=S,n=r,!(r=r[L=A<<1|N]))return this;if(!r.length)break;(n[L+1&3]||n[L+2&3]||n[L+3&3])&&(o=n,C=L)}for(;r.data!==t;)if(a=r,!(r=r.next))return this;return(u=r.next)&&delete r.next,a?(u?a.next=u:delete a.next,this):n?(u?n[L]=u:delete n[L],(r=n[0]||n[1]||n[2]||n[3])&&r===(n[3]||n[2]||n[1]||n[0])&&!r.length&&(o?o[C]=r:this._root=r),this):(this._root=u,this)}function jut(t){for(var n=0,r=t.length;n<r;++n)this.remove(t[n]);return this}function Gut(){return this._root}function Vut(){var t=0;return this.visit(function(n){if(!n.length)do++t;while(n=n.next)}),t}function Kut(t){var n=[],r,o=this._root,a,u,f,h,p;for(o&&n.push(new dn(o,this._x0,this._y0,this._x1,this._y1));r=n.pop();)if(!t(o=r.node,u=r.x0,f=r.y0,h=r.x1,p=r.y1)&&o.length){var g=(u+h)/2,m=(f+p)/2;(a=o[3])&&n.push(new dn(a,g,m,h,p)),(a=o[2])&&n.push(new dn(a,u,m,g,p)),(a=o[1])&&n.push(new dn(a,g,f,h,m)),(a=o[0])&&n.push(new dn(a,u,f,g,m))}return this}function Xut(t){var n=[],r=[],o;for(this._root&&n.push(new dn(this._root,this._x0,this._y0,this._x1,this._y1));o=n.pop();){var a=o.node;if(a.length){var u,f=o.x0,h=o.y0,p=o.x1,g=o.y1,m=(f+p)/2,b=(h+g)/2;(u=a[0])&&n.push(new dn(u,f,h,m,b)),(u=a[1])&&n.push(new dn(u,m,h,p,b)),(u=a[2])&&n.push(new dn(u,f,b,m,g)),(u=a[3])&&n.push(new dn(u,m,b,p,g))}r.push(o)}for(;o=r.pop();)t(o.node,o.x0,o.y0,o.x1,o.y1);return this}function Yut(t){return t[0]}function Zut(t){return arguments.length?(this._x=t,this):this._x}function Qut(t){return t[1]}function Jut(t){return arguments.length?(this._y=t,this):this._y}function dh(t,n,r){var o=new ph(n==null?Yut:n,r==null?Qut:r,NaN,NaN,NaN,NaN);return t==null?o:o.addAll(t)}function ph(t,n,r,o,a,u){this._x=t,this._y=n,this._x0=r,this._y0=o,this._x1=a,this._y1=u,this._root=void 0}function Tv(t){for(var n={data:t.data},r=n;t=t.next;)r=r.next={data:t.data};return n}var vn=dh.prototype=ph.prototype;vn.copy=function(){var t=new ph(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root,r,o;if(!n)return t;if(!n.length)return t._root=Tv(n),t;for(r=[{source:n,target:t._root=new Array(4)}];n=r.pop();)for(var a=0;a<4;++a)(o=n.source[a])&&(o.length?r.push({source:o,target:n.target[a]=new Array(4)}):n.target[a]=Tv(o));return t};vn.add=Iut;vn.addAll=Fut;vn.cover=qut;vn.data=Hut;vn.extent=But;vn.find=Wut;vn.remove=Uut;vn.removeAll=jut;vn.root=Gut;vn.size=Vut;vn.visit=Kut;vn.visitAfter=Xut;vn.x=Zut;vn.y=Jut;function gn(t){return function(){return t}}function li(t){return(t()-.5)*1e-6}function tft(t){return t.x+t.vx}function eft(t){return t.y+t.vy}function nft(t){var n,r,o,a=1,u=1;typeof t!="function"&&(t=gn(t==null?1:+t));function f(){for(var g,m=n.length,b,x,S,N,A,L,C=0;C<u;++C)for(b=dh(n,tft,eft).visitAfter(h),g=0;g<m;++g)x=n[g],A=r[x.index],L=A*A,S=x.x+x.vx,N=x.y+x.vy,b.visit(E);function E(z,D,G,j,it){var J=z.data,dt=z.r,vt=A+dt;if(J){if(J.index>x.index){var kt=S-J.x-J.vx,ft=N-J.y-J.vy,U=kt*kt+ft*ft;U<vt*vt&&(kt===0&&(kt=li(o),U+=kt*kt),ft===0&&(ft=li(o),U+=ft*ft),U=(vt-(U=Math.sqrt(U)))/U*a,x.vx+=(kt*=U)*(vt=(dt*=dt)/(L+dt)),x.vy+=(ft*=U)*vt,J.vx-=kt*(vt=1-vt),J.vy-=ft*vt)}return}return D>S+vt||j<S-vt||G>N+vt||it<N-vt}}function h(g){if(g.data)return g.r=r[g.data.index];for(var m=g.r=0;m<4;++m)g[m]&&g[m].r>g.r&&(g.r=g[m].r)}function p(){if(!!n){var g,m=n.length,b;for(r=new Array(m),g=0;g<m;++g)b=n[g],r[b.index]=+t(b,g,n)}}return f.initialize=function(g,m){n=g,o=m,p()},f.iterations=function(g){return arguments.length?(u=+g,f):u},f.strength=function(g){return arguments.length?(a=+g,f):a},f.radius=function(g){return arguments.length?(t=typeof g=="function"?g:gn(+g),p(),f):t},f}function rft(t){return t.index}function Lv(t,n){var r=t.get(n);if(!r)throw new Error("node not found: "+n);return r}function ift(t){var n=rft,r=b,o,a=gn(30),u,f,h,p,g,m=1;t==null&&(t=[]);function b(L){return 1/Math.min(h[L.source.index],h[L.target.index])}function x(L){for(var C=0,E=t.length;C<m;++C)for(var z=0,D,G,j,it,J,dt,vt;z<E;++z)D=t[z],G=D.source,j=D.target,it=j.x+j.vx-G.x-G.vx||li(g),J=j.y+j.vy-G.y-G.vy||li(g),dt=Math.sqrt(it*it+J*J),dt=(dt-u[z])/dt*L*o[z],it*=dt,J*=dt,j.vx-=it*(vt=p[z]),j.vy-=J*vt,G.vx+=it*(vt=1-vt),G.vy+=J*vt}function S(){if(!!f){var L,C=f.length,E=t.length,z=new Map(f.map((G,j)=>[n(G,j,f),G])),D;for(L=0,h=new Array(C);L<E;++L)D=t[L],D.index=L,typeof D.source!="object"&&(D.source=Lv(z,D.source)),typeof D.target!="object"&&(D.target=Lv(z,D.target)),h[D.source.index]=(h[D.source.index]||0)+1,h[D.target.index]=(h[D.target.index]||0)+1;for(L=0,p=new Array(E);L<E;++L)D=t[L],p[L]=h[D.source.index]/(h[D.source.index]+h[D.target.index]);o=new Array(E),N(),u=new Array(E),A()}}function N(){if(!!f)for(var L=0,C=t.length;L<C;++L)o[L]=+r(t[L],L,t)}function A(){if(!!f)for(var L=0,C=t.length;L<C;++L)u[L]=+a(t[L],L,t)}return x.initialize=function(L,C){f=L,g=C,S()},x.links=function(L){return arguments.length?(t=L,S(),x):t},x.id=function(L){return arguments.length?(n=L,x):n},x.iterations=function(L){return arguments.length?(m=+L,x):m},x.strength=function(L){return arguments.length?(r=typeof L=="function"?L:gn(+L),N(),x):r},x.distance=function(L){return arguments.length?(a=typeof L=="function"?L:gn(+L),A(),x):a},x}const oft=1664525,sft=1013904223,Ev=4294967296;function lft(){let t=1;return()=>(t=(oft*t+sft)%Ev)/Ev}function aft(t){return t.x}function cft(t){return t.y}var uft=10,fft=Math.PI*(3-Math.sqrt(5));function hft(t){var n,r=1,o=.001,a=1-Math.pow(o,1/300),u=0,f=.6,h=new Map,p=ch(b),g=pl("tick","end"),m=lft();t==null&&(t=[]);function b(){x(),g.call("tick",n),r<o&&(p.stop(),g.call("end",n))}function x(A){var L,C=t.length,E;A===void 0&&(A=1);for(var z=0;z<A;++z)for(r+=(u-r)*a,h.forEach(function(D){D(r)}),L=0;L<C;++L)E=t[L],E.fx==null?E.x+=E.vx*=f:(E.x=E.fx,E.vx=0),E.fy==null?E.y+=E.vy*=f:(E.y=E.fy,E.vy=0);return n}function S(){for(var A=0,L=t.length,C;A<L;++A){if(C=t[A],C.index=A,C.fx!=null&&(C.x=C.fx),C.fy!=null&&(C.y=C.fy),isNaN(C.x)||isNaN(C.y)){var E=uft*Math.sqrt(.5+A),z=A*fft;C.x=E*Math.cos(z),C.y=E*Math.sin(z)}(isNaN(C.vx)||isNaN(C.vy))&&(C.vx=C.vy=0)}}function N(A){return A.initialize&&A.initialize(t,m),A}return S(),n={tick:x,restart:function(){return p.restart(b),n},stop:function(){return p.stop(),n},nodes:function(A){return arguments.length?(t=A,S(),h.forEach(N),n):t},alpha:function(A){return arguments.length?(r=+A,n):r},alphaMin:function(A){return arguments.length?(o=+A,n):o},alphaDecay:function(A){return arguments.length?(a=+A,n):+a},alphaTarget:function(A){return arguments.length?(u=+A,n):u},velocityDecay:function(A){return arguments.length?(f=1-A,n):1-f},randomSource:function(A){return arguments.length?(m=A,h.forEach(N),n):m},force:function(A,L){return arguments.length>1?(L==null?h.delete(A):h.set(A,N(L)),n):h.get(A)},find:function(A,L,C){var E=0,z=t.length,D,G,j,it,J;for(C==null?C=1/0:C*=C,E=0;E<z;++E)it=t[E],D=A-it.x,G=L-it.y,j=D*D+G*G,j<C&&(J=it,C=j);return J},on:function(A,L){return arguments.length>1?(g.on(A,L),n):g.on(A)}}}function dft(){var t,n,r,o,a=gn(-30),u,f=1,h=1/0,p=.81;function g(S){var N,A=t.length,L=dh(t,aft,cft).visitAfter(b);for(o=S,N=0;N<A;++N)n=t[N],L.visit(x)}function m(){if(!!t){var S,N=t.length,A;for(u=new Array(N),S=0;S<N;++S)A=t[S],u[A.index]=+a(A,S,t)}}function b(S){var N=0,A,L,C=0,E,z,D;if(S.length){for(E=z=D=0;D<4;++D)(A=S[D])&&(L=Math.abs(A.value))&&(N+=A.value,C+=L,E+=L*A.x,z+=L*A.y);S.x=E/C,S.y=z/C}else{A=S,A.x=A.data.x,A.y=A.data.y;do N+=u[A.data.index];while(A=A.next)}S.value=N}function x(S,N,A,L){if(!S.value)return!0;var C=S.x-n.x,E=S.y-n.y,z=L-N,D=C*C+E*E;if(z*z/p<D)return D<h&&(C===0&&(C=li(r),D+=C*C),E===0&&(E=li(r),D+=E*E),D<f&&(D=Math.sqrt(f*D)),n.vx+=C*S.value*o/D,n.vy+=E*S.value*o/D),!0;if(S.length||D>=h)return;(S.data!==n||S.next)&&(C===0&&(C=li(r),D+=C*C),E===0&&(E=li(r),D+=E*E),D<f&&(D=Math.sqrt(f*D)));do S.data!==n&&(z=u[S.data.index]*o/D,n.vx+=C*z,n.vy+=E*z);while(S=S.next)}return g.initialize=function(S,N){t=S,r=N,m()},g.strength=function(S){return arguments.length?(a=typeof S=="function"?S:gn(+S),m(),g):a},g.distanceMin=function(S){return arguments.length?(f=S*S,g):Math.sqrt(f)},g.distanceMax=function(S){return arguments.length?(h=S*S,g):Math.sqrt(h)},g.theta=function(S){return arguments.length?(p=S*S,g):Math.sqrt(p)},g}function pft(t){var n=gn(.1),r,o,a;typeof t!="function"&&(t=gn(t==null?0:+t));function u(h){for(var p=0,g=r.length,m;p<g;++p)m=r[p],m.vx+=(a[p]-m.x)*o[p]*h}function f(){if(!!r){var h,p=r.length;for(o=new Array(p),a=new Array(p),h=0;h<p;++h)o[h]=isNaN(a[h]=+t(r[h],h,r))?0:+n(r[h],h,r)}}return u.initialize=function(h){r=h,f()},u.strength=function(h){return arguments.length?(n=typeof h=="function"?h:gn(+h),f(),u):n},u.x=function(h){return arguments.length?(t=typeof h=="function"?h:gn(+h),f(),u):t},u}function gft(t){var n=gn(.1),r,o,a;typeof t!="function"&&(t=gn(t==null?0:+t));function u(h){for(var p=0,g=r.length,m;p<g;++p)m=r[p],m.vy+=(a[p]-m.y)*o[p]*h}function f(){if(!!r){var h,p=r.length;for(o=new Array(p),a=new Array(p),h=0;h<p;++h)o[h]=isNaN(a[h]=+t(r[h],h,r))?0:+n(r[h],h,r)}}return u.initialize=function(h){r=h,f()},u.strength=function(h){return arguments.length?(n=typeof h=="function"?h:gn(+h),f(),u):n},u.y=function(h){return arguments.length?(t=typeof h=="function"?h:gn(+h),f(),u):t},u}var vft=Object.defineProperty,mft=(t,n,r)=>n in t?vft(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,Me=(t,n,r)=>(mft(t,typeof n!="symbol"?n+"":n,r),r);function yft(){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 bft(){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 wft(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function Dy(t){t.preventDefault(),t.stopPropagation()}function Ry(t){return typeof t=="number"}function gi(t,n){return Ry(t.nodeRadius)?t.nodeRadius:t.nodeRadius(n)}function xft(t){return`${t.source.id}-${t.target.id}`}function zy(t){return`link-arrow-${t}`.replace(/[()]/g,"~")}function _ft(t){return`url(#${zy(t.color)})`}function Sft(t){return{size:t,padding:(n,r)=>gi(r,n)+2*t,ref:[t/2,t/2],path:[[0,0],[0,t],[t,t/2]],viewBox:[0,0,t,t].join(",")}}const Iy={Arrow:t=>Sft(t)},kft=(t,n,r)=>[n/2,r/2],Cft=(t,n,r)=>[Av(0,n),Av(0,r)];function Av(t,n){return Math.random()*(n-t)+t}const vf={Centered:kft,Randomized:Cft};var jo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Fy={},mf=jo&&jo.__assign||function(){return mf=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},mf.apply(this,arguments)},Tft=jo&&jo.__read||function(t,n){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o=r.call(t),a,u=[],f;try{for(;(n===void 0||n-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(h){f={error:h}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(f)throw f.error}}return u},Lft=jo&&jo.__spreadArray||function(t,n,r){if(r||arguments.length===2)for(var o=0,a=n.length,u;o<a;o++)(u||!(o in n))&&(u||(u=Array.prototype.slice.call(n,0,o)),u[o]=n[o]);return t.concat(u||Array.prototype.slice.call(n))};Object.defineProperty(Fy,"__esModule",{value:!0});var Mv=function(t){if(typeof t=="object"&&t!==null){if(typeof Object.getPrototypeOf=="function"){var n=Object.getPrototypeOf(t);return n===Object.prototype||n===null}return Object.prototype.toString.call(t)==="[object Object]"}return!1},ai=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.reduce(function(r,o){if(Array.isArray(o))throw new TypeError("Arguments provided to ts-deepmerge must be objects, not arrays.");return Object.keys(o).forEach(function(a){["__proto__","constructor","prototype"].includes(a)||(Array.isArray(r[a])&&Array.isArray(o[a])?r[a]=ai.options.mergeArrays?Array.from(new Set(r[a].concat(o[a]))):o[a]:Mv(r[a])&&Mv(o[a])?r[a]=ai(r[a],o[a]):r[a]=o[a])}),r},{})},qy={mergeArrays:!0};ai.options=qy;ai.withOptions=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];ai.options=mf({mergeArrays:!0},t);var o=ai.apply(void 0,Lft([],Tft(n),!1));return ai.options=qy,o};var Eft=Fy.default=ai;function Aft(){return{autoResize:!1,callbacks:{},initial:wft(),nodeRadius:16,marker:Iy.Arrow(4),modifiers:{},positionInitializer:vf.Centered,simulation:{alphas:yft(),forces:bft()},zoom:{initial:1,min:.1,max:2}}}function Mft(t={}){return Eft.withOptions({mergeArrays:!1},Aft(),t)}function Nft(t,n){let r;return()=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>t(),n)}}function Pft({applyZoom:t,container:n,onDoubleClick:r,onPointerMoved:o,onPointerUp:a,offset:[u,f],scale:h,zoom:p}){const g=n.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(p).on("contextmenu",m=>Dy(m)).on("dblclick",m=>r==null?void 0:r(m)).on("dblclick.zoom",null).on("pointermove",m=>o==null?void 0:o(m)).on("pointerup",m=>a==null?void 0:a(m)).style("cursor","grab");return t&&g.call(p.transform,hh.translate(u,f).scale(h)),g.append("g")}function Oft({canvas:t,scale:n,xOffset:r,yOffset:o}){t==null||t.attr("transform",`translate(${r},${o})scale(${n})`)}function $ft({config:t,onDragStart:n,onDragEnd:r}){var o,a;const u=Vat().filter(f=>f.type==="mousedown"?f.button===0:f.type==="touchstart"?f.touches.length===1:!1).on("start",(f,h)=>{f.active===0&&n(f,h),_n(f.sourceEvent.target).classed("grabbed",!0),h.fx=h.x,h.fy=h.y}).on("drag",(f,h)=>{h.fx=f.x,h.fy=f.y}).on("end",(f,h)=>{f.active===0&&r(f,h),_n(f.sourceEvent.target).classed("grabbed",!1),h.fx=void 0,h.fy=void 0});return(a=(o=t.modifiers).drag)==null||a.call(o,u),u}function Dft({graph:t,filter:n,focusedNode:r,includeUnlinked:o,linkFilter:a}){const u=t.links.filter(p=>n.includes(p.source.type)&&n.includes(p.target.type)&&a(p)),f=p=>u.find(g=>g.source.id===p.id||g.target.id===p.id)!==void 0,h=t.nodes.filter(p=>n.includes(p.type)&&(o||f(p)));return r===void 0||!n.includes(r.type)?{nodes:h,links:u}:Rft({nodes:h,links:u},r)}function Rft(t,n){const r=[...zft(t,n),...Ift(t,n)],o=r.flatMap(a=>[a.source,a.target]);return{nodes:[...new Set([...o,n])],links:[...new Set(r)]}}function zft(t,n){return Hy(t,n,(r,o)=>r.target.id===o.id)}function Ift(t,n){return Hy(t,n,(r,o)=>r.source.id===o.id)}function Hy(t,n,r){const o=new Set(t.links),a=new Set([n]),u=[];for(;o.size>0;){const f=[...o].filter(h=>[...a].some(p=>r(h,p)));if(f.length===0)return u;f.forEach(h=>{a.add(h.source),a.add(h.target),u.push(h),o.delete(h)})}return u}function yf(t){var n;return(n=t.x)!=null?n:0}function bf(t){var n;return(n=t.y)!=null?n:0}function gh({source:t,target:n}){const r=new hn(yf(t),bf(t)),o=new hn(yf(n),bf(n)),a=o.subtract(r),u=a.length(),f=a.normalize(),h=f.multiply(-1);return{s:r,t:o,dist:u,norm:f,endNorm:h}}function By({center:t,node:n}){const r=new hn(yf(n),bf(n));let o=t;return r.x===o.x&&r.y===o.y&&(o=o.add(new hn(0,1))),{n:r,c:o}}function Wy({config:t,source:n,target:r}){const{s:o,t:a,norm:u}=gh({config:t,source:n,target:r}),f=o.add(u.multiply(gi(t,n)-1)),h=a.subtract(u.multiply(t.marker.padding(r,t)));return{start:f,end:h}}function Fft(t){const{start:n,end:r}=Wy(t);return`M${n.x},${n.y}
31
+ L${r.x},${r.y}`}function qft(t){const{start:n,end:r}=Wy(t),o=r.subtract(n).multiply(.5),a=n.add(o);return`translate(${a.x-8},${a.y-4})`}function Hft({config:t,source:n,target:r}){const{s:o,t:a,dist:u,norm:f,endNorm:h}=gh({config:t,source:n,target:r}),p=10,g=f.rotateByDegrees(-p).multiply(gi(t,n)-1).add(o),m=h.rotateByDegrees(p).multiply(gi(t,r)).add(a).add(h.rotateByDegrees(p).multiply(2*t.marker.size)),b=1.2*u;return`M${g.x},${g.y}
32
+ A${b},${b},0,0,1,${m.x},${m.y}`}function Bft({center:t,config:n,node:r}){const{n:o,c:a}=By({center:t,config:n,node:r}),u=gi(n,r),f=o.subtract(a),h=f.multiply(1/f.length()),p=40,g=h.rotateByDegrees(p).multiply(u-1).add(o),m=h.rotateByDegrees(-p).multiply(u).add(o).add(h.rotateByDegrees(-p).multiply(2*n.marker.size));return`M${g.x},${g.y}
33
+ A${u},${u},0,1,0,${m.x},${m.y}`}function Wft({config:t,source:n,target:r}){const{t:o,dist:a,endNorm:u}=gh({config:t,source:n,target:r}),f=10,h=u.rotateByDegrees(f).multiply(.5*a).add(o);return`translate(${h.x},${h.y})`}function Uft({center:t,config:n,node:r}){const{n:o,c:a}=By({center:t,config:n,node:r}),u=o.subtract(a),f=u.multiply(1/u.length()).multiply(3*gi(n,r)+8).add(o);return`translate(${f.x},${f.y})`}const Oo={line:{labelTransform:qft,path:Fft},arc:{labelTransform:Wft,path:Hft},reflexive:{labelTransform:Uft,path:Bft}};function jft(t){return t.append("g").classed("links",!0).selectAll("path")}function Gft({config:t,graph:n,selection:r,showLabels:o}){const a=r==null?void 0:r.data(n.links,u=>xft(u)).join(u=>{var f,h,p,g;const m=u.append("g"),b=m.append("path").classed("link",!0).style("marker-end",S=>_ft(S)).style("stroke",S=>S.color);(h=(f=t.modifiers).link)==null||h.call(f,b);const x=m.append("text").classed("link__label",!0).style("fill",S=>S.label?S.label.color:null).style("font-size",S=>S.label?S.label.fontSize:null).text(S=>S.label?S.label.text:null);return(g=(p=t.modifiers).linkLabel)==null||g.call(p,x),m});return a==null||a.select(".link__label").attr("opacity",u=>u.label&&o?1:0),a}function Vft(t){Kft(t),Xft(t)}function Kft({center:t,config:n,graph:r,selection:o}){o==null||o.selectAll("path").attr("d",a=>a.source.x===void 0||a.source.y===void 0||a.target.x===void 0||a.target.y===void 0?"":a.source.id===a.target.id?Oo.reflexive.path({config:n,node:a.source,center:t}):Uy(r,a.source,a.target)?Oo.arc.path({config:n,source:a.source,target:a.target}):Oo.line.path({config:n,source:a.source,target:a.target}))}function Xft({config:t,center:n,graph:r,selection:o}){o==null||o.select(".link__label").attr("transform",a=>a.source.x===void 0||a.source.y===void 0||a.target.x===void 0||a.target.y===void 0?"translate(0, 0)":a.source.id===a.target.id?Oo.reflexive.labelTransform({config:t,node:a.source,center:n}):Uy(r,a.source,a.target)?Oo.arc.labelTransform({config:t,source:a.source,target:a.target}):Oo.line.labelTransform({config:t,source:a.source,target:a.target}))}function Uy(t,n,r){return n.id!==r.id&&t.links.some(o=>o.target.id===n.id&&o.source.id===r.id)&&t.links.some(o=>o.target.id===r.id&&o.source.id===n.id)}function Yft(t){return t.append("defs").selectAll("marker")}function Zft({config:t,graph:n,selection:r}){return r==null?void 0:r.data(Qft(n),o=>o).join(o=>{const a=o.append("marker").attr("id",u=>zy(u)).attr("markerHeight",4*t.marker.size).attr("markerWidth",4*t.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",t.marker.ref[0]).attr("refY",t.marker.ref[1]).attr("viewBox",t.marker.viewBox).style("fill",u=>u);return a.append("path").attr("d",Jft(t.marker.path)),a})}function Qft(t){return[...new Set(t.links.map(n=>n.color))]}function Jft(t){if(t.length<1)return"M0,0";const[[n,r],...o]=t;return o.reduce((a,[u,f])=>`${a}L${u},${f}`,`M${n},${r}`)}function tht(t){return t.append("g").classed("nodes",!0).selectAll("circle")}function eht({config:t,drag:n,graph:r,onNodeContext:o,onNodeSelected:a,selection:u,showLabels:f}){const h=u==null?void 0:u.data(r.nodes,p=>p.id).join(p=>{var g,m,b,x;const S=p.append("g");n!==void 0&&S.call(n);const N=S.append("circle").classed("node",!0).attr("aria-label",L=>L.label?L.label.text:L.id).attr("r",L=>gi(t,L)).on("contextmenu",(L,C)=>{Dy(L),o(C)}).on("pointerdown",(L,C)=>rht(L,C,a!=null?a:o)).style("fill",L=>L.color);(m=(g=t.modifiers).node)==null||m.call(g,N);const A=S.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",L=>L.label?L.label.color:null).style("font-size",L=>L.label?L.label.fontSize:null).style("stroke","none").text(L=>L.label?L.label.text:null);return(x=(b=t.modifiers).nodeLabel)==null||x.call(b,A),S});return h==null||h.select(".node").classed("focused",p=>p.isFocused),h==null||h.select(".node__label").attr("opacity",f?1:0),h}const nht=500;function rht(t,n,r){if(t.button!==void 0&&t.button!==0)return;const o=n.lastInteractionTimestamp,a=Date.now();if(o===void 0||a-o>nht){n.lastInteractionTimestamp=a;return}n.lastInteractionTimestamp=void 0,r(n)}function iht(t){t==null||t.attr("transform",n=>{var r,o;return`translate(${(r=n.x)!=null?r:0},${(o=n.y)!=null?o:0})`})}function oht({center:t,config:n,graph:r,onTick:o}){var a,u;const f=hft(r.nodes),h=n.simulation.forces.centering;if(h&&h.enabled){const b=h.strength;f.force("x",pft(()=>t().x).strength(b)).force("y",gft(()=>t().y).strength(b))}const p=n.simulation.forces.charge;p&&p.enabled&&f.force("charge",dft().strength(p.strength));const g=n.simulation.forces.collision;g&&g.enabled&&f.force("collision",nft().radius(b=>g.radiusMultiplier*gi(n,b)));const m=n.simulation.forces.link;return m&&m.enabled&&f.force("link",ift(r.links).id(b=>b.id).distance(n.simulation.forces.link.length).strength(m.strength)),f.on("tick",()=>o()),(u=(a=n.modifiers).simulation)==null||u.call(a,f),f}function sht({canvasContainer:t,config:n,min:r,max:o,onZoom:a}){var u,f;const h=zut().scaleExtent([r,o]).filter(p=>{var g;return p.button===0||((g=p.touches)==null?void 0:g.length)>=2}).on("start",()=>t().classed("grabbed",!0)).on("zoom",p=>a(p)).on("end",()=>t().classed("grabbed",!1));return(f=(u=n.modifiers).zoom)==null||f.call(u,h),h}class lht{constructor(n,r,o){if(Me(this,"nodeTypes"),Me(this,"_nodeTypeFilter"),Me(this,"_includeUnlinked",!0),Me(this,"_linkFilter",()=>!0),Me(this,"_showLinkLabels",!0),Me(this,"_showNodeLabels",!0),Me(this,"filteredGraph"),Me(this,"width",0),Me(this,"height",0),Me(this,"simulation"),Me(this,"canvas"),Me(this,"linkSelection"),Me(this,"nodeSelection"),Me(this,"markerSelection"),Me(this,"zoom"),Me(this,"drag"),Me(this,"xOffset",0),Me(this,"yOffset",0),Me(this,"scale"),Me(this,"focusedNode"),Me(this,"resizeObserver"),this.container=n,this.graph=r,this.config=o,this.scale=o.zoom.initial,this.resetView(),this.graph.nodes.forEach(a=>{var u,f;const[h,p]=o.positionInitializer(a,this.effectiveWidth,this.effectiveHeight);a.x=(u=a.x)!=null?u:h,a.y=(f=a.y)!=null?f:p}),this.nodeTypes=[...new Set(r.nodes.map(a=>a.type))],this._nodeTypeFilter=[...this.nodeTypes],o.initial){const{includeUnlinked:a,nodeTypeFilter:u,linkFilter:f,showLinkLabels:h,showNodeLabels:p}=o.initial;this._includeUnlinked=a!=null?a:this._includeUnlinked,this._showLinkLabels=h!=null?h:this._showLinkLabels,this._showNodeLabels=p!=null?p:this._showNodeLabels,this._nodeTypeFilter=u!=null?u:this._nodeTypeFilter,this._linkFilter=f!=null?f:this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(o.simulation.alphas.initialize),o.autoResize&&(this.resizeObserver=new ResizeObserver(Nft(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(n){this._includeUnlinked=n,this.filterGraph(this.focusedNode);const{include:r,exclude:o}=this.config.simulation.alphas.filter.unlinked,a=n?r:o;this.restart(a)}set linkFilter(n){this._linkFilter=n,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(n){this._showNodeLabels=n;const{hide:r,show:o}=this.config.simulation.alphas.labels.nodes,a=n?o:r;this.restart(a)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(n){this._showLinkLabels=n;const{hide:r,show:o}=this.config.simulation.alphas.labels.links,a=n?o:r;this.restart(a)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return hn.of([this.width,this.height]).divide(2).subtract(hn.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const n=this.width,r=this.height,o=this.container.getBoundingClientRect().width,a=this.container.getBoundingClientRect().height,u=n.toFixed()!==o.toFixed(),f=r.toFixed()!==a.toFixed();if(!u&&!f)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const h=this.config.simulation.alphas.resize;this.restart(Ry(h)?h:h({oldWidth:n,oldHeight:r,newWidth:o,newHeight:a}))}restart(n){var r;this.markerSelection=Zft({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=Gft({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=eht({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=oht({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(n).restart()}filterNodesByType(n,r){n?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 n,r;this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),(n=this.resizeObserver)==null||n.unobserve(this.container),(r=this.simulation)==null||r.stop()}initGraph(){this.zoom=sht({config:this.config,canvasContainer:()=>_n(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:n=>this.onZoom(n)}),this.canvas=Pft({applyZoom:this.scale!==1,container:_n(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=jft(this.canvas),this.nodeSelection=tht(this.canvas),this.markerSelection=Yft(this.canvas),this.drag=$ft({config:this.config,onDragStart:()=>{var n;return(n=this.simulation)==null?void 0:n.alphaTarget(this.config.simulation.alphas.drag.start).restart()},onDragEnd:()=>{var n;return(n=this.simulation)==null?void 0:n.alphaTarget(this.config.simulation.alphas.drag.end).restart()}})}onTick(){iht(this.nodeSelection),Vft({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var n;(n=this.simulation)==null||n.stop(),_n(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(n){var r;this.xOffset=n.transform.x,this.yOffset=n.transform.y,this.scale=n.transform.k,this.applyZoom(),(r=this.simulation)==null||r.restart()}applyZoom(){Oft({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(n){n.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(n))):this.focusNode(n)}focusNode(n){this.filterGraph(n),this.restart(this.config.simulation.alphas.focus.acquire(n))}filterGraph(n){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),n!==void 0&&this._nodeTypeFilter.includes(n.type)&&(n.isFocused=!0,this.focusedNode=n),this.filteredGraph=Dft({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function Nv({nodes:t,links:n}){return{nodes:t!=null?t:[],links:n!=null?n:[]}}function aht(t){return{...t}}function jy(t){return{...t,isFocused:!1,lastInteractionTimestamp:void 0}}const cht={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},uht={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},fht=["id","checked","onChange"],hht=["for"],dht=ut("div",{"flex-auto":""},null,-1),pht=oe({__name:"ViewModuleGraph",props:{graph:null},setup(t){const n=t,{graph:r}=Bx(n),o=Kt(),a=Kt(!1),u=Kt(),f=Kt();If(()=>{a.value===!1&&setTimeout(()=>u.value=void 0,300)},{flush:"post"}),cl(()=>{g()}),qf(()=>{var b;(b=f.value)==null||b.shutdown()}),Fe(r,g);function h(b,x){var S;(S=f.value)==null||S.filterNodesByType(x,b)}function p(b){u.value=b,a.value=!0}function g(){var b;(b=f.value)==null||b.shutdown(),!(!r.value||!o.value)&&(f.value=new lht(o.value,r.value,Mft({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:x,newWidth:S})=>x===0&&S===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:Iy.Arrow(2),modifiers:{node:m},positionInitializer:r.value.nodes.length>1?vf.Randomized:vf.Centered,zoom:{min:.5,max:2}})))}function m(b){const x=L=>L.button===0;let S=0,N=0,A=0;b.on("pointerdown",(L,C)=>{C.type!=="external"&&(!C.x||!C.y||!x(L)||(S=C.x,N=C.y,A=Date.now()))}).on("pointerup",(L,C)=>{if(C.type==="external"||!C.x||!C.y||!x(L)||Date.now()-A>500)return;const E=C.x-S,z=C.y-N;E**2+z**2<100&&p(C.id)})}return(b,x)=>{var C;const S=Yo,N=olt,A=Vst,L=Yi("tooltip");return ht(),Mt("div",cht,[ut("div",null,[ut("div",uht,[(ht(!0),Mt(ue,null,lr((C=f.value)==null?void 0:C.nodeTypes.sort(),E=>{var z;return ht(),Mt("div",{key:E,flex:"~ gap-1","items-center":"","select-none":""},[ut("input",{id:`type-${E}`,type:"checkbox",checked:(z=f.value)==null?void 0:z.nodeTypeFilter.includes(E),onChange:D=>h(E,D.target.checked)},null,40,fht),ut("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"",truncate:"",for:`type-${E}`,"border-b-2":"",style:kn({"border-color":`var(--color-node-${E})`})},Zt(E)+" Modules",13,hht)])}),128)),dht,ut("div",null,[pn(Rt(S,{icon:"i-carbon-reset",onClick:g},null,512),[[L,"Reset",void 0,{bottom:!0}]])])])]),ut("div",{ref_key:"el",ref:o},null,512),Rt(A,{modelValue:a.value,"onUpdate:modelValue":x[1]||(x[1]=E=>a.value=E),direction:"right"},{default:Yt(()=>[u.value?(ht(),ce(i1,{key:0},{default:Yt(()=>[Rt(N,{id:u.value,onClose:x[0]||(x[0]=E=>a.value=!1)},null,8,["id"])]),_:1})):ye("",!0)]),_:1},8,["modelValue"])])}}});const ght={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},vht={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},mht={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},yht={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},bht={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},wht={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},vh=oe({__name:"StatusIcon",props:{task:null},setup(t){return(n,r)=>{var a,u,f;const o=Yi("tooltip");return((a=t.task.result)==null?void 0:a.state)==="pass"?(ht(),Mt("div",ght)):Z(dc)(t.task)?pn((ht(),Mt("div",vht,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):((u=t.task.result)==null?void 0:u.state)==="fail"?(ht(),Mt("div",mht)):t.task.mode==="todo"?pn((ht(),Mt("div",yht,null,512)),[[o,"Todo",void 0,{right:!0}]]):t.task.mode==="skip"||((f=t.task.result)==null?void 0:f.state)==="skip"?pn((ht(),Mt("div",bht,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(ht(),Mt("div",wht))}}});function xht(t){const n=new Map,r=new Map,o=[];for(;;){let a=0;if(t.forEach((u,f)=>{var m;const{splits:h,finished:p}=u;if(p){a++;const{raw:b,candidate:x}=u;n.set(b,x);return}if(h.length===0){u.finished=!0;return}const g=h[0];r.has(g)?(u.candidate+=u.candidate===""?g:`/${g}`,(m=r.get(g))==null||m.push(f),h.shift()):(r.set(g,[f]),o.push(f))}),o.forEach(u=>{const f=t[u],h=f.splits.shift();f.candidate+=f.candidate===""?h:`/${h}`}),r.forEach(u=>{if(u.length===1){const f=u[0];t[f].finished=!0}}),r.clear(),o.length=0,a===t.length)break}return n}function _ht(t){let n=t;n.includes("/node_modules/")&&(n=t.split(/\/node_modules\//g).pop());const r=n.split(/\//g);return{raw:n,splits:r,candidate:"",finished:!1,id:t}}function Sht(t){const n=t.map(o=>_ht(o)),r=xht(n);return n.map(({raw:o,id:a})=>{var u;return jy({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:(u=r.get(o))!=null?u:""},isFocused:!1,id:a,type:"external"})})}function kht(t,n){return jy({color:n?"var(--color-node-root)":"var(--color-node-inline)",label:{color:n?"var(--color-node-root)":"var(--color-node-inline)",fontSize:"0.875rem",text:t.split(/\//g).pop()},isFocused:!1,id:t,type:"inline"})}function Cht(t,n){var h;if(!t)return Nv({});const r=Sht(t.externalized),o=(h=t.inlined.map(p=>kht(p,p===n)))!=null?h:[],a=[...r,...o],u=Object.fromEntries(a.map(p=>[p.id,p])),f=Object.entries(t.graph).flatMap(([p,g])=>g.map(m=>{const b=u[p],x=u[m];if(!(b===void 0||x===void 0))return aht({source:b,target:x,color:"var(--color-link)",label:!1})}).filter(m=>m!==void 0));return Nv({nodes:a,links:f})}const Tht={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":""},Lht={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Eht={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},Aht={class:"flex text-lg"},Mht={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},Nht={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},Pht={key:0,"flex-1":""},Oht=oe({__name:"FileDetails",setup(t){const n=Kt({externalized:[],graph:{},inlined:[]}),r=Kt({nodes:[],links:[]}),o=Kt(!1),a=Kt(!1);fC(Le,async(g,m)=>{g&&g.filepath!==(m==null?void 0:m.filepath)&&(n.value=await We.rpc.getModuleGraph(g.filepath),r.value=Cht(n.value,g.filepath))},{debounce:100,immediate:!0});const u=()=>{var m;const g=(m=Le.value)==null?void 0:m.filepath;g&&fetch(`/__open-in-editor?file=${encodeURIComponent(g)}`)},f=g=>{g==="graph"&&(a.value=!0),or.value=g},h=St(()=>{var g,m;return(m=(g=H0.value)==null?void 0:g.reduce((b,{size:x})=>b+x,0))!=null?m:0});function p(g){o.value=g}return(g,m)=>{var E,z;const b=vh,x=Yo,S=pht,N=Gst,A=qst,L=Pst,C=Yi("tooltip");return Z(Le)?(ht(),Mt("div",Tht,[ut("div",null,[ut("div",Lht,[Rt(b,{task:Z(Le)},null,8,["task"]),ut("div",Eht,Zt((E=Z(Le))==null?void 0:E.filepath),1),ut("div",Aht,[pn(Rt(x,{title:"Open in editor",icon:"i-carbon-launch",disabled:!((z=Z(Le))!=null&&z.filepath),onClick:u},null,8,["disabled"]),[[C,"Open in editor",void 0,{bottom:!0}]])])]),ut("div",Mht,[ut("button",{"tab-button":"",class:ge({"tab-button-active":Z(or)==null}),onClick:m[0]||(m[0]=D=>f(null))}," Report ",2),ut("button",{"tab-button":"",class:ge({"tab-button-active":Z(or)==="graph"}),onClick:m[1]||(m[1]=D=>f("graph"))}," Module Graph ",2),ut("button",{"tab-button":"",class:ge({"tab-button-active":Z(or)==="editor"}),onClick:m[2]||(m[2]=D=>f("editor"))},Zt(o.value?"*\xA0":"")+"Code ",3),ut("button",{"tab-button":"",class:ge({"tab-button-active":Z(or)==="console",op20:Z(or)!=="console"&&Z(h)===0}),onClick:m[3]||(m[3]=D=>f("console"))}," Console ("+Zt(Z(h))+") ",3)])]),ut("div",Nht,[a.value?(ht(),Mt("div",Pht,[pn(Rt(S,{graph:r.value},null,8,["graph"]),[[Fm,Z(or)==="graph"]])])):ye("",!0),Z(or)==="editor"?(ht(),ce(N,{key:Z(Le).filepath,file:Z(Le),onDraft:p},null,8,["file"])):Z(or)==="console"?(ht(),ce(A,{key:2,file:Z(Le)},null,8,["file"])):Z(or)?ye("",!0):(ht(),ce(L,{key:3,file:Z(Le)},null,8,["file"]))])])):ye("",!0)}}}),$ht=["open"],Dht=ut("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),Rht=ut("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),zht=oe({__name:"DetailsPanel",props:{color:null},setup(t){const n=Kt(!0);return(r,o)=>(ht(),Mt("div",{open:n.value,class:"details-panel",onToggle:o[0]||(o[0]=a=>n.value=a.target.open)},[ut("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:ge(t.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[Dht,Kn(r.$slots,"summary",{open:n.value}),Rht],2),Kn(r.$slots,"default")],40,$ht))}});const Iht={key:0,flex:"~ row","items-center":"",p:"x-2 y-1","border-rounded":"","cursor-pointer":"",hover:"bg-active"},Fht=["text"],qht={"text-sm":"",truncate:"","font-light":""},Hht={key:0,text:"xs",op20:"",style:{"white-space":"nowrap"}},Bht=oe({__name:"TaskItem",props:{task:null},setup(t){const n=t,r=St(()=>{const{result:o}=n.task;return o&&Math.round(o.duration||0)});return(o,a)=>{var f,h;const u=vh;return t.task?(ht(),Mt("div",Iht,[Rt(u,{task:t.task,"mr-2":""},null,8,["task"]),ut("div",{flex:"","items-end":"","gap-2":"",text:((h=(f=t.task)==null?void 0:f.result)==null?void 0:h.state)==="fail"?"red-500":""},[ut("span",qht,Zt(t.task.name),1),typeof Z(r)=="number"?(ht(),Mt("span",Hht,Zt(Z(r)>0?Z(r):"< 1")+"ms ",1)):ye("",!0)],8,Fht)])):ye("",!0)}}});function Wht(t){return Object.hasOwnProperty.call(t,"tasks")}function Gy(t,n){return typeof t!="string"||typeof n!="string"?!1:t.toLowerCase().includes(n.toLowerCase())}const Uht={key:1},jht={inheritAttrs:!1},Ght=oe({...jht,__name:"TaskTree",props:{task:null,indent:{default:0},nested:{type:Boolean,default:!1},search:null,onItemClick:null},setup(t){return(n,r)=>{const o=Bht,a=ji("TaskTree",!0);return ht(),Mt(ue,null,[!t.search||Z(Gy)(t.task.name,t.search)?(ht(),ce(o,hi({key:0},n.$attrs,{task:t.task,style:{paddingLeft:`${t.indent*.75+1}rem`},onClick:r[0]||(r[0]=u=>t.onItemClick&&t.onItemClick(t.task))}),null,16,["task","style"])):ye("",!0),t.nested&&t.task.type==="suite"&&t.task.tasks.length?(ht(),Mt("div",Uht,[(ht(!0),Mt(ue,null,lr(t.task.tasks,u=>(ht(),ce(a,{key:u.id,task:u,nested:t.nested,indent:t.indent+1,search:t.search,"on-item-click":t.onItemClick},null,8,["task","nested","indent","search","on-item-click"]))),128))])):ye("",!0)],64)}}}),Vht={h:"full",flex:"~ col"},Kht={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Xht={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Yht=ut("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1),Zht=["op"],Qht={class:"scrolls","flex-auto":"","py-1":""},Jht={"text-red5":""},tdt={"text-yellow5":""},edt={"text-green5":""},ndt={class:"text-purple5:50"},rdt={key:2,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},idt=ut("div",{op30:""}," No matched test ",-1),odt={inheritAttrs:!1},Vy=oe({...odt,__name:"TasksList",props:{tasks:null,indent:{default:0},nested:{type:Boolean,default:!1},groupByType:{type:Boolean,default:!1},onItemClick:null},emits:["run"],setup(t,{emit:n}){const r=t,o=Kt(""),a=Kt(),u=St(()=>o.value.trim()!==""),f=(L,C)=>{let E=!1;for(let z=0;z<L.length;z++){const D=L[z];if(Gy(D.name,C)){E=!0;break}if(Wht(D)&&D.tasks&&(E=f(D.tasks,C),E))break}return E},h=St(()=>o.value.trim()?r.tasks.filter(L=>f([L],o.value)):r.tasks),p=St(()=>u.value?h.value.map(L=>za(L.id)).filter(Boolean):[]),g=St(()=>h.value.filter(L=>{var C;return((C=L.result)==null?void 0:C.state)==="fail"})),m=St(()=>h.value.filter(L=>{var C;return((C=L.result)==null?void 0:C.state)==="pass"})),b=St(()=>h.value.filter(L=>L.mode==="skip"||L.mode==="todo")),x=St(()=>h.value.filter(L=>!g.value.includes(L)&&!m.value.includes(L)&&!b.value.includes(L))),S=Jk(x,250),N=L=>{var C;o.value="",L&&((C=a.value)==null||C.focus())},A=St(()=>o.value==="");return(L,C)=>{const E=Yo,z=Ght,D=zht,G=Yi("tooltip");return ht(),Mt("div",Vht,[ut("div",null,[ut("div",Kht,[Kn(L.$slots,"header",{filteredTests:Z(u)?Z(p):void 0})]),ut("div",Xht,[Yht,pn(ut("input",{ref_key:"searchBox",ref:a,"onUpdate:modelValue":C[0]||(C[0]=j=>o.value=j),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:o.value.length?"100":"50",onKeydown:[C[1]||(C[1]=Gu(j=>N(!1),["esc"])),C[2]||(C[2]=Gu(j=>n("run",Z(u)?Z(p):void 0),["enter"]))]},null,40,Zht),[[C_,o.value]]),pn(Rt(E,{disabled:Z(A),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:C[3]||(C[3]=j=>N(!0))},null,8,["disabled"]),[[G,"Clear search",void 0,{bottom:!0}]])])]),ut("div",Qht,[t.groupByType?(ht(),Mt(ue,{key:0},[Z(g).length?(ht(),ce(D,{key:0},{summary:Yt(()=>[ut("div",Jht," FAIL ("+Zt(Z(g).length)+") ",1)]),default:Yt(()=>[(ht(!0),Mt(ue,null,lr(Z(g),j=>(ht(),ce(z,{key:j.id,task:j,nested:t.nested,search:o.value,class:ge(Z(Mr)===j.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):ye("",!0),Z(x).length||Z(Ra)==="running"?(ht(),ce(D,{key:1},{summary:Yt(()=>[ut("div",tdt," RUNNING ("+Zt(Z(S).length)+") ",1)]),default:Yt(()=>[(ht(!0),Mt(ue,null,lr(Z(S),j=>(ht(),ce(z,{key:j.id,task:j,nested:t.nested,search:o.value,class:ge(Z(Mr)===j.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):ye("",!0),Z(m).length?(ht(),ce(D,{key:2},{summary:Yt(()=>[ut("div",edt," PASS ("+Zt(Z(m).length)+") ",1)]),default:Yt(()=>[(ht(!0),Mt(ue,null,lr(Z(m),j=>(ht(),ce(z,{key:j.id,task:j,nested:t.nested,search:o.value,class:ge(Z(Mr)===j.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):ye("",!0),Z(b).length?(ht(),ce(D,{key:3},{summary:Yt(()=>[ut("div",ndt," SKIP ("+Zt(Z(b).length)+") ",1)]),default:Yt(()=>[(ht(!0),Mt(ue,null,lr(Z(b),j=>(ht(),ce(z,{key:j.id,task:j,nested:t.nested,search:o.value,class:ge(Z(Mr)===j.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):ye("",!0)],64)):(ht(!0),Mt(ue,{key:1},lr(Z(h),j=>(ht(),ce(z,{key:j.id,task:j,nested:t.nested,search:o.value,class:ge(Z(Mr)===j.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128)),Z(u)&&Z(h).length===0?(ht(),Mt("div",rdt,[idt,ut("button",{"font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:C[4]||(C[4]=j=>N(!0))}," Clear ",32)])):ye("",!0)])])}}}),sdt={key:0,"h-full":""},ldt={"font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},adt={class:"flex text-lg"},cdt=oe({__name:"Suites",setup(t){const n=St(()=>{var a;return(a=Le.value)==null?void 0:a.name.split(/\//g).pop()}),r=St(()=>{var a,u;return((a=Le.value)==null?void 0:a.tasks)&&dc((u=Le.value)==null?void 0:u.tasks)}),o=()=>Le.value&&We.rpc.updateSnapshot(Le.value);return(a,u)=>{const f=vh,h=Yo,p=Vy,g=Yi("tooltip");return Z(Le)?(ht(),Mt("div",sdt,[Rt(p,{tasks:Z(Le).tasks,nested:!0},{header:Yt(()=>[Rt(f,{"mx-1":"",task:Z(Le)},null,8,["task"]),ut("span",ldt,Zt(Z(n)),1),ut("div",adt,[Z(r)?pn((ht(),ce(h,{key:0,icon:"i-carbon-result-old",onClick:u[0]||(u[0]=m=>o())},null,512)),[[g,`Update failed snapshot(s) of ${Z(Le).name}`,void 0,{bottom:!0}]]):ye("",!0),pn(Rt(h,{icon:"i-carbon-play",onClick:u[1]||(u[1]=m=>Z(xT)())},null,512),[[g,"Rerun file",void 0,{bottom:!0}]])])]),_:1},8,["tasks"])])):ye("",!0)}}}),Ua=St(()=>Tn.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="fail"})),ja=St(()=>Tn.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="pass"})),mh=St(()=>Tn.value.filter(t=>t.mode==="skip"||t.mode==="todo"));St(()=>Tn.value.filter(t=>!Ua.value.includes(t)&&!ja.value.includes(t)&&!mh.value.includes(t)));St(()=>mh.value.filter(t=>t.mode==="skip"));const Pv=St(()=>Tn.value.filter(dc));St(()=>mh.value.filter(t=>t.mode==="todo"));const udt=St(()=>Ra.value==="idle"),vl=St(()=>yh(Tn.value)),Ky=St(()=>vl.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="fail"})),Xy=St(()=>vl.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="pass"})),Yy=St(()=>vl.value.filter(t=>t.mode==="skip"||t.mode==="todo")),fdt=St(()=>Yy.value.filter(t=>t.mode==="skip")),hdt=St(()=>Yy.value.filter(t=>t.mode==="todo"));St(()=>Ky.value.length+Xy.value.length);const ddt=St(()=>{const t=yh(vl.value).reduce((n,r)=>{var o;return(o=r.result)!=null&&o.duration&&(n+=r.result.duration),n},0);return t>1e3?`${(t/1e3).toFixed(2)}s`:`${Math.round(t)}ms`});function pdt(t){return t=t||[],Array.isArray(t)?t:[t]}function Ov(t){return t.type==="test"||t.type==="benchmark"}function yh(t){return pdt(t).flatMap(n=>Ov(n)?[n]:n.tasks.flatMap(r=>Ov(r)?[r]:yh(r)))}const gr=t=>(hm("data-v-6679a536"),t=t(),dm(),t),gdt={"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:""},vdt=gr(()=>ut("div",{"i-carbon-document":""},null,-1)),mdt=gr(()=>ut("div",null,"Files",-1)),ydt={class:"number","data-testid":"num-files"},bdt=gr(()=>ut("div",{"i-carbon-checkmark":""},null,-1)),wdt=gr(()=>ut("div",null,"Pass",-1)),xdt={class:"number"},_dt=gr(()=>ut("div",{"i-carbon-close":""},null,-1)),Sdt=gr(()=>ut("div",null," Fail ",-1)),kdt={class:"number","text-red5":""},Cdt=gr(()=>ut("div",{"i-carbon-compare":""},null,-1)),Tdt=gr(()=>ut("div",null," Snapshot Fail ",-1)),Ldt={class:"number","text-red5":""},Edt=gr(()=>ut("div",{"i-carbon-timer":""},null,-1)),Adt=gr(()=>ut("div",null,"Time",-1)),Mdt={class:"number","data-testid":"run-time"},Ndt=oe({__name:"TestFilesEntry",setup(t){return(n,r)=>(ht(),Mt("div",gdt,[vdt,mdt,ut("div",ydt,Zt(Z(Tn).length),1),Z(ja).length?(ht(),Mt(ue,{key:0},[bdt,wdt,ut("div",xdt,Zt(Z(ja).length),1)],64)):ye("",!0),Z(Ua).length?(ht(),Mt(ue,{key:1},[_dt,Sdt,ut("div",kdt,Zt(Z(Ua).length),1)],64)):ye("",!0),Z(Pv).length?(ht(),Mt(ue,{key:2},[Cdt,Tdt,ut("div",Ldt,Zt(Z(Pv).length),1)],64)):ye("",!0),Edt,Adt,ut("div",Mdt,Zt(Z(ddt)),1)]))}});const Pdt=Ko(Ndt,[["__scopeId","data-v-6679a536"]]),Odt={"p-2":"","text-center":"",flex:""},$dt={"text-4xl":"","min-w-2em":""},Ddt={"text-md":""},Rdt=oe({__name:"DashboardEntry",props:{tail:{type:Boolean,default:!1}},setup(t){return(n,r)=>(ht(),Mt("div",Odt,[ut("div",null,[ut("div",$dt,[Kn(n.$slots,"body")]),ut("div",Ddt,[Kn(n.$slots,"header")])])]))}}),zdt={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},Idt=oe({__name:"TestsEntry",setup(t){const n=St(()=>vl.value.length),r=St(()=>Xy.value.length),o=St(()=>Ky.value.length),a=St(()=>fdt.value.length),u=St(()=>hdt.value.length);return St(()=>Z(n)-o.value-r.value),(f,h)=>{const p=Rdt;return ht(),Mt("div",zdt,[Rt(p,{"text-green5":"","data-testid":"pass-entry"},{header:Yt(()=>[fn(" Pass ")]),body:Yt(()=>[fn(Zt(Z(r)),1)]),_:1}),Rt(p,{class:ge({"text-red5":Z(o),op50:!Z(o)}),"data-testid":"fail-entry"},{header:Yt(()=>[fn(" Fail ")]),body:Yt(()=>[fn(Zt(Z(o)),1)]),_:1},8,["class"]),Z(a)?(ht(),ce(p,{key:0,op50:"","data-testid":"skipped-entry"},{header:Yt(()=>[fn(" Skip ")]),body:Yt(()=>[fn(Zt(Z(a)),1)]),_:1})):ye("",!0),Z(u)?(ht(),ce(p,{key:1,op50:"","data-testid":"todo-entry"},{header:Yt(()=>[fn(" Todo ")]),body:Yt(()=>[fn(Zt(Z(u)),1)]),_:1})):ye("",!0),Rt(p,{tail:!0,"data-testid":"total-entry"},{header:Yt(()=>[fn(" Total ")]),body:Yt(()=>[fn(Zt(Z(n)),1)]),_:1})])}}}),Fdt={},qdt={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},Hdt={"aria-labelledby":"tests",m:"y-4 x-2"};function Bdt(t,n){const r=Idt,o=Pdt;return ht(),Mt("div",qdt,[ut("section",Hdt,[Rt(r)]),Rt(o)])}const Wdt=Ko(Fdt,[["render",Bdt]]),Udt={},jdt={h:"full",flex:"~ col"},Gdt=ut("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[ut("div",{class:"i-carbon-dashboard"}),ut("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1),Vdt={class:"scrolls","flex-auto":"","py-1":""};function Kdt(t,n){const r=Wdt;return ht(),Mt("div",jdt,[Gdt,ut("div",Vdt,[Rt(r)])])}const Xdt=Ko(Udt,[["render",Kdt]]),Ydt="/__vitest__/favicon.svg",Ga=Kt(),Bs=Kt(!0);function Zdt(){const t=Mr.value;if(t&&t.length>0){const n=za(t);n?(Ga.value=n,Bs.value=!1):hC(()=>We.state.getFiles(),()=>{Ga.value=za(t),Bs.value=!1})}return Bs}function $v(t){Bs.value=t,t&&(Ga.value=void 0,Mr.value="")}const Qdt=ut("img",{"w-6":"","h-6":"",src:Ydt,alt:"Vitest logo"},null,-1),Jdt=ut("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1),tpt={class:"flex text-lg"},ept=oe({__name:"Navigation",setup(t){const n=St(()=>Tn.value&&dc(Tn.value)),r=()=>We.rpc.updateSnapshot();function o(u){Mr.value=u.id,Ga.value=za(u.id),$v(!1)}const a=St(()=>vc.value?"light":"dark");return(u,f)=>{const h=Yo,p=Vy,g=Yi("tooltip");return ht(),ce(p,{border:"r base",tasks:Z(Tn),"on-item-click":o,"group-by-type":!0,onRun:Z(Zg)},{header:Yt(({filteredTests:m})=>[Qdt,Jdt,ut("div",tpt,[pn(Rt(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon-dashboard",onClick:f[0]||(f[0]=b=>Z($v)(!0))},null,512),[[Fm,!Z(Bs)],[g,"Dashboard",void 0,{bottom:!0}]]),Z(n)?pn((ht(),ce(h,{key:0,icon:"i-carbon-result-old",onClick:f[1]||(f[1]=b=>r())},null,512)),[[g,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):ye("",!0),pn(Rt(h,{disabled:(m==null?void 0:m.length)===0,icon:"i-carbon-play",onClick:b=>Z(Zg)(m)},null,8,["disabled","onClick"]),[[g,m?m.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),pn(Rt(h,{icon:"dark:i-carbon-moon i-carbon-sun",onClick:f[2]||(f[2]=b=>Z(kst)())},null,512),[[g,`Toggle to ${Z(a)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["tasks","onRun"])}}}),npt={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},rpt=oe({__name:"ProgressBar",setup(t){const{width:n}=eT(),r=St(()=>Tn.value.length===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":udt.value?null:"in-progress"),o=St(()=>Tn.value.length),a=St(()=>ja.value.length),u=St(()=>Ua.value.length),f=St(()=>{const m=Z(o);return m>0?n.value*a.value/m:0}),h=St(()=>{const m=Z(o);return m>0?n.value*u.value/m:0}),p=St(()=>Z(o)-u.value-a.value),g=St(()=>{const m=Z(o);return m>0?n.value*p.value/m:0});return(m,b)=>(ht(),Mt("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:ge(Z(r))},[ut("div",npt,[ut("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:ge(Z(r)),style:kn(`width: ${Z(h)}px;`)}," \xA0 ",6),ut("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:ge(Z(r)),style:kn(`left: ${Z(h)}px; width: ${Z(f)}px;`)}," \xA0 ",6),ut("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:ge(Z(r)),style:kn(`left: ${Z(f)+Z(h)}px; width: ${Z(g)}px;`)}," \xA0 ",6)])],2))}});const ipt=Ko(rpt,[["__scopeId","data-v-f967c1fe"]]);var opt=Object.defineProperty,spt=Object.defineProperties,lpt=Object.getOwnPropertyDescriptors,Va=Object.getOwnPropertySymbols,Zy=Object.prototype.hasOwnProperty,Qy=Object.prototype.propertyIsEnumerable,Dv=(t,n,r)=>n in t?opt(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,apt=(t,n)=>{for(var r in n||(n={}))Zy.call(n,r)&&Dv(t,r,n[r]);if(Va)for(var r of Va(n))Qy.call(n,r)&&Dv(t,r,n[r]);return t},cpt=(t,n)=>spt(t,lpt(n)),upt=(t,n)=>{var r={};for(var o in t)Zy.call(t,o)&&n.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Va)for(var o of Va(t))n.indexOf(o)<0&&Qy.call(t,o)&&(r[o]=t[o]);return r};const Rv={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((t,n)=>(t[n.id]=n)&&t,{})}},methods:{updatePaneComponents(){this.panes.forEach(t=>{t.update&&t.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[t.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(t,n){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=n},onMouseMove(t){this.touch.mouseDown&&(t.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(t)),this.$emit("resize",this.panes.map(n=>({min:n.min,max:n.max,size:n.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(t,n){"ontouchstart"in window&&(t.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===n?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(t,n),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=n,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[n])},onSplitterDblClick(t,n){let r=0;this.panes=this.panes.map((o,a)=>(o.size=a===n?o.max:o.min,a!==n&&(r+=o.min),o)),this.panes[n].size-=r,this.$emit("pane-maximize",this.panes[n])},onPaneClick(t,n){this.$emit("pane-click",this.indexedPanes[n])},getCurrentMouseDrag(t){const n=this.container.getBoundingClientRect(),{clientX:r,clientY:o}="ontouchstart"in window&&t.touches?t.touches[0]:t;return{x:r-n.left,y:o-n.top}},getCurrentDragPercentage(t){t=t[this.horizontal?"y":"x"];const n=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(t=n-t),t*100/n},calculatePanesSize(t){const n=this.touch.activeSplitter;let r={prevPanesSize:this.sumPrevPanesSize(n),nextPanesSize:this.sumNextPanesSize(n),prevReachedMinPanes:0,nextReachedMinPanes:0};const o=0+(this.pushOtherPanes?0:r.prevPanesSize),a=100-(this.pushOtherPanes?0:r.nextPanesSize),u=Math.max(Math.min(this.getCurrentDragPercentage(t),a),o);let f=[n,n+1],h=this.panes[f[0]]||null,p=this.panes[f[1]]||null;const g=h.max<100&&u>=h.max+r.prevPanesSize,m=p.max<100&&u<=100-(p.max+this.sumNextPanesSize(n+1));if(g||m){g?(h.size=h.max,p.size=Math.max(100-h.max-r.prevPanesSize-r.nextPanesSize,0)):(h.size=Math.max(100-p.max-r.prevPanesSize-this.sumNextPanesSize(n+1),0),p.size=p.max);return}if(this.pushOtherPanes){const b=this.doPushOtherPanes(r,u);if(!b)return;({sums:r,panesToResize:f}=b),h=this.panes[f[0]]||null,p=this.panes[f[1]]||null}h!==null&&(h.size=Math.min(Math.max(u-r.prevPanesSize-r.prevReachedMinPanes,h.min),h.max)),p!==null&&(p.size=Math.min(Math.max(100-u-r.nextPanesSize-r.nextReachedMinPanes,p.min),p.max))},doPushOtherPanes(t,n){const r=this.touch.activeSplitter,o=[r,r+1];return n<t.prevPanesSize+this.panes[o[0]].min&&(o[0]=this.findPrevExpandedPane(r).index,t.prevReachedMinPanes=0,o[0]<r&&this.panes.forEach((a,u)=>{u>o[0]&&u<=r&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),t.prevPanesSize=this.sumPrevPanesSize(o[0]),o[0]===void 0)?(t.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((a,u)=>{u>0&&u<=r&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),this.panes[o[1]].size=100-t.prevReachedMinPanes-this.panes[0].min-t.prevPanesSize-t.nextPanesSize,null):n>100-t.nextPanesSize-this.panes[o[1]].min&&(o[1]=this.findNextExpandedPane(r).index,t.nextReachedMinPanes=0,o[1]>r+1&&this.panes.forEach((a,u)=>{u>r&&u<o[1]&&(a.size=a.min,t.nextReachedMinPanes+=a.min)}),t.nextPanesSize=this.sumNextPanesSize(o[1]-1),o[1]===void 0)?(t.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((a,u)=>{u<this.panesCount-1&&u>=r+1&&(a.size=a.min,t.nextReachedMinPanes+=a.min)}),this.panes[o[0]].size=100-t.prevPanesSize-t.nextReachedMinPanes-this.panes[this.panesCount-1].min-t.nextPanesSize,null):{sums:t,panesToResize:o}},sumPrevPanesSize(t){return this.panes.reduce((n,r,o)=>n+(o<t?r.size:0),0)},sumNextPanesSize(t){return this.panes.reduce((n,r,o)=>n+(o>t+1?r.size:0),0)},findPrevExpandedPane(t){return[...this.panes].reverse().find(r=>r.index<t&&r.size>r.min)||{}},findNextExpandedPane(t){return this.panes.find(r=>r.index>t+1&&r.size>r.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(n=>{const r=n.classList.contains("splitpanes__pane"),o=n.classList.contains("splitpanes__splitter");if(!r&&!o){n.parentNode.removeChild(n),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed.");return}})},addSplitter(t,n,r=!1){const o=t-1,a=document.createElement("div");a.classList.add("splitpanes__splitter"),r||(a.onmousedown=u=>this.onMouseDown(u,o),typeof window<"u"&&"ontouchstart"in window&&(a.ontouchstart=u=>this.onMouseDown(u,o)),a.onclick=u=>this.onSplitterClick(u,o+1)),this.dblClickSplitter&&(a.ondblclick=u=>this.onSplitterDblClick(u,o+1)),n.parentNode.insertBefore(a,n)},removeSplitter(t){t.onmousedown=void 0,t.onclick=void 0,t.ondblclick=void 0,t.parentNode.removeChild(t)},redoSplitters(){const t=Array.from(this.container.children);t.forEach(r=>{r.className.includes("splitpanes__splitter")&&this.removeSplitter(r)});let n=0;t.forEach(r=>{r.className.includes("splitpanes__pane")&&(!n&&this.firstSplitter?this.addSplitter(n,r,!0):n&&this.addSplitter(n,r),n++)})},requestUpdate(t){var n=t,{target:r}=n,o=upt(n,["target"]);const a=this.indexedPanes[r._.uid];Object.entries(o).forEach(([u,f])=>a[u]=f)},onPaneAdd(t){let n=-1;Array.from(t.$el.parentNode.children).some(a=>(a.className.includes("splitpanes__pane")&&n++,a===t.$el));const r=parseFloat(t.minSize),o=parseFloat(t.maxSize);this.panes.splice(n,0,{id:t._.uid,index:n,min:isNaN(r)?0:r,max:isNaN(o)?100:o,size:t.size===null?null:parseFloat(t.size),givenSize:t.size,update:t.update}),this.panes.forEach((a,u)=>a.index=u),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[n]}),this.$emit("pane-add",{index:n,panes:this.panes.map(a=>({min:a.min,max:a.max,size:a.size}))})})},onPaneRemove(t){const n=this.panes.findIndex(o=>o.id===t._.uid),r=this.panes.splice(n,1)[0];this.panes.forEach((o,a)=>o.index=a),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:cpt(apt({},r),{index:n})}),this.$emit("pane-remove",{removed:r,panes:this.panes.map(o=>({min:o.min,max:o.max,size:o.size}))})})},resetPaneSizes(t={}){!t.addedPane&&!t.removedPane?this.initialPanesSizing():this.panes.some(n=>n.givenSize!==null||n.min||n.max<100)?this.equalizeAfterAddOrRemove(t):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(n=>({min:n.min,max:n.max,size:n.size})))},equalize(){const t=100/this.panesCount;let n=0,r=[],o=[];this.panes.forEach(a=>{a.size=Math.max(Math.min(t,a.max),a.min),n-=a.size,a.size>=a.max&&r.push(a.id),a.size<=a.min&&o.push(a.id)}),n>.1&&this.readjustSizes(n,r,o)},initialPanesSizing(){100/this.panesCount;let t=100,n=[],r=[],o=0;this.panes.forEach(u=>{t-=u.size,u.size!==null&&o++,u.size>=u.max&&n.push(u.id),u.size<=u.min&&r.push(u.id)});let a=100;t>.1&&(this.panes.forEach(u=>{u.size===null&&(u.size=Math.max(Math.min(t/(this.panesCount-o),u.max),u.min)),a-=u.size}),a>.1&&this.readjustSizes(t,n,r))},equalizeAfterAddOrRemove({addedPane:t,removedPane:n}={}){let r=100/this.panesCount,o=0,a=[],u=[];t&&t.givenSize!==null&&(r=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(f=>{o-=f.size,f.size>=f.max&&a.push(f.id),f.size<=f.min&&u.push(f.id)}),!(Math.abs(o)<.1)&&(this.panes.forEach(f=>{t&&t.givenSize!==null&&t.id===f.id||(f.size=Math.max(Math.min(r,f.max),f.min)),o-=f.size,f.size>=f.max&&a.push(f.id),f.size<=f.min&&u.push(f.id)}),o>.1&&this.readjustSizes(o,a,u))},readjustSizes(t,n,r){let o;t>0?o=t/(this.panesCount-n.length):o=t/(this.panesCount-r.length),this.panes.forEach((a,u)=>{if(t>0&&!n.includes(a.id)){const f=Math.max(Math.min(a.size+o,a.max),a.min);t-=f-a.size,a.size=f}else if(!r.includes(a.id)){const f=Math.max(Math.min(a.size+o,a.max),a.min);t-=f-a.size,a.size=f}a.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[a.id].size}%`})}),Math.abs(t)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(t){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((r,o)=>{r.ondblclick=t?a=>this.onSplitterDblClick(a,o):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return ul("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}};var fpt=(t,n)=>{const r=t.__vccOpts||t;for(const[o,a]of n)r[o]=a;return r};const hpt={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(t){this.style=t}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(t){this.requestUpdate({target:this,size:t})},minSizeNumber(t){this.requestUpdate({target:this,min:t})},maxSizeNumber(t){this.requestUpdate({target:this,max:t})}}};function dpt(t,n,r,o,a,u){return ht(),Mt("div",{class:"splitpanes__pane",onClick:n[0]||(n[0]=f=>u.onPaneClick(f,t._.uid)),style:kn(t.style)},[Kn(t.$slots,"default")],4)}var ca=fpt(hpt,[["render",dpt]]);const ppt={"h-screen":"","w-screen":"",overflow:"hidden"},gpt=oe({__name:"index",setup(t){const n=Zdt(),r=hr([33,67]),o=hr([33,67]),a=$g(h=>{h.forEach((p,g)=>{r[g]=p.size})},0),u=$g(h=>{h.forEach((p,g)=>{o[g]=p.size})},0),f=()=>{const h=window.innerWidth,p=Math.min(h/3,300);r[0]=100*p/h,r[1]=100-r[0],o[0]=100*p/(h-p),o[1]=100-o[0]};return(h,p)=>{const g=ipt,m=ept,b=Xdt,x=cdt,S=Oht,N=kT;return ht(),Mt(ue,null,[Rt(g),ut("div",ppt,[Rt(Z(Rv),{class:"pt-4px",onResized:Z(a),onReady:f},{default:Yt(()=>[Rt(Z(ca),{size:r[0]},{default:Yt(()=>[Rt(m)]),_:1},8,["size"]),Rt(Z(ca),{size:r[1]},{default:Yt(()=>[Rt(jf,null,{default:Yt(()=>[Z(n)?(ht(),ce(b,{key:"summary"})):(ht(),ce(Z(Rv),{key:"detail",onResized:Z(u)},{default:Yt(()=>[Rt(Z(ca),{size:o[0]},{default:Yt(()=>[Rt(x)]),_:1},8,["size"]),Rt(Z(ca),{size:o[1]},{default:Yt(()=>[Rt(S)]),_:1},8,["size"])]),_:1},8,["onResized"]))]),_:1})]),_:1},8,["size"])]),_:1},8,["onResized"])]),Rt(N)],64)}}}),vpt=[{name:"index",path:"/",component:gpt,props:!0}];const mpt={tooltip:jk};w0.options.instantMove=!0;w0.options.distance=10;const ypt=()=>$S({history:Y_("/__vitest__/"),routes:vpt}),bpt=[ypt],bh=qm(P_);bpt.forEach(t=>{bh.use(t())});Object.entries(mpt).forEach(([t,n])=>{bh.directive(t,n)});bh.mount("#app");