@vitest/browser 0.24.4 → 0.25.0

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
+ var Gw=Object.defineProperty;var Vw=(t,n,r)=>n in t?Gw(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r;var Ai=(t,n,r)=>(Vw(t,typeof n!="symbol"?n+"":n,r),r);(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 bf(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 Kw="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Xw=bf(Kw);function $v(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)?Jw(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 Yw=/;(?![^(]*\))/g,Zw=/:(.+)/;function Jw(t){const n={};return t.split(Yw).forEach(r=>{if(r){const o=r.split(Zw);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 Jt=t=>Ue(t)?t:t==null?"":Ht(t)||xe(t)&&(t.toString===Iv||!Wt(t.toString))?JSON.stringify(t,Dv,2):String(t),Dv=(t,n)=>n&&n.__v_isRef?Dv(t,n.value):Eo(n)?{[`Map(${n.size})`]:[...n.entries()].reduce((r,[o,a])=>(r[`${o} =>`]=a,r),{})}:Rv(n)?{[`Set(${n.size})`]:[...n.values()]}:xe(n)&&!Ht(n)&&!Fv(n)?String(n):n,me={},Lo=[],Vn=()=>{},Qw=()=>!1,tx=/^on[^a-z]/,Ka=t=>tx.test(t),wf=t=>t.startsWith("onUpdate:"),Xe=Object.assign,xf=(t,n)=>{const r=t.indexOf(n);r>-1&&t.splice(r,1)},ex=Object.prototype.hasOwnProperty,Yt=(t,n)=>ex.call(t,n),Ht=Array.isArray,Eo=t=>Xa(t)==="[object Map]",Rv=t=>Xa(t)==="[object Set]",Wt=t=>typeof t=="function",Ue=t=>typeof t=="string",_f=t=>typeof t=="symbol",xe=t=>t!==null&&typeof t=="object",zv=t=>xe(t)&&Wt(t.then)&&Wt(t.catch),Iv=Object.prototype.toString,Xa=t=>Iv.call(t),nx=t=>Xa(t).slice(8,-1),Fv=t=>Xa(t)==="[object Object]",Sf=t=>Ue(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,fa=bf(",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))},rx=/-(\w)/g,fr=Ya(t=>t.replace(rx,(n,r)=>r?r.toUpperCase():"")),ix=/\B([A-Z])/g,Yi=Ya(t=>t.replace(ix,"-$1").toLowerCase()),Za=Ya(t=>t.charAt(0).toUpperCase()+t.slice(1)),pu=Ya(t=>t?`on${Za(t)}`:""),Us=(t,n)=>!Object.is(t,n),ha=(t,n)=>{for(let r=0;r<t.length;r++)t[r](n)},ka=(t,n,r)=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value:r})},js=t=>{const n=parseFloat(t);return isNaN(n)?t:n};let yp;const ox=()=>yp||(yp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Mn;class sx{constructor(n=!1){this.detached=n,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Mn,!n&&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.detached&&this.parent&&!n){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0,this.active=!1}}}function lx(t,n=Mn){n&&n.active&&n.effects.push(t)}function ax(){return Mn}function cx(t){Mn&&Mn.cleanups.push(t)}const kf=t=>{const n=new Set(t);return n.w=0,n.n=0,n},qv=t=>(t.w&di)>0,Hv=t=>(t.n&di)>0,ux=({deps:t})=>{if(t.length)for(let n=0;n<t.length;n++)t[n].w|=di},fx=t=>{const{deps:n}=t;if(n.length){let r=0;for(let o=0;o<n.length;o++){const a=n[o];qv(a)&&!Hv(a)?a.delete(t):n[r++]=a,a.w&=~di,a.n&=~di}n.length=r}},Nu=new WeakMap;let Ds=0,di=1;const Pu=30;let jn;const Bi=Symbol(""),Ou=Symbol("");class Cf{constructor(n,r=null,o){this.fn=n,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,lx(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<<++Ds,Ds<=Pu?ux(this):bp(this),this.fn()}finally{Ds<=Pu&&fx(this),di=1<<--Ds,jn=this.parent,ci=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){jn===this?this.deferStop=!0:this.active&&(bp(this),this.onStop&&this.onStop(),this.active=!1)}}function bp(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 Bv=[];function Ko(){Bv.push(ci),ci=!1}function Xo(){const t=Bv.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=kf()),Wv(a)}}function Wv(t,n){let r=!1;Ds<=Pu?Hv(t)||(t.n|=di,r=!qv(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)?Sf(r)&&h.push(f.get("length")):(h.push(f.get(Bi)),Eo(t)&&h.push(f.get(Ou)));break;case"delete":Ht(t)||(h.push(f.get(Bi)),Eo(t)&&h.push(f.get(Ou)));break;case"set":Eo(t)&&h.push(f.get(Bi));break}if(h.length===1)h[0]&&$u(h[0]);else{const p=[];for(const g of h)g&&p.push(...g);$u(kf(p))}}function $u(t,n){const r=Ht(t)?t:[...t];for(const o of r)o.computed&&wp(o);for(const o of r)o.computed||wp(o)}function wp(t,n){(t!==jn||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const hx=bf("__proto__,__v_isRef,__isVue"),Uv=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(_f)),dx=Tf(),px=Tf(!1,!0),gx=Tf(!0),xp=vx();function vx(){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){Ko();const o=le(this)[n].apply(this,r);return Xo(),o}}),t}function Tf(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?Px:Xv:n?Kv:Vv).get(o))return o;const f=Ht(o);if(!t&&f&&Yt(xp,a))return Reflect.get(xp,a,u);const h=Reflect.get(o,a,u);return(_f(a)?Uv.has(a):hx(a))||(t||Pn(o,"get",a),n)?h:Ie(h)?f&&Sf(a)?h:h.value:xe(h)?t?Yv(h):hr(h):h}}const mx=jv(),yx=jv(!0);function jv(t=!1){return function(r,o,a,u){let f=r[o];if(Ro(f)&&Ie(f)&&!Ie(a))return!1;if(!t&&(!Ca(a)&&!Ro(a)&&(f=le(f),a=le(a)),!Ht(r)&&Ie(f)&&!Ie(a)))return f.value=a,!0;const h=Ht(r)&&Sf(o)?Number(o)<r.length:Yt(r,o),p=Reflect.set(r,o,a,u);return r===le(u)&&(h?Us(a,f)&&$r(r,"set",o,a):$r(r,"add",o,a)),p}}function bx(t,n){const r=Yt(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&r&&$r(t,"delete",n,void 0),o}function wx(t,n){const r=Reflect.has(t,n);return(!_f(n)||!Uv.has(n))&&Pn(t,"has",n),r}function xx(t){return Pn(t,"iterate",Ht(t)?"length":Bi),Reflect.ownKeys(t)}const Gv={get:dx,set:mx,deleteProperty:bx,has:wx,ownKeys:xx},_x={get:gx,set(t,n){return!0},deleteProperty(t,n){return!0}},Sx=Xe({},Gv,{get:px,set:yx}),Lf=t=>t,Ja=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}=Ja(a),h=o?Lf:r?Nf:Gs;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 ta(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 ea(t,n=!1){return t=t.__v_raw,!n&&Pn(le(t),"iterate",Bi),Reflect.get(t,"size",t)}function _p(t){t=le(t);const n=le(this);return Ja(n).has.call(n,t)||(n.add(t),$r(n,"add",t,t)),this}function Sp(t,n){n=le(n);const r=le(this),{has:o,get:a}=Ja(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?Us(n,f)&&$r(r,"set",t,n):$r(r,"add",t,n),this}function kp(t){const n=le(this),{has:r,get:o}=Ja(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 Cp(){const t=le(this),n=t.size!==0,r=t.clear();return n&&$r(t,"clear",void 0,void 0),r}function na(t,n){return function(o,a){const u=this,f=u.__v_raw,h=le(f),p=n?Lf:t?Nf:Gs;return!t&&Pn(h,"iterate",Bi),f.forEach((g,m)=>o.call(a,p(g),p(m),u))}}function ra(t,n,r){return function(...o){const a=this.__v_raw,u=le(a),f=Eo(u),h=t==="entries"||t===Symbol.iterator&&f,p=t==="keys"&&f,g=a[t](...o),m=r?Lf:n?Nf:Gs;return!n&&Pn(u,"iterate",p?Ou:Bi),{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 Qr(t){return function(...n){return t==="delete"?!1:this}}function kx(){const t={get(u){return Ql(this,u)},get size(){return ea(this)},has:ta,add:_p,set:Sp,delete:kp,clear:Cp,forEach:na(!1,!1)},n={get(u){return Ql(this,u,!1,!0)},get size(){return ea(this)},has:ta,add:_p,set:Sp,delete:kp,clear:Cp,forEach:na(!1,!0)},r={get(u){return Ql(this,u,!0)},get size(){return ea(this,!0)},has(u){return ta.call(this,u,!0)},add:Qr("add"),set:Qr("set"),delete:Qr("delete"),clear:Qr("clear"),forEach:na(!0,!1)},o={get(u){return Ql(this,u,!0,!0)},get size(){return ea(this,!0)},has(u){return ta.call(this,u,!0)},add:Qr("add"),set:Qr("set"),delete:Qr("delete"),clear:Qr("clear"),forEach:na(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(u=>{t[u]=ra(u,!1,!1),r[u]=ra(u,!0,!1),n[u]=ra(u,!1,!0),o[u]=ra(u,!0,!0)}),[t,r,n,o]}const[Cx,Tx,Lx,Ex]=kx();function Ef(t,n){const r=n?t?Ex:Lx:t?Tx:Cx;return(o,a,u)=>a==="__v_isReactive"?!t:a==="__v_isReadonly"?t:a==="__v_raw"?o:Reflect.get(Yt(r,a)&&a in o?r:o,a,u)}const Ax={get:Ef(!1,!1)},Mx={get:Ef(!1,!0)},Nx={get:Ef(!0,!1)},Vv=new WeakMap,Kv=new WeakMap,Xv=new WeakMap,Px=new WeakMap;function Ox(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function $x(t){return t.__v_skip||!Object.isExtensible(t)?0:Ox(nx(t))}function hr(t){return Ro(t)?t:Af(t,!1,Gv,Ax,Vv)}function Dx(t){return Af(t,!1,Sx,Mx,Kv)}function Yv(t){return Af(t,!0,_x,Nx,Xv)}function Af(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=$x(t);if(f===0)return t;const h=new Proxy(t,f===2?o:r);return a.set(t,h),h}function Ao(t){return Ro(t)?Ao(t.__v_raw):!!(t&&t.__v_isReactive)}function Ro(t){return!!(t&&t.__v_isReadonly)}function Ca(t){return!!(t&&t.__v_isShallow)}function Zv(t){return Ao(t)||Ro(t)}function le(t){const n=t&&t.__v_raw;return n?le(n):t}function Mf(t){return ka(t,"__v_skip",!0),t}const Gs=t=>xe(t)?hr(t):t,Nf=t=>xe(t)?Yv(t):t;function Jv(t){ci&&jn&&(t=le(t),Wv(t.dep||(t.dep=kf())))}function Qv(t,n){t=le(t),t.dep&&$u(t.dep)}function Ie(t){return!!(t&&t.__v_isRef===!0)}function Kt(t){return tm(t,!1)}function ll(t){return tm(t,!0)}function tm(t,n){return Ie(t)?t:new Rx(t,n)}class Rx{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:Gs(n)}get value(){return Jv(this),this._value}set value(n){const r=this.__v_isShallow||Ca(n)||Ro(n);n=r?n:le(n),Us(n,this._rawValue)&&(this._rawValue=n,this._value=r?n:Gs(n),Qv(this))}}function Z(t){return Ie(t)?t.value:t}const zx={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 em(t){return Ao(t)?t:new Proxy(t,zx)}function Ix(t){const n=Ht(t)?new Array(t.length):{};for(const r in t)n[r]=Pf(t,r);return n}class Fx{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 Pf(t,n,r){const o=t[n];return Ie(o)?o:new Fx(t,n,r)}var nm;class qx{constructor(n,r,o,a){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this[nm]=!1,this._dirty=!0,this.effect=new Cf(n,()=>{this._dirty||(this._dirty=!0,Qv(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=o}get value(){const n=le(this);return Jv(n),(n._dirty||!n._cacheable)&&(n._dirty=!1,n._value=n.effect.run()),n._value}set value(n){this._setter(n)}}nm="__v_isReadonly";function Hx(t,n,r=!1){let o,a;const u=Wt(t);return u?(o=t,a=Vn):(o=t.get,a=t.set),new qx(o,a,u||!a,r)}function ui(t,n,r,o){let a;try{a=o?t(...o):t()}catch(u){al(u,n,r)}return a}function In(t,n,r,o){if(Wt(t)){const u=ui(t,n,r,o);return u&&zv(u)&&u.catch(f=>{al(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 al(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}}Bx(t,r,a,o)}function Bx(t,n,r,o=!0){console.error(t)}let Vs=!1,Du=!1;const tn=[];let sr=0;const Mo=[];let Er=null,Ri=0;const rm=Promise.resolve();let Of=null;function cl(t){const n=Of||rm;return t?n.then(this?t.bind(this):t):n}function Wx(t){let n=sr+1,r=tn.length;for(;n<r;){const o=n+r>>>1;Ks(tn[o])<t?n=o+1:r=o}return n}function $f(t){(!tn.length||!tn.includes(t,Vs&&t.allowRecurse?sr+1:sr))&&(t.id==null?tn.push(t):tn.splice(Wx(t.id),0,t),im())}function im(){!Vs&&!Du&&(Du=!0,Of=rm.then(lm))}function Ux(t){const n=tn.indexOf(t);n>sr&&tn.splice(n,1)}function om(t){Ht(t)?Mo.push(...t):(!Er||!Er.includes(t,t.allowRecurse?Ri+1:Ri))&&Mo.push(t),im()}function Tp(t,n=Vs?sr+1:0){for(;n<tn.length;n++){const r=tn[n];r&&r.pre&&(tn.splice(n,1),n--,r())}}function sm(t){if(Mo.length){const n=[...new Set(Mo)];if(Mo.length=0,Er){Er.push(...n);return}for(Er=n,Er.sort((r,o)=>Ks(r)-Ks(o)),Ri=0;Ri<Er.length;Ri++)Er[Ri]();Er=null,Ri=0}}const Ks=t=>t.id==null?1/0:t.id,jx=(t,n)=>{const r=Ks(t)-Ks(n);if(r===0){if(t.pre&&!n.pre)return-1;if(n.pre&&!t.pre)return 1}return r};function lm(t){Du=!1,Vs=!0,tn.sort(jx);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,sm(),Vs=!1,Of=null,(tn.length||Mo.length)&&lm()}}function Gx(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(js))}let h,p=o[h=pu(n)]||o[h=pu(fr(n))];!p&&u&&(p=o[h=pu(Yi(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 am(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=am(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 Qa(t,n){return!t||!Ka(n)?!1:(n=n.slice(2).replace(/Once$/,""),Yt(t,n[0].toLowerCase()+n.slice(1))||Yt(t,Yi(n))||Yt(t,n))}let en=null,tc=null;function Ta(t){const n=en;return en=t,tc=t&&t.type.__scopeId||null,n}function cm(t){tc=t}function um(){tc=null}const Vx=t=>Zt;function Zt(t,n=en,r){if(!n||t._n)return t;const o=(...a)=>{o._d&&Ip(-1);const u=Ta(n);let f;try{f=t(...a)}finally{Ta(u),o._d&&Ip(1)}return 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:M,inheritAttrs:A}=t;let L,C;const E=Ta(t);try{if(r.shapeFlag&4){const D=a||o;L=Un(m.call(D,D,b,u,S,x,M)),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:Xx(p)}}catch(D){Fs.length=0,al(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(wf)&&(C=Yx(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,Ta(E),L}function Kx(t){let n;for(let r=0;r<t.length;r++){const o=t[r];if(Ys(o)){if(o.type!==Cn||o.children==="v-if"){if(n)return;n=o}}else return}return n}const Xx=t=>{let n;for(const r in t)(r==="class"||r==="style"||Ka(r))&&((n||(n={}))[r]=t[r]);return n},Yx=(t,n)=>{const r={};for(const o in t)(!wf(o)||!(o.slice(9)in n))&&(r[o]=t[o]);return r};function Zx(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?Lp(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]&&!Qa(g,x))return!0}}}else return(a||h)&&(!h||!h.$stable)?!0:o===f?!1:o?f?Lp(o,f,g):!0:!!f;return!1}function Lp(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]&&!Qa(r,u))return!0}return!1}function Df({vnode:t,parent:n},r){for(;n&&n.subTree===t;)(t=n.vnode).el=r,n=n.parent}const Jx=t=>t.__isSuspense,Qx={name:"Suspense",__isSuspense:!0,process(t,n,r,o,a,u,f,h,p,g){t==null?e1(n,r,o,a,u,f,h,p,g):n1(t,n,r,o,a,f,h,p,g)},hydrate:r1,create:Rf,normalize:i1},t1=Qx;function Xs(t,n){const r=t.props&&t.props[n];Wt(r)&&r()}function e1(t,n,r,o,a,u,f,h,p){const{p:g,o:{createElement:m}}=p,b=m("div"),x=t.suspense=Rf(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?(Xs(t,"onPending"),Xs(t,"onFallback"),g(null,t.ssFallback,n,r,o,null,u,f),No(x,t.ssFallback)):x.resolve()}function n1(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:M,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(M,S,r,o,a,null,u,f,h),No(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(M,S,r,o,a,null,u,f,h),No(b,S))):M&&ar(x,M)?(p(M,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(M&&ar(x,M))p(M,x,r,o,a,b,u,f,h),No(b,x);else if(Xs(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 Rf(t,n,r,o,a,u,f,h,p,g,m=!1){const{p:b,m:x,um:S,n:M,o:{parentNode:A,remove:L}}=g,C=js(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:Q,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=M(G),S(G,dt,E,!0)),U||x(j,vt,I,0)}No(E,j),E.pendingBranch=null,E.isInFallback=!1;let kt=E.parent,ft=!1;for(;kt;){if(kt.pendingBranch){kt.effects.push(...Q),ft=!0;break}kt=kt.parent}ft||om(Q),E.effects=[],Xs(D,"onResolve")},fallback(z){if(!E.pendingBranch)return;const{vnode:D,activeBranch:G,parentComponent:j,container:it,isSVG:Q}=E;Xs(D,"onFallback");const dt=M(G),vt=()=>{!E.isInFallback||(b(null,z,it,dt,j,null,Q,h,p),No(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&&M(E.activeBranch)},registerDep(z,D){const G=!!E.pendingBranch;G&&E.deps++;const j=z.vnode.el;z.asyncDep.catch(it=>{al(it,z,0)}).then(it=>{if(z.isUnmounted||E.isUnmounted||E.pendingId!==z.suspenseId)return;z.asyncResolved=!0;const{vnode:Q}=z;Wu(z,it,!1),j&&(Q.el=j);const dt=!j&&z.subTree.el;D(z,Q,A(j||z.subTree.el),j?null:M(z.subTree),E,f,p),dt&&L(dt),Df(z,Q.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 r1(t,n,r,o,a,u,f,h,p){const g=n.suspense=Rf(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 i1(t){const{shapeFlag:n,children:r}=t,o=n&32;t.ssContent=Ep(o?r.default:r),t.ssFallback=o?Ep(r.fallback):Rt(Cn)}function Ep(t){let n;if(Wt(t)){const r=zo&&t._c;r&&(t._d=!1,ht()),t=t(),r&&(t._d=!0,n=zn,Em())}return Ht(t)&&(t=Kx(t)),t=Un(t),n&&!t.dynamicChildren&&(t.dynamicChildren=n.filter(r=>r!==t)),t}function o1(t,n){n&&n.pendingBranch?Ht(t)?n.effects.push(...t):n.effects.push(t):om(t)}function No(t,n){t.activeBranch=n;const{vnode:r,parentComponent:o}=t,a=r.el=n.el;o&&o.subTree===r&&(o.vnode.el=a,Df(o,a))}function da(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 zf(t,n){return If(t,null,n)}const Ap={};function Fe(t,n,r){return If(t,n,r)}function If(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=Ca(t)):Ao(t)?(p=()=>t,o=!0):Ht(t)?(m=!0,g=t.some(C=>Ao(C)||Ca(C)),p=()=>t.map(C=>{if(Ie(C))return C.value;if(Ao(C))return Ii(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=()=>Ii(C())}let b,x=C=>{b=L.onStop=()=>{ui(C,h,4)}};if(Zs)return x=Vn,n?r&&In(n,h,3,[p(),m?[]:void 0,x]):p(),Vn;let S=m?[]:Ap;const M=()=>{if(!!L.active)if(n){const C=L.run();(o||g||(m?C.some((E,z)=>Us(E,S[z])):Us(C,S)))&&(b&&b(),In(n,h,3,[C,S===Ap?void 0:S,x]),S=C)}else L.run()};M.allowRecurse=!!n;let A;a==="sync"?A=M:a==="post"?A=()=>xn(M,h&&h.suspense):(M.pre=!0,h&&(M.id=h.uid),A=()=>$f(M));const L=new Cf(p,A);return n?r?M():S=L.run():a==="post"?xn(L.run.bind(L),h&&h.suspense):L.run(),()=>{L.stop(),h&&h.scope&&xf(h.scope.effects,L)}}function s1(t,n,r){const o=this.proxy,a=Ue(t)?t.includes(".")?fm(o,t):()=>o[t]:t.bind(o,o);let u;Wt(n)?u=n:(u=n.handler,r=n);const f=Be;Io(this);const h=If(a,u.bind(o),r);return f?Io(f):Wi(),h}function fm(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 Ii(t,n){if(!xe(t)||t.__v_skip||(n=n||new Set,n.has(t)))return t;if(n.add(t),Ie(t))Ii(t.value,n);else if(Ht(t))for(let r=0;r<t.length;r++)Ii(t[r],n);else if(Rv(t)||Eo(t))t.forEach(r=>{Ii(r,n)});else if(Fv(t))for(const r in t)Ii(t[r],n);return t}function l1(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ul(()=>{t.isMounted=!0}),vm(()=>{t.isUnmounting=!0}),t}const Rn=[Function,Array],a1={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=l1();let a;return()=>{const u=n.default&&pm(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=Mp(f);if(!g)return vu(f);const m=Ru(g,h,o,r);zu(g,m);const b=r.subTree,x=b&&Mp(b);let S=!1;const{getTransitionKey:M}=g.type;if(M){const A=M();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=dm(o,x);z[String(x.key)]=x,L._leaveCb=()=>{C(),L._leaveCb=void 0,delete m.delayedLeave},m.delayedLeave=E})}return f}}},hm=a1;function dm(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:M,onBeforeAppear:A,onAppear:L,onAfterAppear:C,onAppearCancelled:E}=n,z=String(t.key),D=dm(r,t),G=(Q,dt)=>{Q&&In(Q,o,9,dt)},j=(Q,dt)=>{const vt=dt[1];G(Q,dt),Ht(Q)?Q.every(kt=>kt.length<=1)&&vt():Q.length<=1&&vt()},it={mode:u,persisted:f,beforeEnter(Q){let dt=h;if(!r.isMounted)if(a)dt=A||h;else return;Q._leaveCb&&Q._leaveCb(!0);const vt=D[z];vt&&ar(t,vt)&&vt.el._leaveCb&&vt.el._leaveCb(),G(dt,[Q])},enter(Q){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=Q._enterCb=I=>{ft||(ft=!0,I?G(kt,[Q]):G(vt,[Q]),it.delayedLeave&&it.delayedLeave(),Q._enterCb=void 0)};dt?j(dt,[Q,U]):U()},leave(Q,dt){const vt=String(t.key);if(Q._enterCb&&Q._enterCb(!0),r.isUnmounting)return dt();G(b,[Q]);let kt=!1;const ft=Q._leaveCb=U=>{kt||(kt=!0,dt(),U?G(M,[Q]):G(S,[Q]),Q._leaveCb=void 0,D[vt]===t&&delete D[vt])};D[vt]=t,x?j(x,[Q,ft]):ft()},clone(Q){return Ru(Q,n,r,o)}};return it}function vu(t){if(ec(t))return t=pi(t),t.children=null,t}function Mp(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 pm(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(pm(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 Is=t=>!!t.type.__asyncLoader,ec=t=>t.type.__isKeepAlive;function c1(t,n){gm(t,"a",n)}function u1(t,n){gm(t,"da",n)}function gm(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)&&f1(o,n,r,a),a=a.parent}}function f1(t,n,r,o){const a=nc(n,t,o,!0);Ff(()=>{xf(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;Ko(),Io(r);const h=In(n,r,t,f);return Wi(),Xo(),h});return o?a.unshift(u):a.push(u),u}}const Ir=t=>(n,r=Be)=>(!Zs||t==="sp")&&nc(t,(...o)=>n(...o),r),h1=Ir("bm"),ul=Ir("m"),d1=Ir("bu"),p1=Ir("u"),vm=Ir("bum"),Ff=Ir("um"),g1=Ir("sp"),v1=Ir("rtg"),m1=Ir("rtc");function y1(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&&Ii(h),a.push({dir:f,instance:o,value:h,oldValue:void 0,arg:p,modifiers:g})}return t}function Mi(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&&(Ko(),In(p,r,8,[t.el,h,t,n]),Xo())}}const mm="components",b1="directives";function Gi(t,n){return ym(mm,t,!0,n)||t}const w1=Symbol();function Zi(t){return ym(b1,t)}function ym(t,n,r=!0,o=!1){const a=en||Be;if(a){const u=a.type;if(t===mm){const h=G1(u,!1);if(h&&(h===n||h===fr(n)||h===Za(fr(n))))return u}const f=Np(a[t]||u[t],n)||Np(a.appContext[t],n);return!f&&o?u:f}}function Np(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&&Is(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&&bm(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 bm(t){return t.some(n=>Ys(n)?!(n.type===Cn||n.type===ue&&!bm(n.children)):!0)?t:null}const Iu=t=>t?Nm(t)?oc(t)||t.proxy:Iu(t.parent):null,La=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=>qf(t),$forceUpdate:t=>t.f||(t.f=()=>$f(t.update)),$nextTick:t=>t.n||(t.n=cl.bind(t.proxy)),$watch:t=>s1.bind(t)}),x1={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&&Yt(o,n))return f[n]=1,o[n];if(a!==me&&Yt(a,n))return f[n]=2,a[n];if((g=t.propsOptions[0])&&Yt(g,n))return f[n]=3,u[n];if(r!==me&&Yt(r,n))return f[n]=4,r[n];Fu&&(f[n]=0)}}const m=La[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&&Yt(r,n))return f[n]=4,r[n];if(x=p.config.globalProperties,Yt(x,n))return x[n]},set({_:t},n,r){const{data:o,setupState:a,ctx:u}=t;return a!==me&&Yt(a,n)?(a[n]=r,!0):o!==me&&Yt(o,n)?(o[n]=r,!0):Yt(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&&Yt(t,f)||n!==me&&Yt(n,f)||(h=u[0])&&Yt(h,f)||Yt(o,f)||Yt(La,f)||Yt(a.config.globalProperties,f)},defineProperty(t,n,r){return r.get!=null?t._.accessCache[n]=0:Yt(r,"value")&&this.set(t,n,r.value,null),Reflect.defineProperty(t,n,r)}};let Fu=!0;function _1(t){const n=qf(t),r=t.proxy,o=t.ctx;Fu=!1,n.beforeCreate&&Pp(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:M,activated:A,deactivated:L,beforeDestroy:C,beforeUnmount:E,destroyed:z,unmounted:D,render:G,renderTracked:j,renderTriggered:it,errorCaptured:Q,serverPrefetch:dt,expose:vt,inheritAttrs:kt,components:ft,directives:U,filters:I}=n;if(g&&S1(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)wm(h[W],o,r,W);if(p){const W=Wt(p)?p.call(r):p;Reflect.ownKeys(W).forEach(et=>{da(et,W[et])})}m&&Pp(m,t,"c");function H(W,et){Ht(et)?et.forEach(wt=>W(wt.bind(r))):et&&W(et.bind(r))}if(H(h1,b),H(ul,x),H(d1,S),H(p1,M),H(c1,A),H(u1,L),H(y1,Q),H(m1,j),H(v1,it),H(vm,E),H(Ff,D),H(g1,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 S1(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 Pp(t,n,r){In(Ht(t)?t.map(o=>o.bind(n.proxy)):t.bind(n.proxy),n,r)}function wm(t,n,r,o){const a=o.includes(".")?fm(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=>wm(u,n,r,o));else{const u=Wt(t.handler)?t.handler.bind(r):n[t.handler];Wt(u)&&Fe(a,u,t)}}function qf(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=>Ea(p,g,f,!0)),Ea(p,n,f)),xe(n)&&u.set(n,p),p}function Ea(t,n,r,o=!1){const{mixins:a,extends:u}=n;u&&Ea(t,u,r,!0),a&&a.forEach(f=>Ea(t,f,r,!0));for(const f in n)if(!(o&&f==="expose")){const h=k1[f]||r&&r[f];t[f]=h?h(t[f],n[f]):n[f]}return t}const k1={data:Op,props:$i,emits:$i,methods:$i,computed:$i,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:$i,directives:$i,watch:T1,provide:Op,inject:C1};function Op(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 C1(t,n){return $i(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 $i(t,n){return t?Xe(Xe(Object.create(null),t),n):n}function T1(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 L1(t,n,r,o=!1){const a={},u={};ka(u,rc,1),t.propsDefaults=Object.create(null),xm(t,n,a,u);for(const f in t.propsOptions[0])f in a||(a[f]=void 0);r?t.props=o?a:Dx(a):t.type.props?t.props=a:t.props=u,t.attrs=u}function E1(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(Qa(t.emitsOptions,x))continue;const S=n[x];if(p)if(Yt(u,x))S!==u[x]&&(u[x]=S,g=!0);else{const M=fr(x);a[M]=Hu(p,h,M,S,t,!1)}else S!==u[x]&&(u[x]=S,g=!0)}}}else{xm(t,n,a,u)&&(g=!0);let m;for(const b in h)(!n||!Yt(n,b)&&((m=Yi(b))===b||!Yt(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||!Yt(n,b)&&!0)&&(delete u[b],g=!0)}g&&$r(t,"set","$attrs")}function xm(t,n,r,o){const[a,u]=t.propsOptions;let f=!1,h;if(n)for(let p in n){if(fa(p))continue;const g=n[p];let m;a&&Yt(a,m=fr(p))?!u||!u.includes(m)?r[m]=g:(h||(h={}))[m]=g:Qa(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,!Yt(g,b))}}return f}function Hu(t,n,r,o,a,u){const f=t[r];if(f!=null){const h=Yt(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]:(Io(a),o=g[r]=p.call(null,n),Wi())}else o=p}f[0]&&(u&&!h?o=!1:f[1]&&(o===""||o===Yi(r))&&(o=!0))}return o}function _m(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]=_m(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,Lo),Lo;if(Ht(u))for(let m=0;m<u.length;m++){const b=fr(u[m]);$p(b)&&(f[b]=me)}else if(u)for(const m in u){const b=fr(m);if($p(b)){const x=u[m],S=f[b]=Ht(x)||Wt(x)?{type:x}:x;if(S){const M=zp(Boolean,S.type),A=zp(String,S.type);S[0]=M>-1,S[1]=A<0||M<A,(M>-1||Yt(S,"default"))&&h.push(b)}}}const g=[f,h];return xe(t)&&o.set(t,g),g}function $p(t){return t[0]!=="$"}function Dp(t){const n=t&&t.toString().match(/^\s*function (\w+)/);return n?n[1]:t===null?"null":""}function Rp(t,n){return Dp(t)===Dp(n)}function zp(t,n){return Ht(n)?n.findIndex(r=>Rp(r,t)):Wt(n)&&Rp(n,t)?0:-1}const Sm=t=>t[0]==="_"||t==="$stable",Hf=t=>Ht(t)?t.map(Un):[Un(t)],A1=(t,n,r)=>{if(n._n)return n;const o=Zt((...a)=>Hf(n(...a)),r);return o._c=!1,o},km=(t,n,r)=>{const o=t._ctx;for(const a in t){if(Sm(a))continue;const u=t[a];if(Wt(u))n[a]=A1(a,u,o);else if(u!=null){const f=Hf(u);n[a]=()=>f}}},Cm=(t,n)=>{const r=Hf(n);t.slots.default=()=>r},M1=(t,n)=>{if(t.vnode.shapeFlag&32){const r=n._;r?(t.slots=le(n),ka(n,"_",r)):km(n,t.slots={})}else t.slots={},n&&Cm(t,n);ka(t.slots,rc,1)},N1=(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,km(n,a)),f=n}else n&&(Cm(t,n),f={default:1});if(u)for(const h in a)!Sm(h)&&!(h in f)&&delete a[h]};function Tm(){return{app:null,config:{isNativeTag:Qw,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 P1=0;function O1(t,n){return function(o,a=null){Wt(o)||(o=Object.assign({},o)),a!=null&&!xe(a)&&(a=null);const u=Tm(),f=new Set;let h=!1;const p=u.app={_uid:P1++,_component:o,_props:a,_container:null,_context:u,_instance:null,version:Y1,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(Is(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,Yt(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 M=()=>{if(t.f){const A=x?Yt(b,p)?b[p]:m[p]:p.value;a?Ht(A)&&xf(A,u):Ht(A)?A.includes(u)||A.push(u):x?(m[p]=[u],Yt(b,p)&&(b[p]=m[p])):(p.value=[u],t.k&&(m[t.k]=p.value))}else x?(m[p]=f,Yt(b,p)&&(b[p]=f)):S&&(p.value=f,t.k&&(m[t.k]=f))};f?(M.id=-1,xn(M,r)):M()}}}const xn=o1;function $1(t){return D1(t)}function D1(t,n){const r=ox();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:M}=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 Bf: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]=M(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&&Q(P.children,xt,null,nt,ot,pt&&$t!=="foreignObject",lt,gt),jt&&Mi(P,null,nt,"created"),Nt){for(const Qt in Nt)Qt!=="value"&&!fa(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&&Mi(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&&Mi(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)}}},Q=(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&&Ni(Y,!1),(zt=Ot.onVnodeBeforeUpdate)&&ir(zt,Y,F,P),$t&&Mi(F,P,Y,"beforeUpdate"),Y&&Ni(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&&Mi(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)!fa(gt)&&!(gt in nt)&&u(P,gt,Y[gt],null,lt,F.children,ot,pt,tt);for(const gt in nt){if(fa(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),Q(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)&&Lm(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=B1(P,nt,ot);if(ec(P)&&(gt.ctx.renderer=Ct),W1(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(Zx(P,F,Y))if(nt.asyncDep&&!nt.asyncResolved){W(nt,F,Y);return}else nt.next=F,Ux(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;Ni(P,!1),$t?($t.el=jt.el,W(P,$t,lt)):$t=jt,Nt&&ha(Nt),(Qt=$t.props&&$t.props.onVnodeBeforeUpdate)&&ir(Qt,zt,$t,jt),Ni(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&&Df(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=Is(F);if(Ni(P,!1),zt&&ha(zt),!Qt&&($t=Ot&&Ot.onVnodeBeforeMount)&&ir($t,te,F),Ni(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&&Is(te.vnode)&&te.vnode.shapeFlag&256)&&P.a&&xn(P.a,ot),P.isMounted=!0,F=Y=nt=null}},xt=P.effect=new Cf(gt,()=>$f(at),P.scope),at=P.update=()=>xt.run();at.id=P.uid,Ni(P,!0),at()},W=(P,F,Y)=>{F.component=P;const nt=P.vnode.props;P.vnode=F,P.next=null,E1(P,F.props,nt,Y),N1(P,F.children,Y),Ko(),Tp(),Xo()},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&&Q(Nt,Y,nt,ot,pt,lt,gt,xt))},wt=(P,F,Y,nt,ot,pt,lt,gt,xt)=>{P=P||Lo,F=F||Lo;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):Q(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 Qi=mn?R1(qe):Lo;for(Qt=Qi.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!==Qi[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=!Is(P);let te;if(jt&&(te=lt&&lt.onVnodeBeforeUnmount)&&ir(te,F,P),$t&6)J(P.component,Y,nt);else{if($t&128){P.suspense.unmount(Y,nt);return}zt&&Mi(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&&Mi(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)},J=(P,F,Y)=>{const{bum:nt,scope:ot,update:pt,subTree:lt,um:gt}=P;nt&&ha(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),Tp(),sm(),F._vnode=P},Ct={p:A,um:Bt,m:qt,r:Gt,mt:I,mc:Q,pc:et,pbc:vt,n:V,o:t};let de,Lt;return n&&([de,Lt]=n(Ct)),{render:st,hydrate:de,createApp:O1(st,de)}}function Ni({effect:t,update:n},r){t.allowRecurse=n.allowRecurse=r}function Lm(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||Lm(f,h))}}function R1(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 z1=t=>t.__isTeleport,ue=Symbol(void 0),Bf=Symbol(void 0),Cn=Symbol(void 0),mu=Symbol(void 0),Fs=[];let zn=null;function ht(t=!1){Fs.push(zn=t?null:[])}function Em(){Fs.pop(),zn=Fs[Fs.length-1]||null}let zo=1;function Ip(t){zo+=t}function Am(t){return t.dynamicChildren=zo>0?zn||Lo:null,Em(),zo>0&&zn&&zn.push(t),t}function Mt(t,n,r,o,a,u){return Am(ut(t,n,r,o,a,u,!0))}function ce(t,n,r,o,a){return Am(Rt(t,n,r,o,a,!0))}function Ys(t){return t?t.__v_isVNode===!0:!1}function ar(t,n){return t.type===n.type&&t.key===n.key}const rc="__vInternal",Mm=({key:t})=>t!=null?t:null,pa=({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&&Mm(n),ref:n&&pa(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?(Wf(p,r),u&128&&t.normalize(p)):r&&(p.shapeFlag|=Ue(r)?8:16),zo>0&&!f&&zn&&(p.patchFlag>0||u&6)&&p.patchFlag!==32&&zn.push(p),p}const Rt=I1;function I1(t,n=null,r=null,o=0,a=null,u=!1){if((!t||t===w1)&&(t=Cn),Ys(t)){const h=pi(t,n,!0);return r&&Wf(h,r),zo>0&&!u&&zn&&(h.shapeFlag&6?zn[zn.indexOf(t)]=h:zn.push(h)),h.patchFlag|=-2,h}if(V1(t)&&(t=t.__vccOpts),n){n=F1(n);let{class:h,style:p}=n;h&&!Ue(h)&&(n.class=ge(h)),xe(p)&&(Zv(p)&&!Ht(p)&&(p=Xe({},p)),n.style=kn(p))}const f=Ue(t)?1:Jx(t)?128:z1(t)?64:xe(t)?4:Wt(t)?2:0;return ut(t,n,r,o,a,f,u,!0)}function F1(t){return t?Zv(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&&Mm(h),ref:n&&n.ref?r&&a?Ht(a)?a.concat(pa(n)):[a,pa(n)]:pa(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(Bf,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(Bf,null,String(t))}function ri(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:pi(t)}function Wf(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),Wf(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 q1=Tm();let H1=0;function B1(t,n,r){const o=t.type,a=(n?n.appContext:t.appContext)||q1,u={uid:H1++,vnode:t,type:o,parent:n,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new sx(!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:_m(o,a),emitsOptions:am(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=Gx.bind(null,u),t.ce&&t.ce(u),u}let Be=null;const ic=()=>Be||en,Io=t=>{Be=t,t.scope.on()},Wi=()=>{Be&&Be.scope.off(),Be=null};function Nm(t){return t.vnode.shapeFlag&4}let Zs=!1;function W1(t,n=!1){Zs=n;const{props:r,children:o}=t.vnode,a=Nm(t);L1(t,r,a,n),M1(t,o);const u=a?U1(t,n):void 0;return Zs=!1,u}function U1(t,n){const r=t.type;t.accessCache=Object.create(null),t.proxy=Mf(new Proxy(t.ctx,x1));const{setup:o}=r;if(o){const a=t.setupContext=o.length>1?Om(t):null;Io(t),Ko();const u=ui(o,t,0,[t.props,a]);if(Xo(),Wi(),zv(u)){if(u.then(Wi,Wi),n)return u.then(f=>{Wu(t,f,n)}).catch(f=>{al(f,t,0)});t.asyncDep=u}else Wu(t,u,n)}else Pm(t,n)}function Wu(t,n,r){Wt(n)?t.type.__ssrInlineRender?t.ssrRender=n:t.render=n:xe(n)&&(t.setupState=em(n)),Pm(t,r)}let Fp;function Pm(t,n,r){const o=t.type;if(!t.render){if(!n&&Fp&&!o.render){const a=o.template||qf(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=Fp(a,g)}}t.render=o.render||Vn}Io(t),Ko(),_1(t),Xo(),Wi()}function j1(t){return new Proxy(t.attrs,{get(n,r){return Pn(t,"get","$attrs"),n[r]}})}function Om(t){const n=o=>{t.exposed=o||{}};let r;return{get attrs(){return r||(r=j1(t))},slots:t.slots,emit:t.emit,expose:n}}function oc(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(em(Mf(t.exposed)),{get(n,r){if(r in n)return n[r];if(r in La)return La[r](t)}}))}function G1(t,n=!0){return Wt(t)?t.displayName||t.name:t.name||n&&t.__name}function V1(t){return Wt(t)&&"__vccOpts"in t}const St=(t,n)=>Hx(t,n,Zs);function K1(){return X1().attrs}function X1(){const t=ic();return t.setupContext||(t.setupContext=Om(t))}function fl(t,n,r){const o=arguments.length;return o===2?xe(n)&&!Ht(n)?Ys(n)?Rt(t,null,[n]):Rt(t,n):Rt(t,null,n):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&Ys(r)&&(r=[r]),Rt(t,n,r))}const Y1="3.2.41",Z1="http://www.w3.org/2000/svg",zi=typeof document<"u"?document:null,qp=zi&&zi.createElement("template"),J1={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?zi.createElementNS(Z1,t):zi.createElement(t,r?{is:r}:void 0);return t==="select"&&o&&o.multiple!=null&&a.setAttribute("multiple",o.multiple),a},createText:t=>zi.createTextNode(t),createComment:t=>zi.createComment(t),setText:(t,n)=>{t.nodeValue=n},setElementText:(t,n)=>{t.textContent=n},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>zi.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{qp.innerHTML=o?`<svg>${t}</svg>`:t;const h=qp.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 Q1(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 t_(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 Hp=/\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=e_(t,n);Hp.test(r)?t.setProperty(Yi(o),r.replace(Hp,""),"important"):t[o]=r}}const Bp=["Webkit","Moz","ms"],yu={};function e_(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<Bp.length;a++){const u=Bp[a]+o;if(u in t)return yu[n]=u}return n}const Wp="http://www.w3.org/1999/xlink";function n_(t,n,r,o,a){if(o&&n.startsWith("xlink:"))r==null?t.removeAttributeNS(Wp,n.slice(6,n.length)):t.setAttributeNS(Wp,n,r);else{const u=Xw(n);r==null||u&&!$v(r)?t.removeAttribute(n):t.setAttribute(n,u?"":r)}}function r_(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=$v(r):r==null&&p==="string"?(r="",h=!0):p==="number"&&(r=0,h=!0)}try{t[n]=r}catch{}h&&t.removeAttribute(n)}function Co(t,n,r,o){t.addEventListener(n,r,o)}function i_(t,n,r,o){t.removeEventListener(n,r,o)}function o_(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]=s_(n);if(o){const g=u[n]=c_(o,a);Co(t,h,g,p)}else f&&(i_(t,h,f,p),u[n]=void 0)}}const Up=/(?:Once|Passive|Capture)$/;function s_(t){let n;if(Up.test(t)){n={};let o;for(;o=t.match(Up);)t=t.slice(0,t.length-o[0].length),n[o[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Yi(t.slice(2)),n]}let bu=0;const l_=Promise.resolve(),a_=()=>bu||(l_.then(()=>bu=0),bu=Date.now());function c_(t,n){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;In(u_(o,r.value),n,5,[o])};return r.value=t,r.attached=a_(),r}function u_(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 jp=/^on[a-z]/,f_=(t,n,r,o,a=!1,u,f,h,p)=>{n==="class"?Q1(t,o,a):n==="style"?t_(t,r,o):Ka(n)?wf(n)||o_(t,n,r,o,f):(n[0]==="."?(n=n.slice(1),!0):n[0]==="^"?(n=n.slice(1),!1):h_(t,n,o,a))?r_(t,n,o,u,f,h,p):(n==="true-value"?t._trueValue=o:n==="false-value"&&(t._falseValue=o),n_(t,n,o,a))};function h_(t,n,r,o){return o?!!(n==="innerHTML"||n==="textContent"||n in t&&jp.test(n)&&Wt(r)):n==="spellcheck"||n==="draggable"||n==="translate"||n==="form"||n==="list"&&t.tagName==="INPUT"||n==="type"&&t.tagName==="TEXTAREA"||jp.test(n)&&Ue(r)?!1:n in t}const ti="transition",Ms="animation",Uf=(t,{slots:n})=>fl(hm,d_(t),n);Uf.displayName="Transition";const $m={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};Uf.props=Xe({},hm.props,$m);const Pi=(t,n=[])=>{Ht(t)?t.forEach(r=>r(...n)):t&&t(...n)},Gp=t=>t?Ht(t)?t.some(n=>n.length>1):t.length>1:!1;function d_(t){const n={};for(const ft in t)ft in $m||(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,M=p_(a),A=M&&M[0],L=M&&M[1],{onBeforeEnter:C,onEnter:E,onEnterCancelled:z,onLeave:D,onLeaveCancelled:G,onBeforeAppear:j=C,onAppear:it=E,onAppearCancelled:Q=z}=n,dt=(ft,U,I)=>{Oi(ft,U?m:h),Oi(ft,U?g:f),I&&I()},vt=(ft,U)=>{ft._isLeaving=!1,Oi(ft,b),Oi(ft,S),Oi(ft,x),U&&U()},kt=ft=>(U,I)=>{const k=ft?it:E,H=()=>dt(U,ft,I);Pi(k,[U,H]),Vp(()=>{Oi(U,ft?p:u),ei(U,ft?m:h),Gp(k)||Kp(U,o,A,H)})};return Xe(n,{onBeforeEnter(ft){Pi(C,[ft]),ei(ft,u),ei(ft,f)},onBeforeAppear(ft){Pi(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),m_(),ei(ft,x),Vp(()=>{!ft._isLeaving||(Oi(ft,b),ei(ft,S),Gp(D)||Kp(ft,o,L,I))}),Pi(D,[ft,I])},onEnterCancelled(ft){dt(ft,!1),Pi(z,[ft])},onAppearCancelled(ft){dt(ft,!0),Pi(Q,[ft])},onLeaveCancelled(ft){vt(ft),Pi(G,[ft])}})}function p_(t){if(t==null)return null;if(xe(t))return[wu(t.enter),wu(t.leave)];{const n=wu(t);return[n,n]}}function wu(t){return js(t)}function ei(t,n){n.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t._vtc||(t._vtc=new Set)).add(n)}function Oi(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 Vp(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let g_=0;function Kp(t,n,r,o){const a=t._endId=++g_,u=()=>{a===t._endId&&o()};if(r)return setTimeout(u,r);const{type:f,timeout:h,propCount:p}=v_(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 v_(t,n){const r=window.getComputedStyle(t),o=M=>(r[M]||"").split(", "),a=o(ti+"Delay"),u=o(ti+"Duration"),f=Xp(a,u),h=o(Ms+"Delay"),p=o(Ms+"Duration"),g=Xp(h,p);let m=null,b=0,x=0;n===ti?f>0&&(m=ti,b=f,x=u.length):n===Ms?g>0&&(m=Ms,b=g,x=p.length):(b=Math.max(f,g),m=b>0?f>g?ti:Ms: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 Xp(t,n){for(;t.length<n.length;)t=t.concat(t);return Math.max(...n.map((r,o)=>Yp(r)+Yp(t[o])))}function Yp(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function m_(){return document.body.offsetHeight}const Zp=t=>{const n=t.props["onUpdate:modelValue"]||!1;return Ht(n)?r=>ha(n,r):n};function y_(t){t.target.composing=!0}function Jp(t){const n=t.target;n.composing&&(n.composing=!1,n.dispatchEvent(new Event("input")))}const b_={created(t,{modifiers:{lazy:n,trim:r,number:o}},a){t._assign=Zp(a);const u=o||a.props&&a.props.type==="number";Co(t,n?"change":"input",f=>{if(f.target.composing)return;let h=t.value;r&&(h=h.trim()),u&&(h=js(h)),t._assign(h)}),r&&Co(t,"change",()=>{t.value=t.value.trim()}),n||(Co(t,"compositionstart",y_),Co(t,"compositionend",Jp),Co(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=Zp(u),t.composing||document.activeElement===t&&t.type!=="range"&&(r||o&&t.value.trim()===n||(a||t.type==="number")&&js(t.value)===n))return;const f=n==null?"":n;t.value!==f&&(t.value=f)}},w_={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ju=(t,n)=>r=>{if(!("key"in r))return;const o=Yi(r.key);if(n.some(a=>a===o||w_[a]===o))return t(r)},Dm={beforeMount(t,{value:n},{transition:r}){t._vod=t.style.display==="none"?"":t.style.display,r&&n?r.beforeEnter(t):Ns(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),Ns(t,!0),o.enter(t)):o.leave(t,()=>{Ns(t,!1)}):Ns(t,n))},beforeUnmount(t,{value:n}){Ns(t,n)}};function Ns(t,n){t.style.display=n?t._vod:"none"}const x_=Xe({patchProp:f_},J1);let Qp;function __(){return Qp||(Qp=$1(x_))}const Rm=(...t)=>{const n=__().createApp(...t),{mount:r}=n;return n.mount=o=>{const a=S_(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 S_(t){return Ue(t)?document.querySelector(t):t}const Yo=(t,n)=>{const r=t.__vccOpts||t;for(const[o,a]of n)r[o]=a;return r},k_={};function C_(t,n){const r=Gi("RouterView");return ht(),ce(r)}const T_=Yo(k_,[["render",C_]]);/*!
2
+ * vue-router v4.1.6
3
+ * (c) 2022 Eduardo San Martin Morote
4
+ * @license MIT
5
+ */const To=typeof window<"u";function L_(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const he=Object.assign;function xu(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 qs=()=>{},Xn=Array.isArray,E_=/\/$/,A_=t=>t.replace(E_,"");function _u(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=O_(o!=null?o:n,r),{fullPath:o+(u&&"?")+u+f,path:o,query:a,hash:f}}function M_(t,n){const r=n.query?t(n.query):"";return n.path+(r&&"?")+r+(n.hash||"")}function tg(t,n){return!n||!t.toLowerCase().startsWith(n.toLowerCase())?t:t.slice(n.length)||"/"}function N_(t,n,r){const o=n.matched.length-1,a=r.matched.length-1;return o>-1&&o===a&&Fo(n.matched[o],r.matched[a])&&zm(n.params,r.params)&&t(n.query)===t(r.query)&&n.hash===r.hash}function Fo(t,n){return(t.aliasOf||t)===(n.aliasOf||n)}function zm(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(!P_(t[r],n[r]))return!1;return!0}function P_(t,n){return Xn(t)?eg(t,n):Xn(n)?eg(n,t):t===n}function eg(t,n){return Xn(n)?t.length===n.length&&t.every((r,o)=>r===n[o]):t.length===1&&t[0]===n}function O_(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 Js;(function(t){t.pop="pop",t.push="push"})(Js||(Js={}));var Hs;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Hs||(Hs={}));function $_(t){if(!t)if(To){const n=document.querySelector("base");t=n&&n.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),A_(t)}const D_=/^[^#]+#/;function R_(t,n){return t.replace(D_,"#")+n}function z_(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 I_(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=z_(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 ng(t,n){return(history.state?history.state.position-n:-1)+t}const Gu=new Map;function F_(t,n){Gu.set(t,n)}function q_(t){const n=Gu.get(t);return Gu.delete(t),n}let H_=()=>location.protocol+"//"+location.host;function Im(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),tg(p,"")}return tg(r,t)+o+a}function B_(t,n,r,o){let a=[],u=[],f=null;const h=({state:x})=>{const S=Im(t,location),M=r.value,A=n.value;let L=0;if(x){if(r.value=S,n.value=x,f&&f===M){f=null;return}L=A?x.position-A.position:0}else o(S);a.forEach(C=>{C(r.value,M,{delta:L,type:Js.pop,direction:L?L>0?Hs.forward:Hs.back:Hs.unknown})})};function p(){f=r.value}function g(x){a.push(x);const S=()=>{const M=a.indexOf(x);M>-1&&a.splice(M,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 rg(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 W_(t){const{history:n,location:r}=window,o={value:Im(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:H_()+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,rg(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({},rg(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 U_(t){t=$_(t);const n=W_(t),r=B_(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:R_.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 j_(t){return typeof t=="string"||t&&typeof t=="object"}function Fm(t){return typeof t=="string"||typeof t=="symbol"}const ni={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},qm=Symbol("");var ig;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(ig||(ig={}));function qo(t,n){return he(new Error,{type:t,[qm]:!0},n)}function Tr(t,n){return t instanceof Error&&qm in t&&(n==null||!!(t.type&n))}const og="[^/]+?",G_={sensitive:!1,strict:!1,start:!0,end:!0},V_=/[.+*?^${}()[\]/\\]/g;function K_(t,n){const r=he({},G_,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(V_,"\\$&"),S+=40;else if(x.type===1){const{value:M,repeatable:A,optional:L,regexp:C}=x;u.push({name:M,repeatable:A,optional:L});const E=C||og;if(E!==og){S+=10;try{new RegExp(`(${E})`)}catch(D){throw new Error(`Invalid custom RegExp for param "${M}" (${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]||"",M=u[x-1];b[M.name]=S&&M.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:M,repeatable:A,optional:L}=S,C=M in g?g[M]:"";if(Xn(C)&&!A)throw new Error(`Provided param "${M}" 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 "${M}"`);m+=E}}return m||"/"}return{re:f,score:o,keys:u,parse:h,stringify:p}}function X_(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 Y_(t,n){let r=0;const o=t.score,a=n.score;for(;r<o.length&&r<a.length;){const u=X_(o[r],a[r]);if(u)return u;r++}if(Math.abs(a.length-o.length)===1){if(sg(o))return 1;if(sg(a))return-1}return a.length-o.length}function sg(t){const n=t[t.length-1];return t.length>0&&n[n.length-1]<0}const Z_={type:0,value:""},J_=/[a-zA-Z0-9_]/;function Q_(t){if(!t)return[[]];if(t==="/")return[[Z_]];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:J_.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 tS(t,n,r){const o=K_(Q_(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 eS(t,n){const r=[],o=new Map;n=cg({strict:!1,end:!0,sensitive:!1},n);function a(m){return o.get(m)}function u(m,b,x){const S=!x,M=nS(m);M.aliasOf=x&&x.record;const A=cg(n,m),L=[M];if("alias"in m){const z=typeof m.alias=="string"?[m.alias]:m.alias;for(const D of z)L.push(he({},M,{components:x?x.record.components:M.components,path:D,aliasOf:x?x.record:M}))}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=tS(z,b,A),x?x.alias.push(C):(E=E||C,E!==C&&E.alias.push(C),S&&m.name&&!ag(C)&&f(m.name)),M.children){const G=M.children;for(let j=0;j<G.length;j++)u(G[j],C,x&&x.children[j])}x=x||C,(C.record.components&&Object.keys(C.record.components).length||C.record.name||C.record.redirect)&&p(C)}return E?()=>{f(E)}:qs}function f(m){if(Fm(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&&Y_(m,r[b])>=0&&(m.record.path!==r[b].record.path||!Hm(m,r[b]));)b++;r.splice(b,0,m),m.record.name&&!ag(m)&&o.set(m.record.name,m)}function g(m,b){let x,S={},M,A;if("name"in m&&m.name){if(x=o.get(m.name),!x)throw qo(1,{location:m});A=x.record.name,S=he(lg(b.params,x.keys.filter(E=>!E.optional).map(E=>E.name)),m.params&&lg(m.params,x.keys.map(E=>E.name))),M=x.stringify(S)}else if("path"in m)M=m.path,x=r.find(E=>E.re.test(M)),x&&(S=x.parse(M),A=x.record.name);else{if(x=b.name?o.get(b.name):r.find(E=>E.re.test(b.path)),!x)throw qo(1,{location:m,currentLocation:b});A=x.record.name,S=he({},b.params,m.params),M=x.stringify(S)}const L=[];let C=x;for(;C;)L.unshift(C.record),C=C.parent;return{name:A,path:M,params:S,matched:L,meta:iS(L)}}return t.forEach(m=>u(m)),{addRoute:u,resolve:g,removeRoute:f,getRoutes:h,getRecordMatcher:a}}function lg(t,n){const r={};for(const o of n)o in t&&(r[o]=t[o]);return r}function nS(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:rS(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 rS(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 ag(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function iS(t){return t.reduce((n,r)=>he(n,r.meta),{})}function cg(t,n){const r={};for(const o in t)r[o]=o in n?n[o]:t[o];return r}function Hm(t,n){return n.children.some(r=>r===t||Hm(t,r))}const Bm=/#/g,oS=/&/g,sS=/\//g,lS=/=/g,aS=/\?/g,Wm=/\+/g,cS=/%5B/g,uS=/%5D/g,Um=/%5E/g,fS=/%60/g,jm=/%7B/g,hS=/%7C/g,Gm=/%7D/g,dS=/%20/g;function jf(t){return encodeURI(""+t).replace(hS,"|").replace(cS,"[").replace(uS,"]")}function pS(t){return jf(t).replace(jm,"{").replace(Gm,"}").replace(Um,"^")}function Vu(t){return jf(t).replace(Wm,"%2B").replace(dS,"+").replace(Bm,"%23").replace(oS,"%26").replace(fS,"`").replace(jm,"{").replace(Gm,"}").replace(Um,"^")}function gS(t){return Vu(t).replace(lS,"%3D")}function vS(t){return jf(t).replace(Bm,"%23").replace(aS,"%3F")}function mS(t){return t==null?"":vS(t).replace(sS,"%2F")}function Aa(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function yS(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(Wm," "),f=u.indexOf("="),h=Aa(f<0?u:u.slice(0,f)),p=f<0?null:Aa(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 ug(t){let n="";for(let r in t){const o=t[r];if(r=gS(r),o==null){o!==void 0&&(n+=(n.length?"&":"")+r);continue}(Xn(o)?o.map(u=>u&&Vu(u)):[o&&Vu(o)]).forEach(u=>{u!==void 0&&(n+=(n.length?"&":"")+r,u!=null&&(n+="="+u))})}return n}function bS(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 wS=Symbol(""),fg=Symbol(""),Gf=Symbol(""),Vm=Symbol(""),Ku=Symbol("");function Ps(){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(qo(4,{from:r,to:n})):b instanceof Error?h(b):j_(b)?h(qo(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 Su(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(xS(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=L_(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 xS(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function hg(t){const n=fi(Gf),r=fi(Vm),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(Fo.bind(null,m));if(x>-1)return x;const S=dg(p[g-2]);return g>1&&dg(m)===S&&b[b.length-1].path!==S?b.findIndex(Fo.bind(null,p[g-2])):x}),u=St(()=>a.value>-1&&CS(r.params,o.value.params)),f=St(()=>a.value>-1&&a.value===r.matched.length-1&&zm(r.params,o.value.params));function h(p={}){return kS(p)?n[Z(t.replace)?"replace":"push"](Z(t.to)).catch(qs):Promise.resolve()}return{route:o,href:St(()=>o.value.href),isActive:u,isExactActive:f,navigate:h}}const _S=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:hg,setup(t,{slots:n}){const r=hr(hg(t)),{options:o}=fi(Gf),a=St(()=>({[pg(t.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[pg(t.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const u=n.default&&n.default(r);return t.custom?u:fl("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},u)}}}),SS=_S;function kS(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 CS(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 dg(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const pg=(t,n,r)=>t!=null?t:n!=null?n:r,TS=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(Ku),a=St(()=>t.route||o.value),u=fi(fg,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]);da(fg,St(()=>f.value+1)),da(wS,h),da(Ku,a);const p=Kt();return Fe(()=>[p.value,h.value,t.name],([g,m,b],[x,S,M])=>{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||!Fo(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 gg(r.default,{Component:x,route:g});const S=b.props[m],M=S?S===!0?g.params:typeof S=="function"?S(g):S:null,L=fl(x,he({},M,n,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(b.instances[m]=null)},ref:p}));return gg(r.default,{Component:L,route:g})||L}}});function gg(t,n){if(!t)return null;const r=t(n);return r.length===1?r[0]:r}const LS=TS;function ES(t){const n=eS(t.routes,t),r=t.parseQuery||yS,o=t.stringifyQuery||ug,a=t.history,u=Ps(),f=Ps(),h=Ps(),p=ll(ni);let g=ni;To&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const m=xu.bind(null,J=>""+J),b=xu.bind(null,mS),x=xu.bind(null,Aa);function S(J,tt){let V,st;return Fm(J)?(V=n.getRecordMatcher(J),st=tt):st=J,n.addRoute(st,V)}function M(J){const tt=n.getRecordMatcher(J);tt&&n.removeRoute(tt)}function A(){return n.getRoutes().map(J=>J.record)}function L(J){return!!n.getRecordMatcher(J)}function C(J,tt){if(tt=he({},tt||p.value),typeof J=="string"){const P=_u(r,J,tt.path),F=n.resolve({path:P.path},tt),Y=a.createHref(P.fullPath);return he(P,F,{params:x(F.params),hash:Aa(P.hash),redirectedFrom:void 0,href:Y})}let V;if("path"in J)V=he({},J,{path:_u(r,J.path,tt.path).path});else{const P=he({},J.params);for(const F in P)P[F]==null&&delete P[F];V=he({},J,{params:b(J.params)}),tt.params=b(tt.params)}const st=n.resolve(V,tt),Ct=J.hash||"";st.params=m(x(st.params));const de=M_(o,he({},J,{hash:pS(Ct),path:st.path})),Lt=a.createHref(de);return he({fullPath:de,hash:Ct,query:o===ug?bS(J.query):J.query||{}},st,{redirectedFrom:void 0,href:Lt})}function E(J){return typeof J=="string"?_u(r,J,p.value.path):he({},J)}function z(J,tt){if(g!==J)return qo(8,{from:tt,to:J})}function D(J){return it(J)}function G(J){return D(he(E(J),{replace:!0}))}function j(J){const tt=J.matched[J.matched.length-1];if(tt&&tt.redirect){const{redirect:V}=tt;let st=typeof V=="function"?V(J):V;return typeof st=="string"&&(st=st.includes("?")||st.includes("#")?st=E(st):{path:st},st.params={}),he({query:J.query,hash:J.hash,params:"path"in st?{}:J.params},st)}}function it(J,tt){const V=g=C(J),st=p.value,Ct=J.state,de=J.force,Lt=J.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&&N_(o,st,V)&&(Y=qo(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 Q(J,tt){const V=z(J,tt);return V?Promise.reject(V):Promise.resolve()}function dt(J,tt){let V;const[st,Ct,de]=AS(J,tt);V=Su(st.reverse(),"beforeRouteLeave",J,tt);for(const P of st)P.leaveGuards.forEach(F=>{V.push(ii(F,J,tt))});const Lt=Q.bind(null,J,tt);return V.push(Lt),So(V).then(()=>{V=[];for(const P of u.list())V.push(ii(P,J,tt));return V.push(Lt),So(V)}).then(()=>{V=Su(Ct,"beforeRouteUpdate",J,tt);for(const P of Ct)P.updateGuards.forEach(F=>{V.push(ii(F,J,tt))});return V.push(Lt),So(V)}).then(()=>{V=[];for(const P of J.matched)if(P.beforeEnter&&!tt.matched.includes(P))if(Xn(P.beforeEnter))for(const F of P.beforeEnter)V.push(ii(F,J,tt));else V.push(ii(P.beforeEnter,J,tt));return V.push(Lt),So(V)}).then(()=>(J.matched.forEach(P=>P.enterCallbacks={}),V=Su(de,"beforeRouteEnter",J,tt),V.push(Lt),So(V))).then(()=>{V=[];for(const P of f.list())V.push(ii(P,J,tt));return V.push(Lt),So(V)}).catch(P=>Tr(P,8)?P:Promise.reject(P))}function vt(J,tt,V){for(const st of h.list())st(J,tt,V)}function kt(J,tt,V,st,Ct){const de=z(J,tt);if(de)return de;const Lt=tt===ni,P=To?history.state:{};V&&(st||Lt?a.replace(J.fullPath,he({scroll:Lt&&P&&P.scroll},Ct)):a.push(J.fullPath,Ct)),p.value=J,Et(J,tt,V,Lt),wt()}let ft;function U(){ft||(ft=a.listen((J,tt,V)=>{if(!ne.listening)return;const st=C(J),Ct=j(st);if(Ct){it(he(Ct,{replace:!0}),st).catch(qs);return}g=st;const de=p.value;To&&F_(ng(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===Js.pop&&a.go(-1,!1)}).catch(qs),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===Js.pop&&Tr(Lt,20)&&a.go(-1,!1)),vt(st,de,Lt)}).catch(qs)}))}let I=Ps(),k=Ps(),H;function W(J,tt,V){wt(J);const st=k.list();return st.length?st.forEach(Ct=>Ct(J,tt,V)):console.error(J),Promise.reject(J)}function et(){return H&&p.value!==ni?Promise.resolve():new Promise((J,tt)=>{I.add([J,tt])})}function wt(J){return H||(H=!J,U(),I.list().forEach(([tt,V])=>J?V(J):tt()),I.reset()),J}function Et(J,tt,V,st){const{scrollBehavior:Ct}=t;if(!To||!Ct)return Promise.resolve();const de=!V&&q_(ng(J.fullPath,0))||(st||!V)&&history.state&&history.state.scroll||null;return cl().then(()=>Ct(J,tt,de)).then(Lt=>Lt&&I_(Lt)).catch(Lt=>W(Lt,J,tt))}const qt=J=>a.go(J);let Bt;const Gt=new Set,ne={currentRoute:p,listening:!0,addRoute:S,removeRoute:M,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(J){const tt=this;J.component("RouterLink",SS),J.component("RouterView",LS),J.config.globalProperties.$router=tt,Object.defineProperty(J.config.globalProperties,"$route",{enumerable:!0,get:()=>Z(p)}),To&&!Bt&&p.value===ni&&(Bt=!0,D(a.location).catch(Ct=>{}));const V={};for(const Ct in ni)V[Ct]=St(()=>p.value[Ct]);J.provide(Gf,tt),J.provide(Vm,hr(V)),J.provide(Ku,p);const st=J.unmount;Gt.add(J),J.unmount=function(){Gt.delete(J),Gt.size<1&&(g=ni,ft&&ft(),ft=null,p.value=ni,Bt=!1,H=!1),st()}}};return ne}function So(t){return t.reduce((n,r)=>n.then(()=>r()),Promise.resolve())}function AS(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=>Fo(g,h))?o.push(h):r.push(h));const p=t.matched[f];p&&(n.matched.find(g=>Fo(g,p))||a.push(p))}return[r,o,a]}function Fr(t){return t.split("-")[0]}function Po(t){return t.split("-")[1]}function hl(t){return["top","bottom"].includes(Fr(t))?"x":"y"}function Vf(t){return t==="y"?"height":"width"}function vg(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=hl(o),p=Vf(h);switch(Po(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 MS=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}=vg({...h,placement:o}),m=o,b={};for(let x=0;x<u.length;x++){const{name:S,fn:M}=u[x],{x:A,y:L,data:C,reset:E}=await M({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}=vg({...h,placement:m})),x=-1;continue}}return{x:p,y:g,placement:m,strategy:a,middlewareData:b}};function NS(t){return{top:0,right:0,bottom:0,left:0,...t}}function Km(t){return typeof t!="number"?NS(t):{top:t,right:t,bottom:t,left:t}}function Xu(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=Km(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=Xu(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 PS=Math.min,Di=Math.max;function Yu(t,n,r){return Di(t,PS(n,r))}const OS=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=Km(o),m={x:a,y:u},b=Fr(f),x=hl(b),S=Vf(x),M=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-M[S]-g[L],Q=D/2-M[S]/2+G,dt=Yu(j,Q,it);return{data:{[x]:dt,centerOffset:Q-dt}}}}),$S={left:"right",right:"left",bottom:"top",top:"bottom"};function Ma(t){return t.replace(/left|right|bottom|top/g,n=>$S[n])}function Xm(t,n){const r=Po(t)==="start",o=hl(t),a=Vf(o);let u=o==="x"?r?"right":"left":r?"bottom":"top";return n.reference[a]>n.floating[a]&&(u=Ma(u)),{main:u,cross:Ma(u)}}const DS={start:"end",end:"start"};function Zu(t){return t.replace(/start|end/g,n=>DS[n])}const RS=["top","right","bottom","left"],zS=RS.reduce((t,n)=>t.concat(n,n+"-start",n+"-end"),[]);function IS(t,n,r){return(t?[...r.filter(a=>Po(a)===t),...r.filter(a=>Po(a)!==t)]:r.filter(a=>Fr(a)===a)).filter(a=>t?Po(a)===t||(n?Zu(a)!==a:!1):!0)}const FS=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:M=zS,autoAlignment:A=!0,...L}=t;if((r=b.autoPlacement)!=null&&r.skip)return{};const C=IS(S,A,M),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}=Xm(D,m);if(x!==D)return{x:p,y:g,reset:{placement:C[0]}};const it=[E[Fr(D)],E[G],E[j]],Q=[...(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:Q},reset:{placement:dt}};const vt=Q.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 qS(t){const n=Ma(t);return[Zu(t),n,Zu(n)]}const HS=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,M=Fr(a),L=m||(M===h||!x?[Ma(h)]:qS(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[M]),g){const{main:Q,cross:dt}=Xm(a,f);z.push(E[Q],E[dt])}if(D=[...D,{placement:a,overflows:z}],!z.every(Q=>Q<=0)){var G,j;const Q=((G=(j=u.flip)==null?void 0:j.index)!=null?G:0)+1,dt=C[Q];if(dt)return{data:{index:Q,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 BS(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 hl(a)==="x"?{x:p,y:h*u}:{x:h*u,y:p}}const WS=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=BS({placement:a,rects:u,value:t});return{x:r+f.x,y:o+f.y,data:f}}}};function US(t){return t==="x"?"y":"x"}const jS=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=hl(Fr(a)),x=US(b);let S=g[b],M=g[x];if(u){const L=b==="y"?"top":"left",C=b==="y"?"bottom":"right",E=S+m[L],z=S-m[C];S=Yu(E,S,z)}if(f){const L=x==="y"?"top":"left",C=x==="y"?"bottom":"right",E=M+m[L],z=M-m[C];M=Yu(E,M,z)}const A=h.fn({...n,[b]:S,[x]:M});return{...A,data:{x:A.x-r,y:A.y-o}}}}},GS=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=Po(o)==="end";let b,x;g==="top"||g==="bottom"?(b=g,x=m?"left":"right"):(x=g,b=m?"top":"bottom");const S=Di(p.left,0),M=Di(p.right,0),A=Di(p.top,0),L=Di(p.bottom,0),C={height:a.floating.height-(["left","right"].includes(o)?2*(A!==0||L!==0?A+L:Di(p.top,p.bottom)):p[b]),width:a.floating.width-(["top","bottom"].includes(o)?2*(S!==0||M!==0?S+M:Di(p.left,p.right)):p[x])};return f==null||f({...C,...a}),{data:{skip:!0},reset:{rects:!0}}}}};function Kf(t){return(t==null?void 0:t.toString())==="[object Window]"}function vi(t){if(t==null)return window;if(!Kf(t)){const n=t.ownerDocument;return n&&n.defaultView||window}return t}function ac(t){return vi(t).getComputedStyle(t)}function Dr(t){return Kf(t)?"":t?(t.nodeName||"").toLowerCase():""}function Rr(t){return t instanceof vi(t).HTMLElement}function Na(t){return t instanceof vi(t).Element}function VS(t){return t instanceof vi(t).Node}function Ym(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 KS(t){return["table","td","th"].includes(Dr(t))}function Zm(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 mg=Math.min,Bs=Math.max,Pa=Math.round;function Ho(t,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect();let o=1,a=1;return n&&Rr(t)&&(o=t.offsetWidth>0&&Pa(r.width)/t.offsetWidth||1,a=t.offsetHeight>0&&Pa(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((VS(t)?t.ownerDocument:t.document)||window.document).documentElement}function uc(t){return Kf(t)?{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}:{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Jm(t){return Ho(mi(t)).left+uc(t).scrollLeft}function XS(t){const n=Ho(t);return Pa(n.width)!==t.offsetWidth||Pa(n.height)!==t.offsetHeight}function YS(t,n,r){const o=Rr(n),a=mi(n),u=Ho(t,o&&XS(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=Ho(n,!0);h.x=p.x+n.clientLeft,h.y=p.y+n.clientTop}else a&&(h.x=Jm(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||(Ym(t)?t.host:null)||mi(t)}function yg(t){return!Rr(t)||getComputedStyle(t).position==="fixed"?null:t.offsetParent}function ZS(t){let n=fc(t);for(;Rr(n)&&!["html","body"].includes(Dr(n));){if(Zm(n))return n;n=n.parentNode}return null}function Ju(t){const n=vi(t);let r=yg(t);for(;r&&KS(r)&&getComputedStyle(r).position==="static";)r=yg(r);return r&&(Dr(r)==="html"||Dr(r)==="body"&&getComputedStyle(r).position==="static"&&!Zm(r))?n:r||ZS(t)||n}function bg(t){return{width:t.offsetWidth,height:t.offsetHeight}}function JS(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=Ho(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 QS(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 tk(t){var n;const r=mi(t),o=uc(t),a=(n=t.ownerDocument)==null?void 0:n.body,u=Bs(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),f=Bs(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0);let h=-o.scrollLeft+Jm(t);const p=-o.scrollTop;return ac(a||r).direction==="rtl"&&(h+=Bs(r.clientWidth,a?a.clientWidth:0)-u),{width:u,height:f,x:h,y:p}}function Qm(t){return["html","body","#document"].includes(Dr(t))?t.ownerDocument.body:Rr(t)&&cc(t)?t:Qm(fc(t))}function Oa(t,n){var r;n===void 0&&(n=[]);const o=Qm(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(Oa(fc(f)))}function ek(t,n){const r=n.getRootNode==null?void 0:n.getRootNode();if(t.contains(n))return!0;if(r&&Ym(r)){let o=n;do{if(o&&t===o)return!0;o=o.parentNode||o.host}while(o)}return!1}function nk(t){const n=Ho(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 wg(t,n){return n==="viewport"?Xu(QS(t)):Na(n)?nk(n):Xu(tk(mi(t)))}function rk(t){const n=Oa(fc(t)),o=["absolute","fixed"].includes(ac(t).position)&&Rr(t)?Ju(t):t;return Na(o)?n.filter(a=>Na(a)&&ek(a,o)&&Dr(a)!=="body"):[]}function ik(t){let{element:n,boundary:r,rootBoundary:o}=t;const u=[...r==="clippingParents"?rk(n):[].concat(r),o],f=u[0],h=u.reduce((p,g)=>{const m=wg(n,g);return p.top=Bs(m.top,p.top),p.right=mg(m.right,p.right),p.bottom=mg(m.bottom,p.bottom),p.left=Bs(m.left,p.left),p},wg(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 ok={getElementRects:t=>{let{reference:n,floating:r,strategy:o}=t;return{reference:YS(n,Ju(r),o),floating:{...bg(r),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:t=>JS(t),getOffsetParent:t=>{let{element:n}=t;return Ju(n)},isElement:t=>Na(t),getDocumentElement:t=>{let{element:n}=t;return mi(n)},getClippingClientRect:t=>ik(t),getDimensions:t=>{let{element:n}=t;return bg(n)},getClientRects:t=>{let{element:n}=t;return n.getClientRects()}},sk=(t,n,r)=>MS(t,n,{platform:ok,...r});var lk=Object.defineProperty,ak=Object.defineProperties,ck=Object.getOwnPropertyDescriptors,xg=Object.getOwnPropertySymbols,uk=Object.prototype.hasOwnProperty,fk=Object.prototype.propertyIsEnumerable,_g=(t,n,r)=>n in t?lk(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,Nr=(t,n)=>{for(var r in n||(n={}))uk.call(n,r)&&_g(t,r,n[r]);if(xg)for(var r of xg(n))fk.call(n,r)&&_g(t,r,n[r]);return t},dl=(t,n)=>ak(t,ck(n));function t0(t,n){for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(typeof n[r]=="object"&&t[r]?t0(t[r],n[r]):t[r]=n[r])}const Ui={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 Bo(t,n){let r=Ui.themes[t]||{},o;do o=r[n],typeof o>"u"?r.$extend?r=Ui.themes[r.$extend]||{}:(r=null,o=Ui[n]):r=null;while(r);return o}function hk(t){const n=[t];let r=Ui.themes[t]||{};do r.$extend&&!r.$resetCss?(n.push(r.$extend),r=Ui.themes[r.$extend]||{}):r=null;while(r);return n.map(o=>`v-popper--theme-${o}`)}let Wo=!1;if(typeof window<"u"){Wo=!1;try{const t=Object.defineProperty({},"passive",{get(){Wo=!0}});window.addEventListener("test",null,t)}catch{}}let e0=!1;typeof window<"u"&&typeof navigator<"u"&&(e0=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const n0=["auto","top","bottom","left","right"].reduce((t,n)=>t.concat([n,`${n}-start`,`${n}-end`]),[]),Sg={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},kg={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function dk(t,n){const r=t.indexOf(n);r!==-1&&t.splice(r,1)}function ku(){return new Promise(t=>requestAnimationFrame(()=>{requestAnimationFrame(t)}))}const cr=[];let ko=null,Qu=function(){};typeof window<"u"&&(Qu=window.Element);function fe(t){return function(n){return Bo(n.theme,t)}}var r0=()=>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=>n0.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,Qu,Boolean],default:fe("container")},boundary:{type:[String,Qu],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:dl(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(WS({mainAxis:this.distance,crossAxis:this.skidding}));const r=this.placement.startsWith("auto");r?n.middleware.push(FS({alignment:(t=this.placement.split("-")[1])!=null?t:""})):n.placement=this.placement,this.preventOverflow&&(this.shift&&n.middleware.push(jS({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!r&&this.flip&&n.middleware.push(HS({padding:this.overflowPadding,boundary:this.boundary}))),n.middleware.push(OS({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(GS({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 sk(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),ko&&this.instantMove&&ko.instantMove){ko.$_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&&(ko=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 ku(),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 ku(),this.classes.showFrom=!1,this.classes.showTo=!0},async $_applyHide(t=!1){if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=t,dk(cr,this),ko===this&&(ko=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const n=Bo(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 ku(),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,Wo?{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,Sg,this.triggers,this.showTriggers,r),n([this.$_popperNode],Sg,this.popperTriggers,this.popperShowTriggers,r);const o=a=>{a.usedByTooltip||this.hide({event:a})};n(this.$_targetNodes,kg,this.triggers,this.hideTriggers,o),n([this.$_popperNode],kg,this.popperTriggers,this.popperHideTriggers,o),t([...Oa(this.$_referenceNode),...Oa(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"&&(e0?(document.addEventListener("touchstart",Cg,Wo?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",gk,Wo?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",Cg,!0),window.addEventListener("click",pk,!0)),window.addEventListener("resize",vk));function Cg(t){for(let n=0;n<cr.length;n++){const r=cr[n],o=r.popperNode();r.$_mouseDownContains=o.contains(t.target)}}function pk(t){i0(t)}function gk(t){i0(t,!0)}function i0(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 vk(t){for(let n=0;n<cr.length;n++)cr[n].$_computePosition(t)}function mk(){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 ga;function tf(){tf.init||(tf.init=!0,ga=mk()!==-1)}var hc={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){tf(),cl(()=>{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",ga&&this.$el.appendChild(t),t.data="about:blank",ga||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&&(!ga&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const yk=Vx();cm("data-v-b329ee4c");const bk={class:"resize-observer",tabindex:"-1"};um();const wk=yk((t,n,r,o,a,u)=>(ht(),ce("div",bk)));hc.render=wk;hc.__scopeId="data-v-b329ee4c";hc.__file="src/components/ResizeObserver.vue";var o0={computed:{themeClass(){return hk(this.theme)}}},Xf=(t,n)=>{const r=t.__vccOpts||t;for(const[o,a]of n)r[o]=a;return r};const xk=oe({name:"VPopperContent",components:{ResizeObserver:hc},mixins:[o0],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}}}),_k=["id","aria-hidden","tabindex","data-popper-placement"],Sk={ref:"inner",class:"v-popper__inner"},kk=ut("div",{class:"v-popper__arrow-outer"},null,-1),Ck=ut("div",{class:"v-popper__arrow-inner"},null,-1),Tk=[kk,Ck];function Lk(t,n,r,o,a,u){const f=Gi("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]=ju(h=>t.autoHide&&t.$emit("hide"),["esc"]))},[ut("div",{class:"v-popper__wrapper",style:kn({transformOrigin:t.result.transformOrigin})},[ut("div",Sk,[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)})},Tk,4)],4)],46,_k)}var s0=Xf(xk,[["render",Lk]]),l0={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 Ek=oe({name:"VPopperWrapper",components:{Popper:r0(),PopperContent:s0},mixins:[l0,o0],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 Ak(t,n,r,o,a,u){const f=Gi("PopperContent"),h=Gi("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:Zt(({popperId:p,isShown:g,shouldMountContent:m,skipTransition:b,autoHide:x,show:S,hide:M,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:M}),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:M,onResize:L},{default:Zt(()=>[Kn(t.$slots,"popper",{shown:g,hide:M})]),_: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 Yf=Xf(Ek,[["render",Ak]]);const Tg=oe(dl(Nr({},Yf),{name:"VDropdown",vPopperTheme:"dropdown"})),Lg=oe(dl(Nr({},Yf),{name:"VMenu",vPopperTheme:"menu"})),Eg=oe(dl(Nr({},Yf),{name:"VTooltip",vPopperTheme:"tooltip"})),Mk=oe({name:"VTooltipDirective",components:{Popper:r0(),PopperContent:s0},mixins:[l0],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:t=>Bo(t.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:t=>Bo(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}}}),Nk=["innerHTML"],Pk=["textContent"];function Ok(t,n,r,o,a,u){const f=Gi("PopperContent"),h=Gi("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:Zt(({popperId:p,isShown:g,shouldMountContent:m,skipTransition:b,autoHide:x,hide:S,handleResize:M,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":M,classes:L,result:C,onHide:S,onResize:A},{default:Zt(()=>[t.html?(ht(),Mt("div",{key:0,innerHTML:t.finalContent},null,8,Nk)):(ht(),Mt("div",{key:1,textContent:Jt(t.finalContent)},null,8,Pk))]),_: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 $k=Xf(Mk,[["render",Ok]]);const a0="v-popper--has-tooltip";function Dk(t,n){let r=t.placement;if(!r&&n)for(const o of n0)n[o]&&(r=o);return r||(r=Bo(t.theme||"tooltip","placement")),r}function c0(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=Dk(o,r),o.targetNodes=()=>[t],o.referenceNode=()=>t,o}let Cu,Qs,Rk=0;function zk(){if(Cu)return;Qs=Kt([]),Cu=Rm({name:"VTooltipDirectiveApp",setup(){return{directives:Qs}},render(){return this.directives.map(n=>fl($k,dl(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),Cu.mount(t)}function u0(t,n,r){zk();const o=Kt(c0(t,n,r)),a=Kt(!1),u={id:Rk++,options:o,shown:a};return Qs.value.push(u),t.classList&&t.classList.add(a0),t.$_popper={options:o,item:u,show(){a.value=!0},hide(){a.value=!1}}}function Zf(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(a0)}function Ag(t,{value:n,oldValue:r,modifiers:o}){const a=c0(t,n,o);if(!a.content||Bo(a.theme||"tooltip","disabled"))Zf(t);else{let u;t.$_popper?(u=t.$_popper,u.options.value=a):u=u0(t,n,o),typeof n.shown<"u"&&n.shown!==t.$_popperOldShown&&(t.$_popperOldShown=n.shown,n.shown?u.show():u.hide())}}var f0={beforeMount:Ag,updated:Ag,beforeUnmount(t){Zf(t)}};function Mg(t){t.addEventListener("click",h0),t.addEventListener("touchstart",d0,Wo?{passive:!0}:!1)}function Ng(t){t.removeEventListener("click",h0),t.removeEventListener("touchstart",d0),t.removeEventListener("touchend",p0),t.removeEventListener("touchcancel",g0)}function h0(t){const n=t.currentTarget;t.closePopover=!n.$_vclosepopover_touch,t.closeAllPopover=n.$_closePopoverModifiers&&!!n.$_closePopoverModifiers.all}function d0(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",p0),n.addEventListener("touchcancel",g0)}}function p0(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 g0(t){const n=t.currentTarget;n.$_vclosepopover_touch=!1}var Ik={beforeMount(t,{value:n,modifiers:r}){t.$_closePopoverModifiers=r,(typeof n>"u"||n)&&Mg(t)},updated(t,{value:n,oldValue:r,modifiers:o}){t.$_closePopoverModifiers=o,n!==r&&(typeof n>"u"||n?Mg(t):Ng(t))},beforeUnmount(t){Ng(t)}};const Fk=f0;function qk(t,n={}){t.$_vTooltipInstalled||(t.$_vTooltipInstalled=!0,t0(Ui,n),t.directive("tooltip",f0),t.directive("close-popper",Ik),t.component("v-tooltip",Eg),t.component("VTooltip",Eg),t.component("v-dropdown",Tg),t.component("VDropdown",Tg),t.component("v-menu",Lg),t.component("VMenu",Lg))}const v0={version:"2.0.0-y.0",install:qk,options:Ui};var Pg;const m0=typeof window<"u",Hk=t=>typeof t<"u",y0=t=>typeof t=="function",Bk=t=>typeof t=="string",va=()=>{};m0&&((Pg=window==null?void 0:window.navigator)==null?void 0:Pg.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Vi(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 b0=t=>t();function w0(t,n={}){let r,o;return u=>{const f=Vi(t),h=Vi(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 Wk(t,n=!0,r=!0){let o=0,a,u=!0;const f=()=>{a&&(clearTimeout(a),a=void 0)};return p=>{const g=Vi(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-m)),!r&&!a&&(a=setTimeout(()=>u=!0,g)),u=!1}}function Uk(t=b0){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 jk(t){return t}function Qf(t){return ax()?(cx(t),!0):!1}function Og(t,n=200,r={}){return Jf(w0(n,r),t)}function Gk(t,n=200,r=!1,o=!0){return Jf(Wk(n,r,o),t)}function Vk(t,n=200,r=!0,o=!0){if(n<=0)return t;const a=Kt(t.value),u=Gk(()=>{a.value=t.value},n,r,o);return Fe(t,()=>u()),a}function Kk(t){return typeof t=="function"?St(t):Kt(t)}function th(t,n=!0){ic()?ul(t):n?t():cl(t)}function Xk(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=Vi(r);return u.value=u.value===p?Vi(o):p,u.value}}return a?f:[u,f]}var $g=Object.getOwnPropertySymbols,Yk=Object.prototype.hasOwnProperty,Zk=Object.prototype.propertyIsEnumerable,Jk=(t,n)=>{var r={};for(var o in t)Yk.call(t,o)&&n.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&$g)for(var o of $g(t))n.indexOf(o)<0&&Zk.call(t,o)&&(r[o]=t[o]);return r};function x0(t,n,r={}){const o=r,{eventFilter:a=b0}=o,u=Jk(o,["eventFilter"]);return Fe(t,Jf(a,n),u)}var Qk=Object.defineProperty,tC=Object.defineProperties,eC=Object.getOwnPropertyDescriptors,$a=Object.getOwnPropertySymbols,_0=Object.prototype.hasOwnProperty,S0=Object.prototype.propertyIsEnumerable,Dg=(t,n,r)=>n in t?Qk(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,nC=(t,n)=>{for(var r in n||(n={}))_0.call(n,r)&&Dg(t,r,n[r]);if($a)for(var r of $a(n))S0.call(n,r)&&Dg(t,r,n[r]);return t},rC=(t,n)=>tC(t,eC(n)),iC=(t,n)=>{var r={};for(var o in t)_0.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&&S0.call(t,o)&&(r[o]=t[o]);return r};function oC(t,n,r={}){const o=r,{debounce:a=0,maxWait:u=void 0}=o,f=iC(o,["debounce","maxWait"]);return x0(t,n,rC(nC({},f),{eventFilter:w0(a,{maxWait:u})}))}function sC(t,n,r){const o=Fe(t,(...a)=>(cl(()=>o()),n(...a)),r)}var lC=Object.defineProperty,aC=Object.defineProperties,cC=Object.getOwnPropertyDescriptors,Da=Object.getOwnPropertySymbols,k0=Object.prototype.hasOwnProperty,C0=Object.prototype.propertyIsEnumerable,Rg=(t,n,r)=>n in t?lC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,uC=(t,n)=>{for(var r in n||(n={}))k0.call(n,r)&&Rg(t,r,n[r]);if(Da)for(var r of Da(n))C0.call(n,r)&&Rg(t,r,n[r]);return t},fC=(t,n)=>aC(t,cC(n)),hC=(t,n)=>{var r={};for(var o in t)k0.call(t,o)&&n.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Da)for(var o of Da(t))n.indexOf(o)<0&&C0.call(t,o)&&(r[o]=t[o]);return r};function T0(t,n,r={}){const o=r,{eventFilter:a}=o,u=hC(o,["eventFilter"]),{eventFilter:f,pause:h,resume:p,isActive:g}=Uk(a);return{stop:x0(t,n,fC(uC({},u),{eventFilter:f})),pause:h,resume:p,isActive:g}}function dC(t,n,r){let o;Ie(r)?o={evaluating:r}:o=r||{};const{lazy:a=!1,evaluating:u=void 0,onError:f=va}=o,h=Kt(!a),p=Kt(n);let g=0;return zf(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(M=>{m(()=>{u&&(u.value=!1),x||M()})});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 L0(t){var n;const r=Vi(t);return(n=r==null?void 0:r.$el)!=null?n:r}const dr=m0?window:void 0;function Uo(...t){let n,r,o,a;if(Bk(t[0])?([r,o,a]=t,n=dr):[n,r,o,a]=t,!n)return va;let u=va;const f=Fe(()=>L0(n),p=>{u(),p&&(p.addEventListener(r,o,a),u=()=>{p.removeEventListener(r,o,a),u=va})},{immediate:!0,flush:"post"}),h=()=>{f(),u()};return Qf(h),h}const pC=t=>typeof t=="function"?t:typeof t=="string"?n=>n.key===t:Array.isArray(t)?n=>t.includes(n.key):()=>!0;function gC(...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=pC(n);return Uo(a,u,g=>{h(g)&&r(g)},f)}function E0(t,n=!1){const r=Kt(),o=()=>r.value=Boolean(t());return o(),th(o,n),r}function vC(t,n={}){const{window:r=dr}=n,o=E0(()=>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(Kk(t).value),u.value=a.matches,"addEventListener"in a?a.addEventListener("change",h):a.addListener(h))};return zf(h),Qf(()=>f()),u}function mC(t){return JSON.parse(JSON.stringify(t))}const ef=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},nf="__vueuse_ssr_handlers__";ef[nf]=ef[nf]||{};const yC=ef[nf];function A0(t,n){return yC[t]||n}function bC(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 wC=Object.defineProperty,zg=Object.getOwnPropertySymbols,xC=Object.prototype.hasOwnProperty,_C=Object.prototype.propertyIsEnumerable,Ig=(t,n,r)=>n in t?wC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,Fg=(t,n)=>{for(var r in n||(n={}))xC.call(n,r)&&Ig(t,r,n[r]);if(zg)for(var r of zg(n))_C.call(n,r)&&Ig(t,r,n[r]);return t};const SC={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 kC(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,M=(m?ll:Kt)(n);if(!r)try{r=A0("getDefaultStorage",()=>{var it;return(it=dr)==null?void 0:it.localStorage})()}catch(it){S(it)}if(!r)return M;const A=Vi(n),L=bC(A),C=(a=o.serializer)!=null?a:SC[L],{pause:E,resume:z}=T0(M,()=>D(M.value),{flush:u,deep:f,eventFilter:x});return b&&h&&Uo(b,"storage",j),j(),M;function D(it){try{it==null?r.removeItem(t):r.setItem(t,C.write(it))}catch(Q){S(Q)}}function G(it){E();try{const Q=it?it.newValue:r.getItem(t);if(Q==null)return p&&A!==null&&r.setItem(t,C.write(A)),A;if(!it&&g){const dt=C.read(Q);return y0(g)?g(dt,A):L==="object"&&!Array.isArray(dt)?Fg(Fg({},A),dt):dt}else return typeof Q!="string"?Q:C.read(Q)}catch(Q){S(Q)}finally{z()}}function j(it){if(!(it&&it.storageArea!==r)){if(it&&it.key===null){M.value=A;return}it&&it.key!==t||(M.value=G(it))}}}function M0(t){return vC("(prefers-color-scheme: dark)",t)}var CC=Object.defineProperty,qg=Object.getOwnPropertySymbols,TC=Object.prototype.hasOwnProperty,LC=Object.prototype.propertyIsEnumerable,Hg=(t,n,r)=>n in t?CC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,EC=(t,n)=>{for(var r in n||(n={}))TC.call(n,r)&&Hg(t,r,n[r]);if(qg)for(var r of qg(n))LC.call(n,r)&&Hg(t,r,n[r]);return t};function AC(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=EC({auto:"",light:"light",dark:"dark"},t.modes||{}),b=M0({window:a}),x=St(()=>b.value?"dark":"light"),S=p||(f==null?Kt(o):kC(f,o,u,{window:a,listenToStorageChanges:h})),M=St({get(){return S.value==="auto"&&!g?x.value:S.value},set(E){S.value=E}}),A=A0("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(M,C,{flush:"post",immediate:!0}),g&&Fe(x,()=>C(M.value),{flush:"post"}),th(()=>C(M.value)),M}var MC=Object.defineProperty,NC=Object.defineProperties,PC=Object.getOwnPropertyDescriptors,Bg=Object.getOwnPropertySymbols,OC=Object.prototype.hasOwnProperty,$C=Object.prototype.propertyIsEnumerable,Wg=(t,n,r)=>n in t?MC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,DC=(t,n)=>{for(var r in n||(n={}))OC.call(n,r)&&Wg(t,r,n[r]);if(Bg)for(var r of Bg(n))$C.call(n,r)&&Wg(t,r,n[r]);return t},RC=(t,n)=>NC(t,PC(n));function zC(t={}){const{valueDark:n="dark",valueLight:r="",window:o=dr}=t,a=AC(RC(DC({},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=M0({window:o});return St({get(){return a.value==="dark"},set(h){h===u.value?a.value="auto":a.value=h?"dark":"light"}})}var Ug=Object.getOwnPropertySymbols,IC=Object.prototype.hasOwnProperty,FC=Object.prototype.propertyIsEnumerable,qC=(t,n)=>{var r={};for(var o in t)IC.call(t,o)&&n.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Ug)for(var o of Ug(t))n.indexOf(o)<0&&FC.call(t,o)&&(r[o]=t[o]);return r};function HC(t,n,r={}){const o=r,{window:a=dr}=o,u=qC(o,["window"]);let f;const h=E0(()=>a&&"ResizeObserver"in a),p=()=>{f&&(f.disconnect(),f=void 0)},g=Fe(()=>L0(t),b=>{p(),h.value&&a&&b&&(f=new ResizeObserver(n),f.observe(b,u))},{immediate:!0,flush:"post"}),m=()=>{p(),g()};return Qf(m),{isSupported:h,stop:m}}var jg;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(jg||(jg={}));var BC=Object.defineProperty,Gg=Object.getOwnPropertySymbols,WC=Object.prototype.hasOwnProperty,UC=Object.prototype.propertyIsEnumerable,Vg=(t,n,r)=>n in t?BC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,jC=(t,n)=>{for(var r in n||(n={}))WC.call(n,r)&&Vg(t,r,n[r]);if(Gg)for(var r of Gg(n))UC.call(n,r)&&Vg(t,r,n[r]);return t};const GC={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]};jC({linear:jk},GC);function VC(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}=T0(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)}),M(C)},{deep:!0});function M(C,E){x(),E&&b(C),f.history.replaceState(f.history.state,f.document.title,f.location.pathname+g(C)),S()}function A(){!u||M(m(),!0)}Uo(f,"popstate",A,!1),t!=="history"&&Uo(f,"hashchange",A,!1);const L=m();return L.keys().next().value?b(L):Object.assign(h,r),h}function KC(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 M=g;n||(n="modelValue"),M=g||M||`update:${n.toString()}`;const A=C=>h?y0(h)?h(C):mC(C):C,L=()=>Hk(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(M,z)},{deep:m}),E}else return St({get(){return L()},set(C){S(M,C)}})}function XC(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(),th(p),Uo("resize",p,{passive:!0}),a&&Uo("orientationchange",p,{passive:!0}),{width:f,height:h}}const YC=6e4;function ZC(t,n){const{post:r,on:o,eventNames:a=[],serialize:u=m=>m,deserialize:f=m=>m,timeout:h=YC}=n,p=new Map,g=new Proxy({},{get(m,b){const x=(...M)=>{r(u({m:b,a:M,t:"q"}))};if(a.includes(b))return x.asEvent=x,x;const S=(...M)=>new Promise((A,L)=>{const C=QC();p.set(C,{resolve:A,reject:L}),r(u({m:b,a:M,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:M}=x;let A,L;try{A=await t[S].apply(g,M)}catch(C){L=C}x.i&&r(u({t:"s",i:x.i,r:A,e:L}),...b)}else{const{i:S,r:M,e:A}=x,L=p.get(S);A?L==null||L.reject(A):L==null||L.resolve(M),p.delete(S)}}),g}const JC="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function QC(t=21){let n="",r=t;for(;r--;)n+=JC[Math.random()*64|0];return n}/*! (c) 2020 Andrea Giammarchi */const{parse:tT,stringify:eT}=JSON,{keys:nT}=Object,tl=String,N0="string",Kg={},Ra="object",P0=(t,n)=>n,rT=t=>t instanceof tl?tl(t):t,iT=(t,n)=>typeof n===N0?new tl(n):n,O0=(t,n,r,o)=>{const a=[];for(let u=nT(r),{length:f}=u,h=0;h<f;h++){const p=u[h],g=r[p];if(g instanceof tl){const m=t[g];typeof m===Ra&&!n.has(m)?(n.add(m),r[p]=Kg,a.push({k:p,a:[t,n,m,o]})):r[p]=o.call(r,p,m)}else r[p]!==Kg&&(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,O0.apply(null,p))}return r},Xg=(t,n,r)=>{const o=tl(n.push(r)-1);return t.set(r,o),o},oT=(t,n)=>{const r=tT(t,iT).map(rT),o=r[0],a=n||P0,u=typeof o===Ra&&o?O0(r,new Set,o,a):o;return a.call({"":u},"",u)},sT=(t,n,r)=>{const o=n&&typeof n===Ra?(m,b)=>m===""||-1<n.indexOf(m)?b:void 0:n||P0,a=new Map,u=[],f=[];let h=+Xg(a,u,o.call({"":t},"",t)),p=!h;for(;h<u.length;)p=!0,f[h]=eT(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 Ra:if(x===null)return x;case N0:return a.get(x)||Xg(a,u,x)}return x}},lT=t=>typeof AggregateError<"u"&&t instanceof AggregateError?!0:t instanceof Error&&"errors"in t;class aT{constructor(){Ai(this,"filesMap",new Map);Ai(this,"pathsSet",new Set);Ai(this,"collectingPromise");Ai(this,"idMap",new Map);Ai(this,"taskFileMap",new WeakMap);Ai(this,"errorsSet",new Set)}catchError(n,r){if(lT(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 Fi=Date;class el extends Fi{constructor(n,r,o,a,u,f,h){super();let p;switch(arguments.length){case 0:p=new Fi;break;case 1:p=new Fi(n);break;default:o=typeof o>"u"?1:o,a=a||0,u=u||0,f=f||0,h=h||0,p=new Fi(n,r,o,a,u,f,h);break}return p}}el.UTC=Fi.UTC;el.now=function(){return new el().valueOf()};el.parse=function(t){return Fi.parse(t)};el.toString=function(){return Fi.toString()};function $0(t){return t==null&&(t=[]),Array.isArray(t)?t:[t]}function rf(t){return t.type==="test"||t.type==="benchmark"||t.type==="typecheck"}function D0(t){return $0(t).flatMap(n=>rf(n)?[n]:n.tasks.flatMap(r=>rf(r)?[r]:D0(r)))}function eh(t=[]){return $0(t).flatMap(n=>rf(n)?[n]:[n,...eh(n.tasks)])}function dc(t){return D0(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 cT(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 uT(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 aT,waitForConnection:L,reconnect:M});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:sT,deserialize:oT};g.rpc=ZC(b,x);let S;function M(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(M,a)})}A();function L(){return S}return g}const R0=VC("hash-params",{initialValue:{file:"",view:null}}),Mr=Pf(R0,"file"),or=Pf(R0,"view"),fT=location.port,hT=[location.hostname,fT].filter(Boolean).join(":"),dT=`${location.protocol==="https:"?"wss:":"ws:"}//${hT}/__vitest_api__`,za=Kt("idle"),We=uT(dT,{reactive:hr,handlers:{onTaskUpdate(){za.value="running"},onFinished(){za.value="idle"}}}),of=ll({}),qi=Kt("CONNECTING"),Tn=St(()=>We.state.getFiles()),Le=St(()=>Tn.value.find(t=>t.id===Mr.value)),z0=St(()=>eh(Le.value).map(t=>(t==null?void 0:t.logs)||[]).flat()||[]),Ia=t=>Tn.value.find(n=>n.id===t),pT=St(()=>qi.value==="OPEN"),Tu=St(()=>qi.value==="CONNECTING");St(()=>qi.value==="CLOSED");function Yg(t=We.state.getFiles()){return I0(t)}function I0(t){return t.forEach(n=>{delete n.result,eh(n).forEach(r=>delete r.result)}),We.rpc.rerun(t.map(n=>n.filepath))}function gT(){if(Le.value)return I0([Le.value])}Fe(()=>We.ws,t=>{qi.value="CONNECTING",t.addEventListener("open",()=>{qi.value="OPEN",We.state.filesMap.clear(),We.rpc.getFiles().then(n=>We.state.collectFiles(n)),We.rpc.getConfig().then(n=>of.value=n)}),t.addEventListener("close",()=>{setTimeout(()=>{qi.value==="CONNECTING"&&(qi.value="CLOSED")},1e3)})},{immediate:!0});const vT={"text-2xl":""},mT=ut("div",{"text-lg":"",op50:""}," Check your terminal or start a new server with `vitest --ui` ",-1),yT=oe({__name:"ConnectionOverlay",setup(t){return(n,r)=>Z(pT)?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(Tu)?"animate-pulse":"")},[ut("div",{text:"5xl",class:ge(Z(Tu)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),ut("div",vT,Jt(Z(Tu)?"Connecting...":"Disconnected"),1),mT],2)]))}});var Ki=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},F0={},Or={};const bT="\xC1",wT="\xE1",xT="\u0102",_T="\u0103",ST="\u223E",kT="\u223F",CT="\u223E\u0333",TT="\xC2",LT="\xE2",ET="\xB4",AT="\u0410",MT="\u0430",NT="\xC6",PT="\xE6",OT="\u2061",$T="\u{1D504}",DT="\u{1D51E}",RT="\xC0",zT="\xE0",IT="\u2135",FT="\u2135",qT="\u0391",HT="\u03B1",BT="\u0100",WT="\u0101",UT="\u2A3F",jT="&",GT="&",VT="\u2A55",KT="\u2A53",XT="\u2227",YT="\u2A5C",ZT="\u2A58",JT="\u2A5A",QT="\u2220",tL="\u29A4",eL="\u2220",nL="\u29A8",rL="\u29A9",iL="\u29AA",oL="\u29AB",sL="\u29AC",lL="\u29AD",aL="\u29AE",cL="\u29AF",uL="\u2221",fL="\u221F",hL="\u22BE",dL="\u299D",pL="\u2222",gL="\xC5",vL="\u237C",mL="\u0104",yL="\u0105",bL="\u{1D538}",wL="\u{1D552}",xL="\u2A6F",_L="\u2248",SL="\u2A70",kL="\u224A",CL="\u224B",TL="'",LL="\u2061",EL="\u2248",AL="\u224A",ML="\xC5",NL="\xE5",PL="\u{1D49C}",OL="\u{1D4B6}",$L="\u2254",DL="*",RL="\u2248",zL="\u224D",IL="\xC3",FL="\xE3",qL="\xC4",HL="\xE4",BL="\u2233",WL="\u2A11",UL="\u224C",jL="\u03F6",GL="\u2035",VL="\u223D",KL="\u22CD",XL="\u2216",YL="\u2AE7",ZL="\u22BD",JL="\u2305",QL="\u2306",tE="\u2305",eE="\u23B5",nE="\u23B6",rE="\u224C",iE="\u0411",oE="\u0431",sE="\u201E",lE="\u2235",aE="\u2235",cE="\u2235",uE="\u29B0",fE="\u03F6",hE="\u212C",dE="\u212C",pE="\u0392",gE="\u03B2",vE="\u2136",mE="\u226C",yE="\u{1D505}",bE="\u{1D51F}",wE="\u22C2",xE="\u25EF",_E="\u22C3",SE="\u2A00",kE="\u2A01",CE="\u2A02",TE="\u2A06",LE="\u2605",EE="\u25BD",AE="\u25B3",ME="\u2A04",NE="\u22C1",PE="\u22C0",OE="\u290D",$E="\u29EB",DE="\u25AA",RE="\u25B4",zE="\u25BE",IE="\u25C2",FE="\u25B8",qE="\u2423",HE="\u2592",BE="\u2591",WE="\u2593",UE="\u2588",jE="=\u20E5",GE="\u2261\u20E5",VE="\u2AED",KE="\u2310",XE="\u{1D539}",YE="\u{1D553}",ZE="\u22A5",JE="\u22A5",QE="\u22C8",tA="\u29C9",eA="\u2510",nA="\u2555",rA="\u2556",iA="\u2557",oA="\u250C",sA="\u2552",lA="\u2553",aA="\u2554",cA="\u2500",uA="\u2550",fA="\u252C",hA="\u2564",dA="\u2565",pA="\u2566",gA="\u2534",vA="\u2567",mA="\u2568",yA="\u2569",bA="\u229F",wA="\u229E",xA="\u22A0",_A="\u2518",SA="\u255B",kA="\u255C",CA="\u255D",TA="\u2514",LA="\u2558",EA="\u2559",AA="\u255A",MA="\u2502",NA="\u2551",PA="\u253C",OA="\u256A",$A="\u256B",DA="\u256C",RA="\u2524",zA="\u2561",IA="\u2562",FA="\u2563",qA="\u251C",HA="\u255E",BA="\u255F",WA="\u2560",UA="\u2035",jA="\u02D8",GA="\u02D8",VA="\xA6",KA="\u{1D4B7}",XA="\u212C",YA="\u204F",ZA="\u223D",JA="\u22CD",QA="\u29C5",tM="\\",eM="\u27C8",nM="\u2022",rM="\u2022",iM="\u224E",oM="\u2AAE",sM="\u224F",lM="\u224E",aM="\u224F",cM="\u0106",uM="\u0107",fM="\u2A44",hM="\u2A49",dM="\u2A4B",pM="\u2229",gM="\u22D2",vM="\u2A47",mM="\u2A40",yM="\u2145",bM="\u2229\uFE00",wM="\u2041",xM="\u02C7",_M="\u212D",SM="\u2A4D",kM="\u010C",CM="\u010D",TM="\xC7",LM="\xE7",EM="\u0108",AM="\u0109",MM="\u2230",NM="\u2A4C",PM="\u2A50",OM="\u010A",$M="\u010B",DM="\xB8",RM="\xB8",zM="\u29B2",IM="\xA2",FM="\xB7",qM="\xB7",HM="\u{1D520}",BM="\u212D",WM="\u0427",UM="\u0447",jM="\u2713",GM="\u2713",VM="\u03A7",KM="\u03C7",XM="\u02C6",YM="\u2257",ZM="\u21BA",JM="\u21BB",QM="\u229B",tN="\u229A",eN="\u229D",nN="\u2299",rN="\xAE",iN="\u24C8",oN="\u2296",sN="\u2295",lN="\u2297",aN="\u25CB",cN="\u29C3",uN="\u2257",fN="\u2A10",hN="\u2AEF",dN="\u29C2",pN="\u2232",gN="\u201D",vN="\u2019",mN="\u2663",yN="\u2663",bN=":",wN="\u2237",xN="\u2A74",_N="\u2254",SN="\u2254",kN=",",CN="@",TN="\u2201",LN="\u2218",EN="\u2201",AN="\u2102",MN="\u2245",NN="\u2A6D",PN="\u2261",ON="\u222E",$N="\u222F",DN="\u222E",RN="\u{1D554}",zN="\u2102",IN="\u2210",FN="\u2210",qN="\xA9",HN="\xA9",BN="\u2117",WN="\u2233",UN="\u21B5",jN="\u2717",GN="\u2A2F",VN="\u{1D49E}",KN="\u{1D4B8}",XN="\u2ACF",YN="\u2AD1",ZN="\u2AD0",JN="\u2AD2",QN="\u22EF",tP="\u2938",eP="\u2935",nP="\u22DE",rP="\u22DF",iP="\u21B6",oP="\u293D",sP="\u2A48",lP="\u2A46",aP="\u224D",cP="\u222A",uP="\u22D3",fP="\u2A4A",hP="\u228D",dP="\u2A45",pP="\u222A\uFE00",gP="\u21B7",vP="\u293C",mP="\u22DE",yP="\u22DF",bP="\u22CE",wP="\u22CF",xP="\xA4",_P="\u21B6",SP="\u21B7",kP="\u22CE",CP="\u22CF",TP="\u2232",LP="\u2231",EP="\u232D",AP="\u2020",MP="\u2021",NP="\u2138",PP="\u2193",OP="\u21A1",$P="\u21D3",DP="\u2010",RP="\u2AE4",zP="\u22A3",IP="\u290F",FP="\u02DD",qP="\u010E",HP="\u010F",BP="\u0414",WP="\u0434",UP="\u2021",jP="\u21CA",GP="\u2145",VP="\u2146",KP="\u2911",XP="\u2A77",YP="\xB0",ZP="\u2207",JP="\u0394",QP="\u03B4",tO="\u29B1",eO="\u297F",nO="\u{1D507}",rO="\u{1D521}",iO="\u2965",oO="\u21C3",sO="\u21C2",lO="\xB4",aO="\u02D9",cO="\u02DD",uO="`",fO="\u02DC",hO="\u22C4",dO="\u22C4",pO="\u22C4",gO="\u2666",vO="\u2666",mO="\xA8",yO="\u2146",bO="\u03DD",wO="\u22F2",xO="\xF7",_O="\xF7",SO="\u22C7",kO="\u22C7",CO="\u0402",TO="\u0452",LO="\u231E",EO="\u230D",AO="$",MO="\u{1D53B}",NO="\u{1D555}",PO="\xA8",OO="\u02D9",$O="\u20DC",DO="\u2250",RO="\u2251",zO="\u2250",IO="\u2238",FO="\u2214",qO="\u22A1",HO="\u2306",BO="\u222F",WO="\xA8",UO="\u21D3",jO="\u21D0",GO="\u21D4",VO="\u2AE4",KO="\u27F8",XO="\u27FA",YO="\u27F9",ZO="\u21D2",JO="\u22A8",QO="\u21D1",t$="\u21D5",e$="\u2225",n$="\u2913",r$="\u2193",i$="\u2193",o$="\u21D3",s$="\u21F5",l$="\u0311",a$="\u21CA",c$="\u21C3",u$="\u21C2",f$="\u2950",h$="\u295E",d$="\u2956",p$="\u21BD",g$="\u295F",v$="\u2957",m$="\u21C1",y$="\u21A7",b$="\u22A4",w$="\u2910",x$="\u231F",_$="\u230C",S$="\u{1D49F}",k$="\u{1D4B9}",C$="\u0405",T$="\u0455",L$="\u29F6",E$="\u0110",A$="\u0111",M$="\u22F1",N$="\u25BF",P$="\u25BE",O$="\u21F5",$$="\u296F",D$="\u29A6",R$="\u040F",z$="\u045F",I$="\u27FF",F$="\xC9",q$="\xE9",H$="\u2A6E",B$="\u011A",W$="\u011B",U$="\xCA",j$="\xEA",G$="\u2256",V$="\u2255",K$="\u042D",X$="\u044D",Y$="\u2A77",Z$="\u0116",J$="\u0117",Q$="\u2251",tD="\u2147",eD="\u2252",nD="\u{1D508}",rD="\u{1D522}",iD="\u2A9A",oD="\xC8",sD="\xE8",lD="\u2A96",aD="\u2A98",cD="\u2A99",uD="\u2208",fD="\u23E7",hD="\u2113",dD="\u2A95",pD="\u2A97",gD="\u0112",vD="\u0113",mD="\u2205",yD="\u2205",bD="\u25FB",wD="\u2205",xD="\u25AB",_D="\u2004",SD="\u2005",kD="\u2003",CD="\u014A",TD="\u014B",LD="\u2002",ED="\u0118",AD="\u0119",MD="\u{1D53C}",ND="\u{1D556}",PD="\u22D5",OD="\u29E3",$D="\u2A71",DD="\u03B5",RD="\u0395",zD="\u03B5",ID="\u03F5",FD="\u2256",qD="\u2255",HD="\u2242",BD="\u2A96",WD="\u2A95",UD="\u2A75",jD="=",GD="\u2242",VD="\u225F",KD="\u21CC",XD="\u2261",YD="\u2A78",ZD="\u29E5",JD="\u2971",QD="\u2253",tR="\u212F",eR="\u2130",nR="\u2250",rR="\u2A73",iR="\u2242",oR="\u0397",sR="\u03B7",lR="\xD0",aR="\xF0",cR="\xCB",uR="\xEB",fR="\u20AC",hR="!",dR="\u2203",pR="\u2203",gR="\u2130",vR="\u2147",mR="\u2147",yR="\u2252",bR="\u0424",wR="\u0444",xR="\u2640",_R="\uFB03",SR="\uFB00",kR="\uFB04",CR="\u{1D509}",TR="\u{1D523}",LR="\uFB01",ER="\u25FC",AR="\u25AA",MR="fj",NR="\u266D",PR="\uFB02",OR="\u25B1",$R="\u0192",DR="\u{1D53D}",RR="\u{1D557}",zR="\u2200",IR="\u2200",FR="\u22D4",qR="\u2AD9",HR="\u2131",BR="\u2A0D",WR="\xBD",UR="\u2153",jR="\xBC",GR="\u2155",VR="\u2159",KR="\u215B",XR="\u2154",YR="\u2156",ZR="\xBE",JR="\u2157",QR="\u215C",tz="\u2158",ez="\u215A",nz="\u215D",rz="\u215E",iz="\u2044",oz="\u2322",sz="\u{1D4BB}",lz="\u2131",az="\u01F5",cz="\u0393",uz="\u03B3",fz="\u03DC",hz="\u03DD",dz="\u2A86",pz="\u011E",gz="\u011F",vz="\u0122",mz="\u011C",yz="\u011D",bz="\u0413",wz="\u0433",xz="\u0120",_z="\u0121",Sz="\u2265",kz="\u2267",Cz="\u2A8C",Tz="\u22DB",Lz="\u2265",Ez="\u2267",Az="\u2A7E",Mz="\u2AA9",Nz="\u2A7E",Pz="\u2A80",Oz="\u2A82",$z="\u2A84",Dz="\u22DB\uFE00",Rz="\u2A94",zz="\u{1D50A}",Iz="\u{1D524}",Fz="\u226B",qz="\u22D9",Hz="\u22D9",Bz="\u2137",Wz="\u0403",Uz="\u0453",jz="\u2AA5",Gz="\u2277",Vz="\u2A92",Kz="\u2AA4",Xz="\u2A8A",Yz="\u2A8A",Zz="\u2A88",Jz="\u2269",Qz="\u2A88",t2="\u2269",e2="\u22E7",n2="\u{1D53E}",r2="\u{1D558}",i2="`",o2="\u2265",s2="\u22DB",l2="\u2267",a2="\u2AA2",c2="\u2277",u2="\u2A7E",f2="\u2273",h2="\u{1D4A2}",d2="\u210A",p2="\u2273",g2="\u2A8E",v2="\u2A90",m2="\u2AA7",y2="\u2A7A",b2=">",w2=">",x2="\u226B",_2="\u22D7",S2="\u2995",k2="\u2A7C",C2="\u2A86",T2="\u2978",L2="\u22D7",E2="\u22DB",A2="\u2A8C",M2="\u2277",N2="\u2273",P2="\u2269\uFE00",O2="\u2269\uFE00",$2="\u02C7",D2="\u200A",R2="\xBD",z2="\u210B",I2="\u042A",F2="\u044A",q2="\u2948",H2="\u2194",B2="\u21D4",W2="\u21AD",U2="^",j2="\u210F",G2="\u0124",V2="\u0125",K2="\u2665",X2="\u2665",Y2="\u2026",Z2="\u22B9",J2="\u{1D525}",Q2="\u210C",tI="\u210B",eI="\u2925",nI="\u2926",rI="\u21FF",iI="\u223B",oI="\u21A9",sI="\u21AA",lI="\u{1D559}",aI="\u210D",cI="\u2015",uI="\u2500",fI="\u{1D4BD}",hI="\u210B",dI="\u210F",pI="\u0126",gI="\u0127",vI="\u224E",mI="\u224F",yI="\u2043",bI="\u2010",wI="\xCD",xI="\xED",_I="\u2063",SI="\xCE",kI="\xEE",CI="\u0418",TI="\u0438",LI="\u0130",EI="\u0415",AI="\u0435",MI="\xA1",NI="\u21D4",PI="\u{1D526}",OI="\u2111",$I="\xCC",DI="\xEC",RI="\u2148",zI="\u2A0C",II="\u222D",FI="\u29DC",qI="\u2129",HI="\u0132",BI="\u0133",WI="\u012A",UI="\u012B",jI="\u2111",GI="\u2148",VI="\u2110",KI="\u2111",XI="\u0131",YI="\u2111",ZI="\u22B7",JI="\u01B5",QI="\u21D2",tF="\u2105",eF="\u221E",nF="\u29DD",rF="\u0131",iF="\u22BA",oF="\u222B",sF="\u222C",lF="\u2124",aF="\u222B",cF="\u22BA",uF="\u22C2",fF="\u2A17",hF="\u2A3C",dF="\u2063",pF="\u2062",gF="\u0401",vF="\u0451",mF="\u012E",yF="\u012F",bF="\u{1D540}",wF="\u{1D55A}",xF="\u0399",_F="\u03B9",SF="\u2A3C",kF="\xBF",CF="\u{1D4BE}",TF="\u2110",LF="\u2208",EF="\u22F5",AF="\u22F9",MF="\u22F4",NF="\u22F3",PF="\u2208",OF="\u2062",$F="\u0128",DF="\u0129",RF="\u0406",zF="\u0456",IF="\xCF",FF="\xEF",qF="\u0134",HF="\u0135",BF="\u0419",WF="\u0439",UF="\u{1D50D}",jF="\u{1D527}",GF="\u0237",VF="\u{1D541}",KF="\u{1D55B}",XF="\u{1D4A5}",YF="\u{1D4BF}",ZF="\u0408",JF="\u0458",QF="\u0404",tq="\u0454",eq="\u039A",nq="\u03BA",rq="\u03F0",iq="\u0136",oq="\u0137",sq="\u041A",lq="\u043A",aq="\u{1D50E}",cq="\u{1D528}",uq="\u0138",fq="\u0425",hq="\u0445",dq="\u040C",pq="\u045C",gq="\u{1D542}",vq="\u{1D55C}",mq="\u{1D4A6}",yq="\u{1D4C0}",bq="\u21DA",wq="\u0139",xq="\u013A",_q="\u29B4",Sq="\u2112",kq="\u039B",Cq="\u03BB",Tq="\u27E8",Lq="\u27EA",Eq="\u2991",Aq="\u27E8",Mq="\u2A85",Nq="\u2112",Pq="\xAB",Oq="\u21E4",$q="\u291F",Dq="\u2190",Rq="\u219E",zq="\u21D0",Iq="\u291D",Fq="\u21A9",qq="\u21AB",Hq="\u2939",Bq="\u2973",Wq="\u21A2",Uq="\u2919",jq="\u291B",Gq="\u2AAB",Vq="\u2AAD",Kq="\u2AAD\uFE00",Xq="\u290C",Yq="\u290E",Zq="\u2772",Jq="{",Qq="[",tH="\u298B",eH="\u298F",nH="\u298D",rH="\u013D",iH="\u013E",oH="\u013B",sH="\u013C",lH="\u2308",aH="{",cH="\u041B",uH="\u043B",fH="\u2936",hH="\u201C",dH="\u201E",pH="\u2967",gH="\u294B",vH="\u21B2",mH="\u2264",yH="\u2266",bH="\u27E8",wH="\u21E4",xH="\u2190",_H="\u2190",SH="\u21D0",kH="\u21C6",CH="\u21A2",TH="\u2308",LH="\u27E6",EH="\u2961",AH="\u2959",MH="\u21C3",NH="\u230A",PH="\u21BD",OH="\u21BC",$H="\u21C7",DH="\u2194",RH="\u2194",zH="\u21D4",IH="\u21C6",FH="\u21CB",qH="\u21AD",HH="\u294E",BH="\u21A4",WH="\u22A3",UH="\u295A",jH="\u22CB",GH="\u29CF",VH="\u22B2",KH="\u22B4",XH="\u2951",YH="\u2960",ZH="\u2958",JH="\u21BF",QH="\u2952",tB="\u21BC",eB="\u2A8B",nB="\u22DA",rB="\u2264",iB="\u2266",oB="\u2A7D",sB="\u2AA8",lB="\u2A7D",aB="\u2A7F",cB="\u2A81",uB="\u2A83",fB="\u22DA\uFE00",hB="\u2A93",dB="\u2A85",pB="\u22D6",gB="\u22DA",vB="\u2A8B",mB="\u22DA",yB="\u2266",bB="\u2276",wB="\u2276",xB="\u2AA1",_B="\u2272",SB="\u2A7D",kB="\u2272",CB="\u297C",TB="\u230A",LB="\u{1D50F}",EB="\u{1D529}",AB="\u2276",MB="\u2A91",NB="\u2962",PB="\u21BD",OB="\u21BC",$B="\u296A",DB="\u2584",RB="\u0409",zB="\u0459",IB="\u21C7",FB="\u226A",qB="\u22D8",HB="\u231E",BB="\u21DA",WB="\u296B",UB="\u25FA",jB="\u013F",GB="\u0140",VB="\u23B0",KB="\u23B0",XB="\u2A89",YB="\u2A89",ZB="\u2A87",JB="\u2268",QB="\u2A87",t3="\u2268",e3="\u22E6",n3="\u27EC",r3="\u21FD",i3="\u27E6",o3="\u27F5",s3="\u27F5",l3="\u27F8",a3="\u27F7",c3="\u27F7",u3="\u27FA",f3="\u27FC",h3="\u27F6",d3="\u27F6",p3="\u27F9",g3="\u21AB",v3="\u21AC",m3="\u2985",y3="\u{1D543}",b3="\u{1D55D}",w3="\u2A2D",x3="\u2A34",_3="\u2217",S3="_",k3="\u2199",C3="\u2198",T3="\u25CA",L3="\u25CA",E3="\u29EB",A3="(",M3="\u2993",N3="\u21C6",P3="\u231F",O3="\u21CB",$3="\u296D",D3="\u200E",R3="\u22BF",z3="\u2039",I3="\u{1D4C1}",F3="\u2112",q3="\u21B0",H3="\u21B0",B3="\u2272",W3="\u2A8D",U3="\u2A8F",j3="[",G3="\u2018",V3="\u201A",K3="\u0141",X3="\u0142",Y3="\u2AA6",Z3="\u2A79",J3="<",Q3="<",t5="\u226A",e5="\u22D6",n5="\u22CB",r5="\u22C9",i5="\u2976",o5="\u2A7B",s5="\u25C3",l5="\u22B4",a5="\u25C2",c5="\u2996",u5="\u294A",f5="\u2966",h5="\u2268\uFE00",d5="\u2268\uFE00",p5="\xAF",g5="\u2642",v5="\u2720",m5="\u2720",y5="\u21A6",b5="\u21A6",w5="\u21A7",x5="\u21A4",_5="\u21A5",S5="\u25AE",k5="\u2A29",C5="\u041C",T5="\u043C",L5="\u2014",E5="\u223A",A5="\u2221",M5="\u205F",N5="\u2133",P5="\u{1D510}",O5="\u{1D52A}",$5="\u2127",D5="\xB5",R5="*",z5="\u2AF0",I5="\u2223",F5="\xB7",q5="\u229F",H5="\u2212",B5="\u2238",W5="\u2A2A",U5="\u2213",j5="\u2ADB",G5="\u2026",V5="\u2213",K5="\u22A7",X5="\u{1D544}",Y5="\u{1D55E}",Z5="\u2213",J5="\u{1D4C2}",Q5="\u2133",tW="\u223E",eW="\u039C",nW="\u03BC",rW="\u22B8",iW="\u22B8",oW="\u2207",sW="\u0143",lW="\u0144",aW="\u2220\u20D2",cW="\u2249",uW="\u2A70\u0338",fW="\u224B\u0338",hW="\u0149",dW="\u2249",pW="\u266E",gW="\u2115",vW="\u266E",mW="\xA0",yW="\u224E\u0338",bW="\u224F\u0338",wW="\u2A43",xW="\u0147",_W="\u0148",SW="\u0145",kW="\u0146",CW="\u2247",TW="\u2A6D\u0338",LW="\u2A42",EW="\u041D",AW="\u043D",MW="\u2013",NW="\u2924",PW="\u2197",OW="\u21D7",$W="\u2197",DW="\u2260",RW="\u2250\u0338",zW="\u200B",IW="\u200B",FW="\u200B",qW="\u200B",HW="\u2262",BW="\u2928",WW="\u2242\u0338",UW="\u226B",jW="\u226A",GW=`
6
+ `,VW="\u2204",KW="\u2204",XW="\u{1D511}",YW="\u{1D52B}",ZW="\u2267\u0338",JW="\u2271",QW="\u2271",tU="\u2267\u0338",eU="\u2A7E\u0338",nU="\u2A7E\u0338",rU="\u22D9\u0338",iU="\u2275",oU="\u226B\u20D2",sU="\u226F",lU="\u226F",aU="\u226B\u0338",cU="\u21AE",uU="\u21CE",fU="\u2AF2",hU="\u220B",dU="\u22FC",pU="\u22FA",gU="\u220B",vU="\u040A",mU="\u045A",yU="\u219A",bU="\u21CD",wU="\u2025",xU="\u2266\u0338",_U="\u2270",SU="\u219A",kU="\u21CD",CU="\u21AE",TU="\u21CE",LU="\u2270",EU="\u2266\u0338",AU="\u2A7D\u0338",MU="\u2A7D\u0338",NU="\u226E",PU="\u22D8\u0338",OU="\u2274",$U="\u226A\u20D2",DU="\u226E",RU="\u22EA",zU="\u22EC",IU="\u226A\u0338",FU="\u2224",qU="\u2060",HU="\xA0",BU="\u{1D55F}",WU="\u2115",UU="\u2AEC",jU="\xAC",GU="\u2262",VU="\u226D",KU="\u2226",XU="\u2209",YU="\u2260",ZU="\u2242\u0338",JU="\u2204",QU="\u226F",t8="\u2271",e8="\u2267\u0338",n8="\u226B\u0338",r8="\u2279",i8="\u2A7E\u0338",o8="\u2275",s8="\u224E\u0338",l8="\u224F\u0338",a8="\u2209",c8="\u22F5\u0338",u8="\u22F9\u0338",f8="\u2209",h8="\u22F7",d8="\u22F6",p8="\u29CF\u0338",g8="\u22EA",v8="\u22EC",m8="\u226E",y8="\u2270",b8="\u2278",w8="\u226A\u0338",x8="\u2A7D\u0338",_8="\u2274",S8="\u2AA2\u0338",k8="\u2AA1\u0338",C8="\u220C",T8="\u220C",L8="\u22FE",E8="\u22FD",A8="\u2280",M8="\u2AAF\u0338",N8="\u22E0",P8="\u220C",O8="\u29D0\u0338",$8="\u22EB",D8="\u22ED",R8="\u228F\u0338",z8="\u22E2",I8="\u2290\u0338",F8="\u22E3",q8="\u2282\u20D2",H8="\u2288",B8="\u2281",W8="\u2AB0\u0338",U8="\u22E1",j8="\u227F\u0338",G8="\u2283\u20D2",V8="\u2289",K8="\u2241",X8="\u2244",Y8="\u2247",Z8="\u2249",J8="\u2224",Q8="\u2226",t4="\u2226",e4="\u2AFD\u20E5",n4="\u2202\u0338",r4="\u2A14",i4="\u2280",o4="\u22E0",s4="\u2280",l4="\u2AAF\u0338",a4="\u2AAF\u0338",c4="\u2933\u0338",u4="\u219B",f4="\u21CF",h4="\u219D\u0338",d4="\u219B",p4="\u21CF",g4="\u22EB",v4="\u22ED",m4="\u2281",y4="\u22E1",b4="\u2AB0\u0338",w4="\u{1D4A9}",x4="\u{1D4C3}",_4="\u2224",S4="\u2226",k4="\u2241",C4="\u2244",T4="\u2244",L4="\u2224",E4="\u2226",A4="\u22E2",M4="\u22E3",N4="\u2284",P4="\u2AC5\u0338",O4="\u2288",$4="\u2282\u20D2",D4="\u2288",R4="\u2AC5\u0338",z4="\u2281",I4="\u2AB0\u0338",F4="\u2285",q4="\u2AC6\u0338",H4="\u2289",B4="\u2283\u20D2",W4="\u2289",U4="\u2AC6\u0338",j4="\u2279",G4="\xD1",V4="\xF1",K4="\u2278",X4="\u22EA",Y4="\u22EC",Z4="\u22EB",J4="\u22ED",Q4="\u039D",t6="\u03BD",e6="#",n6="\u2116",r6="\u2007",i6="\u224D\u20D2",o6="\u22AC",s6="\u22AD",l6="\u22AE",a6="\u22AF",c6="\u2265\u20D2",u6=">\u20D2",f6="\u2904",h6="\u29DE",d6="\u2902",p6="\u2264\u20D2",g6="<\u20D2",v6="\u22B4\u20D2",m6="\u2903",y6="\u22B5\u20D2",b6="\u223C\u20D2",w6="\u2923",x6="\u2196",_6="\u21D6",S6="\u2196",k6="\u2927",C6="\xD3",T6="\xF3",L6="\u229B",E6="\xD4",A6="\xF4",M6="\u229A",N6="\u041E",P6="\u043E",O6="\u229D",$6="\u0150",D6="\u0151",R6="\u2A38",z6="\u2299",I6="\u29BC",F6="\u0152",q6="\u0153",H6="\u29BF",B6="\u{1D512}",W6="\u{1D52C}",U6="\u02DB",j6="\xD2",G6="\xF2",V6="\u29C1",K6="\u29B5",X6="\u03A9",Y6="\u222E",Z6="\u21BA",J6="\u29BE",Q6="\u29BB",tj="\u203E",ej="\u29C0",nj="\u014C",rj="\u014D",ij="\u03A9",oj="\u03C9",sj="\u039F",lj="\u03BF",aj="\u29B6",cj="\u2296",uj="\u{1D546}",fj="\u{1D560}",hj="\u29B7",dj="\u201C",pj="\u2018",gj="\u29B9",vj="\u2295",mj="\u21BB",yj="\u2A54",bj="\u2228",wj="\u2A5D",xj="\u2134",_j="\u2134",Sj="\xAA",kj="\xBA",Cj="\u22B6",Tj="\u2A56",Lj="\u2A57",Ej="\u2A5B",Aj="\u24C8",Mj="\u{1D4AA}",Nj="\u2134",Pj="\xD8",Oj="\xF8",$j="\u2298",Dj="\xD5",Rj="\xF5",zj="\u2A36",Ij="\u2A37",Fj="\u2297",qj="\xD6",Hj="\xF6",Bj="\u233D",Wj="\u203E",Uj="\u23DE",jj="\u23B4",Gj="\u23DC",Vj="\xB6",Kj="\u2225",Xj="\u2225",Yj="\u2AF3",Zj="\u2AFD",Jj="\u2202",Qj="\u2202",t9="\u041F",e9="\u043F",n9="%",r9=".",i9="\u2030",o9="\u22A5",s9="\u2031",l9="\u{1D513}",a9="\u{1D52D}",c9="\u03A6",u9="\u03C6",f9="\u03D5",h9="\u2133",d9="\u260E",p9="\u03A0",g9="\u03C0",v9="\u22D4",m9="\u03D6",y9="\u210F",b9="\u210E",w9="\u210F",x9="\u2A23",_9="\u229E",S9="\u2A22",k9="+",C9="\u2214",T9="\u2A25",L9="\u2A72",E9="\xB1",A9="\xB1",M9="\u2A26",N9="\u2A27",P9="\xB1",O9="\u210C",$9="\u2A15",D9="\u{1D561}",R9="\u2119",z9="\xA3",I9="\u2AB7",F9="\u2ABB",q9="\u227A",H9="\u227C",B9="\u2AB7",W9="\u227A",U9="\u227C",j9="\u227A",G9="\u2AAF",V9="\u227C",K9="\u227E",X9="\u2AAF",Y9="\u2AB9",Z9="\u2AB5",J9="\u22E8",Q9="\u2AAF",tG="\u2AB3",eG="\u227E",nG="\u2032",rG="\u2033",iG="\u2119",oG="\u2AB9",sG="\u2AB5",lG="\u22E8",aG="\u220F",cG="\u220F",uG="\u232E",fG="\u2312",hG="\u2313",dG="\u221D",pG="\u221D",gG="\u2237",vG="\u221D",mG="\u227E",yG="\u22B0",bG="\u{1D4AB}",wG="\u{1D4C5}",xG="\u03A8",_G="\u03C8",SG="\u2008",kG="\u{1D514}",CG="\u{1D52E}",TG="\u2A0C",LG="\u{1D562}",EG="\u211A",AG="\u2057",MG="\u{1D4AC}",NG="\u{1D4C6}",PG="\u210D",OG="\u2A16",$G="?",DG="\u225F",RG='"',zG='"',IG="\u21DB",FG="\u223D\u0331",qG="\u0154",HG="\u0155",BG="\u221A",WG="\u29B3",UG="\u27E9",jG="\u27EB",GG="\u2992",VG="\u29A5",KG="\u27E9",XG="\xBB",YG="\u2975",ZG="\u21E5",JG="\u2920",QG="\u2933",tV="\u2192",eV="\u21A0",nV="\u21D2",rV="\u291E",iV="\u21AA",oV="\u21AC",sV="\u2945",lV="\u2974",aV="\u2916",cV="\u21A3",uV="\u219D",fV="\u291A",hV="\u291C",dV="\u2236",pV="\u211A",gV="\u290D",vV="\u290F",mV="\u2910",yV="\u2773",bV="}",wV="]",xV="\u298C",_V="\u298E",SV="\u2990",kV="\u0158",CV="\u0159",TV="\u0156",LV="\u0157",EV="\u2309",AV="}",MV="\u0420",NV="\u0440",PV="\u2937",OV="\u2969",$V="\u201D",DV="\u201D",RV="\u21B3",zV="\u211C",IV="\u211B",FV="\u211C",qV="\u211D",HV="\u211C",BV="\u25AD",WV="\xAE",UV="\xAE",jV="\u220B",GV="\u21CB",VV="\u296F",KV="\u297D",XV="\u230B",YV="\u{1D52F}",ZV="\u211C",JV="\u2964",QV="\u21C1",tK="\u21C0",eK="\u296C",nK="\u03A1",rK="\u03C1",iK="\u03F1",oK="\u27E9",sK="\u21E5",lK="\u2192",aK="\u2192",cK="\u21D2",uK="\u21C4",fK="\u21A3",hK="\u2309",dK="\u27E7",pK="\u295D",gK="\u2955",vK="\u21C2",mK="\u230B",yK="\u21C1",bK="\u21C0",wK="\u21C4",xK="\u21CC",_K="\u21C9",SK="\u219D",kK="\u21A6",CK="\u22A2",TK="\u295B",LK="\u22CC",EK="\u29D0",AK="\u22B3",MK="\u22B5",NK="\u294F",PK="\u295C",OK="\u2954",$K="\u21BE",DK="\u2953",RK="\u21C0",zK="\u02DA",IK="\u2253",FK="\u21C4",qK="\u21CC",HK="\u200F",BK="\u23B1",WK="\u23B1",UK="\u2AEE",jK="\u27ED",GK="\u21FE",VK="\u27E7",KK="\u2986",XK="\u{1D563}",YK="\u211D",ZK="\u2A2E",JK="\u2A35",QK="\u2970",t7=")",e7="\u2994",n7="\u2A12",r7="\u21C9",i7="\u21DB",o7="\u203A",s7="\u{1D4C7}",l7="\u211B",a7="\u21B1",c7="\u21B1",u7="]",f7="\u2019",h7="\u2019",d7="\u22CC",p7="\u22CA",g7="\u25B9",v7="\u22B5",m7="\u25B8",y7="\u29CE",b7="\u29F4",w7="\u2968",x7="\u211E",_7="\u015A",S7="\u015B",k7="\u201A",C7="\u2AB8",T7="\u0160",L7="\u0161",E7="\u2ABC",A7="\u227B",M7="\u227D",N7="\u2AB0",P7="\u2AB4",O7="\u015E",$7="\u015F",D7="\u015C",R7="\u015D",z7="\u2ABA",I7="\u2AB6",F7="\u22E9",q7="\u2A13",H7="\u227F",B7="\u0421",W7="\u0441",U7="\u22A1",j7="\u22C5",G7="\u2A66",V7="\u2925",K7="\u2198",X7="\u21D8",Y7="\u2198",Z7="\xA7",J7=";",Q7="\u2929",tX="\u2216",eX="\u2216",nX="\u2736",rX="\u{1D516}",iX="\u{1D530}",oX="\u2322",sX="\u266F",lX="\u0429",aX="\u0449",cX="\u0428",uX="\u0448",fX="\u2193",hX="\u2190",dX="\u2223",pX="\u2225",gX="\u2192",vX="\u2191",mX="\xAD",yX="\u03A3",bX="\u03C3",wX="\u03C2",xX="\u03C2",_X="\u223C",SX="\u2A6A",kX="\u2243",CX="\u2243",TX="\u2A9E",LX="\u2AA0",EX="\u2A9D",AX="\u2A9F",MX="\u2246",NX="\u2A24",PX="\u2972",OX="\u2190",$X="\u2218",DX="\u2216",RX="\u2A33",zX="\u29E4",IX="\u2223",FX="\u2323",qX="\u2AAA",HX="\u2AAC",BX="\u2AAC\uFE00",WX="\u042C",UX="\u044C",jX="\u233F",GX="\u29C4",VX="/",KX="\u{1D54A}",XX="\u{1D564}",YX="\u2660",ZX="\u2660",JX="\u2225",QX="\u2293",tY="\u2293\uFE00",eY="\u2294",nY="\u2294\uFE00",rY="\u221A",iY="\u228F",oY="\u2291",sY="\u228F",lY="\u2291",aY="\u2290",cY="\u2292",uY="\u2290",fY="\u2292",hY="\u25A1",dY="\u25A1",pY="\u2293",gY="\u228F",vY="\u2291",mY="\u2290",yY="\u2292",bY="\u2294",wY="\u25AA",xY="\u25A1",_Y="\u25AA",SY="\u2192",kY="\u{1D4AE}",CY="\u{1D4C8}",TY="\u2216",LY="\u2323",EY="\u22C6",AY="\u22C6",MY="\u2606",NY="\u2605",PY="\u03F5",OY="\u03D5",$Y="\xAF",DY="\u2282",RY="\u22D0",zY="\u2ABD",IY="\u2AC5",FY="\u2286",qY="\u2AC3",HY="\u2AC1",BY="\u2ACB",WY="\u228A",UY="\u2ABF",jY="\u2979",GY="\u2282",VY="\u22D0",KY="\u2286",XY="\u2AC5",YY="\u2286",ZY="\u228A",JY="\u2ACB",QY="\u2AC7",tZ="\u2AD5",eZ="\u2AD3",nZ="\u2AB8",rZ="\u227B",iZ="\u227D",oZ="\u227B",sZ="\u2AB0",lZ="\u227D",aZ="\u227F",cZ="\u2AB0",uZ="\u2ABA",fZ="\u2AB6",hZ="\u22E9",dZ="\u227F",pZ="\u220B",gZ="\u2211",vZ="\u2211",mZ="\u266A",yZ="\xB9",bZ="\xB2",wZ="\xB3",xZ="\u2283",_Z="\u22D1",SZ="\u2ABE",kZ="\u2AD8",CZ="\u2AC6",TZ="\u2287",LZ="\u2AC4",EZ="\u2283",AZ="\u2287",MZ="\u27C9",NZ="\u2AD7",PZ="\u297B",OZ="\u2AC2",$Z="\u2ACC",DZ="\u228B",RZ="\u2AC0",zZ="\u2283",IZ="\u22D1",FZ="\u2287",qZ="\u2AC6",HZ="\u228B",BZ="\u2ACC",WZ="\u2AC8",UZ="\u2AD4",jZ="\u2AD6",GZ="\u2926",VZ="\u2199",KZ="\u21D9",XZ="\u2199",YZ="\u292A",ZZ="\xDF",JZ=" ",QZ="\u2316",tJ="\u03A4",eJ="\u03C4",nJ="\u23B4",rJ="\u0164",iJ="\u0165",oJ="\u0162",sJ="\u0163",lJ="\u0422",aJ="\u0442",cJ="\u20DB",uJ="\u2315",fJ="\u{1D517}",hJ="\u{1D531}",dJ="\u2234",pJ="\u2234",gJ="\u2234",vJ="\u0398",mJ="\u03B8",yJ="\u03D1",bJ="\u03D1",wJ="\u2248",xJ="\u223C",_J="\u205F\u200A",SJ="\u2009",kJ="\u2009",CJ="\u2248",TJ="\u223C",LJ="\xDE",EJ="\xFE",AJ="\u02DC",MJ="\u223C",NJ="\u2243",PJ="\u2245",OJ="\u2248",$J="\u2A31",DJ="\u22A0",RJ="\xD7",zJ="\u2A30",IJ="\u222D",FJ="\u2928",qJ="\u2336",HJ="\u2AF1",BJ="\u22A4",WJ="\u{1D54B}",UJ="\u{1D565}",jJ="\u2ADA",GJ="\u2929",VJ="\u2034",KJ="\u2122",XJ="\u2122",YJ="\u25B5",ZJ="\u25BF",JJ="\u25C3",QJ="\u22B4",tQ="\u225C",eQ="\u25B9",nQ="\u22B5",rQ="\u25EC",iQ="\u225C",oQ="\u2A3A",sQ="\u20DB",lQ="\u2A39",aQ="\u29CD",cQ="\u2A3B",uQ="\u23E2",fQ="\u{1D4AF}",hQ="\u{1D4C9}",dQ="\u0426",pQ="\u0446",gQ="\u040B",vQ="\u045B",mQ="\u0166",yQ="\u0167",bQ="\u226C",wQ="\u219E",xQ="\u21A0",_Q="\xDA",SQ="\xFA",kQ="\u2191",CQ="\u219F",TQ="\u21D1",LQ="\u2949",EQ="\u040E",AQ="\u045E",MQ="\u016C",NQ="\u016D",PQ="\xDB",OQ="\xFB",$Q="\u0423",DQ="\u0443",RQ="\u21C5",zQ="\u0170",IQ="\u0171",FQ="\u296E",qQ="\u297E",HQ="\u{1D518}",BQ="\u{1D532}",WQ="\xD9",UQ="\xF9",jQ="\u2963",GQ="\u21BF",VQ="\u21BE",KQ="\u2580",XQ="\u231C",YQ="\u231C",ZQ="\u230F",JQ="\u25F8",QQ="\u016A",ttt="\u016B",ett="\xA8",ntt="_",rtt="\u23DF",itt="\u23B5",ott="\u23DD",stt="\u22C3",ltt="\u228E",att="\u0172",ctt="\u0173",utt="\u{1D54C}",ftt="\u{1D566}",htt="\u2912",dtt="\u2191",ptt="\u2191",gtt="\u21D1",vtt="\u21C5",mtt="\u2195",ytt="\u2195",btt="\u21D5",wtt="\u296E",xtt="\u21BF",_tt="\u21BE",Stt="\u228E",ktt="\u2196",Ctt="\u2197",Ttt="\u03C5",Ltt="\u03D2",Ett="\u03D2",Att="\u03A5",Mtt="\u03C5",Ntt="\u21A5",Ptt="\u22A5",Ott="\u21C8",$tt="\u231D",Dtt="\u231D",Rtt="\u230E",ztt="\u016E",Itt="\u016F",Ftt="\u25F9",qtt="\u{1D4B0}",Htt="\u{1D4CA}",Btt="\u22F0",Wtt="\u0168",Utt="\u0169",jtt="\u25B5",Gtt="\u25B4",Vtt="\u21C8",Ktt="\xDC",Xtt="\xFC",Ytt="\u29A7",Ztt="\u299C",Jtt="\u03F5",Qtt="\u03F0",tet="\u2205",eet="\u03D5",net="\u03D6",ret="\u221D",iet="\u2195",oet="\u21D5",set="\u03F1",aet="\u03C2",cet="\u228A\uFE00",uet="\u2ACB\uFE00",fet="\u228B\uFE00",het="\u2ACC\uFE00",det="\u03D1",pet="\u22B2",get="\u22B3",vet="\u2AE8",met="\u2AEB",yet="\u2AE9",bet="\u0412",wet="\u0432",xet="\u22A2",_et="\u22A8",ket="\u22A9",Cet="\u22AB",Tet="\u2AE6",Let="\u22BB",Eet="\u2228",Aet="\u22C1",Met="\u225A",Net="\u22EE",Pet="|",Oet="\u2016",$et="|",Det="\u2016",Ret="\u2223",zet="|",Iet="\u2758",Fet="\u2240",qet="\u200A",Het="\u{1D519}",Bet="\u{1D533}",Wet="\u22B2",Uet="\u2282\u20D2",jet="\u2283\u20D2",Get="\u{1D54D}",Vet="\u{1D567}",Ket="\u221D",Xet="\u22B3",Yet="\u{1D4B1}",Zet="\u{1D4CB}",Jet="\u2ACB\uFE00",Qet="\u228A\uFE00",tnt="\u2ACC\uFE00",ent="\u228B\uFE00",nnt="\u22AA",rnt="\u299A",int="\u0174",ont="\u0175",snt="\u2A5F",lnt="\u2227",ant="\u22C0",cnt="\u2259",unt="\u2118",fnt="\u{1D51A}",hnt="\u{1D534}",dnt="\u{1D54E}",pnt="\u{1D568}",gnt="\u2118",vnt="\u2240",mnt="\u2240",ynt="\u{1D4B2}",bnt="\u{1D4CC}",wnt="\u22C2",xnt="\u25EF",_nt="\u22C3",Snt="\u25BD",knt="\u{1D51B}",Cnt="\u{1D535}",Tnt="\u27F7",Lnt="\u27FA",Ent="\u039E",Ant="\u03BE",Mnt="\u27F5",Nnt="\u27F8",Pnt="\u27FC",Ont="\u22FB",$nt="\u2A00",Dnt="\u{1D54F}",Rnt="\u{1D569}",znt="\u2A01",Int="\u2A02",Fnt="\u27F6",qnt="\u27F9",Hnt="\u{1D4B3}",Bnt="\u{1D4CD}",Wnt="\u2A06",Unt="\u2A04",jnt="\u25B3",Gnt="\u22C1",Vnt="\u22C0",Knt="\xDD",Xnt="\xFD",Ynt="\u042F",Znt="\u044F",Jnt="\u0176",Qnt="\u0177",trt="\u042B",ert="\u044B",nrt="\xA5",rrt="\u{1D51C}",irt="\u{1D536}",ort="\u0407",srt="\u0457",lrt="\u{1D550}",art="\u{1D56A}",crt="\u{1D4B4}",urt="\u{1D4CE}",frt="\u042E",hrt="\u044E",drt="\xFF",prt="\u0178",grt="\u0179",vrt="\u017A",mrt="\u017D",yrt="\u017E",brt="\u0417",wrt="\u0437",xrt="\u017B",_rt="\u017C",Srt="\u2128",krt="\u200B",Crt="\u0396",Trt="\u03B6",Lrt="\u{1D537}",Ert="\u2128",Art="\u0416",Mrt="\u0436",Nrt="\u21DD",Prt="\u{1D56B}",Ort="\u2124",$rt="\u{1D4B5}",Drt="\u{1D4CF}",Rrt="\u200D",zrt="\u200C",q0={Aacute:bT,aacute:wT,Abreve:xT,abreve:_T,ac:ST,acd:kT,acE:CT,Acirc:TT,acirc:LT,acute:ET,Acy:AT,acy:MT,AElig:NT,aelig:PT,af:OT,Afr:$T,afr:DT,Agrave:RT,agrave:zT,alefsym:IT,aleph:FT,Alpha:qT,alpha:HT,Amacr:BT,amacr:WT,amalg:UT,amp:jT,AMP:GT,andand:VT,And:KT,and:XT,andd:YT,andslope:ZT,andv:JT,ang:QT,ange:tL,angle:eL,angmsdaa:nL,angmsdab:rL,angmsdac:iL,angmsdad:oL,angmsdae:sL,angmsdaf:lL,angmsdag:aL,angmsdah:cL,angmsd:uL,angrt:fL,angrtvb:hL,angrtvbd:dL,angsph:pL,angst:gL,angzarr:vL,Aogon:mL,aogon:yL,Aopf:bL,aopf:wL,apacir:xL,ap:_L,apE:SL,ape:kL,apid:CL,apos:TL,ApplyFunction:LL,approx:EL,approxeq:AL,Aring:ML,aring:NL,Ascr:PL,ascr:OL,Assign:$L,ast:DL,asymp:RL,asympeq:zL,Atilde:IL,atilde:FL,Auml:qL,auml:HL,awconint:BL,awint:WL,backcong:UL,backepsilon:jL,backprime:GL,backsim:VL,backsimeq:KL,Backslash:XL,Barv:YL,barvee:ZL,barwed:JL,Barwed:QL,barwedge:tE,bbrk:eE,bbrktbrk:nE,bcong:rE,Bcy:iE,bcy:oE,bdquo:sE,becaus:lE,because:aE,Because:cE,bemptyv:uE,bepsi:fE,bernou:hE,Bernoullis:dE,Beta:pE,beta:gE,beth:vE,between:mE,Bfr:yE,bfr:bE,bigcap:wE,bigcirc:xE,bigcup:_E,bigodot:SE,bigoplus:kE,bigotimes:CE,bigsqcup:TE,bigstar:LE,bigtriangledown:EE,bigtriangleup:AE,biguplus:ME,bigvee:NE,bigwedge:PE,bkarow:OE,blacklozenge:$E,blacksquare:DE,blacktriangle:RE,blacktriangledown:zE,blacktriangleleft:IE,blacktriangleright:FE,blank:qE,blk12:HE,blk14:BE,blk34:WE,block:UE,bne:jE,bnequiv:GE,bNot:VE,bnot:KE,Bopf:XE,bopf:YE,bot:ZE,bottom:JE,bowtie:QE,boxbox:tA,boxdl:eA,boxdL:nA,boxDl:rA,boxDL:iA,boxdr:oA,boxdR:sA,boxDr:lA,boxDR:aA,boxh:cA,boxH:uA,boxhd:fA,boxHd:hA,boxhD:dA,boxHD:pA,boxhu:gA,boxHu:vA,boxhU:mA,boxHU:yA,boxminus:bA,boxplus:wA,boxtimes:xA,boxul:_A,boxuL:SA,boxUl:kA,boxUL:CA,boxur:TA,boxuR:LA,boxUr:EA,boxUR:AA,boxv:MA,boxV:NA,boxvh:PA,boxvH:OA,boxVh:$A,boxVH:DA,boxvl:RA,boxvL:zA,boxVl:IA,boxVL:FA,boxvr:qA,boxvR:HA,boxVr:BA,boxVR:WA,bprime:UA,breve:jA,Breve:GA,brvbar:VA,bscr:KA,Bscr:XA,bsemi:YA,bsim:ZA,bsime:JA,bsolb:QA,bsol:tM,bsolhsub:eM,bull:nM,bullet:rM,bump:iM,bumpE:oM,bumpe:sM,Bumpeq:lM,bumpeq:aM,Cacute:cM,cacute:uM,capand:fM,capbrcup:hM,capcap:dM,cap:pM,Cap:gM,capcup:vM,capdot:mM,CapitalDifferentialD:yM,caps:bM,caret:wM,caron:xM,Cayleys:_M,ccaps:SM,Ccaron:kM,ccaron:CM,Ccedil:TM,ccedil:LM,Ccirc:EM,ccirc:AM,Cconint:MM,ccups:NM,ccupssm:PM,Cdot:OM,cdot:$M,cedil:DM,Cedilla:RM,cemptyv:zM,cent:IM,centerdot:FM,CenterDot:qM,cfr:HM,Cfr:BM,CHcy:WM,chcy:UM,check:jM,checkmark:GM,Chi:VM,chi:KM,circ:XM,circeq:YM,circlearrowleft:ZM,circlearrowright:JM,circledast:QM,circledcirc:tN,circleddash:eN,CircleDot:nN,circledR:rN,circledS:iN,CircleMinus:oN,CirclePlus:sN,CircleTimes:lN,cir:aN,cirE:cN,cire:uN,cirfnint:fN,cirmid:hN,cirscir:dN,ClockwiseContourIntegral:pN,CloseCurlyDoubleQuote:gN,CloseCurlyQuote:vN,clubs:mN,clubsuit:yN,colon:bN,Colon:wN,Colone:xN,colone:_N,coloneq:SN,comma:kN,commat:CN,comp:TN,compfn:LN,complement:EN,complexes:AN,cong:MN,congdot:NN,Congruent:PN,conint:ON,Conint:$N,ContourIntegral:DN,copf:RN,Copf:zN,coprod:IN,Coproduct:FN,copy:qN,COPY:HN,copysr:BN,CounterClockwiseContourIntegral:WN,crarr:UN,cross:jN,Cross:GN,Cscr:VN,cscr:KN,csub:XN,csube:YN,csup:ZN,csupe:JN,ctdot:QN,cudarrl:tP,cudarrr:eP,cuepr:nP,cuesc:rP,cularr:iP,cularrp:oP,cupbrcap:sP,cupcap:lP,CupCap:aP,cup:cP,Cup:uP,cupcup:fP,cupdot:hP,cupor:dP,cups:pP,curarr:gP,curarrm:vP,curlyeqprec:mP,curlyeqsucc:yP,curlyvee:bP,curlywedge:wP,curren:xP,curvearrowleft:_P,curvearrowright:SP,cuvee:kP,cuwed:CP,cwconint:TP,cwint:LP,cylcty:EP,dagger:AP,Dagger:MP,daleth:NP,darr:PP,Darr:OP,dArr:$P,dash:DP,Dashv:RP,dashv:zP,dbkarow:IP,dblac:FP,Dcaron:qP,dcaron:HP,Dcy:BP,dcy:WP,ddagger:UP,ddarr:jP,DD:GP,dd:VP,DDotrahd:KP,ddotseq:XP,deg:YP,Del:ZP,Delta:JP,delta:QP,demptyv:tO,dfisht:eO,Dfr:nO,dfr:rO,dHar:iO,dharl:oO,dharr:sO,DiacriticalAcute:lO,DiacriticalDot:aO,DiacriticalDoubleAcute:cO,DiacriticalGrave:uO,DiacriticalTilde:fO,diam:hO,diamond:dO,Diamond:pO,diamondsuit:gO,diams:vO,die:mO,DifferentialD:yO,digamma:bO,disin:wO,div:xO,divide:_O,divideontimes:SO,divonx:kO,DJcy:CO,djcy:TO,dlcorn:LO,dlcrop:EO,dollar:AO,Dopf:MO,dopf:NO,Dot:PO,dot:OO,DotDot:$O,doteq:DO,doteqdot:RO,DotEqual:zO,dotminus:IO,dotplus:FO,dotsquare:qO,doublebarwedge:HO,DoubleContourIntegral:BO,DoubleDot:WO,DoubleDownArrow:UO,DoubleLeftArrow:jO,DoubleLeftRightArrow:GO,DoubleLeftTee:VO,DoubleLongLeftArrow:KO,DoubleLongLeftRightArrow:XO,DoubleLongRightArrow:YO,DoubleRightArrow:ZO,DoubleRightTee:JO,DoubleUpArrow:QO,DoubleUpDownArrow:t$,DoubleVerticalBar:e$,DownArrowBar:n$,downarrow:r$,DownArrow:i$,Downarrow:o$,DownArrowUpArrow:s$,DownBreve:l$,downdownarrows:a$,downharpoonleft:c$,downharpoonright:u$,DownLeftRightVector:f$,DownLeftTeeVector:h$,DownLeftVectorBar:d$,DownLeftVector:p$,DownRightTeeVector:g$,DownRightVectorBar:v$,DownRightVector:m$,DownTeeArrow:y$,DownTee:b$,drbkarow:w$,drcorn:x$,drcrop:_$,Dscr:S$,dscr:k$,DScy:C$,dscy:T$,dsol:L$,Dstrok:E$,dstrok:A$,dtdot:M$,dtri:N$,dtrif:P$,duarr:O$,duhar:$$,dwangle:D$,DZcy:R$,dzcy:z$,dzigrarr:I$,Eacute:F$,eacute:q$,easter:H$,Ecaron:B$,ecaron:W$,Ecirc:U$,ecirc:j$,ecir:G$,ecolon:V$,Ecy:K$,ecy:X$,eDDot:Y$,Edot:Z$,edot:J$,eDot:Q$,ee:tD,efDot:eD,Efr:nD,efr:rD,eg:iD,Egrave:oD,egrave:sD,egs:lD,egsdot:aD,el:cD,Element:uD,elinters:fD,ell:hD,els:dD,elsdot:pD,Emacr:gD,emacr:vD,empty:mD,emptyset:yD,EmptySmallSquare:bD,emptyv:wD,EmptyVerySmallSquare:xD,emsp13:_D,emsp14:SD,emsp:kD,ENG:CD,eng:TD,ensp:LD,Eogon:ED,eogon:AD,Eopf:MD,eopf:ND,epar:PD,eparsl:OD,eplus:$D,epsi:DD,Epsilon:RD,epsilon:zD,epsiv:ID,eqcirc:FD,eqcolon:qD,eqsim:HD,eqslantgtr:BD,eqslantless:WD,Equal:UD,equals:jD,EqualTilde:GD,equest:VD,Equilibrium:KD,equiv:XD,equivDD:YD,eqvparsl:ZD,erarr:JD,erDot:QD,escr:tR,Escr:eR,esdot:nR,Esim:rR,esim:iR,Eta:oR,eta:sR,ETH:lR,eth:aR,Euml:cR,euml:uR,euro:fR,excl:hR,exist:dR,Exists:pR,expectation:gR,exponentiale:vR,ExponentialE:mR,fallingdotseq:yR,Fcy:bR,fcy:wR,female:xR,ffilig:_R,fflig:SR,ffllig:kR,Ffr:CR,ffr:TR,filig:LR,FilledSmallSquare:ER,FilledVerySmallSquare:AR,fjlig:MR,flat:NR,fllig:PR,fltns:OR,fnof:$R,Fopf:DR,fopf:RR,forall:zR,ForAll:IR,fork:FR,forkv:qR,Fouriertrf:HR,fpartint:BR,frac12:WR,frac13:UR,frac14:jR,frac15:GR,frac16:VR,frac18:KR,frac23:XR,frac25:YR,frac34:ZR,frac35:JR,frac38:QR,frac45:tz,frac56:ez,frac58:nz,frac78:rz,frasl:iz,frown:oz,fscr:sz,Fscr:lz,gacute:az,Gamma:cz,gamma:uz,Gammad:fz,gammad:hz,gap:dz,Gbreve:pz,gbreve:gz,Gcedil:vz,Gcirc:mz,gcirc:yz,Gcy:bz,gcy:wz,Gdot:xz,gdot:_z,ge:Sz,gE:kz,gEl:Cz,gel:Tz,geq:Lz,geqq:Ez,geqslant:Az,gescc:Mz,ges:Nz,gesdot:Pz,gesdoto:Oz,gesdotol:$z,gesl:Dz,gesles:Rz,Gfr:zz,gfr:Iz,gg:Fz,Gg:qz,ggg:Hz,gimel:Bz,GJcy:Wz,gjcy:Uz,gla:jz,gl:Gz,glE:Vz,glj:Kz,gnap:Xz,gnapprox:Yz,gne:Zz,gnE:Jz,gneq:Qz,gneqq:t2,gnsim:e2,Gopf:n2,gopf:r2,grave:i2,GreaterEqual:o2,GreaterEqualLess:s2,GreaterFullEqual:l2,GreaterGreater:a2,GreaterLess:c2,GreaterSlantEqual:u2,GreaterTilde:f2,Gscr:h2,gscr:d2,gsim:p2,gsime:g2,gsiml:v2,gtcc:m2,gtcir:y2,gt:b2,GT:w2,Gt:x2,gtdot:_2,gtlPar:S2,gtquest:k2,gtrapprox:C2,gtrarr:T2,gtrdot:L2,gtreqless:E2,gtreqqless:A2,gtrless:M2,gtrsim:N2,gvertneqq:P2,gvnE:O2,Hacek:$2,hairsp:D2,half:R2,hamilt:z2,HARDcy:I2,hardcy:F2,harrcir:q2,harr:H2,hArr:B2,harrw:W2,Hat:U2,hbar:j2,Hcirc:G2,hcirc:V2,hearts:K2,heartsuit:X2,hellip:Y2,hercon:Z2,hfr:J2,Hfr:Q2,HilbertSpace:tI,hksearow:eI,hkswarow:nI,hoarr:rI,homtht:iI,hookleftarrow:oI,hookrightarrow:sI,hopf:lI,Hopf:aI,horbar:cI,HorizontalLine:uI,hscr:fI,Hscr:hI,hslash:dI,Hstrok:pI,hstrok:gI,HumpDownHump:vI,HumpEqual:mI,hybull:yI,hyphen:bI,Iacute:wI,iacute:xI,ic:_I,Icirc:SI,icirc:kI,Icy:CI,icy:TI,Idot:LI,IEcy:EI,iecy:AI,iexcl:MI,iff:NI,ifr:PI,Ifr:OI,Igrave:$I,igrave:DI,ii:RI,iiiint:zI,iiint:II,iinfin:FI,iiota:qI,IJlig:HI,ijlig:BI,Imacr:WI,imacr:UI,image:jI,ImaginaryI:GI,imagline:VI,imagpart:KI,imath:XI,Im:YI,imof:ZI,imped:JI,Implies:QI,incare:tF,in:"\u2208",infin:eF,infintie:nF,inodot:rF,intcal:iF,int:oF,Int:sF,integers:lF,Integral:aF,intercal:cF,Intersection:uF,intlarhk:fF,intprod:hF,InvisibleComma:dF,InvisibleTimes:pF,IOcy:gF,iocy:vF,Iogon:mF,iogon:yF,Iopf:bF,iopf:wF,Iota:xF,iota:_F,iprod:SF,iquest:kF,iscr:CF,Iscr:TF,isin:LF,isindot:EF,isinE:AF,isins:MF,isinsv:NF,isinv:PF,it:OF,Itilde:$F,itilde:DF,Iukcy:RF,iukcy:zF,Iuml:IF,iuml:FF,Jcirc:qF,jcirc:HF,Jcy:BF,jcy:WF,Jfr:UF,jfr:jF,jmath:GF,Jopf:VF,jopf:KF,Jscr:XF,jscr:YF,Jsercy:ZF,jsercy:JF,Jukcy:QF,jukcy:tq,Kappa:eq,kappa:nq,kappav:rq,Kcedil:iq,kcedil:oq,Kcy:sq,kcy:lq,Kfr:aq,kfr:cq,kgreen:uq,KHcy:fq,khcy:hq,KJcy:dq,kjcy:pq,Kopf:gq,kopf:vq,Kscr:mq,kscr:yq,lAarr:bq,Lacute:wq,lacute:xq,laemptyv:_q,lagran:Sq,Lambda:kq,lambda:Cq,lang:Tq,Lang:Lq,langd:Eq,langle:Aq,lap:Mq,Laplacetrf:Nq,laquo:Pq,larrb:Oq,larrbfs:$q,larr:Dq,Larr:Rq,lArr:zq,larrfs:Iq,larrhk:Fq,larrlp:qq,larrpl:Hq,larrsim:Bq,larrtl:Wq,latail:Uq,lAtail:jq,lat:Gq,late:Vq,lates:Kq,lbarr:Xq,lBarr:Yq,lbbrk:Zq,lbrace:Jq,lbrack:Qq,lbrke:tH,lbrksld:eH,lbrkslu:nH,Lcaron:rH,lcaron:iH,Lcedil:oH,lcedil:sH,lceil:lH,lcub:aH,Lcy:cH,lcy:uH,ldca:fH,ldquo:hH,ldquor:dH,ldrdhar:pH,ldrushar:gH,ldsh:vH,le:mH,lE:yH,LeftAngleBracket:bH,LeftArrowBar:wH,leftarrow:xH,LeftArrow:_H,Leftarrow:SH,LeftArrowRightArrow:kH,leftarrowtail:CH,LeftCeiling:TH,LeftDoubleBracket:LH,LeftDownTeeVector:EH,LeftDownVectorBar:AH,LeftDownVector:MH,LeftFloor:NH,leftharpoondown:PH,leftharpoonup:OH,leftleftarrows:$H,leftrightarrow:DH,LeftRightArrow:RH,Leftrightarrow:zH,leftrightarrows:IH,leftrightharpoons:FH,leftrightsquigarrow:qH,LeftRightVector:HH,LeftTeeArrow:BH,LeftTee:WH,LeftTeeVector:UH,leftthreetimes:jH,LeftTriangleBar:GH,LeftTriangle:VH,LeftTriangleEqual:KH,LeftUpDownVector:XH,LeftUpTeeVector:YH,LeftUpVectorBar:ZH,LeftUpVector:JH,LeftVectorBar:QH,LeftVector:tB,lEg:eB,leg:nB,leq:rB,leqq:iB,leqslant:oB,lescc:sB,les:lB,lesdot:aB,lesdoto:cB,lesdotor:uB,lesg:fB,lesges:hB,lessapprox:dB,lessdot:pB,lesseqgtr:gB,lesseqqgtr:vB,LessEqualGreater:mB,LessFullEqual:yB,LessGreater:bB,lessgtr:wB,LessLess:xB,lesssim:_B,LessSlantEqual:SB,LessTilde:kB,lfisht:CB,lfloor:TB,Lfr:LB,lfr:EB,lg:AB,lgE:MB,lHar:NB,lhard:PB,lharu:OB,lharul:$B,lhblk:DB,LJcy:RB,ljcy:zB,llarr:IB,ll:FB,Ll:qB,llcorner:HB,Lleftarrow:BB,llhard:WB,lltri:UB,Lmidot:jB,lmidot:GB,lmoustache:VB,lmoust:KB,lnap:XB,lnapprox:YB,lne:ZB,lnE:JB,lneq:QB,lneqq:t3,lnsim:e3,loang:n3,loarr:r3,lobrk:i3,longleftarrow:o3,LongLeftArrow:s3,Longleftarrow:l3,longleftrightarrow:a3,LongLeftRightArrow:c3,Longleftrightarrow:u3,longmapsto:f3,longrightarrow:h3,LongRightArrow:d3,Longrightarrow:p3,looparrowleft:g3,looparrowright:v3,lopar:m3,Lopf:y3,lopf:b3,loplus:w3,lotimes:x3,lowast:_3,lowbar:S3,LowerLeftArrow:k3,LowerRightArrow:C3,loz:T3,lozenge:L3,lozf:E3,lpar:A3,lparlt:M3,lrarr:N3,lrcorner:P3,lrhar:O3,lrhard:$3,lrm:D3,lrtri:R3,lsaquo:z3,lscr:I3,Lscr:F3,lsh:q3,Lsh:H3,lsim:B3,lsime:W3,lsimg:U3,lsqb:j3,lsquo:G3,lsquor:V3,Lstrok:K3,lstrok:X3,ltcc:Y3,ltcir:Z3,lt:J3,LT:Q3,Lt:t5,ltdot:e5,lthree:n5,ltimes:r5,ltlarr:i5,ltquest:o5,ltri:s5,ltrie:l5,ltrif:a5,ltrPar:c5,lurdshar:u5,luruhar:f5,lvertneqq:h5,lvnE:d5,macr:p5,male:g5,malt:v5,maltese:m5,Map:"\u2905",map:y5,mapsto:b5,mapstodown:w5,mapstoleft:x5,mapstoup:_5,marker:S5,mcomma:k5,Mcy:C5,mcy:T5,mdash:L5,mDDot:E5,measuredangle:A5,MediumSpace:M5,Mellintrf:N5,Mfr:P5,mfr:O5,mho:$5,micro:D5,midast:R5,midcir:z5,mid:I5,middot:F5,minusb:q5,minus:H5,minusd:B5,minusdu:W5,MinusPlus:U5,mlcp:j5,mldr:G5,mnplus:V5,models:K5,Mopf:X5,mopf:Y5,mp:Z5,mscr:J5,Mscr:Q5,mstpos:tW,Mu:eW,mu:nW,multimap:rW,mumap:iW,nabla:oW,Nacute:sW,nacute:lW,nang:aW,nap:cW,napE:uW,napid:fW,napos:hW,napprox:dW,natural:pW,naturals:gW,natur:vW,nbsp:mW,nbump:yW,nbumpe:bW,ncap:wW,Ncaron:xW,ncaron:_W,Ncedil:SW,ncedil:kW,ncong:CW,ncongdot:TW,ncup:LW,Ncy:EW,ncy:AW,ndash:MW,nearhk:NW,nearr:PW,neArr:OW,nearrow:$W,ne:DW,nedot:RW,NegativeMediumSpace:zW,NegativeThickSpace:IW,NegativeThinSpace:FW,NegativeVeryThinSpace:qW,nequiv:HW,nesear:BW,nesim:WW,NestedGreaterGreater:UW,NestedLessLess:jW,NewLine:GW,nexist:VW,nexists:KW,Nfr:XW,nfr:YW,ngE:ZW,nge:JW,ngeq:QW,ngeqq:tU,ngeqslant:eU,nges:nU,nGg:rU,ngsim:iU,nGt:oU,ngt:sU,ngtr:lU,nGtv:aU,nharr:cU,nhArr:uU,nhpar:fU,ni:hU,nis:dU,nisd:pU,niv:gU,NJcy:vU,njcy:mU,nlarr:yU,nlArr:bU,nldr:wU,nlE:xU,nle:_U,nleftarrow:SU,nLeftarrow:kU,nleftrightarrow:CU,nLeftrightarrow:TU,nleq:LU,nleqq:EU,nleqslant:AU,nles:MU,nless:NU,nLl:PU,nlsim:OU,nLt:$U,nlt:DU,nltri:RU,nltrie:zU,nLtv:IU,nmid:FU,NoBreak:qU,NonBreakingSpace:HU,nopf:BU,Nopf:WU,Not:UU,not:jU,NotCongruent:GU,NotCupCap:VU,NotDoubleVerticalBar:KU,NotElement:XU,NotEqual:YU,NotEqualTilde:ZU,NotExists:JU,NotGreater:QU,NotGreaterEqual:t8,NotGreaterFullEqual:e8,NotGreaterGreater:n8,NotGreaterLess:r8,NotGreaterSlantEqual:i8,NotGreaterTilde:o8,NotHumpDownHump:s8,NotHumpEqual:l8,notin:a8,notindot:c8,notinE:u8,notinva:f8,notinvb:h8,notinvc:d8,NotLeftTriangleBar:p8,NotLeftTriangle:g8,NotLeftTriangleEqual:v8,NotLess:m8,NotLessEqual:y8,NotLessGreater:b8,NotLessLess:w8,NotLessSlantEqual:x8,NotLessTilde:_8,NotNestedGreaterGreater:S8,NotNestedLessLess:k8,notni:C8,notniva:T8,notnivb:L8,notnivc:E8,NotPrecedes:A8,NotPrecedesEqual:M8,NotPrecedesSlantEqual:N8,NotReverseElement:P8,NotRightTriangleBar:O8,NotRightTriangle:$8,NotRightTriangleEqual:D8,NotSquareSubset:R8,NotSquareSubsetEqual:z8,NotSquareSuperset:I8,NotSquareSupersetEqual:F8,NotSubset:q8,NotSubsetEqual:H8,NotSucceeds:B8,NotSucceedsEqual:W8,NotSucceedsSlantEqual:U8,NotSucceedsTilde:j8,NotSuperset:G8,NotSupersetEqual:V8,NotTilde:K8,NotTildeEqual:X8,NotTildeFullEqual:Y8,NotTildeTilde:Z8,NotVerticalBar:J8,nparallel:Q8,npar:t4,nparsl:e4,npart:n4,npolint:r4,npr:i4,nprcue:o4,nprec:s4,npreceq:l4,npre:a4,nrarrc:c4,nrarr:u4,nrArr:f4,nrarrw:h4,nrightarrow:d4,nRightarrow:p4,nrtri:g4,nrtrie:v4,nsc:m4,nsccue:y4,nsce:b4,Nscr:w4,nscr:x4,nshortmid:_4,nshortparallel:S4,nsim:k4,nsime:C4,nsimeq:T4,nsmid:L4,nspar:E4,nsqsube:A4,nsqsupe:M4,nsub:N4,nsubE:P4,nsube:O4,nsubset:$4,nsubseteq:D4,nsubseteqq:R4,nsucc:z4,nsucceq:I4,nsup:F4,nsupE:q4,nsupe:H4,nsupset:B4,nsupseteq:W4,nsupseteqq:U4,ntgl:j4,Ntilde:G4,ntilde:V4,ntlg:K4,ntriangleleft:X4,ntrianglelefteq:Y4,ntriangleright:Z4,ntrianglerighteq:J4,Nu:Q4,nu:t6,num:e6,numero:n6,numsp:r6,nvap:i6,nvdash:o6,nvDash:s6,nVdash:l6,nVDash:a6,nvge:c6,nvgt:u6,nvHarr:f6,nvinfin:h6,nvlArr:d6,nvle:p6,nvlt:g6,nvltrie:v6,nvrArr:m6,nvrtrie:y6,nvsim:b6,nwarhk:w6,nwarr:x6,nwArr:_6,nwarrow:S6,nwnear:k6,Oacute:C6,oacute:T6,oast:L6,Ocirc:E6,ocirc:A6,ocir:M6,Ocy:N6,ocy:P6,odash:O6,Odblac:$6,odblac:D6,odiv:R6,odot:z6,odsold:I6,OElig:F6,oelig:q6,ofcir:H6,Ofr:B6,ofr:W6,ogon:U6,Ograve:j6,ograve:G6,ogt:V6,ohbar:K6,ohm:X6,oint:Y6,olarr:Z6,olcir:J6,olcross:Q6,oline:tj,olt:ej,Omacr:nj,omacr:rj,Omega:ij,omega:oj,Omicron:sj,omicron:lj,omid:aj,ominus:cj,Oopf:uj,oopf:fj,opar:hj,OpenCurlyDoubleQuote:dj,OpenCurlyQuote:pj,operp:gj,oplus:vj,orarr:mj,Or:yj,or:bj,ord:wj,order:xj,orderof:_j,ordf:Sj,ordm:kj,origof:Cj,oror:Tj,orslope:Lj,orv:Ej,oS:Aj,Oscr:Mj,oscr:Nj,Oslash:Pj,oslash:Oj,osol:$j,Otilde:Dj,otilde:Rj,otimesas:zj,Otimes:Ij,otimes:Fj,Ouml:qj,ouml:Hj,ovbar:Bj,OverBar:Wj,OverBrace:Uj,OverBracket:jj,OverParenthesis:Gj,para:Vj,parallel:Kj,par:Xj,parsim:Yj,parsl:Zj,part:Jj,PartialD:Qj,Pcy:t9,pcy:e9,percnt:n9,period:r9,permil:i9,perp:o9,pertenk:s9,Pfr:l9,pfr:a9,Phi:c9,phi:u9,phiv:f9,phmmat:h9,phone:d9,Pi:p9,pi:g9,pitchfork:v9,piv:m9,planck:y9,planckh:b9,plankv:w9,plusacir:x9,plusb:_9,pluscir:S9,plus:k9,plusdo:C9,plusdu:T9,pluse:L9,PlusMinus:E9,plusmn:A9,plussim:M9,plustwo:N9,pm:P9,Poincareplane:O9,pointint:$9,popf:D9,Popf:R9,pound:z9,prap:I9,Pr:F9,pr:q9,prcue:H9,precapprox:B9,prec:W9,preccurlyeq:U9,Precedes:j9,PrecedesEqual:G9,PrecedesSlantEqual:V9,PrecedesTilde:K9,preceq:X9,precnapprox:Y9,precneqq:Z9,precnsim:J9,pre:Q9,prE:tG,precsim:eG,prime:nG,Prime:rG,primes:iG,prnap:oG,prnE:sG,prnsim:lG,prod:aG,Product:cG,profalar:uG,profline:fG,profsurf:hG,prop:dG,Proportional:pG,Proportion:gG,propto:vG,prsim:mG,prurel:yG,Pscr:bG,pscr:wG,Psi:xG,psi:_G,puncsp:SG,Qfr:kG,qfr:CG,qint:TG,qopf:LG,Qopf:EG,qprime:AG,Qscr:MG,qscr:NG,quaternions:PG,quatint:OG,quest:$G,questeq:DG,quot:RG,QUOT:zG,rAarr:IG,race:FG,Racute:qG,racute:HG,radic:BG,raemptyv:WG,rang:UG,Rang:jG,rangd:GG,range:VG,rangle:KG,raquo:XG,rarrap:YG,rarrb:ZG,rarrbfs:JG,rarrc:QG,rarr:tV,Rarr:eV,rArr:nV,rarrfs:rV,rarrhk:iV,rarrlp:oV,rarrpl:sV,rarrsim:lV,Rarrtl:aV,rarrtl:cV,rarrw:uV,ratail:fV,rAtail:hV,ratio:dV,rationals:pV,rbarr:gV,rBarr:vV,RBarr:mV,rbbrk:yV,rbrace:bV,rbrack:wV,rbrke:xV,rbrksld:_V,rbrkslu:SV,Rcaron:kV,rcaron:CV,Rcedil:TV,rcedil:LV,rceil:EV,rcub:AV,Rcy:MV,rcy:NV,rdca:PV,rdldhar:OV,rdquo:$V,rdquor:DV,rdsh:RV,real:zV,realine:IV,realpart:FV,reals:qV,Re:HV,rect:BV,reg:WV,REG:UV,ReverseElement:jV,ReverseEquilibrium:GV,ReverseUpEquilibrium:VV,rfisht:KV,rfloor:XV,rfr:YV,Rfr:ZV,rHar:JV,rhard:QV,rharu:tK,rharul:eK,Rho:nK,rho:rK,rhov:iK,RightAngleBracket:oK,RightArrowBar:sK,rightarrow:lK,RightArrow:aK,Rightarrow:cK,RightArrowLeftArrow:uK,rightarrowtail:fK,RightCeiling:hK,RightDoubleBracket:dK,RightDownTeeVector:pK,RightDownVectorBar:gK,RightDownVector:vK,RightFloor:mK,rightharpoondown:yK,rightharpoonup:bK,rightleftarrows:wK,rightleftharpoons:xK,rightrightarrows:_K,rightsquigarrow:SK,RightTeeArrow:kK,RightTee:CK,RightTeeVector:TK,rightthreetimes:LK,RightTriangleBar:EK,RightTriangle:AK,RightTriangleEqual:MK,RightUpDownVector:NK,RightUpTeeVector:PK,RightUpVectorBar:OK,RightUpVector:$K,RightVectorBar:DK,RightVector:RK,ring:zK,risingdotseq:IK,rlarr:FK,rlhar:qK,rlm:HK,rmoustache:BK,rmoust:WK,rnmid:UK,roang:jK,roarr:GK,robrk:VK,ropar:KK,ropf:XK,Ropf:YK,roplus:ZK,rotimes:JK,RoundImplies:QK,rpar:t7,rpargt:e7,rppolint:n7,rrarr:r7,Rrightarrow:i7,rsaquo:o7,rscr:s7,Rscr:l7,rsh:a7,Rsh:c7,rsqb:u7,rsquo:f7,rsquor:h7,rthree:d7,rtimes:p7,rtri:g7,rtrie:v7,rtrif:m7,rtriltri:y7,RuleDelayed:b7,ruluhar:w7,rx:x7,Sacute:_7,sacute:S7,sbquo:k7,scap:C7,Scaron:T7,scaron:L7,Sc:E7,sc:A7,sccue:M7,sce:N7,scE:P7,Scedil:O7,scedil:$7,Scirc:D7,scirc:R7,scnap:z7,scnE:I7,scnsim:F7,scpolint:q7,scsim:H7,Scy:B7,scy:W7,sdotb:U7,sdot:j7,sdote:G7,searhk:V7,searr:K7,seArr:X7,searrow:Y7,sect:Z7,semi:J7,seswar:Q7,setminus:tX,setmn:eX,sext:nX,Sfr:rX,sfr:iX,sfrown:oX,sharp:sX,SHCHcy:lX,shchcy:aX,SHcy:cX,shcy:uX,ShortDownArrow:fX,ShortLeftArrow:hX,shortmid:dX,shortparallel:pX,ShortRightArrow:gX,ShortUpArrow:vX,shy:mX,Sigma:yX,sigma:bX,sigmaf:wX,sigmav:xX,sim:_X,simdot:SX,sime:kX,simeq:CX,simg:TX,simgE:LX,siml:EX,simlE:AX,simne:MX,simplus:NX,simrarr:PX,slarr:OX,SmallCircle:$X,smallsetminus:DX,smashp:RX,smeparsl:zX,smid:IX,smile:FX,smt:qX,smte:HX,smtes:BX,SOFTcy:WX,softcy:UX,solbar:jX,solb:GX,sol:VX,Sopf:KX,sopf:XX,spades:YX,spadesuit:ZX,spar:JX,sqcap:QX,sqcaps:tY,sqcup:eY,sqcups:nY,Sqrt:rY,sqsub:iY,sqsube:oY,sqsubset:sY,sqsubseteq:lY,sqsup:aY,sqsupe:cY,sqsupset:uY,sqsupseteq:fY,square:hY,Square:dY,SquareIntersection:pY,SquareSubset:gY,SquareSubsetEqual:vY,SquareSuperset:mY,SquareSupersetEqual:yY,SquareUnion:bY,squarf:wY,squ:xY,squf:_Y,srarr:SY,Sscr:kY,sscr:CY,ssetmn:TY,ssmile:LY,sstarf:EY,Star:AY,star:MY,starf:NY,straightepsilon:PY,straightphi:OY,strns:$Y,sub:DY,Sub:RY,subdot:zY,subE:IY,sube:FY,subedot:qY,submult:HY,subnE:BY,subne:WY,subplus:UY,subrarr:jY,subset:GY,Subset:VY,subseteq:KY,subseteqq:XY,SubsetEqual:YY,subsetneq:ZY,subsetneqq:JY,subsim:QY,subsub:tZ,subsup:eZ,succapprox:nZ,succ:rZ,succcurlyeq:iZ,Succeeds:oZ,SucceedsEqual:sZ,SucceedsSlantEqual:lZ,SucceedsTilde:aZ,succeq:cZ,succnapprox:uZ,succneqq:fZ,succnsim:hZ,succsim:dZ,SuchThat:pZ,sum:gZ,Sum:vZ,sung:mZ,sup1:yZ,sup2:bZ,sup3:wZ,sup:xZ,Sup:_Z,supdot:SZ,supdsub:kZ,supE:CZ,supe:TZ,supedot:LZ,Superset:EZ,SupersetEqual:AZ,suphsol:MZ,suphsub:NZ,suplarr:PZ,supmult:OZ,supnE:$Z,supne:DZ,supplus:RZ,supset:zZ,Supset:IZ,supseteq:FZ,supseteqq:qZ,supsetneq:HZ,supsetneqq:BZ,supsim:WZ,supsub:UZ,supsup:jZ,swarhk:GZ,swarr:VZ,swArr:KZ,swarrow:XZ,swnwar:YZ,szlig:ZZ,Tab:JZ,target:QZ,Tau:tJ,tau:eJ,tbrk:nJ,Tcaron:rJ,tcaron:iJ,Tcedil:oJ,tcedil:sJ,Tcy:lJ,tcy:aJ,tdot:cJ,telrec:uJ,Tfr:fJ,tfr:hJ,there4:dJ,therefore:pJ,Therefore:gJ,Theta:vJ,theta:mJ,thetasym:yJ,thetav:bJ,thickapprox:wJ,thicksim:xJ,ThickSpace:_J,ThinSpace:SJ,thinsp:kJ,thkap:CJ,thksim:TJ,THORN:LJ,thorn:EJ,tilde:AJ,Tilde:MJ,TildeEqual:NJ,TildeFullEqual:PJ,TildeTilde:OJ,timesbar:$J,timesb:DJ,times:RJ,timesd:zJ,tint:IJ,toea:FJ,topbot:qJ,topcir:HJ,top:BJ,Topf:WJ,topf:UJ,topfork:jJ,tosa:GJ,tprime:VJ,trade:KJ,TRADE:XJ,triangle:YJ,triangledown:ZJ,triangleleft:JJ,trianglelefteq:QJ,triangleq:tQ,triangleright:eQ,trianglerighteq:nQ,tridot:rQ,trie:iQ,triminus:oQ,TripleDot:sQ,triplus:lQ,trisb:aQ,tritime:cQ,trpezium:uQ,Tscr:fQ,tscr:hQ,TScy:dQ,tscy:pQ,TSHcy:gQ,tshcy:vQ,Tstrok:mQ,tstrok:yQ,twixt:bQ,twoheadleftarrow:wQ,twoheadrightarrow:xQ,Uacute:_Q,uacute:SQ,uarr:kQ,Uarr:CQ,uArr:TQ,Uarrocir:LQ,Ubrcy:EQ,ubrcy:AQ,Ubreve:MQ,ubreve:NQ,Ucirc:PQ,ucirc:OQ,Ucy:$Q,ucy:DQ,udarr:RQ,Udblac:zQ,udblac:IQ,udhar:FQ,ufisht:qQ,Ufr:HQ,ufr:BQ,Ugrave:WQ,ugrave:UQ,uHar:jQ,uharl:GQ,uharr:VQ,uhblk:KQ,ulcorn:XQ,ulcorner:YQ,ulcrop:ZQ,ultri:JQ,Umacr:QQ,umacr:ttt,uml:ett,UnderBar:ntt,UnderBrace:rtt,UnderBracket:itt,UnderParenthesis:ott,Union:stt,UnionPlus:ltt,Uogon:att,uogon:ctt,Uopf:utt,uopf:ftt,UpArrowBar:htt,uparrow:dtt,UpArrow:ptt,Uparrow:gtt,UpArrowDownArrow:vtt,updownarrow:mtt,UpDownArrow:ytt,Updownarrow:btt,UpEquilibrium:wtt,upharpoonleft:xtt,upharpoonright:_tt,uplus:Stt,UpperLeftArrow:ktt,UpperRightArrow:Ctt,upsi:Ttt,Upsi:Ltt,upsih:Ett,Upsilon:Att,upsilon:Mtt,UpTeeArrow:Ntt,UpTee:Ptt,upuparrows:Ott,urcorn:$tt,urcorner:Dtt,urcrop:Rtt,Uring:ztt,uring:Itt,urtri:Ftt,Uscr:qtt,uscr:Htt,utdot:Btt,Utilde:Wtt,utilde:Utt,utri:jtt,utrif:Gtt,uuarr:Vtt,Uuml:Ktt,uuml:Xtt,uwangle:Ytt,vangrt:Ztt,varepsilon:Jtt,varkappa:Qtt,varnothing:tet,varphi:eet,varpi:net,varpropto:ret,varr:iet,vArr:oet,varrho:set,varsigma:aet,varsubsetneq:cet,varsubsetneqq:uet,varsupsetneq:fet,varsupsetneqq:het,vartheta:det,vartriangleleft:pet,vartriangleright:get,vBar:vet,Vbar:met,vBarv:yet,Vcy:bet,vcy:wet,vdash:xet,vDash:_et,Vdash:ket,VDash:Cet,Vdashl:Tet,veebar:Let,vee:Eet,Vee:Aet,veeeq:Met,vellip:Net,verbar:Pet,Verbar:Oet,vert:$et,Vert:Det,VerticalBar:Ret,VerticalLine:zet,VerticalSeparator:Iet,VerticalTilde:Fet,VeryThinSpace:qet,Vfr:Het,vfr:Bet,vltri:Wet,vnsub:Uet,vnsup:jet,Vopf:Get,vopf:Vet,vprop:Ket,vrtri:Xet,Vscr:Yet,vscr:Zet,vsubnE:Jet,vsubne:Qet,vsupnE:tnt,vsupne:ent,Vvdash:nnt,vzigzag:rnt,Wcirc:int,wcirc:ont,wedbar:snt,wedge:lnt,Wedge:ant,wedgeq:cnt,weierp:unt,Wfr:fnt,wfr:hnt,Wopf:dnt,wopf:pnt,wp:gnt,wr:vnt,wreath:mnt,Wscr:ynt,wscr:bnt,xcap:wnt,xcirc:xnt,xcup:_nt,xdtri:Snt,Xfr:knt,xfr:Cnt,xharr:Tnt,xhArr:Lnt,Xi:Ent,xi:Ant,xlarr:Mnt,xlArr:Nnt,xmap:Pnt,xnis:Ont,xodot:$nt,Xopf:Dnt,xopf:Rnt,xoplus:znt,xotime:Int,xrarr:Fnt,xrArr:qnt,Xscr:Hnt,xscr:Bnt,xsqcup:Wnt,xuplus:Unt,xutri:jnt,xvee:Gnt,xwedge:Vnt,Yacute:Knt,yacute:Xnt,YAcy:Ynt,yacy:Znt,Ycirc:Jnt,ycirc:Qnt,Ycy:trt,ycy:ert,yen:nrt,Yfr:rrt,yfr:irt,YIcy:ort,yicy:srt,Yopf:lrt,yopf:art,Yscr:crt,yscr:urt,YUcy:frt,yucy:hrt,yuml:drt,Yuml:prt,Zacute:grt,zacute:vrt,Zcaron:mrt,zcaron:yrt,Zcy:brt,zcy:wrt,Zdot:xrt,zdot:_rt,zeetrf:Srt,ZeroWidthSpace:krt,Zeta:Crt,zeta:Trt,zfr:Lrt,Zfr:Ert,ZHcy:Art,zhcy:Mrt,zigrarr:Nrt,zopf:Prt,Zopf:Ort,Zscr:$rt,zscr:Drt,zwj:Rrt,zwnj:zrt},Irt="\xC1",Frt="\xE1",qrt="\xC2",Hrt="\xE2",Brt="\xB4",Wrt="\xC6",Urt="\xE6",jrt="\xC0",Grt="\xE0",Vrt="&",Krt="&",Xrt="\xC5",Yrt="\xE5",Zrt="\xC3",Jrt="\xE3",Qrt="\xC4",tit="\xE4",eit="\xA6",nit="\xC7",rit="\xE7",iit="\xB8",oit="\xA2",sit="\xA9",lit="\xA9",ait="\xA4",cit="\xB0",uit="\xF7",fit="\xC9",hit="\xE9",dit="\xCA",pit="\xEA",git="\xC8",vit="\xE8",mit="\xD0",yit="\xF0",bit="\xCB",wit="\xEB",xit="\xBD",_it="\xBC",Sit="\xBE",kit=">",Cit=">",Tit="\xCD",Lit="\xED",Eit="\xCE",Ait="\xEE",Mit="\xA1",Nit="\xCC",Pit="\xEC",Oit="\xBF",$it="\xCF",Dit="\xEF",Rit="\xAB",zit="<",Iit="<",Fit="\xAF",qit="\xB5",Hit="\xB7",Bit="\xA0",Wit="\xAC",Uit="\xD1",jit="\xF1",Git="\xD3",Vit="\xF3",Kit="\xD4",Xit="\xF4",Yit="\xD2",Zit="\xF2",Jit="\xAA",Qit="\xBA",tot="\xD8",eot="\xF8",not="\xD5",rot="\xF5",iot="\xD6",oot="\xF6",sot="\xB6",lot="\xB1",aot="\xA3",cot='"',uot='"',fot="\xBB",hot="\xAE",dot="\xAE",pot="\xA7",got="\xAD",vot="\xB9",mot="\xB2",yot="\xB3",bot="\xDF",wot="\xDE",xot="\xFE",_ot="\xD7",Sot="\xDA",kot="\xFA",Cot="\xDB",Tot="\xFB",Lot="\xD9",Eot="\xF9",Aot="\xA8",Mot="\xDC",Not="\xFC",Pot="\xDD",Oot="\xFD",$ot="\xA5",Dot="\xFF",Rot={Aacute:Irt,aacute:Frt,Acirc:qrt,acirc:Hrt,acute:Brt,AElig:Wrt,aelig:Urt,Agrave:jrt,agrave:Grt,amp:Vrt,AMP:Krt,Aring:Xrt,aring:Yrt,Atilde:Zrt,atilde:Jrt,Auml:Qrt,auml:tit,brvbar:eit,Ccedil:nit,ccedil:rit,cedil:iit,cent:oit,copy:sit,COPY:lit,curren:ait,deg:cit,divide:uit,Eacute:fit,eacute:hit,Ecirc:dit,ecirc:pit,Egrave:git,egrave:vit,ETH:mit,eth:yit,Euml:bit,euml:wit,frac12:xit,frac14:_it,frac34:Sit,gt:kit,GT:Cit,Iacute:Tit,iacute:Lit,Icirc:Eit,icirc:Ait,iexcl:Mit,Igrave:Nit,igrave:Pit,iquest:Oit,Iuml:$it,iuml:Dit,laquo:Rit,lt:zit,LT:Iit,macr:Fit,micro:qit,middot:Hit,nbsp:Bit,not:Wit,Ntilde:Uit,ntilde:jit,Oacute:Git,oacute:Vit,Ocirc:Kit,ocirc:Xit,Ograve:Yit,ograve:Zit,ordf:Jit,ordm:Qit,Oslash:tot,oslash:eot,Otilde:not,otilde:rot,Ouml:iot,ouml:oot,para:sot,plusmn:lot,pound:aot,quot:cot,QUOT:uot,raquo:fot,reg:hot,REG:dot,sect:pot,shy:got,sup1:vot,sup2:mot,sup3:yot,szlig:bot,THORN:wot,thorn:xot,times:_ot,Uacute:Sot,uacute:kot,Ucirc:Cot,ucirc:Tot,Ugrave:Lot,ugrave:Eot,uml:Aot,Uuml:Mot,uuml:Not,Yacute:Pot,yacute:Oot,yen:$ot,yuml:Dot},zot="&",Iot="'",Fot=">",qot="<",Hot='"',H0={amp:zot,apos:Iot,gt:Fot,lt:qot,quot:Hot};var nh={};const Bot={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 Wot=Ki&&Ki.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(nh,"__esModule",{value:!0});var Zg=Wot(Bot),Uot=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 jot(t){return t>=55296&&t<=57343||t>1114111?"\uFFFD":(t in Zg.default&&(t=Zg.default[t]),Uot(t))}nh.default=jot;var pc=Ki&&Ki.__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 sf=pc(q0),Got=pc(Rot),Vot=pc(H0),Jg=pc(nh),Kot=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Or.decodeXML=B0(Vot.default);Or.decodeHTMLStrict=B0(sf.default);function B0(t){var n=W0(t);return function(r){return String(r).replace(Kot,n)}}var Qg=function(t,n){return t<n?1:-1};Or.decodeHTML=function(){for(var t=Object.keys(Got.default).sort(Qg),n=Object.keys(sf.default).sort(Qg),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=W0(sf.default);function f(h){return h.substr(-1)!==";"&&(h+=";"),u(h)}return function(h){return String(h).replace(a,f)}}();function W0(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={},U0=Ki&&Ki.__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 Xot=U0(H0),j0=V0(Xot.default),G0=K0(j0);Nn.encodeXML=Z0(j0);var Yot=U0(q0),rh=V0(Yot.default),Zot=K0(rh);Nn.encodeHTML=Qot(rh,Zot);Nn.encodeNonAsciiHTML=Z0(rh);function V0(t){return Object.keys(t).sort().reduce(function(n,r){return n[t[r]]="&"+r+";",n},{})}function K0(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 X0=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,Jot=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?Jot(t):t.charCodeAt(0)).toString(16).toUpperCase()+";"}function Qot(t,n){return function(r){return r.replace(n,function(o){return t[o]}).replace(X0,gc)}}var Y0=new RegExp(G0.source+"|"+X0.source,"g");function tst(t){return t.replace(Y0,gc)}Nn.escape=tst;function est(t){return t.replace(G0,gc)}Nn.escapeUTF8=est;function Z0(t){return function(n){return n.replace(Y0,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}})})(F0);function nst(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function tv(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 rst(t,n,r){return n&&tv(t.prototype,n),r&&tv(t,r),t}function J0(t,n){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=ist(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 ist(t,n){if(!!t){if(typeof t=="string")return ev(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 ev(t,n)}}function ev(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 ost=F0,nv={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:sst()};function sst(){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 ia(0,5).forEach(function(n){ia(0,5).forEach(function(r){ia(0,5).forEach(function(o){return lst(n,r,o,t)})})}),ia(0,23).forEach(function(n){var r=n+232,o=Q0(n*10+8);t[r]="#"+o+o+o}),t}function lst(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]=ast([u,f,h])}function Q0(t){for(var n=t.toString(16);n.length<2;)n="0"+n;return n}function ast(t){var n=[],r=J0(t),o;try{for(r.s();!(o=r.n()).done;){var a=o.value;n.push(Q0(a))}}catch(u){r.e(u)}finally{r.f()}return"#"+n.join("")}function rv(t,n,r,o){var a;return n==="text"?a=hst(r,o):n==="display"?a=ust(t,r,o):n==="xterm256Foreground"?a=ya(t,o.colors[r]):n==="xterm256Background"?a=ba(t,o.colors[r]):n==="rgb"&&(a=cst(t,r)),a}function cst(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 ma(t,(r===38?"color:#":"background-color:#")+a)}function ust(t,n,r){n=parseInt(n,10);var o={"-1":function(){return"<br/>"},0:function(){return t.length&&ty(t)},1:function(){return si(t,"b")},3:function(){return si(t,"i")},4:function(){return si(t,"u")},8:function(){return ma(t,"display:none")},9:function(){return si(t,"strike")},22:function(){return ma(t,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return ov(t,"i")},24:function(){return ov(t,"u")},39:function(){return ya(t,r.fg)},49:function(){return ba(t,r.bg)},53:function(){return ma(t,"text-decoration:overline")}},a;return o[n]?a=o[n]():4<n&&n<7?a=si(t,"blink"):29<n&&n<38?a=ya(t,r.colors[n-30]):39<n&&n<48?a=ba(t,r.colors[n-40]):89<n&&n<98?a=ya(t,r.colors[8+(n-90)]):99<n&&n<108&&(a=ba(t,r.colors[8+(n-100)])),a}function ty(t){var n=t.slice(0);return t.length=0,n.reverse().map(function(r){return"</"+r+">"}).join("")}function ia(t,n){for(var r=[],o=t;o<=n;o++)r.push(o);return r}function fst(t){return function(n){return(t===null||n.category!==t)&&t!=="all"}}function iv(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 hst(t,n){return n.escapeXML?ost.encodeXML(t):t}function si(t,n,r){return r||(r=""),t.push(n),"<".concat(n).concat(r?' style="'.concat(r,'"'):"",">")}function ma(t,n){return si(t,"span",n)}function ya(t,n){return si(t,"span","color:"+n)}function ba(t,n){return si(t,"span","background-color:"+n)}function ov(t,n){var r;if(t.slice(-1)[0]===n&&(r=t.pop()),r)return"</"+n+">"}function dst(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=J0(j),Q;try{for(it.s();!(Q=it.n()).done;){var dt=Q.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 M=[],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;M.push(0),L=t.length}return M}function pst(t,n,r){return n!=="text"&&(t=t.filter(fst(iv(r))),t.push({token:n,data:r,category:iv(r)})),t}var gst=function(){function t(n){nst(this,t),n=n||{},n.colors&&(n.colors=Object.assign({},nv.colors,n.colors)),this.options=Object.assign({},nv,n),this.stack=[],this.stickyStack=[]}return rst(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=rv(a,h.token,h.data,u);p&&f.push(p)}),dst(r.join(""),u,function(h,p){var g=rv(a,h,p,u);g&&f.push(g),u.stream&&(o.stickyStack=pst(o.stickyStack,h,p))}),a.length&&f.push(ty(a)),f.join("")}}]),t}(),vst=gst;function mst(t,n){return n&&t.endsWith(n)}async function ey(t,n,r){const o=encodeURI(`${t}:${n}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function ny(t){return new vst({fg:t?"#FFF":"#000",bg:t?"#000":"#FFF"})}const vc=zC(),yst=Xk(vc),bst={"h-full":"",class:"scrolls"},wst={key:0,class:"scrolls scrolls-rounded task-error"},xst=["innerHTML"],_st={key:1,class:"scrolls scrolls-rounded task-error"},Sst=["onClickPassive"],kst={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},Cst=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=ny(g);return m.map(x=>{var M,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=(M=L.stackStr)==null?void 0:M.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,M;const g=n.file,m=(M=(S=g==null?void 0:g.tasks)==null?void 0:S.flatMap(A=>r(A,0)))!=null?M:[],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(of.value.root)?g.slice(of.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=Zi("tooltip");return ht(),Mt("div",bst,[Z(u).length?(ht(!0),Mt(ue,{key:0},lr(Z(u),x=>{var S,M,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(Jt(x.name)+" ",1),(M=x.result)!=null&&M.htmlError?(ht(),Mt("div",wst,[ut("pre",{innerHTML:x.result.htmlError},null,8,xst)])):(A=x.result)!=null&&A.error?(ht(),Mt("div",_st,[ut("pre",null,[ut("b",null,Jt(x.result.error.name||x.result.error.nameStr),1),fn(": "+Jt(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," - "+Jt(f(L.file))+":"+Jt(h(L))+":"+Jt(p(L)),1),Z(mst)(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(ey)(L.file,h(L),p(L))},null,40,Sst)),[[b,"Open in Editor",void 0,{bottom:!0}]]):ye("",!0)])}),128))])):ye("",!0)],4)])}),128)):(ht(),Mt("div",kst," All tests passed in this file "))])}}});const Tst=Yo(Cst,[["__scopeId","data-v-cbc93645"]]),Lst={border:"b base","p-4":""},Est=["innerHTML"],Ast=["textContent"],Mst=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",Lst,[ut("div",{"text-xs":"","mb-1":"",class:ge(n.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Jt(r(n.time))+" | "+Jt(n.taskName)+" | "+Jt(n.type),3),n.html?(ht(),Mt("pre",{key:0,"data-type":"html",innerHTML:n.content},null,8,Est)):(ht(),Mt("pre",{key:1,"data-type":"text",textContent:Jt(n.content)},null,8,Ast))]))}}),Nst={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},Pst={key:1,p6:""},Ost=ut("pre",{inline:""},"console.log(foo)",-1),$st=oe({__name:"ViewConsoleOutput",setup(t){const n=St(()=>{const o=z0.value;if(o){const a=ny(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?cT(a).slice(1).join(" > "):"-"}return(o,a)=>{var f;const u=Mst;return(f=Z(n))!=null&&f.length?(ht(),Mt("div",Nst,[(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",Pst,[fn(" Log something in your test and it would print here. (e.g. "),Ost,fn(") ")]))}}});var Ji={exports:{}};(function(t,n){(function(r,o){t.exports=o()})(Ki,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],M=/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),Q=M&&r.match(/Version\/(\d*\.\d*)/);Q&&(Q=Number(Q[1])),Q&&Q>=15&&(M=!1,m=!0);var dt=G&&(b||M&&(Q==null||Q<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 J(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=J(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 Qi=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(_,N,O){this.level=_,this.from=N,this.to=O}return function(_,N){var O=N=="ltr"?"L":"R";if(_.length==0||N=="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",xo=Ce==cn?Ce?"L":"R":O,Jr=Pe;Jr<Ae;++Jr)q[Jr]=xo;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=N=="rtl"?1:0;for(++ze;ze<B&&q[ze]!="L";++ze);for(var Qe=Cr;Qe<ze;)if(y.test(q[Qe])){Cr<Qe&&(Ke.splice(Li,0,new w(1,Cr,Qe)),Li+=Ei);var _o=Qe;for(++Qe;Qe<ze&&y.test(q[Qe]);++Qe);Ke.splice(Li,0,new w(2,_o,Qe)),Li+=Ei,Cr=Qe}else++Qe;Cr<ze&&Ke.splice(Li,0,new w(1,Cr,ze))}return N=="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)))),N=="rtl"?Ke.reverse():Ke}}();function be(e,i){var l=e.order;return l==null&&(l=e.order=Qi(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 Jo(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=Jo(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 yl(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 Jo(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 ts(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 to;function bl(e){if(to!=null)return to;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:to=s.right-l.right<3}var es=`
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")}(),Jn=null;function wl(e){if(Jn!=null)return Jn;var i=I(e,k("span","x")),l=i.getBoundingClientRect(),s=W(i,0,1).getBoundingClientRect();return Jn=Math.abs(l.left-s.left)>1}var Fn={},Hr={};function xl(e,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Fn[e]=i}function eo(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 _l(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 ns(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 no(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 Qn(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):Vy(i,At(e,i.line).text.length)}function Vy(e,i){var l=e.ch;return l==null||l>i?R(e.line,i):l<0?R(e.line,0):e}function bh(e,i){for(var l=[],s=0;s<i.length;s++)l[s]=Ft(e,i[s]);return l}var Sl=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 Sl?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 Sl(i,this.maxLookAhead):i};function wh(e,i,l,s){var c=[e.state.modeGen],d={};Th(e,i.text,e.doc.mode,l,function(_,N){return c.push(_,N)},d,s);for(var v=l.state,y=function(_){l.baseTokens=c;var N=e.state.overlays[_],O=1,B=0;l.state=!0,Th(e,i.text,N.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(N.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 xh(e,i,l){if(!i.styles||i.styles[0]!=e.state.modeGen){var s=rs(e,re(i)),c=i.text.length>e.options.maxHighlightLength&&yr(e.doc.mode,s.state),d=wh(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 rs(e,i,l){var s=e.doc,c=e.display;if(!s.mode.startState)return new tr(s,!0,i);var d=Ky(e,i,l),v=d>s.first&&At(s,d-1).stateAfter,y=v?tr.fromSaved(s,v,d):new tr(s,ns(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==""&&_h(c,l.state);!d.eol();)Sc(c,d,l.state),d.start=d.pos}function _h(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 Sh=function(e,i,l){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=i||null,this.state=l};function kh(e,i,l,s){var c=e.doc,d=c.mode,v;i=Ft(c,i);var y=At(c,i.line),w=rs(e,i.line,l),_=new ke(y.text,e.options.tabSize,w),N;for(s&&(N=[]);(s||_.pos<i.ch)&&!_.eol();)_.start=_.pos,v=Sc(d,_,w.state),s&&N.push(new Sh(_,v,yr(c.mode,w.state)));return s?N:new Sh(_,v,w.state)}function Ch(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 Th(e,i,l,s,c,d,v){var y=l.flattenSpans;y==null&&(y=e.options.flattenSpans);var w=0,_=null,N=new ke(i,e.options.tabSize,s),O,B=e.options.addModeClass&&[null];for(i==""&&Ch(_h(l,s.state),d);!N.eol();){if(N.pos>e.options.maxHighlightLength?(y=!1,v&&_c(e,i,s,N.pos),N.pos=i.length,O=null):O=Ch(Sc(l,N,s.state,B),d),B){var q=B[0].name;q&&(O="m-"+(O?q+" "+O:q))}if(!y||_!=O){for(;w<N.start;)w=Math.min(N.start,w+5e3),c(w,_);_=O}N.start=N.pos}for(;w<N.pos;){var X=Math.min(N.pos,w+5e3);c(X,_),w=X}}function Ky(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 Sl?_.lookAhead:0)<=d.modeFrontier))return y;var N=V(w.text,null,e.options.tabSize);(c==null||s>N)&&(c=y-1,s=N)}return c}function Xy(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 Sl)||s+c.lookAhead<i)){l=s+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,l)}}var Lh=!1,wr=!1;function Yy(){Lh=!0}function Zy(){wr=!0}function kl(e,i,l){this.marker=e,this.from=i,this.to=l}function is(e,i){if(e)for(var l=0;l<e.length;++l){var s=e[l];if(s.marker==i)return s}}function Jy(e,i){for(var l,s=0;s<e.length;++s)e[s]!=i&&(l||(l=[])).push(e[s]);return l}function Qy(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 tb(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 kl(v,d.from,w?null:d.to))}}return s}function eb(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 kl(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=tb(l,c,v),w=eb(s,d,v),_=i.text.length==1,N=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=is(w,B.marker);q?_&&(B.to=q.to==null?null:q.to+N):B.to=c}}if(w)for(var X=0;X<w.length;++X){var rt=w[X];if(rt.to!=null&&(rt.to+=N),rt.from==null){var ct=is(y,rt.marker);ct||(rt.from=N,_&&(y||(y=[])).push(rt))}else rt.from+=N,_&&(y||(y=[])).push(rt)}y&&(y=Eh(y)),w&&w!=y&&(w=Eh(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 kl(y[Tt].marker,null,null));for(var Dt=0;Dt<_t;++Dt)mt.push(yt);mt.push(w)}return mt}function Eh(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 nb(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 N=[w,1],O=K(_.from,y.from),B=K(_.to,y.to);(O<0||!v.inclusiveLeft&&!O)&&N.push({from:_.from,to:y.from}),(B>0||!v.inclusiveRight&&!B)&&N.push({from:y.to,to:_.to}),c.splice.apply(c,N),w+=N.length-3}}return c}function Ah(e){var i=e.markedSpans;if(!!i){for(var l=0;l<i.length;++l)i[l].marker.detachLine(e);e.markedSpans=null}}function Mh(e,i){if(!!i){for(var l=0;l<i.length;++l)i[l].marker.attachLine(e);e.markedSpans=i}}function Cl(e){return e.inclusiveLeft?-1:0}function Tl(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)||Cl(e)-Cl(i);if(d)return-d;var v=K(s.to,c.to)||Tl(e)-Tl(i);return v||i.id-e.id}function Nh(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 Ph(e){return Nh(e,!0)}function Ll(e){return Nh(e,!1)}function rb(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 Oh(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),N=K(_.from,l)||Cl(w.marker)-Cl(c),O=K(_.to,s)||Tl(w.marker)-Tl(c);if(!(N>=0&&O<=0||N<=0&&O>=0)&&(N<=0&&(w.marker.inclusiveRight&&c.inclusiveLeft?K(_.to,l)>=0:K(_.to,l)>0)||N>=0&&(w.marker.inclusiveRight&&c.inclusiveLeft?K(_.from,s)<=0:K(_.from,s)<0)))return!0}}}function qn(e){for(var i;i=Ph(e);)e=i.find(-1,!0).line;return e}function ib(e){for(var i;i=Ll(e);)e=i.find(1,!0).line;return e}function ob(e){for(var i,l;i=Ll(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 $h(e,i){if(i>e.lastLine())return i;var l=At(e,i),s;if(!Ur(e,l))return i;for(;s=Ll(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,is(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 El(e){if(e.height==0)return 0;for(var i=e.text.length,l,s=e;l=Ph(s);){var c=l.find(0,!0);s=c.from.line,i+=c.from.ch-c.to.ch}for(s=e;l=Ll(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=El(i.maxLine),i.maxLineChanged=!0,l.iter(function(s){var c=El(s);c>i.maxLineLength&&(i.maxLineLength=c,i.maxLine=s)})}var ro=function(e,i,l){this.text=e,Mh(this,i),this.height=l?l(this):1};ro.prototype.lineNo=function(){return re(this)},Ze(ro);function sb(e,i,l,s){e.text=i,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Ah(e),Mh(e,l);var c=s?s(e):1;c!=e.height&&Dn(e,c)}function lb(e){e.parent=null,Ah(e)}var ab={},cb={};function Dh(e,i){if(!e||/^\s*$/.test(e))return null;var l=i.addModeClass?cb:ab;return l[e]||(l[e]=e.replace(/\S+/g,"cm-$&"))}function Rh(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=fb,bl(e.display.measure)&&(v=be(d,e.doc.direction))&&(s.addToken=db(s.addToken,v)),s.map=[];var y=i!=e.display.externalMeasured&&re(d);pb(d,s,xh(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 ub(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 fb(e,i,l,s,c,d,v){if(!!i){var y=e.splitSpaces?hb(i,e.trailingSpace):i,w=e.cm.state.specialChars,_=!1,N;if(!w.test(i))e.col+=i.length,N=document.createTextNode(y),e.map.push(e.pos,e.pos+i.length,N),p&&g<9&&(_=!0),e.pos+=i.length;else{N=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?N.appendChild(k("span",[X])):N.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=N.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=N.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?N.appendChild(k("span",[rt])):N.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",[N],_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(N)}}function hb(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 db(e,i){return function(l,s,c,d,v,y,w){c=c?c+" cm-force-border":"cm-force-border";for(var _=l.pos,N=_+s.length;;){for(var O=void 0,B=0;B<i.length&&(O=i[B],!(O.to>_&&O.from<=_));B++);if(O.to>=N)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 zh(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 pb(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]),Dh(l[v+1],i.cm.options));return}for(var y=c.length,w=0,_=1,N="",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)zh(i,0,yt[_e]);if(mt&&(mt.from||0)==w){if(zh(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(N){var ln=w+N.length;if(!mt){var Ee=ln>wn?N.slice(0,wn-w):N;i.addToken(i,Ee,O?O+X:X,ct,w+Ee.length==q?rt:"",B,_t)}if(ln>=wn){N=N.slice(wn-w),w=wn;break}w=ln,ct=""}N=c.slice(d,d=l[_++]),O=Dh(l[_++],i.cm.options)}}}function Ih(e,i,l){this.line=i,this.rest=ob(i),this.size=this.rest?re(lt(this.rest))-l+1:1,this.node=this.text=null,this.hidden=Ur(e,i)}function Al(e,i,l){for(var s=[],c,d=i;d<l;d=c){var v=new Ih(e.doc,At(e.doc,d),d);c=d+v.size,s.push(v)}return s}var io=null;function gb(e){io?io.ops.push(e):e.ownsGroup=io={ops:[e],delayedCallbacks:[]}}function vb(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 mb(e,i){var l=e.ownsGroup;if(!!l)try{vb(l)}finally{io=null,i(l)}}var os=null;function Oe(e,i){var l=Jo(e,i);if(!!l.length){var s=Array.prototype.slice.call(arguments,2),c;io?c=io.delayedCallbacks:os?c=os:(c=os=[],setTimeout(yb,0));for(var d=function(y){c.push(function(){return l[y].apply(null,s)})},v=0;v<l.length;++v)d(v)}}function yb(){var e=os;os=null;for(var i=0;i<e.length;++i)e[i]()}function Fh(e,i,l,s){for(var c=0;c<i.changes.length;c++){var d=i.changes[c];d=="text"?wb(e,i):d=="gutter"?Hh(e,i,l,s):d=="class"?Ac(e,i):d=="widget"&&xb(e,i,s)}i.changes=null}function ss(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 bb(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=ss(i);i.background=s.insertBefore(k("div",null,l),s.firstChild),e.display.input.setUneditable(i.background)}}function qh(e,i){var l=e.display.externalMeasured;return l&&l.line==i.line?(e.display.externalMeasured=null,i.measure=l.measure,l.built):Rh(e,i)}function wb(e,i){var l=i.text.className,s=qh(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){bb(e,i),i.line.wrapClass?ss(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 Hh(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=ss(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=ss(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,N=d.hasOwnProperty(_)&&d[_];N&&y.appendChild(k("div",[N],"CodeMirror-gutter-elt","left: "+s.gutterLeft[_]+"px; width: "+s.gutterWidth[_]+"px"))}}}function xb(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);Bh(e,i,l)}function _b(e,i,l,s){var c=qh(e,i);return i.text=i.node=c.pre,c.bgClass&&(i.bgClass=c.bgClass),c.textClass&&(i.textClass=c.textClass),Ac(e,i),Hh(e,i,l,s),Bh(e,i,s),i.node}function Bh(e,i,l){if(Wh(e,i.line,i,l,!0),i.rest)for(var s=0;s<i.rest.length;s++)Wh(e,i.rest[s],i,l,!1)}function Wh(e,i,l,s,c){if(!!i.widgets)for(var d=ss(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"),Sb(w,_,l,s),e.display.input.setUneditable(_),c&&w.above?d.insertBefore(_,l.gutter||l.text):d.appendChild(_),Oe(w,"redraw")}}function Sb(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 ls(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 Ml(e){return e.lineSpace.offsetTop}function Mc(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Uh(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 kb(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 jh(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 Cb(e,i){i=qn(i);var l=re(i),s=e.display.externalMeasured=new Ih(e.doc,i,l);s.lineN=l;var c=s.built=Rh(e,s);return s.text=c.pre,I(e.display.lineMeasure,c.pre),s}function Gh(e,i,l,s){return nr(e,oo(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 oo(e,i){var l=re(i),s=Pc(e,l);s&&!s.text?s=null:s&&s.changes&&(Fh(e,s,l,zc(e)),e.curOp.forceUpdate=!0),s||(s=Cb(e,i));var c=jh(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||(kb(e,i.view,i.rect),i.hasHeights=!0),v=Lb(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 Vh={left:0,right:0,top:0,bottom:0};function Kh(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 Tb(e,i){var l=Vh;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 Lb(e,i,l,s){var c=Kh(i.map,l,s),d=c.node,v=c.start,y=c.end,w=c.collapse,_;if(d.nodeType==3){for(var N=0;N<4;N++){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():_=Tb(W(d,v,y).getClientRects(),s),_.left||_.right||v==0)break;y=v,v=v-1,w="right"}p&&g<11&&(_=Eb(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+lo(e.display),top:B.top,bottom:B.bottom}:_=Vh}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 Eb(e,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!wl(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 Xh(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 Yh(e){e.display.externalMeasure=null,U(e.display.lineMeasure);for(var i=0;i<e.display.view.length;i++)Xh(e.display.view[i])}function as(e){Yh(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Zh(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+=ls(l[c]));return s}function Nl(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+=Ml(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:Zh(Gt(e)));l.left+=w,l.right+=w}return l.top+=v,l.bottom+=v,l}function Qh(e,i,l){if(l=="div")return i;var s=i.left,c=i.top;if(l=="page")s-=Zh(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 Pl(e,i,l,s,c){return s||(s=At(e.doc,i.line)),Nl(e,s,Gh(e,s,i.ch,c),l)}function Hn(e,i,l,s,c,d){s=s||At(e.doc,i.line),c||(c=oo(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,Nl(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 N(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=N(w,O,_=="before");return B!=null&&(q.other=N(w,B,_!="before")),q}function td(e,i){var l=0;i=Ft(e.doc,i),e.options.lineWrapping||(l=lo(e.display)*i.ch);var s=At(e.doc,i.line),c=xr(s)+Ml(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=Qn(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=Ab(e,v,c,i,l),w=rb(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 ed(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 nd(e,i,l,s){l||(l=oo(e,i));var c=Nl(e,i,nr(e,l,s),"line").top;return ed(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 Ab(e,i,l,s,c){c-=xr(i);var d=oo(e,i),v=Oc(i),y=0,w=i.text.length,_=!0,N=be(i,e.doc.direction);if(N){var O=(e.options.lineWrapping?Nb:Mb)(e,i,l,d,N,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 Mb(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,N=Hn(e,R(l,_?w.from:w.to,_?"after":"before"),"line",i,s);Rc(N,d,v,!0)&&N.top>v&&(w=c[y-1])}return w}function Nb(e,i,l,s,c,d,v){var y=ed(e,i,s,v),w=y.begin,_=y.end;/\s/.test(i.text.charAt(_-1))&&_--;for(var N=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;(!N||O>ct)&&(N=q,O=ct)}}return N||(N=c[c.length-1]),N.from<w&&(N={from:w,to:N.to,level:N.level}),N.to>_&&(N={from:N.from,to:_,level:N.level}),N}var wi;function so(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 lo(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 rd(e){var i=so(e.display),l=e.options.lineWrapping,s=l&&Math.max(5,e.display.scroller.clientWidth/lo(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=rd(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 N=V(_,_.length,e.options.tabSize)-_.length;w=R(w.line,Math.max(0,Math.round((d-Uh(e.display).left)/lo(e.display))-N))}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&&$h(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=Ol(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=Ol(e,i,i,-1);v?(c.view=c.view.slice(0,v.index),c.viewTo=v.lineN):Gr(e)}else{var y=Ol(e,i,i,-1),w=Ol(e,l,l+s,1);y&&w?(c.view=c.view.slice(0,y.index).concat(Al(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 Ol(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 Pb(e,i,l){var s=e.display,c=s.view;c.length==0||i>=s.viewTo||l<=s.viewFrom?(s.view=Al(e,i,l),s.viewFrom=i):(s.viewFrom>i?s.view=Al(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(Al(e,s.viewTo,l)):s.viewTo>l&&(s.view=s.view.slice(0,_i(e,l)))),s.viewTo=l}function id(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 cs(e){e.display.input.showSelection(e.display.input.prepareSelection())}function od(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 N=v(e,w);N&&qc(e,N,c)}else(_||e.options.showCursorWhenSelecting)&&qc(e,w.head,c);_||Ob(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=Pl(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 $l(e,i){return e.top-i.top||e.left-i.left}function Ob(e,i,l){var s=e.display,c=e.doc,d=document.createDocumentFragment(),v=Uh(e.display),y=v.left,w=Math.max(s.sizerWidth,bi(e)-s.sizer.offsetLeft)-v.right,_=c.direction=="ltr";function N(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 Pl(e,R(yt,Ee),"div",Pt,an)}function wn(Ee,an,He){var Pe=nd(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"),xo=Tt==null&&Ee==0,Jr=Dt==null&&an==Ut,Ke=Pe==0,rr=!ln||Pe==ln.length-1;if(cn.top-Ce.top<=3){var ze=(_?xo:Jr)&&Ke,hu=(_?Jr:xo)&&rr,Cr=ze?y:(Ae?Ce:cn).left,Li=hu?w:(Ae?cn:Ce).right;N(Cr,Ce.top,Li-Cr,Ce.bottom)}else{var Ei,Qe,_o,du;Ae?(Ei=_&&xo&&Ke?y:Ce.left,Qe=_?w:wn(Ee,He,"before"),_o=_?y:wn(an,He,"after"),du=_&&Jr&&rr?w:cn.right):(Ei=_?wn(Ee,He,"before"):y,Qe=!_&&xo&&Ke?w:Ce.right,_o=!_&&Jr&&rr?y:cn.left,du=_?wn(an,He,"after"):w),N(Ei,Ce.top,Qe-Ei,Ce.bottom),Ce.bottom<cn.top&&N(y,Ce.bottom,null,cn.top),N(_o,cn.top,du-_o,cn.bottom)}(!pe||$l(Ce,pe)<0)&&(pe=Ce),$l(cn,pe)<0&&(pe=cn),(!Re||$l(Ce,Re)<0)&&(Re=Ce),$l(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?(N(mt.right,mt.top,null,mt.bottom),N(y,_t.top,_t.left,_t.bottom)):N(mt.right,mt.top,_t.left-mt.right,mt.bottom)),mt.bottom<_t.top&&N(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()||ao(e),i.cursorDiv.style.visibility=(l=!l)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function sd(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&&ao(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 ao(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 Dl(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,N=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&&(N=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,_),ld(y.line),y.rest))for(var X=0;X<y.rest.length;X++)ld(y.rest[X]);if(N>e.display.sizerWidth){var rt=Math.ceil(N/lo(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 ld(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 Rl(e,i,l){var s=l&&l.top!=null?Math.max(0,l.top):e.scroller.scrollTop;s=Math.floor(s-Ml(e));var c=l&&l.bottom!=null?l.bottom:s+e.wrapper.clientHeight,d=Qn(i,s),v=Qn(i,c);if(l&&l.ensure){var y=l.ensure.from.line,w=l.ensure.to.line;y<d?(d=y,v=Qn(i,xr(At(i,y))+e.wrapper.clientHeight)):Math.min(w,i.lastLine())>=v&&(d=Qn(i,xr(At(i,w))-e.wrapper.clientHeight),v=w)}return{from:d,to:Math.max(v,d+1)}}function $b(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-Ml(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 Db(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),N=e.doc.scrollTop,O=e.doc.scrollLeft;if(_.scrollTop!=null&&(fs(e,_.scrollTop),Math.abs(e.doc.scrollTop-N)>1&&(v=!0)),_.scrollLeft!=null&&(Si(e,_.scrollLeft),Math.abs(e.doc.scrollLeft-O)>1&&(v=!0)),!v)break}return c}function Rb(e,i){var l=Uc(e,i);l.scrollTop!=null&&fs(e,l.scrollTop),l.scrollLeft!=null&&Si(e,l.scrollLeft)}function Uc(e,i){var l=e.display,s=so(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 N=Math.min(i.top,(_?y:i.bottom)-d);N!=c&&(v.scrollTop=N)}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&&(zl(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+i)}function co(e){zl(e);var i=e.getCursor();e.curOp.scrollToPos={from:i,to:i,margin:e.options.cursorScrollMargin}}function us(e,i,l){(i!=null||l!=null)&&zl(e),i!=null&&(e.curOp.scrollLeft=i),l!=null&&(e.curOp.scrollTop=l)}function zb(e,i){zl(e),e.curOp.scrollToPos=i}function zl(e){var i=e.curOp.scrollToPos;if(i){e.curOp.scrollToPos=null;var l=td(e,i.from),s=td(e,i.to);ad(e,l,s,i.margin)}}function ad(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});us(e,c.scrollLeft,c.scrollTop)}function fs(e,i){Math.abs(e.doc.scrollTop-i)<2||(a||Vc(e,{top:i}),cd(e,i,!0),a&&Vc(e),ps(e,100))}function cd(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,pd(e),e.display.scroller.scrollLeft!=i&&(e.display.scroller.scrollLeft=i),e.display.scrollbars.setScrollLeft(i))}function hs(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 ds=function(){};ds.prototype.update=function(){return{bottom:0,right:0}},ds.prototype.setScrollLeft=function(){},ds.prototype.setScrollTop=function(){},ds.prototype.clear=function(){};function uo(e,i){i||(i=hs(e));var l=e.display.barWidth,s=e.display.barHeight;ud(e,i);for(var c=0;c<4&&l!=e.display.barWidth||s!=e.display.barHeight;c++)l!=e.display.barWidth&&e.options.lineWrapping&&Dl(e),ud(e,hs(e)),l=e.display.barWidth,s=e.display.barHeight}function ud(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 fd={native:ki,null:ds};function hd(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ft(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new fd[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):fs(e,i)},e),e.display.scrollbars.addClass&&Et(e.display.wrapper,e.display.scrollbars.addClass)}var Ib=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:++Ib,markArrays:null},gb(e.curOp)}function Ti(e){var i=e.curOp;i&&mb(i,function(l){for(var s=0;s<l.ops.length;s++)l.ops[s].cm.curOp=null;Fb(l)})}function Fb(e){for(var i=e.ops,l=0;l<i.length;l++)qb(i[l]);for(var s=0;s<i.length;s++)Hb(i[s]);for(var c=0;c<i.length;c++)Bb(i[c]);for(var d=0;d<i.length;d++)Wb(i[d]);for(var v=0;v<i.length;v++)Ub(i[v])}function qb(e){var i=e.cm,l=i.display;Gb(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 Il(i,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Hb(e){e.updatedDisplay=e.mustUpdate&&Gc(e.cm,e.update)}function Bb(e){var i=e.cm,l=i.display;e.updatedDisplay&&Dl(i),e.barMeasure=hs(i),l.maxLineChanged&&!i.options.lineWrapping&&(e.adjustWidthTo=Gh(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 Wb(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)&&uo(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&&sd(e.cm)}function Ub(e){var i=e.cm,l=i.display,s=i.doc;if(e.updatedDisplay&&dd(i,e.update),l.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(l.wheelStartX=l.wheelStartY=null),e.scrollTop!=null&&cd(i,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Si(i,e.scrollLeft,!0,!0),e.scrollToPos){var c=Db(i,Ft(s,e.scrollToPos.from),Ft(s,e.scrollToPos.to),e.scrollToPos.margin);$b(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 Je(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 ps(e,i){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(i,J(jb,e))}function jb(e){var i=e.doc;if(!(i.highlightFrontier>=e.display.viewTo)){var l=+new Date+e.options.workTime,s=rs(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=wh(e,d,s,!0);y&&(s.state=y),d.styles=w.styles;var _=d.styleClasses,N=w.classes;N?d.styleClasses=N:_&&(d.styleClasses=null);for(var O=!v||v.length!=d.styles.length||_!=N&&(!_||!N||_.bgClass!=N.bgClass||_.textClass!=N.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 ps(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 Il=function(e,i,l){var s=e.display;this.viewport=i,this.visible=Rl(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=[]};Il.prototype.signal=function(e,i){Ye(e,i)&&this.events.push(arguments)},Il.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ve.apply(null,this.events[e])};function Gb(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 Vb(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 Kb(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&&id(e)==0)return!1;gd(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=$h(e.doc,v));var y=d!=l.viewFrom||v!=l.viewTo||l.lastWrapHeight!=i.wrapperHeight||l.lastWrapWidth!=i.wrapperWidth;Pb(e,d,v),l.viewOffset=xr(At(e.doc,l.viewFrom)),e.display.mover.style.top=l.viewOffset+"px";var w=id(e);if(!y&&w==0&&!i.force&&l.renderedView==l.view&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo))return!1;var _=Vb(e);return w>4&&(l.lineDiv.style.display="none"),Xb(e,l.updateLineNumbers,i.dims),w>4&&(l.lineDiv.style.display=""),l.renderedView=l.view,Kb(_),U(l.cursorDiv),U(l.selectionDiv),l.gutters.style.height=l.sizer.style.minHeight=0,y&&(l.lastWrapHeight=i.wrapperHeight,l.lastWrapWidth=i.wrapperWidth,ps(e,400)),l.updateLineNumbers=null,!0}function dd(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=Rl(e.display,e.doc,l),i.visible.from>=e.display.viewFrom&&i.visible.to<=e.display.viewTo)break}else s&&(i.visible=Rl(e.display,e.doc,l));if(!Gc(e,i))break;Dl(e);var c=hs(e);cs(e),uo(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 Il(e,i);if(Gc(e,l)){Dl(e),dd(e,l);var s=hs(e);cs(e),uo(e,s),Xc(e,s),l.finish()}}function Xb(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,N=0;N<w.length;N++){var O=w[N];if(!O.hidden)if(!O.node||O.node.parentNode!=d){var B=_b(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),Fh(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 pd(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 gd(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 vd(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 gs(e){vd(e.display),on(e),pd(e)}function Yb(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),vd(c),l.init(c)}var Fl=0,Sr=null;p?Sr=-.53:a?Sr=15:x?Sr=-.7:A&&(Sr=-1/3);function md(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 Zb(e){var i=md(e);return i.x*=Sr,i.y*=Sr,i}function yd(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=md(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 N=i.target,O=v.view;N!=y;N=N.parentNode)for(var B=0;B<O.length;B++)if(O[B].node==N){e.display.currentWheelTarget=N;break t}}if(s&&!a&&!M&&d!=null){c&&_&&fs(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})}Fl<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*Fl+_t)/(Fl+1),++Fl)}},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()),N=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?N:_,O?_:N))}}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 bd(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(bd(c.anchor,i),bd(c.head,i)))}return Bn(e.cm,l,e.sel.primIndex)}function wd(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 Jb(e,i,l){for(var s=[],c=R(e.first,0),d=c,v=0;v<i.length;v++){var y=i[v],w=wd(y.from,c,d),_=wd(Kr(y),c,d);if(c=y.to,d=_,l=="around"){var N=e.sel.ranges[v],O=K(N.head,N.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 Jc(e){e.doc.mode=mr(e.options,e.doc.modeOption),vs(e)}function vs(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,ps(e,100),e.state.modeGen++,e.curOp&&on(e)}function xd(e,i){return i.from.ch==0&&i.to.ch==0&&lt(i.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Qc(e,i,l,s){function c(_t){return l?l[_t]:null}function d(_t,yt,Tt){sb(_t,yt,Tt,s),Oe(_t,"change",_t,i)}function v(_t,yt){for(var Tt=[],Dt=_t;Dt<yt;++Dt)Tt.push(new ro(_[Dt],c(Dt),s));return Tt}var y=i.from,w=i.to,_=i.text,N=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(xd(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(N==O)if(_.length==1)d(N,N.text.slice(0,y.ch)+B+N.text.slice(w.ch),q);else{var ct=v(1,_.length-1);ct.push(new ro(B+N.text.slice(w.ch),q,s)),d(N,N.text.slice(0,y.ch)+_[0],c(0)),e.insert(y.line+1,ct)}else if(_.length==1)d(N,N.text.slice(0,y.ch)+_[0]+O.text.slice(w.ch),c(0)),e.remove(y.line+1,X);else{d(N,N.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 _d(e,i){if(i.cm)throw new Error("This document is already in use.");e.doc=i,i.cm=e,Fc(e),Jc(e),Sd(e),e.options.direction=i.direction,e.options.lineWrapping||Ec(e),e.options.mode=i.modeOption,on(e)}function Sd(e){(e.doc.direction=="rtl"?Et:ft)(e.display.lineDiv,"CodeMirror-rtl")}function Qb(e){bn(e,function(){Sd(e),on(e)})}function ql(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 Td(e,l,i.from.line,i.to.line+1),Xr(e,function(s){return Td(s,l,i.from.line,i.to.line+1)},!0),l}function kd(e){for(;e.length;){var i=lt(e);if(i.ranges)e.pop();else break}}function tw(e,i){if(i)return kd(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 Cd(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=tw(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)&&Hl(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 ew(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 nw(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||ew(e,d,lt(c.done),i))?c.done[c.done.length-1]=i:Hl(i,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=d,c.lastSelOp=l,s&&s.clearRedo!==!1&&kd(c.undone)}function Hl(e,i){var l=lt(i);l&&l.ranges&&l.equals(e)||i.push(e)}function Td(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 rw(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 iw(e,i){var l=i["spans_"+e.id];if(!l)return null;for(var s=[],c=0;c<i.text.length;++c)s.push(rw(l[c]));return s}function Ld(e,i){var l=iw(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 fo(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],N=void 0;if(y.push({from:_.from,to:_.to,text:_.text}),i)for(var O in _)(N=O.match(/^spans_(\d+)$/))&&Ct(i,Number(N[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 Bl(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 Ed(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 Ad(e,i,l,s){Ve(e,Vr(i,l),s)}function ow(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 Md(e,i,l){var s=e.history.done,c=lt(s);c&&c.ranges?(s[s.length-1]=i,Wl(e,i,l)):Ve(e,i,l)}function Ve(e,i,l){Wl(e,i,l),nw(e,e.sel,e.cm?e.cm.curOp.id:NaN,l)}function Wl(e,i,l){(Ye(e,"beforeSelectionChange")||e.cm&&Ye(e.cm,"beforeSelectionChange"))&&(i=ow(e,i,l));var s=l&&l.bias||(K(i.primary().head,e.sel.primary().head)<0?-1:1);Nd(e,Od(e,i,s,!0)),!(l&&l.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&co(e.cm)}function Nd(e,i){i.equals(e.sel)||(e.sel=i,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,yl(e.cm)),Oe(e,"cursorActivity",e))}function Pd(e){Nd(e,Od(e,e.sel,null,!1))}function Od(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=Ul(e,v.anchor,y&&y.anchor,l,s),_=v.head==v.anchor?w:Ul(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 ho(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,N="selectRight"in w?!w.selectRight:w.inclusiveRight;if((y.from==null||(_?y.from<=i.ch:y.from<i.ch))&&(y.to==null||(N?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?N:_)&&(O=$d(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 ho(e,O,i,s,c)}var q=w.find(s<0?-1:1);return(s<0?_:N)&&(q=$d(e,q,s,q.line==i.line?d:null)),q?ho(e,q,i,s,c):null}}return i}function Ul(e,i,l,s,c){var d=s||1,v=ho(e,i,l,d,c)||!c&&ho(e,i,l,d,!0)||ho(e,i,l,-d,c)||!c&&ho(e,i,l,-d,!0);return v||(e.cantEdit=!0,R(e.first,0))}function $d(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 Dd(e){e.setSelection(R(e.firstLine(),0),R(e.lastLine()),P)}function Rd(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 po(e,i,l){if(e.cm){if(!e.cm.curOp)return $e(e.cm,po)(e,i,l);if(e.cm.state.suppressEdits)return}if(!((Ye(e,"beforeChange")||e.cm&&Ye(e.cm,"beforeChange"))&&(i=Rd(e,i,!0),!i))){var s=Lh&&!l&&nb(e,i.from,i.to);if(s)for(var c=s.length-1;c>=0;--c)zd(e,{from:s[c].from,to:s[c].to,text:c?[""]:i.text,origin:i.origin});else zd(e,i)}}function zd(e,i){if(!(i.text.length==1&&i.text[0]==""&&K(i.from,i.to)==0)){var l=Zc(e,i);Cd(e,i,l,e.cm?e.cm.curOp.id:NaN),ms(e,i,l,kc(e,i));var s=[];Xr(e,function(c,d){!d&&Ct(s,c.history)==-1&&(Hd(c.history,i),s.push(c.history)),ms(c,i,null,kc(c,i))})}}function jl(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(Hl(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 N=[];Hl(v,w),w.push({changes:N,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&&!Rd(e,ct,!1))return y.length=0,{};N.push(tu(e,ct));var mt=rt?Zc(e,ct):lt(y);ms(e,ct,mt,Ld(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&&(Hd(yt.history,ct),_t.push(yt.history)),ms(yt,ct,null,Ld(yt,ct))})},q=d.changes.length-1;q>=0;--q){var X=B(q);if(X)return X.v}}}}function Id(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 ms(e,i,l,s){if(e.cm&&!e.cm.curOp)return $e(e.cm,ms)(e,i,l,s);if(i.to.line<e.first){Id(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);Id(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?sw(e.cm,i,s):Qc(e,i,s),Wl(e,l,P),e.cantEdit&&Ul(e,R(e.firstLine(),0))&&(e.cantEdit=!1)}}function sw(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&&yl(e),Qc(s,i,l,rd(e)),e.options.lineWrapping||(s.iter(w,d.line+i.text.length,function(q){var X=El(q);X>c.maxLineLength&&(c.maxLine=q,c.maxLineLength=X,c.maxLineChanged=!0,y=!1)}),y&&(e.curOp.updateMaxLine=!0)),Xy(s,d.line),ps(e,400);var _=i.text.length-(v.line-d.line)-1;i.full?on(e):d.line==v.line&&i.text.length==1&&!xd(e.doc,i)?jr(e,d.line,"text"):on(e,d.line,v.line+1,_);var N=Ye(e,"changes"),O=Ye(e,"change");if(O||N){var B={from:d,to:v,text:i.text,removed:i.removed,origin:i.origin};O&&Oe(e,"change",e,B),N&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(B)}e.display.selForContextMenu=null}function go(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)),po(e,{from:l,to:s,text:i,origin:c})}function Fd(e,i,l,s){l<e.line?e.line+=s:i<e.line&&(e.line=i,e.ch=0)}function qd(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++)Fd(d.ranges[y].anchor,i,l,s),Fd(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 Hd(e,i){var l=i.from.line,s=i.to.line,c=i.text.length-(s-l)-1;qd(e.done,l,s,c),qd(e.undone,l,s,c)}function ys(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 bs(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}bs.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,lb(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 ws(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}ws.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 bs))){var y=[];this.collapse(y),this.children=[new bs(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 bs(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 ws(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 ws(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 xs=function(e,i,l){if(l)for(var s in l)l.hasOwnProperty(s)&&(this[s]=l[s]);this.doc=e,this.node=i};xs.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=ls(this);Dn(l,Math.max(0,l.height-d)),e&&(bn(e,function(){Bd(e,l,-d),jr(e,s,"widget")}),Oe(e,"lineWidgetCleared",e,this,s))}},xs.prototype.changed=function(){var e=this,i=this.height,l=this.doc.cm,s=this.line;this.height=null;var c=ls(this)-i;!c||(Ur(this.doc,s)||Dn(s,s.height+c),l&&bn(l,function(){l.curOp.forceUpdate=!0,Bd(l,s,c),Oe(l,"lineWidgetChanged",l,e,re(s))}))},Ze(xs);function Bd(e,i,l){xr(i)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&jc(e,l)}function lw(e,i,l,s){var c=new xs(e,l,s),d=e.cm;return d&&c.noHScroll&&(d.display.alignWidgets=!0),ys(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+ls(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 Wd=0,Yr=function(e,i){this.lines=[],this.type=i,this.doc=e,this.id=++Wd};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=is(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=Jy(v.markedSpans,y),y.from==null&&this.collapsed&&!Ur(this.doc,v)&&e&&Dn(v,so(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var w=0;w<this.lines.length;++w){var _=qn(this.lines[w]),N=El(_);N>e.display.maxLineLength&&(e.display.maxLine=_,e.display.maxLineLength=N,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&&Pd(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=is(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&&(Xh(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=ls(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 vo(e,i,l,s,c){if(s&&s.shared)return aw(e,i,l,s,c);if(e.cm&&!e.cm.curOp)return $e(e.cm,vo)(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(Oh(e,i.line,i,l,d)||i.line!=l.line&&Oh(e,l.line,i,l,d))throw new Error("Inserting collapsed marker partially overlapping an existing one");Zy()}d.addToHistory&&Cd(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),Qy(O,new kl(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&&(Yy(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),d.collapsed&&(d.id=++Wd,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 N=i.line;N<=l.line;N++)jr(w,N,"text");d.atomic&&Pd(w.doc),Oe(w,"markerAdded",w,d)}return d}var _s=function(e,i){this.markers=e,this.primary=i;for(var l=0;l<e.length;++l)e[l].parent=this};_s.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")}},_s.prototype.find=function(e,i){return this.primary.find(e,i)},Ze(_s);function aw(e,i,l,s,c){s=tt(s),s.shared=!1;var d=[vo(e,i,l,s,c)],v=d[0],y=s.widgetNode;return Xr(e,function(w){y&&(s.widgetNode=y.cloneNode(!0)),d.push(vo(w,Ft(w,i),Ft(w,l),s,c));for(var _=0;_<w.linked.length;++_)if(w.linked[_].isParent)return;v=lt(d)}),new _s(d,v)}function Ud(e){return e.findMarks(R(e.first,0),e.clipPos(R(e.lastLine())),function(i){return i.parent})}function cw(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=vo(e,d,v,s.primary,s.primary.type);s.markers.push(y),y.parent=s}}}function uw(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 fw=0,sn=function(e,i,l,s,c){if(!(this instanceof sn))return new sn(e,i,l,s,c);l==null&&(l=0),ws.call(this,[new bs([new ro("",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 ql(null),this.id=++fw,this.modeOption=i,this.lineSep=s,this.direction=c=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),Qc(this,{from:d,to:d,text:e}),Ve(this,Vr(d),P)};sn.prototype=$t(ws.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=no(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;po(this,{from:i,to:R(l,At(this,l).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&us(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,go(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){Ad(this,Ft(this,typeof e=="number"?R(e,i||0):e),null,l)}),setSelection:De(function(e,i,l){Ad(this,Ft(this,e),Ft(this,i||e),l)}),extendSelection:De(function(e,i,l){Bl(this,Ft(this,e),i&&Ft(this,i),l)}),extendSelections:De(function(e,i){Ed(this,bh(this,e),i)}),extendSelectionsBy:De(function(e,i){var l=gt(this.sel.ranges,e);Ed(this,bh(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"&&Jb(this,s,i),w=s.length-1;w>=0;w--)po(this,s[w]);y?Md(this,y):this.cm&&co(this.cm)}),undo:De(function(){jl(this,"undo")}),redo:De(function(){jl(this,"redo")}),undoSelection:De(function(){jl(this,"undo",!0)}),redoSelection:De(function(){jl(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 ql(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:fo(this.history.done),undone:fo(this.history.undone)}},setHistory:function(e){var i=this.history=new ql(this.history);i.done=fo(e.done.slice(0),null,!0),i.undone=fo(e.undone.slice(0),null,!0)},setGutterMarker:De(function(e,i,l){return ys(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]&&ys(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 ys(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 ys(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 lw(this,e,i,l)}),removeLineWidget:function(e){e.clear()},markText:function(e,i,l){return vo(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),vo(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(no(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(no(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}],cw(s,Ud(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),uw(Ud(this));break}}if(e.history==this.history){var s=[e.id];Xr(e,function(c){return s.push(c.id)},!0),e.history=new ql(null),e.history.done=fo(this.history.done,s),e.history.undone=fo(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):es(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&&Qb(this.cm))})}),sn.prototype.eachLine=sn.prototype.iter;var jd=0;function hw(e){var i=this;if(Gd(i),!(Se(i,e)||_r(i.display,e))){Ge(e),p&&(jd=+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"};po(i.doc,q),Md(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 N=e.dataTransfer.getData("Text");if(N){var O;if(i.state.draggingText&&!i.state.draggingText.copy&&(O=i.listSelections()),Wl(i.doc,Vr(l,l)),O)for(var B=0;B<O.length;++B)go(i.doc,"",O[B].anchor,O[B].head,"drag");i.replaceSelection(N,"around","paste"),i.display.input.focus()}}catch{}}}}function dw(e,i){if(p&&(!e.state.draggingText||+new Date-jd<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==",M&&(l.width=l.height=1,e.display.wrapper.appendChild(l),l._top=l.offsetTop),i.dataTransfer.setDragImage(l,0,0),M&&l.parentNode.removeChild(l)}}function pw(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 Gd(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Vd(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 Kd=!1;function gw(){Kd||(vw(),Kd=!0)}function vw(){var e;bt(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Vd(mw)},100))}),bt(window,"blur",function(){return Vd(ao)})}function mw(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"},Ss=0;Ss<10;Ss++)Zr[Ss+48]=Zr[Ss+96]=String(Ss);for(var Gl=65;Gl<=90;Gl++)Zr[Gl]=String.fromCharCode(Gl);for(var ks=1;ks<=12;ks++)Zr[ks+111]=Zr[ks+63235]="F"+ks;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 yw(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 bw(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(" "),yw),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 mo(e,i,l,s){i=Vl(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 mo(e,i.fallthrough,l,s);for(var d=0;d<i.fallthrough.length;d++){var v=mo(e,i.fallthrough[d],l,s);if(v)return v}}}function Xd(e){var i=typeof e=="string"?e:Zr[e.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Yd(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 Zd(e,i){if(M&&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),Yd(l,e,i))}function Vl(e){return typeof e=="string"?kr[e]:e}function yo(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--)go(e.doc,"",s[y].from,s[y].to,"+delete");co(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 N=oo(i,l);_=c<0?l.text.length-1:0;var O=nr(i,N,_).top;_=Xt(function(B){return nr(i,N,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 ww(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||oo(e,i),nd(e,i,w,mt)):{begin:0,end:i.text.length}},N=_(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<=N.end:B>=v.from&&B>=N.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,N);if(rt)return rt;var ct=s>0?N.end:y(N.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 Cs={selectAll:Dd,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),P)},killLine:function(e){return yo(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 yo(e,function(i){return{from:R(i.from().line,0),to:Ft(e.doc,R(i.to().line+1,0))}})},delLineLeft:function(e){return yo(e,function(i){return{from:R(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(e){return yo(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 yo(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 Qd(e,i.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(i){return xw(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/)?Qd(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);co(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 xw(e,i){var l=At(e.doc,i),s=ib(l);return s!=l&&(i=re(s)),ou(!0,e,l,i,-1)}function Qd(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 Kl(e,i,l){if(typeof i=="string"&&(i=Cs[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 _w(e,i,l){for(var s=0;s<e.state.keyMaps.length;s++){var c=mo(i,e.state.keyMaps[s],l,e);if(c)return c}return e.options.extraKeys&&mo(i,e.options.extraKeys,l,e)||mo(i,e.options.keyMap,l,e)}var Sw=new st;function Ts(e,i,l,s){var c=e.state.keySeq;if(c){if(Xd(i))return"handled";if(/\'$/.test(i)?e.state.keySeq=null:Sw.set(50,function(){e.state.keySeq==c&&(e.state.keySeq=null,e.display.input.reset())}),tp(e,c+" "+i,l,s))return!0}return tp(e,i,l,s)}function tp(e,i,l,s){var c=_w(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 ep(e,i){var l=Zd(i,!0);return l?i.shiftKey&&!e.state.keySeq?Ts(e,"Shift-"+l,i,function(s){return Kl(e,s,!0)})||Ts(e,l,i,function(s){if(typeof s=="string"?/^go[A-Z]/.test(s):s.motion)return Kl(e,s)}):Ts(e,l,i,function(s){return Kl(e,s)}):!1}function kw(e,i,l){return Ts(e,"'"+l+"'",i,function(s){return Kl(e,s,!0)})}var su=null;function np(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=ep(i,e);M&&(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)&&Cw(i)}}function Cw(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 rp(e){e.keyCode==16&&(this.doc.sel.shift=!1),Se(this,e)}function ip(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(M&&l==su){su=null,Ge(e);return}if(!(M&&(!e.which||e.which<10)&&ep(i,e))){var c=String.fromCharCode(s==null?l:s);c!="\b"&&(kw(i,e,c)||i.display.input.onKeyPress(e))}}}var Tw=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+Tw>e&&K(i,this.pos)==0&&l==this.button};var Ls,Es;function Lw(e,i){var l=+new Date;return Es&&Es.compare(l,e,i)?(Ls=Es=null,"triple"):Ls&&Ls.compare(l,e,i)?(Es=new lu(l,e,i),Ls=null,"double"):(Ls=new lu(l,e,i),Es=null,"single")}function op(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=ts(e),d=s?Lw(s,c):"single";ne(i).focus(),c==1&&i.state.selectingText&&i.state.selectingText(e),!(s&&Ew(i,c,s,d,e))&&(c==1?s?Mw(i,s,d,e):rn(e)==l.scroller&&Ge(e):c==2?(s&&Bl(i.doc,s),setTimeout(function(){return l.input.focus()},20)):c==3&&(vt?i.display.input.onContextMenu(e):Bc(i)))}}}function Ew(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,Ts(e,Yd(d,c),c,function(v){if(typeof v=="string"&&(v=Cs[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 Aw(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 Mw(e,i,l,s){p?setTimeout(J(sd,e),0):e.curOp.focus=wt(Gt(e));var c=Aw(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)?Nw(e,s,i,c):Pw(e,s,i,c)}function Nw(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||Bl(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 sp(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 Pw(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 N=sp(e,l,s.unit);s.extend?v=eu(v,N.anchor,N.head,s.extend):v=N}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=sp(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]=Ow(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=Rl(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||!ts(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 Ow(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 N=qe(d,s.ch,s.sticky),O=N-v||(s.ch-l.ch)*(y.level==1?-1:1);N==w-1||N==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 lp(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 N=Qn(e.doc,d),O=e.display.gutterSpecs[w];return ve(e,l,e,N,O.className,i),Qo(i)}}}function au(e,i){return lp(e,i,"gutterClick",!0)}function ap(e,i){_r(e.display,i)||$w(e,i)||Se(e,i,"contextmenu")||vt||e.display.input.onContextMenu(i)}function $w(e,i){return Ye(e,"gutterContextMenu")?lp(e,i,"gutterContextMenu",!1):!1}function cp(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),as(e)}var bo={toString:function(){return"CodeMirror.Init"}},up={},Xl={};function Dw(e){var i=e.optionHandlers;function l(s,c,d,v){e.defaults[s]=c,d&&(i[s]=v?function(y,w,_){_!=bo&&d(y,w,_)}:d)}e.defineOption=l,e.Init=bo,l("value","",function(s,c){return s.setValue(c)},!0),l("mode",null,function(s,c){s.doc.modeOption=c,Jc(s)},!0),l("indentUnit",2,Jc,!0),l("indentWithTabs",!1),l("smartIndent",!0),l("tabSize",4,function(s){vs(s),as(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 N=w.text.indexOf(c,_);if(N==-1)break;_=N+c.length,d.push(R(v,N))}v++});for(var y=d.length-1;y>=0;y--)go(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!=bo&&s.refresh()}),l("specialCharPlaceholder",ub,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){cp(s),gs(s)},!0),l("keyMap","default",function(s,c,d){var v=Vl(c),y=d!=bo&&Vl(d);y&&y.detach&&y.detach(s,v),v.attach&&v.attach(s,y||null)}),l("extraKeys",null),l("configureMouse",null),l("lineWrapping",!1,zw,!0),l("gutters",[],function(s,c){s.display.gutterSpecs=Yc(c,s.options.lineNumbers),gs(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 uo(s)},!0),l("scrollbarStyle","native",function(s){hd(s),uo(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),gs(s)},!0),l("firstLineNumber",1,gs,!0),l("lineNumberFormatter",function(s){return s},gs,!0),l("showCursorWhenSelecting",!1,cs,!0),l("resetSelectionOnContextMenu",!0),l("lineWiseCopyCut",!0),l("pasteLinesPerSelection",!0),l("selectionsMayTouch",!1),l("readOnly",!1,function(s,c){c=="nocursor"&&(ao(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,Rw),l("allowDropFileTypes",null),l("cursorBlinkRate",530),l("cursorScrollMargin",0),l("cursorHeight",1,cs,!0),l("singleCursorHeightPerLine",!0,cs,!0),l("workTime",100),l("workDelay",100),l("flattenSpans",!0,vs,!0),l("addModeClass",!1,vs,!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,vs,!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 Rw(e,i,l){var s=l&&l!=bo;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 zw(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),as(e),setTimeout(function(){return uo(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(up,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 Yb(e,s,c,i);d.wrapper.CodeMirror=this,cp(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),hd(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),Iw(this),gw(),Ci(this),this.curOp.forceUpdate=!0,_d(this,s),i.autofocus&&!D||this.hasFocus()?setTimeout(function(){l.hasFocus()&&!l.state.focused&&Wc(l)},20):ao(this);for(var v in Xl)Xl.hasOwnProperty(v)&&Xl[v](this,i[v],bo);gd(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=up,we.optionHandlers=Xl;function Iw(e){var i=e.display;bt(i.scroller,"mousedown",$e(e,op)),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 N=e.findWordAt(_);Bl(e.doc,N.anchor,N.head)}}})):bt(i.scroller,"dblclick",function(w){return Se(e,w)||Ge(w)}),bt(i.scroller,"contextmenu",function(w){return ap(e,w)}),bt(i.input.getField(),"contextmenu",function(w){i.scroller.contains(w.target)||ap(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 N=_.left-w.left,O=_.top-w.top;return N*N+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 N=e.coordsChar(i.activeTouch,"page"),O;!_.prev||v(_,_.prev)?O=new ie(N,N):!_.prev.prev||v(_,_.prev.prev)?O=e.findWordAt(N):O=new ie(R(N.line,0),Ft(e.doc,R(N.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&&(fs(e,i.scroller.scrollTop),Si(e,i.scroller.scrollLeft,!0),ve(e,"scroll",e))}),bt(i.scroller,"mousewheel",function(w){return yd(e,w)}),bt(i.scroller,"DOMMouseScroll",function(w){return yd(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)||(pw(e,w),vr(w))},start:function(w){return dw(e,w)},drop:$e(e,hw),leave:function(w){Se(e,w)||Gd(e)}};var y=i.input.getField();bt(y,"keyup",function(w){return rp.call(e,w)}),bt(y,"keydown",$e(e,np)),bt(y,"keypress",$e(e,ip)),bt(y,"focus",function(w){return Wc(e,w)}),bt(y,"blur",function(w){return ao(e,w)})}var cu=[];we.defineInitHook=function(e){return cu.push(e)};function As(e,i,l,s){var c=e.doc,d;l==null&&(l="add"),l=="smart"&&(c.mode.indent?d=rs(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],N;if(!s&&!/\S/.test(y.text))N=0,l="not";else if(l=="smart"&&(N=c.mode.indent(d,y.text.slice(_.length),y.text),N==Lt||N>150)){if(!s)return;l="prev"}l=="prev"?i>c.first?N=V(At(c,i-1).text,null,v):N=0:l=="add"?N=w+e.options.indentUnit:l=="subtract"?N=w-e.options.indentUnit:typeof l=="number"&&(N=w+l),N=Math.max(0,N);var O="",B=0;if(e.options.indentWithTabs)for(var q=Math.floor(N/v);q;--q)B+=v,O+=" ";if(B<N&&(O+=pt(N-B)),O!=_)return go(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 Yl(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=es(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 N=0;N<Wn.text.length;N++)_.push(d.splitLines(Wn.text[N]))}}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")};po(e.doc,ct),Oe(e,"inputRead",e,ct)}i&&!y&&hp(e,i),co(e),e.curOp.updateInput<2&&(e.curOp.updateInput=O),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function fp(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 hp(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=As(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=As(e,c.head.line,"smart"));v&&Oe(e,"electricInput",e,c.head.line)}}}function dp(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 pp(e,i,l,s){e.setAttribute("autocorrect",l?"":"off"),e.setAttribute("autocapitalize",s?"":"off"),e.setAttribute("spellcheck",!!i)}function gp(){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"),pp(e),i}function Fw(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"](Vl(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:Je(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:Je(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:Je(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)&&As(this,s,c,d)}),indentSelection:Je(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&&(As(this,y.head.line,s,!0),d=y.head.line,v==this.doc.sel.primIndex&&co(this));else{var w=y.from(),_=y.to(),N=Math.max(d,w.line);d=Math.min(this.lastLine(),_.line-(_.ch?0:1))+1;for(var O=N;O<d;++O)As(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 kh(this,s,c)},getLineTokens:function(s,c){return kh(this,R(s),c,!0)},getTokenTypeAt:function(s){s=Ft(this.doc,s);var c=xh(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 N=w?w.indexOf("overlay "):-1;return N<0?w:N==0?null:w.slice(0,N-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 N=0;N<v._global.length;N++){var O=v._global[N];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),rs(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 Pl(this,Ft(this.doc,s),c||"page")},coordsChar:function(s,c){return s=Qh(this,s,c||"page"),Dc(this,s.left,s.top)},lineAtHeight:function(s,c){return s=Qh(this,{top:s,left:0},c||"page").top,Qn(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 Nl(this,y,{top:0,left:0},c||"page",d||v).top+(v?this.doc.height-xr(y):0)},defaultTextHeight:function(){return so(this.display)},defaultCharWidth:function(){return lo(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,N=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),N+c.offsetWidth>B&&(N=B-c.offsetWidth)}c.style.top=_+"px",c.style.left=c.style.right="",y=="right"?(N=w.sizer.clientWidth-c.offsetWidth,c.style.right="0px"):(y=="left"?N=0:y=="middle"&&(N=(w.sizer.clientWidth-c.offsetWidth)/2),c.style.left=N+"px"),d&&Rb(this,{left:N,top:_,right:N+c.offsetWidth,bottom:_+c.offsetHeight})},triggerOnKeyDown:Je(np),triggerOnKeyPress:Je(ip),triggerOnKeyUp:rp,triggerOnMouseDown:Je(op),execCommand:function(s){if(Cs.hasOwnProperty(s))return Cs[s].call(null,this)},triggerElectric:Je(function(s){hp(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:Je(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:Je(function(s,c){var d=this.doc.sel,v=this.doc;d.somethingSelected()?v.replaceSelection("",null,"+delete"):yo(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),N=0;N<c;++N){var O=Hn(this,_,"div");if(w==null?w=O.left:O.left=w,_=vp(this,O,y,d),_.hitSide)break}return _},moveV:Je(function(s,c){var d=this,v=this.doc,y=[],w=!this.display.shift&&!v.extend&&v.sel.somethingSelected();if(v.extendSelectionsBy(function(N){if(w)return s<0?N.from():N.to();var O=Hn(d,N.head,"div");N.goalColumn!=null&&(O.left=N.goalColumn),y.push(O.left);var B=vp(d,O,s,c);return c=="page"&&N==v.sel.primary()&&jc(d,Pl(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),N=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&&N(d.charAt(v-1));)--v;for(;y<d.length&&N(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:Je(function(s,c){us(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:Je(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?zb(this,s):ad(this,s.from,s.to,s.margin)}),setSize:Je(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&&Yh(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:Je(function(){var s=this.display.cachedTextHeight;on(this),this.curOp.forceUpdate=!0,as(this),us(this,this.doc.scrollLeft,this.doc.scrollTop),Kc(this.display),(s==null||Math.abs(s-so(this.display))>.5||this.options.lineWrapping)&&Fc(this),ve(this,"refresh",this)}),swapDoc:Je(function(s){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),_d(this,s),as(this),this.display.input.reset(),us(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 N(_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=ww(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")N();else if(s=="column")N(!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&&!N(!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,N(),i.sticky="after");break}if(ct&&(O=ct),l>0&&!N(!X))break}var mt=Ul(e,i,d,v,!0);return It(d,mt)&&(mt.hitSide=!0),mt}function vp(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*so(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,pp(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)||fp(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())Yl({lineWise:!1,text:s.getSelections()}),y.type=="cut"&&s.replaceSelection("",null,"cut");else if(s.options.lineWiseCopyCut){var w=dp(s);Yl({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 N=gp(),O=N.firstChild;s.display.lineSpace.insertBefore(N,s.display.lineSpace.firstChild),O.value=Wn.text.join(`
25
+ `);var B=wt(c.ownerDocument);Bt(O),setTimeout(function(){s.display.lineSpace.removeChild(N),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=od(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=Zl(i,e.anchorNode,e.anchorOffset),v=Zl(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&&mp(i,s)||{node:y[0].measure.map[2],offset:0},_=c.line<i.display.viewTo&&mp(i,c);if(!_){var N=y[y.length-1].measure,O=N.maps?N.maps[N.maps.length-1]:N.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&&qw(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var l=Zl(i,e.anchorNode,e.anchorOffset),s=Zl(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),_,N;if(w==i.view.length-1?(_=i.viewTo-1,N=i.lineDiv.lastChild):(_=re(i.view[w+1].line)-1,N=i.view[w+1].node.previousSibling),!y)return!1;for(var O=e.doc.splitLines(Hw(e,y,N,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 go(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 mp(e,i){var l=Pc(e,i.line);if(!l||l.hidden)return null;var s=At(e.doc,i.line),c=jh(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=Kh(c.map,i.ch,v);return w.offset=w.collapse=="right"?w.end:w.start,w}function qw(e){for(var i=e;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function wo(e,i){return i&&(e.bad=!0),e}function Hw(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 N(){v&&(d+=y,w&&(d+=y),v=w=!1)}function O(q){q&&(N(),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&&N();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 Zl(e,i,l){var s;if(i==e.display.lineDiv){if(s=e.display.lineDiv.childNodes[l],!s)return wo(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 Bw(d,i,l)}}function Bw(e,i,l){var s=e.text.firstChild,c=!1;if(!i||!et(s,i))return wo(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 wo(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 N(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=N(v,y,l);if(O)return wo(O,c);for(var B=y.nextSibling,q=v?v.nodeValue.length-l:0;B;B=B.nextSibling){if(O=N(B,B.firstChild,0),O)return wo(R(O.line,O.ch-q),c);q+=B.textContent.length}for(var X=y.previousSibling,rt=l;X;X=X.previousSibling){if(O=N(X,X.firstChild,-1),O)return wo(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)||fp(v,s)||(s.state.pasteIncoming=+new Date,l.fastPoll())});function d(v){if(!Se(s,v)){if(s.somethingSelected())Yl({lineWise:!1,text:s.getSelections()});else if(s.options.lineWiseCopyCut){var y=dp(s);Yl({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=gp(),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=od(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||M)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,N=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",c.style.cssText=`position: absolute; width: 30px; height: 30px;
28
+ top: `+(e.clientY-N.top-5)+"px; left: "+(e.clientX-N.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,Dd)(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 Ww(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 Uw(e){e.off=je,e.on=bt,e.wheelEventPixels=Zb,e.Doc=sn,e.splitLines=es,e.countColumn=V,e.findColumn=nt,e.isWordChar=Ot,e.Pass=Lt,e.signal=ve,e.Line=ro,e.changeEnd=Kr,e.scrollbarModel=fd,e.Pos=R,e.cmpPos=K,e.modes=Fn,e.mimeModes=Hr,e.resolveMode=yn,e.getMode=mr,e.modeExtensions=Br,e.extendMode=_l,e.copyState=yr,e.startState=ns,e.innerMode=Wr,e.commands=Cs,e.keyMap=kr,e.keyName=Zd,e.isModifierKey=Xd,e.lookupKey=mo,e.normalizeKeyMap=bw,e.StringStream=ke,e.SharedTextMarker=_s,e.TextMarker=Yr,e.LineWidget=xs,e.e_preventDefault=Ge,e.e_stopPropagation=yi,e.e_stop=vr,e.addClass=Et,e.contains=et,e.rmClass=ft,e.keyNames=Zr}Dw(we),Fw(we);var jw="iter insert remove copy getEditor constructor".split(" ");for(var Jl in sn.prototype)sn.prototype.hasOwnProperty(Jl)&&Ct(jw,Jl)<0&&(we.prototype[Jl]=function(e){return function(){return e.apply(this.doc,arguments)}}(sn.prototype[Jl]));return Ze(sn),we.inputStyles={textarea:Te,contenteditable:ae},we.defineMode=function(e){!we.defaults.mode&&e!="null"&&(we.defaults.mode=e),xl.apply(this,arguments)},we.defineMIME=eo,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=Ww,Uw(we),we.version="5.65.9",we})})(Ji);const Dst=Ji.exports;var Rst={exports:{}};(function(t,n){(function(r){r(Ji.exports)})(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=/[+\-*&%=<>!?|~^@]/,M=/^@(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")):Qn(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(M))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 Q(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 J(){U.state.localVars=U.state.context.vars,U.state.context=U.state.context.prev}J.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,J):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,to)):T=="function"?k(Zn):T=="for"?k(tt("form"),ne,bl,Ct,J,V):T=="class"||m&&$=="interface"?(U.marked="keyword",k(tt("form",T=="class"?T:$),xl,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(no):$=="type"?k(wl,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,J):T=="case"?k(Lt,st(":")):T=="default"?k(st(":")):T=="catch"?k(tt("form"),Gt,de,Ct,V,J):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,J);if(T=="variable")return I(Gt,rn,st("=>"),K,J)}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,J);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 Q(U.stream,U.state),I(T=="{"?Ct:Lt)}function at(T){return Q(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 Qi(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,")"),Jo,Ze);if(T=="<")return k(Xt(bt,">"),bt);if(T=="quasi")return I(Se,Ze)}function Jo(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"),Qi,st("]"),ve);if(T=="(")return I(Jn,ve);if(!T.match(/[;\}\)\],]/))return k()}function Se(T,$){return T!="quasi"?I():$.slice($.length-2)!="${"?k(Se):k(bt,yl)}function yl(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(no)):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(ts,"}")}function ts(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(":"),ts):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 to(T,$){if(T=="keyword b"&&$=="else")return k(tt("form","else"),Ct,V)}function bl(T,$){if($=="await")return k(bl);if(T=="(")return k(tt(")"),es,V)}function es(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,J);if(m&&$=="<")return k(tt(">"),Xt(yi,">"),V,Zn)}function Jn(T,$){if($=="*")return U.marked="keyword",k(Jn);if(T=="variable")return W($),k(Jn);if(T=="(")return k(Gt,tt(")"),Xt(Fn,")"),V,be,J);if(m&&$=="<")return k(tt(">"),Xt(yi,">"),V,Jn)}function wl(T,$){if(T=="keyword"||T=="variable")return U.marked="type",k(wl);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"?xl(T,$):eo(T,$)}function xl(T,$){if(T=="variable")return W($),k(eo)}function eo(T,$){if($=="<")return k(tt(">"),Xt(yi,">"),V,eo);if($=="extends"||$=="implements"||m&&T==",")return $=="implements"&&(U.marked="keyword"),k(m?bt:Lt,eo);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(Jn,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?Jn:Zn)}function Br(T,$){return $=="*"?(U.marked="keyword",k(At,st(";"))):$=="default"?(U.marked="keyword",k(Lt,st(";"))):T=="{"?k(Xt(_l,"}"),At,st(";")):I(Ct)}function _l(T,$){if($=="as")return U.marked="keyword",k(st("variable"));if(T=="variable")return I(P,_l)}function yr(T){return T=="string"?k():T=="("?I(Lt):T=="."?I(ot):I(Wr,ns,At)}function Wr(T,$){return T=="{"?mn(Wr,"}"):(T=="variable"&&W($),$=="*"&&(U.marked="keyword"),k(ke))}function ns(T){if(T==",")return k(Wr,ns)}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 no(){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 Qn(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(),Q(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!=to&&ee!=J)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:Qn,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 zst={exports:{}};(function(t,n){(function(r){r(Ji.exports)})(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=M,"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 M(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=M;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"?Q: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 Q(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!=M&&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(Ji.exports,zst.exports,Rst.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 M=S.tagName;S.tagName=null;var A=h.indent(S,"","");return S.tagName=M,A}function m(S,M){return M.context.mode==h?b(S,M,M.context):x(S,M,M.context)}function b(S,M,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 M.context=new o(r.startState(p,L),p,0,M.context),null}if(A.depth==1){if(S.peek()=="<")return h.skipAttribute(A.state),M.context=new o(r.startState(h,g(A.state)),h,0,M.context),null;if(S.match("//"))return S.skipToEnd(),"comment";if(S.match("/*"))return A.depth=2,m(S,M)}var E=h.token(S,A.state),z=S.current(),D;return/\btag\b/.test(E)?/>$/.test(z)?A.state.context?A.depth=0:M.context=M.context.prev:/^</.test(z)&&(A.depth=1):!E&&(D=z.indexOf("{"))>-1&&S.backUp(z.length-D),E}function x(S,M,A){if(S.peek()=="<"&&p.expressionAllowed(S,A.state))return M.context=new o(r.startState(h,p.indent(A.state,"","")),h,0,M.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&&(M.context=M.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,M,A){return S.context.mode.indent(S.context.state,M,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(Ji.exports)})(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(Ji.exports)})(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],M=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(M+(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 Ist(t,n,r={}){const o=Dst.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}),Mf(o)}const Fst={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},ry=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=K1(),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=KC(o,"modelValue",r,{passive:!0}),p=ll();return n({cm:p}),ul(async()=>{p.value=Ist(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",Fst,[ut("textarea",{ref_key:"el",ref:f},null,512)]))}}),qst=oe({__name:"ViewEditor",props:{file:null},emits:["draft"],setup(t,{emit:n}){const r=t,o=Kt(""),a=ll(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),M=()=>{x.forEach(([C,E,z])=>{C.removeEventListener("click",E),z()}),x.length=0};HC(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){M();return}setTimeout(()=>{M(),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 Q=document.createElement("pre");Q.className="c-red-600 dark:c-red-400",Q.textContent=`${" ".repeat(j.column)}^ ${z==null?void 0:z.nameStr}: ${z==null?void 0:z.message}`,it.appendChild(Q);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",u0(dt,{content:"Open in Editor",placement:"bottom"},!1);const vt=async()=>{await ey(D[0].file,j.line,j.column)};it.appendChild(dt),x.push([dt,vt,()=>Zf(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=ry;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"])}}}),Hst=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))}}),Bst=["aria-label","opacity","disabled","hover"],Zo=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,Bst))}}),Wst={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Ust={"p-4":"",relative:""},jst=ut("p",null,"Module Info",-1),Gst={op50:"","font-mono":"","text-sm":""},Vst={key:0,"p-5":""},Kst={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},Xst=ut("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1),Yst=ut("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1),Zst={key:0},Jst={p:"x3 y-1","bg-overlay":"",border:"base b t"},Qst=oe({__name:"ModuleTransformResultView",props:{id:null},emits:["close"],setup(t,{emit:n}){const r=t,o=dC(()=>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 gC("Escape",()=>{n("close")}),(p,g)=>{const m=Zo,b=ry;return ht(),Mt("div",Wst,[ut("div",Ust,[jst,ut("p",Gst,Jt(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",Kst,[Xst,Yst,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",Zst,[ut("div",Jst," Source map (v"+Jt(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",Vst," No transform result found for this module. "))])}}});var lf="http://www.w3.org/1999/xhtml";const sv={svg:"http://www.w3.org/2000/svg",xhtml:lf,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)),sv.hasOwnProperty(n)?{space:sv[n],local:t}:t}function tlt(t){return function(){var n=this.ownerDocument,r=this.namespaceURI;return r===lf&&n.documentElement.namespaceURI===lf?n.createElement(t):n.createElementNS(r,t)}}function elt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function iy(t){var n=mc(t);return(n.local?elt:tlt)(n)}function nlt(){}function ih(t){return t==null?nlt:function(){return this.querySelector(t)}}function rlt(t){typeof t!="function"&&(t=ih(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 ilt(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function olt(){return[]}function oy(t){return t==null?olt:function(){return this.querySelectorAll(t)}}function slt(t){return function(){return ilt(t.apply(this,arguments))}}function llt(t){typeof t=="function"?t=slt(t):t=oy(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 sy(t){return function(){return this.matches(t)}}function ly(t){return function(n){return n.matches(t)}}var alt=Array.prototype.find;function clt(t){return function(){return alt.call(this.children,t)}}function ult(){return this.firstElementChild}function flt(t){return this.select(t==null?ult:clt(typeof t=="function"?t:ly(t)))}var hlt=Array.prototype.filter;function dlt(){return Array.from(this.children)}function plt(t){return function(){return hlt.call(this.children,t)}}function glt(t){return this.selectAll(t==null?dlt:plt(typeof t=="function"?t:ly(t)))}function vlt(t){typeof t!="function"&&(t=sy(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 ay(t){return new Array(t.length)}function mlt(){return new On(this._enter||this._groups.map(ay),this._parents)}function Fa(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}Fa.prototype={constructor:Fa,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 ylt(t){return function(){return t}}function blt(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 Fa(t,u[f]);for(;f<p;++f)(h=n[f])&&(a[f]=h)}function wlt(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 Fa(t,u[h]);for(h=0;h<m;++h)(p=n[h])&&g.get(x[h])===p&&(a[h]=p)}function xlt(t){return t.__data__}function _lt(t,n){if(!arguments.length)return Array.from(this,xlt);var r=n?wlt:blt,o=this._parents,a=this._groups;typeof t!="function"&&(t=ylt(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=Slt(t.call(m,m&&m.__data__,g,o)),M=S.length,A=h[g]=new Array(M),L=f[g]=new Array(M),C=p[g]=new Array(x);r(m,b,A,L,C,S,n);for(var E=0,z=0,D,G;E<M;++E)if(D=A[E]){for(E>=z&&(z=E+1);!(G=L[z])&&++z<M;);D._next=G||null}}return f=new On(f,o),f._enter=h,f._exit=p,f}function Slt(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function klt(){return new On(this._exit||this._groups.map(ay),this._parents)}function Clt(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 Tlt(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,M=0;M<b;++M)(S=g[M]||m[M])&&(x[M]=S);for(;p<a;++p)h[p]=r[p];return new On(h,this._parents)}function Llt(){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 Elt(t){t||(t=Alt);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 Alt(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function Mlt(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Nlt(){return Array.from(this)}function Plt(){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 Olt(){let t=0;for(const n of this)++t;return t}function $lt(){return!this.node()}function Dlt(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 Rlt(t){return function(){this.removeAttribute(t)}}function zlt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ilt(t,n){return function(){this.setAttribute(t,n)}}function Flt(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function qlt(t,n){return function(){var r=n.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function Hlt(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 Blt(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?zlt:Rlt:typeof n=="function"?r.local?Hlt:qlt:r.local?Flt:Ilt)(r,n))}function cy(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Wlt(t){return function(){this.style.removeProperty(t)}}function Ult(t,n,r){return function(){this.style.setProperty(t,n,r)}}function jlt(t,n,r){return function(){var o=n.apply(this,arguments);o==null?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}function Glt(t,n,r){return arguments.length>1?this.each((n==null?Wlt:typeof n=="function"?jlt:Ult)(t,n,r==null?"":r)):jo(this.node(),t)}function jo(t,n){return t.style.getPropertyValue(n)||cy(t).getComputedStyle(t,null).getPropertyValue(n)}function Vlt(t){return function(){delete this[t]}}function Klt(t,n){return function(){this[t]=n}}function Xlt(t,n){return function(){var r=n.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function Ylt(t,n){return arguments.length>1?this.each((n==null?Vlt:typeof n=="function"?Xlt:Klt)(t,n)):this.node()[t]}function uy(t){return t.trim().split(/^|\s+/)}function oh(t){return t.classList||new fy(t)}function fy(t){this._node=t,this._names=uy(t.getAttribute("class")||"")}fy.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 hy(t,n){for(var r=oh(t),o=-1,a=n.length;++o<a;)r.add(n[o])}function dy(t,n){for(var r=oh(t),o=-1,a=n.length;++o<a;)r.remove(n[o])}function Zlt(t){return function(){hy(this,t)}}function Jlt(t){return function(){dy(this,t)}}function Qlt(t,n){return function(){(n.apply(this,arguments)?hy:dy)(this,t)}}function tat(t,n){var r=uy(t+"");if(arguments.length<2){for(var o=oh(this.node()),a=-1,u=r.length;++a<u;)if(!o.contains(r[a]))return!1;return!0}return this.each((typeof n=="function"?Qlt:n?Zlt:Jlt)(r,n))}function eat(){this.textContent=""}function nat(t){return function(){this.textContent=t}}function rat(t){return function(){var n=t.apply(this,arguments);this.textContent=n==null?"":n}}function iat(t){return arguments.length?this.each(t==null?eat:(typeof t=="function"?rat:nat)(t)):this.node().textContent}function oat(){this.innerHTML=""}function sat(t){return function(){this.innerHTML=t}}function lat(t){return function(){var n=t.apply(this,arguments);this.innerHTML=n==null?"":n}}function aat(t){return arguments.length?this.each(t==null?oat:(typeof t=="function"?lat:sat)(t)):this.node().innerHTML}function cat(){this.nextSibling&&this.parentNode.appendChild(this)}function uat(){return this.each(cat)}function fat(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function hat(){return this.each(fat)}function dat(t){var n=typeof t=="function"?t:iy(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function pat(){return null}function gat(t,n){var r=typeof t=="function"?t:iy(t),o=n==null?pat:typeof n=="function"?n:ih(n);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function vat(){var t=this.parentNode;t&&t.removeChild(this)}function mat(){return this.each(vat)}function yat(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function bat(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function wat(t){return this.select(t?bat:yat)}function xat(t){return arguments.length?this.property("__data__",t):this.node().__data__}function _at(t){return function(n){t.call(this,n,this.__data__)}}function Sat(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 kat(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 Cat(t,n,r){return function(){var o=this.__on,a,u=_at(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 Tat(t,n,r){var o=Sat(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?Cat:kat,a=0;a<u;++a)this.each(h(o[a],n,r));return this}function py(t,n,r){var o=cy(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 Lat(t,n){return function(){return py(this,t,n)}}function Eat(t,n){return function(){return py(this,t,n.apply(this,arguments))}}function Aat(t,n){return this.each((typeof n=="function"?Eat:Lat)(t,n))}function*Mat(){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 gy=[null];function On(t,n){this._groups=t,this._parents=n}function pl(){return new On([[document.documentElement]],gy)}function Nat(){return this}On.prototype=pl.prototype={constructor:On,select:rlt,selectAll:llt,selectChild:flt,selectChildren:glt,filter:vlt,data:_lt,enter:mlt,exit:klt,join:Clt,merge:Tlt,selection:Nat,order:Llt,sort:Elt,call:Mlt,nodes:Nlt,node:Plt,size:Olt,empty:$lt,each:Dlt,attr:Blt,style:Glt,property:Ylt,classed:tat,text:iat,html:aat,raise:uat,lower:hat,append:dat,insert:gat,remove:mat,clone:wat,datum:xat,on:Tat,dispatch:Aat,[Symbol.iterator]:Mat};function _n(t){return typeof t=="string"?new On([[document.querySelector(t)]],[document.documentElement]):new On([[t]],gy)}function Pat(t){let n;for(;n=t.sourceEvent;)t=n;return t}function Ar(t,n){if(t=Pat(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 Oat={value:()=>{}};function gl(){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 wa(r)}function wa(t){this._=t}function $at(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}})}wa.prototype=gl.prototype={constructor:wa,on:function(t,n){var r=this._,o=$at(t+"",r),a,u=-1,f=o.length;if(arguments.length<2){for(;++u<f;)if((a=(t=o[u]).type)&&(a=Dat(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]=lv(r[a],t.name,n);else if(n==null)for(a in r)r[a]=lv(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 wa(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 Dat(t,n){for(var r=0,o=t.length,a;r<o;++r)if((a=t[r]).name===n)return a.value}function lv(t,n,r){for(var o=0,a=t.length;o<a;++o)if(t[o].name===n){t[o]=Oat,t=t.slice(0,o).concat(t.slice(o+1));break}return r!=null&&t.push({name:n,value:r}),t}const Rat={passive:!1},nl={capture:!0,passive:!1};function Lu(t){t.stopImmediatePropagation()}function Oo(t){t.preventDefault(),t.stopImmediatePropagation()}function vy(t){var n=t.document.documentElement,r=_n(t).on("dragstart.drag",Oo,nl);"onselectstart"in n?r.on("selectstart.drag",Oo,nl):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function my(t,n){var r=t.document.documentElement,o=_n(t).on("dragstart.drag",null);n&&(o.on("click.drag",Oo,nl),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 oa=t=>()=>t;function af(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}})}af.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function zat(t){return!t.ctrlKey&&!t.button}function Iat(){return this.parentNode}function Fat(t,n){return n==null?{x:t.x,y:t.y}:n}function qat(){return navigator.maxTouchPoints||"ontouchstart"in this}function Hat(){var t=zat,n=Iat,r=Fat,o=qat,a={},u=gl("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,Rat).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",M,nl).on("mouseup.drag",A,nl),vy(D.view),Lu(D),g=!1,h=D.clientX,p=D.clientY,j("start",D))}}function M(D){if(Oo(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),my(D.view,g),Oo(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),Q=j.length,dt,vt;for(dt=0;dt<Q;++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,Q;for(it=0;it<j;++it)(Q=a[G[it].identifier])&&(Oo(D),Q("drag",D,G[it]))}function E(D){var G=D.changedTouches,j=G.length,it,Q;for(m&&clearTimeout(m),m=setTimeout(function(){m=null},500),it=0;it<j;++it)(Q=a[G[it].identifier])&&(Lu(D),Q("end",D,G[it]))}function z(D,G,j,it,Q,dt){var vt=u.copy(),kt=Ar(dt||j,G),ft,U,I;if((I=r.call(D,new af("beforestart",{sourceEvent:j,target:x,identifier:Q,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[Q]=k,Et=f++;break;case"end":delete a[Q],--f;case"drag":kt=Ar(et||W,G),Et=f;break}vt.call(H,D,new af(H,{sourceEvent:W,subject:I,target:x,identifier:Q,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:oa(!!D),x):t},x.container=function(D){return arguments.length?(n=typeof D=="function"?D:oa(D),x):n},x.subject=function(D){return arguments.length?(r=typeof D=="function"?D:oa(D),x):r},x.touchable=function(D){return arguments.length?(o=typeof D=="function"?D:oa(!!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 sh(t,n,r){t.prototype=n.prototype=r,r.constructor=t}function yy(t,n){var r=Object.create(t.prototype);for(var o in n)r[o]=n[o];return r}function vl(){}var rl=.7,qa=1/rl,$o="\\s*([+-]?\\d+)\\s*",il="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ur="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Bat=/^#([0-9a-f]{3,8})$/,Wat=new RegExp(`^rgb\\(${$o},${$o},${$o}\\)$`),Uat=new RegExp(`^rgb\\(${ur},${ur},${ur}\\)$`),jat=new RegExp(`^rgba\\(${$o},${$o},${$o},${il}\\)$`),Gat=new RegExp(`^rgba\\(${ur},${ur},${ur},${il}\\)$`),Vat=new RegExp(`^hsl\\(${il},${ur},${ur}\\)$`),Kat=new RegExp(`^hsla\\(${il},${ur},${ur},${il}\\)$`),av={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};sh(vl,ol,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:cv,formatHex:cv,formatHex8:Xat,formatHsl:Yat,formatRgb:uv,toString:uv});function cv(){return this.rgb().formatHex()}function Xat(){return this.rgb().formatHex8()}function Yat(){return by(this).formatHsl()}function uv(){return this.rgb().formatRgb()}function ol(t){var n,r;return t=(t+"").trim().toLowerCase(),(n=Bat.exec(t))?(r=n[1].length,n=parseInt(n[1],16),r===6?fv(n):r===3?new Sn(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):r===8?sa(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):r===4?sa(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=Wat.exec(t))?new Sn(n[1],n[2],n[3],1):(n=Uat.exec(t))?new Sn(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=jat.exec(t))?sa(n[1],n[2],n[3],n[4]):(n=Gat.exec(t))?sa(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=Vat.exec(t))?pv(n[1],n[2]/100,n[3]/100,1):(n=Kat.exec(t))?pv(n[1],n[2]/100,n[3]/100,n[4]):av.hasOwnProperty(t)?fv(av[t]):t==="transparent"?new Sn(NaN,NaN,NaN,0):null}function fv(t){return new Sn(t>>16&255,t>>8&255,t&255,1)}function sa(t,n,r,o){return o<=0&&(t=n=r=NaN),new Sn(t,n,r,o)}function Zat(t){return t instanceof vl||(t=ol(t)),t?(t=t.rgb(),new Sn(t.r,t.g,t.b,t.opacity)):new Sn}function cf(t,n,r,o){return arguments.length===1?Zat(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}sh(Sn,cf,yy(vl,{brighter(t){return t=t==null?qa:Math.pow(qa,t),new Sn(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?rl:Math.pow(rl,t),new Sn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Sn(ji(this.r),ji(this.g),ji(this.b),Ha(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:hv,formatHex:hv,formatHex8:Jat,formatRgb:dv,toString:dv}));function hv(){return`#${Hi(this.r)}${Hi(this.g)}${Hi(this.b)}`}function Jat(){return`#${Hi(this.r)}${Hi(this.g)}${Hi(this.b)}${Hi((isNaN(this.opacity)?1:this.opacity)*255)}`}function dv(){const t=Ha(this.opacity);return`${t===1?"rgb(":"rgba("}${ji(this.r)}, ${ji(this.g)}, ${ji(this.b)}${t===1?")":`, ${t})`}`}function Ha(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ji(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Hi(t){return t=ji(t),(t<16?"0":"")+t.toString(16)}function pv(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 by(t){if(t instanceof Gn)return new Gn(t.h,t.s,t.l,t.opacity);if(t instanceof vl||(t=ol(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 Qat(t,n,r,o){return arguments.length===1?by(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}sh(Gn,Qat,yy(vl,{brighter(t){return t=t==null?qa:Math.pow(qa,t),new Gn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?rl:Math.pow(rl,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(gv(this.h),la(this.s),la(this.l),Ha(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=Ha(this.opacity);return`${t===1?"hsl(":"hsla("}${gv(this.h)}, ${la(this.s)*100}%, ${la(this.l)*100}%${t===1?")":`, ${t})`}`}}));function gv(t){return t=(t||0)%360,t<0?t+360:t}function la(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 wy=t=>()=>t;function tct(t,n){return function(r){return t+r*n}}function ect(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 nct(t){return(t=+t)==1?xy:function(n,r){return r-n?ect(n,r,t):wy(isNaN(n)?r:n)}}function xy(t,n){var r=n-t;return r?tct(t,r):wy(isNaN(t)?n:t)}const vv=function t(n){var r=nct(n);function o(a,u){var f=r((a=cf(a)).r,(u=cf(u)).r),h=r(a.g,u.g),p=r(a.b,u.b),g=xy(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 uf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Au=new RegExp(uf.source,"g");function rct(t){return function(){return t}}function ict(t){return function(n){return t(n)+""}}function oct(t,n){var r=uf.lastIndex=Au.lastIndex=0,o,a,u,f=-1,h=[],p=[];for(t=t+"",n=n+"";(o=uf.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]?ict(p[0].x):rct(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 mv=180/Math.PI,ff={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function _y(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)*mv,skewX:Math.atan(p)*mv,scaleX:f,scaleY:h}}var aa;function sct(t){const n=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return n.isIdentity?ff:_y(n.a,n.b,n.c,n.d,n.e,n.f)}function lct(t){return t==null||(aa||(aa=document.createElementNS("http://www.w3.org/2000/svg","g")),aa.setAttribute("transform",t),!(t=aa.transform.baseVal.consolidate()))?ff:(t=t.matrix,_y(t.a,t.b,t.c,t.d,t.e,t.f))}function Sy(t,n,r,o){function a(g){return g.length?g.pop()+" ":""}function u(g,m,b,x,S,M){if(g!==b||m!==x){var A=S.push("translate(",null,n,null,r);M.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,M){if(g!==b||m!==x){var A=S.push(a(S)+"scale(",null,",",null,")");M.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 M=-1,A=x.length,L;++M<A;)b[(L=x[M]).i]=L.x(S);return b.join("")}}}var act=Sy(sct,"px, ","px)","deg)"),cct=Sy(lct,", ",")",")"),uct=1e-12;function yv(t){return((t=Math.exp(t))+1/t)/2}function fct(t){return((t=Math.exp(t))-1/t)/2}function hct(t){return((t=Math.exp(2*t))-1)/(t+1)}const dct=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,M=b-p,A=S*S+M*M,L,C;if(A<uct)C=Math.log(x/g)/n,L=function(it){return[h+it*S,p+it*M,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 Q=it*C,dt=yv(G),vt=g/(r*E)*(dt*hct(n*Q+G)-fct(G));return[h+vt*S,p+vt*M,g*dt/yv(n*Q+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 Go=0,Rs=0,Os=0,ky=1e3,Ba,zs,Wa=0,Xi=0,yc=0,sl=typeof performance=="object"&&performance.now?performance:Date,Cy=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function lh(){return Xi||(Cy(pct),Xi=sl.now()+yc)}function pct(){Xi=0}function Ua(){this._call=this._time=this._next=null}Ua.prototype=ah.prototype={constructor:Ua,restart:function(t,n,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?lh():+r)+(n==null?0:+n),!this._next&&zs!==this&&(zs?zs._next=this:Ba=this,zs=this),this._call=t,this._time=r,hf()},stop:function(){this._call&&(this._call=null,this._time=1/0,hf())}};function ah(t,n,r){var o=new Ua;return o.restart(t,n,r),o}function gct(){lh(),++Go;for(var t=Ba,n;t;)(n=Xi-t._time)>=0&&t._call.call(void 0,n),t=t._next;--Go}function bv(){Xi=(Wa=sl.now())+yc,Go=Rs=0;try{gct()}finally{Go=0,mct(),Xi=0}}function vct(){var t=sl.now(),n=t-Wa;n>ky&&(yc-=n,Wa=t)}function mct(){for(var t,n=Ba,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:Ba=r);zs=t,hf(o)}function hf(t){if(!Go){Rs&&(Rs=clearTimeout(Rs));var n=t-Xi;n>24?(t<1/0&&(Rs=setTimeout(bv,t-sl.now()-yc)),Os&&(Os=clearInterval(Os))):(Os||(Wa=sl.now(),Os=setInterval(vct,ky)),Go=1,Cy(bv))}}function wv(t,n,r){var o=new Ua;return n=n==null?0:+n,o.restart(a=>{o.stop(),t(a+n)},n,r),o}var yct=gl("start","end","cancel","interrupt"),bct=[],Ty=0,xv=1,df=2,xa=3,_v=4,pf=5,_a=6;function bc(t,n,r,o,a,u){var f=t.__transition;if(!f)t.__transition={};else if(r in f)return;wct(t,r,{name:n,index:o,group:a,on:yct,tween:bct,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:Ty})}function ch(t,n){var r=Yn(t,n);if(r.state>Ty)throw new Error("too late; already scheduled");return r}function pr(t,n){var r=Yn(t,n);if(r.state>xa)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 wct(t,n,r){var o=t.__transition,a;o[n]=r,r.timer=ah(u,0,r.time);function u(g){r.state=xv,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!==xv)return p();for(m in o)if(S=o[m],S.name===r.name){if(S.state===xa)return wv(f);S.state===_v?(S.state=_a,S.timer.stop(),S.on.call("interrupt",t,t.__data__,S.index,S.group),delete o[m]):+m<n&&(S.state=_a,S.timer.stop(),S.on.call("cancel",t,t.__data__,S.index,S.group),delete o[m])}if(wv(function(){r.state===xa&&(r.state=_v,r.timer.restart(h,r.delay,r.time),h(g))}),r.state=df,r.on.call("start",t,t.__data__,r.index,r.group),r.state===df){for(r.state=xa,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=pf,1),b=-1,x=a.length;++b<x;)a[b].call(t,m);r.state===pf&&(r.on.call("end",t,t.__data__,r.index,r.group),p())}function p(){r.state=_a,r.timer.stop(),delete o[n];for(var g in o)return;delete t.__transition}}function Sa(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>df&&o.state<pf,o.state=_a,o.timer.stop(),o.on.call(a?"interrupt":"cancel",t,t.__data__,o.index,o.group),delete r[f]}u&&delete t.__transition}}function xct(t){return this.each(function(){Sa(this,t)})}function _ct(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 Sct(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 kct(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?_ct:Sct)(r,t,n))}function uh(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 Ly(t,n){var r;return(typeof n=="number"?oi:n instanceof ol?vv:(r=ol(n))?(n=r,vv):oct)(t,n)}function Cct(t){return function(){this.removeAttribute(t)}}function Tct(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Lct(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 Ect(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 Act(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 Mct(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 Nct(t,n){var r=mc(t),o=r==="transform"?cct:Ly;return this.attrTween(t,typeof n=="function"?(r.local?Mct:Act)(r,o,uh(this,"attr."+t,n)):n==null?(r.local?Tct:Cct)(r):(r.local?Ect:Lct)(r,o,n))}function Pct(t,n){return function(r){this.setAttribute(t,n.call(this,r))}}function Oct(t,n){return function(r){this.setAttributeNS(t.space,t.local,n.call(this,r))}}function $ct(t,n){var r,o;function a(){var u=n.apply(this,arguments);return u!==o&&(r=(o=u)&&Oct(t,u)),r}return a._value=n,a}function Dct(t,n){var r,o;function a(){var u=n.apply(this,arguments);return u!==o&&(r=(o=u)&&Pct(t,u)),r}return a._value=n,a}function Rct(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?$ct:Dct)(o,n))}function zct(t,n){return function(){ch(this,t).delay=+n.apply(this,arguments)}}function Ict(t,n){return n=+n,function(){ch(this,t).delay=n}}function Fct(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?zct:Ict)(n,t)):Yn(this.node(),n).delay}function qct(t,n){return function(){pr(this,t).duration=+n.apply(this,arguments)}}function Hct(t,n){return n=+n,function(){pr(this,t).duration=n}}function Bct(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?qct:Hct)(n,t)):Yn(this.node(),n).duration}function Wct(t,n){if(typeof n!="function")throw new Error;return function(){pr(this,t).ease=n}}function Uct(t){var n=this._id;return arguments.length?this.each(Wct(n,t)):Yn(this.node(),n).ease}function jct(t,n){return function(){var r=n.apply(this,arguments);if(typeof r!="function")throw new Error;pr(this,t).ease=r}}function Gct(t){if(typeof t!="function")throw new Error;return this.each(jct(this._id,t))}function Vct(t){typeof t!="function"&&(t=sy(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 Kct(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 Xct(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 Yct(t,n,r){var o,a,u=Xct(n)?ch:pr;return function(){var f=u(this,t),h=f.on;h!==o&&(a=(o=h).copy()).on(n,r),f.on=a}}function Zct(t,n){var r=this._id;return arguments.length<2?Yn(this.node(),r).on.on(t):this.each(Yct(r,t,n))}function Jct(t){return function(){var n=this.parentNode;for(var r in this.__transition)if(+r!==t)return;n&&n.removeChild(this)}}function Qct(){return this.on("end.remove",Jct(this._id))}function tut(t){var n=this._name,r=this._id;typeof t!="function"&&(t=ih(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 eut(t){var n=this._name,r=this._id;typeof t!="function"&&(t=oy(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,M=Yn(m,r),A=0,L=x.length;A<L;++A)(S=x[A])&&bc(S,n,r,A,x,M);u.push(x),f.push(m)}return new zr(u,f,n,r)}var nut=pl.prototype.constructor;function rut(){return new nut(this._groups,this._parents)}function iut(t,n){var r,o,a;return function(){var u=jo(this,t),f=(this.style.removeProperty(t),jo(this,t));return u===f?null:u===r&&f===o?a:a=n(r=u,o=f)}}function Ey(t){return function(){this.style.removeProperty(t)}}function out(t,n,r){var o,a=r+"",u;return function(){var f=jo(this,t);return f===a?null:f===o?u:u=n(o=f,r)}}function sut(t,n,r){var o,a,u;return function(){var f=jo(this,t),h=r(this),p=h+"";return h==null&&(p=h=(this.style.removeProperty(t),jo(this,t))),f===p?null:f===o&&p===a?u:(a=p,u=n(o=f,h))}}function lut(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=Ey(n)):void 0;(g!==r||a!==m)&&(o=(r=g).copy()).on(f,a=m),p.on=o}}function aut(t,n,r){var o=(t+="")=="transform"?act:Ly;return n==null?this.styleTween(t,iut(t,o)).on("end.style."+t,Ey(t)):typeof n=="function"?this.styleTween(t,sut(t,o,uh(this,"style."+t,n))).each(lut(this._id,t)):this.styleTween(t,out(t,o,n),r).on("end.style."+t,null)}function cut(t,n,r){return function(o){this.style.setProperty(t,n.call(this,o),r)}}function uut(t,n,r){var o,a;function u(){var f=n.apply(this,arguments);return f!==a&&(o=(a=f)&&cut(t,f,r)),o}return u._value=n,u}function fut(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,uut(t,n,r==null?"":r))}function hut(t){return function(){this.textContent=t}}function dut(t){return function(){var n=t(this);this.textContent=n==null?"":n}}function put(t){return this.tween("text",typeof t=="function"?dut(uh(this,"text",t)):hut(t==null?"":t+""))}function gut(t){return function(n){this.textContent=t.call(this,n)}}function vut(t){var n,r;function o(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&gut(a)),n}return o._value=t,o}function mut(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,vut(t))}function yut(){for(var t=this._name,n=this._id,r=Ay(),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 but(){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 wut=0;function zr(t,n,r,o){this._groups=t,this._parents=n,this._name=r,this._id=o}function Ay(){return++wut}var Lr=pl.prototype;zr.prototype={constructor:zr,select:tut,selectAll:eut,selectChild:Lr.selectChild,selectChildren:Lr.selectChildren,filter:Vct,merge:Kct,selection:rut,transition:yut,call:Lr.call,nodes:Lr.nodes,node:Lr.node,size:Lr.size,empty:Lr.empty,each:Lr.each,on:Zct,attr:Nct,attrTween:Rct,style:aut,styleTween:fut,text:put,textTween:mut,remove:Qct,tween:kct,delay:Fct,duration:Bct,ease:Uct,easeVarying:Gct,end:but,[Symbol.iterator]:Lr[Symbol.iterator]};function xut(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var _ut={time:null,delay:0,duration:250,ease:xut};function Sut(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 kut(t){var n,r;t instanceof zr?(n=t._id,t=t._name):(n=Ay(),(r=_ut).time=lh(),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||Sut(p,n));return new zr(o,this._parents,t,n)}pl.prototype.interrupt=xct;pl.prototype.transition=kut;const ca=t=>()=>t;function Cut(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 fh=new Pr(1,0,0);Pr.prototype;function Mu(t){t.stopImmediatePropagation()}function $s(t){t.preventDefault(),t.stopImmediatePropagation()}function Tut(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Lut(){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 Sv(){return this.__zoom||fh}function Eut(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Aut(){return navigator.maxTouchPoints||"ontouchstart"in this}function Mut(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 Nut(){var t=Tut,n=Lut,r=Mut,o=Eut,a=Aut,u=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],h=250,p=dct,g=gl("start","zoom","end"),m,b,x,S=500,M=150,A=0,L=10;function C(I){I.property("__zoom",Sv).on("wheel.zoom",Q,{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",Sv),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(fh.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,J=typeof k=="function"?k.apply(et,wt):k,tt=p(ne.invert(Bt).concat(Gt/ne.k),J.invert(Bt).concat(Gt/J.k));return function(V){if(V===1)V=J;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 Cut(I,{sourceEvent:this.sourceEvent,target:C,type:I,transform:this.that.__zoom,dispatch:g}),k)}};function Q(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)],Sa(this),H.start()}$s(I),H.wheel=setTimeout(Et,M),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;vy(I.view),Mu(I),W.mouse=[wt,this.__zoom.invert(wt)],Sa(this),W.start();function Bt(ne){if($s(ne),!W.moved){var J=ne.clientX-Et,tt=ne.clientY-qt;W.moved=J*J+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),my(ne.view,W.moved),$s(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);$s(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)),Sa(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($s(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],J=H.touch1[0],tt=H.touch1[1],V=(V=J[0]-Gt[0])*V+(V=J[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]+J[0])/2,(Gt[1]+J[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:ca(+I),C):o},C.filter=function(I){return arguments.length?(t=typeof I=="function"?I:ca(!!I),C):t},C.touchable=function(I){return arguments.length?(a=typeof I=="function"?I:ca(!!I),C):a},C.extent=function(I){return arguments.length?(n=typeof I=="function"?I:ca([[+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 Put(t){const n=+this._x.call(null,t),r=+this._y.call(null,t);return My(this.cover(n,r),n,r,t)}function My(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,M,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),M=+t._y.call(null,u.data),n===S&&r===M)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=(M>=x)<<1|S>=b));return a[E]=u,a[C]=f,t}function Out(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)My(this,f[r],h[r],t[r]);return this}function $ut(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 Dut(){var t=[];return this.visit(function(n){if(!n.length)do t.push(n.data);while(n=n.next)}),t}function Rut(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 zut(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,M,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);M=x.pop();)if(!(!(S=M.node)||(f=M.x0)>m||(h=M.y0)>b||(p=M.x1)<a||(g=M.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)&&(M=x[x.length-1],x[x.length-1]=x[x.length-1-A],x[x.length-1-A]=M)}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 Iut(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,M,A,L,C;if(!r)return this;if(r.length)for(;;){if((M=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|M]))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 Fut(t){for(var n=0,r=t.length;n<r;++n)this.remove(t[n]);return this}function qut(){return this._root}function Hut(){var t=0;return this.visit(function(n){if(!n.length)do++t;while(n=n.next)}),t}function But(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 Wut(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 Uut(t){return t[0]}function jut(t){return arguments.length?(this._x=t,this):this._x}function Gut(t){return t[1]}function Vut(t){return arguments.length?(this._y=t,this):this._y}function hh(t,n,r){var o=new dh(n==null?Uut:n,r==null?Gut:r,NaN,NaN,NaN,NaN);return t==null?o:o.addAll(t)}function dh(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 kv(t){for(var n={data:t.data},r=n;t=t.next;)r=r.next={data:t.data};return n}var vn=hh.prototype=dh.prototype;vn.copy=function(){var t=new dh(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=kv(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]=kv(o));return t};vn.add=Put;vn.addAll=Out;vn.cover=$ut;vn.data=Dut;vn.extent=Rut;vn.find=zut;vn.remove=Iut;vn.removeAll=Fut;vn.root=qut;vn.size=Hut;vn.visit=But;vn.visitAfter=Wut;vn.x=jut;vn.y=Vut;function gn(t){return function(){return t}}function li(t){return(t()-.5)*1e-6}function Kut(t){return t.x+t.vx}function Xut(t){return t.y+t.vy}function Yut(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,M,A,L,C=0;C<u;++C)for(b=hh(n,Kut,Xut).visitAfter(h),g=0;g<m;++g)x=n[g],A=r[x.index],L=A*A,S=x.x+x.vx,M=x.y+x.vy,b.visit(E);function E(z,D,G,j,it){var Q=z.data,dt=z.r,vt=A+dt;if(Q){if(Q.index>x.index){var kt=S-Q.x-Q.vx,ft=M-Q.y-Q.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,Q.vx-=kt*(vt=1-vt),Q.vy-=ft*vt)}return}return D>S+vt||j<S-vt||G>M+vt||it<M-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 Zut(t){return t.index}function Cv(t,n){var r=t.get(n);if(!r)throw new Error("node not found: "+n);return r}function Jut(t){var n=Zut,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,Q,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),Q=j.y+j.vy-G.y-G.vy||li(g),dt=Math.sqrt(it*it+Q*Q),dt=(dt-u[z])/dt*L*o[z],it*=dt,Q*=dt,j.vx-=it*(vt=p[z]),j.vy-=Q*vt,G.vx+=it*(vt=1-vt),G.vy+=Q*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=Cv(z,D.source)),typeof D.target!="object"&&(D.target=Cv(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),M(),u=new Array(E),A()}}function M(){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),M(),x):r},x.distance=function(L){return arguments.length?(a=typeof L=="function"?L:gn(+L),A(),x):a},x}const Qut=1664525,tft=1013904223,Tv=4294967296;function eft(){let t=1;return()=>(t=(Qut*t+tft)%Tv)/Tv}function nft(t){return t.x}function rft(t){return t.y}var ift=10,oft=Math.PI*(3-Math.sqrt(5));function sft(t){var n,r=1,o=.001,a=1-Math.pow(o,1/300),u=0,f=.6,h=new Map,p=ah(b),g=gl("tick","end"),m=eft();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=ift*Math.sqrt(.5+A),z=A*oft;C.x=E*Math.cos(z),C.y=E*Math.sin(z)}(isNaN(C.vx)||isNaN(C.vy))&&(C.vx=C.vy=0)}}function M(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(M),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(M),n):m},force:function(A,L){return arguments.length>1?(L==null?h.delete(A):h.set(A,M(L)),n):h.get(A)},find:function(A,L,C){var E=0,z=t.length,D,G,j,it,Q;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&&(Q=it,C=j);return Q},on:function(A,L){return arguments.length>1?(g.on(A,L),n):g.on(A)}}}function lft(){var t,n,r,o,a=gn(-30),u,f=1,h=1/0,p=.81;function g(S){var M,A=t.length,L=hh(t,nft,rft).visitAfter(b);for(o=S,M=0;M<A;++M)n=t[M],L.visit(x)}function m(){if(!!t){var S,M=t.length,A;for(u=new Array(M),S=0;S<M;++S)A=t[S],u[A.index]=+a(A,S,t)}}function b(S){var M=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))&&(M+=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 M+=u[A.data.index];while(A=A.next)}S.value=M}function x(S,M,A,L){if(!S.value)return!0;var C=S.x-n.x,E=S.y-n.y,z=L-M,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,M){t=S,r=M,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 aft(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 cft(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 uft=Object.defineProperty,fft=(t,n,r)=>n in t?uft(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,Me=(t,n,r)=>(fft(t,typeof n!="symbol"?n+"":n,r),r);function hft(){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 dft(){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 pft(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function Ny(t){t.preventDefault(),t.stopPropagation()}function Py(t){return typeof t=="number"}function gi(t,n){return Py(t.nodeRadius)?t.nodeRadius:t.nodeRadius(n)}function gft(t){return`${t.source.id}-${t.target.id}`}function Oy(t){return`link-arrow-${t}`.replace(/[()]/g,"~")}function vft(t){return`url(#${Oy(t.color)})`}function mft(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 $y={Arrow:t=>mft(t)},yft=(t,n,r)=>[n/2,r/2],bft=(t,n,r)=>[Lv(0,n),Lv(0,r)];function Lv(t,n){return Math.random()*(n-t)+t}const gf={Centered:yft,Randomized:bft};var Vo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Dy={},vf=Vo&&Vo.__assign||function(){return vf=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},vf.apply(this,arguments)},wft=Vo&&Vo.__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},xft=Vo&&Vo.__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(Dy,"__esModule",{value:!0});var Ev=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]:Ev(r[a])&&Ev(o[a])?r[a]=ai(r[a],o[a]):r[a]=o[a])}),r},{})},Ry={mergeArrays:!0};ai.options=Ry;ai.withOptions=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];ai.options=vf({mergeArrays:!0},t);var o=ai.apply(void 0,xft([],wft(n),!1));return ai.options=Ry,o};var _ft=Dy.default=ai;function Sft(){return{autoResize:!1,callbacks:{},initial:pft(),nodeRadius:16,marker:$y.Arrow(4),modifiers:{},positionInitializer:gf.Centered,simulation:{alphas:hft(),forces:dft()},zoom:{initial:1,min:.1,max:2}}}function kft(t={}){return _ft.withOptions({mergeArrays:!1},Sft(),t)}function Cft(t,n){let r;return()=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>t(),n)}}function Tft({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=>Ny(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,fh.translate(u,f).scale(h)),g.append("g")}function Lft({canvas:t,scale:n,xOffset:r,yOffset:o}){t==null||t.attr("transform",`translate(${r},${o})scale(${n})`)}function Eft({config:t,onDragStart:n,onDragEnd:r}){var o,a;const u=Hat().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 Aft({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}:Mft({nodes:h,links:u},r)}function Mft(t,n){const r=[...Nft(t,n),...Pft(t,n)],o=r.flatMap(a=>[a.source,a.target]);return{nodes:[...new Set([...o,n])],links:[...new Set(r)]}}function Nft(t,n){return zy(t,n,(r,o)=>r.target.id===o.id)}function Pft(t,n){return zy(t,n,(r,o)=>r.source.id===o.id)}function zy(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 mf(t){var n;return(n=t.x)!=null?n:0}function yf(t){var n;return(n=t.y)!=null?n:0}function ph({source:t,target:n}){const r=new hn(mf(t),yf(t)),o=new hn(mf(n),yf(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 Iy({center:t,node:n}){const r=new hn(mf(n),yf(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 Fy({config:t,source:n,target:r}){const{s:o,t:a,norm:u}=ph({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 Oft(t){const{start:n,end:r}=Fy(t);return`M${n.x},${n.y}
31
+ L${r.x},${r.y}`}function $ft(t){const{start:n,end:r}=Fy(t),o=r.subtract(n).multiply(.5),a=n.add(o);return`translate(${a.x-8},${a.y-4})`}function Dft({config:t,source:n,target:r}){const{s:o,t:a,dist:u,norm:f,endNorm:h}=ph({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 Rft({center:t,config:n,node:r}){const{n:o,c:a}=Iy({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 zft({config:t,source:n,target:r}){const{t:o,dist:a,endNorm:u}=ph({config:t,source:n,target:r}),f=10,h=u.rotateByDegrees(f).multiply(.5*a).add(o);return`translate(${h.x},${h.y})`}function Ift({center:t,config:n,node:r}){const{n:o,c:a}=Iy({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 Do={line:{labelTransform:$ft,path:Oft},arc:{labelTransform:zft,path:Dft},reflexive:{labelTransform:Ift,path:Rft}};function Fft(t){return t.append("g").classed("links",!0).selectAll("path")}function qft({config:t,graph:n,selection:r,showLabels:o}){const a=r==null?void 0:r.data(n.links,u=>gft(u)).join(u=>{var f,h,p,g;const m=u.append("g"),b=m.append("path").classed("link",!0).style("marker-end",S=>vft(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 Hft(t){Bft(t),Wft(t)}function Bft({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?Do.reflexive.path({config:n,node:a.source,center:t}):qy(r,a.source,a.target)?Do.arc.path({config:n,source:a.source,target:a.target}):Do.line.path({config:n,source:a.source,target:a.target}))}function Wft({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?Do.reflexive.labelTransform({config:t,node:a.source,center:n}):qy(r,a.source,a.target)?Do.arc.labelTransform({config:t,source:a.source,target:a.target}):Do.line.labelTransform({config:t,source:a.source,target:a.target}))}function qy(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 Uft(t){return t.append("defs").selectAll("marker")}function jft({config:t,graph:n,selection:r}){return r==null?void 0:r.data(Gft(n),o=>o).join(o=>{const a=o.append("marker").attr("id",u=>Oy(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",Vft(t.marker.path)),a})}function Gft(t){return[...new Set(t.links.map(n=>n.color))]}function Vft(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 Kft(t){return t.append("g").classed("nodes",!0).selectAll("circle")}function Xft({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 M=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)=>{Ny(L),o(C)}).on("pointerdown",(L,C)=>Zft(L,C,a!=null?a:o)).style("fill",L=>L.color);(m=(g=t.modifiers).node)==null||m.call(g,M);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 Yft=500;function Zft(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>Yft){n.lastInteractionTimestamp=a;return}n.lastInteractionTimestamp=void 0,r(n)}function Jft(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 Qft({center:t,config:n,graph:r,onTick:o}){var a,u;const f=sft(r.nodes),h=n.simulation.forces.centering;if(h&&h.enabled){const b=h.strength;f.force("x",aft(()=>t().x).strength(b)).force("y",cft(()=>t().y).strength(b))}const p=n.simulation.forces.charge;p&&p.enabled&&f.force("charge",lft().strength(p.strength));const g=n.simulation.forces.collision;g&&g.enabled&&f.force("collision",Yut().radius(b=>g.radiusMultiplier*gi(n,b)));const m=n.simulation.forces.link;return m&&m.enabled&&f.force("link",Jut(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 tht({canvasContainer:t,config:n,min:r,max:o,onZoom:a}){var u,f;const h=Nut().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 eht{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(Cft(()=>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(Py(h)?h:h({oldWidth:n,oldHeight:r,newWidth:o,newHeight:a}))}restart(n){var r;this.markerSelection=jft({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=qft({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Xft({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=Qft({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=tht({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=Tft({applyZoom:this.scale!==1,container:_n(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=Fft(this.canvas),this.nodeSelection=Kft(this.canvas),this.markerSelection=Uft(this.canvas),this.drag=Eft({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(){Jft(this.nodeSelection),Hft({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(){Lft({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=Aft({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function Av({nodes:t,links:n}){return{nodes:t!=null?t:[],links:n!=null?n:[]}}function nht(t){return{...t}}function Hy(t){return{...t,isFocused:!1,lastInteractionTimestamp:void 0}}const rht={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},iht={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},oht=["id","checked","onChange"],sht=["for"],lht=ut("div",{"flex-auto":""},null,-1),aht=oe({__name:"ViewModuleGraph",props:{graph:null},setup(t){const n=t,{graph:r}=Ix(n),o=Kt(),a=Kt(!1),u=Kt(),f=Kt();zf(()=>{a.value===!1&&setTimeout(()=>u.value=void 0,300)},{flush:"post"}),ul(()=>{g()}),Ff(()=>{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 eht(o.value,r.value,kft({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:$y.Arrow(2),modifiers:{node:m},positionInitializer:r.value.nodes.length>1?gf.Randomized:gf.Centered,zoom:{min:.5,max:2}})))}function m(b){const x=L=>L.button===0;let S=0,M=0,A=0;b.on("pointerdown",(L,C)=>{C.type!=="external"&&(!C.x||!C.y||!x(L)||(S=C.x,M=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-M;E**2+z**2<100&&p(C.id)})}return(b,x)=>{var C;const S=Zo,M=Qst,A=Hst,L=Zi("tooltip");return ht(),Mt("div",rht,[ut("div",null,[ut("div",iht,[(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,oht),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})`})},Jt(E)+" Modules",13,sht)])}),128)),lht,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:Zt(()=>[u.value?(ht(),ce(t1,{key:0},{default:Zt(()=>[Rt(M,{id:u.value,onClose:x[0]||(x[0]=E=>a.value=!1)},null,8,["id"])]),_:1})):ye("",!0)]),_:1},8,["modelValue"])])}}});const cht={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},uht={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},fht={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},hht={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},dht={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},pht={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},gh=oe({__name:"StatusIcon",props:{task:null},setup(t){return(n,r)=>{var a,u,f;const o=Zi("tooltip");return((a=t.task.result)==null?void 0:a.state)==="pass"?(ht(),Mt("div",cht)):Z(dc)(t.task)?pn((ht(),Mt("div",uht,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):((u=t.task.result)==null?void 0:u.state)==="fail"?(ht(),Mt("div",fht)):t.task.mode==="todo"?pn((ht(),Mt("div",hht,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",dht,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(ht(),Mt("div",pht))}}});function ght(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 vht(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 mht(t){const n=t.map(o=>vht(o)),r=ght(n);return n.map(({raw:o,id:a})=>{var u;return Hy({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 yht(t,n){return Hy({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 bht(t,n){var h;if(!t)return Av({});const r=mht(t.externalized),o=(h=t.inlined.map(p=>yht(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 nht({source:b,target:x,color:"var(--color-link)",label:!1})}).filter(m=>m!==void 0));return Av({nodes:a,links:f})}const wht={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":""},xht={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},_ht={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},Sht={class:"flex text-lg"},kht={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},Cht={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},Tht={key:0,"flex-1":""},Lht=oe({__name:"FileDetails",setup(t){const n=Kt({externalized:[],graph:{},inlined:[]}),r=Kt({nodes:[],links:[]}),o=Kt(!1),a=Kt(!1);oC(Le,async(g,m)=>{g&&g.filepath!==(m==null?void 0:m.filepath)&&(n.value=await We.rpc.getModuleGraph(g.filepath),r.value=bht(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=z0.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=gh,x=Zo,S=aht,M=qst,A=$st,L=Tst,C=Zi("tooltip");return Z(Le)?(ht(),Mt("div",wht,[ut("div",null,[ut("div",xht,[Rt(b,{task:Z(Le)},null,8,["task"]),ut("div",_ht,Jt((E=Z(Le))==null?void 0:E.filepath),1),ut("div",Sht,[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",kht,[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"))},Jt(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 ("+Jt(Z(h))+") ",3)])]),ut("div",Cht,[a.value?(ht(),Mt("div",Tht,[pn(Rt(S,{graph:r.value},null,8,["graph"]),[[Dm,Z(or)==="graph"]])])):ye("",!0),Z(or)==="editor"?(ht(),ce(M,{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)}}}),Eht=["open"],Aht=ut("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),Mht=ut("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),Nht=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"},[Aht,Kn(r.$slots,"summary",{open:n.value}),Mht],2),Kn(r.$slots,"default")],40,Eht))}});const Pht={key:0,flex:"~ row","items-center":"",p:"x-2 y-1","border-rounded":"","cursor-pointer":"",hover:"bg-active"},Oht=["text"],$ht={"text-sm":"",truncate:"","font-light":""},Dht={key:0,text:"xs",op20:"",style:{"white-space":"nowrap"}},Rht=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=gh;return t.task?(ht(),Mt("div",Pht,[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",$ht,Jt(t.task.name),1),typeof Z(r)=="number"?(ht(),Mt("span",Dht,Jt(Z(r)>0?Z(r):"< 1")+"ms ",1)):ye("",!0)],8,Oht)])):ye("",!0)}}});function zht(t){return Object.hasOwnProperty.call(t,"tasks")}function By(t,n){return typeof t!="string"||typeof n!="string"?!1:t.toLowerCase().includes(n.toLowerCase())}const Iht={key:1},Fht={inheritAttrs:!1},qht=oe({...Fht,__name:"TaskTree",props:{task:null,indent:{default:0},nested:{type:Boolean,default:!1},search:null,onItemClick:null},setup(t){return(n,r)=>{const o=Rht,a=Gi("TaskTree",!0);return ht(),Mt(ue,null,[!t.search||Z(By)(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",Iht,[(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)}}}),Hht={h:"full",flex:"~ col"},Bht={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Wht={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Uht=ut("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1),jht=["op"],Ght={class:"scrolls","flex-auto":"","py-1":""},Vht={"text-red5":""},Kht={"text-yellow5":""},Xht={"text-green5":""},Yht={class:"text-purple5:50"},Zht={key:2,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Jht=ut("div",{op30:""}," No matched test ",-1),Qht={inheritAttrs:!1},Wy=oe({...Qht,__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(By(D.name,C)){E=!0;break}if(zht(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=>Ia(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=Vk(x,250),M=L=>{var C;o.value="",L&&((C=a.value)==null||C.focus())},A=St(()=>o.value==="");return(L,C)=>{const E=Zo,z=qht,D=Nht,G=Zi("tooltip");return ht(),Mt("div",Hht,[ut("div",null,[ut("div",Bht,[Kn(L.$slots,"header",{filteredTests:Z(u)?Z(p):void 0})]),ut("div",Wht,[Uht,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]=ju(j=>M(!1),["esc"])),C[2]||(C[2]=ju(j=>n("run",Z(u)?Z(p):void 0),["enter"]))]},null,40,jht),[[b_,o.value]]),pn(Rt(E,{disabled:Z(A),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:C[3]||(C[3]=j=>M(!0))},null,8,["disabled"]),[[G,"Clear search",void 0,{bottom:!0}]])])]),ut("div",Ght,[t.groupByType?(ht(),Mt(ue,{key:0},[Z(g).length?(ht(),ce(D,{key:0},{summary:Zt(()=>[ut("div",Vht," FAIL ("+Jt(Z(g).length)+") ",1)]),default:Zt(()=>[(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(za)==="running"?(ht(),ce(D,{key:1},{summary:Zt(()=>[ut("div",Kht," RUNNING ("+Jt(Z(S).length)+") ",1)]),default:Zt(()=>[(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:Zt(()=>[ut("div",Xht," PASS ("+Jt(Z(m).length)+") ",1)]),default:Zt(()=>[(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:Zt(()=>[ut("div",Yht," SKIP ("+Jt(Z(b).length)+") ",1)]),default:Zt(()=>[(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",Zht,[Jht,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=>M(!0))}," Clear ",32)])):ye("",!0)])])}}}),tdt={key:0,"h-full":""},edt={"font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},ndt={class:"flex text-lg"},rdt=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=gh,h=Zo,p=Wy,g=Zi("tooltip");return Z(Le)?(ht(),Mt("div",tdt,[Rt(p,{tasks:Z(Le).tasks,nested:!0},{header:Zt(()=>[Rt(f,{"mx-1":"",task:Z(Le)},null,8,["task"]),ut("span",edt,Jt(Z(n)),1),ut("div",ndt,[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(gT)())},null,512),[[g,"Rerun file",void 0,{bottom:!0}]])])]),_:1},8,["tasks"])])):ye("",!0)}}}),ja=St(()=>Tn.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="fail"})),Ga=St(()=>Tn.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="pass"})),vh=St(()=>Tn.value.filter(t=>t.mode==="skip"||t.mode==="todo"));St(()=>Tn.value.filter(t=>!ja.value.includes(t)&&!Ga.value.includes(t)&&!vh.value.includes(t)));St(()=>vh.value.filter(t=>t.mode==="skip"));const Mv=St(()=>Tn.value.filter(dc));St(()=>vh.value.filter(t=>t.mode==="todo"));const idt=St(()=>za.value==="idle"),ml=St(()=>mh(Tn.value)),Uy=St(()=>ml.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="fail"})),jy=St(()=>ml.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="pass"})),Gy=St(()=>ml.value.filter(t=>t.mode==="skip"||t.mode==="todo")),odt=St(()=>Gy.value.filter(t=>t.mode==="skip")),sdt=St(()=>Gy.value.filter(t=>t.mode==="todo"));St(()=>Uy.value.length+jy.value.length);const ldt=St(()=>{const t=mh(ml.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 adt(t){return t=t||[],Array.isArray(t)?t:[t]}function Nv(t){return t.type==="test"||t.type==="benchmark"||t.type==="typecheck"}function mh(t){return adt(t).flatMap(n=>Nv(n)?[n]:n.tasks.flatMap(r=>Nv(r)?[r]:mh(r)))}const gr=t=>(cm("data-v-6679a536"),t=t(),um(),t),cdt={"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:""},udt=gr(()=>ut("div",{"i-carbon-document":""},null,-1)),fdt=gr(()=>ut("div",null,"Files",-1)),hdt={class:"number","data-testid":"num-files"},ddt=gr(()=>ut("div",{"i-carbon-checkmark":""},null,-1)),pdt=gr(()=>ut("div",null,"Pass",-1)),gdt={class:"number"},vdt=gr(()=>ut("div",{"i-carbon-close":""},null,-1)),mdt=gr(()=>ut("div",null," Fail ",-1)),ydt={class:"number","text-red5":""},bdt=gr(()=>ut("div",{"i-carbon-compare":""},null,-1)),wdt=gr(()=>ut("div",null," Snapshot Fail ",-1)),xdt={class:"number","text-red5":""},_dt=gr(()=>ut("div",{"i-carbon-timer":""},null,-1)),Sdt=gr(()=>ut("div",null,"Time",-1)),kdt={class:"number","data-testid":"run-time"},Cdt=oe({__name:"TestFilesEntry",setup(t){return(n,r)=>(ht(),Mt("div",cdt,[udt,fdt,ut("div",hdt,Jt(Z(Tn).length),1),Z(Ga).length?(ht(),Mt(ue,{key:0},[ddt,pdt,ut("div",gdt,Jt(Z(Ga).length),1)],64)):ye("",!0),Z(ja).length?(ht(),Mt(ue,{key:1},[vdt,mdt,ut("div",ydt,Jt(Z(ja).length),1)],64)):ye("",!0),Z(Mv).length?(ht(),Mt(ue,{key:2},[bdt,wdt,ut("div",xdt,Jt(Z(Mv).length),1)],64)):ye("",!0),_dt,Sdt,ut("div",kdt,Jt(Z(ldt)),1)]))}});const Tdt=Yo(Cdt,[["__scopeId","data-v-6679a536"]]),Ldt={"p-2":"","text-center":"",flex:""},Edt={"text-4xl":"","min-w-2em":""},Adt={"text-md":""},Mdt=oe({__name:"DashboardEntry",props:{tail:{type:Boolean,default:!1}},setup(t){return(n,r)=>(ht(),Mt("div",Ldt,[ut("div",null,[ut("div",Edt,[Kn(n.$slots,"body")]),ut("div",Adt,[Kn(n.$slots,"header")])])]))}}),Ndt={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},Pdt=oe({__name:"TestsEntry",setup(t){const n=St(()=>ml.value.length),r=St(()=>jy.value.length),o=St(()=>Uy.value.length),a=St(()=>odt.value.length),u=St(()=>sdt.value.length);return St(()=>Z(n)-o.value-r.value),(f,h)=>{const p=Mdt;return ht(),Mt("div",Ndt,[Rt(p,{"text-green5":"","data-testid":"pass-entry"},{header:Zt(()=>[fn(" Pass ")]),body:Zt(()=>[fn(Jt(Z(r)),1)]),_:1}),Rt(p,{class:ge({"text-red5":Z(o),op50:!Z(o)}),"data-testid":"fail-entry"},{header:Zt(()=>[fn(" Fail ")]),body:Zt(()=>[fn(Jt(Z(o)),1)]),_:1},8,["class"]),Z(a)?(ht(),ce(p,{key:0,op50:"","data-testid":"skipped-entry"},{header:Zt(()=>[fn(" Skip ")]),body:Zt(()=>[fn(Jt(Z(a)),1)]),_:1})):ye("",!0),Z(u)?(ht(),ce(p,{key:1,op50:"","data-testid":"todo-entry"},{header:Zt(()=>[fn(" Todo ")]),body:Zt(()=>[fn(Jt(Z(u)),1)]),_:1})):ye("",!0),Rt(p,{tail:!0,"data-testid":"total-entry"},{header:Zt(()=>[fn(" Total ")]),body:Zt(()=>[fn(Jt(Z(n)),1)]),_:1})])}}}),Odt={},$dt={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},Ddt={"aria-labelledby":"tests",m:"y-4 x-2"};function Rdt(t,n){const r=Pdt,o=Tdt;return ht(),Mt("div",$dt,[ut("section",Ddt,[Rt(r)]),Rt(o)])}const zdt=Yo(Odt,[["render",Rdt]]),Idt={},Fdt={h:"full",flex:"~ col"},qdt=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),Hdt={class:"scrolls","flex-auto":"","py-1":""};function Bdt(t,n){const r=zdt;return ht(),Mt("div",Fdt,[qdt,ut("div",Hdt,[Rt(r)])])}const Wdt=Yo(Idt,[["render",Bdt]]),Udt="/__vitest__/favicon.svg",Va=Kt(),Ws=Kt(!0);function jdt(){const t=Mr.value;if(t&&t.length>0){const n=Ia(t);n?(Va.value=n,Ws.value=!1):sC(()=>We.state.getFiles(),()=>{Va.value=Ia(t),Ws.value=!1})}return Ws}function Pv(t){Ws.value=t,t&&(Va.value=void 0,Mr.value="")}const Gdt=ut("img",{"w-6":"","h-6":"",src:Udt,alt:"Vitest logo"},null,-1),Vdt=ut("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1),Kdt={class:"flex text-lg"},Xdt=oe({__name:"Navigation",setup(t){const n=St(()=>Tn.value&&dc(Tn.value)),r=()=>We.rpc.updateSnapshot();function o(u){Mr.value=u.id,Va.value=Ia(u.id),Pv(!1)}const a=St(()=>vc.value?"light":"dark");return(u,f)=>{const h=Zo,p=Wy,g=Zi("tooltip");return ht(),ce(p,{border:"r base",tasks:Z(Tn),"on-item-click":o,"group-by-type":!0,onRun:Z(Yg)},{header:Zt(({filteredTests:m})=>[Gdt,Vdt,ut("div",Kdt,[pn(Rt(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon-dashboard",onClick:f[0]||(f[0]=b=>Z(Pv)(!0))},null,512),[[Dm,!Z(Ws)],[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(Yg)(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(yst)())},null,512),[[g,`Toggle to ${Z(a)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["tasks","onRun"])}}}),Ydt={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},Zdt=oe({__name:"ProgressBar",setup(t){const{width:n}=XC(),r=St(()=>Tn.value.length===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":idt.value?null:"in-progress"),o=St(()=>Tn.value.length),a=St(()=>Ga.value.length),u=St(()=>ja.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",Ydt,[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 Jdt=Yo(Zdt,[["__scopeId","data-v-f967c1fe"]]),Ov={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]),this.$emit("resized",this.panes.map(o=>({min:o.min,max:o.max,size:o.size})))},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(n=>n.index<t&&n.size>n.min)||{}},findNextExpandedPane(t){return this.panes.find(n=>n.index>t+1&&n.size>n.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(t=>{const n=t.classList.contains("splitpanes__pane"),r=t.classList.contains("splitpanes__splitter");!n&&!r&&(t.parentNode.removeChild(t),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},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({target:t,...n}){const r=this.indexedPanes[t._.uid];Object.entries(n).forEach(([o,a])=>r[o]=a)},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:{...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;const 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(){let t=100;const n=[],r=[];let 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;const 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((n,r)=>{n.ondblclick=t?o=>this.onSplitterDblClick(o,r):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 fl("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},Qdt=(t,n)=>{const r=t.__vccOpts||t;for(const[o,a]of n)r[o]=a;return r},tpt={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 ept(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)}const ua=Qdt(tpt,[["render",ept]]),npt={"h-screen":"","w-screen":"",overflow:"hidden"},rpt=oe({__name:"index",setup(t){const n=jdt(),r=hr([33,67]),o=hr([33,67]),a=Og(h=>{h.forEach((p,g)=>{r[g]=p.size})},0),u=Og(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=Jdt,m=Xdt,b=Wdt,x=rdt,S=Lht,M=yT;return ht(),Mt(ue,null,[Rt(g),ut("div",npt,[Rt(Z(Ov),{class:"pt-4px",onResized:Z(a),onReady:f},{default:Zt(()=>[Rt(Z(ua),{size:r[0]},{default:Zt(()=>[Rt(m)]),_:1},8,["size"]),Rt(Z(ua),{size:r[1]},{default:Zt(()=>[Rt(Uf,null,{default:Zt(()=>[Z(n)?(ht(),ce(b,{key:"summary"})):(ht(),ce(Z(Ov),{key:"detail",onResized:Z(u)},{default:Zt(()=>[Rt(Z(ua),{size:o[0]},{default:Zt(()=>[Rt(x)]),_:1},8,["size"]),Rt(Z(ua),{size:o[1]},{default:Zt(()=>[Rt(S)]),_:1},8,["size"])]),_:1},8,["onResized"]))]),_:1})]),_:1},8,["size"])]),_:1},8,["onResized"])]),Rt(M)],64)}}}),ipt=[{name:"index",path:"/",component:rpt,props:!0}];const opt={tooltip:Fk};v0.options.instantMove=!0;v0.options.distance=10;const spt=()=>ES({history:U_("/__vitest__/"),routes:ipt}),lpt=[spt],yh=Rm(T_);lpt.forEach(t=>{yh.use(t())});Object.entries(opt).forEach(([t,n])=>{yh.directive(t,n)});yh.mount("#app");