@vitest/browser 0.19.1 → 0.20.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{index.6fe36f2b.js → index.85f8aabb.js} +16 -1
- package/dist/client/index.html +1 -1
- package/package.json +3 -3
- package/dist/client/__vitest__/assets/index.0e6de9cd.js +0 -33
- package/dist/client/__vitest__/assets/index.dea02184.css +0 -1
- package/dist/client/__vitest__/bg.png +0 -0
- package/dist/client/__vitest__/favicon.svg +0 -5
- package/dist/client/__vitest__/index.html +0 -26
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
const Fw=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)}};Fw();function xf(t,n){const r=Object.create(null),o=t.split(",");for(let a=0;a<o.length;a++)r[o[a]]=!0;return n?a=>!!r[a.toLowerCase()]:a=>!!r[a]}const qw="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Hw=xf(qw);function kv(t){return!!t||t===""}function yn(t){if(Wt(t)){const n={};for(let r=0;r<t.length;r++){const o=t[r],a=Ge(o)?Uw(o):yn(o);if(a)for(const u in a)n[u]=a[u]}return n}else{if(Ge(t))return t;if(Pe(t))return t}}const Bw=/;(?![^(]*\))/g,Ww=/:(.+)/;function Uw(t){const n={};return t.split(Bw).forEach(r=>{if(r){const o=r.split(Ww);o.length>1&&(n[o[0].trim()]=o[1].trim())}}),n}function ve(t){let n="";if(Ge(t))n=t;else if(Wt(t))for(let r=0;r<t.length;r++){const o=ve(t[r]);o&&(n+=o+" ")}else if(Pe(t))for(const r in t)t[r]&&(n+=r+" ");return n.trim()}const ae=t=>Ge(t)?t:t==null?"":Wt(t)||Pe(t)&&(t.toString===Ev||!jt(t.toString))?JSON.stringify(t,Cv,2):String(t),Cv=(t,n)=>n&&n.__v_isRef?Cv(t,n.value):Ao(n)?{[`Map(${n.size})`]:[...n.entries()].reduce((r,[o,a])=>(r[`${o} =>`]=a,r),{})}:Tv(n)?{[`Set(${n.size})`]:[...n.values()]}:Pe(n)&&!Wt(n)&&!Av(n)?String(n):n,ge={},Eo=[],Un=()=>{},jw=()=>!1,Gw=/^on[^a-z]/,Ga=t=>Gw.test(t),_f=t=>t.startsWith("onUpdate:"),Xe=Object.assign,Sf=(t,n)=>{const r=t.indexOf(n);r>-1&&t.splice(r,1)},Vw=Object.prototype.hasOwnProperty,ee=(t,n)=>Vw.call(t,n),Wt=Array.isArray,Ao=t=>Va(t)==="[object Map]",Tv=t=>Va(t)==="[object Set]",jt=t=>typeof t=="function",Ge=t=>typeof t=="string",kf=t=>typeof t=="symbol",Pe=t=>t!==null&&typeof t=="object",Lv=t=>Pe(t)&&jt(t.then)&&jt(t.catch),Ev=Object.prototype.toString,Va=t=>Ev.call(t),Kw=t=>Va(t).slice(8,-1),Av=t=>Va(t)==="[object Object]",Cf=t=>Ge(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,aa=xf(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ka=t=>{const n=Object.create(null);return r=>n[r]||(n[r]=t(r))},Xw=/-(\w)/g,ar=Ka(t=>t.replace(Xw,(n,r)=>r?r.toUpperCase():"")),Yw=/\B([A-Z])/g,Ki=Ka(t=>t.replace(Yw,"-$1").toLowerCase()),Xa=Ka(t=>t.charAt(0).toUpperCase()+t.slice(1)),gu=Ka(t=>t?`on${Xa(t)}`:""),Ws=(t,n)=>!Object.is(t,n),ca=(t,n)=>{for(let r=0;r<t.length;r++)t[r](n)},xa=(t,n,r)=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value:r})},Us=t=>{const n=parseFloat(t);return isNaN(n)?t:n};let gp;const Zw=()=>gp||(gp=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let kn;class Jw{constructor(n=!1){this.active=!0,this.effects=[],this.cleanups=[],!n&&kn&&(this.parent=kn,this.index=(kn.scopes||(kn.scopes=[])).push(this)-1)}run(n){if(this.active){const r=kn;try{return kn=this,n()}finally{kn=r}}}on(){kn=this}off(){kn=this.parent}stop(n){if(this.active){let r,o;for(r=0,o=this.effects.length;r<o;r++)this.effects[r].stop();for(r=0,o=this.cleanups.length;r<o;r++)this.cleanups[r]();if(this.scopes)for(r=0,o=this.scopes.length;r<o;r++)this.scopes[r].stop(!0);if(this.parent&&!n){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.active=!1}}}function Qw(t,n=kn){n&&n.active&&n.effects.push(t)}function tx(){return kn}function ex(t){kn&&kn.cleanups.push(t)}const Tf=t=>{const n=new Set(t);return n.w=0,n.n=0,n},Mv=t=>(t.w&hi)>0,Nv=t=>(t.n&hi)>0,nx=({deps:t})=>{if(t.length)for(let n=0;n<t.length;n++)t[n].w|=hi},rx=t=>{const{deps:n}=t;if(n.length){let r=0;for(let o=0;o<n.length;o++){const a=n[o];Mv(a)&&!Nv(a)?a.delete(t):n[r++]=a,a.w&=~hi,a.n&=~hi}n.length=r}},Nu=new WeakMap;let Ns=0,hi=1;const Pu=30;let Bn;const Bi=Symbol(""),Ou=Symbol("");class Lf{constructor(n,r=null,o){this.fn=n,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,Qw(this,o)}run(){if(!this.active)return this.fn();let n=Bn,r=ai;for(;n;){if(n===this)return;n=n.parent}try{return this.parent=Bn,Bn=this,ai=!0,hi=1<<++Ns,Ns<=Pu?nx(this):vp(this),this.fn()}finally{Ns<=Pu&&rx(this),hi=1<<--Ns,Bn=this.parent,ai=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Bn===this?this.deferStop=!0:this.active&&(vp(this),this.onStop&&this.onStop(),this.active=!1)}}function vp(t){const{deps:n}=t;if(n.length){for(let r=0;r<n.length;r++)n[r].delete(t);n.length=0}}let ai=!0;const Pv=[];function Go(){Pv.push(ai),ai=!1}function Vo(){const t=Pv.pop();ai=t===void 0?!0:t}function Ln(t,n,r){if(ai&&Bn){let o=Nu.get(t);o||Nu.set(t,o=new Map);let a=o.get(r);a||o.set(r,a=Tf()),Ov(a)}}function Ov(t,n){let r=!1;Ns<=Pu?Nv(t)||(t.n|=hi,r=!Mv(t)):r=!t.has(Bn),r&&(t.add(Bn),Bn.deps.push(t))}function Nr(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"&&Wt(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":Wt(t)?Cf(r)&&h.push(f.get("length")):(h.push(f.get(Bi)),Ao(t)&&h.push(f.get(Ou)));break;case"delete":Wt(t)||(h.push(f.get(Bi)),Ao(t)&&h.push(f.get(Ou)));break;case"set":Ao(t)&&h.push(f.get(Bi));break}if(h.length===1)h[0]&&Du(h[0]);else{const p=[];for(const g of h)g&&p.push(...g);Du(Tf(p))}}function Du(t,n){const r=Wt(t)?t:[...t];for(const o of r)o.computed&&mp(o);for(const o of r)o.computed||mp(o)}function mp(t,n){(t!==Bn||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const ix=xf("__proto__,__v_isRef,__isVue"),Dv=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(kf)),ox=Ef(),sx=Ef(!1,!0),lx=Ef(!0),yp=ax();function ax(){const t={};return["includes","indexOf","lastIndexOf"].forEach(n=>{t[n]=function(...r){const o=se(this);for(let u=0,f=this.length;u<f;u++)Ln(o,"get",u+"");const a=o[n](...r);return a===-1||a===!1?o[n](...r.map(se)):a}}),["push","pop","shift","unshift","splice"].forEach(n=>{t[n]=function(...r){Go();const o=se(this)[n].apply(this,r);return Vo(),o}}),t}function Ef(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?kx:Fv:n?Iv:zv).get(o))return o;const f=Wt(o);if(!t&&f&&ee(yp,a))return Reflect.get(yp,a,u);const h=Reflect.get(o,a,u);return(kf(a)?Dv.has(a):ix(a))||(t||Ln(o,"get",a),n)?h:He(h)?f&&Cf(a)?h:h.value:Pe(h)?t?qv(h):cr(h):h}}const cx=$v(),ux=$v(!0);function $v(t=!1){return function(r,o,a,u){let f=r[o];if(js(f)&&He(f)&&!He(a))return!1;if(!t&&!js(a)&&($u(a)||(a=se(a),f=se(f)),!Wt(r)&&He(f)&&!He(a)))return f.value=a,!0;const h=Wt(r)&&Cf(o)?Number(o)<r.length:ee(r,o),p=Reflect.set(r,o,a,u);return r===se(u)&&(h?Ws(a,f)&&Nr(r,"set",o,a):Nr(r,"add",o,a)),p}}function fx(t,n){const r=ee(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&r&&Nr(t,"delete",n,void 0),o}function hx(t,n){const r=Reflect.has(t,n);return(!kf(n)||!Dv.has(n))&&Ln(t,"has",n),r}function dx(t){return Ln(t,"iterate",Wt(t)?"length":Bi),Reflect.ownKeys(t)}const Rv={get:ox,set:cx,deleteProperty:fx,has:hx,ownKeys:dx},px={get:lx,set(t,n){return!0},deleteProperty(t,n){return!0}},gx=Xe({},Rv,{get:sx,set:ux}),Af=t=>t,Ya=t=>Reflect.getPrototypeOf(t);function Yl(t,n,r=!1,o=!1){t=t.__v_raw;const a=se(t),u=se(n);r||(n!==u&&Ln(a,"get",n),Ln(a,"get",u));const{has:f}=Ya(a),h=o?Af:r?Of: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 Zl(t,n=!1){const r=this.__v_raw,o=se(r),a=se(t);return n||(t!==a&&Ln(o,"has",t),Ln(o,"has",a)),t===a?r.has(t):r.has(t)||r.has(a)}function Jl(t,n=!1){return t=t.__v_raw,!n&&Ln(se(t),"iterate",Bi),Reflect.get(t,"size",t)}function bp(t){t=se(t);const n=se(this);return Ya(n).has.call(n,t)||(n.add(t),Nr(n,"add",t,t)),this}function wp(t,n){n=se(n);const r=se(this),{has:o,get:a}=Ya(r);let u=o.call(r,t);u||(t=se(t),u=o.call(r,t));const f=a.call(r,t);return r.set(t,n),u?Ws(n,f)&&Nr(r,"set",t,n):Nr(r,"add",t,n),this}function xp(t){const n=se(this),{has:r,get:o}=Ya(n);let a=r.call(n,t);a||(t=se(t),a=r.call(n,t)),o&&o.call(n,t);const u=n.delete(t);return a&&Nr(n,"delete",t,void 0),u}function _p(){const t=se(this),n=t.size!==0,r=t.clear();return n&&Nr(t,"clear",void 0,void 0),r}function Ql(t,n){return function(o,a){const u=this,f=u.__v_raw,h=se(f),p=n?Af:t?Of:Gs;return!t&&Ln(h,"iterate",Bi),f.forEach((g,m)=>o.call(a,p(g),p(m),u))}}function ta(t,n,r){return function(...o){const a=this.__v_raw,u=se(a),f=Ao(u),h=t==="entries"||t===Symbol.iterator&&f,p=t==="keys"&&f,g=a[t](...o),m=r?Af:n?Of:Gs;return!n&&Ln(u,"iterate",p?Ou:Bi),{next(){const{value:w,done:_}=g.next();return _?{value:w,done:_}:{value:h?[m(w[0]),m(w[1])]:m(w),done:_}},[Symbol.iterator](){return this}}}}function Yr(t){return function(...n){return t==="delete"?!1:this}}function vx(){const t={get(u){return Yl(this,u)},get size(){return Jl(this)},has:Zl,add:bp,set:wp,delete:xp,clear:_p,forEach:Ql(!1,!1)},n={get(u){return Yl(this,u,!1,!0)},get size(){return Jl(this)},has:Zl,add:bp,set:wp,delete:xp,clear:_p,forEach:Ql(!1,!0)},r={get(u){return Yl(this,u,!0)},get size(){return Jl(this,!0)},has(u){return Zl.call(this,u,!0)},add:Yr("add"),set:Yr("set"),delete:Yr("delete"),clear:Yr("clear"),forEach:Ql(!0,!1)},o={get(u){return Yl(this,u,!0,!0)},get size(){return Jl(this,!0)},has(u){return Zl.call(this,u,!0)},add:Yr("add"),set:Yr("set"),delete:Yr("delete"),clear:Yr("clear"),forEach:Ql(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(u=>{t[u]=ta(u,!1,!1),r[u]=ta(u,!0,!1),n[u]=ta(u,!1,!0),o[u]=ta(u,!0,!0)}),[t,r,n,o]}const[mx,yx,bx,wx]=vx();function Mf(t,n){const r=n?t?wx:bx:t?yx:mx;return(o,a,u)=>a==="__v_isReactive"?!t:a==="__v_isReadonly"?t:a==="__v_raw"?o:Reflect.get(ee(r,a)&&a in o?r:o,a,u)}const xx={get:Mf(!1,!1)},_x={get:Mf(!1,!0)},Sx={get:Mf(!0,!1)},zv=new WeakMap,Iv=new WeakMap,Fv=new WeakMap,kx=new WeakMap;function Cx(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Tx(t){return t.__v_skip||!Object.isExtensible(t)?0:Cx(Kw(t))}function cr(t){return js(t)?t:Nf(t,!1,Rv,xx,zv)}function Lx(t){return Nf(t,!1,gx,_x,Iv)}function qv(t){return Nf(t,!0,px,Sx,Fv)}function Nf(t,n,r,o,a){if(!Pe(t)||t.__v_raw&&!(n&&t.__v_isReactive))return t;const u=a.get(t);if(u)return u;const f=Tx(t);if(f===0)return t;const h=new Proxy(t,f===2?o:r);return a.set(t,h),h}function Mo(t){return js(t)?Mo(t.__v_raw):!!(t&&t.__v_isReactive)}function js(t){return!!(t&&t.__v_isReadonly)}function $u(t){return!!(t&&t.__v_isShallow)}function Hv(t){return Mo(t)||js(t)}function se(t){const n=t&&t.__v_raw;return n?se(n):t}function Pf(t){return xa(t,"__v_skip",!0),t}const Gs=t=>Pe(t)?cr(t):t,Of=t=>Pe(t)?qv(t):t;function Bv(t){ai&&Bn&&(t=se(t),Ov(t.dep||(t.dep=Tf())))}function Wv(t,n){t=se(t),t.dep&&Du(t.dep)}function He(t){return!!(t&&t.__v_isRef===!0)}function ne(t){return Uv(t,!1)}function ll(t){return Uv(t,!0)}function Uv(t,n){return He(t)?t:new Ex(t,n)}class Ex{constructor(n,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?n:se(n),this._value=r?n:Gs(n)}get value(){return Bv(this),this._value}set value(n){n=this.__v_isShallow?n:se(n),Ws(n,this._rawValue)&&(this._rawValue=n,this._value=this.__v_isShallow?n:Gs(n),Wv(this))}}function Z(t){return He(t)?t.value:t}const Ax={get:(t,n,r)=>Z(Reflect.get(t,n,r)),set:(t,n,r,o)=>{const a=t[n];return He(a)&&!He(r)?(a.value=r,!0):Reflect.set(t,n,r,o)}};function jv(t){return Mo(t)?t:new Proxy(t,Ax)}function Mx(t){const n=Wt(t)?new Array(t.length):{};for(const r in t)n[r]=Df(t,r);return n}class Nx{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 Df(t,n,r){const o=t[n];return He(o)?o:new Nx(t,n,r)}class Px{constructor(n,r,o,a){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new Lf(n,()=>{this._dirty||(this._dirty=!0,Wv(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=o}get value(){const n=se(this);return Bv(n),(n._dirty||!n._cacheable)&&(n._dirty=!1,n._value=n.effect.run()),n._value}set value(n){this._setter(n)}}function Ox(t,n,r=!1){let o,a;const u=jt(t);return u?(o=t,a=Un):(o=t.get,a=t.set),new Px(o,a,u||!a,r)}function ci(t,n,r,o){let a;try{a=o?t(...o):t()}catch(u){al(u,n,r)}return a}function Rn(t,n,r,o){if(jt(t)){const u=ci(t,n,r,o);return u&&Lv(u)&&u.catch(f=>{al(f,n,r)}),u}const a=[];for(let u=0;u<t.length;u++)a.push(Rn(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){ci(p,null,10,[t,f,h]);return}}Dx(t,r,a,o)}function Dx(t,n,r,o=!0){console.error(t)}let _a=!1,Ru=!1;const Cn=[];let Tr=0;const $s=[];let Ps=null,ko=0;const Rs=[];let ei=null,Co=0;const Gv=Promise.resolve();let $f=null,zu=null;function Ko(t){const n=$f||Gv;return t?n.then(this?t.bind(this):t):n}function $x(t){let n=Tr+1,r=Cn.length;for(;n<r;){const o=n+r>>>1;Vs(Cn[o])<t?n=o+1:r=o}return n}function Vv(t){(!Cn.length||!Cn.includes(t,_a&&t.allowRecurse?Tr+1:Tr))&&t!==zu&&(t.id==null?Cn.push(t):Cn.splice($x(t.id),0,t),Kv())}function Kv(){!_a&&!Ru&&(Ru=!0,$f=Gv.then(Jv))}function Rx(t){const n=Cn.indexOf(t);n>Tr&&Cn.splice(n,1)}function Xv(t,n,r,o){Wt(t)?r.push(...t):(!n||!n.includes(t,t.allowRecurse?o+1:o))&&r.push(t),Kv()}function zx(t){Xv(t,Ps,$s,ko)}function Yv(t){Xv(t,ei,Rs,Co)}function Za(t,n=null){if($s.length){for(zu=n,Ps=[...new Set($s)],$s.length=0,ko=0;ko<Ps.length;ko++)Ps[ko]();Ps=null,ko=0,zu=null,Za(t,n)}}function Zv(t){if(Za(),Rs.length){const n=[...new Set(Rs)];if(Rs.length=0,ei){ei.push(...n);return}for(ei=n,ei.sort((r,o)=>Vs(r)-Vs(o)),Co=0;Co<ei.length;Co++)ei[Co]();ei=null,Co=0}}const Vs=t=>t.id==null?1/0:t.id;function Jv(t){Ru=!1,_a=!0,Za(t),Cn.sort((r,o)=>Vs(r)-Vs(o));const n=Un;try{for(Tr=0;Tr<Cn.length;Tr++){const r=Cn[Tr];r&&r.active!==!1&&ci(r,null,14)}}finally{Tr=0,Cn.length=0,Zv(),_a=!1,$f=null,(Cn.length||$s.length||Rs.length)&&Jv(t)}}function Ix(t,n,...r){if(t.isUnmounted)return;const o=t.vnode.props||ge;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:w,trim:_}=o[m]||ge;_&&(a=r.map(k=>k.trim())),w&&(a=r.map(Us))}let h,p=o[h=gu(n)]||o[h=gu(ar(n))];!p&&u&&(p=o[h=gu(Ki(n))]),p&&Rn(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,Rn(g,t,6,a)}}function Qv(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(!jt(t)){const p=g=>{const m=Qv(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?(o.set(t,null),null):(Wt(u)?u.forEach(p=>f[p]=null):Xe(f,u),o.set(t,f),f)}function Ja(t,n){return!t||!Ga(n)?!1:(n=n.slice(2).replace(/Once$/,""),ee(t,n[0].toLowerCase()+n.slice(1))||ee(t,Ki(n))||ee(t,n))}let tn=null,Qa=null;function Sa(t){const n=tn;return tn=t,Qa=t&&t.type.__scopeId||null,n}function tm(t){Qa=t}function em(){Qa=null}const Fx=t=>we;function we(t,n=tn,r){if(!n||t._n)return t;const o=(...a)=>{o._d&&Dp(-1);const u=Sa(n),f=t(...a);return Sa(u),o._d&&Dp(1),f};return o._n=!0,o._c=!0,o._d=!0,o}function vu(t){const{type:n,vnode:r,proxy:o,withProxy:a,props:u,propsOptions:[f],slots:h,attrs:p,emit:g,render:m,renderCache:w,data:_,setupState:k,ctx:A,inheritAttrs:P}=t;let L,T;const E=Sa(t);try{if(r.shapeFlag&4){const $=a||o;L=Hn(m.call($,$,w,u,k,_,A)),T=p}else{const $=n;L=Hn($.length>1?$(u,{attrs:p,slots:h,emit:g}):$(u,null)),T=n.props?p:Hx(p)}}catch($){Is.length=0,al($,t,1),L=Bt(bn)}let z=L;if(T&&P!==!1){const $=Object.keys(T),{shapeFlag:V}=z;$.length&&V&7&&(f&&$.some(_f)&&(T=Bx(T,f)),z=di(z,T))}return r.dirs&&(z=di(z),z.dirs=z.dirs?z.dirs.concat(r.dirs):r.dirs),r.transition&&(z.transition=r.transition),L=z,Sa(E),L}function qx(t){let n;for(let r=0;r<t.length;r++){const o=t[r];if(Xs(o)){if(o.type!==bn||o.children==="v-if"){if(n)return;n=o}}else return}return n}const Hx=t=>{let n;for(const r in t)(r==="class"||r==="style"||Ga(r))&&((n||(n={}))[r]=t[r]);return n},Bx=(t,n)=>{const r={};for(const o in t)(!_f(o)||!(o.slice(9)in n))&&(r[o]=t[o]);return r};function Wx(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?Sp(o,f,g):!!f;if(p&8){const m=n.dynamicProps;for(let w=0;w<m.length;w++){const _=m[w];if(f[_]!==o[_]&&!Ja(g,_))return!0}}}else return(a||h)&&(!h||!h.$stable)?!0:o===f?!1:o?f?Sp(o,f,g):!0:!!f;return!1}function Sp(t,n,r){const o=Object.keys(n);if(o.length!==Object.keys(t).length)return!0;for(let a=0;a<o.length;a++){const u=o[a];if(n[u]!==t[u]&&!Ja(r,u))return!0}return!1}function Rf({vnode:t,parent:n},r){for(;n&&n.subTree===t;)(t=n.vnode).el=r,n=n.parent}const Ux=t=>t.__isSuspense,jx={name:"Suspense",__isSuspense:!0,process(t,n,r,o,a,u,f,h,p,g){t==null?Vx(n,r,o,a,u,f,h,p,g):Kx(t,n,r,o,a,f,h,p,g)},hydrate:Xx,create:zf,normalize:Yx},Gx=jx;function Ks(t,n){const r=t.props&&t.props[n];jt(r)&&r()}function Vx(t,n,r,o,a,u,f,h,p){const{p:g,o:{createElement:m}}=p,w=m("div"),_=t.suspense=zf(t,a,o,n,w,r,u,f,h,p);g(null,_.pendingBranch=t.ssContent,w,null,o,_,u,f),_.deps>0?(Ks(t,"onPending"),Ks(t,"onFallback"),g(null,t.ssFallback,n,r,o,null,u,f),No(_,t.ssFallback)):_.resolve()}function Kx(t,n,r,o,a,u,f,h,{p,um:g,o:{createElement:m}}){const w=n.suspense=t.suspense;w.vnode=n,n.el=t.el;const _=n.ssContent,k=n.ssFallback,{activeBranch:A,pendingBranch:P,isInFallback:L,isHydrating:T}=w;if(P)w.pendingBranch=_,or(_,P)?(p(P,_,w.hiddenContainer,null,a,w,u,f,h),w.deps<=0?w.resolve():L&&(p(A,k,r,o,a,null,u,f,h),No(w,k))):(w.pendingId++,T?(w.isHydrating=!1,w.activeBranch=P):g(P,a,w),w.deps=0,w.effects.length=0,w.hiddenContainer=m("div"),L?(p(null,_,w.hiddenContainer,null,a,w,u,f,h),w.deps<=0?w.resolve():(p(A,k,r,o,a,null,u,f,h),No(w,k))):A&&or(_,A)?(p(A,_,r,o,a,w,u,f,h),w.resolve(!0)):(p(null,_,w.hiddenContainer,null,a,w,u,f,h),w.deps<=0&&w.resolve()));else if(A&&or(_,A))p(A,_,r,o,a,w,u,f,h),No(w,_);else if(Ks(n,"onPending"),w.pendingBranch=_,w.pendingId++,p(null,_,w.hiddenContainer,null,a,w,u,f,h),w.deps<=0)w.resolve();else{const{timeout:E,pendingId:z}=w;E>0?setTimeout(()=>{w.pendingId===z&&w.fallback(k)},E):E===0&&w.fallback(k)}}function zf(t,n,r,o,a,u,f,h,p,g,m=!1){const{p:w,m:_,um:k,n:A,o:{parentNode:P,remove:L}}=g,T=Us(t.props&&t.props.timeout),E={vnode:t,parent:n,parentComponent:r,isSVG:f,container:o,hiddenContainer:a,anchor:u,deps:0,pendingId:0,timeout:typeof T=="number"?T:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:m,isUnmounted:!1,effects:[],resolve(z=!1){const{vnode:$,activeBranch:V,pendingBranch:W,pendingId:st,effects:nt,parentComponent:ft,container:mt}=E;if(E.isHydrating)E.isHydrating=!1;else if(!z){const U=V&&W.transition&&W.transition.mode==="out-in";U&&(V.transition.afterLeave=()=>{st===E.pendingId&&_(W,mt,R,0)});let{anchor:R}=E;V&&(R=A(V),k(V,ft,E,!0)),U||_(W,mt,R,0)}No(E,W),E.pendingBranch=null,E.isInFallback=!1;let xt=E.parent,ct=!1;for(;xt;){if(xt.pendingBranch){xt.effects.push(...nt),ct=!0;break}xt=xt.parent}ct||Yv(nt),E.effects=[],Ks($,"onResolve")},fallback(z){if(!E.pendingBranch)return;const{vnode:$,activeBranch:V,parentComponent:W,container:st,isSVG:nt}=E;Ks($,"onFallback");const ft=A(V),mt=()=>{!E.isInFallback||(w(null,z,st,ft,W,null,nt,h,p),No(E,z))},xt=z.transition&&z.transition.mode==="out-in";xt&&(V.transition.afterLeave=mt),E.isInFallback=!0,k(V,W,null,!0),xt||mt()},move(z,$,V){E.activeBranch&&_(E.activeBranch,z,$,V),E.container=z},next(){return E.activeBranch&&A(E.activeBranch)},registerDep(z,$){const V=!!E.pendingBranch;V&&E.deps++;const W=z.vnode.el;z.asyncDep.catch(st=>{al(st,z,0)}).then(st=>{if(z.isUnmounted||E.isUnmounted||E.pendingId!==z.suspenseId)return;z.asyncResolved=!0;const{vnode:nt}=z;ju(z,st,!1),W&&(nt.el=W);const ft=!W&&z.subTree.el;$(z,nt,P(W||z.subTree.el),W?null:A(z.subTree),E,f,p),ft&&L(ft),Rf(z,nt.el),V&&--E.deps===0&&E.resolve()})},unmount(z,$){E.isUnmounted=!0,E.activeBranch&&k(E.activeBranch,r,z,$),E.pendingBranch&&k(E.pendingBranch,r,z,$)}};return E}function Xx(t,n,r,o,a,u,f,h,p){const g=n.suspense=zf(n,o,r,t.parentNode,document.createElement("div"),null,a,u,f,h,!0),m=p(t,g.pendingBranch=n.ssContent,r,g,u,f);return g.deps===0&&g.resolve(),m}function Yx(t){const{shapeFlag:n,children:r}=t,o=n&32;t.ssContent=kp(o?r.default:r),t.ssFallback=o?kp(r.fallback):Bt(bn)}function kp(t){let n;if(jt(t)){const r=Ro&&t._c;r&&(t._d=!1,ht()),t=t(),r&&(t._d=!0,n=$n,_m())}return Wt(t)&&(t=qx(t)),t=Hn(t),n&&!t.dynamicChildren&&(t.dynamicChildren=n.filter(r=>r!==t)),t}function Zx(t,n){n&&n.pendingBranch?Wt(t)?n.effects.push(...t):n.effects.push(t):Yv(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,Rf(o,a))}function ua(t,n){if(We){let r=We.provides;const o=We.parent&&We.parent.provides;o===r&&(r=We.provides=Object.create(o)),r[t]=n}}function ui(t,n,r=!1){const o=We||tn;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&&jt(n)?n.call(o.proxy):n}}function nm(t,n){return If(t,null,n)}const Cp={};function je(t,n,r){return If(t,n,r)}function If(t,n,{immediate:r,deep:o,flush:a,onTrack:u,onTrigger:f}=ge){const h=We;let p,g=!1,m=!1;if(He(t)?(p=()=>t.value,g=$u(t)):Mo(t)?(p=()=>t,o=!0):Wt(t)?(m=!0,g=t.some(T=>Mo(T)||$u(T)),p=()=>t.map(T=>{if(He(T))return T.value;if(Mo(T))return Ii(T);if(jt(T))return ci(T,h,2)})):jt(t)?n?p=()=>ci(t,h,2):p=()=>{if(!(h&&h.isUnmounted))return w&&w(),Rn(t,h,3,[_])}:p=Un,n&&o){const T=p;p=()=>Ii(T())}let w,_=T=>{w=L.onStop=()=>{ci(T,h,4)}};if(Zs)return _=Un,n?r&&Rn(n,h,3,[p(),m?[]:void 0,_]):p(),Un;let k=m?[]:Cp;const A=()=>{if(!!L.active)if(n){const T=L.run();(o||g||(m?T.some((E,z)=>Ws(E,k[z])):Ws(T,k)))&&(w&&w(),Rn(n,h,3,[T,k===Cp?void 0:k,_]),k=T)}else L.run()};A.allowRecurse=!!n;let P;a==="sync"?P=A:a==="post"?P=()=>gn(A,h&&h.suspense):P=()=>zx(A);const L=new Lf(p,P);return n?r?A():k=L.run():a==="post"?gn(L.run.bind(L),h&&h.suspense):L.run(),()=>{L.stop(),h&&h.scope&&Sf(h.scope.effects,L)}}function Jx(t,n,r){const o=this.proxy,a=Ge(t)?t.includes(".")?rm(o,t):()=>o[t]:t.bind(o,o);let u;jt(n)?u=n:(u=n.handler,r=n);const f=We;zo(this);const h=If(a,u.bind(o),r);return f?zo(f):Wi(),h}function rm(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(!Pe(t)||t.__v_skip||(n=n||new Set,n.has(t)))return t;if(n.add(t),He(t))Ii(t.value,n);else if(Wt(t))for(let r=0;r<t.length;r++)Ii(t[r],n);else if(Tv(t)||Ao(t))t.forEach(r=>{Ii(r,n)});else if(Av(t))for(const r in t)Ii(t[r],n);return t}function Qx(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return cl(()=>{t.isMounted=!0}),cm(()=>{t.isUnmounting=!0}),t}const Dn=[Function,Array],t1={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Dn,onEnter:Dn,onAfterEnter:Dn,onEnterCancelled:Dn,onBeforeLeave:Dn,onLeave:Dn,onAfterLeave:Dn,onLeaveCancelled:Dn,onBeforeAppear:Dn,onAppear:Dn,onAfterAppear:Dn,onAppearCancelled:Dn},setup(t,{slots:n}){const r=ul(),o=Qx();let a;return()=>{const u=n.default&&sm(n.default(),!0);if(!u||!u.length)return;let f=u[0];if(u.length>1){for(const P of u)if(P.type!==bn){f=P;break}}const h=se(t),{mode:p}=h;if(o.isLeaving)return mu(f);const g=Tp(f);if(!g)return mu(f);const m=Iu(g,h,o,r);Fu(g,m);const w=r.subTree,_=w&&Tp(w);let k=!1;const{getTransitionKey:A}=g.type;if(A){const P=A();a===void 0?a=P:P!==a&&(a=P,k=!0)}if(_&&_.type!==bn&&(!or(g,_)||k)){const P=Iu(_,h,o,r);if(Fu(_,P),p==="out-in")return o.isLeaving=!0,P.afterLeave=()=>{o.isLeaving=!1,r.update()},mu(f);p==="in-out"&&g.type!==bn&&(P.delayLeave=(L,T,E)=>{const z=om(o,_);z[String(_.key)]=_,L._leaveCb=()=>{T(),L._leaveCb=void 0,delete m.delayedLeave},m.delayedLeave=E})}return f}}},im=t1;function om(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 Iu(t,n,r,o){const{appear:a,mode:u,persisted:f=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:g,onEnterCancelled:m,onBeforeLeave:w,onLeave:_,onAfterLeave:k,onLeaveCancelled:A,onBeforeAppear:P,onAppear:L,onAfterAppear:T,onAppearCancelled:E}=n,z=String(t.key),$=om(r,t),V=(nt,ft)=>{nt&&Rn(nt,o,9,ft)},W=(nt,ft)=>{const mt=ft[1];V(nt,ft),Wt(nt)?nt.every(xt=>xt.length<=1)&&mt():nt.length<=1&&mt()},st={mode:u,persisted:f,beforeEnter(nt){let ft=h;if(!r.isMounted)if(a)ft=P||h;else return;nt._leaveCb&&nt._leaveCb(!0);const mt=$[z];mt&&or(t,mt)&&mt.el._leaveCb&&mt.el._leaveCb(),V(ft,[nt])},enter(nt){let ft=p,mt=g,xt=m;if(!r.isMounted)if(a)ft=L||p,mt=T||g,xt=E||m;else return;let ct=!1;const U=nt._enterCb=R=>{ct||(ct=!0,R?V(xt,[nt]):V(mt,[nt]),st.delayedLeave&&st.delayedLeave(),nt._enterCb=void 0)};ft?W(ft,[nt,U]):U()},leave(nt,ft){const mt=String(t.key);if(nt._enterCb&&nt._enterCb(!0),r.isUnmounting)return ft();V(w,[nt]);let xt=!1;const ct=nt._leaveCb=U=>{xt||(xt=!0,ft(),U?V(A,[nt]):V(k,[nt]),nt._leaveCb=void 0,$[mt]===t&&delete $[mt])};$[mt]=t,_?W(_,[nt,ct]):ct()},clone(nt){return Iu(nt,n,r,o)}};return st}function mu(t){if(tc(t))return t=di(t),t.children=null,t}function Tp(t){return tc(t)?t.children?t.children[0]:void 0:t}function Fu(t,n){t.shapeFlag&6&&t.component?Fu(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 sm(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===ce?(f.patchFlag&128&&a++,o=o.concat(sm(f.children,n,h))):(n||f.type!==bn)&&o.push(h!=null?di(f,{key:h}):f)}if(a>1)for(let u=0;u<o.length;u++)o[u].patchFlag=-2;return o}function ue(t){return jt(t)?{setup:t,name:t.name}:t}const zs=t=>!!t.type.__asyncLoader,tc=t=>t.type.__isKeepAlive;function e1(t,n){lm(t,"a",n)}function n1(t,n){lm(t,"da",n)}function lm(t,n,r=We){const o=t.__wdc||(t.__wdc=()=>{let a=r;for(;a;){if(a.isDeactivated)return;a=a.parent}return t()});if(ec(n,o,r),r){let a=r.parent;for(;a&&a.parent;)tc(a.parent.vnode)&&r1(o,n,r,a),a=a.parent}}function r1(t,n,r,o){const a=ec(n,t,o,!0);Ff(()=>{Sf(o[n],a)},r)}function ec(t,n,r=We,o=!1){if(r){const a=r[t]||(r[t]=[]),u=n.__weh||(n.__weh=(...f)=>{if(r.isUnmounted)return;Go(),zo(r);const h=Rn(n,r,t,f);return Wi(),Vo(),h});return o?a.unshift(u):a.push(u),u}}const Rr=t=>(n,r=We)=>(!Zs||t==="sp")&&ec(t,n,r),am=Rr("bm"),cl=Rr("m"),i1=Rr("bu"),o1=Rr("u"),cm=Rr("bum"),Ff=Rr("um"),s1=Rr("sp"),l1=Rr("rtg"),a1=Rr("rtc");function c1(t,n=We){ec("ec",t,n)}function un(t,n){const r=tn;if(r===null)return t;const o=rc(r)||r.proxy,a=t.dirs||(t.dirs=[]);for(let u=0;u<n.length;u++){let[f,h,p,g=ge]=n[u];jt(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 Ni(t,n,r,o){const a=t.dirs,u=n&&n.dirs;for(let f=0;f<a.length;f++){const h=a[f];u&&(h.oldValue=u[f].value);let p=h.dir[o];p&&(Go(),Rn(p,r,8,[t.el,h,t,n]),Vo())}}const um="components",u1="directives";function Gi(t,n){return fm(um,t,!0,n)||t}const f1=Symbol();function Xi(t){return fm(u1,t)}function fm(t,n,r=!0,o=!1){const a=tn||We;if(a){const u=a.type;if(t===um){const h=z1(u,!1);if(h&&(h===n||h===ar(n)||h===Xa(ar(n))))return u}const f=Lp(a[t]||u[t],n)||Lp(a.appContext[t],n);return!f&&o?u:f}}function Lp(t,n){return t&&(t[n]||t[ar(n)]||t[Xa(ar(n))])}function ir(t,n,r,o){let a;const u=r&&r[o];if(Wt(t)||Ge(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(Pe(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 Pr(t,n,r={},o,a){if(tn.isCE||tn.parent&&zs(tn.parent)&&tn.parent.isCE)return Bt("slot",n==="default"?null:{name:n},o&&o());let u=t[n];u&&u._c&&(u._d=!1),ht();const f=u&&hm(u(r)),h=de(ce,{key:r.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 hm(t){return t.some(n=>Xs(n)?!(n.type===bn||n.type===ce&&!hm(n.children)):!0)?t:null}const qu=t=>t?Cm(t)?rc(t)||t.proxy:qu(t.parent):null,ka=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=>qu(t.parent),$root:t=>qu(t.root),$emit:t=>t.emit,$options:t=>pm(t),$forceUpdate:t=>t.f||(t.f=()=>Vv(t.update)),$nextTick:t=>t.n||(t.n=Ko.bind(t.proxy)),$watch:t=>Jx.bind(t)}),h1={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 k=f[n];if(k!==void 0)switch(k){case 1:return o[n];case 2:return a[n];case 4:return r[n];case 3:return u[n]}else{if(o!==ge&&ee(o,n))return f[n]=1,o[n];if(a!==ge&&ee(a,n))return f[n]=2,a[n];if((g=t.propsOptions[0])&&ee(g,n))return f[n]=3,u[n];if(r!==ge&&ee(r,n))return f[n]=4,r[n];Hu&&(f[n]=0)}}const m=ka[n];let w,_;if(m)return n==="$attrs"&&Ln(t,"get",n),m(t);if((w=h.__cssModules)&&(w=w[n]))return w;if(r!==ge&&ee(r,n))return f[n]=4,r[n];if(_=p.config.globalProperties,ee(_,n))return _[n]},set({_:t},n,r){const{data:o,setupState:a,ctx:u}=t;return a!==ge&&ee(a,n)?(a[n]=r,!0):o!==ge&&ee(o,n)?(o[n]=r,!0):ee(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!==ge&&ee(t,f)||n!==ge&&ee(n,f)||(h=u[0])&&ee(h,f)||ee(o,f)||ee(ka,f)||ee(a.config.globalProperties,f)},defineProperty(t,n,r){return r.get!=null?t._.accessCache[n]=0:ee(r,"value")&&this.set(t,n,r.value,null),Reflect.defineProperty(t,n,r)}};let Hu=!0;function d1(t){const n=pm(t),r=t.proxy,o=t.ctx;Hu=!1,n.beforeCreate&&Ep(n.beforeCreate,t,"bc");const{data:a,computed:u,methods:f,watch:h,provide:p,inject:g,created:m,beforeMount:w,mounted:_,beforeUpdate:k,updated:A,activated:P,deactivated:L,beforeDestroy:T,beforeUnmount:E,destroyed:z,unmounted:$,render:V,renderTracked:W,renderTriggered:st,errorCaptured:nt,serverPrefetch:ft,expose:mt,inheritAttrs:xt,components:ct,directives:U,filters:R}=n;if(g&&p1(g,o,null,t.appContext.config.unwrapInjectedRef),f)for(const B in f){const Q=f[B];jt(Q)&&(o[B]=Q.bind(r))}if(a){const B=a.call(r,r);Pe(B)&&(t.data=cr(B))}if(Hu=!0,u)for(const B in u){const Q=u[B],yt=jt(Q)?Q.bind(r,r):jt(Q.get)?Q.get.bind(r,r):Un,Ct=!jt(Q)&&jt(Q.set)?Q.set.bind(r):Un,Ut=kt({get:yt,set:Ct});Object.defineProperty(o,B,{enumerable:!0,configurable:!0,get:()=>Ut.value,set:Kt=>Ut.value=Kt})}if(h)for(const B in h)dm(h[B],o,r,B);if(p){const B=jt(p)?p.call(r):p;Reflect.ownKeys(B).forEach(Q=>{ua(Q,B[Q])})}m&&Ep(m,t,"c");function F(B,Q){Wt(Q)?Q.forEach(yt=>B(yt.bind(r))):Q&&B(Q.bind(r))}if(F(am,w),F(cl,_),F(i1,k),F(o1,A),F(e1,P),F(n1,L),F(c1,nt),F(a1,W),F(l1,st),F(cm,E),F(Ff,$),F(s1,ft),Wt(mt))if(mt.length){const B=t.exposed||(t.exposed={});mt.forEach(Q=>{Object.defineProperty(B,Q,{get:()=>r[Q],set:yt=>r[Q]=yt})})}else t.exposed||(t.exposed={});V&&t.render===Un&&(t.render=V),xt!=null&&(t.inheritAttrs=xt),ct&&(t.components=ct),U&&(t.directives=U)}function p1(t,n,r=Un,o=!1){Wt(t)&&(t=Bu(t));for(const a in t){const u=t[a];let f;Pe(u)?"default"in u?f=ui(u.from||a,u.default,!0):f=ui(u.from||a):f=ui(u),He(f)&&o?Object.defineProperty(n,a,{enumerable:!0,configurable:!0,get:()=>f.value,set:h=>f.value=h}):n[a]=f}}function Ep(t,n,r){Rn(Wt(t)?t.map(o=>o.bind(n.proxy)):t.bind(n.proxy),n,r)}function dm(t,n,r,o){const a=o.includes(".")?rm(r,o):()=>r[o];if(Ge(t)){const u=n[t];jt(u)&&je(a,u)}else if(jt(t))je(a,t.bind(r));else if(Pe(t))if(Wt(t))t.forEach(u=>dm(u,n,r,o));else{const u=jt(t.handler)?t.handler.bind(r):n[t.handler];jt(u)&&je(a,u,t)}}function pm(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=>Ca(p,g,f,!0)),Ca(p,n,f)),u.set(n,p),p}function Ca(t,n,r,o=!1){const{mixins:a,extends:u}=n;u&&Ca(t,u,r,!0),a&&a.forEach(f=>Ca(t,f,r,!0));for(const f in n)if(!(o&&f==="expose")){const h=g1[f]||r&&r[f];t[f]=h?h(t[f],n[f]):n[f]}return t}const g1={data:Ap,props:$i,emits:$i,methods:$i,computed:$i,beforeCreate:ln,created:ln,beforeMount:ln,mounted:ln,beforeUpdate:ln,updated:ln,beforeDestroy:ln,beforeUnmount:ln,destroyed:ln,unmounted:ln,activated:ln,deactivated:ln,errorCaptured:ln,serverPrefetch:ln,components:$i,directives:$i,watch:m1,provide:Ap,inject:v1};function Ap(t,n){return n?t?function(){return Xe(jt(t)?t.call(this,this):t,jt(n)?n.call(this,this):n)}:n:t}function v1(t,n){return $i(Bu(t),Bu(n))}function Bu(t){if(Wt(t)){const n={};for(let r=0;r<t.length;r++)n[t[r]]=t[r];return n}return t}function ln(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 m1(t,n){if(!t)return n;if(!n)return t;const r=Xe(Object.create(null),t);for(const o in n)r[o]=ln(t[o],n[o]);return r}function y1(t,n,r,o=!1){const a={},u={};xa(u,nc,1),t.propsDefaults=Object.create(null),gm(t,n,a,u);for(const f in t.propsOptions[0])f in a||(a[f]=void 0);r?t.props=o?a:Lx(a):t.type.props?t.props=a:t.props=u,t.attrs=u}function b1(t,n,r,o){const{props:a,attrs:u,vnode:{patchFlag:f}}=t,h=se(a),[p]=t.propsOptions;let g=!1;if((o||f>0)&&!(f&16)){if(f&8){const m=t.vnode.dynamicProps;for(let w=0;w<m.length;w++){let _=m[w];if(Ja(t.emitsOptions,_))continue;const k=n[_];if(p)if(ee(u,_))k!==u[_]&&(u[_]=k,g=!0);else{const A=ar(_);a[A]=Wu(p,h,A,k,t,!1)}else k!==u[_]&&(u[_]=k,g=!0)}}}else{gm(t,n,a,u)&&(g=!0);let m;for(const w in h)(!n||!ee(n,w)&&((m=Ki(w))===w||!ee(n,m)))&&(p?r&&(r[w]!==void 0||r[m]!==void 0)&&(a[w]=Wu(p,h,w,void 0,t,!0)):delete a[w]);if(u!==h)for(const w in u)(!n||!ee(n,w)&&!0)&&(delete u[w],g=!0)}g&&Nr(t,"set","$attrs")}function gm(t,n,r,o){const[a,u]=t.propsOptions;let f=!1,h;if(n)for(let p in n){if(aa(p))continue;const g=n[p];let m;a&&ee(a,m=ar(p))?!u||!u.includes(m)?r[m]=g:(h||(h={}))[m]=g:Ja(t.emitsOptions,p)||(!(p in o)||g!==o[p])&&(o[p]=g,f=!0)}if(u){const p=se(r),g=h||ge;for(let m=0;m<u.length;m++){const w=u[m];r[w]=Wu(a,p,w,g[w],t,!ee(g,w))}}return f}function Wu(t,n,r,o,a,u){const f=t[r];if(f!=null){const h=ee(f,"default");if(h&&o===void 0){const p=f.default;if(f.type!==Function&&jt(p)){const{propsDefaults:g}=a;r in g?o=g[r]:(zo(a),o=g[r]=p.call(null,n),Wi())}else o=p}f[0]&&(u&&!h?o=!1:f[1]&&(o===""||o===Ki(r))&&(o=!0))}return o}function vm(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(!jt(t)){const m=w=>{p=!0;const[_,k]=vm(w,n,!0);Xe(f,_),k&&h.push(...k)};!r&&n.mixins.length&&n.mixins.forEach(m),t.extends&&m(t.extends),t.mixins&&t.mixins.forEach(m)}if(!u&&!p)return o.set(t,Eo),Eo;if(Wt(u))for(let m=0;m<u.length;m++){const w=ar(u[m]);Mp(w)&&(f[w]=ge)}else if(u)for(const m in u){const w=ar(m);if(Mp(w)){const _=u[m],k=f[w]=Wt(_)||jt(_)?{type:_}:_;if(k){const A=Op(Boolean,k.type),P=Op(String,k.type);k[0]=A>-1,k[1]=P<0||A<P,(A>-1||ee(k,"default"))&&h.push(w)}}}const g=[f,h];return o.set(t,g),g}function Mp(t){return t[0]!=="$"}function Np(t){const n=t&&t.toString().match(/^\s*function (\w+)/);return n?n[1]:t===null?"null":""}function Pp(t,n){return Np(t)===Np(n)}function Op(t,n){return Wt(n)?n.findIndex(r=>Pp(r,t)):jt(n)&&Pp(n,t)?0:-1}const mm=t=>t[0]==="_"||t==="$stable",qf=t=>Wt(t)?t.map(Hn):[Hn(t)],w1=(t,n,r)=>{if(n._n)return n;const o=we((...a)=>qf(n(...a)),r);return o._c=!1,o},ym=(t,n,r)=>{const o=t._ctx;for(const a in t){if(mm(a))continue;const u=t[a];if(jt(u))n[a]=w1(a,u,o);else if(u!=null){const f=qf(u);n[a]=()=>f}}},bm=(t,n)=>{const r=qf(n);t.slots.default=()=>r},x1=(t,n)=>{if(t.vnode.shapeFlag&32){const r=n._;r?(t.slots=se(n),xa(n,"_",r)):ym(n,t.slots={})}else t.slots={},n&&bm(t,n);xa(t.slots,nc,1)},_1=(t,n,r)=>{const{vnode:o,slots:a}=t;let u=!0,f=ge;if(o.shapeFlag&32){const h=n._;h?r&&h===1?u=!1:(Xe(a,n),!r&&h===1&&delete a._):(u=!n.$stable,ym(n,a)),f=n}else n&&(bm(t,n),f={default:1});if(u)for(const h in a)!mm(h)&&!(h in f)&&delete a[h]};function wm(){return{app:null,config:{isNativeTag:jw,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 S1=0;function k1(t,n){return function(o,a=null){jt(o)||(o=Object.assign({},o)),a!=null&&!Pe(a)&&(a=null);const u=wm(),f=new Set;let h=!1;const p=u.app={_uid:S1++,_component:o,_props:a,_container:null,_context:u,_instance:null,version:H1,get config(){return u.config},set config(g){},use(g,...m){return f.has(g)||(g&&jt(g.install)?(f.add(g),g.install(p,...m)):jt(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,w){if(!h){const _=Bt(o,a);return _.appContext=u,m&&n?n(_,g):t(_,g,w),h=!0,p._container=g,g.__vue_app__=p,rc(_.component)||_.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 Uu(t,n,r,o,a=!1){if(Wt(t)){t.forEach((_,k)=>Uu(_,n&&(Wt(n)?n[k]:n),r,o,a));return}if(zs(o)&&!a)return;const u=o.shapeFlag&4?rc(o.component)||o.component.proxy:o.el,f=a?null:u,{i:h,r:p}=t,g=n&&n.r,m=h.refs===ge?h.refs={}:h.refs,w=h.setupState;if(g!=null&&g!==p&&(Ge(g)?(m[g]=null,ee(w,g)&&(w[g]=null)):He(g)&&(g.value=null)),jt(p))ci(p,h,12,[f,m]);else{const _=Ge(p),k=He(p);if(_||k){const A=()=>{if(t.f){const P=_?m[p]:p.value;a?Wt(P)&&Sf(P,u):Wt(P)?P.includes(u)||P.push(u):_?(m[p]=[u],ee(w,p)&&(w[p]=m[p])):(p.value=[u],t.k&&(m[t.k]=p.value))}else _?(m[p]=f,ee(w,p)&&(w[p]=f)):k&&(p.value=f,t.k&&(m[t.k]=f))};f?(A.id=-1,gn(A,r)):A()}}}const gn=Zx;function C1(t){return T1(t)}function T1(t,n){const r=Zw();r.__VUE__=!0;const{insert:o,remove:a,patchProp:u,createElement:f,createText:h,createComment:p,setText:g,setElementText:m,parentNode:w,nextSibling:_,setScopeId:k=Un,cloneNode:A,insertStaticContent:P}=t,L=(D,q,G,Y=null,rt=null,pt=null,_t=!1,dt=null,bt=!!q.dynamicChildren)=>{if(D===q)return;D&&!or(D,q)&&(Y=it(D),Qt(D,rt,pt,!0),D=null),q.patchFlag===-2&&(bt=!1,q.dynamicChildren=null);const{type:ot,ref:Pt,shapeFlag:Lt}=q;switch(ot){case Hf:T(D,q,G,Y);break;case bn:E(D,q,G,Y);break;case yu:D==null&&z(q,G,Y,_t);break;case ce:U(D,q,G,Y,rt,pt,_t,dt,bt);break;default:Lt&1?W(D,q,G,Y,rt,pt,_t,dt,bt):Lt&6?R(D,q,G,Y,rt,pt,_t,dt,bt):(Lt&64||Lt&128)&&ot.process(D,q,G,Y,rt,pt,_t,dt,bt,Xt)}Pt!=null&&rt&&Uu(Pt,D&&D.ref,pt,q||D,!q)},T=(D,q,G,Y)=>{if(D==null)o(q.el=h(q.children),G,Y);else{const rt=q.el=D.el;q.children!==D.children&&g(rt,q.children)}},E=(D,q,G,Y)=>{D==null?o(q.el=p(q.children||""),G,Y):q.el=D.el},z=(D,q,G,Y)=>{[D.el,D.anchor]=P(D.children,q,G,Y,D.el,D.anchor)},$=({el:D,anchor:q},G,Y)=>{let rt;for(;D&&D!==q;)rt=_(D),o(D,G,Y),D=rt;o(q,G,Y)},V=({el:D,anchor:q})=>{let G;for(;D&&D!==q;)G=_(D),a(D),D=G;a(q)},W=(D,q,G,Y,rt,pt,_t,dt,bt)=>{_t=_t||q.type==="svg",D==null?st(q,G,Y,rt,pt,_t,dt,bt):mt(D,q,rt,pt,_t,dt,bt)},st=(D,q,G,Y,rt,pt,_t,dt)=>{let bt,ot;const{type:Pt,props:Lt,shapeFlag:$t,transition:Ft,patchFlag:Vt,dirs:te}=D;if(D.el&&A!==void 0&&Vt===-1)bt=D.el=A(D.el);else{if(bt=D.el=f(D.type,pt,Lt&&Lt.is,Lt),$t&8?m(bt,D.children):$t&16&&ft(D.children,bt,null,Y,rt,pt&&Pt!=="foreignObject",_t,dt),te&&Ni(D,null,Y,"created"),Lt){for(const Ht in Lt)Ht!=="value"&&!aa(Ht)&&u(bt,Ht,null,Lt[Ht],pt,D.children,Y,rt,j);"value"in Lt&&u(bt,"value",null,Lt.value),(ot=Lt.onVnodeBeforeMount)&&nr(ot,Y,D)}nt(bt,D,D.scopeId,_t,Y)}te&&Ni(D,null,Y,"beforeMount");const Zt=(!rt||rt&&!rt.pendingBranch)&&Ft&&!Ft.persisted;Zt&&Ft.beforeEnter(bt),o(bt,q,G),((ot=Lt&&Lt.onVnodeMounted)||Zt||te)&&gn(()=>{ot&&nr(ot,Y,D),Zt&&Ft.enter(bt),te&&Ni(D,null,Y,"mounted")},rt)},nt=(D,q,G,Y,rt)=>{if(G&&k(D,G),Y)for(let pt=0;pt<Y.length;pt++)k(D,Y[pt]);if(rt){let pt=rt.subTree;if(q===pt){const _t=rt.vnode;nt(D,_t,_t.scopeId,_t.slotScopeIds,rt.parent)}}},ft=(D,q,G,Y,rt,pt,_t,dt,bt=0)=>{for(let ot=bt;ot<D.length;ot++){const Pt=D[ot]=dt?ni(D[ot]):Hn(D[ot]);L(null,Pt,q,G,Y,rt,pt,_t,dt)}},mt=(D,q,G,Y,rt,pt,_t)=>{const dt=q.el=D.el;let{patchFlag:bt,dynamicChildren:ot,dirs:Pt}=q;bt|=D.patchFlag&16;const Lt=D.props||ge,$t=q.props||ge;let Ft;G&&Pi(G,!1),(Ft=$t.onVnodeBeforeUpdate)&&nr(Ft,G,q,D),Pt&&Ni(q,D,G,"beforeUpdate"),G&&Pi(G,!0);const Vt=rt&&q.type!=="foreignObject";if(ot?xt(D.dynamicChildren,ot,dt,G,Y,Vt,pt):_t||yt(D,q,dt,null,G,Y,Vt,pt,!1),bt>0){if(bt&16)ct(dt,q,Lt,$t,G,Y,rt);else if(bt&2&&Lt.class!==$t.class&&u(dt,"class",null,$t.class,rt),bt&4&&u(dt,"style",Lt.style,$t.style,rt),bt&8){const te=q.dynamicProps;for(let Zt=0;Zt<te.length;Zt++){const Ht=te[Zt],Se=Lt[Ht],xn=$t[Ht];(xn!==Se||Ht==="value")&&u(dt,Ht,Se,xn,rt,D.children,G,Y,j)}}bt&1&&D.children!==q.children&&m(dt,q.children)}else!_t&&ot==null&&ct(dt,q,Lt,$t,G,Y,rt);((Ft=$t.onVnodeUpdated)||Pt)&&gn(()=>{Ft&&nr(Ft,G,q,D),Pt&&Ni(q,D,G,"updated")},Y)},xt=(D,q,G,Y,rt,pt,_t)=>{for(let dt=0;dt<q.length;dt++){const bt=D[dt],ot=q[dt],Pt=bt.el&&(bt.type===ce||!or(bt,ot)||bt.shapeFlag&70)?w(bt.el):G;L(bt,ot,Pt,null,Y,rt,pt,_t,!0)}},ct=(D,q,G,Y,rt,pt,_t)=>{if(G!==Y){for(const dt in Y){if(aa(dt))continue;const bt=Y[dt],ot=G[dt];bt!==ot&&dt!=="value"&&u(D,dt,ot,bt,_t,q.children,rt,pt,j)}if(G!==ge)for(const dt in G)!aa(dt)&&!(dt in Y)&&u(D,dt,G[dt],null,_t,q.children,rt,pt,j);"value"in Y&&u(D,"value",G.value,Y.value)}},U=(D,q,G,Y,rt,pt,_t,dt,bt)=>{const ot=q.el=D?D.el:h(""),Pt=q.anchor=D?D.anchor:h("");let{patchFlag:Lt,dynamicChildren:$t,slotScopeIds:Ft}=q;Ft&&(dt=dt?dt.concat(Ft):Ft),D==null?(o(ot,G,Y),o(Pt,G,Y),ft(q.children,G,Pt,rt,pt,_t,dt,bt)):Lt>0&&Lt&64&&$t&&D.dynamicChildren?(xt(D.dynamicChildren,$t,G,rt,pt,_t,dt),(q.key!=null||rt&&q===rt.subTree)&&xm(D,q,!0)):yt(D,q,G,Pt,rt,pt,_t,dt,bt)},R=(D,q,G,Y,rt,pt,_t,dt,bt)=>{q.slotScopeIds=dt,D==null?q.shapeFlag&512?rt.ctx.activate(q,G,Y,_t,bt):C(q,G,Y,rt,pt,_t,bt):F(D,q,bt)},C=(D,q,G,Y,rt,pt,_t)=>{const dt=D.component=O1(D,Y,rt);if(tc(D)&&(dt.ctx.renderer=Xt),D1(dt),dt.asyncDep){if(rt&&rt.registerDep(dt,B),!D.el){const bt=dt.subTree=Bt(bn);E(null,bt,q,G)}return}B(dt,D,q,G,rt,pt,_t)},F=(D,q,G)=>{const Y=q.component=D.component;if(Wx(D,q,G))if(Y.asyncDep&&!Y.asyncResolved){Q(Y,q,G);return}else Y.next=q,Rx(Y.update),Y.update();else q.el=D.el,Y.vnode=q},B=(D,q,G,Y,rt,pt,_t)=>{const dt=()=>{if(D.isMounted){let{next:Pt,bu:Lt,u:$t,parent:Ft,vnode:Vt}=D,te=Pt,Zt;Pi(D,!1),Pt?(Pt.el=Vt.el,Q(D,Pt,_t)):Pt=Vt,Lt&&ca(Lt),(Zt=Pt.props&&Pt.props.onVnodeBeforeUpdate)&&nr(Zt,Ft,Pt,Vt),Pi(D,!0);const Ht=vu(D),Se=D.subTree;D.subTree=Ht,L(Se,Ht,w(Se.el),it(Se),D,rt,pt),Pt.el=Ht.el,te===null&&Rf(D,Ht.el),$t&&gn($t,rt),(Zt=Pt.props&&Pt.props.onVnodeUpdated)&&gn(()=>nr(Zt,Ft,Pt,Vt),rt)}else{let Pt;const{el:Lt,props:$t}=q,{bm:Ft,m:Vt,parent:te}=D,Zt=zs(q);if(Pi(D,!1),Ft&&ca(Ft),!Zt&&(Pt=$t&&$t.onVnodeBeforeMount)&&nr(Pt,te,q),Pi(D,!0),Lt&&Nt){const Ht=()=>{D.subTree=vu(D),Nt(Lt,D.subTree,D,rt,null)};Zt?q.type.__asyncLoader().then(()=>!D.isUnmounted&&Ht()):Ht()}else{const Ht=D.subTree=vu(D);L(null,Ht,G,Y,D,rt,pt),q.el=Ht.el}if(Vt&&gn(Vt,rt),!Zt&&(Pt=$t&&$t.onVnodeMounted)){const Ht=q;gn(()=>nr(Pt,te,Ht),rt)}(q.shapeFlag&256||te&&zs(te.vnode)&&te.vnode.shapeFlag&256)&&D.a&&gn(D.a,rt),D.isMounted=!0,q=G=Y=null}},bt=D.effect=new Lf(dt,()=>Vv(ot),D.scope),ot=D.update=()=>bt.run();ot.id=D.uid,Pi(D,!0),ot()},Q=(D,q,G)=>{q.component=D;const Y=D.vnode.props;D.vnode=q,D.next=null,b1(D,q.props,Y,G),_1(D,q.children,G),Go(),Za(void 0,D.update),Vo()},yt=(D,q,G,Y,rt,pt,_t,dt,bt=!1)=>{const ot=D&&D.children,Pt=D?D.shapeFlag:0,Lt=q.children,{patchFlag:$t,shapeFlag:Ft}=q;if($t>0){if($t&128){Ut(ot,Lt,G,Y,rt,pt,_t,dt,bt);return}else if($t&256){Ct(ot,Lt,G,Y,rt,pt,_t,dt,bt);return}}Ft&8?(Pt&16&&j(ot,rt,pt),Lt!==ot&&m(G,Lt)):Pt&16?Ft&16?Ut(ot,Lt,G,Y,rt,pt,_t,dt,bt):j(ot,rt,pt,!0):(Pt&8&&m(G,""),Ft&16&&ft(Lt,G,Y,rt,pt,_t,dt,bt))},Ct=(D,q,G,Y,rt,pt,_t,dt,bt)=>{D=D||Eo,q=q||Eo;const ot=D.length,Pt=q.length,Lt=Math.min(ot,Pt);let $t;for($t=0;$t<Lt;$t++){const Ft=q[$t]=bt?ni(q[$t]):Hn(q[$t]);L(D[$t],Ft,G,null,rt,pt,_t,dt,bt)}ot>Pt?j(D,rt,pt,!0,!1,Lt):ft(q,G,Y,rt,pt,_t,dt,bt,Lt)},Ut=(D,q,G,Y,rt,pt,_t,dt,bt)=>{let ot=0;const Pt=q.length;let Lt=D.length-1,$t=Pt-1;for(;ot<=Lt&&ot<=$t;){const Ft=D[ot],Vt=q[ot]=bt?ni(q[ot]):Hn(q[ot]);if(or(Ft,Vt))L(Ft,Vt,G,null,rt,pt,_t,dt,bt);else break;ot++}for(;ot<=Lt&&ot<=$t;){const Ft=D[Lt],Vt=q[$t]=bt?ni(q[$t]):Hn(q[$t]);if(or(Ft,Vt))L(Ft,Vt,G,null,rt,pt,_t,dt,bt);else break;Lt--,$t--}if(ot>Lt){if(ot<=$t){const Ft=$t+1,Vt=Ft<Pt?q[Ft].el:Y;for(;ot<=$t;)L(null,q[ot]=bt?ni(q[ot]):Hn(q[ot]),G,Vt,rt,pt,_t,dt,bt),ot++}}else if(ot>$t)for(;ot<=Lt;)Qt(D[ot],rt,pt,!0),ot++;else{const Ft=ot,Vt=ot,te=new Map;for(ot=Vt;ot<=$t;ot++){const De=q[ot]=bt?ni(q[ot]):Hn(q[ot]);De.key!=null&&te.set(De.key,ot)}let Zt,Ht=0;const Se=$t-Vt+1;let xn=!1,Oe=0;const Vn=new Array(Se);for(ot=0;ot<Se;ot++)Vn[ot]=0;for(ot=Ft;ot<=Lt;ot++){const De=D[ot];if(Ht>=Se){Qt(De,rt,pt,!0);continue}let It;if(De.key!=null)It=te.get(De.key);else for(Zt=Vt;Zt<=$t;Zt++)if(Vn[Zt-Vt]===0&&or(De,q[Zt])){It=Zt;break}It===void 0?Qt(De,rt,pt,!0):(Vn[It-Vt]=ot+1,It>=Oe?Oe=It:xn=!0,L(De,q[It],G,null,rt,pt,_t,dt,bt),Ht++)}const Dt=xn?L1(Vn):Eo;for(Zt=Dt.length-1,ot=Se-1;ot>=0;ot--){const De=Vt+ot,It=q[De],me=De+1<Pt?q[De+1].el:Y;Vn[ot]===0?L(null,It,G,me,rt,pt,_t,dt,bt):xn&&(Zt<0||ot!==Dt[Zt]?Kt(It,G,me,2):Zt--)}}},Kt=(D,q,G,Y,rt=null)=>{const{el:pt,type:_t,transition:dt,children:bt,shapeFlag:ot}=D;if(ot&6){Kt(D.component.subTree,q,G,Y);return}if(ot&128){D.suspense.move(q,G,Y);return}if(ot&64){_t.move(D,q,G,Xt);return}if(_t===ce){o(pt,q,G);for(let Lt=0;Lt<bt.length;Lt++)Kt(bt[Lt],q,G,Y);o(D.anchor,q,G);return}if(_t===yu){$(D,q,G);return}if(Y!==2&&ot&1&&dt)if(Y===0)dt.beforeEnter(pt),o(pt,q,G),gn(()=>dt.enter(pt),rt);else{const{leave:Lt,delayLeave:$t,afterLeave:Ft}=dt,Vt=()=>o(pt,q,G),te=()=>{Lt(pt,()=>{Vt(),Ft&&Ft()})};$t?$t(pt,Vt,te):te()}else o(pt,q,G)},Qt=(D,q,G,Y=!1,rt=!1)=>{const{type:pt,props:_t,ref:dt,children:bt,dynamicChildren:ot,shapeFlag:Pt,patchFlag:Lt,dirs:$t}=D;if(dt!=null&&Uu(dt,null,G,D,!0),Pt&256){q.ctx.deactivate(D);return}const Ft=Pt&1&&$t,Vt=!zs(D);let te;if(Vt&&(te=_t&&_t.onVnodeBeforeUnmount)&&nr(te,q,D),Pt&6)tt(D.component,G,Y);else{if(Pt&128){D.suspense.unmount(G,Y);return}Ft&&Ni(D,null,q,"beforeUnmount"),Pt&64?D.type.remove(D,q,G,rt,Xt,Y):ot&&(pt!==ce||Lt>0&&Lt&64)?j(ot,q,G,!1,!0):(pt===ce&&Lt&384||!rt&&Pt&16)&&j(bt,q,G),Y&&Jt(D)}(Vt&&(te=_t&&_t.onVnodeUnmounted)||Ft)&&gn(()=>{te&&nr(te,q,D),Ft&&Ni(D,null,q,"unmounted")},G)},Jt=D=>{const{type:q,el:G,anchor:Y,transition:rt}=D;if(q===ce){K(G,Y);return}if(q===yu){V(D);return}const pt=()=>{a(G),rt&&!rt.persisted&&rt.afterLeave&&rt.afterLeave()};if(D.shapeFlag&1&&rt&&!rt.persisted){const{leave:_t,delayLeave:dt}=rt,bt=()=>_t(G,pt);dt?dt(D.el,pt,bt):bt()}else pt()},K=(D,q)=>{let G;for(;D!==q;)G=_(D),a(D),D=G;a(q)},tt=(D,q,G)=>{const{bum:Y,scope:rt,update:pt,subTree:_t,um:dt}=D;Y&&ca(Y),rt.stop(),pt&&(pt.active=!1,Qt(_t,D,q,G)),dt&&gn(dt,q),gn(()=>{D.isUnmounted=!0},q),q&&q.pendingBranch&&!q.isUnmounted&&D.asyncDep&&!D.asyncResolved&&D.suspenseId===q.pendingId&&(q.deps--,q.deps===0&&q.resolve())},j=(D,q,G,Y=!1,rt=!1,pt=0)=>{for(let _t=pt;_t<D.length;_t++)Qt(D[_t],q,G,Y,rt)},it=D=>D.shapeFlag&6?it(D.component.subTree):D.shapeFlag&128?D.suspense.next():_(D.anchor||D.el),zt=(D,q,G)=>{D==null?q._vnode&&Qt(q._vnode,null,null,!0):L(q._vnode||null,D,q,null,null,null,G),Zv(),q._vnode=D},Xt={p:L,um:Qt,m:Kt,r:Jt,mt:C,mc:ft,pc:yt,pbc:xt,n:it,o:t};let Tt,Nt;return n&&([Tt,Nt]=n(Xt)),{render:zt,hydrate:Tt,createApp:k1(zt,Tt)}}function Pi({effect:t,update:n},r){t.allowRecurse=n.allowRecurse=r}function xm(t,n,r=!1){const o=t.children,a=n.children;if(Wt(o)&&Wt(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]=ni(a[u]),h.el=f.el),r||xm(f,h))}}function L1(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 E1=t=>t.__isTeleport,ce=Symbol(void 0),Hf=Symbol(void 0),bn=Symbol(void 0),yu=Symbol(void 0),Is=[];let $n=null;function ht(t=!1){Is.push($n=t?null:[])}function _m(){Is.pop(),$n=Is[Is.length-1]||null}let Ro=1;function Dp(t){Ro+=t}function Sm(t){return t.dynamicChildren=Ro>0?$n||Eo:null,_m(),Ro>0&&$n&&$n.push(t),t}function Mt(t,n,r,o,a,u){return Sm(ut(t,n,r,o,a,u,!0))}function de(t,n,r,o,a){return Sm(Bt(t,n,r,o,a,!0))}function Xs(t){return t?t.__v_isVNode===!0:!1}function or(t,n){return t.type===n.type&&t.key===n.key}const nc="__vInternal",km=({key:t})=>t!=null?t:null,fa=({ref:t,ref_key:n,ref_for:r})=>t!=null?Ge(t)||He(t)||jt(t)?{i:tn,r:t,k:n,f:!!r}:t:null;function ut(t,n=null,r=null,o=0,a=null,u=t===ce?0:1,f=!1,h=!1){const p={__v_isVNode:!0,__v_skip:!0,type:t,props:n,key:n&&km(n),ref:n&&fa(n),scopeId:Qa,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?(Bf(p,r),u&128&&t.normalize(p)):r&&(p.shapeFlag|=Ge(r)?8:16),Ro>0&&!f&&$n&&(p.patchFlag>0||u&6)&&p.patchFlag!==32&&$n.push(p),p}const Bt=A1;function A1(t,n=null,r=null,o=0,a=null,u=!1){if((!t||t===f1)&&(t=bn),Xs(t)){const h=di(t,n,!0);return r&&Bf(h,r),Ro>0&&!u&&$n&&(h.shapeFlag&6?$n[$n.indexOf(t)]=h:$n.push(h)),h.patchFlag|=-2,h}if(I1(t)&&(t=t.__vccOpts),n){n=M1(n);let{class:h,style:p}=n;h&&!Ge(h)&&(n.class=ve(h)),Pe(p)&&(Hv(p)&&!Wt(p)&&(p=Xe({},p)),n.style=yn(p))}const f=Ge(t)?1:Ux(t)?128:E1(t)?64:Pe(t)?4:jt(t)?2:0;return ut(t,n,r,o,a,f,u,!0)}function M1(t){return t?Hv(t)||nc in t?Xe({},t):t:null}function di(t,n,r=!1){const{props:o,ref:a,patchFlag:u,children:f}=t,h=n?fi(o||{},n):o;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:h,key:h&&km(h),ref:n&&n.ref?r&&a?Wt(a)?a.concat(fa(n)):[a,fa(n)]:fa(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!==ce?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&&di(t.ssContent),ssFallback:t.ssFallback&&di(t.ssFallback),el:t.el,anchor:t.anchor}}function Ys(t=" ",n=0){return Bt(Hf,null,t,n)}function _e(t="",n=!1){return n?(ht(),de(bn,null,t)):Bt(bn,null,t)}function Hn(t){return t==null||typeof t=="boolean"?Bt(bn):Wt(t)?Bt(ce,null,t.slice()):typeof t=="object"?ni(t):Bt(Hf,null,String(t))}function ni(t){return t.el===null||t.memo?t:di(t)}function Bf(t,n){let r=0;const{shapeFlag:o}=t;if(n==null)n=null;else if(Wt(n))r=16;else if(typeof n=="object")if(o&65){const a=n.default;a&&(a._c&&(a._d=!1),Bf(t,a()),a._c&&(a._d=!0));return}else{r=32;const a=n._;!a&&!(nc in n)?n._ctx=tn:a===3&&tn&&(tn.slots._===1?n._=1:(n._=2,t.patchFlag|=1024))}else jt(n)?(n={default:n,_ctx:tn},r=32):(n=String(n),o&64?(r=16,n=[Ys(n)]):r=8);t.children=n,t.shapeFlag|=r}function fi(...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=ve([n.class,o.class]));else if(a==="style")n.style=yn([n.style,o.style]);else if(Ga(a)){const u=n[a],f=o[a];f&&u!==f&&!(Wt(u)&&u.includes(f))&&(n[a]=u?[].concat(u,f):f)}else a!==""&&(n[a]=o[a])}return n}function nr(t,n,r,o=null){Rn(t,n,7,[r,o])}const N1=wm();let P1=0;function O1(t,n,r){const o=t.type,a=(n?n.appContext:t.appContext)||N1,u={uid:P1++,vnode:t,type:o,parent:n,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new Jw(!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:vm(o,a),emitsOptions:Qv(o,a),emit:null,emitted:null,propsDefaults:ge,inheritAttrs:o.inheritAttrs,ctx:ge,data:ge,props:ge,attrs:ge,slots:ge,refs:ge,setupState:ge,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=Ix.bind(null,u),t.ce&&t.ce(u),u}let We=null;const ul=()=>We||tn,zo=t=>{We=t,t.scope.on()},Wi=()=>{We&&We.scope.off(),We=null};function Cm(t){return t.vnode.shapeFlag&4}let Zs=!1;function D1(t,n=!1){Zs=n;const{props:r,children:o}=t.vnode,a=Cm(t);y1(t,r,a,n),x1(t,o);const u=a?$1(t,n):void 0;return Zs=!1,u}function $1(t,n){const r=t.type;t.accessCache=Object.create(null),t.proxy=Pf(new Proxy(t.ctx,h1));const{setup:o}=r;if(o){const a=t.setupContext=o.length>1?Lm(t):null;zo(t),Go();const u=ci(o,t,0,[t.props,a]);if(Vo(),Wi(),Lv(u)){if(u.then(Wi,Wi),n)return u.then(f=>{ju(t,f,n)}).catch(f=>{al(f,t,0)});t.asyncDep=u}else ju(t,u,n)}else Tm(t,n)}function ju(t,n,r){jt(n)?t.type.__ssrInlineRender?t.ssrRender=n:t.render=n:Pe(n)&&(t.setupState=jv(n)),Tm(t,r)}let $p;function Tm(t,n,r){const o=t.type;if(!t.render){if(!n&&$p&&!o.render){const a=o.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=$p(a,g)}}t.render=o.render||Un}zo(t),Go(),d1(t),Vo(),Wi()}function R1(t){return new Proxy(t.attrs,{get(n,r){return Ln(t,"get","$attrs"),n[r]}})}function Lm(t){const n=o=>{t.exposed=o||{}};let r;return{get attrs(){return r||(r=R1(t))},slots:t.slots,emit:t.emit,expose:n}}function rc(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(jv(Pf(t.exposed)),{get(n,r){if(r in n)return n[r];if(r in ka)return ka[r](t)}}))}function z1(t,n=!0){return jt(t)?t.displayName||t.name:t.name||n&&t.__name}function I1(t){return jt(t)&&"__vccOpts"in t}const kt=(t,n)=>Ox(t,n,Zs);function F1(){return q1().attrs}function q1(){const t=ul();return t.setupContext||(t.setupContext=Lm(t))}function fl(t,n,r){const o=arguments.length;return o===2?Pe(n)&&!Wt(n)?Xs(n)?Bt(t,null,[n]):Bt(t,n):Bt(t,null,n):(o>3?r=Array.prototype.slice.call(arguments,2):o===3&&Xs(r)&&(r=[r]),Bt(t,n,r))}const H1="3.2.37",B1="http://www.w3.org/2000/svg",zi=typeof document!="undefined"?document:null,Rp=zi&&zi.createElement("template"),W1={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(B1,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,"")},cloneNode(t){const n=t.cloneNode(!0);return"_value"in t&&(n._value=t._value),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{Rp.innerHTML=o?`<svg>${t}</svg>`:t;const h=Rp.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 U1(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 j1(t,n,r){const o=t.style,a=Ge(r);if(r&&!a){for(const u in r)Gu(o,u,r[u]);if(n&&!Ge(n))for(const u in n)r[u]==null&&Gu(o,u,"")}else{const u=o.display;a?n!==r&&(o.cssText=r):n&&t.removeAttribute("style"),"_vod"in t&&(o.display=u)}}const zp=/\s*!important$/;function Gu(t,n,r){if(Wt(r))r.forEach(o=>Gu(t,n,o));else if(r==null&&(r=""),n.startsWith("--"))t.setProperty(n,r);else{const o=G1(t,n);zp.test(r)?t.setProperty(Ki(o),r.replace(zp,""),"important"):t[o]=r}}const Ip=["Webkit","Moz","ms"],bu={};function G1(t,n){const r=bu[n];if(r)return r;let o=ar(n);if(o!=="filter"&&o in t)return bu[n]=o;o=Xa(o);for(let a=0;a<Ip.length;a++){const u=Ip[a]+o;if(u in t)return bu[n]=u}return n}const Fp="http://www.w3.org/1999/xlink";function V1(t,n,r,o,a){if(o&&n.startsWith("xlink:"))r==null?t.removeAttributeNS(Fp,n.slice(6,n.length)):t.setAttributeNS(Fp,n,r);else{const u=Hw(n);r==null||u&&!kv(r)?t.removeAttribute(n):t.setAttribute(n,u?"":r)}}function K1(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=kv(r):r==null&&p==="string"?(r="",h=!0):p==="number"&&(r=0,h=!0)}try{t[n]=r}catch{}h&&t.removeAttribute(n)}const[Em,X1]=(()=>{let t=Date.now,n=!1;if(typeof window!="undefined"){Date.now()>document.createEvent("Event").timeStamp&&(t=performance.now.bind(performance));const r=navigator.userAgent.match(/firefox\/(\d+)/i);n=!!(r&&Number(r[1])<=53)}return[t,n]})();let Vu=0;const Y1=Promise.resolve(),Z1=()=>{Vu=0},J1=()=>Vu||(Y1.then(Z1),Vu=Em());function To(t,n,r,o){t.addEventListener(n,r,o)}function Q1(t,n,r,o){t.removeEventListener(n,r,o)}function t_(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]=e_(n);if(o){const g=u[n]=n_(o,a);To(t,h,g,p)}else f&&(Q1(t,h,f,p),u[n]=void 0)}}const qp=/(?:Once|Passive|Capture)$/;function e_(t){let n;if(qp.test(t)){n={};let r;for(;r=t.match(qp);)t=t.slice(0,t.length-r[0].length),n[r[0].toLowerCase()]=!0}return[Ki(t.slice(2)),n]}function n_(t,n){const r=o=>{const a=o.timeStamp||Em();(X1||a>=r.attached-1)&&Rn(r_(o,r.value),n,5,[o])};return r.value=t,r.attached=J1(),r}function r_(t,n){if(Wt(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 Hp=/^on[a-z]/,i_=(t,n,r,o,a=!1,u,f,h,p)=>{n==="class"?U1(t,o,a):n==="style"?j1(t,r,o):Ga(n)?_f(n)||t_(t,n,r,o,f):(n[0]==="."?(n=n.slice(1),!0):n[0]==="^"?(n=n.slice(1),!1):o_(t,n,o,a))?K1(t,n,o,u,f,h,p):(n==="true-value"?t._trueValue=o:n==="false-value"&&(t._falseValue=o),V1(t,n,o,a))};function o_(t,n,r,o){return o?!!(n==="innerHTML"||n==="textContent"||n in t&&Hp.test(n)&&jt(r)):n==="spellcheck"||n==="draggable"||n==="translate"||n==="form"||n==="list"&&t.tagName==="INPUT"||n==="type"&&t.tagName==="TEXTAREA"||Hp.test(n)&&Ge(r)?!1:n in t}const Zr="transition",Ts="animation",Wf=(t,{slots:n})=>fl(im,s_(t),n);Wf.displayName="Transition";const Am={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};Wf.props=Xe({},im.props,Am);const Oi=(t,n=[])=>{Wt(t)?t.forEach(r=>r(...n)):t&&t(...n)},Bp=t=>t?Wt(t)?t.some(n=>n.length>1):t.length>1:!1;function s_(t){const n={};for(const ct in t)ct in Am||(n[ct]=t[ct]);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:w=`${r}-leave-from`,leaveActiveClass:_=`${r}-leave-active`,leaveToClass:k=`${r}-leave-to`}=t,A=l_(a),P=A&&A[0],L=A&&A[1],{onBeforeEnter:T,onEnter:E,onEnterCancelled:z,onLeave:$,onLeaveCancelled:V,onBeforeAppear:W=T,onAppear:st=E,onAppearCancelled:nt=z}=n,ft=(ct,U,R)=>{Di(ct,U?m:h),Di(ct,U?g:f),R&&R()},mt=(ct,U)=>{ct._isLeaving=!1,Di(ct,w),Di(ct,k),Di(ct,_),U&&U()},xt=ct=>(U,R)=>{const C=ct?st:E,F=()=>ft(U,ct,R);Oi(C,[U,F]),Wp(()=>{Di(U,ct?p:u),Jr(U,ct?m:h),Bp(C)||Up(U,o,P,F)})};return Xe(n,{onBeforeEnter(ct){Oi(T,[ct]),Jr(ct,u),Jr(ct,f)},onBeforeAppear(ct){Oi(W,[ct]),Jr(ct,p),Jr(ct,g)},onEnter:xt(!1),onAppear:xt(!0),onLeave(ct,U){ct._isLeaving=!0;const R=()=>mt(ct,U);Jr(ct,w),u_(),Jr(ct,_),Wp(()=>{!ct._isLeaving||(Di(ct,w),Jr(ct,k),Bp($)||Up(ct,o,L,R))}),Oi($,[ct,R])},onEnterCancelled(ct){ft(ct,!1),Oi(z,[ct])},onAppearCancelled(ct){ft(ct,!0),Oi(nt,[ct])},onLeaveCancelled(ct){mt(ct),Oi(V,[ct])}})}function l_(t){if(t==null)return null;if(Pe(t))return[wu(t.enter),wu(t.leave)];{const n=wu(t);return[n,n]}}function wu(t){return Us(t)}function Jr(t,n){n.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t._vtc||(t._vtc=new Set)).add(n)}function Di(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 Wp(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let a_=0;function Up(t,n,r,o){const a=t._endId=++a_,u=()=>{a===t._endId&&o()};if(r)return setTimeout(u,r);const{type:f,timeout:h,propCount:p}=c_(t,n);if(!f)return o();const g=f+"end";let m=0;const w=()=>{t.removeEventListener(g,_),u()},_=k=>{k.target===t&&++m>=p&&w()};setTimeout(()=>{m<p&&w()},h+1),t.addEventListener(g,_)}function c_(t,n){const r=window.getComputedStyle(t),o=A=>(r[A]||"").split(", "),a=o(Zr+"Delay"),u=o(Zr+"Duration"),f=jp(a,u),h=o(Ts+"Delay"),p=o(Ts+"Duration"),g=jp(h,p);let m=null,w=0,_=0;n===Zr?f>0&&(m=Zr,w=f,_=u.length):n===Ts?g>0&&(m=Ts,w=g,_=p.length):(w=Math.max(f,g),m=w>0?f>g?Zr:Ts:null,_=m?m===Zr?u.length:p.length:0);const k=m===Zr&&/\b(transform|all)(,|$)/.test(r[Zr+"Property"]);return{type:m,timeout:w,propCount:_,hasTransform:k}}function jp(t,n){for(;t.length<n.length;)t=t.concat(t);return Math.max(...n.map((r,o)=>Gp(r)+Gp(t[o])))}function Gp(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function u_(){return document.body.offsetHeight}const Vp=t=>{const n=t.props["onUpdate:modelValue"]||!1;return Wt(n)?r=>ca(n,r):n};function f_(t){t.target.composing=!0}function Kp(t){const n=t.target;n.composing&&(n.composing=!1,n.dispatchEvent(new Event("input")))}const h_={created(t,{modifiers:{lazy:n,trim:r,number:o}},a){t._assign=Vp(a);const u=o||a.props&&a.props.type==="number";To(t,n?"change":"input",f=>{if(f.target.composing)return;let h=t.value;r&&(h=h.trim()),u&&(h=Us(h)),t._assign(h)}),r&&To(t,"change",()=>{t.value=t.value.trim()}),n||(To(t,"compositionstart",f_),To(t,"compositionend",Kp),To(t,"change",Kp))},mounted(t,{value:n}){t.value=n==null?"":n},beforeUpdate(t,{value:n,modifiers:{lazy:r,trim:o,number:a}},u){if(t._assign=Vp(u),t.composing||document.activeElement===t&&t.type!=="range"&&(r||o&&t.value.trim()===n||(a||t.type==="number")&&Us(t.value)===n))return;const f=n==null?"":n;t.value!==f&&(t.value=f)}},d_={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ku=(t,n)=>r=>{if(!("key"in r))return;const o=Ki(r.key);if(n.some(a=>a===o||d_[a]===o))return t(r)},Mm={beforeMount(t,{value:n},{transition:r}){t._vod=t.style.display==="none"?"":t.style.display,r&&n?r.beforeEnter(t):Ls(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),Ls(t,!0),o.enter(t)):o.leave(t,()=>{Ls(t,!1)}):Ls(t,n))},beforeUnmount(t,{value:n}){Ls(t,n)}};function Ls(t,n){t.style.display=n?t._vod:"none"}const p_=Xe({patchProp:i_},W1);let Xp;function g_(){return Xp||(Xp=C1(p_))}const Nm=(...t)=>{const n=g_().createApp(...t),{mount:r}=n;return n.mount=o=>{const a=v_(o);if(!a)return;const u=n._component;!jt(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 v_(t){return Ge(t)?document.querySelector(t):t}var Xo=(t,n)=>{const r=t.__vccOpts||t;for(const[o,a]of n)r[o]=a;return r};const m_={};function y_(t,n){const r=Gi("RouterView");return ht(),de(r)}var b_=Xo(m_,[["render",y_]]);/*!
|
|
2
|
-
* vue-router v4.1.2
|
|
3
|
-
* (c) 2022 Eduardo San Martin Morote
|
|
4
|
-
* @license MIT
|
|
5
|
-
*/const Lo=typeof window!="undefined";function w_(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const pe=Object.assign;function xu(t,n){const r={};for(const o in n){const a=n[o];r[o]=jn(a)?a.map(t):t(a)}return r}const Fs=()=>{},jn=Array.isArray,x_=/\/$/,__=t=>t.replace(x_,"");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=T_(o!=null?o:n,r),{fullPath:o+(u&&"?")+u+f,path:o,query:a,hash:f}}function S_(t,n){const r=n.query?t(n.query):"";return n.path+(r&&"?")+r+(n.hash||"")}function Yp(t,n){return!n||!t.toLowerCase().startsWith(n.toLowerCase())?t:t.slice(n.length)||"/"}function k_(t,n,r){const o=n.matched.length-1,a=r.matched.length-1;return o>-1&&o===a&&Io(n.matched[o],r.matched[a])&&Pm(n.params,r.params)&&t(n.query)===t(r.query)&&n.hash===r.hash}function Io(t,n){return(t.aliasOf||t)===(n.aliasOf||n)}function Pm(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(!C_(t[r],n[r]))return!1;return!0}function C_(t,n){return jn(t)?Zp(t,n):jn(n)?Zp(n,t):t===n}function Zp(t,n){return jn(n)?t.length===n.length&&t.every((r,o)=>r===n[o]):t.length===1&&t[0]===n}function T_(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 qs;(function(t){t.back="back",t.forward="forward",t.unknown=""})(qs||(qs={}));function L_(t){if(!t)if(Lo){const n=document.querySelector("base");t=n&&n.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),__(t)}const E_=/^[^#]+#/;function A_(t,n){return t.replace(E_,"#")+n}function M_(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 ic=()=>({left:window.pageXOffset,top:window.pageYOffset});function N_(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=M_(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 Jp(t,n){return(history.state?history.state.position-n:-1)+t}const Xu=new Map;function P_(t,n){Xu.set(t,n)}function O_(t){const n=Xu.get(t);return Xu.delete(t),n}let D_=()=>location.protocol+"//"+location.host;function Om(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),Yp(p,"")}return Yp(r,t)+o+a}function $_(t,n,r,o){let a=[],u=[],f=null;const h=({state:_})=>{const k=Om(t,location),A=r.value,P=n.value;let L=0;if(_){if(r.value=k,n.value=_,f&&f===A){f=null;return}L=P?_.position-P.position:0}else o(k);a.forEach(T=>{T(r.value,A,{delta:L,type:Js.pop,direction:L?L>0?qs.forward:qs.back:qs.unknown})})};function p(){f=r.value}function g(_){a.push(_);const k=()=>{const A=a.indexOf(_);A>-1&&a.splice(A,1)};return u.push(k),k}function m(){const{history:_}=window;!_.state||_.replaceState(pe({},_.state,{scroll:ic()}),"")}function w(){for(const _ of u)_();u=[],window.removeEventListener("popstate",h),window.removeEventListener("beforeunload",m)}return window.addEventListener("popstate",h),window.addEventListener("beforeunload",m),{pauseListeners:p,listen:g,destroy:w}}function Qp(t,n,r,o=!1,a=!1){return{back:t,current:n,forward:r,replaced:o,position:window.history.length,scroll:a?ic():null}}function R_(t){const{history:n,location:r}=window,o={value:Om(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 w=t.indexOf("#"),_=w>-1?(r.host&&document.querySelector("base")?t:t.slice(w))+p:D_()+t+p;try{n[m?"replaceState":"pushState"](g,"",_),a.value=g}catch(k){console.error(k),r[m?"replace":"assign"](_)}}function f(p,g){const m=pe({},n.state,Qp(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=pe({},a.value,n.state,{forward:p,scroll:ic()});u(m.current,m,!0);const w=pe({},Qp(o.value,p,null),{position:m.position+1},g);u(p,w,!1),o.value=p}return{location:o,state:a,push:h,replace:f}}function z_(t){t=L_(t);const n=R_(t),r=$_(t,n.state,n.location,n.replace);function o(u,f=!0){f||r.pauseListeners(),history.go(u)}const a=pe({location:"",base:t,go:o,createHref:A_.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 I_(t){return typeof t=="string"||t&&typeof t=="object"}function Dm(t){return typeof t=="string"||typeof t=="symbol"}const Qr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},$m=Symbol("");var tg;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(tg||(tg={}));function Fo(t,n){return pe(new Error,{type:t,[$m]:!0},n)}function ti(t,n){return t instanceof Error&&$m in t&&(n==null||!!(t.type&n))}const eg="[^/]+?",F_={sensitive:!1,strict:!1,start:!0,end:!0},q_=/[.+*?^${}()[\]/\\]/g;function H_(t,n){const r=pe({},F_,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 w=0;w<g.length;w++){const _=g[w];let k=40+(r.sensitive?.25:0);if(_.type===0)w||(a+="/"),a+=_.value.replace(q_,"\\$&"),k+=40;else if(_.type===1){const{value:A,repeatable:P,optional:L,regexp:T}=_;u.push({name:A,repeatable:P,optional:L});const E=T||eg;if(E!==eg){k+=10;try{new RegExp(`(${E})`)}catch($){throw new Error(`Invalid custom RegExp for param "${A}" (${E}): `+$.message)}}let z=P?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;w||(z=L&&g.length<2?`(?:/${z})`:"/"+z),L&&(z+="?"),a+=z,k+=20,L&&(k+=-8),P&&(k+=-20),E===".*"&&(k+=-50)}m.push(k)}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),w={};if(!m)return null;for(let _=1;_<m.length;_++){const k=m[_]||"",A=u[_-1];w[A.name]=k&&A.repeatable?k.split("/"):k}return w}function p(g){let m="",w=!1;for(const _ of t){(!w||!m.endsWith("/"))&&(m+="/"),w=!1;for(const k of _)if(k.type===0)m+=k.value;else if(k.type===1){const{value:A,repeatable:P,optional:L}=k,T=A in g?g[A]:"";if(jn(T)&&!P)throw new Error(`Provided param "${A}" is an array but it is not repeatable (* or + modifiers)`);const E=jn(T)?T.join("/"):T;if(!E)if(L)_.length<2&&t.length>1&&(m.endsWith("/")?m=m.slice(0,-1):w=!0);else throw new Error(`Missing required param "${A}"`);m+=E}}return m}return{re:f,score:o,keys:u,parse:h,stringify:p}}function B_(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 W_(t,n){let r=0;const o=t.score,a=n.score;for(;r<o.length&&r<a.length;){const u=B_(o[r],a[r]);if(u)return u;r++}if(Math.abs(a.length-o.length)===1){if(ng(o))return 1;if(ng(a))return-1}return a.length-o.length}function ng(t){const n=t[t.length-1];return t.length>0&&n[n.length-1]<0}const U_={type:0,value:""},j_=/[a-zA-Z0-9_]/;function G_(t){if(!t)return[[]];if(t==="/")return[[U_]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function n(k){throw new Error(`ERR (${r})/"${g}": ${k}`)}let r=0,o=r;const a=[];let u;function f(){u&&a.push(u),u=[]}let h=0,p,g="",m="";function w(){!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 _(){g+=p}for(;h<t.length;){if(p=t[h++],p==="\\"&&r!==2){o=r,r=4;continue}switch(r){case 0:p==="/"?(g&&w(),f()):p===":"?(w(),r=1):_();break;case 4:_(),r=o;break;case 1:p==="("?r=2:j_.test(p)?_():(w(),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:w(),r=0,p!=="*"&&p!=="?"&&p!=="+"&&h--,m="";break;default:n("Unknown state");break}}return r===2&&n(`Unfinished custom RegExp for param "${g}"`),w(),f(),a}function V_(t,n,r){const o=H_(G_(t.path),r),a=pe(o,{record:t,parent:n,children:[],alias:[]});return n&&!a.record.aliasOf==!n.record.aliasOf&&n.children.push(a),a}function K_(t,n){const r=[],o=new Map;n=ig({strict:!1,end:!0,sensitive:!1},n);function a(m){return o.get(m)}function u(m,w,_){const k=!_,A=Y_(m);A.aliasOf=_&&_.record;const P=ig(n,m),L=[A];if("alias"in m){const z=typeof m.alias=="string"?[m.alias]:m.alias;for(const $ of z)L.push(pe({},A,{components:_?_.record.components:A.components,path:$,aliasOf:_?_.record:A}))}let T,E;for(const z of L){const{path:$}=z;if(w&&$[0]!=="/"){const V=w.record.path,W=V[V.length-1]==="/"?"":"/";z.path=w.record.path+($&&W+$)}if(T=V_(z,w,P),_?_.alias.push(T):(E=E||T,E!==T&&E.alias.push(T),k&&m.name&&!rg(T)&&f(m.name)),A.children){const V=A.children;for(let W=0;W<V.length;W++)u(V[W],T,_&&_.children[W])}_=_||T,p(T)}return E?()=>{f(E)}:Fs}function f(m){if(Dm(m)){const w=o.get(m);w&&(o.delete(m),r.splice(r.indexOf(w),1),w.children.forEach(f),w.alias.forEach(f))}else{const w=r.indexOf(m);w>-1&&(r.splice(w,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 w=0;for(;w<r.length&&W_(m,r[w])>=0&&(m.record.path!==r[w].record.path||!Rm(m,r[w]));)w++;r.splice(w,0,m),m.record.name&&!rg(m)&&o.set(m.record.name,m)}function g(m,w){let _,k={},A,P;if("name"in m&&m.name){if(_=o.get(m.name),!_)throw Fo(1,{location:m});P=_.record.name,k=pe(X_(w.params,_.keys.filter(E=>!E.optional).map(E=>E.name)),m.params),A=_.stringify(k)}else if("path"in m)A=m.path,_=r.find(E=>E.re.test(A)),_&&(k=_.parse(A),P=_.record.name);else{if(_=w.name?o.get(w.name):r.find(E=>E.re.test(w.path)),!_)throw Fo(1,{location:m,currentLocation:w});P=_.record.name,k=pe({},w.params,m.params),A=_.stringify(k)}const L=[];let T=_;for(;T;)L.unshift(T.record),T=T.parent;return{name:P,path:A,params:k,matched:L,meta:J_(L)}}return t.forEach(m=>u(m)),{addRoute:u,resolve:g,removeRoute:f,getRoutes:h,getRecordMatcher:a}}function X_(t,n){const r={};for(const o of n)o in t&&(r[o]=t[o]);return r}function Y_(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:Z_(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 Z_(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 rg(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function J_(t){return t.reduce((n,r)=>pe(n,r.meta),{})}function ig(t,n){const r={};for(const o in t)r[o]=o in n?n[o]:t[o];return r}function Rm(t,n){return n.children.some(r=>r===t||Rm(t,r))}const zm=/#/g,Q_=/&/g,tS=/\//g,eS=/=/g,nS=/\?/g,Im=/\+/g,rS=/%5B/g,iS=/%5D/g,Fm=/%5E/g,oS=/%60/g,qm=/%7B/g,sS=/%7C/g,Hm=/%7D/g,lS=/%20/g;function Uf(t){return encodeURI(""+t).replace(sS,"|").replace(rS,"[").replace(iS,"]")}function aS(t){return Uf(t).replace(qm,"{").replace(Hm,"}").replace(Fm,"^")}function Yu(t){return Uf(t).replace(Im,"%2B").replace(lS,"+").replace(zm,"%23").replace(Q_,"%26").replace(oS,"`").replace(qm,"{").replace(Hm,"}").replace(Fm,"^")}function cS(t){return Yu(t).replace(eS,"%3D")}function uS(t){return Uf(t).replace(zm,"%23").replace(nS,"%3F")}function fS(t){return t==null?"":uS(t).replace(tS,"%2F")}function Ta(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function hS(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(Im," "),f=u.indexOf("="),h=Ta(f<0?u:u.slice(0,f)),p=f<0?null:Ta(u.slice(f+1));if(h in n){let g=n[h];jn(g)||(g=n[h]=[g]),g.push(p)}else n[h]=p}return n}function og(t){let n="";for(let r in t){const o=t[r];if(r=cS(r),o==null){o!==void 0&&(n+=(n.length?"&":"")+r);continue}(jn(o)?o.map(u=>u&&Yu(u)):[o&&Yu(o)]).forEach(u=>{u!==void 0&&(n+=(n.length?"&":"")+r,u!=null&&(n+="="+u))})}return n}function dS(t){const n={};for(const r in t){const o=t[r];o!==void 0&&(n[r]=jn(o)?o.map(a=>a==null?null:""+a):o==null?o:""+o)}return n}const pS=Symbol(""),sg=Symbol(""),jf=Symbol(""),Bm=Symbol(""),Zu=Symbol("");function Es(){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 ri(t,n,r,o,a){const u=o&&(o.enterCallbacks[a]=o.enterCallbacks[a]||[]);return()=>new Promise((f,h)=>{const p=w=>{w===!1?h(Fo(4,{from:r,to:n})):w instanceof Error?h(w):I_(w)?h(Fo(2,{from:n,to:w})):(u&&o.enterCallbacks[a]===u&&typeof w=="function"&&u.push(w),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(w=>h(w))})}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(gS(h)){const g=(h.__vccOpts||h)[n];g&&a.push(ri(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=w_(g)?g.default:g;u.components[f]=m;const _=(m.__vccOpts||m)[n];return _&&ri(_,r,o,u,f)()}))}}return a}function gS(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function lg(t){const n=ui(jf),r=ui(Bm),o=kt(()=>n.resolve(Z(t.to))),a=kt(()=>{const{matched:p}=o.value,{length:g}=p,m=p[g-1],w=r.matched;if(!m||!w.length)return-1;const _=w.findIndex(Io.bind(null,m));if(_>-1)return _;const k=ag(p[g-2]);return g>1&&ag(m)===k&&w[w.length-1].path!==k?w.findIndex(Io.bind(null,p[g-2])):_}),u=kt(()=>a.value>-1&&bS(r.params,o.value.params)),f=kt(()=>a.value>-1&&a.value===r.matched.length-1&&Pm(r.params,o.value.params));function h(p={}){return yS(p)?n[Z(t.replace)?"replace":"push"](Z(t.to)).catch(Fs):Promise.resolve()}return{route:o,href:kt(()=>o.value.href),isActive:u,isExactActive:f,navigate:h}}const vS=ue({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:lg,setup(t,{slots:n}){const r=cr(lg(t)),{options:o}=ui(jf),a=kt(()=>({[cg(t.activeClass,o.linkActiveClass,"router-link-active")]:r.isActive,[cg(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)}}}),mS=vS;function yS(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 bS(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(!jn(a)||a.length!==o.length||o.some((u,f)=>u!==a[f]))return!1}return!0}function ag(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const cg=(t,n,r)=>t!=null?t:n!=null?n:r,wS=ue({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:n,slots:r}){const o=ui(Zu),a=kt(()=>t.route||o.value),u=ui(sg,0),f=kt(()=>{let g=Z(u);const{matched:m}=a.value;let w;for(;(w=m[g])&&!w.components;)g++;return g}),h=kt(()=>a.value.matched[f.value]);ua(sg,kt(()=>f.value+1)),ua(pS,h),ua(Zu,a);const p=ne();return je(()=>[p.value,h.value,t.name],([g,m,w],[_,k,A])=>{m&&(m.instances[w]=g,k&&k!==m&&g&&g===_&&(m.leaveGuards.size||(m.leaveGuards=k.leaveGuards),m.updateGuards.size||(m.updateGuards=k.updateGuards))),g&&m&&(!k||!Io(m,k)||!_)&&(m.enterCallbacks[w]||[]).forEach(P=>P(g))},{flush:"post"}),()=>{const g=a.value,m=h.value,w=m&&m.components[t.name],_=t.name;if(!w)return ug(r.default,{Component:w,route:g});const k=m.props[t.name],A=k?k===!0?g.params:typeof k=="function"?k(g):k:null,L=fl(w,pe({},A,n,{onVnodeUnmounted:T=>{T.component.isUnmounted&&(m.instances[_]=null)},ref:p}));return ug(r.default,{Component:L,route:g})||L}}});function ug(t,n){if(!t)return null;const r=t(n);return r.length===1?r[0]:r}const xS=wS;function _S(t){const n=K_(t.routes,t),r=t.parseQuery||hS,o=t.stringifyQuery||og,a=t.history,u=Es(),f=Es(),h=Es(),p=ll(Qr);let g=Qr;Lo&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const m=xu.bind(null,K=>""+K),w=xu.bind(null,fS),_=xu.bind(null,Ta);function k(K,tt){let j,it;return Dm(K)?(j=n.getRecordMatcher(K),it=tt):it=K,n.addRoute(it,j)}function A(K){const tt=n.getRecordMatcher(K);tt&&n.removeRoute(tt)}function P(){return n.getRoutes().map(K=>K.record)}function L(K){return!!n.getRecordMatcher(K)}function T(K,tt){if(tt=pe({},tt||p.value),typeof K=="string"){const Nt=_u(r,K,tt.path),D=n.resolve({path:Nt.path},tt),q=a.createHref(Nt.fullPath);return pe(Nt,D,{params:_(D.params),hash:Ta(Nt.hash),redirectedFrom:void 0,href:q})}let j;if("path"in K)j=pe({},K,{path:_u(r,K.path,tt.path).path});else{const Nt=pe({},K.params);for(const D in Nt)Nt[D]==null&&delete Nt[D];j=pe({},K,{params:w(K.params)}),tt.params=w(tt.params)}const it=n.resolve(j,tt),zt=K.hash||"";it.params=m(_(it.params));const Xt=S_(o,pe({},K,{hash:aS(zt),path:it.path})),Tt=a.createHref(Xt);return pe({fullPath:Xt,hash:zt,query:o===og?dS(K.query):K.query||{}},it,{redirectedFrom:void 0,href:Tt})}function E(K){return typeof K=="string"?_u(r,K,p.value.path):pe({},K)}function z(K,tt){if(g!==K)return Fo(8,{from:tt,to:K})}function $(K){return st(K)}function V(K){return $(pe(E(K),{replace:!0}))}function W(K){const tt=K.matched[K.matched.length-1];if(tt&&tt.redirect){const{redirect:j}=tt;let it=typeof j=="function"?j(K):j;return typeof it=="string"&&(it=it.includes("?")||it.includes("#")?it=E(it):{path:it},it.params={}),pe({query:K.query,hash:K.hash,params:"path"in it?{}:K.params},it)}}function st(K,tt){const j=g=T(K),it=p.value,zt=K.state,Xt=K.force,Tt=K.replace===!0,Nt=W(j);if(Nt)return st(pe(E(Nt),{state:zt,force:Xt,replace:Tt}),tt||j);const D=j;D.redirectedFrom=tt;let q;return!Xt&&k_(o,it,j)&&(q=Fo(16,{to:D,from:it}),Ct(it,it,!0,!1)),(q?Promise.resolve(q):ft(D,it)).catch(G=>ti(G)?ti(G,2)?G:yt(G):B(G,D,it)).then(G=>{if(G){if(ti(G,2))return st(pe(E(G.to),{state:zt,force:Xt,replace:Tt}),tt||D)}else G=xt(D,it,!0,Tt,zt);return mt(D,it,G),G})}function nt(K,tt){const j=z(K,tt);return j?Promise.reject(j):Promise.resolve()}function ft(K,tt){let j;const[it,zt,Xt]=SS(K,tt);j=Su(it.reverse(),"beforeRouteLeave",K,tt);for(const Nt of it)Nt.leaveGuards.forEach(D=>{j.push(ri(D,K,tt))});const Tt=nt.bind(null,K,tt);return j.push(Tt),_o(j).then(()=>{j=[];for(const Nt of u.list())j.push(ri(Nt,K,tt));return j.push(Tt),_o(j)}).then(()=>{j=Su(zt,"beforeRouteUpdate",K,tt);for(const Nt of zt)Nt.updateGuards.forEach(D=>{j.push(ri(D,K,tt))});return j.push(Tt),_o(j)}).then(()=>{j=[];for(const Nt of K.matched)if(Nt.beforeEnter&&!tt.matched.includes(Nt))if(jn(Nt.beforeEnter))for(const D of Nt.beforeEnter)j.push(ri(D,K,tt));else j.push(ri(Nt.beforeEnter,K,tt));return j.push(Tt),_o(j)}).then(()=>(K.matched.forEach(Nt=>Nt.enterCallbacks={}),j=Su(Xt,"beforeRouteEnter",K,tt),j.push(Tt),_o(j))).then(()=>{j=[];for(const Nt of f.list())j.push(ri(Nt,K,tt));return j.push(Tt),_o(j)}).catch(Nt=>ti(Nt,8)?Nt:Promise.reject(Nt))}function mt(K,tt,j){for(const it of h.list())it(K,tt,j)}function xt(K,tt,j,it,zt){const Xt=z(K,tt);if(Xt)return Xt;const Tt=tt===Qr,Nt=Lo?history.state:{};j&&(it||Tt?a.replace(K.fullPath,pe({scroll:Tt&&Nt&&Nt.scroll},zt)):a.push(K.fullPath,zt)),p.value=K,Ct(K,tt,j,Tt),yt()}let ct;function U(){ct||(ct=a.listen((K,tt,j)=>{if(!Jt.listening)return;const it=T(K),zt=W(it);if(zt){st(pe(zt,{replace:!0}),it).catch(Fs);return}g=it;const Xt=p.value;Lo&&P_(Jp(Xt.fullPath,j.delta),ic()),ft(it,Xt).catch(Tt=>ti(Tt,12)?Tt:ti(Tt,2)?(st(Tt.to,it).then(Nt=>{ti(Nt,20)&&!j.delta&&j.type===Js.pop&&a.go(-1,!1)}).catch(Fs),Promise.reject()):(j.delta&&a.go(-j.delta,!1),B(Tt,it,Xt))).then(Tt=>{Tt=Tt||xt(it,Xt,!1),Tt&&(j.delta?a.go(-j.delta,!1):j.type===Js.pop&&ti(Tt,20)&&a.go(-1,!1)),mt(it,Xt,Tt)}).catch(Fs)}))}let R=Es(),C=Es(),F;function B(K,tt,j){yt(K);const it=C.list();return it.length?it.forEach(zt=>zt(K,tt,j)):console.error(K),Promise.reject(K)}function Q(){return F&&p.value!==Qr?Promise.resolve():new Promise((K,tt)=>{R.add([K,tt])})}function yt(K){return F||(F=!K,U(),R.list().forEach(([tt,j])=>K?j(K):tt()),R.reset()),K}function Ct(K,tt,j,it){const{scrollBehavior:zt}=t;if(!Lo||!zt)return Promise.resolve();const Xt=!j&&O_(Jp(K.fullPath,0))||(it||!j)&&history.state&&history.state.scroll||null;return Ko().then(()=>zt(K,tt,Xt)).then(Tt=>Tt&&N_(Tt)).catch(Tt=>B(Tt,K,tt))}const Ut=K=>a.go(K);let Kt;const Qt=new Set,Jt={currentRoute:p,listening:!0,addRoute:k,removeRoute:A,hasRoute:L,getRoutes:P,resolve:T,options:t,push:$,replace:V,go:Ut,back:()=>Ut(-1),forward:()=>Ut(1),beforeEach:u.add,beforeResolve:f.add,afterEach:h.add,onError:C.add,isReady:Q,install(K){const tt=this;K.component("RouterLink",mS),K.component("RouterView",xS),K.config.globalProperties.$router=tt,Object.defineProperty(K.config.globalProperties,"$route",{enumerable:!0,get:()=>Z(p)}),Lo&&!Kt&&p.value===Qr&&(Kt=!0,$(a.location).catch(zt=>{}));const j={};for(const zt in Qr)j[zt]=kt(()=>p.value[zt]);K.provide(jf,tt),K.provide(Bm,cr(j)),K.provide(Zu,p);const it=K.unmount;Qt.add(K),K.unmount=function(){Qt.delete(K),Qt.size<1&&(g=Qr,ct&&ct(),ct=null,p.value=Qr,Kt=!1,F=!1),it()}}};return Jt}function _o(t){return t.reduce((n,r)=>n.then(()=>r()),Promise.resolve())}function SS(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=>Io(g,h))?o.push(h):r.push(h));const p=t.matched[f];p&&(n.matched.find(g=>Io(g,p))||a.push(p))}return[r,o,a]}function zr(t){return t.split("-")[0]}function Po(t){return t.split("-")[1]}function hl(t){return["top","bottom"].includes(zr(t))?"x":"y"}function Gf(t){return t==="y"?"height":"width"}function fg(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(zr(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=Gf(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 kS=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}=fg({...h,placement:o}),m=o,w={};for(let _=0;_<u.length;_++){const{name:k,fn:A}=u[_],{x:P,y:L,data:T,reset:E}=await A({x:p,y:g,initialPlacement:o,placement:m,strategy:a,middlewareData:w,rects:h,platform:f,elements:{reference:t,floating:n}});if(p=P!=null?P:p,g=L!=null?L:g,w={...w,[k]:T!=null?T:{}},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}=fg({...h,placement:m})),_=-1;continue}}return{x:p,y:g,placement:m,strategy:a,middlewareData:w}};function CS(t){return{top:0,right:0,bottom:0,left:0,...t}}function Wm(t){return typeof t!="number"?CS(t):{top:t,right:t,bottom:t,left:t}}function Ju(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function oc(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:w=!1,padding:_=0}=n,k=Wm(_),P=f[w?m==="floating"?"reference":"floating":m],L=await a.getClippingClientRect({element:await a.isElement(P)?P:P.contextElement||await a.getDocumentElement({element:f.floating}),boundary:p,rootBoundary:g}),T=Ju(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-T.top+k.top,bottom:T.bottom-L.bottom+k.bottom,left:L.left-T.left+k.left,right:T.right-L.right+k.right}}const TS=Math.min,Ri=Math.max;function Qu(t,n,r){return Ri(t,TS(n,r))}const LS=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=Wm(o),m={x:a,y:u},w=zr(f),_=hl(w),k=Gf(_),A=await p.getDimensions({element:r}),P=_==="y"?"top":"left",L=_==="y"?"bottom":"right",T=h.reference[k]+h.reference[_]-m[_]-h.floating[k],E=m[_]-h.reference[_],z=await p.getOffsetParent({element:r}),$=z?_==="y"?z.clientHeight||0:z.clientWidth||0:0,V=T/2-E/2,W=g[P],st=$-A[k]-g[L],nt=$/2-A[k]/2+V,ft=Qu(W,nt,st);return{data:{[_]:ft,centerOffset:nt-ft}}}}),ES={left:"right",right:"left",bottom:"top",top:"bottom"};function La(t){return t.replace(/left|right|bottom|top/g,n=>ES[n])}function Um(t,n){const r=Po(t)==="start",o=hl(t),a=Gf(o);let u=o==="x"?r?"right":"left":r?"bottom":"top";return n.reference[a]>n.floating[a]&&(u=La(u)),{main:u,cross:La(u)}}const AS={start:"end",end:"start"};function tf(t){return t.replace(/start|end/g,n=>AS[n])}const MS=["top","right","bottom","left"],NS=MS.reduce((t,n)=>t.concat(n,n+"-start",n+"-end"),[]);function PS(t,n,r){return(t?[...r.filter(a=>Po(a)===t),...r.filter(a=>Po(a)!==t)]:r.filter(a=>zr(a)===a)).filter(a=>t?Po(a)===t||(n?tf(a)!==a:!1):!0)}const OS=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:w,placement:_}=n,{alignment:k=null,allowedPlacements:A=NS,autoAlignment:P=!0,...L}=t;if((r=w.autoPlacement)!=null&&r.skip)return{};const T=PS(k,P,A),E=await oc(n,L),z=(o=(a=w.autoPlacement)==null?void 0:a.index)!=null?o:0,$=T[z],{main:V,cross:W}=Um($,m);if(_!==$)return{x:p,y:g,reset:{placement:T[0]}};const st=[E[zr($)],E[V],E[W]],nt=[...(u=(f=w.autoPlacement)==null?void 0:f.overflows)!=null?u:[],{placement:$,overflows:st}],ft=T[z+1];if(ft)return{data:{index:z+1,overflows:nt},reset:{placement:ft}};const mt=nt.slice().sort((ct,U)=>ct.overflows[0]-U.overflows[0]),xt=(h=mt.find(ct=>{let{overflows:U}=ct;return U.every(R=>R<=0)}))==null?void 0:h.placement;return{data:{skip:!0},reset:{placement:xt!=null?xt:mt[0].placement}}}}};function DS(t){const n=La(t);return[tf(t),n,tf(n)]}const $S=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:w="bestFit",flipAlignment:_=!0,...k}=t,A=zr(a),L=m||(A===h||!_?[La(h)]:DS(h)),T=[h,...L],E=await oc(n,k),z=[];let $=((o=u.flip)==null?void 0:o.overflows)||[];if(p&&z.push(E[A]),g){const{main:nt,cross:ft}=Um(a,f);z.push(E[nt],E[ft])}if($=[...$,{placement:a,overflows:z}],!z.every(nt=>nt<=0)){var V,W;const nt=((V=(W=u.flip)==null?void 0:W.index)!=null?V:0)+1,ft=T[nt];if(ft)return{data:{index:nt,overflows:$},reset:{placement:ft}};let mt="bottom";switch(w){case"bestFit":{var st;const xt=(st=$.slice().sort((ct,U)=>ct.overflows.filter(R=>R>0).reduce((R,C)=>R+C,0)-U.overflows.filter(R=>R>0).reduce((R,C)=>R+C,0))[0])==null?void 0:st.placement;xt&&(mt=xt);break}case"initialPlacement":mt=h;break}return{data:{skip:!0},reset:{placement:mt}}}return{}}}};function RS(t){let{placement:n,rects:r,value:o}=t;const a=zr(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 zS=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=RS({placement:a,rects:u,value:t});return{x:r+f.x,y:o+f.y,data:f}}}};function IS(t){return t==="x"?"y":"x"}const FS=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:T,y:E}=L;return{x:T,y:E}}},...p}=t,g={x:r,y:o},m=await oc(n,p),w=hl(zr(a)),_=IS(w);let k=g[w],A=g[_];if(u){const L=w==="y"?"top":"left",T=w==="y"?"bottom":"right",E=k+m[L],z=k-m[T];k=Qu(E,k,z)}if(f){const L=_==="y"?"top":"left",T=_==="y"?"bottom":"right",E=A+m[L],z=A-m[T];A=Qu(E,A,z)}const P=h.fn({...n,[w]:k,[_]:A});return{...P,data:{x:P.x-r,y:P.y-o}}}}},qS=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(n){var r;const{placement:o,rects:a,middlewareData:u}=n,{apply:f,...h}=t;if((r=u.size)!=null&&r.skip)return{};const p=await oc(n,h),g=zr(o),m=Po(o)==="end";let w,_;g==="top"||g==="bottom"?(w=g,_=m?"left":"right"):(_=g,w=m?"top":"bottom");const k=Ri(p.left,0),A=Ri(p.right,0),P=Ri(p.top,0),L=Ri(p.bottom,0),T={height:a.floating.height-(["left","right"].includes(o)?2*(P!==0||L!==0?P+L:Ri(p.top,p.bottom)):p[w]),width:a.floating.width-(["top","bottom"].includes(o)?2*(k!==0||A!==0?k+A:Ri(p.left,p.right)):p[_])};return f==null||f({...T,...a}),{data:{skip:!0},reset:{rects:!0}}}}};function Vf(t){return(t==null?void 0:t.toString())==="[object Window]"}function gi(t){if(t==null)return window;if(!Vf(t)){const n=t.ownerDocument;return n&&n.defaultView||window}return t}function sc(t){return gi(t).getComputedStyle(t)}function Or(t){return Vf(t)?"":t?(t.nodeName||"").toLowerCase():""}function Dr(t){return t instanceof gi(t).HTMLElement}function Ea(t){return t instanceof gi(t).Element}function HS(t){return t instanceof gi(t).Node}function jm(t){const n=gi(t).ShadowRoot;return t instanceof n||t instanceof ShadowRoot}function lc(t){const{overflow:n,overflowX:r,overflowY:o}=sc(t);return/auto|scroll|overlay|hidden/.test(n+o+r)}function BS(t){return["table","td","th"].includes(Or(t))}function Gm(t){const n=navigator.userAgent.toLowerCase().includes("firefox"),r=sc(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 hg=Math.min,Hs=Math.max,Aa=Math.round;function qo(t,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect();let o=1,a=1;return n&&Dr(t)&&(o=t.offsetWidth>0&&Aa(r.width)/t.offsetWidth||1,a=t.offsetHeight>0&&Aa(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 vi(t){return((HS(t)?t.ownerDocument:t.document)||window.document).documentElement}function ac(t){return Vf(t)?{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}:{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Vm(t){return qo(vi(t)).left+ac(t).scrollLeft}function WS(t){const n=qo(t);return Aa(n.width)!==t.offsetWidth||Aa(n.height)!==t.offsetHeight}function US(t,n,r){const o=Dr(n),a=vi(n),u=qo(t,o&&WS(n));let f={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if(o||!o&&r!=="fixed")if((Or(n)!=="body"||lc(a))&&(f=ac(n)),Dr(n)){const p=qo(n,!0);h.x=p.x+n.clientLeft,h.y=p.y+n.clientTop}else a&&(h.x=Vm(a));return{x:u.left+f.scrollLeft-h.x,y:u.top+f.scrollTop-h.y,width:u.width,height:u.height}}function cc(t){return Or(t)==="html"?t:t.assignedSlot||t.parentNode||(jm(t)?t.host:null)||vi(t)}function dg(t){return!Dr(t)||getComputedStyle(t).position==="fixed"?null:t.offsetParent}function jS(t){let n=cc(t);for(;Dr(n)&&!["html","body"].includes(Or(n));){if(Gm(n))return n;n=n.parentNode}return null}function ef(t){const n=gi(t);let r=dg(t);for(;r&&BS(r)&&getComputedStyle(r).position==="static";)r=dg(r);return r&&(Or(r)==="html"||Or(r)==="body"&&getComputedStyle(r).position==="static"&&!Gm(r))?n:r||jS(t)||n}function pg(t){return{width:t.offsetWidth,height:t.offsetHeight}}function GS(t){let{rect:n,offsetParent:r,strategy:o}=t;const a=Dr(r),u=vi(r);if(r===u)return n;let f={scrollLeft:0,scrollTop:0};const h={x:0,y:0};if((a||!a&&o!=="fixed")&&((Or(r)!=="body"||lc(u))&&(f=ac(r)),Dr(r))){const p=qo(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 VS(t){const n=gi(t),r=vi(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 KS(t){var n;const r=vi(t),o=ac(t),a=(n=t.ownerDocument)==null?void 0:n.body,u=Hs(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),f=Hs(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0);let h=-o.scrollLeft+Vm(t);const p=-o.scrollTop;return sc(a||r).direction==="rtl"&&(h+=Hs(r.clientWidth,a?a.clientWidth:0)-u),{width:u,height:f,x:h,y:p}}function Km(t){return["html","body","#document"].includes(Or(t))?t.ownerDocument.body:Dr(t)&&lc(t)?t:Km(cc(t))}function Ma(t,n){var r;n===void 0&&(n=[]);const o=Km(t),a=o===((r=t.ownerDocument)==null?void 0:r.body),u=gi(o),f=a?[u].concat(u.visualViewport||[],lc(o)?o:[]):o,h=n.concat(f);return a?h:h.concat(Ma(cc(f)))}function XS(t,n){const r=n.getRootNode==null?void 0:n.getRootNode();if(t.contains(n))return!0;if(r&&jm(r)){let o=n;do{if(o&&t===o)return!0;o=o.parentNode||o.host}while(o)}return!1}function YS(t){const n=qo(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 gg(t,n){return n==="viewport"?Ju(VS(t)):Ea(n)?YS(n):Ju(KS(vi(t)))}function ZS(t){const n=Ma(cc(t)),o=["absolute","fixed"].includes(sc(t).position)&&Dr(t)?ef(t):t;return Ea(o)?n.filter(a=>Ea(a)&&XS(a,o)&&Or(a)!=="body"):[]}function JS(t){let{element:n,boundary:r,rootBoundary:o}=t;const u=[...r==="clippingParents"?ZS(n):[].concat(r),o],f=u[0],h=u.reduce((p,g)=>{const m=gg(n,g);return p.top=Hs(m.top,p.top),p.right=hg(m.right,p.right),p.bottom=hg(m.bottom,p.bottom),p.left=Hs(m.left,p.left),p},gg(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 QS={getElementRects:t=>{let{reference:n,floating:r,strategy:o}=t;return{reference:US(n,ef(r),o),floating:{...pg(r),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:t=>GS(t),getOffsetParent:t=>{let{element:n}=t;return ef(n)},isElement:t=>Ea(t),getDocumentElement:t=>{let{element:n}=t;return vi(n)},getClippingClientRect:t=>JS(t),getDimensions:t=>{let{element:n}=t;return pg(n)},getClientRects:t=>{let{element:n}=t;return n.getClientRects()}},tk=(t,n,r)=>kS(t,n,{platform:QS,...r});var ek=Object.defineProperty,nk=Object.defineProperties,rk=Object.getOwnPropertyDescriptors,vg=Object.getOwnPropertySymbols,ik=Object.prototype.hasOwnProperty,ok=Object.prototype.propertyIsEnumerable,mg=(t,n,r)=>n in t?ek(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,Er=(t,n)=>{for(var r in n||(n={}))ik.call(n,r)&&mg(t,r,n[r]);if(vg)for(var r of vg(n))ok.call(n,r)&&mg(t,r,n[r]);return t},dl=(t,n)=>nk(t,rk(n));function Xm(t,n){for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(typeof n[r]=="object"&&t[r]?Xm(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 Ho(t,n){let r=Ui.themes[t]||{},o;do o=r[n],typeof o=="undefined"?r.$extend?r=Ui.themes[r.$extend]||{}:(r=null,o=Ui[n]):r=null;while(r);return o}function sk(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 Bo=!1;if(typeof window!="undefined"){Bo=!1;try{const t=Object.defineProperty({},"passive",{get(){Bo=!0}});window.addEventListener("test",null,t)}catch{}}let Ym=!1;typeof window!="undefined"&&typeof navigator!="undefined"&&(Ym=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Zm=["auto","top","bottom","left","right"].reduce((t,n)=>t.concat([n,`${n}-start`,`${n}-end`]),[]),yg={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},bg={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function lk(t,n){const r=t.indexOf(n);r!==-1&&t.splice(r,1)}function ku(){return new Promise(t=>requestAnimationFrame(()=>{requestAnimationFrame(t)}))}const sr=[];let So=null,nf=function(){};typeof window!="undefined"&&(nf=window.Element);function fe(t){return function(n){return Ho(n.theme,t)}}var Jm=()=>ue({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=>Zm.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,nf,Boolean],default:fe("container")},boundary:{type:[String,nf],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(Er({},this.classes),{popperClass:this.popperClass}),result:this.result}}},watch:Er({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(zS({mainAxis:this.distance,crossAxis:this.skidding}));const r=this.placement.startsWith("auto");r?n.middleware.push(OS({alignment:(t=this.placement.split("-")[1])!=null?t:""})):n.placement=this.placement,this.preventOverflow&&(this.shift&&n.middleware.push(FS({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!r&&this.flip&&n.middleware.push($S({padding:this.overflowPadding,boundary:this.boundary}))),n.middleware.push(LS({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&n.middleware.push({name:"arrowOverflow",fn:({placement:a,rects:u,middlewareData:f})=>{let h;const{centerOffset:p}=f.arrow;return a.startsWith("top")||a.startsWith("bottom")?h=Math.abs(p)>u.reference.width/2:h=Math.abs(p)>u.reference.height/2,{data:{overflow:h}}}}),this.autoMinSize&&n.middleware.push({name:"autoMinSize",fn:({rects:a,placement:u,middlewareData:f})=>{var h;if((h=f.autoMinSize)!=null&&h.skip)return{};let p,g;return u.startsWith("top")||u.startsWith("bottom")?p=a.reference.width:g=a.reference.height,this.$_innerNode.style.minWidth=p!=null?`${p}px`:null,this.$_innerNode.style.minHeight=g!=null?`${g}px`:null,{data:{skip:!0},reset:{rects:!0}}}}),this.autoMaxSize&&n.middleware.push(qS({boundary:this.boundary,padding:this.overflowPadding,apply:({width:a,height:u})=>{this.$_innerNode.style.maxWidth=a!=null?`${a}px`:null,this.$_innerNode.style.maxHeight=u!=null?`${u}px`:null}}));const o=await tk(this.$_referenceNode,this.$_popperNode,n);Object.assign(this.result,{x:o.x,y:o.y,placement:o.placement,strategy:o.strategy,arrow:Er(Er({},o.middlewareData.arrow),o.middlewareData.arrowOverflow)})},$_scheduleShow(t=null,n=!1){if(this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),So&&this.instantMove&&So.instantMove){So.$_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&&(So=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<sr.length;r++)n=sr[r],n.showGroup!==t&&(n.hide(),n.$emit("close-group"))}sr.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,lk(sr,this),So===this&&(So=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const n=Ho(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,Bo?{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 w=u[m];w&&t(a,w,p)})},r=a=>{this.isShown&&!this.$_hideInProgress||(a.usedByTooltip=!0,!this.$_preventShow&&this.show({event:a}))};n(this.$_targetNodes,yg,this.triggers,this.showTriggers,r),n([this.$_popperNode],yg,this.popperTriggers,this.popperShowTriggers,r);const o=a=>{a.usedByTooltip||this.hide({event:a})};n(this.$_targetNodes,bg,this.triggers,this.hideTriggers,o),n([this.$_popperNode],bg,this.popperTriggers,this.popperHideTriggers,o),t([...Ma(this.$_referenceNode),...Ma(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!="undefined"&&typeof window!="undefined"&&(Ym?(document.addEventListener("touchstart",wg,Bo?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",ck,Bo?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",wg,!0),window.addEventListener("click",ak,!0)),window.addEventListener("resize",uk));function wg(t){for(let n=0;n<sr.length;n++){const r=sr[n],o=r.popperNode();r.$_mouseDownContains=o.contains(t.target)}}function ak(t){Qm(t)}function ck(t){Qm(t,!0)}function Qm(t,n=!1){for(let r=0;r<sr.length;r++){const o=sr[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 uk(t){for(let n=0;n<sr.length;n++)sr[n].$_computePosition(t)}function fk(){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 ha;function rf(){rf.init||(rf.init=!0,ha=fk()!==-1)}var uc={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){rf(),Ko(()=>{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",ha&&this.$el.appendChild(t),t.data="about:blank",ha||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&&(!ha&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const hk=Fx();tm("data-v-b329ee4c");const dk={class:"resize-observer",tabindex:"-1"};em();const pk=hk((t,n,r,o,a,u)=>(ht(),de("div",dk)));uc.render=pk;uc.__scopeId="data-v-b329ee4c";uc.__file="src/components/ResizeObserver.vue";var t0={computed:{themeClass(){return sk(this.theme)}}},Kf=(t,n)=>{const r=t.__vccOpts||t;for(const[o,a]of n)r[o]=a;return r};const gk=ue({name:"VPopperContent",components:{ResizeObserver:uc},mixins:[t0],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}}}),vk=["id","aria-hidden","tabindex","data-popper-placement"],mk={ref:"inner",class:"v-popper__inner"},yk=ut("div",{class:"v-popper__arrow-outer"},null,-1),bk=ut("div",{class:"v-popper__arrow-inner"},null,-1),wk=[yk,bk];function xk(t,n,r,o,a,u){const f=Gi("ResizeObserver");return ht(),Mt("div",{id:t.popperId,ref:"popover",class:ve(["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:yn({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]=Ku(h=>t.autoHide&&t.$emit("hide"),["esc"]))},[ut("div",{class:"v-popper__wrapper",style:yn({transformOrigin:t.result.transformOrigin})},[ut("div",mk,[t.mounted?(ht(),Mt(ce,{key:0},[ut("div",null,[Pr(t.$slots,"default")]),t.handleResize?(ht(),de(f,{key:0,onNotify:n[0]||(n[0]=h=>t.$emit("resize",h))})):_e("",!0)],64)):_e("",!0)],512),ut("div",{ref:"arrow",class:"v-popper__arrow-container",style:yn({left:t.toPx(t.result.arrow.x),top:t.toPx(t.result.arrow.y)})},wk,4)],4)],46,vk)}var e0=Kf(gk,[["render",xk]]),n0={methods:{show(...t){return this.$refs.popper.show(...t)},hide(...t){return this.$refs.popper.hide(...t)},dispose(...t){return this.$refs.popper.dispose(...t)},onResize(...t){return this.$refs.popper.onResize(...t)}}};const _k=ue({name:"VPopperWrapper",components:{Popper:Jm(),PopperContent:e0},mixins:[n0,t0],inheritAttrs:!1,props:{theme:{type:String,default:null}},computed:{finalTheme(){var t;return(t=this.theme)!=null?t:this.$options.vPopperTheme},popperAttrs(){const t=Er({},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 Sk(t,n,r,o,a,u){const f=Gi("PopperContent"),h=Gi("Popper");return ht(),de(h,fi({ref:"popper"},t.popperAttrs,{theme:t.finalTheme,"target-nodes":t.getTargetNodes,"reference-node":()=>t.$refs.reference,"popper-node":()=>t.$refs.popperContent.$el}),{default:we(({popperId:p,isShown:g,shouldMountContent:m,skipTransition:w,autoHide:_,show:k,hide:A,handleResize:P,onResize:L,classes:T,result:E})=>[ut("div",{ref:"reference",class:ve(["v-popper",[t.$attrs.class,t.themeClass,{"v-popper--shown":g}]]),style:yn(t.$attrs.style)},[Pr(t.$slots,"default",{shown:g,show:k,hide:A}),Bt(f,{ref:"popperContent","popper-id":p,theme:t.finalTheme,shown:g,mounted:m,"skip-transition":w,"auto-hide":_,"handle-resize":P,classes:T,result:E,onHide:A,onResize:L},{default:we(()=>[Pr(t.$slots,"popper",{shown:g,hide:A})]),_: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 Xf=Kf(_k,[["render",Sk]]);const xg=ue(dl(Er({},Xf),{name:"VDropdown",vPopperTheme:"dropdown"})),_g=ue(dl(Er({},Xf),{name:"VMenu",vPopperTheme:"menu"})),Sg=ue(dl(Er({},Xf),{name:"VTooltip",vPopperTheme:"tooltip"})),kk=ue({name:"VTooltipDirective",components:{Popper:Jm(),PopperContent:e0},mixins:[n0],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:t=>Ho(t.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:t=>Ho(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}}}),Ck=["innerHTML"],Tk=["textContent"];function Lk(t,n,r,o,a,u){const f=Gi("PopperContent"),h=Gi("Popper");return ht(),de(h,fi({ref:"popper"},t.$attrs,{theme:t.theme,"popper-node":()=>t.$refs.popperContent.$el,onApplyShow:t.onShow,onApplyHide:t.onHide}),{default:we(({popperId:p,isShown:g,shouldMountContent:m,skipTransition:w,autoHide:_,hide:k,handleResize:A,onResize:P,classes:L,result:T})=>[Bt(f,{ref:"popperContent",class:ve({"v-popper--tooltip-loading":t.loading}),"popper-id":p,theme:t.theme,shown:g,mounted:m,"skip-transition":w,"auto-hide":_,"handle-resize":A,classes:L,result:T,onHide:k,onResize:P},{default:we(()=>[t.html?(ht(),Mt("div",{key:0,innerHTML:t.finalContent},null,8,Ck)):(ht(),Mt("div",{key:1,textContent:ae(t.finalContent)},null,8,Tk))]),_: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 Ek=Kf(kk,[["render",Lk]]);const r0="v-popper--has-tooltip";function Ak(t,n){let r=t.placement;if(!r&&n)for(const o of Zm)n[o]&&(r=o);return r||(r=Ho(t.theme||"tooltip","placement")),r}function i0(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=Ak(o,r),o.targetNodes=()=>[t],o.referenceNode=()=>t,o}let Cu,Qs,Mk=0;function Nk(){if(Cu)return;Qs=ne([]),Cu=Nm({name:"VTooltipDirectiveApp",setup(){return{directives:Qs}},render(){return this.directives.map(n=>fl(Ek,dl(Er({},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 o0(t,n,r){Nk();const o=ne(i0(t,n,r)),a=ne(!1),u={id:Mk++,options:o,shown:a};return Qs.value.push(u),t.classList&&t.classList.add(r0),t.$_popper={options:o,item:u,show(){a.value=!0},hide(){a.value=!1}}}function Yf(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(r0)}function kg(t,{value:n,oldValue:r,modifiers:o}){const a=i0(t,n,o);if(!a.content||Ho(a.theme||"tooltip","disabled"))Yf(t);else{let u;t.$_popper?(u=t.$_popper,u.options.value=a):u=o0(t,n,o),typeof n.shown!="undefined"&&n.shown!==t.$_popperOldShown&&(t.$_popperOldShown=n.shown,n.shown?u.show():u.hide())}}var s0={beforeMount:kg,updated:kg,beforeUnmount(t){Yf(t)}};function Cg(t){t.addEventListener("click",l0),t.addEventListener("touchstart",a0,Bo?{passive:!0}:!1)}function Tg(t){t.removeEventListener("click",l0),t.removeEventListener("touchstart",a0),t.removeEventListener("touchend",c0),t.removeEventListener("touchcancel",u0)}function l0(t){const n=t.currentTarget;t.closePopover=!n.$_vclosepopover_touch,t.closeAllPopover=n.$_closePopoverModifiers&&!!n.$_closePopoverModifiers.all}function a0(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",c0),n.addEventListener("touchcancel",u0)}}function c0(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 u0(t){const n=t.currentTarget;n.$_vclosepopover_touch=!1}var Pk={beforeMount(t,{value:n,modifiers:r}){t.$_closePopoverModifiers=r,(typeof n=="undefined"||n)&&Cg(t)},updated(t,{value:n,oldValue:r,modifiers:o}){t.$_closePopoverModifiers=o,n!==r&&(typeof n=="undefined"||n?Cg(t):Tg(t))},beforeUnmount(t){Tg(t)}};const Ok=s0;function Dk(t,n={}){t.$_vTooltipInstalled||(t.$_vTooltipInstalled=!0,Xm(Ui,n),t.directive("tooltip",s0),t.directive("close-popper",Pk),t.component("v-tooltip",Sg),t.component("VTooltip",Sg),t.component("v-dropdown",xg),t.component("VDropdown",xg),t.component("v-menu",_g),t.component("VMenu",_g))}const f0={version:"2.0.0-y.0",install:Dk,options:Ui};var Lg;const h0=typeof window!="undefined",$k=t=>typeof t!="undefined",Rk=t=>typeof t=="string",da=()=>{};h0&&((Lg=window==null?void 0:window.navigator)==null?void 0:Lg.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Zf(t,n){function r(...o){t(()=>n.apply(this,o),{fn:n,thisArg:this,args:o})}return r}const d0=t=>t();function p0(t,n={}){let r,o;return u=>{const f=Z(t),h=Z(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 zk(t,n=!0,r=!0){let o=0,a,u=!0;const f=()=>{a&&(clearTimeout(a),a=void 0)};return p=>{const g=Z(t),m=Date.now()-o;if(f(),g<=0)return o=Date.now(),p();m>g&&(r||!u)?(o=Date.now(),p()):n&&(a=setTimeout(()=>{o=Date.now(),u=!0,f(),p()},g)),!r&&!a&&(a=setTimeout(()=>u=!0,g)),u=!1}}function Ik(t=d0){const n=ne(!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 Jf(t){return tx()?(ex(t),!0):!1}function Eg(t,n=200,r={}){return Zf(p0(n,r),t)}function Fk(t,n=200,r=!0,o=!0){return Zf(zk(n,r,o),t)}function qk(t,n=200,r=!0,o=!0){if(n<=0)return t;const a=ne(t.value),u=Fk(()=>{a.value=t.value},n,r,o);return je(t,()=>u()),a}function Hk(t,n=!0){ul()?am(t):n?t():Ko(t)}function g0(t,n=!0){ul()?cl(t):n?t():Ko(t)}function Bk(t=!1,n={}){const{truthyValue:r=!0,falsyValue:o=!1}=n,a=He(t),u=ne(t);function f(h){return arguments.length?(u.value=h,u.value):(u.value=u.value===Z(r)?Z(o):Z(r),u.value)}return a?f:[u,f]}var Ag=Object.getOwnPropertySymbols,Wk=Object.prototype.hasOwnProperty,Uk=Object.prototype.propertyIsEnumerable,jk=(t,n)=>{var r={};for(var o in t)Wk.call(t,o)&&n.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Ag)for(var o of Ag(t))n.indexOf(o)<0&&Uk.call(t,o)&&(r[o]=t[o]);return r};function v0(t,n,r={}){const o=r,{eventFilter:a=d0}=o,u=jk(o,["eventFilter"]);return je(t,Zf(a,n),u)}var Gk=Object.defineProperty,Vk=Object.defineProperties,Kk=Object.getOwnPropertyDescriptors,Na=Object.getOwnPropertySymbols,m0=Object.prototype.hasOwnProperty,y0=Object.prototype.propertyIsEnumerable,Mg=(t,n,r)=>n in t?Gk(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,Xk=(t,n)=>{for(var r in n||(n={}))m0.call(n,r)&&Mg(t,r,n[r]);if(Na)for(var r of Na(n))y0.call(n,r)&&Mg(t,r,n[r]);return t},Yk=(t,n)=>Vk(t,Kk(n)),Zk=(t,n)=>{var r={};for(var o in t)m0.call(t,o)&&n.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Na)for(var o of Na(t))n.indexOf(o)<0&&y0.call(t,o)&&(r[o]=t[o]);return r};function Jk(t,n,r={}){const o=r,{debounce:a=0,maxWait:u=void 0}=o,f=Zk(o,["debounce","maxWait"]);return v0(t,n,Yk(Xk({},f),{eventFilter:p0(a,{maxWait:u})}))}function Qk(t,n,r){const o=je(t,(...a)=>(Ko(()=>o()),n(...a)),r)}var tC=Object.defineProperty,eC=Object.defineProperties,nC=Object.getOwnPropertyDescriptors,Pa=Object.getOwnPropertySymbols,b0=Object.prototype.hasOwnProperty,w0=Object.prototype.propertyIsEnumerable,Ng=(t,n,r)=>n in t?tC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,rC=(t,n)=>{for(var r in n||(n={}))b0.call(n,r)&&Ng(t,r,n[r]);if(Pa)for(var r of Pa(n))w0.call(n,r)&&Ng(t,r,n[r]);return t},iC=(t,n)=>eC(t,nC(n)),oC=(t,n)=>{var r={};for(var o in t)b0.call(t,o)&&n.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Pa)for(var o of Pa(t))n.indexOf(o)<0&&w0.call(t,o)&&(r[o]=t[o]);return r};function x0(t,n,r={}){const o=r,{eventFilter:a}=o,u=oC(o,["eventFilter"]),{eventFilter:f,pause:h,resume:p,isActive:g}=Ik(a);return{stop:v0(t,n,iC(rC({},u),{eventFilter:f})),pause:h,resume:p,isActive:g}}function sC(t,n,r){let o;He(r)?o={evaluating:r}:o=r||{};const{lazy:a=!1,evaluating:u=void 0,onError:f=da}=o,h=ne(!a),p=ne(n);let g=0;return nm(async m=>{if(!h.value)return;g++;const w=g;let _=!1;u&&Promise.resolve().then(()=>{u.value=!0});try{const k=await t(A=>{m(()=>{u&&(u.value=!1),_||A()})});w===g&&(p.value=k)}catch(k){f(k)}finally{u&&w===g&&(u.value=!1),_=!0}}),a?kt(()=>(h.value=!0,p.value)):p}function _0(t){var n;const r=Z(t);return(n=r==null?void 0:r.$el)!=null?n:r}const ur=h0?window:void 0;function Wo(...t){let n,r,o,a;if(Rk(t[0])?([r,o,a]=t,n=ur):[n,r,o,a]=t,!n)return da;let u=da;const f=je(()=>_0(n),p=>{u(),p&&(p.addEventListener(r,o,a),u=()=>{p.removeEventListener(r,o,a),u=da})},{immediate:!0,flush:"post"}),h=()=>{f(),u()};return Jf(h),h}const lC=t=>typeof t=="function"?t:typeof t=="string"?n=>n.key===t:Array.isArray(t)?n=>t.includes(n.key):t?()=>!0:()=>!1;function aC(t,n,r={}){const{target:o=ur,eventName:a="keydown",passive:u=!1}=r,f=lC(t);return Wo(o,a,p=>{f(p)&&n(p)},u)}function cC(t,n={}){const{window:r=ur}=n,o=Boolean(r&&"matchMedia"in r&&typeof r.matchMedia=="function");let a;const u=ne(!1),f=()=>{!o||(a||(a=r.matchMedia(t)),u.value=a.matches)};return Hk(()=>{f(),a&&("addEventListener"in a?a.addEventListener("change",f):a.addListener(f),Jf(()=>{"removeEventListener"in a?a.removeEventListener("change",f):a.removeListener(f)}))}),u}const of=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},sf="__vueuse_ssr_handlers__";of[sf]=of[sf]||{};const uC=of[sf];function S0(t,n){return uC[t]||n}function fC(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"}const hC={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 dC(t,n,r,o={}){var a;const{flush:u="pre",deep:f=!0,listenToStorageChanges:h=!0,writeDefaults:p=!0,shallow:g,window:m=ur,eventFilter:w,onError:_=W=>{console.error(W)}}=o,k=(g?ll:ne)(n);if(!r)try{r=S0("getDefaultStorage",()=>{var W;return(W=ur)==null?void 0:W.localStorage})()}catch(W){_(W)}if(!r)return k;const A=Z(n),P=fC(A),L=(a=o.serializer)!=null?a:hC[P],{pause:T,resume:E}=x0(k,()=>z(k.value),{flush:u,deep:f,eventFilter:w});return m&&h&&Wo(m,"storage",V),V(),k;function z(W){try{W==null?r.removeItem(t):r.setItem(t,L.write(W))}catch(st){_(st)}}function $(W){if(!(W&&W.key!==t)){T();try{const st=W?W.newValue:r.getItem(t);return st==null?(p&&A!==null&&r.setItem(t,L.write(A)),A):typeof st!="string"?st:L.read(st)}catch(st){_(st)}finally{E()}}}function V(W){W&&W.key!==t||(k.value=$(W))}}function k0(t){return cC("(prefers-color-scheme: dark)",t)}var pC=Object.defineProperty,Pg=Object.getOwnPropertySymbols,gC=Object.prototype.hasOwnProperty,vC=Object.prototype.propertyIsEnumerable,Og=(t,n,r)=>n in t?pC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,mC=(t,n)=>{for(var r in n||(n={}))gC.call(n,r)&&Og(t,r,n[r]);if(Pg)for(var r of Pg(n))vC.call(n,r)&&Og(t,r,n[r]);return t};function yC(t={}){const{selector:n="html",attribute:r="class",window:o=ur,storage:a,storageKey:u="vueuse-color-scheme",listenToStorageChanges:f=!0,storageRef:h,emitAuto:p}=t,g=mC({auto:"",light:"light",dark:"dark"},t.modes||{}),m=k0({window:o}),w=kt(()=>m.value?"dark":"light"),_=h||(u==null?ne("auto"):dC(u,"auto",a,{window:o,listenToStorageChanges:f})),k=kt({get(){return _.value==="auto"&&!p?w.value:_.value},set(T){_.value=T}}),A=S0("updateHTMLAttrs",(T,E,z)=>{const $=o==null?void 0:o.document.querySelector(T);if(!!$)if(E==="class"){const V=z.split(/\s/g);Object.values(g).flatMap(W=>(W||"").split(/\s/g)).filter(Boolean).forEach(W=>{V.includes(W)?$.classList.add(W):$.classList.remove(W)})}else $.setAttribute(E,z)});function P(T){var E;const z=T==="auto"?w.value:T;A(n,r,(E=g[z])!=null?E:z)}function L(T){t.onChanged?t.onChanged(T,P):P(T)}return je(k,L,{flush:"post",immediate:!0}),g0(()=>L(k.value)),k}var bC=Object.defineProperty,wC=Object.defineProperties,xC=Object.getOwnPropertyDescriptors,Dg=Object.getOwnPropertySymbols,_C=Object.prototype.hasOwnProperty,SC=Object.prototype.propertyIsEnumerable,$g=(t,n,r)=>n in t?bC(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,kC=(t,n)=>{for(var r in n||(n={}))_C.call(n,r)&&$g(t,r,n[r]);if(Dg)for(var r of Dg(n))SC.call(n,r)&&$g(t,r,n[r]);return t},CC=(t,n)=>wC(t,xC(n));function TC(t={}){const{valueDark:n="dark",valueLight:r="",window:o=ur}=t,a=yC(CC(kC({},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=k0({window:o});return kt({get(){return a.value==="dark"},set(h){h===u.value?a.value="auto":a.value=h?"dark":"light"}})}var Rg=Object.getOwnPropertySymbols,LC=Object.prototype.hasOwnProperty,EC=Object.prototype.propertyIsEnumerable,AC=(t,n)=>{var r={};for(var o in t)LC.call(t,o)&&n.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&Rg)for(var o of Rg(t))n.indexOf(o)<0&&EC.call(t,o)&&(r[o]=t[o]);return r};function MC(t,n,r={}){const o=r,{window:a=ur}=o,u=AC(o,["window"]);let f;const h=a&&"ResizeObserver"in a,p=()=>{f&&(f.disconnect(),f=void 0)},g=je(()=>_0(t),w=>{p(),h&&a&&w&&(f=new ResizeObserver(n),f.observe(w,u))},{immediate:!0,flush:"post"}),m=()=>{p(),g()};return Jf(m),{isSupported:h,stop:m}}var zg;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(zg||(zg={}));function NC(t="history",n={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:a=!1,window:u=ur}=n;if(!u)return cr(r);const f=cr({});function h(){if(t==="history")return u.location.search||"";if(t==="hash"){const L=u.location.hash||"",T=L.indexOf("?");return T>0?L.slice(T):""}else return(u.location.hash||"").replace(/^#/,"")}function p(L){const T=L.toString();if(t==="history")return`${T?`?${T}`:""}${location.hash||""}`;if(t==="hash-params")return`${location.search||""}${T?`#${T}`:""}`;const E=u.location.hash||"#",z=E.indexOf("?");return z>0?`${E.slice(0,z)}${T?`?${T}`:""}`:`${E}${T?`?${T}`:""}`}function g(){return new URLSearchParams(h())}function m(L){const T=new Set(Object.keys(f));for(const E of L.keys()){const z=L.getAll(E);f[E]=z.length>1?z:L.get(E)||"",T.delete(E)}Array.from(T).forEach(E=>delete f[E])}const{pause:w,resume:_}=x0(f,()=>{const L=new URLSearchParams("");Object.keys(f).forEach(T=>{const E=f[T];Array.isArray(E)?E.forEach(z=>L.append(T,z)):o&&E==null||a&&!E?L.delete(T):L.set(T,E)}),k(L)},{deep:!0});function k(L,T){w(),T&&m(L),u.history.replaceState(u.history.state,u.document.title,u.location.pathname+p(L)),_()}function A(){k(g(),!0)}Wo(u,"popstate",A,!1),t!=="history"&&Wo(u,"hashchange",A,!1);const P=g();return P.keys().next().value?m(P):Object.assign(f,r),f}function PC(t,n,r,o={}){var a,u,f;const{passive:h=!1,eventName:p,deep:g=!1,defaultValue:m}=o,w=ul(),_=r||(w==null?void 0:w.emit)||((a=w==null?void 0:w.$emit)==null?void 0:a.bind(w))||((f=(u=w==null?void 0:w.proxy)==null?void 0:u.$emit)==null?void 0:f.bind(w==null?void 0:w.proxy));let k=p;n||(n="modelValue"),k=p||k||`update:${n.toString()}`;const A=()=>$k(t[n])?t[n]:m;if(h){const P=ne(A());return je(()=>t[n],L=>P.value=L),je(P,L=>{(L!==t[n]||g)&&_(k,L)},{deep:g}),P}else return kt({get(){return A()},set(P){_(k,P)}})}function OC(t={}){const{window:n=ur,initialWidth:r=1/0,initialHeight:o=1/0,listenOrientation:a=!0}=t,u=ne(r),f=ne(o),h=()=>{n&&(u.value=n.innerWidth,f.value=n.innerHeight)};return h(),g0(h),Wo("resize",h,{passive:!0}),a&&Wo("orientationchange",h,{passive:!0}),{width:u,height:f}}const DC=6e4;function $C(t,n){const{post:r,on:o,eventNames:a=[],serialize:u=m=>m,deserialize:f=m=>m,timeout:h=DC}=n,p=new Map,g=new Proxy({},{get(m,w){const _=(...A)=>{r(u({m:w,a:A,t:"q"}))};if(a.includes(w))return _.asEvent=_,_;const k=(...A)=>new Promise((P,L)=>{const T=zC();p.set(T,{resolve:P,reject:L}),r(u({m:w,a:A,i:T,t:"q"})),h>=0&&setTimeout(()=>{L(new Error(`[birpc] timeout on calling "${w}"`)),p.delete(T)},h)});return k.asEvent=_,k}});return o(async(m,...w)=>{const _=f(m);if(_.t==="q"){const{m:k,a:A}=_;let P,L;try{P=await t[k].apply(g,A)}catch(T){L=T}_.i&&r(u({t:"s",i:_.i,r:P,e:L}),...w)}else{const{i:k,r:A,e:P}=_,L=p.get(k);P?L==null||L.reject(P):L==null||L.resolve(A),p.delete(k)}}),g}const RC="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function zC(t=21){let n="",r=t;for(;r--;)n+=RC[Math.random()*64|0];return n}/*! (c) 2020 Andrea Giammarchi */const{parse:IC,stringify:FC}=JSON,{keys:qC}=Object,tl=String,C0="string",Ig={},Oa="object",T0=(t,n)=>n,HC=t=>t instanceof tl?tl(t):t,BC=(t,n)=>typeof n===C0?new tl(n):n,L0=(t,n,r,o)=>{const a=[];for(let u=qC(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===Oa&&!n.has(m)?(n.add(m),r[p]=Ig,a.push({k:p,a:[t,n,m,o]})):r[p]=o.call(r,p,m)}else r[p]!==Ig&&(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,L0.apply(null,p))}return r},Fg=(t,n,r)=>{const o=tl(n.push(r)-1);return t.set(r,o),o},WC=(t,n)=>{const r=IC(t,BC).map(HC),o=r[0],a=n||T0,u=typeof o===Oa&&o?L0(r,new Set,o,a):o;return a.call({"":u},"",u)},UC=(t,n,r)=>{const o=n&&typeof n===Oa?(m,w)=>m===""||-1<n.indexOf(m)?w:void 0:n||T0,a=new Map,u=[],f=[];let h=+Fg(a,u,o.call({"":t},"",t)),p=!h;for(;h<u.length;)p=!0,f[h]=FC(u[h++],g,r);return"["+f.join(",")+"]";function g(m,w){if(p)return p=!p,w;const _=o.call(this,m,w);switch(typeof _){case Oa:if(_===null)return _;case C0:return a.get(_)||Fg(a,u,_)}return _}};class jC{constructor(){this.filesMap=new Map,this.pathsSet=new Set,this.idMap=new Map,this.taskFileMap=new WeakMap,this.errorsSet=new Set}catchError(n,r){n.type=r,this.errorsSet.add(n)}clearErrors(){this.errorsSet.clear()}getUnhandledErrors(){return Array.from(this.errorsSet.values())}getPaths(){return 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=="undefined"?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 E0(t){return t==null&&(t=[]),Array.isArray(t)?t:[t]}function A0(t){return E0(t).flatMap(n=>n.type==="test"?[n]:n.tasks.flatMap(r=>r.type==="test"?[r]:A0(r)))}function Qf(t=[]){return E0(t).flatMap(n=>n.type==="test"?[n]:[n,...Qf(n.tasks)])}function fc(t){return A0(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 GC(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 VC(t,n={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:a=2e3,reconnectTries:u=10,reactive:f=T=>T,WebSocketConstructor:h=globalThis.WebSocket}=n;let p=u;const g=f({ws:new h(t),state:new jC,waitForConnection:L,reconnect:A});g.state.filesMap=f(g.state.filesMap),g.state.idMap=f(g.state.idMap);let m;const w={onPathsCollected(T){var E;g.state.collectPaths(T),(E=r.onPathsCollected)==null||E.call(r,T)},onCollected(T){var E;g.state.collectFiles(T),(E=r.onCollected)==null||E.call(r,T)},onTaskUpdate(T){var E;g.state.updateTasks(T),(E=r.onTaskUpdate)==null||E.call(r,T)},onUserConsoleLog(T){g.state.updateUserLog(T)},onFinished(T){var E;(E=r.onFinished)==null||E.call(r,T)}},_={post:T=>g.ws.send(T),on:T=>m=T,serialize:UC,deserialize:WC};g.rpc=$C(w,_);let k;function A(T=!1){T&&(p=u),g.ws=new h(t),P()}function P(){k=new Promise(T=>{g.ws.addEventListener("open",()=>{p=u,T()})}),g.ws.addEventListener("message",T=>{m(T.data)}),g.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(A,a)})}P();function L(){return k}return g}const M0=NC("hash-params",{initialValue:{file:"",view:null}}),Lr=Df(M0,"file"),rr=Df(M0,"view"),KC=location.port,XC=[location.hostname,KC].filter(Boolean).join(":"),YC=`${location.protocol==="https:"?"wss:":"ws:"}//${XC}/__vitest_api__`,Da=ne("idle"),Ue=VC(YC,{reactive:cr,handlers:{onTaskUpdate(){Da.value="running"},onFinished(){Da.value="idle"}}}),lf=ll({}),qi=ne("CONNECTING"),wn=kt(()=>Ue.state.getFiles()),Le=kt(()=>wn.value.find(t=>t.id===Lr.value)),N0=kt(()=>Qf(Le.value).map(t=>(t==null?void 0:t.logs)||[]).flat()||[]),$a=t=>wn.value.find(n=>n.id===t),ZC=kt(()=>qi.value==="OPEN"),Tu=kt(()=>qi.value==="CONNECTING");kt(()=>qi.value==="CLOSED");function qg(t=Ue.state.getFiles()){return P0(t)}function P0(t){return t.forEach(n=>{delete n.result,Qf(n).forEach(r=>delete r.result)}),Ue.rpc.rerun(t.map(n=>n.filepath))}function JC(){if(Le.value)return P0([Le.value])}je(()=>Ue.ws,t=>{qi.value="CONNECTING",t.addEventListener("open",()=>{qi.value="OPEN",Ue.state.filesMap.clear(),Ue.rpc.getFiles().then(n=>Ue.state.collectFiles(n)),Ue.rpc.getConfig().then(n=>lf.value=n)}),t.addEventListener("close",()=>{setTimeout(()=>{qi.value==="CONNECTING"&&(qi.value="CLOSED")},1e3)})},{immediate:!0});const QC={"text-2xl":""},tT=ut("div",{"text-lg":"",op50:""}," Check your terminal or start a new server with `vitest --ui` ",-1),eT=ue({__name:"ConnectionOverlay",setup(t){return(n,r)=>Z(ZC)?_e("",!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(Ue).reconnect&&Z(Ue).reconnect(...o))},[ut("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:ve(Z(Tu)?"animate-pulse":"")},[ut("div",{text:"5xl",class:ve(Z(Tu)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),ut("div",QC,ae(Z(Tu)?"Connecting...":"Disconnected"),1),tT],2)]))}});var En=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},O0={},Mr={};const nT="\xC1",rT="\xE1",iT="\u0102",oT="\u0103",sT="\u223E",lT="\u223F",aT="\u223E\u0333",cT="\xC2",uT="\xE2",fT="\xB4",hT="\u0410",dT="\u0430",pT="\xC6",gT="\xE6",vT="\u2061",mT="\u{1D504}",yT="\u{1D51E}",bT="\xC0",wT="\xE0",xT="\u2135",_T="\u2135",ST="\u0391",kT="\u03B1",CT="\u0100",TT="\u0101",LT="\u2A3F",ET="&",AT="&",MT="\u2A55",NT="\u2A53",PT="\u2227",OT="\u2A5C",DT="\u2A58",$T="\u2A5A",RT="\u2220",zT="\u29A4",IT="\u2220",FT="\u29A8",qT="\u29A9",HT="\u29AA",BT="\u29AB",WT="\u29AC",UT="\u29AD",jT="\u29AE",GT="\u29AF",VT="\u2221",KT="\u221F",XT="\u22BE",YT="\u299D",ZT="\u2222",JT="\xC5",QT="\u237C",tL="\u0104",eL="\u0105",nL="\u{1D538}",rL="\u{1D552}",iL="\u2A6F",oL="\u2248",sL="\u2A70",lL="\u224A",aL="\u224B",cL="'",uL="\u2061",fL="\u2248",hL="\u224A",dL="\xC5",pL="\xE5",gL="\u{1D49C}",vL="\u{1D4B6}",mL="\u2254",yL="*",bL="\u2248",wL="\u224D",xL="\xC3",_L="\xE3",SL="\xC4",kL="\xE4",CL="\u2233",TL="\u2A11",LL="\u224C",EL="\u03F6",AL="\u2035",ML="\u223D",NL="\u22CD",PL="\u2216",OL="\u2AE7",DL="\u22BD",$L="\u2305",RL="\u2306",zL="\u2305",IL="\u23B5",FL="\u23B6",qL="\u224C",HL="\u0411",BL="\u0431",WL="\u201E",UL="\u2235",jL="\u2235",GL="\u2235",VL="\u29B0",KL="\u03F6",XL="\u212C",YL="\u212C",ZL="\u0392",JL="\u03B2",QL="\u2136",tE="\u226C",eE="\u{1D505}",nE="\u{1D51F}",rE="\u22C2",iE="\u25EF",oE="\u22C3",sE="\u2A00",lE="\u2A01",aE="\u2A02",cE="\u2A06",uE="\u2605",fE="\u25BD",hE="\u25B3",dE="\u2A04",pE="\u22C1",gE="\u22C0",vE="\u290D",mE="\u29EB",yE="\u25AA",bE="\u25B4",wE="\u25BE",xE="\u25C2",_E="\u25B8",SE="\u2423",kE="\u2592",CE="\u2591",TE="\u2593",LE="\u2588",EE="=\u20E5",AE="\u2261\u20E5",ME="\u2AED",NE="\u2310",PE="\u{1D539}",OE="\u{1D553}",DE="\u22A5",$E="\u22A5",RE="\u22C8",zE="\u29C9",IE="\u2510",FE="\u2555",qE="\u2556",HE="\u2557",BE="\u250C",WE="\u2552",UE="\u2553",jE="\u2554",GE="\u2500",VE="\u2550",KE="\u252C",XE="\u2564",YE="\u2565",ZE="\u2566",JE="\u2534",QE="\u2567",tA="\u2568",eA="\u2569",nA="\u229F",rA="\u229E",iA="\u22A0",oA="\u2518",sA="\u255B",lA="\u255C",aA="\u255D",cA="\u2514",uA="\u2558",fA="\u2559",hA="\u255A",dA="\u2502",pA="\u2551",gA="\u253C",vA="\u256A",mA="\u256B",yA="\u256C",bA="\u2524",wA="\u2561",xA="\u2562",_A="\u2563",SA="\u251C",kA="\u255E",CA="\u255F",TA="\u2560",LA="\u2035",EA="\u02D8",AA="\u02D8",MA="\xA6",NA="\u{1D4B7}",PA="\u212C",OA="\u204F",DA="\u223D",$A="\u22CD",RA="\u29C5",zA="\\",IA="\u27C8",FA="\u2022",qA="\u2022",HA="\u224E",BA="\u2AAE",WA="\u224F",UA="\u224E",jA="\u224F",GA="\u0106",VA="\u0107",KA="\u2A44",XA="\u2A49",YA="\u2A4B",ZA="\u2229",JA="\u22D2",QA="\u2A47",tM="\u2A40",eM="\u2145",nM="\u2229\uFE00",rM="\u2041",iM="\u02C7",oM="\u212D",sM="\u2A4D",lM="\u010C",aM="\u010D",cM="\xC7",uM="\xE7",fM="\u0108",hM="\u0109",dM="\u2230",pM="\u2A4C",gM="\u2A50",vM="\u010A",mM="\u010B",yM="\xB8",bM="\xB8",wM="\u29B2",xM="\xA2",_M="\xB7",SM="\xB7",kM="\u{1D520}",CM="\u212D",TM="\u0427",LM="\u0447",EM="\u2713",AM="\u2713",MM="\u03A7",NM="\u03C7",PM="\u02C6",OM="\u2257",DM="\u21BA",$M="\u21BB",RM="\u229B",zM="\u229A",IM="\u229D",FM="\u2299",qM="\xAE",HM="\u24C8",BM="\u2296",WM="\u2295",UM="\u2297",jM="\u25CB",GM="\u29C3",VM="\u2257",KM="\u2A10",XM="\u2AEF",YM="\u29C2",ZM="\u2232",JM="\u201D",QM="\u2019",tN="\u2663",eN="\u2663",nN=":",rN="\u2237",iN="\u2A74",oN="\u2254",sN="\u2254",lN=",",aN="@",cN="\u2201",uN="\u2218",fN="\u2201",hN="\u2102",dN="\u2245",pN="\u2A6D",gN="\u2261",vN="\u222E",mN="\u222F",yN="\u222E",bN="\u{1D554}",wN="\u2102",xN="\u2210",_N="\u2210",SN="\xA9",kN="\xA9",CN="\u2117",TN="\u2233",LN="\u21B5",EN="\u2717",AN="\u2A2F",MN="\u{1D49E}",NN="\u{1D4B8}",PN="\u2ACF",ON="\u2AD1",DN="\u2AD0",$N="\u2AD2",RN="\u22EF",zN="\u2938",IN="\u2935",FN="\u22DE",qN="\u22DF",HN="\u21B6",BN="\u293D",WN="\u2A48",UN="\u2A46",jN="\u224D",GN="\u222A",VN="\u22D3",KN="\u2A4A",XN="\u228D",YN="\u2A45",ZN="\u222A\uFE00",JN="\u21B7",QN="\u293C",tP="\u22DE",eP="\u22DF",nP="\u22CE",rP="\u22CF",iP="\xA4",oP="\u21B6",sP="\u21B7",lP="\u22CE",aP="\u22CF",cP="\u2232",uP="\u2231",fP="\u232D",hP="\u2020",dP="\u2021",pP="\u2138",gP="\u2193",vP="\u21A1",mP="\u21D3",yP="\u2010",bP="\u2AE4",wP="\u22A3",xP="\u290F",_P="\u02DD",SP="\u010E",kP="\u010F",CP="\u0414",TP="\u0434",LP="\u2021",EP="\u21CA",AP="\u2145",MP="\u2146",NP="\u2911",PP="\u2A77",OP="\xB0",DP="\u2207",$P="\u0394",RP="\u03B4",zP="\u29B1",IP="\u297F",FP="\u{1D507}",qP="\u{1D521}",HP="\u2965",BP="\u21C3",WP="\u21C2",UP="\xB4",jP="\u02D9",GP="\u02DD",VP="`",KP="\u02DC",XP="\u22C4",YP="\u22C4",ZP="\u22C4",JP="\u2666",QP="\u2666",tO="\xA8",eO="\u2146",nO="\u03DD",rO="\u22F2",iO="\xF7",oO="\xF7",sO="\u22C7",lO="\u22C7",aO="\u0402",cO="\u0452",uO="\u231E",fO="\u230D",hO="$",dO="\u{1D53B}",pO="\u{1D555}",gO="\xA8",vO="\u02D9",mO="\u20DC",yO="\u2250",bO="\u2251",wO="\u2250",xO="\u2238",_O="\u2214",SO="\u22A1",kO="\u2306",CO="\u222F",TO="\xA8",LO="\u21D3",EO="\u21D0",AO="\u21D4",MO="\u2AE4",NO="\u27F8",PO="\u27FA",OO="\u27F9",DO="\u21D2",$O="\u22A8",RO="\u21D1",zO="\u21D5",IO="\u2225",FO="\u2913",qO="\u2193",HO="\u2193",BO="\u21D3",WO="\u21F5",UO="\u0311",jO="\u21CA",GO="\u21C3",VO="\u21C2",KO="\u2950",XO="\u295E",YO="\u2956",ZO="\u21BD",JO="\u295F",QO="\u2957",tD="\u21C1",eD="\u21A7",nD="\u22A4",rD="\u2910",iD="\u231F",oD="\u230C",sD="\u{1D49F}",lD="\u{1D4B9}",aD="\u0405",cD="\u0455",uD="\u29F6",fD="\u0110",hD="\u0111",dD="\u22F1",pD="\u25BF",gD="\u25BE",vD="\u21F5",mD="\u296F",yD="\u29A6",bD="\u040F",wD="\u045F",xD="\u27FF",_D="\xC9",SD="\xE9",kD="\u2A6E",CD="\u011A",TD="\u011B",LD="\xCA",ED="\xEA",AD="\u2256",MD="\u2255",ND="\u042D",PD="\u044D",OD="\u2A77",DD="\u0116",$D="\u0117",RD="\u2251",zD="\u2147",ID="\u2252",FD="\u{1D508}",qD="\u{1D522}",HD="\u2A9A",BD="\xC8",WD="\xE8",UD="\u2A96",jD="\u2A98",GD="\u2A99",VD="\u2208",KD="\u23E7",XD="\u2113",YD="\u2A95",ZD="\u2A97",JD="\u0112",QD="\u0113",t$="\u2205",e$="\u2205",n$="\u25FB",r$="\u2205",i$="\u25AB",o$="\u2004",s$="\u2005",l$="\u2003",a$="\u014A",c$="\u014B",u$="\u2002",f$="\u0118",h$="\u0119",d$="\u{1D53C}",p$="\u{1D556}",g$="\u22D5",v$="\u29E3",m$="\u2A71",y$="\u03B5",b$="\u0395",w$="\u03B5",x$="\u03F5",_$="\u2256",S$="\u2255",k$="\u2242",C$="\u2A96",T$="\u2A95",L$="\u2A75",E$="=",A$="\u2242",M$="\u225F",N$="\u21CC",P$="\u2261",O$="\u2A78",D$="\u29E5",$$="\u2971",R$="\u2253",z$="\u212F",I$="\u2130",F$="\u2250",q$="\u2A73",H$="\u2242",B$="\u0397",W$="\u03B7",U$="\xD0",j$="\xF0",G$="\xCB",V$="\xEB",K$="\u20AC",X$="!",Y$="\u2203",Z$="\u2203",J$="\u2130",Q$="\u2147",tR="\u2147",eR="\u2252",nR="\u0424",rR="\u0444",iR="\u2640",oR="\uFB03",sR="\uFB00",lR="\uFB04",aR="\u{1D509}",cR="\u{1D523}",uR="\uFB01",fR="\u25FC",hR="\u25AA",dR="fj",pR="\u266D",gR="\uFB02",vR="\u25B1",mR="\u0192",yR="\u{1D53D}",bR="\u{1D557}",wR="\u2200",xR="\u2200",_R="\u22D4",SR="\u2AD9",kR="\u2131",CR="\u2A0D",TR="\xBD",LR="\u2153",ER="\xBC",AR="\u2155",MR="\u2159",NR="\u215B",PR="\u2154",OR="\u2156",DR="\xBE",$R="\u2157",RR="\u215C",zR="\u2158",IR="\u215A",FR="\u215D",qR="\u215E",HR="\u2044",BR="\u2322",WR="\u{1D4BB}",UR="\u2131",jR="\u01F5",GR="\u0393",VR="\u03B3",KR="\u03DC",XR="\u03DD",YR="\u2A86",ZR="\u011E",JR="\u011F",QR="\u0122",tz="\u011C",ez="\u011D",nz="\u0413",rz="\u0433",iz="\u0120",oz="\u0121",sz="\u2265",lz="\u2267",az="\u2A8C",cz="\u22DB",uz="\u2265",fz="\u2267",hz="\u2A7E",dz="\u2AA9",pz="\u2A7E",gz="\u2A80",vz="\u2A82",mz="\u2A84",yz="\u22DB\uFE00",bz="\u2A94",wz="\u{1D50A}",xz="\u{1D524}",_z="\u226B",Sz="\u22D9",kz="\u22D9",Cz="\u2137",Tz="\u0403",Lz="\u0453",Ez="\u2AA5",Az="\u2277",Mz="\u2A92",Nz="\u2AA4",Pz="\u2A8A",Oz="\u2A8A",Dz="\u2A88",$z="\u2269",Rz="\u2A88",zz="\u2269",Iz="\u22E7",Fz="\u{1D53E}",qz="\u{1D558}",Hz="`",Bz="\u2265",Wz="\u22DB",Uz="\u2267",jz="\u2AA2",Gz="\u2277",Vz="\u2A7E",Kz="\u2273",Xz="\u{1D4A2}",Yz="\u210A",Zz="\u2273",Jz="\u2A8E",Qz="\u2A90",tI="\u2AA7",eI="\u2A7A",nI=">",rI=">",iI="\u226B",oI="\u22D7",sI="\u2995",lI="\u2A7C",aI="\u2A86",cI="\u2978",uI="\u22D7",fI="\u22DB",hI="\u2A8C",dI="\u2277",pI="\u2273",gI="\u2269\uFE00",vI="\u2269\uFE00",mI="\u02C7",yI="\u200A",bI="\xBD",wI="\u210B",xI="\u042A",_I="\u044A",SI="\u2948",kI="\u2194",CI="\u21D4",TI="\u21AD",LI="^",EI="\u210F",AI="\u0124",MI="\u0125",NI="\u2665",PI="\u2665",OI="\u2026",DI="\u22B9",$I="\u{1D525}",RI="\u210C",zI="\u210B",II="\u2925",FI="\u2926",qI="\u21FF",HI="\u223B",BI="\u21A9",WI="\u21AA",UI="\u{1D559}",jI="\u210D",GI="\u2015",VI="\u2500",KI="\u{1D4BD}",XI="\u210B",YI="\u210F",ZI="\u0126",JI="\u0127",QI="\u224E",tF="\u224F",eF="\u2043",nF="\u2010",rF="\xCD",iF="\xED",oF="\u2063",sF="\xCE",lF="\xEE",aF="\u0418",cF="\u0438",uF="\u0130",fF="\u0415",hF="\u0435",dF="\xA1",pF="\u21D4",gF="\u{1D526}",vF="\u2111",mF="\xCC",yF="\xEC",bF="\u2148",wF="\u2A0C",xF="\u222D",_F="\u29DC",SF="\u2129",kF="\u0132",CF="\u0133",TF="\u012A",LF="\u012B",EF="\u2111",AF="\u2148",MF="\u2110",NF="\u2111",PF="\u0131",OF="\u2111",DF="\u22B7",$F="\u01B5",RF="\u21D2",zF="\u2105",IF="\u221E",FF="\u29DD",qF="\u0131",HF="\u22BA",BF="\u222B",WF="\u222C",UF="\u2124",jF="\u222B",GF="\u22BA",VF="\u22C2",KF="\u2A17",XF="\u2A3C",YF="\u2063",ZF="\u2062",JF="\u0401",QF="\u0451",tq="\u012E",eq="\u012F",nq="\u{1D540}",rq="\u{1D55A}",iq="\u0399",oq="\u03B9",sq="\u2A3C",lq="\xBF",aq="\u{1D4BE}",cq="\u2110",uq="\u2208",fq="\u22F5",hq="\u22F9",dq="\u22F4",pq="\u22F3",gq="\u2208",vq="\u2062",mq="\u0128",yq="\u0129",bq="\u0406",wq="\u0456",xq="\xCF",_q="\xEF",Sq="\u0134",kq="\u0135",Cq="\u0419",Tq="\u0439",Lq="\u{1D50D}",Eq="\u{1D527}",Aq="\u0237",Mq="\u{1D541}",Nq="\u{1D55B}",Pq="\u{1D4A5}",Oq="\u{1D4BF}",Dq="\u0408",$q="\u0458",Rq="\u0404",zq="\u0454",Iq="\u039A",Fq="\u03BA",qq="\u03F0",Hq="\u0136",Bq="\u0137",Wq="\u041A",Uq="\u043A",jq="\u{1D50E}",Gq="\u{1D528}",Vq="\u0138",Kq="\u0425",Xq="\u0445",Yq="\u040C",Zq="\u045C",Jq="\u{1D542}",Qq="\u{1D55C}",t2="\u{1D4A6}",e2="\u{1D4C0}",n2="\u21DA",r2="\u0139",i2="\u013A",o2="\u29B4",s2="\u2112",l2="\u039B",a2="\u03BB",c2="\u27E8",u2="\u27EA",f2="\u2991",h2="\u27E8",d2="\u2A85",p2="\u2112",g2="\xAB",v2="\u21E4",m2="\u291F",y2="\u2190",b2="\u219E",w2="\u21D0",x2="\u291D",_2="\u21A9",S2="\u21AB",k2="\u2939",C2="\u2973",T2="\u21A2",L2="\u2919",E2="\u291B",A2="\u2AAB",M2="\u2AAD",N2="\u2AAD\uFE00",P2="\u290C",O2="\u290E",D2="\u2772",$2="{",R2="[",z2="\u298B",I2="\u298F",F2="\u298D",q2="\u013D",H2="\u013E",B2="\u013B",W2="\u013C",U2="\u2308",j2="{",G2="\u041B",V2="\u043B",K2="\u2936",X2="\u201C",Y2="\u201E",Z2="\u2967",J2="\u294B",Q2="\u21B2",tH="\u2264",eH="\u2266",nH="\u27E8",rH="\u21E4",iH="\u2190",oH="\u2190",sH="\u21D0",lH="\u21C6",aH="\u21A2",cH="\u2308",uH="\u27E6",fH="\u2961",hH="\u2959",dH="\u21C3",pH="\u230A",gH="\u21BD",vH="\u21BC",mH="\u21C7",yH="\u2194",bH="\u2194",wH="\u21D4",xH="\u21C6",_H="\u21CB",SH="\u21AD",kH="\u294E",CH="\u21A4",TH="\u22A3",LH="\u295A",EH="\u22CB",AH="\u29CF",MH="\u22B2",NH="\u22B4",PH="\u2951",OH="\u2960",DH="\u2958",$H="\u21BF",RH="\u2952",zH="\u21BC",IH="\u2A8B",FH="\u22DA",qH="\u2264",HH="\u2266",BH="\u2A7D",WH="\u2AA8",UH="\u2A7D",jH="\u2A7F",GH="\u2A81",VH="\u2A83",KH="\u22DA\uFE00",XH="\u2A93",YH="\u2A85",ZH="\u22D6",JH="\u22DA",QH="\u2A8B",tB="\u22DA",eB="\u2266",nB="\u2276",rB="\u2276",iB="\u2AA1",oB="\u2272",sB="\u2A7D",lB="\u2272",aB="\u297C",cB="\u230A",uB="\u{1D50F}",fB="\u{1D529}",hB="\u2276",dB="\u2A91",pB="\u2962",gB="\u21BD",vB="\u21BC",mB="\u296A",yB="\u2584",bB="\u0409",wB="\u0459",xB="\u21C7",_B="\u226A",SB="\u22D8",kB="\u231E",CB="\u21DA",TB="\u296B",LB="\u25FA",EB="\u013F",AB="\u0140",MB="\u23B0",NB="\u23B0",PB="\u2A89",OB="\u2A89",DB="\u2A87",$B="\u2268",RB="\u2A87",zB="\u2268",IB="\u22E6",FB="\u27EC",qB="\u21FD",HB="\u27E6",BB="\u27F5",WB="\u27F5",UB="\u27F8",jB="\u27F7",GB="\u27F7",VB="\u27FA",KB="\u27FC",XB="\u27F6",YB="\u27F6",ZB="\u27F9",JB="\u21AB",QB="\u21AC",t3="\u2985",e3="\u{1D543}",n3="\u{1D55D}",r3="\u2A2D",i3="\u2A34",o3="\u2217",s3="_",l3="\u2199",a3="\u2198",c3="\u25CA",u3="\u25CA",f3="\u29EB",h3="(",d3="\u2993",p3="\u21C6",g3="\u231F",v3="\u21CB",m3="\u296D",y3="\u200E",b3="\u22BF",w3="\u2039",x3="\u{1D4C1}",_3="\u2112",S3="\u21B0",k3="\u21B0",C3="\u2272",T3="\u2A8D",L3="\u2A8F",E3="[",A3="\u2018",M3="\u201A",N3="\u0141",P3="\u0142",O3="\u2AA6",D3="\u2A79",$3="<",R3="<",z3="\u226A",I3="\u22D6",F3="\u22CB",q3="\u22C9",H3="\u2976",B3="\u2A7B",W3="\u25C3",U3="\u22B4",j3="\u25C2",G3="\u2996",V3="\u294A",K3="\u2966",X3="\u2268\uFE00",Y3="\u2268\uFE00",Z3="\xAF",J3="\u2642",Q3="\u2720",t5="\u2720",e5="\u21A6",n5="\u21A6",r5="\u21A7",i5="\u21A4",o5="\u21A5",s5="\u25AE",l5="\u2A29",a5="\u041C",c5="\u043C",u5="\u2014",f5="\u223A",h5="\u2221",d5="\u205F",p5="\u2133",g5="\u{1D510}",v5="\u{1D52A}",m5="\u2127",y5="\xB5",b5="*",w5="\u2AF0",x5="\u2223",_5="\xB7",S5="\u229F",k5="\u2212",C5="\u2238",T5="\u2A2A",L5="\u2213",E5="\u2ADB",A5="\u2026",M5="\u2213",N5="\u22A7",P5="\u{1D544}",O5="\u{1D55E}",D5="\u2213",$5="\u{1D4C2}",R5="\u2133",z5="\u223E",I5="\u039C",F5="\u03BC",q5="\u22B8",H5="\u22B8",B5="\u2207",W5="\u0143",U5="\u0144",j5="\u2220\u20D2",G5="\u2249",V5="\u2A70\u0338",K5="\u224B\u0338",X5="\u0149",Y5="\u2249",Z5="\u266E",J5="\u2115",Q5="\u266E",tW="\xA0",eW="\u224E\u0338",nW="\u224F\u0338",rW="\u2A43",iW="\u0147",oW="\u0148",sW="\u0145",lW="\u0146",aW="\u2247",cW="\u2A6D\u0338",uW="\u2A42",fW="\u041D",hW="\u043D",dW="\u2013",pW="\u2924",gW="\u2197",vW="\u21D7",mW="\u2197",yW="\u2260",bW="\u2250\u0338",wW="\u200B",xW="\u200B",_W="\u200B",SW="\u200B",kW="\u2262",CW="\u2928",TW="\u2242\u0338",LW="\u226B",EW="\u226A",AW=`
|
|
6
|
-
`,MW="\u2204",NW="\u2204",PW="\u{1D511}",OW="\u{1D52B}",DW="\u2267\u0338",$W="\u2271",RW="\u2271",zW="\u2267\u0338",IW="\u2A7E\u0338",FW="\u2A7E\u0338",qW="\u22D9\u0338",HW="\u2275",BW="\u226B\u20D2",WW="\u226F",UW="\u226F",jW="\u226B\u0338",GW="\u21AE",VW="\u21CE",KW="\u2AF2",XW="\u220B",YW="\u22FC",ZW="\u22FA",JW="\u220B",QW="\u040A",tU="\u045A",eU="\u219A",nU="\u21CD",rU="\u2025",iU="\u2266\u0338",oU="\u2270",sU="\u219A",lU="\u21CD",aU="\u21AE",cU="\u21CE",uU="\u2270",fU="\u2266\u0338",hU="\u2A7D\u0338",dU="\u2A7D\u0338",pU="\u226E",gU="\u22D8\u0338",vU="\u2274",mU="\u226A\u20D2",yU="\u226E",bU="\u22EA",wU="\u22EC",xU="\u226A\u0338",_U="\u2224",SU="\u2060",kU="\xA0",CU="\u{1D55F}",TU="\u2115",LU="\u2AEC",EU="\xAC",AU="\u2262",MU="\u226D",NU="\u2226",PU="\u2209",OU="\u2260",DU="\u2242\u0338",$U="\u2204",RU="\u226F",zU="\u2271",IU="\u2267\u0338",FU="\u226B\u0338",qU="\u2279",HU="\u2A7E\u0338",BU="\u2275",WU="\u224E\u0338",UU="\u224F\u0338",jU="\u2209",GU="\u22F5\u0338",VU="\u22F9\u0338",KU="\u2209",XU="\u22F7",YU="\u22F6",ZU="\u29CF\u0338",JU="\u22EA",QU="\u22EC",t8="\u226E",e8="\u2270",n8="\u2278",r8="\u226A\u0338",i8="\u2A7D\u0338",o8="\u2274",s8="\u2AA2\u0338",l8="\u2AA1\u0338",a8="\u220C",c8="\u220C",u8="\u22FE",f8="\u22FD",h8="\u2280",d8="\u2AAF\u0338",p8="\u22E0",g8="\u220C",v8="\u29D0\u0338",m8="\u22EB",y8="\u22ED",b8="\u228F\u0338",w8="\u22E2",x8="\u2290\u0338",_8="\u22E3",S8="\u2282\u20D2",k8="\u2288",C8="\u2281",T8="\u2AB0\u0338",L8="\u22E1",E8="\u227F\u0338",A8="\u2283\u20D2",M8="\u2289",N8="\u2241",P8="\u2244",O8="\u2247",D8="\u2249",$8="\u2224",R8="\u2226",z8="\u2226",I8="\u2AFD\u20E5",F8="\u2202\u0338",q8="\u2A14",H8="\u2280",B8="\u22E0",W8="\u2280",U8="\u2AAF\u0338",j8="\u2AAF\u0338",G8="\u2933\u0338",V8="\u219B",K8="\u21CF",X8="\u219D\u0338",Y8="\u219B",Z8="\u21CF",J8="\u22EB",Q8="\u22ED",t4="\u2281",e4="\u22E1",n4="\u2AB0\u0338",r4="\u{1D4A9}",i4="\u{1D4C3}",o4="\u2224",s4="\u2226",l4="\u2241",a4="\u2244",c4="\u2244",u4="\u2224",f4="\u2226",h4="\u22E2",d4="\u22E3",p4="\u2284",g4="\u2AC5\u0338",v4="\u2288",m4="\u2282\u20D2",y4="\u2288",b4="\u2AC5\u0338",w4="\u2281",x4="\u2AB0\u0338",_4="\u2285",S4="\u2AC6\u0338",k4="\u2289",C4="\u2283\u20D2",T4="\u2289",L4="\u2AC6\u0338",E4="\u2279",A4="\xD1",M4="\xF1",N4="\u2278",P4="\u22EA",O4="\u22EC",D4="\u22EB",$4="\u22ED",R4="\u039D",z4="\u03BD",I4="#",F4="\u2116",q4="\u2007",H4="\u224D\u20D2",B4="\u22AC",W4="\u22AD",U4="\u22AE",j4="\u22AF",G4="\u2265\u20D2",V4=">\u20D2",K4="\u2904",X4="\u29DE",Y4="\u2902",Z4="\u2264\u20D2",J4="<\u20D2",Q4="\u22B4\u20D2",t6="\u2903",e6="\u22B5\u20D2",n6="\u223C\u20D2",r6="\u2923",i6="\u2196",o6="\u21D6",s6="\u2196",l6="\u2927",a6="\xD3",c6="\xF3",u6="\u229B",f6="\xD4",h6="\xF4",d6="\u229A",p6="\u041E",g6="\u043E",v6="\u229D",m6="\u0150",y6="\u0151",b6="\u2A38",w6="\u2299",x6="\u29BC",_6="\u0152",S6="\u0153",k6="\u29BF",C6="\u{1D512}",T6="\u{1D52C}",L6="\u02DB",E6="\xD2",A6="\xF2",M6="\u29C1",N6="\u29B5",P6="\u03A9",O6="\u222E",D6="\u21BA",$6="\u29BE",R6="\u29BB",z6="\u203E",I6="\u29C0",F6="\u014C",q6="\u014D",H6="\u03A9",B6="\u03C9",W6="\u039F",U6="\u03BF",j6="\u29B6",G6="\u2296",V6="\u{1D546}",K6="\u{1D560}",X6="\u29B7",Y6="\u201C",Z6="\u2018",J6="\u29B9",Q6="\u2295",tj="\u21BB",ej="\u2A54",nj="\u2228",rj="\u2A5D",ij="\u2134",oj="\u2134",sj="\xAA",lj="\xBA",aj="\u22B6",cj="\u2A56",uj="\u2A57",fj="\u2A5B",hj="\u24C8",dj="\u{1D4AA}",pj="\u2134",gj="\xD8",vj="\xF8",mj="\u2298",yj="\xD5",bj="\xF5",wj="\u2A36",xj="\u2A37",_j="\u2297",Sj="\xD6",kj="\xF6",Cj="\u233D",Tj="\u203E",Lj="\u23DE",Ej="\u23B4",Aj="\u23DC",Mj="\xB6",Nj="\u2225",Pj="\u2225",Oj="\u2AF3",Dj="\u2AFD",$j="\u2202",Rj="\u2202",zj="\u041F",Ij="\u043F",Fj="%",qj=".",Hj="\u2030",Bj="\u22A5",Wj="\u2031",Uj="\u{1D513}",jj="\u{1D52D}",Gj="\u03A6",Vj="\u03C6",Kj="\u03D5",Xj="\u2133",Yj="\u260E",Zj="\u03A0",Jj="\u03C0",Qj="\u22D4",tG="\u03D6",eG="\u210F",nG="\u210E",rG="\u210F",iG="\u2A23",oG="\u229E",sG="\u2A22",lG="+",aG="\u2214",cG="\u2A25",uG="\u2A72",fG="\xB1",hG="\xB1",dG="\u2A26",pG="\u2A27",gG="\xB1",vG="\u210C",mG="\u2A15",yG="\u{1D561}",bG="\u2119",wG="\xA3",xG="\u2AB7",_G="\u2ABB",SG="\u227A",kG="\u227C",CG="\u2AB7",TG="\u227A",LG="\u227C",EG="\u227A",AG="\u2AAF",MG="\u227C",NG="\u227E",PG="\u2AAF",OG="\u2AB9",DG="\u2AB5",$G="\u22E8",RG="\u2AAF",zG="\u2AB3",IG="\u227E",FG="\u2032",qG="\u2033",HG="\u2119",BG="\u2AB9",WG="\u2AB5",UG="\u22E8",jG="\u220F",GG="\u220F",VG="\u232E",KG="\u2312",XG="\u2313",YG="\u221D",ZG="\u221D",JG="\u2237",QG="\u221D",t9="\u227E",e9="\u22B0",n9="\u{1D4AB}",r9="\u{1D4C5}",i9="\u03A8",o9="\u03C8",s9="\u2008",l9="\u{1D514}",a9="\u{1D52E}",c9="\u2A0C",u9="\u{1D562}",f9="\u211A",h9="\u2057",d9="\u{1D4AC}",p9="\u{1D4C6}",g9="\u210D",v9="\u2A16",m9="?",y9="\u225F",b9='"',w9='"',x9="\u21DB",_9="\u223D\u0331",S9="\u0154",k9="\u0155",C9="\u221A",T9="\u29B3",L9="\u27E9",E9="\u27EB",A9="\u2992",M9="\u29A5",N9="\u27E9",P9="\xBB",O9="\u2975",D9="\u21E5",$9="\u2920",R9="\u2933",z9="\u2192",I9="\u21A0",F9="\u21D2",q9="\u291E",H9="\u21AA",B9="\u21AC",W9="\u2945",U9="\u2974",j9="\u2916",G9="\u21A3",V9="\u219D",K9="\u291A",X9="\u291C",Y9="\u2236",Z9="\u211A",J9="\u290D",Q9="\u290F",tV="\u2910",eV="\u2773",nV="}",rV="]",iV="\u298C",oV="\u298E",sV="\u2990",lV="\u0158",aV="\u0159",cV="\u0156",uV="\u0157",fV="\u2309",hV="}",dV="\u0420",pV="\u0440",gV="\u2937",vV="\u2969",mV="\u201D",yV="\u201D",bV="\u21B3",wV="\u211C",xV="\u211B",_V="\u211C",SV="\u211D",kV="\u211C",CV="\u25AD",TV="\xAE",LV="\xAE",EV="\u220B",AV="\u21CB",MV="\u296F",NV="\u297D",PV="\u230B",OV="\u{1D52F}",DV="\u211C",$V="\u2964",RV="\u21C1",zV="\u21C0",IV="\u296C",FV="\u03A1",qV="\u03C1",HV="\u03F1",BV="\u27E9",WV="\u21E5",UV="\u2192",jV="\u2192",GV="\u21D2",VV="\u21C4",KV="\u21A3",XV="\u2309",YV="\u27E7",ZV="\u295D",JV="\u2955",QV="\u21C2",tK="\u230B",eK="\u21C1",nK="\u21C0",rK="\u21C4",iK="\u21CC",oK="\u21C9",sK="\u219D",lK="\u21A6",aK="\u22A2",cK="\u295B",uK="\u22CC",fK="\u29D0",hK="\u22B3",dK="\u22B5",pK="\u294F",gK="\u295C",vK="\u2954",mK="\u21BE",yK="\u2953",bK="\u21C0",wK="\u02DA",xK="\u2253",_K="\u21C4",SK="\u21CC",kK="\u200F",CK="\u23B1",TK="\u23B1",LK="\u2AEE",EK="\u27ED",AK="\u21FE",MK="\u27E7",NK="\u2986",PK="\u{1D563}",OK="\u211D",DK="\u2A2E",$K="\u2A35",RK="\u2970",zK=")",IK="\u2994",FK="\u2A12",qK="\u21C9",HK="\u21DB",BK="\u203A",WK="\u{1D4C7}",UK="\u211B",jK="\u21B1",GK="\u21B1",VK="]",KK="\u2019",XK="\u2019",YK="\u22CC",ZK="\u22CA",JK="\u25B9",QK="\u22B5",t7="\u25B8",e7="\u29CE",n7="\u29F4",r7="\u2968",i7="\u211E",o7="\u015A",s7="\u015B",l7="\u201A",a7="\u2AB8",c7="\u0160",u7="\u0161",f7="\u2ABC",h7="\u227B",d7="\u227D",p7="\u2AB0",g7="\u2AB4",v7="\u015E",m7="\u015F",y7="\u015C",b7="\u015D",w7="\u2ABA",x7="\u2AB6",_7="\u22E9",S7="\u2A13",k7="\u227F",C7="\u0421",T7="\u0441",L7="\u22A1",E7="\u22C5",A7="\u2A66",M7="\u2925",N7="\u2198",P7="\u21D8",O7="\u2198",D7="\xA7",$7=";",R7="\u2929",z7="\u2216",I7="\u2216",F7="\u2736",q7="\u{1D516}",H7="\u{1D530}",B7="\u2322",W7="\u266F",U7="\u0429",j7="\u0449",G7="\u0428",V7="\u0448",K7="\u2193",X7="\u2190",Y7="\u2223",Z7="\u2225",J7="\u2192",Q7="\u2191",tX="\xAD",eX="\u03A3",nX="\u03C3",rX="\u03C2",iX="\u03C2",oX="\u223C",sX="\u2A6A",lX="\u2243",aX="\u2243",cX="\u2A9E",uX="\u2AA0",fX="\u2A9D",hX="\u2A9F",dX="\u2246",pX="\u2A24",gX="\u2972",vX="\u2190",mX="\u2218",yX="\u2216",bX="\u2A33",wX="\u29E4",xX="\u2223",_X="\u2323",SX="\u2AAA",kX="\u2AAC",CX="\u2AAC\uFE00",TX="\u042C",LX="\u044C",EX="\u233F",AX="\u29C4",MX="/",NX="\u{1D54A}",PX="\u{1D564}",OX="\u2660",DX="\u2660",$X="\u2225",RX="\u2293",zX="\u2293\uFE00",IX="\u2294",FX="\u2294\uFE00",qX="\u221A",HX="\u228F",BX="\u2291",WX="\u228F",UX="\u2291",jX="\u2290",GX="\u2292",VX="\u2290",KX="\u2292",XX="\u25A1",YX="\u25A1",ZX="\u2293",JX="\u228F",QX="\u2291",tY="\u2290",eY="\u2292",nY="\u2294",rY="\u25AA",iY="\u25A1",oY="\u25AA",sY="\u2192",lY="\u{1D4AE}",aY="\u{1D4C8}",cY="\u2216",uY="\u2323",fY="\u22C6",hY="\u22C6",dY="\u2606",pY="\u2605",gY="\u03F5",vY="\u03D5",mY="\xAF",yY="\u2282",bY="\u22D0",wY="\u2ABD",xY="\u2AC5",_Y="\u2286",SY="\u2AC3",kY="\u2AC1",CY="\u2ACB",TY="\u228A",LY="\u2ABF",EY="\u2979",AY="\u2282",MY="\u22D0",NY="\u2286",PY="\u2AC5",OY="\u2286",DY="\u228A",$Y="\u2ACB",RY="\u2AC7",zY="\u2AD5",IY="\u2AD3",FY="\u2AB8",qY="\u227B",HY="\u227D",BY="\u227B",WY="\u2AB0",UY="\u227D",jY="\u227F",GY="\u2AB0",VY="\u2ABA",KY="\u2AB6",XY="\u22E9",YY="\u227F",ZY="\u220B",JY="\u2211",QY="\u2211",tZ="\u266A",eZ="\xB9",nZ="\xB2",rZ="\xB3",iZ="\u2283",oZ="\u22D1",sZ="\u2ABE",lZ="\u2AD8",aZ="\u2AC6",cZ="\u2287",uZ="\u2AC4",fZ="\u2283",hZ="\u2287",dZ="\u27C9",pZ="\u2AD7",gZ="\u297B",vZ="\u2AC2",mZ="\u2ACC",yZ="\u228B",bZ="\u2AC0",wZ="\u2283",xZ="\u22D1",_Z="\u2287",SZ="\u2AC6",kZ="\u228B",CZ="\u2ACC",TZ="\u2AC8",LZ="\u2AD4",EZ="\u2AD6",AZ="\u2926",MZ="\u2199",NZ="\u21D9",PZ="\u2199",OZ="\u292A",DZ="\xDF",$Z=" ",RZ="\u2316",zZ="\u03A4",IZ="\u03C4",FZ="\u23B4",qZ="\u0164",HZ="\u0165",BZ="\u0162",WZ="\u0163",UZ="\u0422",jZ="\u0442",GZ="\u20DB",VZ="\u2315",KZ="\u{1D517}",XZ="\u{1D531}",YZ="\u2234",ZZ="\u2234",JZ="\u2234",QZ="\u0398",tJ="\u03B8",eJ="\u03D1",nJ="\u03D1",rJ="\u2248",iJ="\u223C",oJ="\u205F\u200A",sJ="\u2009",lJ="\u2009",aJ="\u2248",cJ="\u223C",uJ="\xDE",fJ="\xFE",hJ="\u02DC",dJ="\u223C",pJ="\u2243",gJ="\u2245",vJ="\u2248",mJ="\u2A31",yJ="\u22A0",bJ="\xD7",wJ="\u2A30",xJ="\u222D",_J="\u2928",SJ="\u2336",kJ="\u2AF1",CJ="\u22A4",TJ="\u{1D54B}",LJ="\u{1D565}",EJ="\u2ADA",AJ="\u2929",MJ="\u2034",NJ="\u2122",PJ="\u2122",OJ="\u25B5",DJ="\u25BF",$J="\u25C3",RJ="\u22B4",zJ="\u225C",IJ="\u25B9",FJ="\u22B5",qJ="\u25EC",HJ="\u225C",BJ="\u2A3A",WJ="\u20DB",UJ="\u2A39",jJ="\u29CD",GJ="\u2A3B",VJ="\u23E2",KJ="\u{1D4AF}",XJ="\u{1D4C9}",YJ="\u0426",ZJ="\u0446",JJ="\u040B",QJ="\u045B",tQ="\u0166",eQ="\u0167",nQ="\u226C",rQ="\u219E",iQ="\u21A0",oQ="\xDA",sQ="\xFA",lQ="\u2191",aQ="\u219F",cQ="\u21D1",uQ="\u2949",fQ="\u040E",hQ="\u045E",dQ="\u016C",pQ="\u016D",gQ="\xDB",vQ="\xFB",mQ="\u0423",yQ="\u0443",bQ="\u21C5",wQ="\u0170",xQ="\u0171",_Q="\u296E",SQ="\u297E",kQ="\u{1D518}",CQ="\u{1D532}",TQ="\xD9",LQ="\xF9",EQ="\u2963",AQ="\u21BF",MQ="\u21BE",NQ="\u2580",PQ="\u231C",OQ="\u231C",DQ="\u230F",$Q="\u25F8",RQ="\u016A",zQ="\u016B",IQ="\xA8",FQ="_",qQ="\u23DF",HQ="\u23B5",BQ="\u23DD",WQ="\u22C3",UQ="\u228E",jQ="\u0172",GQ="\u0173",VQ="\u{1D54C}",KQ="\u{1D566}",XQ="\u2912",YQ="\u2191",ZQ="\u2191",JQ="\u21D1",QQ="\u21C5",ttt="\u2195",ett="\u2195",ntt="\u21D5",rtt="\u296E",itt="\u21BF",ott="\u21BE",stt="\u228E",ltt="\u2196",att="\u2197",ctt="\u03C5",utt="\u03D2",ftt="\u03D2",htt="\u03A5",dtt="\u03C5",ptt="\u21A5",gtt="\u22A5",vtt="\u21C8",mtt="\u231D",ytt="\u231D",btt="\u230E",wtt="\u016E",xtt="\u016F",_tt="\u25F9",Stt="\u{1D4B0}",ktt="\u{1D4CA}",Ctt="\u22F0",Ttt="\u0168",Ltt="\u0169",Ett="\u25B5",Att="\u25B4",Mtt="\u21C8",Ntt="\xDC",Ptt="\xFC",Ott="\u29A7",Dtt="\u299C",$tt="\u03F5",Rtt="\u03F0",ztt="\u2205",Itt="\u03D5",Ftt="\u03D6",qtt="\u221D",Htt="\u2195",Btt="\u21D5",Wtt="\u03F1",Utt="\u03C2",jtt="\u228A\uFE00",Gtt="\u2ACB\uFE00",Vtt="\u228B\uFE00",Ktt="\u2ACC\uFE00",Xtt="\u03D1",Ytt="\u22B2",Ztt="\u22B3",Jtt="\u2AE8",Qtt="\u2AEB",tet="\u2AE9",eet="\u0412",net="\u0432",ret="\u22A2",iet="\u22A8",oet="\u22A9",set="\u22AB",aet="\u2AE6",cet="\u22BB",uet="\u2228",fet="\u22C1",het="\u225A",det="\u22EE",pet="|",get="\u2016",vet="|",met="\u2016",yet="\u2223",bet="|",wet="\u2758",xet="\u2240",_et="\u200A",ket="\u{1D519}",Cet="\u{1D533}",Tet="\u22B2",Let="\u2282\u20D2",Eet="\u2283\u20D2",Aet="\u{1D54D}",Met="\u{1D567}",Net="\u221D",Pet="\u22B3",Oet="\u{1D4B1}",Det="\u{1D4CB}",$et="\u2ACB\uFE00",Ret="\u228A\uFE00",zet="\u2ACC\uFE00",Iet="\u228B\uFE00",Fet="\u22AA",qet="\u299A",Het="\u0174",Bet="\u0175",Wet="\u2A5F",Uet="\u2227",jet="\u22C0",Get="\u2259",Vet="\u2118",Ket="\u{1D51A}",Xet="\u{1D534}",Yet="\u{1D54E}",Zet="\u{1D568}",Jet="\u2118",Qet="\u2240",tnt="\u2240",ent="\u{1D4B2}",nnt="\u{1D4CC}",rnt="\u22C2",int="\u25EF",ont="\u22C3",snt="\u25BD",lnt="\u{1D51B}",ant="\u{1D535}",cnt="\u27F7",unt="\u27FA",fnt="\u039E",hnt="\u03BE",dnt="\u27F5",pnt="\u27F8",gnt="\u27FC",vnt="\u22FB",mnt="\u2A00",ynt="\u{1D54F}",bnt="\u{1D569}",wnt="\u2A01",xnt="\u2A02",_nt="\u27F6",Snt="\u27F9",knt="\u{1D4B3}",Cnt="\u{1D4CD}",Tnt="\u2A06",Lnt="\u2A04",Ent="\u25B3",Ant="\u22C1",Mnt="\u22C0",Nnt="\xDD",Pnt="\xFD",Ont="\u042F",Dnt="\u044F",$nt="\u0176",Rnt="\u0177",znt="\u042B",Int="\u044B",Fnt="\xA5",qnt="\u{1D51C}",Hnt="\u{1D536}",Bnt="\u0407",Wnt="\u0457",Unt="\u{1D550}",jnt="\u{1D56A}",Gnt="\u{1D4B4}",Vnt="\u{1D4CE}",Knt="\u042E",Xnt="\u044E",Ynt="\xFF",Znt="\u0178",Jnt="\u0179",Qnt="\u017A",trt="\u017D",ert="\u017E",nrt="\u0417",rrt="\u0437",irt="\u017B",ort="\u017C",srt="\u2128",lrt="\u200B",art="\u0396",crt="\u03B6",urt="\u{1D537}",frt="\u2128",hrt="\u0416",drt="\u0436",prt="\u21DD",grt="\u{1D56B}",vrt="\u2124",mrt="\u{1D4B5}",yrt="\u{1D4CF}",brt="\u200D",wrt="\u200C";var D0={Aacute:nT,aacute:rT,Abreve:iT,abreve:oT,ac:sT,acd:lT,acE:aT,Acirc:cT,acirc:uT,acute:fT,Acy:hT,acy:dT,AElig:pT,aelig:gT,af:vT,Afr:mT,afr:yT,Agrave:bT,agrave:wT,alefsym:xT,aleph:_T,Alpha:ST,alpha:kT,Amacr:CT,amacr:TT,amalg:LT,amp:ET,AMP:AT,andand:MT,And:NT,and:PT,andd:OT,andslope:DT,andv:$T,ang:RT,ange:zT,angle:IT,angmsdaa:FT,angmsdab:qT,angmsdac:HT,angmsdad:BT,angmsdae:WT,angmsdaf:UT,angmsdag:jT,angmsdah:GT,angmsd:VT,angrt:KT,angrtvb:XT,angrtvbd:YT,angsph:ZT,angst:JT,angzarr:QT,Aogon:tL,aogon:eL,Aopf:nL,aopf:rL,apacir:iL,ap:oL,apE:sL,ape:lL,apid:aL,apos:cL,ApplyFunction:uL,approx:fL,approxeq:hL,Aring:dL,aring:pL,Ascr:gL,ascr:vL,Assign:mL,ast:yL,asymp:bL,asympeq:wL,Atilde:xL,atilde:_L,Auml:SL,auml:kL,awconint:CL,awint:TL,backcong:LL,backepsilon:EL,backprime:AL,backsim:ML,backsimeq:NL,Backslash:PL,Barv:OL,barvee:DL,barwed:$L,Barwed:RL,barwedge:zL,bbrk:IL,bbrktbrk:FL,bcong:qL,Bcy:HL,bcy:BL,bdquo:WL,becaus:UL,because:jL,Because:GL,bemptyv:VL,bepsi:KL,bernou:XL,Bernoullis:YL,Beta:ZL,beta:JL,beth:QL,between:tE,Bfr:eE,bfr:nE,bigcap:rE,bigcirc:iE,bigcup:oE,bigodot:sE,bigoplus:lE,bigotimes:aE,bigsqcup:cE,bigstar:uE,bigtriangledown:fE,bigtriangleup:hE,biguplus:dE,bigvee:pE,bigwedge:gE,bkarow:vE,blacklozenge:mE,blacksquare:yE,blacktriangle:bE,blacktriangledown:wE,blacktriangleleft:xE,blacktriangleright:_E,blank:SE,blk12:kE,blk14:CE,blk34:TE,block:LE,bne:EE,bnequiv:AE,bNot:ME,bnot:NE,Bopf:PE,bopf:OE,bot:DE,bottom:$E,bowtie:RE,boxbox:zE,boxdl:IE,boxdL:FE,boxDl:qE,boxDL:HE,boxdr:BE,boxdR:WE,boxDr:UE,boxDR:jE,boxh:GE,boxH:VE,boxhd:KE,boxHd:XE,boxhD:YE,boxHD:ZE,boxhu:JE,boxHu:QE,boxhU:tA,boxHU:eA,boxminus:nA,boxplus:rA,boxtimes:iA,boxul:oA,boxuL:sA,boxUl:lA,boxUL:aA,boxur:cA,boxuR:uA,boxUr:fA,boxUR:hA,boxv:dA,boxV:pA,boxvh:gA,boxvH:vA,boxVh:mA,boxVH:yA,boxvl:bA,boxvL:wA,boxVl:xA,boxVL:_A,boxvr:SA,boxvR:kA,boxVr:CA,boxVR:TA,bprime:LA,breve:EA,Breve:AA,brvbar:MA,bscr:NA,Bscr:PA,bsemi:OA,bsim:DA,bsime:$A,bsolb:RA,bsol:zA,bsolhsub:IA,bull:FA,bullet:qA,bump:HA,bumpE:BA,bumpe:WA,Bumpeq:UA,bumpeq:jA,Cacute:GA,cacute:VA,capand:KA,capbrcup:XA,capcap:YA,cap:ZA,Cap:JA,capcup:QA,capdot:tM,CapitalDifferentialD:eM,caps:nM,caret:rM,caron:iM,Cayleys:oM,ccaps:sM,Ccaron:lM,ccaron:aM,Ccedil:cM,ccedil:uM,Ccirc:fM,ccirc:hM,Cconint:dM,ccups:pM,ccupssm:gM,Cdot:vM,cdot:mM,cedil:yM,Cedilla:bM,cemptyv:wM,cent:xM,centerdot:_M,CenterDot:SM,cfr:kM,Cfr:CM,CHcy:TM,chcy:LM,check:EM,checkmark:AM,Chi:MM,chi:NM,circ:PM,circeq:OM,circlearrowleft:DM,circlearrowright:$M,circledast:RM,circledcirc:zM,circleddash:IM,CircleDot:FM,circledR:qM,circledS:HM,CircleMinus:BM,CirclePlus:WM,CircleTimes:UM,cir:jM,cirE:GM,cire:VM,cirfnint:KM,cirmid:XM,cirscir:YM,ClockwiseContourIntegral:ZM,CloseCurlyDoubleQuote:JM,CloseCurlyQuote:QM,clubs:tN,clubsuit:eN,colon:nN,Colon:rN,Colone:iN,colone:oN,coloneq:sN,comma:lN,commat:aN,comp:cN,compfn:uN,complement:fN,complexes:hN,cong:dN,congdot:pN,Congruent:gN,conint:vN,Conint:mN,ContourIntegral:yN,copf:bN,Copf:wN,coprod:xN,Coproduct:_N,copy:SN,COPY:kN,copysr:CN,CounterClockwiseContourIntegral:TN,crarr:LN,cross:EN,Cross:AN,Cscr:MN,cscr:NN,csub:PN,csube:ON,csup:DN,csupe:$N,ctdot:RN,cudarrl:zN,cudarrr:IN,cuepr:FN,cuesc:qN,cularr:HN,cularrp:BN,cupbrcap:WN,cupcap:UN,CupCap:jN,cup:GN,Cup:VN,cupcup:KN,cupdot:XN,cupor:YN,cups:ZN,curarr:JN,curarrm:QN,curlyeqprec:tP,curlyeqsucc:eP,curlyvee:nP,curlywedge:rP,curren:iP,curvearrowleft:oP,curvearrowright:sP,cuvee:lP,cuwed:aP,cwconint:cP,cwint:uP,cylcty:fP,dagger:hP,Dagger:dP,daleth:pP,darr:gP,Darr:vP,dArr:mP,dash:yP,Dashv:bP,dashv:wP,dbkarow:xP,dblac:_P,Dcaron:SP,dcaron:kP,Dcy:CP,dcy:TP,ddagger:LP,ddarr:EP,DD:AP,dd:MP,DDotrahd:NP,ddotseq:PP,deg:OP,Del:DP,Delta:$P,delta:RP,demptyv:zP,dfisht:IP,Dfr:FP,dfr:qP,dHar:HP,dharl:BP,dharr:WP,DiacriticalAcute:UP,DiacriticalDot:jP,DiacriticalDoubleAcute:GP,DiacriticalGrave:VP,DiacriticalTilde:KP,diam:XP,diamond:YP,Diamond:ZP,diamondsuit:JP,diams:QP,die:tO,DifferentialD:eO,digamma:nO,disin:rO,div:iO,divide:oO,divideontimes:sO,divonx:lO,DJcy:aO,djcy:cO,dlcorn:uO,dlcrop:fO,dollar:hO,Dopf:dO,dopf:pO,Dot:gO,dot:vO,DotDot:mO,doteq:yO,doteqdot:bO,DotEqual:wO,dotminus:xO,dotplus:_O,dotsquare:SO,doublebarwedge:kO,DoubleContourIntegral:CO,DoubleDot:TO,DoubleDownArrow:LO,DoubleLeftArrow:EO,DoubleLeftRightArrow:AO,DoubleLeftTee:MO,DoubleLongLeftArrow:NO,DoubleLongLeftRightArrow:PO,DoubleLongRightArrow:OO,DoubleRightArrow:DO,DoubleRightTee:$O,DoubleUpArrow:RO,DoubleUpDownArrow:zO,DoubleVerticalBar:IO,DownArrowBar:FO,downarrow:qO,DownArrow:HO,Downarrow:BO,DownArrowUpArrow:WO,DownBreve:UO,downdownarrows:jO,downharpoonleft:GO,downharpoonright:VO,DownLeftRightVector:KO,DownLeftTeeVector:XO,DownLeftVectorBar:YO,DownLeftVector:ZO,DownRightTeeVector:JO,DownRightVectorBar:QO,DownRightVector:tD,DownTeeArrow:eD,DownTee:nD,drbkarow:rD,drcorn:iD,drcrop:oD,Dscr:sD,dscr:lD,DScy:aD,dscy:cD,dsol:uD,Dstrok:fD,dstrok:hD,dtdot:dD,dtri:pD,dtrif:gD,duarr:vD,duhar:mD,dwangle:yD,DZcy:bD,dzcy:wD,dzigrarr:xD,Eacute:_D,eacute:SD,easter:kD,Ecaron:CD,ecaron:TD,Ecirc:LD,ecirc:ED,ecir:AD,ecolon:MD,Ecy:ND,ecy:PD,eDDot:OD,Edot:DD,edot:$D,eDot:RD,ee:zD,efDot:ID,Efr:FD,efr:qD,eg:HD,Egrave:BD,egrave:WD,egs:UD,egsdot:jD,el:GD,Element:VD,elinters:KD,ell:XD,els:YD,elsdot:ZD,Emacr:JD,emacr:QD,empty:t$,emptyset:e$,EmptySmallSquare:n$,emptyv:r$,EmptyVerySmallSquare:i$,emsp13:o$,emsp14:s$,emsp:l$,ENG:a$,eng:c$,ensp:u$,Eogon:f$,eogon:h$,Eopf:d$,eopf:p$,epar:g$,eparsl:v$,eplus:m$,epsi:y$,Epsilon:b$,epsilon:w$,epsiv:x$,eqcirc:_$,eqcolon:S$,eqsim:k$,eqslantgtr:C$,eqslantless:T$,Equal:L$,equals:E$,EqualTilde:A$,equest:M$,Equilibrium:N$,equiv:P$,equivDD:O$,eqvparsl:D$,erarr:$$,erDot:R$,escr:z$,Escr:I$,esdot:F$,Esim:q$,esim:H$,Eta:B$,eta:W$,ETH:U$,eth:j$,Euml:G$,euml:V$,euro:K$,excl:X$,exist:Y$,Exists:Z$,expectation:J$,exponentiale:Q$,ExponentialE:tR,fallingdotseq:eR,Fcy:nR,fcy:rR,female:iR,ffilig:oR,fflig:sR,ffllig:lR,Ffr:aR,ffr:cR,filig:uR,FilledSmallSquare:fR,FilledVerySmallSquare:hR,fjlig:dR,flat:pR,fllig:gR,fltns:vR,fnof:mR,Fopf:yR,fopf:bR,forall:wR,ForAll:xR,fork:_R,forkv:SR,Fouriertrf:kR,fpartint:CR,frac12:TR,frac13:LR,frac14:ER,frac15:AR,frac16:MR,frac18:NR,frac23:PR,frac25:OR,frac34:DR,frac35:$R,frac38:RR,frac45:zR,frac56:IR,frac58:FR,frac78:qR,frasl:HR,frown:BR,fscr:WR,Fscr:UR,gacute:jR,Gamma:GR,gamma:VR,Gammad:KR,gammad:XR,gap:YR,Gbreve:ZR,gbreve:JR,Gcedil:QR,Gcirc:tz,gcirc:ez,Gcy:nz,gcy:rz,Gdot:iz,gdot:oz,ge:sz,gE:lz,gEl:az,gel:cz,geq:uz,geqq:fz,geqslant:hz,gescc:dz,ges:pz,gesdot:gz,gesdoto:vz,gesdotol:mz,gesl:yz,gesles:bz,Gfr:wz,gfr:xz,gg:_z,Gg:Sz,ggg:kz,gimel:Cz,GJcy:Tz,gjcy:Lz,gla:Ez,gl:Az,glE:Mz,glj:Nz,gnap:Pz,gnapprox:Oz,gne:Dz,gnE:$z,gneq:Rz,gneqq:zz,gnsim:Iz,Gopf:Fz,gopf:qz,grave:Hz,GreaterEqual:Bz,GreaterEqualLess:Wz,GreaterFullEqual:Uz,GreaterGreater:jz,GreaterLess:Gz,GreaterSlantEqual:Vz,GreaterTilde:Kz,Gscr:Xz,gscr:Yz,gsim:Zz,gsime:Jz,gsiml:Qz,gtcc:tI,gtcir:eI,gt:nI,GT:rI,Gt:iI,gtdot:oI,gtlPar:sI,gtquest:lI,gtrapprox:aI,gtrarr:cI,gtrdot:uI,gtreqless:fI,gtreqqless:hI,gtrless:dI,gtrsim:pI,gvertneqq:gI,gvnE:vI,Hacek:mI,hairsp:yI,half:bI,hamilt:wI,HARDcy:xI,hardcy:_I,harrcir:SI,harr:kI,hArr:CI,harrw:TI,Hat:LI,hbar:EI,Hcirc:AI,hcirc:MI,hearts:NI,heartsuit:PI,hellip:OI,hercon:DI,hfr:$I,Hfr:RI,HilbertSpace:zI,hksearow:II,hkswarow:FI,hoarr:qI,homtht:HI,hookleftarrow:BI,hookrightarrow:WI,hopf:UI,Hopf:jI,horbar:GI,HorizontalLine:VI,hscr:KI,Hscr:XI,hslash:YI,Hstrok:ZI,hstrok:JI,HumpDownHump:QI,HumpEqual:tF,hybull:eF,hyphen:nF,Iacute:rF,iacute:iF,ic:oF,Icirc:sF,icirc:lF,Icy:aF,icy:cF,Idot:uF,IEcy:fF,iecy:hF,iexcl:dF,iff:pF,ifr:gF,Ifr:vF,Igrave:mF,igrave:yF,ii:bF,iiiint:wF,iiint:xF,iinfin:_F,iiota:SF,IJlig:kF,ijlig:CF,Imacr:TF,imacr:LF,image:EF,ImaginaryI:AF,imagline:MF,imagpart:NF,imath:PF,Im:OF,imof:DF,imped:$F,Implies:RF,incare:zF,in:"\u2208",infin:IF,infintie:FF,inodot:qF,intcal:HF,int:BF,Int:WF,integers:UF,Integral:jF,intercal:GF,Intersection:VF,intlarhk:KF,intprod:XF,InvisibleComma:YF,InvisibleTimes:ZF,IOcy:JF,iocy:QF,Iogon:tq,iogon:eq,Iopf:nq,iopf:rq,Iota:iq,iota:oq,iprod:sq,iquest:lq,iscr:aq,Iscr:cq,isin:uq,isindot:fq,isinE:hq,isins:dq,isinsv:pq,isinv:gq,it:vq,Itilde:mq,itilde:yq,Iukcy:bq,iukcy:wq,Iuml:xq,iuml:_q,Jcirc:Sq,jcirc:kq,Jcy:Cq,jcy:Tq,Jfr:Lq,jfr:Eq,jmath:Aq,Jopf:Mq,jopf:Nq,Jscr:Pq,jscr:Oq,Jsercy:Dq,jsercy:$q,Jukcy:Rq,jukcy:zq,Kappa:Iq,kappa:Fq,kappav:qq,Kcedil:Hq,kcedil:Bq,Kcy:Wq,kcy:Uq,Kfr:jq,kfr:Gq,kgreen:Vq,KHcy:Kq,khcy:Xq,KJcy:Yq,kjcy:Zq,Kopf:Jq,kopf:Qq,Kscr:t2,kscr:e2,lAarr:n2,Lacute:r2,lacute:i2,laemptyv:o2,lagran:s2,Lambda:l2,lambda:a2,lang:c2,Lang:u2,langd:f2,langle:h2,lap:d2,Laplacetrf:p2,laquo:g2,larrb:v2,larrbfs:m2,larr:y2,Larr:b2,lArr:w2,larrfs:x2,larrhk:_2,larrlp:S2,larrpl:k2,larrsim:C2,larrtl:T2,latail:L2,lAtail:E2,lat:A2,late:M2,lates:N2,lbarr:P2,lBarr:O2,lbbrk:D2,lbrace:$2,lbrack:R2,lbrke:z2,lbrksld:I2,lbrkslu:F2,Lcaron:q2,lcaron:H2,Lcedil:B2,lcedil:W2,lceil:U2,lcub:j2,Lcy:G2,lcy:V2,ldca:K2,ldquo:X2,ldquor:Y2,ldrdhar:Z2,ldrushar:J2,ldsh:Q2,le:tH,lE:eH,LeftAngleBracket:nH,LeftArrowBar:rH,leftarrow:iH,LeftArrow:oH,Leftarrow:sH,LeftArrowRightArrow:lH,leftarrowtail:aH,LeftCeiling:cH,LeftDoubleBracket:uH,LeftDownTeeVector:fH,LeftDownVectorBar:hH,LeftDownVector:dH,LeftFloor:pH,leftharpoondown:gH,leftharpoonup:vH,leftleftarrows:mH,leftrightarrow:yH,LeftRightArrow:bH,Leftrightarrow:wH,leftrightarrows:xH,leftrightharpoons:_H,leftrightsquigarrow:SH,LeftRightVector:kH,LeftTeeArrow:CH,LeftTee:TH,LeftTeeVector:LH,leftthreetimes:EH,LeftTriangleBar:AH,LeftTriangle:MH,LeftTriangleEqual:NH,LeftUpDownVector:PH,LeftUpTeeVector:OH,LeftUpVectorBar:DH,LeftUpVector:$H,LeftVectorBar:RH,LeftVector:zH,lEg:IH,leg:FH,leq:qH,leqq:HH,leqslant:BH,lescc:WH,les:UH,lesdot:jH,lesdoto:GH,lesdotor:VH,lesg:KH,lesges:XH,lessapprox:YH,lessdot:ZH,lesseqgtr:JH,lesseqqgtr:QH,LessEqualGreater:tB,LessFullEqual:eB,LessGreater:nB,lessgtr:rB,LessLess:iB,lesssim:oB,LessSlantEqual:sB,LessTilde:lB,lfisht:aB,lfloor:cB,Lfr:uB,lfr:fB,lg:hB,lgE:dB,lHar:pB,lhard:gB,lharu:vB,lharul:mB,lhblk:yB,LJcy:bB,ljcy:wB,llarr:xB,ll:_B,Ll:SB,llcorner:kB,Lleftarrow:CB,llhard:TB,lltri:LB,Lmidot:EB,lmidot:AB,lmoustache:MB,lmoust:NB,lnap:PB,lnapprox:OB,lne:DB,lnE:$B,lneq:RB,lneqq:zB,lnsim:IB,loang:FB,loarr:qB,lobrk:HB,longleftarrow:BB,LongLeftArrow:WB,Longleftarrow:UB,longleftrightarrow:jB,LongLeftRightArrow:GB,Longleftrightarrow:VB,longmapsto:KB,longrightarrow:XB,LongRightArrow:YB,Longrightarrow:ZB,looparrowleft:JB,looparrowright:QB,lopar:t3,Lopf:e3,lopf:n3,loplus:r3,lotimes:i3,lowast:o3,lowbar:s3,LowerLeftArrow:l3,LowerRightArrow:a3,loz:c3,lozenge:u3,lozf:f3,lpar:h3,lparlt:d3,lrarr:p3,lrcorner:g3,lrhar:v3,lrhard:m3,lrm:y3,lrtri:b3,lsaquo:w3,lscr:x3,Lscr:_3,lsh:S3,Lsh:k3,lsim:C3,lsime:T3,lsimg:L3,lsqb:E3,lsquo:A3,lsquor:M3,Lstrok:N3,lstrok:P3,ltcc:O3,ltcir:D3,lt:$3,LT:R3,Lt:z3,ltdot:I3,lthree:F3,ltimes:q3,ltlarr:H3,ltquest:B3,ltri:W3,ltrie:U3,ltrif:j3,ltrPar:G3,lurdshar:V3,luruhar:K3,lvertneqq:X3,lvnE:Y3,macr:Z3,male:J3,malt:Q3,maltese:t5,Map:"\u2905",map:e5,mapsto:n5,mapstodown:r5,mapstoleft:i5,mapstoup:o5,marker:s5,mcomma:l5,Mcy:a5,mcy:c5,mdash:u5,mDDot:f5,measuredangle:h5,MediumSpace:d5,Mellintrf:p5,Mfr:g5,mfr:v5,mho:m5,micro:y5,midast:b5,midcir:w5,mid:x5,middot:_5,minusb:S5,minus:k5,minusd:C5,minusdu:T5,MinusPlus:L5,mlcp:E5,mldr:A5,mnplus:M5,models:N5,Mopf:P5,mopf:O5,mp:D5,mscr:$5,Mscr:R5,mstpos:z5,Mu:I5,mu:F5,multimap:q5,mumap:H5,nabla:B5,Nacute:W5,nacute:U5,nang:j5,nap:G5,napE:V5,napid:K5,napos:X5,napprox:Y5,natural:Z5,naturals:J5,natur:Q5,nbsp:tW,nbump:eW,nbumpe:nW,ncap:rW,Ncaron:iW,ncaron:oW,Ncedil:sW,ncedil:lW,ncong:aW,ncongdot:cW,ncup:uW,Ncy:fW,ncy:hW,ndash:dW,nearhk:pW,nearr:gW,neArr:vW,nearrow:mW,ne:yW,nedot:bW,NegativeMediumSpace:wW,NegativeThickSpace:xW,NegativeThinSpace:_W,NegativeVeryThinSpace:SW,nequiv:kW,nesear:CW,nesim:TW,NestedGreaterGreater:LW,NestedLessLess:EW,NewLine:AW,nexist:MW,nexists:NW,Nfr:PW,nfr:OW,ngE:DW,nge:$W,ngeq:RW,ngeqq:zW,ngeqslant:IW,nges:FW,nGg:qW,ngsim:HW,nGt:BW,ngt:WW,ngtr:UW,nGtv:jW,nharr:GW,nhArr:VW,nhpar:KW,ni:XW,nis:YW,nisd:ZW,niv:JW,NJcy:QW,njcy:tU,nlarr:eU,nlArr:nU,nldr:rU,nlE:iU,nle:oU,nleftarrow:sU,nLeftarrow:lU,nleftrightarrow:aU,nLeftrightarrow:cU,nleq:uU,nleqq:fU,nleqslant:hU,nles:dU,nless:pU,nLl:gU,nlsim:vU,nLt:mU,nlt:yU,nltri:bU,nltrie:wU,nLtv:xU,nmid:_U,NoBreak:SU,NonBreakingSpace:kU,nopf:CU,Nopf:TU,Not:LU,not:EU,NotCongruent:AU,NotCupCap:MU,NotDoubleVerticalBar:NU,NotElement:PU,NotEqual:OU,NotEqualTilde:DU,NotExists:$U,NotGreater:RU,NotGreaterEqual:zU,NotGreaterFullEqual:IU,NotGreaterGreater:FU,NotGreaterLess:qU,NotGreaterSlantEqual:HU,NotGreaterTilde:BU,NotHumpDownHump:WU,NotHumpEqual:UU,notin:jU,notindot:GU,notinE:VU,notinva:KU,notinvb:XU,notinvc:YU,NotLeftTriangleBar:ZU,NotLeftTriangle:JU,NotLeftTriangleEqual:QU,NotLess:t8,NotLessEqual:e8,NotLessGreater:n8,NotLessLess:r8,NotLessSlantEqual:i8,NotLessTilde:o8,NotNestedGreaterGreater:s8,NotNestedLessLess:l8,notni:a8,notniva:c8,notnivb:u8,notnivc:f8,NotPrecedes:h8,NotPrecedesEqual:d8,NotPrecedesSlantEqual:p8,NotReverseElement:g8,NotRightTriangleBar:v8,NotRightTriangle:m8,NotRightTriangleEqual:y8,NotSquareSubset:b8,NotSquareSubsetEqual:w8,NotSquareSuperset:x8,NotSquareSupersetEqual:_8,NotSubset:S8,NotSubsetEqual:k8,NotSucceeds:C8,NotSucceedsEqual:T8,NotSucceedsSlantEqual:L8,NotSucceedsTilde:E8,NotSuperset:A8,NotSupersetEqual:M8,NotTilde:N8,NotTildeEqual:P8,NotTildeFullEqual:O8,NotTildeTilde:D8,NotVerticalBar:$8,nparallel:R8,npar:z8,nparsl:I8,npart:F8,npolint:q8,npr:H8,nprcue:B8,nprec:W8,npreceq:U8,npre:j8,nrarrc:G8,nrarr:V8,nrArr:K8,nrarrw:X8,nrightarrow:Y8,nRightarrow:Z8,nrtri:J8,nrtrie:Q8,nsc:t4,nsccue:e4,nsce:n4,Nscr:r4,nscr:i4,nshortmid:o4,nshortparallel:s4,nsim:l4,nsime:a4,nsimeq:c4,nsmid:u4,nspar:f4,nsqsube:h4,nsqsupe:d4,nsub:p4,nsubE:g4,nsube:v4,nsubset:m4,nsubseteq:y4,nsubseteqq:b4,nsucc:w4,nsucceq:x4,nsup:_4,nsupE:S4,nsupe:k4,nsupset:C4,nsupseteq:T4,nsupseteqq:L4,ntgl:E4,Ntilde:A4,ntilde:M4,ntlg:N4,ntriangleleft:P4,ntrianglelefteq:O4,ntriangleright:D4,ntrianglerighteq:$4,Nu:R4,nu:z4,num:I4,numero:F4,numsp:q4,nvap:H4,nvdash:B4,nvDash:W4,nVdash:U4,nVDash:j4,nvge:G4,nvgt:V4,nvHarr:K4,nvinfin:X4,nvlArr:Y4,nvle:Z4,nvlt:J4,nvltrie:Q4,nvrArr:t6,nvrtrie:e6,nvsim:n6,nwarhk:r6,nwarr:i6,nwArr:o6,nwarrow:s6,nwnear:l6,Oacute:a6,oacute:c6,oast:u6,Ocirc:f6,ocirc:h6,ocir:d6,Ocy:p6,ocy:g6,odash:v6,Odblac:m6,odblac:y6,odiv:b6,odot:w6,odsold:x6,OElig:_6,oelig:S6,ofcir:k6,Ofr:C6,ofr:T6,ogon:L6,Ograve:E6,ograve:A6,ogt:M6,ohbar:N6,ohm:P6,oint:O6,olarr:D6,olcir:$6,olcross:R6,oline:z6,olt:I6,Omacr:F6,omacr:q6,Omega:H6,omega:B6,Omicron:W6,omicron:U6,omid:j6,ominus:G6,Oopf:V6,oopf:K6,opar:X6,OpenCurlyDoubleQuote:Y6,OpenCurlyQuote:Z6,operp:J6,oplus:Q6,orarr:tj,Or:ej,or:nj,ord:rj,order:ij,orderof:oj,ordf:sj,ordm:lj,origof:aj,oror:cj,orslope:uj,orv:fj,oS:hj,Oscr:dj,oscr:pj,Oslash:gj,oslash:vj,osol:mj,Otilde:yj,otilde:bj,otimesas:wj,Otimes:xj,otimes:_j,Ouml:Sj,ouml:kj,ovbar:Cj,OverBar:Tj,OverBrace:Lj,OverBracket:Ej,OverParenthesis:Aj,para:Mj,parallel:Nj,par:Pj,parsim:Oj,parsl:Dj,part:$j,PartialD:Rj,Pcy:zj,pcy:Ij,percnt:Fj,period:qj,permil:Hj,perp:Bj,pertenk:Wj,Pfr:Uj,pfr:jj,Phi:Gj,phi:Vj,phiv:Kj,phmmat:Xj,phone:Yj,Pi:Zj,pi:Jj,pitchfork:Qj,piv:tG,planck:eG,planckh:nG,plankv:rG,plusacir:iG,plusb:oG,pluscir:sG,plus:lG,plusdo:aG,plusdu:cG,pluse:uG,PlusMinus:fG,plusmn:hG,plussim:dG,plustwo:pG,pm:gG,Poincareplane:vG,pointint:mG,popf:yG,Popf:bG,pound:wG,prap:xG,Pr:_G,pr:SG,prcue:kG,precapprox:CG,prec:TG,preccurlyeq:LG,Precedes:EG,PrecedesEqual:AG,PrecedesSlantEqual:MG,PrecedesTilde:NG,preceq:PG,precnapprox:OG,precneqq:DG,precnsim:$G,pre:RG,prE:zG,precsim:IG,prime:FG,Prime:qG,primes:HG,prnap:BG,prnE:WG,prnsim:UG,prod:jG,Product:GG,profalar:VG,profline:KG,profsurf:XG,prop:YG,Proportional:ZG,Proportion:JG,propto:QG,prsim:t9,prurel:e9,Pscr:n9,pscr:r9,Psi:i9,psi:o9,puncsp:s9,Qfr:l9,qfr:a9,qint:c9,qopf:u9,Qopf:f9,qprime:h9,Qscr:d9,qscr:p9,quaternions:g9,quatint:v9,quest:m9,questeq:y9,quot:b9,QUOT:w9,rAarr:x9,race:_9,Racute:S9,racute:k9,radic:C9,raemptyv:T9,rang:L9,Rang:E9,rangd:A9,range:M9,rangle:N9,raquo:P9,rarrap:O9,rarrb:D9,rarrbfs:$9,rarrc:R9,rarr:z9,Rarr:I9,rArr:F9,rarrfs:q9,rarrhk:H9,rarrlp:B9,rarrpl:W9,rarrsim:U9,Rarrtl:j9,rarrtl:G9,rarrw:V9,ratail:K9,rAtail:X9,ratio:Y9,rationals:Z9,rbarr:J9,rBarr:Q9,RBarr:tV,rbbrk:eV,rbrace:nV,rbrack:rV,rbrke:iV,rbrksld:oV,rbrkslu:sV,Rcaron:lV,rcaron:aV,Rcedil:cV,rcedil:uV,rceil:fV,rcub:hV,Rcy:dV,rcy:pV,rdca:gV,rdldhar:vV,rdquo:mV,rdquor:yV,rdsh:bV,real:wV,realine:xV,realpart:_V,reals:SV,Re:kV,rect:CV,reg:TV,REG:LV,ReverseElement:EV,ReverseEquilibrium:AV,ReverseUpEquilibrium:MV,rfisht:NV,rfloor:PV,rfr:OV,Rfr:DV,rHar:$V,rhard:RV,rharu:zV,rharul:IV,Rho:FV,rho:qV,rhov:HV,RightAngleBracket:BV,RightArrowBar:WV,rightarrow:UV,RightArrow:jV,Rightarrow:GV,RightArrowLeftArrow:VV,rightarrowtail:KV,RightCeiling:XV,RightDoubleBracket:YV,RightDownTeeVector:ZV,RightDownVectorBar:JV,RightDownVector:QV,RightFloor:tK,rightharpoondown:eK,rightharpoonup:nK,rightleftarrows:rK,rightleftharpoons:iK,rightrightarrows:oK,rightsquigarrow:sK,RightTeeArrow:lK,RightTee:aK,RightTeeVector:cK,rightthreetimes:uK,RightTriangleBar:fK,RightTriangle:hK,RightTriangleEqual:dK,RightUpDownVector:pK,RightUpTeeVector:gK,RightUpVectorBar:vK,RightUpVector:mK,RightVectorBar:yK,RightVector:bK,ring:wK,risingdotseq:xK,rlarr:_K,rlhar:SK,rlm:kK,rmoustache:CK,rmoust:TK,rnmid:LK,roang:EK,roarr:AK,robrk:MK,ropar:NK,ropf:PK,Ropf:OK,roplus:DK,rotimes:$K,RoundImplies:RK,rpar:zK,rpargt:IK,rppolint:FK,rrarr:qK,Rrightarrow:HK,rsaquo:BK,rscr:WK,Rscr:UK,rsh:jK,Rsh:GK,rsqb:VK,rsquo:KK,rsquor:XK,rthree:YK,rtimes:ZK,rtri:JK,rtrie:QK,rtrif:t7,rtriltri:e7,RuleDelayed:n7,ruluhar:r7,rx:i7,Sacute:o7,sacute:s7,sbquo:l7,scap:a7,Scaron:c7,scaron:u7,Sc:f7,sc:h7,sccue:d7,sce:p7,scE:g7,Scedil:v7,scedil:m7,Scirc:y7,scirc:b7,scnap:w7,scnE:x7,scnsim:_7,scpolint:S7,scsim:k7,Scy:C7,scy:T7,sdotb:L7,sdot:E7,sdote:A7,searhk:M7,searr:N7,seArr:P7,searrow:O7,sect:D7,semi:$7,seswar:R7,setminus:z7,setmn:I7,sext:F7,Sfr:q7,sfr:H7,sfrown:B7,sharp:W7,SHCHcy:U7,shchcy:j7,SHcy:G7,shcy:V7,ShortDownArrow:K7,ShortLeftArrow:X7,shortmid:Y7,shortparallel:Z7,ShortRightArrow:J7,ShortUpArrow:Q7,shy:tX,Sigma:eX,sigma:nX,sigmaf:rX,sigmav:iX,sim:oX,simdot:sX,sime:lX,simeq:aX,simg:cX,simgE:uX,siml:fX,simlE:hX,simne:dX,simplus:pX,simrarr:gX,slarr:vX,SmallCircle:mX,smallsetminus:yX,smashp:bX,smeparsl:wX,smid:xX,smile:_X,smt:SX,smte:kX,smtes:CX,SOFTcy:TX,softcy:LX,solbar:EX,solb:AX,sol:MX,Sopf:NX,sopf:PX,spades:OX,spadesuit:DX,spar:$X,sqcap:RX,sqcaps:zX,sqcup:IX,sqcups:FX,Sqrt:qX,sqsub:HX,sqsube:BX,sqsubset:WX,sqsubseteq:UX,sqsup:jX,sqsupe:GX,sqsupset:VX,sqsupseteq:KX,square:XX,Square:YX,SquareIntersection:ZX,SquareSubset:JX,SquareSubsetEqual:QX,SquareSuperset:tY,SquareSupersetEqual:eY,SquareUnion:nY,squarf:rY,squ:iY,squf:oY,srarr:sY,Sscr:lY,sscr:aY,ssetmn:cY,ssmile:uY,sstarf:fY,Star:hY,star:dY,starf:pY,straightepsilon:gY,straightphi:vY,strns:mY,sub:yY,Sub:bY,subdot:wY,subE:xY,sube:_Y,subedot:SY,submult:kY,subnE:CY,subne:TY,subplus:LY,subrarr:EY,subset:AY,Subset:MY,subseteq:NY,subseteqq:PY,SubsetEqual:OY,subsetneq:DY,subsetneqq:$Y,subsim:RY,subsub:zY,subsup:IY,succapprox:FY,succ:qY,succcurlyeq:HY,Succeeds:BY,SucceedsEqual:WY,SucceedsSlantEqual:UY,SucceedsTilde:jY,succeq:GY,succnapprox:VY,succneqq:KY,succnsim:XY,succsim:YY,SuchThat:ZY,sum:JY,Sum:QY,sung:tZ,sup1:eZ,sup2:nZ,sup3:rZ,sup:iZ,Sup:oZ,supdot:sZ,supdsub:lZ,supE:aZ,supe:cZ,supedot:uZ,Superset:fZ,SupersetEqual:hZ,suphsol:dZ,suphsub:pZ,suplarr:gZ,supmult:vZ,supnE:mZ,supne:yZ,supplus:bZ,supset:wZ,Supset:xZ,supseteq:_Z,supseteqq:SZ,supsetneq:kZ,supsetneqq:CZ,supsim:TZ,supsub:LZ,supsup:EZ,swarhk:AZ,swarr:MZ,swArr:NZ,swarrow:PZ,swnwar:OZ,szlig:DZ,Tab:$Z,target:RZ,Tau:zZ,tau:IZ,tbrk:FZ,Tcaron:qZ,tcaron:HZ,Tcedil:BZ,tcedil:WZ,Tcy:UZ,tcy:jZ,tdot:GZ,telrec:VZ,Tfr:KZ,tfr:XZ,there4:YZ,therefore:ZZ,Therefore:JZ,Theta:QZ,theta:tJ,thetasym:eJ,thetav:nJ,thickapprox:rJ,thicksim:iJ,ThickSpace:oJ,ThinSpace:sJ,thinsp:lJ,thkap:aJ,thksim:cJ,THORN:uJ,thorn:fJ,tilde:hJ,Tilde:dJ,TildeEqual:pJ,TildeFullEqual:gJ,TildeTilde:vJ,timesbar:mJ,timesb:yJ,times:bJ,timesd:wJ,tint:xJ,toea:_J,topbot:SJ,topcir:kJ,top:CJ,Topf:TJ,topf:LJ,topfork:EJ,tosa:AJ,tprime:MJ,trade:NJ,TRADE:PJ,triangle:OJ,triangledown:DJ,triangleleft:$J,trianglelefteq:RJ,triangleq:zJ,triangleright:IJ,trianglerighteq:FJ,tridot:qJ,trie:HJ,triminus:BJ,TripleDot:WJ,triplus:UJ,trisb:jJ,tritime:GJ,trpezium:VJ,Tscr:KJ,tscr:XJ,TScy:YJ,tscy:ZJ,TSHcy:JJ,tshcy:QJ,Tstrok:tQ,tstrok:eQ,twixt:nQ,twoheadleftarrow:rQ,twoheadrightarrow:iQ,Uacute:oQ,uacute:sQ,uarr:lQ,Uarr:aQ,uArr:cQ,Uarrocir:uQ,Ubrcy:fQ,ubrcy:hQ,Ubreve:dQ,ubreve:pQ,Ucirc:gQ,ucirc:vQ,Ucy:mQ,ucy:yQ,udarr:bQ,Udblac:wQ,udblac:xQ,udhar:_Q,ufisht:SQ,Ufr:kQ,ufr:CQ,Ugrave:TQ,ugrave:LQ,uHar:EQ,uharl:AQ,uharr:MQ,uhblk:NQ,ulcorn:PQ,ulcorner:OQ,ulcrop:DQ,ultri:$Q,Umacr:RQ,umacr:zQ,uml:IQ,UnderBar:FQ,UnderBrace:qQ,UnderBracket:HQ,UnderParenthesis:BQ,Union:WQ,UnionPlus:UQ,Uogon:jQ,uogon:GQ,Uopf:VQ,uopf:KQ,UpArrowBar:XQ,uparrow:YQ,UpArrow:ZQ,Uparrow:JQ,UpArrowDownArrow:QQ,updownarrow:ttt,UpDownArrow:ett,Updownarrow:ntt,UpEquilibrium:rtt,upharpoonleft:itt,upharpoonright:ott,uplus:stt,UpperLeftArrow:ltt,UpperRightArrow:att,upsi:ctt,Upsi:utt,upsih:ftt,Upsilon:htt,upsilon:dtt,UpTeeArrow:ptt,UpTee:gtt,upuparrows:vtt,urcorn:mtt,urcorner:ytt,urcrop:btt,Uring:wtt,uring:xtt,urtri:_tt,Uscr:Stt,uscr:ktt,utdot:Ctt,Utilde:Ttt,utilde:Ltt,utri:Ett,utrif:Att,uuarr:Mtt,Uuml:Ntt,uuml:Ptt,uwangle:Ott,vangrt:Dtt,varepsilon:$tt,varkappa:Rtt,varnothing:ztt,varphi:Itt,varpi:Ftt,varpropto:qtt,varr:Htt,vArr:Btt,varrho:Wtt,varsigma:Utt,varsubsetneq:jtt,varsubsetneqq:Gtt,varsupsetneq:Vtt,varsupsetneqq:Ktt,vartheta:Xtt,vartriangleleft:Ytt,vartriangleright:Ztt,vBar:Jtt,Vbar:Qtt,vBarv:tet,Vcy:eet,vcy:net,vdash:ret,vDash:iet,Vdash:oet,VDash:set,Vdashl:aet,veebar:cet,vee:uet,Vee:fet,veeeq:het,vellip:det,verbar:pet,Verbar:get,vert:vet,Vert:met,VerticalBar:yet,VerticalLine:bet,VerticalSeparator:wet,VerticalTilde:xet,VeryThinSpace:_et,Vfr:ket,vfr:Cet,vltri:Tet,vnsub:Let,vnsup:Eet,Vopf:Aet,vopf:Met,vprop:Net,vrtri:Pet,Vscr:Oet,vscr:Det,vsubnE:$et,vsubne:Ret,vsupnE:zet,vsupne:Iet,Vvdash:Fet,vzigzag:qet,Wcirc:Het,wcirc:Bet,wedbar:Wet,wedge:Uet,Wedge:jet,wedgeq:Get,weierp:Vet,Wfr:Ket,wfr:Xet,Wopf:Yet,wopf:Zet,wp:Jet,wr:Qet,wreath:tnt,Wscr:ent,wscr:nnt,xcap:rnt,xcirc:int,xcup:ont,xdtri:snt,Xfr:lnt,xfr:ant,xharr:cnt,xhArr:unt,Xi:fnt,xi:hnt,xlarr:dnt,xlArr:pnt,xmap:gnt,xnis:vnt,xodot:mnt,Xopf:ynt,xopf:bnt,xoplus:wnt,xotime:xnt,xrarr:_nt,xrArr:Snt,Xscr:knt,xscr:Cnt,xsqcup:Tnt,xuplus:Lnt,xutri:Ent,xvee:Ant,xwedge:Mnt,Yacute:Nnt,yacute:Pnt,YAcy:Ont,yacy:Dnt,Ycirc:$nt,ycirc:Rnt,Ycy:znt,ycy:Int,yen:Fnt,Yfr:qnt,yfr:Hnt,YIcy:Bnt,yicy:Wnt,Yopf:Unt,yopf:jnt,Yscr:Gnt,yscr:Vnt,YUcy:Knt,yucy:Xnt,yuml:Ynt,Yuml:Znt,Zacute:Jnt,zacute:Qnt,Zcaron:trt,zcaron:ert,Zcy:nrt,zcy:rrt,Zdot:irt,zdot:ort,zeetrf:srt,ZeroWidthSpace:lrt,Zeta:art,zeta:crt,zfr:urt,Zfr:frt,ZHcy:hrt,zhcy:drt,zigrarr:prt,zopf:grt,Zopf:vrt,Zscr:mrt,zscr:yrt,zwj:brt,zwnj:wrt};const xrt="\xC1",_rt="\xE1",Srt="\xC2",krt="\xE2",Crt="\xB4",Trt="\xC6",Lrt="\xE6",Ert="\xC0",Art="\xE0",Mrt="&",Nrt="&",Prt="\xC5",Ort="\xE5",Drt="\xC3",$rt="\xE3",Rrt="\xC4",zrt="\xE4",Irt="\xA6",Frt="\xC7",qrt="\xE7",Hrt="\xB8",Brt="\xA2",Wrt="\xA9",Urt="\xA9",jrt="\xA4",Grt="\xB0",Vrt="\xF7",Krt="\xC9",Xrt="\xE9",Yrt="\xCA",Zrt="\xEA",Jrt="\xC8",Qrt="\xE8",tit="\xD0",eit="\xF0",nit="\xCB",rit="\xEB",iit="\xBD",oit="\xBC",sit="\xBE",lit=">",ait=">",cit="\xCD",uit="\xED",fit="\xCE",hit="\xEE",dit="\xA1",pit="\xCC",git="\xEC",vit="\xBF",mit="\xCF",yit="\xEF",bit="\xAB",wit="<",xit="<",_it="\xAF",Sit="\xB5",kit="\xB7",Cit="\xA0",Tit="\xAC",Lit="\xD1",Eit="\xF1",Ait="\xD3",Mit="\xF3",Nit="\xD4",Pit="\xF4",Oit="\xD2",Dit="\xF2",$it="\xAA",Rit="\xBA",zit="\xD8",Iit="\xF8",Fit="\xD5",qit="\xF5",Hit="\xD6",Bit="\xF6",Wit="\xB6",Uit="\xB1",jit="\xA3",Git='"',Vit='"',Kit="\xBB",Xit="\xAE",Yit="\xAE",Zit="\xA7",Jit="\xAD",Qit="\xB9",tot="\xB2",eot="\xB3",not="\xDF",rot="\xDE",iot="\xFE",oot="\xD7",sot="\xDA",lot="\xFA",aot="\xDB",cot="\xFB",uot="\xD9",fot="\xF9",hot="\xA8",dot="\xDC",pot="\xFC",got="\xDD",vot="\xFD",mot="\xA5",yot="\xFF";var bot={Aacute:xrt,aacute:_rt,Acirc:Srt,acirc:krt,acute:Crt,AElig:Trt,aelig:Lrt,Agrave:Ert,agrave:Art,amp:Mrt,AMP:Nrt,Aring:Prt,aring:Ort,Atilde:Drt,atilde:$rt,Auml:Rrt,auml:zrt,brvbar:Irt,Ccedil:Frt,ccedil:qrt,cedil:Hrt,cent:Brt,copy:Wrt,COPY:Urt,curren:jrt,deg:Grt,divide:Vrt,Eacute:Krt,eacute:Xrt,Ecirc:Yrt,ecirc:Zrt,Egrave:Jrt,egrave:Qrt,ETH:tit,eth:eit,Euml:nit,euml:rit,frac12:iit,frac14:oit,frac34:sit,gt:lit,GT:ait,Iacute:cit,iacute:uit,Icirc:fit,icirc:hit,iexcl:dit,Igrave:pit,igrave:git,iquest:vit,Iuml:mit,iuml:yit,laquo:bit,lt:wit,LT:xit,macr:_it,micro:Sit,middot:kit,nbsp:Cit,not:Tit,Ntilde:Lit,ntilde:Eit,Oacute:Ait,oacute:Mit,Ocirc:Nit,ocirc:Pit,Ograve:Oit,ograve:Dit,ordf:$it,ordm:Rit,Oslash:zit,oslash:Iit,Otilde:Fit,otilde:qit,Ouml:Hit,ouml:Bit,para:Wit,plusmn:Uit,pound:jit,quot:Git,QUOT:Vit,raquo:Kit,reg:Xit,REG:Yit,sect:Zit,shy:Jit,sup1:Qit,sup2:tot,sup3:eot,szlig:not,THORN:rot,thorn:iot,times:oot,Uacute:sot,uacute:lot,Ucirc:aot,ucirc:cot,Ugrave:uot,ugrave:fot,uml:hot,Uuml:dot,uuml:pot,Yacute:got,yacute:vot,yen:mot,yuml:yot};const wot="&",xot="'",_ot=">",Sot="<",kot='"';var $0={amp:wot,apos:xot,gt:_ot,lt:Sot,quot:kot},th={},Cot={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},Tot=En&&En.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(th,"__esModule",{value:!0});var Hg=Tot(Cot),Lot=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 Eot(t){return t>=55296&&t<=57343||t>1114111?"\uFFFD":(t in Hg.default&&(t=Hg.default[t]),Lot(t))}th.default=Eot;var hc=En&&En.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Mr,"__esModule",{value:!0});Mr.decodeHTML=Mr.decodeHTMLStrict=Mr.decodeXML=void 0;var af=hc(D0),Aot=hc(bot),Mot=hc($0),Bg=hc(th),Not=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Mr.decodeXML=R0(Mot.default);Mr.decodeHTMLStrict=R0(af.default);function R0(t){var n=z0(t);return function(r){return String(r).replace(Not,n)}}var Wg=function(t,n){return t<n?1:-1};Mr.decodeHTML=function(){for(var t=Object.keys(Aot.default).sort(Wg),n=Object.keys(af.default).sort(Wg),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=z0(af.default);function f(h){return h.substr(-1)!==";"&&(h+=";"),u(h)}return function(h){return String(h).replace(a,f)}}();function z0(t){return function(r){if(r.charAt(1)==="#"){var o=r.charAt(2);return o==="X"||o==="x"?Bg.default(parseInt(r.substr(3),16)):Bg.default(parseInt(r.substr(2),10))}return t[r.slice(1,-1)]||r}}var Tn={},I0=En&&En.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Tn,"__esModule",{value:!0});Tn.escapeUTF8=Tn.escape=Tn.encodeNonAsciiHTML=Tn.encodeHTML=Tn.encodeXML=void 0;var Pot=I0($0),F0=H0(Pot.default),q0=B0(F0);Tn.encodeXML=j0(F0);var Oot=I0(D0),eh=H0(Oot.default),Dot=B0(eh);Tn.encodeHTML=Rot(eh,Dot);Tn.encodeNonAsciiHTML=j0(eh);function H0(t){return Object.keys(t).sort().reduce(function(n,r){return n[t[r]]="&"+r+";",n},{})}function B0(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 W0=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,$ot=String.prototype.codePointAt!=null?function(t){return t.codePointAt(0)}:function(t){return(t.charCodeAt(0)-55296)*1024+t.charCodeAt(1)-56320+65536};function dc(t){return"&#x"+(t.length>1?$ot(t):t.charCodeAt(0)).toString(16).toUpperCase()+";"}function Rot(t,n){return function(r){return r.replace(n,function(o){return t[o]}).replace(W0,dc)}}var U0=new RegExp(q0.source+"|"+W0.source,"g");function zot(t){return t.replace(U0,dc)}Tn.escape=zot;function Iot(t){return t.replace(q0,dc)}Tn.escapeUTF8=Iot;function j0(t){return function(n){return n.replace(U0,function(r){return t[r]||dc(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=Mr,r=Tn;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=Tn;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=Mr;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}})})(O0);function Fot(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function Ug(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 qot(t,n,r){return n&&Ug(t.prototype,n),r&&Ug(t,r),t}function G0(t,n){var r=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Hot(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 Hot(t,n){if(!!t){if(typeof t=="string")return jg(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 jg(t,n)}}function jg(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 Bot=O0,Gg={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:Wot()};function Wot(){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 ea(0,5).forEach(function(n){ea(0,5).forEach(function(r){ea(0,5).forEach(function(o){return Uot(n,r,o,t)})})}),ea(0,23).forEach(function(n){var r=n+232,o=V0(n*10+8);t[r]="#"+o+o+o}),t}function Uot(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]=jot([u,f,h])}function V0(t){for(var n=t.toString(16);n.length<2;)n="0"+n;return n}function jot(t){var n=[],r=G0(t),o;try{for(r.s();!(o=r.n()).done;){var a=o.value;n.push(V0(a))}}catch(u){r.e(u)}finally{r.f()}return"#"+n.join("")}function Vg(t,n,r,o){var a;return n==="text"?a=Xot(r,o):n==="display"?a=Vot(t,r,o):n==="xterm256Foreground"?a=ga(t,o.colors[r]):n==="xterm256Background"?a=va(t,o.colors[r]):n==="rgb"&&(a=Got(t,r)),a}function Got(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 pa(t,(r===38?"color:#":"background-color:#")+a)}function Vot(t,n,r){n=parseInt(n,10);var o={"-1":function(){return"<br/>"},0:function(){return t.length&&K0(t)},1:function(){return oi(t,"b")},3:function(){return oi(t,"i")},4:function(){return oi(t,"u")},8:function(){return pa(t,"display:none")},9:function(){return oi(t,"strike")},22:function(){return pa(t,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return Xg(t,"i")},24:function(){return Xg(t,"u")},39:function(){return ga(t,r.fg)},49:function(){return va(t,r.bg)},53:function(){return pa(t,"text-decoration:overline")}},a;return o[n]?a=o[n]():4<n&&n<7?a=oi(t,"blink"):29<n&&n<38?a=ga(t,r.colors[n-30]):39<n&&n<48?a=va(t,r.colors[n-40]):89<n&&n<98?a=ga(t,r.colors[8+(n-90)]):99<n&&n<108&&(a=va(t,r.colors[8+(n-100)])),a}function K0(t){var n=t.slice(0);return t.length=0,n.reverse().map(function(r){return"</"+r+">"}).join("")}function ea(t,n){for(var r=[],o=t;o<=n;o++)r.push(o);return r}function Kot(t){return function(n){return(t===null||n.category!==t)&&t!=="all"}}function Kg(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 Xot(t,n){return n.escapeXML?Bot.encodeXML(t):t}function oi(t,n,r){return r||(r=""),t.push(n),"<".concat(n).concat(r?' style="'.concat(r,'"'):"",">")}function pa(t,n){return oi(t,"span",n)}function ga(t,n){return oi(t,"span","color:"+n)}function va(t,n){return oi(t,"span","background-color:"+n)}function Xg(t,n){var r;if(t.slice(-1)[0]===n&&(r=t.pop()),r)return"</"+n+">"}function Yot(t,n,r){var o=!1,a=3;function u(){return""}function f(V,W){return r("xterm256Foreground",W),""}function h(V,W){return r("xterm256Background",W),""}function p(V){return n.newline?r("display",-1):r("text",V),""}function g(V,W){o=!0,W.trim().length===0&&(W="0"),W=W.trimRight(";").split(";");var st=G0(W),nt;try{for(st.s();!(nt=st.n()).done;){var ft=nt.value;r("display",ft)}}catch(mt){st.e(mt)}finally{st.f()}return""}function m(V){return r("text",V),""}function w(V){return r("rgb",V),""}var _=[{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:w},{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 k(V,W){W>a&&o||(o=!1,t=t.replace(V.pattern,V.sub))}var A=[],P=t,L=P.length;t:for(;L>0;){for(var T=0,E=0,z=_.length;E<z;T=++E){var $=_[T];if(k($,T),t.length!==L){L=t.length;continue t}}if(t.length===L)break;A.push(0),L=t.length}return A}function Zot(t,n,r){return n!=="text"&&(t=t.filter(Kot(Kg(r))),t.push({token:n,data:r,category:Kg(r)})),t}var Jot=function(){function t(n){Fot(this,t),n=n||{},n.colors&&(n.colors=Object.assign({},Gg.colors,n.colors)),this.options=Object.assign({},Gg,n),this.stack=[],this.stickyStack=[]}return qot(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=Vg(a,h.token,h.data,u);p&&f.push(p)}),Yot(r.join(""),u,function(h,p){var g=Vg(a,h,p,u);g&&f.push(g),u.stream&&(o.stickyStack=Zot(o.stickyStack,h,p))}),a.length&&f.push(K0(a)),f.join("")}}]),t}(),Qot=Jot;function tst(t,n){return n&&t.endsWith(n)}async function X0(t,n,r){const o=encodeURI(`${t}:${n}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function Y0(t){return new Qot({fg:t?"#FFF":"#000",bg:t?"#000":"#FFF"})}const pc=TC(),est=Bk(pc);const nst={"h-full":"",class:"scrolls"},rst={key:0,class:"scrolls scrolls-rounded task-error"},ist=["innerHTML"],ost={key:1,class:"scrolls scrolls-rounded task-error"},sst=["onClickPassive"],lst={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},ast=ue({__name:"ViewReport",props:{file:null},setup(t){const n=t;function r(h,p){var g;return((g=h.result)==null?void 0:g.state)!=="fail"?[]:h.type==="test"?[{...h,level:p}]:[{...h,level:p},...h.tasks.flatMap(m=>r(m,p+1))]}function o(h){return h.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function a(h,p){const g=Y0(h);return p.map(m=>{var _,k;const w=m.result;if(w){const A=w.error;if(A){let P="";A.message.includes("\x1B")&&(P=`<b>${A.nameStr||A.name}</b>: ${g.toHtml(o(A.message))}`);const L=(_=A.stackStr)==null?void 0:_.includes("\x1B");(L||((k=A.stack)==null?void 0:k.includes("\x1B")))&&(P.length>0?P+=g.toHtml(o(L?A.stackStr:A.stack)):P=`<b>${A.nameStr||A.name}</b>: ${A.message}${g.toHtml(o(L?A.stackStr:A.stack))}`),P.length>0&&(w.htmlError=P)}}return m})}const u=kt(()=>{var w,_;const h=n.file,p=(_=(w=h==null?void 0:h.tasks)==null?void 0:w.flatMap(k=>r(k,0)))!=null?_:[],g=h==null?void 0:h.result;if(g==null?void 0:g.error){const k={id:h.id,name:h.name,level:0,type:"suite",mode:"run",tasks:[],result:g};p.unshift(k)}return p.length>0?a(pc.value,p):p});function f(h){return h.startsWith(lf.value.root)?h.slice(lf.value.root.length):h}return(h,p)=>{const g=Xi("tooltip");return ht(),Mt("div",nst,[Z(u).length?(ht(!0),Mt(ce,{key:0},ir(Z(u),m=>{var w,_,k;return ht(),Mt("div",{key:m.id},[ut("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:yn({"margin-left":`${(w=m.result)!=null&&w.htmlError?.5:2*m.level+.5}rem`})},[Ys(ae(m.name)+" ",1),(_=m.result)!=null&&_.htmlError?(ht(),Mt("div",rst,[ut("pre",{innerHTML:m.result.htmlError},null,8,ist)])):(k=m.result)!=null&&k.error?(ht(),Mt("div",ost,[ut("pre",null,[ut("b",null,ae(m.result.error.name||m.result.error.nameStr),1),Ys(": "+ae(m.result.error.message),1)]),(ht(!0),Mt(ce,null,ir(m.result.error.stacks,(A,P)=>{var L;return ht(),Mt("div",{key:P,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[ut("pre",null," - "+ae(f(A.file))+":"+ae(A.line)+":"+ae(A.column),1),Z(tst)(A.file,(L=n.file)==null?void 0:L.name)?un((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:T=>Z(X0)(A.file,A.line,A.column)},null,40,sst)),[[g,"Open in Editor",void 0,{bottom:!0}]]):_e("",!0)])}),128))])):_e("",!0)],4)])}),128)):(ht(),Mt("div",lst," All tests passed in this file "))])}}});var cst=Xo(ast,[["__scopeId","data-v-62decf63"]]);const ust={border:"b base","p-4":""},fst=["innerHTML"],hst=["textContent"],dst=ue({__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",ust,[ut("div",{"text-xs":"","mb-1":"",class:ve(n.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},ae(r(n.time))+" | "+ae(n.taskName)+" | "+ae(n.type),3),n.html?(ht(),Mt("pre",{key:0,"data-type":"html",innerHTML:n.content},null,8,fst)):(ht(),Mt("pre",{key:1,"data-type":"text",textContent:ae(n.content)},null,8,hst))]))}}),pst={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},gst={key:1,p6:""},vst=Ys(" Log something in your test and it would print here. (e.g. "),mst=ut("pre",{inline:""},"console.log(foo)",-1),yst=Ys(") "),bst=[vst,mst,yst],wst=ue({__name:"ViewConsoleOutput",setup(t){const n=kt(()=>{const o=N0.value;if(o){const a=Y0(pc.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&&Ue.state.idMap.get(o);return a?GC(a).slice(1).join(" > "):"-"}return(o,a)=>{var f;const u=dst;return(f=Z(n))!=null&&f.length?(ht(),Mt("div",pst,[(ht(!0),Mt(ce,null,ir(Z(n),({taskId:h,type:p,time:g,html:m,content:w})=>(ht(),Mt("div",{key:h,"font-mono":""},[Bt(u,{"task-name":r(h),type:p,time:g,content:w,html:m},null,8,["task-name","type","time","content","html"])]))),128))])):(ht(),Mt("p",gst,bst))}}});var Yi={exports:{}};(function(t,n){(function(r,o){t.exports=o()})(En,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),w=m&&/Qt\/\d+\.\d+/.test(r),_=!h&&/Chrome\/(\d+)/.exec(r),k=_&&+_[1],A=/Opera\//.test(r),P=/Apple Computer/.test(navigator.vendor),L=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),T=/PhantomJS/.test(r),E=P&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),z=/Android/.test(r),$=E||z||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),V=E||/Mac/.test(o),W=/\bCrOS\b/.test(r),st=/win/i.test(o),nt=A&&r.match(/Version\/(\d*\.\d*)/);nt&&(nt=Number(nt[1])),nt&&nt>=15&&(A=!1,m=!0);var ft=V&&(w||A&&(nt==null||nt<12.11)),mt=a||p&&g>=9;function xt(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ct=function(e,i){var l=e.className,s=xt(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 R(e,i){return U(e).appendChild(i)}function C(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 F(e,i,l,s){var c=C(e,i,l,s);return c.setAttribute("role","presentation"),c}var B;document.createRange?B=function(e,i,l,s){var c=document.createRange();return c.setEnd(s||e,l),c.setStart(e,i),c}:B=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 Q(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 yt(){var e;try{e=document.activeElement}catch{e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function Ct(e,i){var l=e.className;xt(i).test(l)||(e.className+=(l?" ":"")+i)}function Ut(e,i){for(var l=e.split(" "),s=0;s<l.length;s++)l[s]&&!xt(l[s]).test(i)&&(i+=" "+l[s]);return i}var Kt=function(e){e.select()};E?Kt=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:p&&(Kt=function(e){try{e.select()}catch{}});function Qt(e){var i=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,i)}}function Jt(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 K(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 tt=function(){this.id=null,this.f=null,this.time=0,this.handler=Qt(this.onTimeout,this)};tt.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},tt.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 j(e,i){for(var l=0;l<e.length;++l)if(e[l]==i)return l;return-1}var it=50,zt={toString:function(){return"CodeMirror.Pass"}},Xt={scroll:!1},Tt={origin:"*mouse"},Nt={origin:"+move"};function D(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 q=[""];function G(e){for(;q.length<=e;)q.push(Y(q)+" ");return q[e]}function Y(e){return e[e.length-1]}function rt(e,i){for(var l=[],s=0;s<e.length;s++)l[s]=i(e[s],s);return l}function pt(e,i,l){for(var s=0,c=l(i);s<e.length&&l(e[s])<=c;)s++;e.splice(s,0,i)}function _t(){}function dt(e,i){var l;return Object.create?l=Object.create(e):(_t.prototype=e,l=new _t),i&&Jt(i,l),l}var bt=/[\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()||bt.test(e))}function Pt(e,i){return i?i.source.indexOf("\\w")>-1&&ot(e)?!0:i.test(e):ot(e)}function Lt(e){for(var i in e)if(e.hasOwnProperty(i)&&e[i])return!1;return!0}var $t=/[\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 Ft(e){return e.charCodeAt(0)>=768&&$t.test(e)}function Vt(e,i,l){for(;(l<0?i>0:i<e.length)&&Ft(e.charAt(i));)i+=l;return i}function te(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 Zt(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 Ht=null;function Se(e,i,l){var s;Ht=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:Ht=c),d.from==i&&(d.from!=d.to&&l!="before"?s=c:Ht=c)}return s!=null?s:Ht}var xn=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function l(S){return S<=247?e.charAt(S):1424<=S&&S<=1524?"R":1536<=S&&S<=1785?i.charAt(S-1536):1774<=S&&S<=2220?"r":8192<=S&&S<=8203?"w":S==8204?"b":"L"}var s=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,c=/[stwN]/,d=/[LRr]/,v=/[Lb1n]/,y=/[1n]/;function b(S,N,O){this.level=S,this.from=N,this.to=O}return function(S,N){var O=N=="ltr"?"L":"R";if(S.length==0||N=="ltr"&&!s.test(S))return!1;for(var H=S.length,I=[],X=0;X<H;++X)I.push(l(S.charCodeAt(X)));for(var et=0,at=O;et<H;++et){var gt=I[et];gt=="m"?I[et]=at:at=gt}for(var wt=0,vt=O;wt<H;++wt){var St=I[wt];St=="1"&&vt=="r"?I[wt]="n":d.test(St)&&(vt=St,St=="r"&&(I[wt]="R"))}for(var Rt=1,Ot=I[0];Rt<H-1;++Rt){var Gt=I[Rt];Gt=="+"&&Ot=="1"&&I[Rt+1]=="1"?I[Rt]="1":Gt==","&&Ot==I[Rt+1]&&(Ot=="1"||Ot=="n")&&(I[Rt]=Ot),Ot=Gt}for(var he=0;he<H;++he){var Fe=I[he];if(Fe==",")I[he]="N";else if(Fe=="%"){var xe=void 0;for(xe=he+1;xe<H&&I[xe]=="%";++xe);for(var pn=he&&I[he-1]=="!"||xe<H&&I[xe]=="1"?"1":"N",rn=he;rn<xe;++rn)I[rn]=pn;he=xe-1}}for(var Ee=0,on=O;Ee<H;++Ee){var Be=I[Ee];on=="L"&&Be=="1"?I[Ee]="L":d.test(Be)&&(on=Be)}for(var Ne=0;Ne<H;++Ne)if(c.test(I[Ne])){var Ae=void 0;for(Ae=Ne+1;Ae<H&&c.test(I[Ae]);++Ae);for(var Ce=(Ne?I[Ne-1]:O)=="L",sn=(Ae<H?I[Ae]:O)=="L",wo=Ce==sn?Ce?"L":"R":O,Xr=Ne;Xr<Ae;++Xr)I[Xr]=wo;Ne=Ae-1}for(var Ke=[],er,qe=0;qe<H;)if(v.test(I[qe])){var du=qe;for(++qe;qe<H&&v.test(I[qe]);++qe);Ke.push(new b(0,du,qe))}else{var Sr=qe,Ai=Ke.length,Mi=N=="rtl"?1:0;for(++qe;qe<H&&I[qe]!="L";++qe);for(var Qe=Sr;Qe<qe;)if(y.test(I[Qe])){Sr<Qe&&(Ke.splice(Ai,0,new b(1,Sr,Qe)),Ai+=Mi);var xo=Qe;for(++Qe;Qe<qe&&y.test(I[Qe]);++Qe);Ke.splice(Ai,0,new b(2,xo,Qe)),Ai+=Mi,Sr=Qe}else++Qe;Sr<qe&&Ke.splice(Ai,0,new b(1,Sr,qe))}return N=="ltr"&&(Ke[0].level==1&&(er=S.match(/^\s+/))&&(Ke[0].from=er[0].length,Ke.unshift(new b(0,0,er[0].length))),Y(Ke).level==1&&(er=S.match(/\s+$/))&&(Y(Ke).to-=er[0].length,Ke.push(new b(0,H-er[0].length,H)))),N=="rtl"?Ke.reverse():Ke}}();function Oe(e,i){var l=e.order;return l==null&&(l=e.order=xn(e.text,i)),l}var Vn=[],Dt=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]||Vn).concat(l)}};function De(e,i){return e._handlers&&e._handlers[i]||Vn}function It(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=j(c,l);d>-1&&(s[i]=c.slice(0,d).concat(c.slice(d+1)))}}}function me(e,i){var l=De(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 ke(e,i,l){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),me(e,l||i.type,e,i),Zo(i)||i.codemirrorIgnore}function Ir(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)j(l,i[s])==-1&&l.push(i[s])}function Ye(e,i){return De(e,i).length>0}function Fr(e){e.prototype.on=function(i,l){Dt(this,i,l)},e.prototype.off=function(i,l){It(this,i,l)}}function $e(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Mn(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Zo(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Kn(e){$e(e),Mn(e)}function Jo(e){return e.target||e.srcElement}function Zi(e){var i=e.which;return i==null&&(e.button&1?i=1:e.button&2?i=3:e.button&4&&(i=2)),V&&e.ctrlKey&&i==1&&(i=3),i}var _n=function(){if(p&&g<9)return!1;var e=C("div");return"draggable"in e||"dragDrop"in e}(),Ji;function bc(e){if(Ji==null){var i=C("span","\u200B");R(e,C("span",[i,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Ji=i.offsetWidth<=1&&i.offsetHeight>2&&!(p&&g<8))}var l=Ji?C("span","\u200B"):C("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return l.setAttribute("cm-text",""),l}var Nn;function wc(e){if(Nn!=null)return Nn;var i=R(e,document.createTextNode("A\u062EA")),l=B(i,0,1).getBoundingClientRect(),s=B(i,1,2).getBoundingClientRect();return U(e),!l||l.left==l.right?!1:Nn=s.right-l.right<3}var Qi=`
|
|
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/)},ml=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},xc=function(){var e=C("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Xn=null;function Yn(e){if(Xn!=null)return Xn;var i=R(e,C("span","x")),l=i.getBoundingClientRect(),s=B(i,0,1).getBoundingClientRect();return Xn=Math.abs(l.left-s.left)>1}var Zn={},dr={};function pr(e,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Zn[e]=i}function _c(e,i){dr[e]=i}function mi(e){if(typeof e=="string"&&dr.hasOwnProperty(e))e=dr[e];else if(e&&typeof e.name=="string"&&dr.hasOwnProperty(e.name)){var i=dr[e.name];typeof i=="string"&&(i={name:i}),e=dt(i,e),e.name=i.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return mi("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return mi("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function qr(e,i){i=mi(i);var l=Zn[i.name];if(!l)return qr(e,"text/plain");var s=l(e,i);if(Ze.hasOwnProperty(i.name)){var c=Ze[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 Ze={};function yi(e,i){var l=Ze.hasOwnProperty(e)?Ze[e]:Ze[e]={};Jt(i,l)}function gr(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 to(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 yl(e,i,l){return e.startState?e.startState(i,l):!0}var ye=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};ye.prototype.eol=function(){return this.pos>=this.string.length},ye.prototype.sol=function(){return this.pos==this.lineStart},ye.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ye.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ye.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},ye.prototype.eatWhile=function(e){for(var i=this.pos;this.eat(e););return this.pos>i},ye.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},ye.prototype.skipToEnd=function(){this.pos=this.string.length},ye.prototype.skipTo=function(e){var i=this.string.indexOf(e,this.pos);if(i>-1)return this.pos=i,!0},ye.prototype.backUp=function(e){this.pos-=e},ye.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=K(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?K(this.string,this.lineStart,this.tabSize):0)},ye.prototype.indentation=function(){return K(this.string,null,this.tabSize)-(this.lineStart?K(this.string,this.lineStart,this.tabSize):0)},ye.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)}},ye.prototype.current=function(){return this.string.slice(this.start,this.pos)},ye.prototype.hideFirstChars=function(e,i){this.lineStart+=e;try{return i()}finally{this.lineStart-=e}},ye.prototype.lookAhead=function(e){var i=this.lineOracle;return i&&i.lookAhead(e)},ye.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Et(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 vr(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 bi(e,i,l){var s=[];return e.iter(i,l,function(c){s.push(c.text)}),s}function Pn(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=j(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 mr(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],b=y.height;if(i<b)break;i-=b}return l+v}function wi(e,i){return i>=e.first&&i<e.first+e.size}function eo(e,i){return String(e.lineNumberFormatter(i+e.firstLineNumber))}function x(e,i,l){if(l===void 0&&(l=null),!(this instanceof x))return new x(e,i,l);this.line=e,this.ch=i,this.sticky=l}function M(e,i){return e.line-i.line||e.ch-i.ch}function J(e,i){return e.sticky==i.sticky&&M(e,i)==0}function lt(e){return x(e.line,e.ch)}function qt(e,i){return M(e,i)<0?i:e}function Yt(e,i){return M(e,i)<0?e:i}function oe(e,i){return Math.max(e.first,Math.min(i,e.first+e.size-1))}function At(e,i){if(i.line<e.first)return x(e.first,0);var l=e.first+e.size-1;return i.line>l?x(l,Et(e,l).text.length):On(i,Et(e,i.line).text.length)}function On(e,i){var l=e.ch;return l==null||l>i?x(e.line,i):l<0?x(e.line,0):e}function bl(e,i){for(var l=[],s=0;s<i.length;s++)l[s]=At(e,i[s]);return l}var wl=function(e,i){this.state=e,this.lookAhead=i},Jn=function(e,i,l,s){this.state=i,this.doc=e,this.line=l,this.maxLookAhead=s||0,this.baseTokens=null,this.baseTokenPos=1};Jn.prototype.lookAhead=function(e){var i=this.doc.getLine(this.line+e);return i!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),i},Jn.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}},Jn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Jn.fromSaved=function(e,i,l){return i instanceof wl?new Jn(e,gr(e.mode,i.state),l,i.lookAhead):new Jn(e,gr(e.mode,i),l)},Jn.prototype.save=function(e){var i=e!==!1?gr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new wl(i,this.maxLookAhead):i};function mh(e,i,l,s){var c=[e.state.modeGen],d={};Sh(e,i.text,e.doc.mode,l,function(S,N){return c.push(S,N)},d,s);for(var v=l.state,y=function(S){l.baseTokens=c;var N=e.state.overlays[S],O=1,H=0;l.state=!0,Sh(e,i.text,N.mode,l,function(I,X){for(var et=O;H<I;){var at=c[O];at>I&&c.splice(O,1,I,c[O+1],at),O+=2,H=Math.min(I,at)}if(!!X)if(N.opaque)c.splice(et,O-et,I,"overlay "+X),O=et+2;else for(;et<O;et+=2){var gt=c[et+1];c[et+1]=(gt?gt+" ":"")+"overlay "+X}},d),l.state=v,l.baseTokens=null,l.baseTokenPos=1},b=0;b<e.state.overlays.length;++b)y(b);return{styles:c,classes:d.bgClass||d.textClass?d:null}}function yh(e,i,l){if(!i.styles||i.styles[0]!=e.state.modeGen){var s=Qo(e,re(i)),c=i.text.length>e.options.maxHighlightLength&&gr(e.doc.mode,s.state),d=mh(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 Qo(e,i,l){var s=e.doc,c=e.display;if(!s.mode.startState)return new Jn(s,!0,i);var d=Hy(e,i,l),v=d>s.first&&Et(s,d-1).stateAfter,y=v?Jn.fromSaved(s,v,d):new Jn(s,yl(s.mode),d);return s.iter(d,i,function(b){Sc(e,b.text,y);var S=y.line;b.stateAfter=S==i-1||S%5==0||S>=c.viewFrom&&S<c.viewTo?y.save():null,y.nextLine()}),l&&(s.modeFrontier=y.line),y}function Sc(e,i,l,s){var c=e.doc.mode,d=new ye(i,e.options.tabSize,l);for(d.start=d.pos=s||0,i==""&&bh(c,l.state);!d.eol();)kc(c,d,l.state),d.start=d.pos}function bh(e,i){if(e.blankLine)return e.blankLine(i);if(!!e.innerMode){var l=to(e,i);if(l.mode.blankLine)return l.mode.blankLine(l.state)}}function kc(e,i,l,s){for(var c=0;c<10;c++){s&&(s[0]=to(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 wh=function(e,i,l){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=i||null,this.state=l};function xh(e,i,l,s){var c=e.doc,d=c.mode,v;i=At(c,i);var y=Et(c,i.line),b=Qo(e,i.line,l),S=new ye(y.text,e.options.tabSize,b),N;for(s&&(N=[]);(s||S.pos<i.ch)&&!S.eol();)S.start=S.pos,v=kc(d,S,b.state),s&&N.push(new wh(S,v,gr(c.mode,b.state)));return s?N:new wh(S,v,b.state)}function _h(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 Sh(e,i,l,s,c,d,v){var y=l.flattenSpans;y==null&&(y=e.options.flattenSpans);var b=0,S=null,N=new ye(i,e.options.tabSize,s),O,H=e.options.addModeClass&&[null];for(i==""&&_h(bh(l,s.state),d);!N.eol();){if(N.pos>e.options.maxHighlightLength?(y=!1,v&&Sc(e,i,s,N.pos),N.pos=i.length,O=null):O=_h(kc(l,N,s.state,H),d),H){var I=H[0].name;I&&(O="m-"+(O?I+" "+O:I))}if(!y||S!=O){for(;b<N.start;)b=Math.min(N.start,b+5e3),c(b,S);S=O}N.start=N.pos}for(;b<N.pos;){var X=Math.min(N.pos,b+5e3);c(X,S),b=X}}function Hy(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 b=Et(d,y-1),S=b.stateAfter;if(S&&(!l||y+(S instanceof wl?S.lookAhead:0)<=d.modeFrontier))return y;var N=K(b.text,null,e.options.tabSize);(c==null||s>N)&&(c=y-1,s=N)}return c}function By(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=Et(e,s).stateAfter;if(c&&(!(c instanceof wl)||s+c.lookAhead<i)){l=s+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,l)}}var kh=!1,yr=!1;function Wy(){kh=!0}function Uy(){yr=!0}function xl(e,i,l){this.marker=e,this.from=i,this.to=l}function ts(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 Gy(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 Vy(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 b=d.to==null||(v.inclusiveRight?d.to>=i:d.to>i);(s||(s=[])).push(new xl(v,d.from,b?null:d.to))}}return s}function Ky(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 b=d.from==null||(v.inclusiveLeft?d.from<=i:d.from<i);(s||(s=[])).push(new xl(v,b?null:d.from-i,d.to==null?null:d.to-i))}}return s}function Cc(e,i){if(i.full)return null;var l=wi(e,i.from.line)&&Et(e,i.from.line).markedSpans,s=wi(e,i.to.line)&&Et(e,i.to.line).markedSpans;if(!l&&!s)return null;var c=i.from.ch,d=i.to.ch,v=M(i.from,i.to)==0,y=Vy(l,c,v),b=Ky(s,d,v),S=i.text.length==1,N=Y(i.text).length+(S?c:0);if(y)for(var O=0;O<y.length;++O){var H=y[O];if(H.to==null){var I=ts(b,H.marker);I?S&&(H.to=I.to==null?null:I.to+N):H.to=c}}if(b)for(var X=0;X<b.length;++X){var et=b[X];if(et.to!=null&&(et.to+=N),et.from==null){var at=ts(y,et.marker);at||(et.from=N,S&&(y||(y=[])).push(et))}else et.from+=N,S&&(y||(y=[])).push(et)}y&&(y=Ch(y)),b&&b!=y&&(b=Ch(b));var gt=[y];if(!S){var wt=i.text.length-2,vt;if(wt>0&&y)for(var St=0;St<y.length;++St)y[St].to==null&&(vt||(vt=[])).push(new xl(y[St].marker,null,null));for(var Rt=0;Rt<wt;++Rt)gt.push(vt);gt.push(b)}return gt}function Ch(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 Xy(e,i,l){var s=null;if(e.iter(i.line,l.line+1,function(I){if(I.markedSpans)for(var X=0;X<I.markedSpans.length;++X){var et=I.markedSpans[X].marker;et.readOnly&&(!s||j(s,et)==-1)&&(s||(s=[])).push(et)}}),!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),b=0;b<c.length;++b){var S=c[b];if(!(M(S.to,y.from)<0||M(S.from,y.to)>0)){var N=[b,1],O=M(S.from,y.from),H=M(S.to,y.to);(O<0||!v.inclusiveLeft&&!O)&&N.push({from:S.from,to:y.from}),(H>0||!v.inclusiveRight&&!H)&&N.push({from:y.to,to:S.to}),c.splice.apply(c,N),b+=N.length-3}}return c}function Th(e){var i=e.markedSpans;if(!!i){for(var l=0;l<i.length;++l)i[l].marker.detachLine(e);e.markedSpans=null}}function Lh(e,i){if(!!i){for(var l=0;l<i.length;++l)i[l].marker.attachLine(e);e.markedSpans=i}}function _l(e){return e.inclusiveLeft?-1:0}function Sl(e){return e.inclusiveRight?1:0}function Tc(e,i){var l=e.lines.length-i.lines.length;if(l!=0)return l;var s=e.find(),c=i.find(),d=M(s.from,c.from)||_l(e)-_l(i);if(d)return-d;var v=M(s.to,c.to)||Sl(e)-Sl(i);return v||i.id-e.id}function Eh(e,i){var l=yr&&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||Tc(s,c.marker)<0)&&(s=c.marker);return s}function Ah(e){return Eh(e,!0)}function kl(e){return Eh(e,!1)}function Yy(e,i){var l=yr&&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||Tc(s,d.marker)<0)&&(s=d.marker)}return s}function Mh(e,i,l,s,c){var d=Et(e,i),v=yr&&d.markedSpans;if(v)for(var y=0;y<v.length;++y){var b=v[y];if(!!b.marker.collapsed){var S=b.marker.find(0),N=M(S.from,l)||_l(b.marker)-_l(c),O=M(S.to,s)||Sl(b.marker)-Sl(c);if(!(N>=0&&O<=0||N<=0&&O>=0)&&(N<=0&&(b.marker.inclusiveRight&&c.inclusiveLeft?M(S.to,l)>=0:M(S.to,l)>0)||N>=0&&(b.marker.inclusiveRight&&c.inclusiveLeft?M(S.from,s)<=0:M(S.from,s)<0)))return!0}}}function zn(e){for(var i;i=Ah(e);)e=i.find(-1,!0).line;return e}function Zy(e){for(var i;i=kl(e);)e=i.find(1,!0).line;return e}function Jy(e){for(var i,l;i=kl(e);)e=i.find(1,!0).line,(l||(l=[])).push(e);return l}function Lc(e,i){var l=Et(e,i),s=zn(l);return l==s?i:re(s)}function Nh(e,i){if(i>e.lastLine())return i;var l=Et(e,i),s;if(!Hr(e,l))return i;for(;s=kl(l);)l=s.find(1,!0).line;return re(l)+1}function Hr(e,i){var l=yr&&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&&Ec(e,i,s))return!0}}}function Ec(e,i,l){if(l.to==null){var s=l.marker.find(1,!0);return Ec(e,s.line,ts(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)&&Ec(e,i,c))return!0}function br(e){e=zn(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 Cl(e){if(e.height==0)return 0;for(var i=e.text.length,l,s=e;l=Ah(s);){var c=l.find(0,!0);s=c.from.line,i+=c.from.ch-c.to.ch}for(s=e;l=kl(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 Ac(e){var i=e.display,l=e.doc;i.maxLine=Et(l,l.first),i.maxLineLength=Cl(i.maxLine),i.maxLineChanged=!0,l.iter(function(s){var c=Cl(s);c>i.maxLineLength&&(i.maxLineLength=c,i.maxLine=s)})}var no=function(e,i,l){this.text=e,Lh(this,i),this.height=l?l(this):1};no.prototype.lineNo=function(){return re(this)},Fr(no);function Qy(e,i,l,s){e.text=i,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Th(e),Lh(e,l);var c=s?s(e):1;c!=e.height&&Pn(e,c)}function tb(e){e.parent=null,Th(e)}var eb={},nb={};function Ph(e,i){if(!e||/^\s*$/.test(e))return null;var l=i.addModeClass?nb:eb;return l[e]||(l[e]=e.replace(/\S+/g,"cm-$&"))}function Oh(e,i){var l=F("span",null,null,m?"padding-right: .1px":null),s={pre:F("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=ib,wc(e.display.measure)&&(v=Oe(d,e.doc.direction))&&(s.addToken=sb(s.addToken,v)),s.map=[];var y=i!=e.display.externalMeasured&&re(d);lb(d,s,yh(e,d,y)),d.styleClasses&&(d.styleClasses.bgClass&&(s.bgClass=Ut(d.styleClasses.bgClass,s.bgClass||"")),d.styleClasses.textClass&&(s.textClass=Ut(d.styleClasses.textClass,s.textClass||""))),s.map.length==0&&s.map.push(0,0,s.content.appendChild(bc(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 b=s.content.lastChild;(/\bcm-tab\b/.test(b.className)||b.querySelector&&b.querySelector(".cm-tab"))&&(s.content.className="cm-tab-wrap-hack")}return me(e,"renderLine",e,i.line,s.pre),s.pre.className&&(s.textClass=Ut(s.pre.className,s.textClass||"")),s}function rb(e){var i=C("span","\u2022","cm-invalidchar");return i.title="\\u"+e.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function ib(e,i,l,s,c,d,v){if(!!i){var y=e.splitSpaces?ob(i,e.trailingSpace):i,b=e.cm.state.specialChars,S=!1,N;if(!b.test(i))e.col+=i.length,N=document.createTextNode(y),e.map.push(e.pos,e.pos+i.length,N),p&&g<9&&(S=!0),e.pos+=i.length;else{N=document.createDocumentFragment();for(var O=0;;){b.lastIndex=O;var H=b.exec(i),I=H?H.index-O:i.length-O;if(I){var X=document.createTextNode(y.slice(O,O+I));p&&g<9?N.appendChild(C("span",[X])):N.appendChild(X),e.map.push(e.pos,e.pos+I,X),e.col+=I,e.pos+=I}if(!H)break;O+=I+1;var et=void 0;if(H[0]==" "){var at=e.cm.options.tabSize,gt=at-e.col%at;et=N.appendChild(C("span",G(gt),"cm-tab")),et.setAttribute("role","presentation"),et.setAttribute("cm-text"," "),e.col+=gt}else H[0]=="\r"||H[0]==`
|
|
11
|
-
`?(et=N.appendChild(C("span",H[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),et.setAttribute("cm-text",H[0]),e.col+=1):(et=e.cm.options.specialCharPlaceholder(H[0]),et.setAttribute("cm-text",H[0]),p&&g<9?N.appendChild(C("span",[et])):N.appendChild(et),e.col+=1);e.map.push(e.pos,e.pos+1,et),e.pos++}}if(e.trailingSpace=y.charCodeAt(i.length-1)==32,l||s||c||S||d||v){var wt=l||"";s&&(wt+=s),c&&(wt+=c);var vt=C("span",[N],wt,d);if(v)for(var St in v)v.hasOwnProperty(St)&&St!="style"&&St!="class"&&vt.setAttribute(St,v[St]);return e.content.appendChild(vt)}e.content.appendChild(N)}}function ob(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 sb(e,i){return function(l,s,c,d,v,y,b){c=c?c+" cm-force-border":"cm-force-border";for(var S=l.pos,N=S+s.length;;){for(var O=void 0,H=0;H<i.length&&(O=i[H],!(O.to>S&&O.from<=S));H++);if(O.to>=N)return e(l,s,c,d,v,y,b);e(l,s.slice(0,O.to-S),c,d,null,y,b),d=null,s=s.slice(O.to-S),S=O.to}}}function Dh(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 lb(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]),Ph(l[v+1],i.cm.options));return}for(var y=c.length,b=0,S=1,N="",O,H,I=0,X,et,at,gt,wt;;){if(I==b){X=et=at=H="",wt=null,gt=null,I=1/0;for(var vt=[],St=void 0,Rt=0;Rt<s.length;++Rt){var Ot=s[Rt],Gt=Ot.marker;if(Gt.type=="bookmark"&&Ot.from==b&&Gt.widgetNode)vt.push(Gt);else if(Ot.from<=b&&(Ot.to==null||Ot.to>b||Gt.collapsed&&Ot.to==b&&Ot.from==b)){if(Ot.to!=null&&Ot.to!=b&&I>Ot.to&&(I=Ot.to,et=""),Gt.className&&(X+=" "+Gt.className),Gt.css&&(H=(H?H+";":"")+Gt.css),Gt.startStyle&&Ot.from==b&&(at+=" "+Gt.startStyle),Gt.endStyle&&Ot.to==I&&(St||(St=[])).push(Gt.endStyle,Ot.to),Gt.title&&((wt||(wt={})).title=Gt.title),Gt.attributes)for(var he in Gt.attributes)(wt||(wt={}))[he]=Gt.attributes[he];Gt.collapsed&&(!gt||Tc(gt.marker,Gt)<0)&&(gt=Ot)}else Ot.from>b&&I>Ot.from&&(I=Ot.from)}if(St)for(var Fe=0;Fe<St.length;Fe+=2)St[Fe+1]==I&&(et+=" "+St[Fe]);if(!gt||gt.from==b)for(var xe=0;xe<vt.length;++xe)Dh(i,0,vt[xe]);if(gt&&(gt.from||0)==b){if(Dh(i,(gt.to==null?y+1:gt.to)-b,gt.marker,gt.from==null),gt.to==null)return;gt.to==b&&(gt=!1)}}if(b>=y)break;for(var pn=Math.min(y,I);;){if(N){var rn=b+N.length;if(!gt){var Ee=rn>pn?N.slice(0,pn-b):N;i.addToken(i,Ee,O?O+X:X,at,b+Ee.length==I?et:"",H,wt)}if(rn>=pn){N=N.slice(pn-b),b=pn;break}b=rn,at=""}N=c.slice(d,d=l[S++]),O=Ph(l[S++],i.cm.options)}}}function $h(e,i,l){this.line=i,this.rest=Jy(i),this.size=this.rest?re(Y(this.rest))-l+1:1,this.node=this.text=null,this.hidden=Hr(e,i)}function Tl(e,i,l){for(var s=[],c,d=i;d<l;d=c){var v=new $h(e.doc,Et(e.doc,d),d);c=d+v.size,s.push(v)}return s}var ro=null;function ab(e){ro?ro.ops.push(e):e.ownsGroup=ro={ops:[e],delayedCallbacks:[]}}function cb(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 ub(e,i){var l=e.ownsGroup;if(!!l)try{cb(l)}finally{ro=null,i(l)}}var es=null;function Re(e,i){var l=De(e,i);if(!!l.length){var s=Array.prototype.slice.call(arguments,2),c;ro?c=ro.delayedCallbacks:es?c=es:(c=es=[],setTimeout(fb,0));for(var d=function(y){c.push(function(){return l[y].apply(null,s)})},v=0;v<l.length;++v)d(v)}}function fb(){var e=es;es=null;for(var i=0;i<e.length;++i)e[i]()}function Rh(e,i,l,s){for(var c=0;c<i.changes.length;c++){var d=i.changes[c];d=="text"?db(e,i):d=="gutter"?Ih(e,i,l,s):d=="class"?Mc(e,i):d=="widget"&&pb(e,i,s)}i.changes=null}function ns(e){return e.node==e.text&&(e.node=C("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 hb(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=ns(i);i.background=s.insertBefore(C("div",null,l),s.firstChild),e.display.input.setUneditable(i.background)}}function zh(e,i){var l=e.display.externalMeasured;return l&&l.line==i.line?(e.display.externalMeasured=null,i.measure=l.measure,l.built):Oh(e,i)}function db(e,i){var l=i.text.className,s=zh(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,Mc(e,i)):l&&(i.text.className=l)}function Mc(e,i){hb(e,i),i.line.wrapClass?ns(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 Ih(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=ns(i);i.gutterBackground=C("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=ns(i),y=i.gutter=C("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(C("div",eo(e.options,l),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+s.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),d)for(var b=0;b<e.display.gutterSpecs.length;++b){var S=e.display.gutterSpecs[b].className,N=d.hasOwnProperty(S)&&d[S];N&&y.appendChild(C("div",[N],"CodeMirror-gutter-elt","left: "+s.gutterLeft[S]+"px; width: "+s.gutterWidth[S]+"px"))}}}function pb(e,i,l){i.alignable&&(i.alignable=null);for(var s=xt("CodeMirror-linewidget"),c=i.node.firstChild,d=void 0;c;c=d)d=c.nextSibling,s.test(c.className)&&i.node.removeChild(c);Fh(e,i,l)}function gb(e,i,l,s){var c=zh(e,i);return i.text=i.node=c.pre,c.bgClass&&(i.bgClass=c.bgClass),c.textClass&&(i.textClass=c.textClass),Mc(e,i),Ih(e,i,l,s),Fh(e,i,s),i.node}function Fh(e,i,l){if(qh(e,i.line,i,l,!0),i.rest)for(var s=0;s<i.rest.length;s++)qh(e,i.rest[s],i,l,!1)}function qh(e,i,l,s,c){if(!!i.widgets)for(var d=ns(l),v=0,y=i.widgets;v<y.length;++v){var b=y[v],S=C("div",[b.node],"CodeMirror-linewidget"+(b.className?" "+b.className:""));b.handleMouseEvents||S.setAttribute("cm-ignore-events","true"),vb(b,S,l,s),e.display.input.setUneditable(S),c&&b.above?d.insertBefore(S,l.gutter||l.text):d.appendChild(S),Re(b,"redraw")}}function vb(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 rs(e){if(e.height!=null)return e.height;var i=e.doc.cm;if(!i)return 0;if(!Q(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;"),R(i.display.measure,C("div",[e.node],null,l))}return e.height=e.node.parentNode.offsetHeight}function wr(e,i){for(var l=Jo(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 Ll(e){return e.lineSpace.offsetTop}function Nc(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Hh(e){if(e.cachedPaddingH)return e.cachedPaddingH;var i=R(e.measure,C("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 Qn(e){return it-e.display.nativeBarWidth}function xi(e){return e.display.scroller.clientWidth-Qn(e)-e.display.barWidth}function Pc(e){return e.display.scroller.clientHeight-Qn(e)-e.display.barHeight}function mb(e,i,l){var s=e.options.lineWrapping,c=s&&xi(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 b=v[y],S=v[y+1];Math.abs(b.bottom-S.bottom)>2&&d.push((b.bottom+S.top)/2-l.top)}}d.push(l.bottom-l.top)}}function Bh(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 yb(e,i){i=zn(i);var l=re(i),s=e.display.externalMeasured=new $h(e.doc,i,l);s.lineN=l;var c=s.built=Oh(e,s);return s.text=c.pre,R(e.display.lineMeasure,c.pre),s}function Wh(e,i,l,s){return tr(e,io(e,i),l,s)}function Oc(e,i){if(i>=e.display.viewFrom&&i<e.display.viewTo)return e.display.view[ki(e,i)];var l=e.display.externalMeasured;if(l&&i>=l.lineN&&i<l.lineN+l.size)return l}function io(e,i){var l=re(i),s=Oc(e,l);s&&!s.text?s=null:s&&s.changes&&(Rh(e,s,l,Ic(e)),e.curOp.forceUpdate=!0),s||(s=yb(e,i));var c=Bh(s,i,l);return{line:i,view:s,rect:null,map:c.map,cache:c.cache,before:c.before,hasHeights:!1}}function tr(e,i,l,s,c){i.before&&(l=-1);var d=l+(s||""),v;return i.cache.hasOwnProperty(d)?v=i.cache[d]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(mb(e,i.view,i.rect),i.hasHeights=!0),v=wb(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 Uh={left:0,right:0,top:0,bottom:0};function jh(e,i,l){for(var s,c,d,v,y,b,S=0;S<e.length;S+=3)if(y=e[S],b=e[S+1],i<y?(c=0,d=1,v="left"):i<b?(c=i-y,d=c+1):(S==e.length-3||i==b&&e[S+3]>i)&&(d=b-y,c=d-1,i>=b&&(v="right")),c!=null){if(s=e[S+2],y==b&&l==(s.insertLeft?"left":"right")&&(v=l),l=="left"&&c==0)for(;S&&e[S-2]==e[S-3]&&e[S-1].insertLeft;)s=e[(S-=3)+2],v="left";if(l=="right"&&c==b-y)for(;S<e.length-3&&e[S+3]==e[S+4]&&!e[S+5].insertLeft;)s=e[(S+=3)+2],v="right";break}return{node:s,start:c,end:d,collapse:v,coverStart:y,coverEnd:b}}function bb(e,i){var l=Uh;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 wb(e,i,l,s){var c=jh(i.map,l,s),d=c.node,v=c.start,y=c.end,b=c.collapse,S;if(d.nodeType==3){for(var N=0;N<4;N++){for(;v&&Ft(i.line.text.charAt(c.coverStart+v));)--v;for(;c.coverStart+y<c.coverEnd&&Ft(i.line.text.charAt(c.coverStart+y));)++y;if(p&&g<9&&v==0&&y==c.coverEnd-c.coverStart?S=d.parentNode.getBoundingClientRect():S=bb(B(d,v,y).getClientRects(),s),S.left||S.right||v==0)break;y=v,v=v-1,b="right"}p&&g<11&&(S=xb(e.display.measure,S))}else{v>0&&(b=s="right");var O;e.options.lineWrapping&&(O=d.getClientRects()).length>1?S=O[s=="right"?O.length-1:0]:S=d.getBoundingClientRect()}if(p&&g<9&&!v&&(!S||!S.left&&!S.right)){var H=d.parentNode.getClientRects()[0];H?S={left:H.left,right:H.left+so(e.display),top:H.top,bottom:H.bottom}:S=Uh}for(var I=S.top-i.rect.top,X=S.bottom-i.rect.top,et=(I+X)/2,at=i.view.measure.heights,gt=0;gt<at.length-1&&!(et<at[gt]);gt++);var wt=gt?at[gt-1]:0,vt=at[gt],St={left:(b=="right"?S.right:S.left)-i.rect.left,right:(b=="left"?S.left:S.right)-i.rect.left,top:wt,bottom:vt};return!S.left&&!S.right&&(St.bogus=!0),e.options.singleCursorHeightPerLine||(St.rtop=I,St.rbottom=X),St}function xb(e,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Yn(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 Gh(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 Vh(e){e.display.externalMeasure=null,U(e.display.lineMeasure);for(var i=0;i<e.display.view.length;i++)Gh(e.display.view[i])}function is(e){Vh(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Kh(){return _&&z?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Xh(){return _&&z?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Dc(e){var i=zn(e),l=i.widgets,s=0;if(l)for(var c=0;c<l.length;++c)l[c].above&&(s+=rs(l[c]));return s}function El(e,i,l,s,c){if(!c){var d=Dc(i);l.top+=d,l.bottom+=d}if(s=="line")return l;s||(s="local");var v=br(i);if(s=="local"?v+=Ll(e.display):v-=e.display.viewOffset,s=="page"||s=="window"){var y=e.display.lineSpace.getBoundingClientRect();v+=y.top+(s=="window"?0:Xh());var b=y.left+(s=="window"?0:Kh());l.left+=b,l.right+=b}return l.top+=v,l.bottom+=v,l}function Yh(e,i,l){if(l=="div")return i;var s=i.left,c=i.top;if(l=="page")s-=Kh(),c-=Xh();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 Al(e,i,l,s,c){return s||(s=Et(e.doc,i.line)),El(e,s,Wh(e,s,i.ch,c),l)}function In(e,i,l,s,c,d){s=s||Et(e.doc,i.line),c||(c=io(e,s));function v(X,et){var at=tr(e,c,X,et?"right":"left",d);return et?at.left=at.right:at.right=at.left,El(e,s,at,l)}var y=Oe(s,e.doc.direction),b=i.ch,S=i.sticky;if(b>=s.text.length?(b=s.text.length,S="before"):b<=0&&(b=0,S="after"),!y)return v(S=="before"?b-1:b,S=="before");function N(X,et,at){var gt=y[et],wt=gt.level==1;return v(at?X-1:X,wt!=at)}var O=Se(y,b,S),H=Ht,I=N(b,O,S=="before");return H!=null&&(I.other=N(b,H,S!="before")),I}function Zh(e,i){var l=0;i=At(e.doc,i),e.options.lineWrapping||(l=so(e.display)*i.ch);var s=Et(e.doc,i.line),c=br(s)+Ll(e.display);return{left:l,right:l,top:c,bottom:c+s.height}}function $c(e,i,l,s,c){var d=x(e,i,l);return d.xRel=c,s&&(d.outside=s),d}function Rc(e,i,l){var s=e.doc;if(l+=e.display.viewOffset,l<0)return $c(s.first,0,null,-1,-1);var c=mr(s,l),d=s.first+s.size-1;if(c>d)return $c(s.first+s.size-1,Et(s,d).text.length,null,1,1);i<0&&(i=0);for(var v=Et(s,c);;){var y=_b(e,v,c,i,l),b=Yy(v,y.ch+(y.xRel>0||y.outside>0?1:0));if(!b)return y;var S=b.find(1);if(S.line==c)return S;v=Et(s,c=S.line)}}function Jh(e,i,l,s){s-=Dc(i);var c=i.text.length,d=te(function(v){return tr(e,l,v-1).bottom<=s},c,0);return c=te(function(v){return tr(e,l,v).top>s},d,c),{begin:d,end:c}}function Qh(e,i,l,s){l||(l=io(e,i));var c=El(e,i,tr(e,l,s),"line").top;return Jh(e,i,l,c)}function zc(e,i,l,s){return e.bottom<=l?!1:e.top>l?!0:(s?e.left:e.right)>i}function _b(e,i,l,s,c){c-=br(i);var d=io(e,i),v=Dc(i),y=0,b=i.text.length,S=!0,N=Oe(i,e.doc.direction);if(N){var O=(e.options.lineWrapping?kb:Sb)(e,i,l,d,N,s,c);S=O.level!=1,y=S?O.from:O.to-1,b=S?O.to:O.from-1}var H=null,I=null,X=te(function(Rt){var Ot=tr(e,d,Rt);return Ot.top+=v,Ot.bottom+=v,zc(Ot,s,c,!1)?(Ot.top<=c&&Ot.left<=s&&(H=Rt,I=Ot),!0):!1},y,b),et,at,gt=!1;if(I){var wt=s-I.left<I.right-s,vt=wt==S;X=H+(vt?0:1),at=vt?"after":"before",et=wt?I.left:I.right}else{!S&&(X==b||X==y)&&X++,at=X==0?"after":X==i.text.length?"before":tr(e,d,X-(S?1:0)).bottom+v<=c==S?"after":"before";var St=In(e,x(l,X,at),"line",i,d);et=St.left,gt=c<St.top?-1:c>=St.bottom?1:0}return X=Vt(i.text,X,1),$c(l,X,at,gt,s-et)}function Sb(e,i,l,s,c,d,v){var y=te(function(O){var H=c[O],I=H.level!=1;return zc(In(e,x(l,I?H.to:H.from,I?"before":"after"),"line",i,s),d,v,!0)},0,c.length-1),b=c[y];if(y>0){var S=b.level!=1,N=In(e,x(l,S?b.from:b.to,S?"after":"before"),"line",i,s);zc(N,d,v,!0)&&N.top>v&&(b=c[y-1])}return b}function kb(e,i,l,s,c,d,v){var y=Jh(e,i,s,v),b=y.begin,S=y.end;/\s/.test(i.text.charAt(S-1))&&S--;for(var N=null,O=null,H=0;H<c.length;H++){var I=c[H];if(!(I.from>=S||I.to<=b)){var X=I.level!=1,et=tr(e,s,X?Math.min(S,I.to)-1:Math.max(b,I.from)).right,at=et<d?d-et+1e9:et-d;(!N||O>at)&&(N=I,O=at)}}return N||(N=c[c.length-1]),N.from<b&&(N={from:b,to:N.to,level:N.level}),N.to>S&&(N={from:N.from,to:S,level:N.level}),N}var _i;function oo(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(_i==null){_i=C("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)_i.appendChild(document.createTextNode("x")),_i.appendChild(C("br"));_i.appendChild(document.createTextNode("x"))}R(e.measure,_i);var l=_i.offsetHeight/50;return l>3&&(e.cachedTextHeight=l),U(e.measure),l||1}function so(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var i=C("span","xxxxxxxxxx"),l=C("pre",[i],"CodeMirror-line-like");R(e.measure,l);var s=i.getBoundingClientRect(),c=(s.right-s.left)/10;return c>2&&(e.cachedCharWidth=c),c||10}function Ic(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:Fc(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:l,gutterWidth:s,wrapperWidth:i.wrapper.clientWidth}}function Fc(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function td(e){var i=oo(e.display),l=e.options.lineWrapping,s=l&&Math.max(5,e.display.scroller.clientWidth/so(e.display)-3);return function(c){if(Hr(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 qc(e){var i=e.doc,l=td(e);i.iter(function(s){var c=l(s);c!=s.height&&Pn(s,c)})}function Si(e,i,l,s){var c=e.display;if(!l&&Jo(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 b=Rc(e,d,v),S;if(s&&b.xRel>0&&(S=Et(e.doc,b.line).text).length==b.ch){var N=K(S,S.length,e.options.tabSize)-S.length;b=x(b.line,Math.max(0,Math.round((d-Hh(e.display).left)/so(e.display))-N))}return b}function ki(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 en(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)yr&&Lc(e.doc,i)<c.viewTo&&Wr(e);else if(l<=c.viewFrom)yr&&Nh(e.doc,l+s)>c.viewFrom?Wr(e):(c.viewFrom+=s,c.viewTo+=s);else if(i<=c.viewFrom&&l>=c.viewTo)Wr(e);else if(i<=c.viewFrom){var d=Ml(e,l,l+s,1);d?(c.view=c.view.slice(d.index),c.viewFrom=d.lineN,c.viewTo+=s):Wr(e)}else if(l>=c.viewTo){var v=Ml(e,i,i,-1);v?(c.view=c.view.slice(0,v.index),c.viewTo=v.lineN):Wr(e)}else{var y=Ml(e,i,i,-1),b=Ml(e,l,l+s,1);y&&b?(c.view=c.view.slice(0,y.index).concat(Tl(e,y.lineN,b.lineN)).concat(c.view.slice(b.index)),c.viewTo+=s):Wr(e)}var S=c.externalMeasured;S&&(l<S.lineN?S.lineN+=s:i<S.lineN+S.size&&(c.externalMeasured=null))}function Br(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[ki(e,i)];if(d.node!=null){var v=d.changes||(d.changes=[]);j(v,l)==-1&&v.push(l)}}}function Wr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Ml(e,i,l,s){var c=ki(e,i),d,v=e.display.view;if(!yr||l==e.doc.first+e.doc.size)return{index:c,lineN:l};for(var y=e.display.viewFrom,b=0;b<c;b++)y+=v[b].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(;Lc(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 Cb(e,i,l){var s=e.display,c=s.view;c.length==0||i>=s.viewTo||l<=s.viewFrom?(s.view=Tl(e,i,l),s.viewFrom=i):(s.viewFrom>i?s.view=Tl(e,i,s.viewFrom).concat(s.view):s.viewFrom<i&&(s.view=s.view.slice(ki(e,i))),s.viewFrom=i,s.viewTo<l?s.view=s.view.concat(Tl(e,s.viewTo,l)):s.viewTo>l&&(s.view=s.view.slice(0,ki(e,l)))),s.viewTo=l}function ed(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 os(e){e.display.input.showSelection(e.display.input.prepareSelection())}function nd(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 b=l.sel.ranges[y];if(!(b.from().line>=e.display.viewTo||b.to().line<e.display.viewFrom)){var S=b.empty();if(v){var N=v(e,b);N&&Hc(e,N,c)}else(S||e.options.showCursorWhenSelecting)&&Hc(e,b.head,c);S||Tb(e,b,d)}}return s}function Hc(e,i,l){var s=In(e,i,"div",null,null,!e.options.singleCursorHeightPerLine),c=l.appendChild(C("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=Al(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(C("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 Nl(e,i){return e.top-i.top||e.left-i.left}function Tb(e,i,l){var s=e.display,c=e.doc,d=document.createDocumentFragment(),v=Hh(e.display),y=v.left,b=Math.max(s.sizerWidth,xi(e)-s.sizer.offsetLeft)-v.right,S=c.direction=="ltr";function N(vt,St,Rt,Ot){St<0&&(St=0),St=Math.round(St),Ot=Math.round(Ot),d.appendChild(C("div",null,"CodeMirror-selected","position: absolute; left: "+vt+`px;
|
|
12
|
-
top: `+St+"px; width: "+(Rt==null?b-vt:Rt)+`px;
|
|
13
|
-
height: `+(Ot-St)+"px"))}function O(vt,St,Rt){var Ot=Et(c,vt),Gt=Ot.text.length,he,Fe;function xe(Ee,on){return Al(e,x(vt,Ee),"div",Ot,on)}function pn(Ee,on,Be){var Ne=Qh(e,Ot,null,Ee),Ae=on=="ltr"==(Be=="after")?"left":"right",Ce=Be=="after"?Ne.begin:Ne.end-(/\s/.test(Ot.text.charAt(Ne.end-1))?2:1);return xe(Ce,Ae)[Ae]}var rn=Oe(Ot,c.direction);return Zt(rn,St||0,Rt==null?Gt:Rt,function(Ee,on,Be,Ne){var Ae=Be=="ltr",Ce=xe(Ee,Ae?"left":"right"),sn=xe(on-1,Ae?"right":"left"),wo=St==null&&Ee==0,Xr=Rt==null&&on==Gt,Ke=Ne==0,er=!rn||Ne==rn.length-1;if(sn.top-Ce.top<=3){var qe=(S?wo:Xr)&&Ke,du=(S?Xr:wo)&&er,Sr=qe?y:(Ae?Ce:sn).left,Ai=du?b:(Ae?sn:Ce).right;N(Sr,Ce.top,Ai-Sr,Ce.bottom)}else{var Mi,Qe,xo,pu;Ae?(Mi=S&&wo&&Ke?y:Ce.left,Qe=S?b:pn(Ee,Be,"before"),xo=S?y:pn(on,Be,"after"),pu=S&&Xr&&er?b:sn.right):(Mi=S?pn(Ee,Be,"before"):y,Qe=!S&&wo&&Ke?b:Ce.right,xo=!S&&Xr&&er?y:sn.left,pu=S?pn(on,Be,"after"):b),N(Mi,Ce.top,Qe-Mi,Ce.bottom),Ce.bottom<sn.top&&N(y,Ce.bottom,null,sn.top),N(xo,sn.top,pu-xo,sn.bottom)}(!he||Nl(Ce,he)<0)&&(he=Ce),Nl(sn,he)<0&&(he=sn),(!Fe||Nl(Ce,Fe)<0)&&(Fe=Ce),Nl(sn,Fe)<0&&(Fe=sn)}),{start:he,end:Fe}}var H=i.from(),I=i.to();if(H.line==I.line)O(H.line,H.ch,I.ch);else{var X=Et(c,H.line),et=Et(c,I.line),at=zn(X)==zn(et),gt=O(H.line,H.ch,at?X.text.length+1:null).end,wt=O(I.line,at?0:null,I.ch).start;at&&(gt.top<wt.top-2?(N(gt.right,gt.top,null,gt.bottom),N(y,wt.top,wt.left,wt.bottom)):N(gt.right,gt.top,wt.left-gt.right,gt.bottom)),gt.bottom<wt.top&&N(y,gt.bottom,null,wt.top)}l.appendChild(d)}function Bc(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()||lo(e),i.cursorDiv.style.visibility=(l=!l)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function rd(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Uc(e))}function Wc(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&lo(e))},100)}function Uc(e,i){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(me(e,"focus",e,i),e.state.focused=!0,Ct(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()),Bc(e))}function lo(e,i){e.state.delayingBlurEvent||(e.state.focused&&(me(e,"blur",e,i),e.state.focused=!1,ct(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Pl(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],b=e.options.lineWrapping,S=void 0,N=0;if(!y.hidden){if(c+=y.line.height,p&&g<8){var O=y.node.offsetTop+y.node.offsetHeight;S=O-l,l=O}else{var H=y.node.getBoundingClientRect();S=H.bottom-H.top,!b&&y.text.firstChild&&(N=y.text.firstChild.getBoundingClientRect().right-H.left-1)}var I=y.line.height-S;if((I>.005||I<-.005)&&(c<s&&(d-=I),Pn(y.line,S),id(y.line),y.rest))for(var X=0;X<y.rest.length;X++)id(y.rest[X]);if(N>e.display.sizerWidth){var et=Math.ceil(N/so(e.display));et>e.display.maxLineLength&&(e.display.maxLineLength=et,e.display.maxLine=y.line,e.display.maxLineChanged=!0)}}}Math.abs(d)>2&&(i.scroller.scrollTop+=d)}function id(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 Ol(e,i,l){var s=l&&l.top!=null?Math.max(0,l.top):e.scroller.scrollTop;s=Math.floor(s-Ll(e));var c=l&&l.bottom!=null?l.bottom:s+e.wrapper.clientHeight,d=mr(i,s),v=mr(i,c);if(l&&l.ensure){var y=l.ensure.from.line,b=l.ensure.to.line;y<d?(d=y,v=mr(i,br(Et(i,y))+e.wrapper.clientHeight)):Math.min(b,i.lastLine())>=v&&(d=mr(i,br(Et(i,b))-e.wrapper.clientHeight),v=b)}return{from:d,to:Math.max(v,d+1)}}function Lb(e,i){if(!ke(e,"scrollCursorIntoView")){var l=e.display,s=l.sizer.getBoundingClientRect(),c=null;if(i.top+s.top<0?c=!0:i.bottom+s.top>(window.innerHeight||document.documentElement.clientHeight)&&(c=!1),c!=null&&!T){var d=C("div","\u200B",null,`position: absolute;
|
|
14
|
-
top: `+(i.top-l.viewOffset-Ll(e.display))+`px;
|
|
15
|
-
height: `+(i.bottom-i.top+Qn(e)+l.barHeight)+`px;
|
|
16
|
-
left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");e.display.lineSpace.appendChild(d),d.scrollIntoView(c),e.display.lineSpace.removeChild(d)}}}function Eb(e,i,l,s){s==null&&(s=0);var c;!e.options.lineWrapping&&i==l&&(l=i.sticky=="before"?x(i.line,i.ch+1,"before"):i,i=i.ch?x(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var d=0;d<5;d++){var v=!1,y=In(e,i),b=!l||l==i?y:In(e,l);c={left:Math.min(y.left,b.left),top:Math.min(y.top,b.top)-s,right:Math.max(y.left,b.left),bottom:Math.max(y.bottom,b.bottom)+s};var S=jc(e,c),N=e.doc.scrollTop,O=e.doc.scrollLeft;if(S.scrollTop!=null&&(ls(e,S.scrollTop),Math.abs(e.doc.scrollTop-N)>1&&(v=!0)),S.scrollLeft!=null&&(Ci(e,S.scrollLeft),Math.abs(e.doc.scrollLeft-O)>1&&(v=!0)),!v)break}return c}function Ab(e,i){var l=jc(e,i);l.scrollTop!=null&&ls(e,l.scrollTop),l.scrollLeft!=null&&Ci(e,l.scrollLeft)}function jc(e,i){var l=e.display,s=oo(e.display);i.top<0&&(i.top=0);var c=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:l.scroller.scrollTop,d=Pc(e),v={};i.bottom-i.top>d&&(i.bottom=i.top+d);var y=e.doc.height+Nc(l),b=i.top<s,S=i.bottom>y-s;if(i.top<c)v.scrollTop=b?0:i.top;else if(i.bottom>c+d){var N=Math.min(i.top,(S?y:i.bottom)-d);N!=c&&(v.scrollTop=N)}var O=e.options.fixedGutter?0:l.gutters.offsetWidth,H=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:l.scroller.scrollLeft-O,I=xi(e)-l.gutters.offsetWidth,X=i.right-i.left>I;return X&&(i.right=i.left+I),i.left<10?v.scrollLeft=0:i.left<H?v.scrollLeft=Math.max(0,i.left+O-(X?0:10)):i.right>I+H-3&&(v.scrollLeft=i.right+(X?0:10)-I),v}function Gc(e,i){i!=null&&(Dl(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+i)}function ao(e){Dl(e);var i=e.getCursor();e.curOp.scrollToPos={from:i,to:i,margin:e.options.cursorScrollMargin}}function ss(e,i,l){(i!=null||l!=null)&&Dl(e),i!=null&&(e.curOp.scrollLeft=i),l!=null&&(e.curOp.scrollTop=l)}function Mb(e,i){Dl(e),e.curOp.scrollToPos=i}function Dl(e){var i=e.curOp.scrollToPos;if(i){e.curOp.scrollToPos=null;var l=Zh(e,i.from),s=Zh(e,i.to);od(e,l,s,i.margin)}}function od(e,i,l,s){var c=jc(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});ss(e,c.scrollLeft,c.scrollTop)}function ls(e,i){Math.abs(e.doc.scrollTop-i)<2||(a||Kc(e,{top:i}),sd(e,i,!0),a&&Kc(e),us(e,100))}function sd(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 Ci(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,fd(e),e.display.scroller.scrollLeft!=i&&(e.display.scroller.scrollLeft=i),e.display.scrollbars.setScrollLeft(i))}function as(e){var i=e.display,l=i.gutters.offsetWidth,s=Math.round(e.doc.height+Nc(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+Qn(e)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:l}}var Ti=function(e,i,l){this.cm=l;var s=this.vert=C("div",[C("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),c=this.horiz=C("div",[C("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");s.tabIndex=c.tabIndex=-1,e(s),e(c),Dt(s,"scroll",function(){s.clientHeight&&i(s.scrollTop,"vertical")}),Dt(c,"scroll",function(){c.clientWidth&&i(c.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,p&&g<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ti.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}},Ti.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ti.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ti.prototype.zeroWidthHack=function(){var e=V&&!L?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new tt,this.disableVert=new tt},Ti.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)},Ti.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var cs=function(){};cs.prototype.update=function(){return{bottom:0,right:0}},cs.prototype.setScrollLeft=function(){},cs.prototype.setScrollTop=function(){},cs.prototype.clear=function(){};function co(e,i){i||(i=as(e));var l=e.display.barWidth,s=e.display.barHeight;ld(e,i);for(var c=0;c<4&&l!=e.display.barWidth||s!=e.display.barHeight;c++)l!=e.display.barWidth&&e.options.lineWrapping&&Pl(e),ld(e,as(e)),l=e.display.barWidth,s=e.display.barHeight}function ld(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 ad={native:Ti,null:cs};function cd(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ct(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new ad[e.options.scrollbarStyle](function(i){e.display.wrapper.insertBefore(i,e.display.scrollbarFiller),Dt(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"?Ci(e,i):ls(e,i)},e),e.display.scrollbars.addClass&&Ct(e.display.wrapper,e.display.scrollbars.addClass)}var Nb=0;function Li(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:++Nb,markArrays:null},ab(e.curOp)}function Ei(e){var i=e.curOp;i&&ub(i,function(l){for(var s=0;s<l.ops.length;s++)l.ops[s].cm.curOp=null;Pb(l)})}function Pb(e){for(var i=e.ops,l=0;l<i.length;l++)Ob(i[l]);for(var s=0;s<i.length;s++)Db(i[s]);for(var c=0;c<i.length;c++)$b(i[c]);for(var d=0;d<i.length;d++)Rb(i[d]);for(var v=0;v<i.length;v++)zb(i[v])}function Ob(e){var i=e.cm,l=i.display;Fb(i),e.updateMaxLine&&Ac(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 $l(i,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Db(e){e.updatedDisplay=e.mustUpdate&&Vc(e.cm,e.update)}function $b(e){var i=e.cm,l=i.display;e.updatedDisplay&&Pl(i),e.barMeasure=as(i),l.maxLineChanged&&!i.options.lineWrapping&&(e.adjustWidthTo=Wh(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+Qn(i)+i.display.barWidth),e.maxScrollLeft=Math.max(0,l.sizer.offsetLeft+e.adjustWidthTo-xi(i))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=l.input.prepareSelection())}function Rb(e){var i=e.cm;e.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<i.doc.scrollLeft&&Ci(i,Math.min(i.display.scroller.scrollLeft,e.maxScrollLeft),!0),i.display.maxLineChanged=!1);var l=e.focus&&e.focus==yt();e.preparedSelection&&i.display.input.showSelection(e.preparedSelection,l),(e.updatedDisplay||e.startHeight!=i.doc.height)&&co(i,e.barMeasure),e.updatedDisplay&&Yc(i,e.barMeasure),e.selectionChanged&&Bc(i),i.state.focused&&e.updateInput&&i.display.input.reset(e.typing),l&&rd(e.cm)}function zb(e){var i=e.cm,l=i.display,s=i.doc;if(e.updatedDisplay&&ud(i,e.update),l.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(l.wheelStartX=l.wheelStartY=null),e.scrollTop!=null&&sd(i,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Ci(i,e.scrollLeft,!0,!0),e.scrollToPos){var c=Eb(i,At(s,e.scrollToPos.from),At(s,e.scrollToPos.to),e.scrollToPos.margin);Lb(i,c)}var d=e.maybeHiddenMarkers,v=e.maybeUnhiddenMarkers;if(d)for(var y=0;y<d.length;++y)d[y].lines.length||me(d[y],"hide");if(v)for(var b=0;b<v.length;++b)v[b].lines.length&&me(v[b],"unhide");l.wrapper.offsetHeight&&(s.scrollTop=i.display.scroller.scrollTop),e.changeObjs&&me(i,"changes",i,e.changeObjs),e.update&&e.update.finish()}function dn(e,i){if(e.curOp)return i();Li(e);try{return i()}finally{Ei(e)}}function ze(e,i){return function(){if(e.curOp)return i.apply(e,arguments);Li(e);try{return i.apply(e,arguments)}finally{Ei(e)}}}function Je(e){return function(){if(this.curOp)return e.apply(this,arguments);Li(this);try{return e.apply(this,arguments)}finally{Ei(this)}}}function Ie(e){return function(){var i=this.cm;if(!i||i.curOp)return e.apply(this,arguments);Li(i);try{return e.apply(this,arguments)}finally{Ei(i)}}}function us(e,i){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(i,Qt(Ib,e))}function Ib(e){var i=e.doc;if(!(i.highlightFrontier>=e.display.viewTo)){var l=+new Date+e.options.workTime,s=Qo(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?gr(i.mode,s.state):null,b=mh(e,d,s,!0);y&&(s.state=y),d.styles=b.styles;var S=d.styleClasses,N=b.classes;N?d.styleClasses=N:S&&(d.styleClasses=null);for(var O=!v||v.length!=d.styles.length||S!=N&&(!S||!N||S.bgClass!=N.bgClass||S.textClass!=N.textClass),H=0;!O&&H<v.length;++H)O=v[H]!=d.styles[H];O&&c.push(s.line),d.stateAfter=s.save(),s.nextLine()}else d.text.length<=e.options.maxHighlightLength&&Sc(e,d.text,s),d.stateAfter=s.line%5==0?s.save():null,s.nextLine();if(+new Date>l)return us(e,e.options.workDelay),!0}),i.highlightFrontier=s.line,i.modeFrontier=Math.max(i.modeFrontier,s.line),c.length&&dn(e,function(){for(var d=0;d<c.length;d++)Br(e,c[d],"text")})}}var $l=function(e,i,l){var s=e.display;this.viewport=i,this.visible=Ol(s,e.doc,i),this.editorIsHidden=!s.wrapper.offsetWidth,this.wrapperHeight=s.wrapper.clientHeight,this.wrapperWidth=s.wrapper.clientWidth,this.oldDisplayWidth=xi(e),this.force=l,this.dims=Ic(e),this.events=[]};$l.prototype.signal=function(e,i){Ye(e,i)&&this.events.push(arguments)},$l.prototype.finish=function(){for(var e=0;e<this.events.length;e++)me.apply(null,this.events[e])};function Fb(e){var i=e.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=Qn(e)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=Qn(e)+"px",i.scrollbarsClipped=!0)}function qb(e){if(e.hasFocus())return null;var i=yt();if(!i||!Q(e.display.lineDiv,i))return null;var l={activeElt:i};if(window.getSelection){var s=window.getSelection();s.anchorNode&&s.extend&&Q(e.display.lineDiv,s.anchorNode)&&(l.anchorNode=s.anchorNode,l.anchorOffset=s.anchorOffset,l.focusNode=s.focusNode,l.focusOffset=s.focusOffset)}return l}function Hb(e){if(!(!e||!e.activeElt||e.activeElt==yt())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&Q(document.body,e.anchorNode)&&Q(document.body,e.focusNode))){var i=window.getSelection(),l=document.createRange();l.setEnd(e.anchorNode,e.anchorOffset),l.collapse(!1),i.removeAllRanges(),i.addRange(l),i.extend(e.focusNode,e.focusOffset)}}function Vc(e,i){var l=e.display,s=e.doc;if(i.editorIsHidden)return Wr(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&&ed(e)==0)return!1;hd(e)&&(Wr(e),i.dims=Ic(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)),yr&&(d=Lc(e.doc,d),v=Nh(e.doc,v));var y=d!=l.viewFrom||v!=l.viewTo||l.lastWrapHeight!=i.wrapperHeight||l.lastWrapWidth!=i.wrapperWidth;Cb(e,d,v),l.viewOffset=br(Et(e.doc,l.viewFrom)),e.display.mover.style.top=l.viewOffset+"px";var b=ed(e);if(!y&&b==0&&!i.force&&l.renderedView==l.view&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo))return!1;var S=qb(e);return b>4&&(l.lineDiv.style.display="none"),Bb(e,l.updateLineNumbers,i.dims),b>4&&(l.lineDiv.style.display=""),l.renderedView=l.view,Hb(S),U(l.cursorDiv),U(l.selectionDiv),l.gutters.style.height=l.sizer.style.minHeight=0,y&&(l.lastWrapHeight=i.wrapperHeight,l.lastWrapWidth=i.wrapperWidth,us(e,400)),l.updateLineNumbers=null,!0}function ud(e,i){for(var l=i.viewport,s=!0;;s=!1){if(!s||!e.options.lineWrapping||i.oldDisplayWidth==xi(e)){if(l&&l.top!=null&&(l={top:Math.min(e.doc.height+Nc(e.display)-Pc(e),l.top)}),i.visible=Ol(e.display,e.doc,l),i.visible.from>=e.display.viewFrom&&i.visible.to<=e.display.viewTo)break}else s&&(i.visible=Ol(e.display,e.doc,l));if(!Vc(e,i))break;Pl(e);var c=as(e);os(e),co(e,c),Yc(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 Kc(e,i){var l=new $l(e,i);if(Vc(e,l)){Pl(e),ud(e,l);var s=as(e);os(e),co(e,s),Yc(e,s),l.finish()}}function Bb(e,i,l){var s=e.display,c=e.options.lineNumbers,d=s.lineDiv,v=d.firstChild;function y(X){var et=X.nextSibling;return m&&V&&e.display.currentWheelTarget==X?X.style.display="none":X.parentNode.removeChild(X),et}for(var b=s.view,S=s.viewFrom,N=0;N<b.length;N++){var O=b[N];if(!O.hidden)if(!O.node||O.node.parentNode!=d){var H=gb(e,O,S,l);d.insertBefore(H,v)}else{for(;v!=O.node;)v=y(v);var I=c&&i!=null&&i<=S&&O.lineNumber;O.changes&&(j(O.changes,"gutter")>-1&&(I=!1),Rh(e,O,S,l)),I&&(U(O.lineNumber),O.lineNumber.appendChild(document.createTextNode(eo(e.options,S)))),v=O.node.nextSibling}S+=O.size}for(;v;)v=y(v)}function Xc(e){var i=e.gutters.offsetWidth;e.sizer.style.marginLeft=i+"px",Re(e,"gutterChanged",e)}function Yc(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+Qn(e)+"px"}function fd(e){var i=e.display,l=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!e.options.fixedGutter))){for(var s=Fc(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 b=0;b<y.length;b++)y[b].style.left=d}e.options.fixedGutter&&(i.gutters.style.left=s+c+"px")}}function hd(e){if(!e.options.lineNumbers)return!1;var i=e.doc,l=eo(e.options,i.first+i.size-1),s=e.display;if(l.length!=s.lineNumChars){var c=s.measure.appendChild(C("div",[C("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",Xc(e.display),!0}return!1}function Zc(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 dd(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(C("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",Xc(e)}function fs(e){dd(e.display),en(e),fd(e)}function Wb(e,i,l,s){var c=this;this.input=l,c.scrollbarFiller=C("div",null,"CodeMirror-scrollbar-filler"),c.scrollbarFiller.setAttribute("cm-not-content","true"),c.gutterFiller=C("div",null,"CodeMirror-gutter-filler"),c.gutterFiller.setAttribute("cm-not-content","true"),c.lineDiv=F("div",null,"CodeMirror-code"),c.selectionDiv=C("div",null,null,"position: relative; z-index: 1"),c.cursorDiv=C("div",null,"CodeMirror-cursors"),c.measure=C("div",null,"CodeMirror-measure"),c.lineMeasure=C("div",null,"CodeMirror-measure"),c.lineSpace=F("div",[c.measure,c.lineMeasure,c.selectionDiv,c.cursorDiv,c.lineDiv],null,"position: relative; outline: none");var d=F("div",[c.lineSpace],"CodeMirror-lines");c.mover=C("div",[d],null,"position: relative"),c.sizer=C("div",[c.mover],"CodeMirror-sizer"),c.sizerWidth=null,c.heightForcer=C("div",null,null,"position: absolute; height: "+it+"px; width: 1px;"),c.gutters=C("div",null,"CodeMirror-gutters"),c.lineGutter=null,c.scroller=C("div",[c.sizer,c.heightForcer,c.gutters],"CodeMirror-scroll"),c.scroller.setAttribute("tabIndex","-1"),c.wrapper=C("div",[c.scrollbarFiller,c.gutterFiller,c.scroller],"CodeMirror"),c.wrapper.setAttribute("translate","no"),p&&g<8&&(c.gutters.style.zIndex=-1,c.scroller.style.paddingRight=0),!m&&!(a&&$)&&(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=Zc(s.gutters,s.lineNumbers),dd(c),l.init(c)}var Rl=0,xr=null;p?xr=-.53:a?xr=15:_?xr=-.7:P&&(xr=-1/3);function pd(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 Ub(e){var i=pd(e);return i.x*=xr,i.y*=xr,i}function gd(e,i){_&&k>=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=pd(i),s=l.x,c=l.y,d=xr;i.deltaMode===0&&(s=i.deltaX,c=i.deltaY,d=1);var v=e.display,y=v.scroller,b=y.scrollWidth>y.clientWidth,S=y.scrollHeight>y.clientHeight;if(!!(s&&b||c&&S)){if(c&&V&&m){t:for(var N=i.target,O=v.view;N!=y;N=N.parentNode)for(var H=0;H<O.length;H++)if(O[H].node==N){e.display.currentWheelTarget=N;break t}}if(s&&!a&&!A&&d!=null){c&&S&&ls(e,Math.max(0,y.scrollTop+c*d)),Ci(e,Math.max(0,y.scrollLeft+s*d)),(!c||c&&S)&&$e(i),v.wheelStartX=null;return}if(c&&d!=null){var I=c*d,X=e.doc.scrollTop,et=X+v.wrapper.clientHeight;I<0?X=Math.max(0,X+I-50):et=Math.min(e.doc.height,et+I+50),Kc(e,{top:X,bottom:et})}Rl<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 at=y.scrollLeft-v.wheelStartX,gt=y.scrollTop-v.wheelStartY,wt=gt&&v.wheelDY&>/v.wheelDY||at&&v.wheelDX&&at/v.wheelDX;v.wheelStartX=v.wheelStartY=null,wt&&(xr=(xr*Rl+wt)/(Rl+1),++Rl)}},200)):(v.wheelDX+=s,v.wheelDY+=c))}}var Sn=function(e,i){this.ranges=e,this.primIndex=i};Sn.prototype.primary=function(){return this.ranges[this.primIndex]},Sn.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(!J(l.anchor,s.anchor)||!J(l.head,s.head))return!1}return!0},Sn.prototype.deepCopy=function(){for(var e=[],i=0;i<this.ranges.length;i++)e[i]=new ie(lt(this.ranges[i].anchor),lt(this.ranges[i].head));return new Sn(e,this.primIndex)},Sn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Sn.prototype.contains=function(e,i){i||(i=e);for(var l=0;l<this.ranges.length;l++){var s=this.ranges[l];if(M(i,s.from())>=0&&M(e,s.to())<=0)return l}return-1};var ie=function(e,i){this.anchor=e,this.head=i};ie.prototype.from=function(){return Yt(this.anchor,this.head)},ie.prototype.to=function(){return qt(this.anchor,this.head)},ie.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Fn(e,i,l){var s=e&&e.options.selectionsMayTouch,c=i[l];i.sort(function(H,I){return M(H.from(),I.from())}),l=j(i,c);for(var d=1;d<i.length;d++){var v=i[d],y=i[d-1],b=M(y.to(),v.from());if(s&&!v.empty()?b>0:b>=0){var S=Yt(y.from(),v.from()),N=qt(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:S,O?S:N))}}return new Sn(i,l)}function Ur(e,i){return new Sn([new ie(e,i||e)],0)}function jr(e){return e.text?x(e.from.line+e.text.length-1,Y(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function vd(e,i){if(M(e,i.from)<0)return e;if(M(e,i.to)<=0)return jr(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+=jr(i).ch-i.to.ch),x(l,s)}function Jc(e,i){for(var l=[],s=0;s<e.sel.ranges.length;s++){var c=e.sel.ranges[s];l.push(new ie(vd(c.anchor,i),vd(c.head,i)))}return Fn(e.cm,l,e.sel.primIndex)}function md(e,i,l){return e.line==i.line?x(l.line,e.ch-i.ch+l.ch):x(l.line+(e.line-i.line),e.ch)}function jb(e,i,l){for(var s=[],c=x(e.first,0),d=c,v=0;v<i.length;v++){var y=i[v],b=md(y.from,c,d),S=md(jr(y),c,d);if(c=y.to,d=S,l=="around"){var N=e.sel.ranges[v],O=M(N.head,N.anchor)<0;s[v]=new ie(O?S:b,O?b:S)}else s[v]=new ie(b,b)}return new Sn(s,e.sel.primIndex)}function Qc(e){e.doc.mode=qr(e.options,e.doc.modeOption),hs(e)}function hs(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,us(e,100),e.state.modeGen++,e.curOp&&en(e)}function yd(e,i){return i.from.ch==0&&i.to.ch==0&&Y(i.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function tu(e,i,l,s){function c(wt){return l?l[wt]:null}function d(wt,vt,St){Qy(wt,vt,St,s),Re(wt,"change",wt,i)}function v(wt,vt){for(var St=[],Rt=wt;Rt<vt;++Rt)St.push(new no(S[Rt],c(Rt),s));return St}var y=i.from,b=i.to,S=i.text,N=Et(e,y.line),O=Et(e,b.line),H=Y(S),I=c(S.length-1),X=b.line-y.line;if(i.full)e.insert(0,v(0,S.length)),e.remove(S.length,e.size-S.length);else if(yd(e,i)){var et=v(0,S.length-1);d(O,O.text,I),X&&e.remove(y.line,X),et.length&&e.insert(y.line,et)}else if(N==O)if(S.length==1)d(N,N.text.slice(0,y.ch)+H+N.text.slice(b.ch),I);else{var at=v(1,S.length-1);at.push(new no(H+N.text.slice(b.ch),I,s)),d(N,N.text.slice(0,y.ch)+S[0],c(0)),e.insert(y.line+1,at)}else if(S.length==1)d(N,N.text.slice(0,y.ch)+S[0]+O.text.slice(b.ch),c(0)),e.remove(y.line+1,X);else{d(N,N.text.slice(0,y.ch)+S[0],c(0)),d(O,H+O.text.slice(b.ch),I);var gt=v(1,S.length-1);X>1&&e.remove(y.line+1,X-1),e.insert(y.line+1,gt)}Re(e,"change",e,i)}function Gr(e,i,l){function s(c,d,v){if(c.linked)for(var y=0;y<c.linked.length;++y){var b=c.linked[y];if(b.doc!=d){var S=v&&b.sharedHist;l&&!S||(i(b.doc,S),s(b.doc,c,S))}}}s(e,null,!0)}function bd(e,i){if(i.cm)throw new Error("This document is already in use.");e.doc=i,i.cm=e,qc(e),Qc(e),wd(e),e.options.direction=i.direction,e.options.lineWrapping||Ac(e),e.options.mode=i.modeOption,en(e)}function wd(e){(e.doc.direction=="rtl"?Ct:ct)(e.display.lineDiv,"CodeMirror-rtl")}function Gb(e){dn(e,function(){wd(e),en(e)})}function zl(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 eu(e,i){var l={from:lt(i.from),to:jr(i),text:vr(e,i.from,i.to)};return Sd(e,l,i.from.line,i.to.line+1),Gr(e,function(s){return Sd(s,l,i.from.line,i.to.line+1)},!0),l}function xd(e){for(;e.length;){var i=Y(e);if(i.ranges)e.pop();else break}}function Vb(e,i){if(i)return xd(e.done),Y(e.done);if(e.done.length&&!Y(e.done).ranges)return Y(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Y(e.done)}function _d(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=Vb(c,c.lastOp==s)))y=Y(v.changes),M(i.from,i.to)==0&&M(i.from,y.to)==0?y.to=jr(i):v.changes.push(eu(e,i));else{var b=Y(c.done);for((!b||!b.ranges)&&Il(e.sel,c.done),v={changes:[eu(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||me(e,"historyAdded")}function Kb(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 Xb(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||Kb(e,d,Y(c.done),i))?c.done[c.done.length-1]=i:Il(i,c.done),c.lastSelTime=+new Date,c.lastSelOrigin=d,c.lastSelOp=l,s&&s.clearRedo!==!1&&xd(c.undone)}function Il(e,i){var l=Y(i);l&&l.ranges&&l.equals(e)||i.push(e)}function Sd(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 Yb(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 Zb(e,i){var l=i["spans_"+e.id];if(!l)return null;for(var s=[],c=0;c<i.text.length;++c)s.push(Yb(l[c]));return s}function kd(e,i){var l=Zb(e,i),s=Cc(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 b=v[y],S=0;S<d.length;++S)if(d[S].marker==b.marker)continue t;d.push(b)}}else v&&(l[c]=v)}return l}function uo(e,i,l){for(var s=[],c=0;c<e.length;++c){var d=e[c];if(d.ranges){s.push(l?Sn.prototype.deepCopy.call(d):d);continue}var v=d.changes,y=[];s.push({changes:y});for(var b=0;b<v.length;++b){var S=v[b],N=void 0;if(y.push({from:S.from,to:S.to,text:S.text}),i)for(var O in S)(N=O.match(/^spans_(\d+)$/))&&j(i,Number(N[1]))>-1&&(Y(y)[O]=S[O],delete S[O])}}return s}function nu(e,i,l,s){if(s){var c=e.anchor;if(l){var d=M(i,c)<0;d!=M(l,c)<0?(c=i,i=l):d!=M(i,l)<0&&(i=l)}return new ie(c,i)}else return new ie(l||i,i)}function Fl(e,i,l,s,c){c==null&&(c=e.cm&&(e.cm.display.shift||e.extend)),Ve(e,new Sn([nu(e.sel.primary(),i,l,c)],0),s)}function Cd(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]=nu(e.sel.ranges[d],i[d],null,c);var v=Fn(e.cm,s,e.sel.primIndex);Ve(e,v,l)}function ru(e,i,l,s){var c=e.sel.ranges.slice(0);c[i]=l,Ve(e,Fn(e.cm,c,e.sel.primIndex),s)}function Td(e,i,l,s){Ve(e,Ur(i,l),s)}function Jb(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(At(e,c[d].anchor),At(e,c[d].head))},origin:l&&l.origin};return me(e,"beforeSelectionChange",e,s),e.cm&&me(e.cm,"beforeSelectionChange",e.cm,s),s.ranges!=i.ranges?Fn(e.cm,s.ranges,s.ranges.length-1):i}function Ld(e,i,l){var s=e.history.done,c=Y(s);c&&c.ranges?(s[s.length-1]=i,ql(e,i,l)):Ve(e,i,l)}function Ve(e,i,l){ql(e,i,l),Xb(e,e.sel,e.cm?e.cm.curOp.id:NaN,l)}function ql(e,i,l){(Ye(e,"beforeSelectionChange")||e.cm&&Ye(e.cm,"beforeSelectionChange"))&&(i=Jb(e,i,l));var s=l&&l.bias||(M(i.primary().head,e.sel.primary().head)<0?-1:1);Ed(e,Md(e,i,s,!0)),!(l&&l.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&ao(e.cm)}function Ed(e,i){i.equals(e.sel)||(e.sel=i,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Ir(e.cm)),Re(e,"cursorActivity",e))}function Ad(e){Ed(e,Md(e,e.sel,null,!1))}function Md(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],b=Hl(e,v.anchor,y&&y.anchor,l,s),S=v.head==v.anchor?b:Hl(e,v.head,y&&y.head,l,s);(c||b!=v.anchor||S!=v.head)&&(c||(c=i.ranges.slice(0,d)),c[d]=new ie(b,S))}return c?Fn(e.cm,c,i.primIndex):i}function fo(e,i,l,s,c){var d=Et(e,i.line);if(d.markedSpans)for(var v=0;v<d.markedSpans.length;++v){var y=d.markedSpans[v],b=y.marker,S="selectLeft"in b?!b.selectLeft:b.inclusiveLeft,N="selectRight"in b?!b.selectRight:b.inclusiveRight;if((y.from==null||(S?y.from<=i.ch:y.from<i.ch))&&(y.to==null||(N?y.to>=i.ch:y.to>i.ch))){if(c&&(me(b,"beforeCursorEnter"),b.explicitlyCleared))if(d.markedSpans){--v;continue}else break;if(!b.atomic)continue;if(l){var O=b.find(s<0?1:-1),H=void 0;if((s<0?N:S)&&(O=Nd(e,O,-s,O&&O.line==i.line?d:null)),O&&O.line==i.line&&(H=M(O,l))&&(s<0?H<0:H>0))return fo(e,O,i,s,c)}var I=b.find(s<0?-1:1);return(s<0?S:N)&&(I=Nd(e,I,s,I.line==i.line?d:null)),I?fo(e,I,i,s,c):null}}return i}function Hl(e,i,l,s,c){var d=s||1,v=fo(e,i,l,d,c)||!c&&fo(e,i,l,d,!0)||fo(e,i,l,-d,c)||!c&&fo(e,i,l,-d,!0);return v||(e.cantEdit=!0,x(e.first,0))}function Nd(e,i,l,s){return l<0&&i.ch==0?i.line>e.first?At(e,x(i.line-1)):null:l>0&&i.ch==(s||Et(e,i.line)).text.length?i.line<e.first+e.size-1?x(i.line+1,0):null:new x(i.line,i.ch+l)}function Pd(e){e.setSelection(x(e.firstLine(),0),x(e.lastLine()),Xt)}function Od(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=At(e,c)),d&&(s.to=At(e,d)),v&&(s.text=v),y!==void 0&&(s.origin=y)}),me(e,"beforeChange",e,s),e.cm&&me(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 ho(e,i,l){if(e.cm){if(!e.cm.curOp)return ze(e.cm,ho)(e,i,l);if(e.cm.state.suppressEdits)return}if(!((Ye(e,"beforeChange")||e.cm&&Ye(e.cm,"beforeChange"))&&(i=Od(e,i,!0),!i))){var s=kh&&!l&&Xy(e,i.from,i.to);if(s)for(var c=s.length-1;c>=0;--c)Dd(e,{from:s[c].from,to:s[c].to,text:c?[""]:i.text,origin:i.origin});else Dd(e,i)}}function Dd(e,i){if(!(i.text.length==1&&i.text[0]==""&&M(i.from,i.to)==0)){var l=Jc(e,i);_d(e,i,l,e.cm?e.cm.curOp.id:NaN),ds(e,i,l,Cc(e,i));var s=[];Gr(e,function(c,d){!d&&j(s,c.history)==-1&&(Id(c.history,i),s.push(c.history)),ds(c,i,null,Cc(c,i))})}}function Bl(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,b=i=="undo"?c.undone:c.done,S=0;S<y.length&&(d=y[S],!(l?d.ranges&&!d.equals(e.sel):!d.ranges));S++);if(S!=y.length){for(c.lastOrigin=c.lastSelOrigin=null;;)if(d=y.pop(),d.ranges){if(Il(d,b),l&&!d.equals(e.sel)){Ve(e,d,{clearRedo:!1});return}v=d}else if(s){y.push(d);return}else break;var N=[];Il(v,b),b.push({changes:N,generation:c.generation}),c.generation=d.generation||++c.maxGeneration;for(var O=Ye(e,"beforeChange")||e.cm&&Ye(e.cm,"beforeChange"),H=function(et){var at=d.changes[et];if(at.origin=i,O&&!Od(e,at,!1))return y.length=0,{};N.push(eu(e,at));var gt=et?Jc(e,at):Y(y);ds(e,at,gt,kd(e,at)),!et&&e.cm&&e.cm.scrollIntoView({from:at.from,to:jr(at)});var wt=[];Gr(e,function(vt,St){!St&&j(wt,vt.history)==-1&&(Id(vt.history,at),wt.push(vt.history)),ds(vt,at,null,kd(vt,at))})},I=d.changes.length-1;I>=0;--I){var X=H(I);if(X)return X.v}}}}function $d(e,i){if(i!=0&&(e.first+=i,e.sel=new Sn(rt(e.sel.ranges,function(c){return new ie(x(c.anchor.line+i,c.anchor.ch),x(c.head.line+i,c.head.ch))}),e.sel.primIndex),e.cm)){en(e.cm,e.first,e.first-i,i);for(var l=e.cm.display,s=l.viewFrom;s<l.viewTo;s++)Br(e.cm,s,"gutter")}}function ds(e,i,l,s){if(e.cm&&!e.cm.curOp)return ze(e.cm,ds)(e,i,l,s);if(i.to.line<e.first){$d(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);$d(e,c),i={from:x(e.first,0),to:x(i.to.line+c,i.to.ch),text:[Y(i.text)],origin:i.origin}}var d=e.lastLine();i.to.line>d&&(i={from:i.from,to:x(d,Et(e,d).text.length),text:[i.text[0]],origin:i.origin}),i.removed=vr(e,i.from,i.to),l||(l=Jc(e,i)),e.cm?Qb(e.cm,i,s):tu(e,i,s),ql(e,l,Xt),e.cantEdit&&Hl(e,x(e.firstLine(),0))&&(e.cantEdit=!1)}}function Qb(e,i,l){var s=e.doc,c=e.display,d=i.from,v=i.to,y=!1,b=d.line;e.options.lineWrapping||(b=re(zn(Et(s,d.line))),s.iter(b,v.line+1,function(I){if(I==c.maxLine)return y=!0,!0})),s.sel.contains(i.from,i.to)>-1&&Ir(e),tu(s,i,l,td(e)),e.options.lineWrapping||(s.iter(b,d.line+i.text.length,function(I){var X=Cl(I);X>c.maxLineLength&&(c.maxLine=I,c.maxLineLength=X,c.maxLineChanged=!0,y=!1)}),y&&(e.curOp.updateMaxLine=!0)),By(s,d.line),us(e,400);var S=i.text.length-(v.line-d.line)-1;i.full?en(e):d.line==v.line&&i.text.length==1&&!yd(e.doc,i)?Br(e,d.line,"text"):en(e,d.line,v.line+1,S);var N=Ye(e,"changes"),O=Ye(e,"change");if(O||N){var H={from:d,to:v,text:i.text,removed:i.removed,origin:i.origin};O&&Re(e,"change",e,H),N&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(H)}e.display.selForContextMenu=null}function po(e,i,l,s,c){var d;s||(s=l),M(s,l)<0&&(d=[s,l],l=d[0],s=d[1]),typeof i=="string"&&(i=e.splitLines(i)),ho(e,{from:l,to:s,text:i,origin:c})}function Rd(e,i,l,s){l<e.line?e.line+=s:i<e.line&&(e.line=i,e.ch=0)}function zd(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++)Rd(d.ranges[y].anchor,i,l,s),Rd(d.ranges[y].head,i,l,s);continue}for(var b=0;b<d.changes.length;++b){var S=d.changes[b];if(l<S.from.line)S.from=x(S.from.line+s,S.from.ch),S.to=x(S.to.line+s,S.to.ch);else if(i<=S.to.line){v=!1;break}}v||(e.splice(0,c+1),c=0)}}function Id(e,i){var l=i.from.line,s=i.to.line,c=i.text.length-(s-l)-1;zd(e.done,l,s,c),zd(e.undone,l,s,c)}function ps(e,i,l,s){var c=i,d=i;return typeof i=="number"?d=Et(e,oe(e,i)):c=re(i),c==null?null:(s(d,c)&&e.cm&&Br(e.cm,c,l),d)}function gs(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}gs.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,tb(c),Re(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 vs(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}vs.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 gs))){var y=[];this.collapse(y),this.children=[new gs(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 b=new gs(c.lines.slice(y,y+=25));c.height-=b.height,this.children.splice(++s,0,b),b.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 vs(i);if(e.parent){e.size-=l.size,e.height-=l.height;var c=j(e.parent.children,e);e.parent.children.splice(c+1,0,l)}else{var s=new vs(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 ms=function(e,i,l){if(l)for(var s in l)l.hasOwnProperty(s)&&(this[s]=l[s]);this.doc=e,this.node=i};ms.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=rs(this);Pn(l,Math.max(0,l.height-d)),e&&(dn(e,function(){Fd(e,l,-d),Br(e,s,"widget")}),Re(e,"lineWidgetCleared",e,this,s))}},ms.prototype.changed=function(){var e=this,i=this.height,l=this.doc.cm,s=this.line;this.height=null;var c=rs(this)-i;!c||(Hr(this.doc,s)||Pn(s,s.height+c),l&&dn(l,function(){l.curOp.forceUpdate=!0,Fd(l,s,c),Re(l,"lineWidgetChanged",l,e,re(s))}))},Fr(ms);function Fd(e,i,l){br(i)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Gc(e,l)}function tw(e,i,l,s){var c=new ms(e,l,s),d=e.cm;return d&&c.noHScroll&&(d.display.alignWidgets=!0),ps(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&&!Hr(e,v)){var b=br(v)<e.scrollTop;Pn(v,v.height+rs(c)),b&&Gc(d,c.height),d.curOp.forceUpdate=!0}return!0}),d&&Re(d,"lineWidgetAdded",d,c,typeof i=="number"?i:re(i)),c}var qd=0,Vr=function(e,i){this.lines=[],this.type=i,this.doc=e,this.id=++qd};Vr.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,i=e&&!e.curOp;if(i&&Li(e),Ye(this,"clear")){var l=this.find();l&&Re(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=ts(v.markedSpans,this);e&&!this.collapsed?Br(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&&!Hr(this.doc,v)&&e&&Pn(v,oo(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var b=0;b<this.lines.length;++b){var S=zn(this.lines[b]),N=Cl(S);N>e.display.maxLineLength&&(e.display.maxLine=S,e.display.maxLineLength=N,e.display.maxLineChanged=!0)}s!=null&&e&&this.collapsed&&en(e,s,c+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ad(e.doc)),e&&Re(e,"markerCleared",e,this,s,c),i&&Ei(e),this.parent&&this.parent.clear()}},Vr.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=ts(d.markedSpans,this);if(v.from!=null&&(l=x(i?d:re(d),v.from),e==-1))return l;if(v.to!=null&&(s=x(i?d:re(d),v.to),e==1))return s}return l&&{from:l,to:s}},Vr.prototype.changed=function(){var e=this,i=this.find(-1,!0),l=this,s=this.doc.cm;!i||!s||dn(s,function(){var c=i.line,d=re(i.line),v=Oc(s,d);if(v&&(Gh(v),s.curOp.selectionChanged=s.curOp.forceUpdate=!0),s.curOp.updateMaxLine=!0,!Hr(l.doc,c)&&l.height!=null){var y=l.height;l.height=null;var b=rs(l)-y;b&&Pn(c,c.height+b)}Re(s,"markerChanged",s,e)})},Vr.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||j(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Vr.prototype.detachLine=function(e){if(this.lines.splice(j(this.lines,e),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},Fr(Vr);function go(e,i,l,s,c){if(s&&s.shared)return ew(e,i,l,s,c);if(e.cm&&!e.cm.curOp)return ze(e.cm,go)(e,i,l,s,c);var d=new Vr(e,c),v=M(i,l);if(s&&Jt(s,d,!1),v>0||v==0&&d.clearWhenEmpty!==!1)return d;if(d.replacedWith&&(d.collapsed=!0,d.widgetNode=F("span",[d.replacedWith],"CodeMirror-widget"),s.handleMouseEvents||d.widgetNode.setAttribute("cm-ignore-events","true"),s.insertLeft&&(d.widgetNode.insertLeft=!0)),d.collapsed){if(Mh(e,i.line,i,l,d)||i.line!=l.line&&Mh(e,l.line,i,l,d))throw new Error("Inserting collapsed marker partially overlapping an existing one");Uy()}d.addToHistory&&_d(e,{from:i,to:l,origin:"markText"},e.sel,NaN);var y=i.line,b=e.cm,S;if(e.iter(y,l.line+1,function(O){b&&d.collapsed&&!b.options.lineWrapping&&zn(O)==b.display.maxLine&&(S=!0),d.collapsed&&y!=i.line&&Pn(O,0),Gy(O,new xl(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){Hr(e,O)&&Pn(O,0)}),d.clearOnEnter&&Dt(d,"beforeCursorEnter",function(){return d.clear()}),d.readOnly&&(Wy(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),d.collapsed&&(d.id=++qd,d.atomic=!0),b){if(S&&(b.curOp.updateMaxLine=!0),d.collapsed)en(b,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++)Br(b,N,"text");d.atomic&&Ad(b.doc),Re(b,"markerAdded",b,d)}return d}var ys=function(e,i){this.markers=e,this.primary=i;for(var l=0;l<e.length;++l)e[l].parent=this};ys.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Re(this,"clear")}},ys.prototype.find=function(e,i){return this.primary.find(e,i)},Fr(ys);function ew(e,i,l,s,c){s=Jt(s),s.shared=!1;var d=[go(e,i,l,s,c)],v=d[0],y=s.widgetNode;return Gr(e,function(b){y&&(s.widgetNode=y.cloneNode(!0)),d.push(go(b,At(b,i),At(b,l),s,c));for(var S=0;S<b.linked.length;++S)if(b.linked[S].isParent)return;v=Y(d)}),new ys(d,v)}function Hd(e){return e.findMarks(x(e.first,0),e.clipPos(x(e.lastLine())),function(i){return i.parent})}function nw(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(M(d,v)){var y=go(e,d,v,s.primary,s.primary.type);s.markers.push(y),y.parent=s}}}function rw(e){for(var i=function(s){var c=e[s],d=[c.primary.doc];Gr(c.primary.doc,function(b){return d.push(b)});for(var v=0;v<c.markers.length;v++){var y=c.markers[v];j(d,y.doc)==-1&&(y.parent=null,c.markers.splice(v--,1))}},l=0;l<e.length;l++)i(l)}var iw=0,nn=function(e,i,l,s,c){if(!(this instanceof nn))return new nn(e,i,l,s,c);l==null&&(l=0),vs.call(this,[new gs([new no("",null)])]),this.first=l,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=l;var d=x(l,0);this.sel=Ur(d),this.history=new zl(null),this.id=++iw,this.modeOption=i,this.lineSep=s,this.direction=c=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),tu(this,{from:d,to:d,text:e}),Ve(this,Ur(d),Xt)};nn.prototype=dt(vs.prototype,{constructor:nn,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=bi(this,this.first,this.first+this.size);return e===!1?i:i.join(e||this.lineSeparator())},setValue:Ie(function(e){var i=x(this.first,0),l=this.first+this.size-1;ho(this,{from:i,to:x(l,Et(this,l).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&ss(this.cm,0,0),Ve(this,Ur(i),Xt)}),replaceRange:function(e,i,l,s){i=At(this,i),l=l?At(this,l):i,po(this,e,i,l,s)},getRange:function(e,i,l){var s=vr(this,At(this,e),At(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(wi(this,e))return Et(this,e)},getLineNumber:function(e){return re(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Et(this,e)),zn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return At(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:Ie(function(e,i,l){Td(this,At(this,typeof e=="number"?x(e,i||0):e),null,l)}),setSelection:Ie(function(e,i,l){Td(this,At(this,e),At(this,i||e),l)}),extendSelection:Ie(function(e,i,l){Fl(this,At(this,e),i&&At(this,i),l)}),extendSelections:Ie(function(e,i){Cd(this,bl(this,e),i)}),extendSelectionsBy:Ie(function(e,i){var l=rt(this.sel.ranges,e);Cd(this,bl(this,l),i)}),setSelections:Ie(function(e,i,l){if(!!e.length){for(var s=[],c=0;c<e.length;c++)s[c]=new ie(At(this,e[c].anchor),At(this,e[c].head||e[c].anchor));i==null&&(i=Math.min(e.length-1,this.sel.primIndex)),Ve(this,Fn(this.cm,s,i),l)}}),addSelection:Ie(function(e,i,l){var s=this.sel.ranges.slice(0);s.push(new ie(At(this,e),At(this,i||e))),Ve(this,Fn(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=vr(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=vr(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:Ie(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),b=s.length-1;b>=0;b--)ho(this,s[b]);y?Ld(this,y):this.cm&&ao(this.cm)}),undo:Ie(function(){Bl(this,"undo")}),redo:Ie(function(){Bl(this,"redo")}),undoSelection:Ie(function(){Bl(this,"undo",!0)}),redoSelection:Ie(function(){Bl(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 zl(this.history),Gr(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:uo(this.history.done),undone:uo(this.history.undone)}},setHistory:function(e){var i=this.history=new zl(this.history);i.done=uo(e.done.slice(0),null,!0),i.undone=uo(e.undone.slice(0),null,!0)},setGutterMarker:Ie(function(e,i,l){return ps(this,e,"gutter",function(s){var c=s.gutterMarkers||(s.gutterMarkers={});return c[i]=l,!l&&Lt(c)&&(s.gutterMarkers=null),!0})}),clearGutter:Ie(function(e){var i=this;this.iter(function(l){l.gutterMarkers&&l.gutterMarkers[e]&&ps(i,l,"gutter",function(){return l.gutterMarkers[e]=null,Lt(l.gutterMarkers)&&(l.gutterMarkers=null),!0})})}),lineInfo:function(e){var i;if(typeof e=="number"){if(!wi(this,e)||(i=e,e=Et(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:Ie(function(e,i,l){return ps(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(xt(l).test(s[c]))return!1;s[c]+=" "+l}return!0})}),removeLineClass:Ie(function(e,i,l){return ps(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(xt(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:Ie(function(e,i,l){return tw(this,e,i,l)}),removeLineWidget:function(e){e.clear()},markText:function(e,i,l){return go(this,At(this,e),At(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=At(this,e),go(this,e,e,l,"bookmark")},findMarksAt:function(e){e=At(this,e);var i=[],l=Et(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=At(this,e),i=At(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 b=v[y];!(b.to!=null&&c==e.line&&e.ch>=b.to||b.from==null&&c!=e.line||b.from!=null&&c==i.line&&b.from>=i.ch)&&(!l||l(b.marker))&&s.push(b.marker.parent||b.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}),At(this,x(l,i))},indexFromPos:function(e){e=At(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 nn(bi(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 nn(bi(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}],nw(s,Hd(this)),s},unlinkDoc:function(e){if(e instanceof be&&(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),rw(Hd(this));break}}if(e.history==this.history){var s=[e.id];Gr(e,function(c){return s.push(c.id)},!0),e.history=new zl(null),e.history.done=uo(this.history.done,s),e.history.undone=uo(this.history.undone,s)}},iterLinkedDocs:function(e){Gr(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Qi(e)},lineSeparator:function(){return this.lineSep||`
|
|
17
|
-
`},setDirection:Ie(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(i){return i.order=null}),this.cm&&Gb(this.cm))})}),nn.prototype.eachLine=nn.prototype.iter;var Bd=0;function ow(e){var i=this;if(Wd(i),!(ke(i,e)||wr(i.display,e))){$e(e),p&&(Bd=+new Date);var l=Si(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&&ze(i,function(){l=At(i.doc,l);var I={from:l,to:l,text:i.doc.splitLines(d.filter(function(X){return X!=null}).join(i.doc.lineSeparator())),origin:"paste"};ho(i.doc,I),Ld(i.doc,Ur(At(i.doc,l),At(i.doc,jr(I))))})()},b=function(I,X){if(i.options.allowDropFileTypes&&j(i.options.allowDropFileTypes,I.type)==-1){y();return}var et=new FileReader;et.onerror=function(){return y()},et.onload=function(){var at=et.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(at)){y();return}d[X]=at,y()},et.readAsText(I)},S=0;S<s.length;S++)b(s[S],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()),ql(i.doc,Ur(l,l)),O)for(var H=0;H<O.length;++H)po(i.doc,"",O[H].anchor,O[H].head,"drag");i.replaceSelection(N,"around","paste"),i.display.input.focus()}}catch{}}}}function sw(e,i){if(p&&(!e.state.draggingText||+new Date-Bd<100)){Kn(i);return}if(!(ke(e,i)||wr(e.display,i))&&(i.dataTransfer.setData("Text",e.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!P)){var l=C("img",null,null,"position: fixed; left: 0; top: 0;");l.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",A&&(l.width=l.height=1,e.display.wrapper.appendChild(l),l._top=l.offsetTop),i.dataTransfer.setDragImage(l,0,0),A&&l.parentNode.removeChild(l)}}function lw(e,i){var l=Si(e,i);if(!!l){var s=document.createDocumentFragment();Hc(e,l,s),e.display.dragCursor||(e.display.dragCursor=C("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),R(e.display.dragCursor,s)}}function Wd(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Ud(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 jd=!1;function aw(){jd||(cw(),jd=!0)}function cw(){var e;Dt(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Ud(uw)},100))}),Dt(window,"blur",function(){return Ud(lo)})}function uw(e){var i=e.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,e.setSize()}for(var Kr={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"},bs=0;bs<10;bs++)Kr[bs+48]=Kr[bs+96]=String(bs);for(var Wl=65;Wl<=90;Wl++)Kr[Wl]=String.fromCharCode(Wl);for(var ws=1;ws<=12;ws++)Kr[ws+111]=Kr[ws+63235]="F"+ws;var _r={};_r.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"},_r.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"},_r.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"},_r.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"]},_r.default=V?_r.macDefault:_r.pcDefault;function fw(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 hw(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=rt(l.split(" "),fw),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 b=i[y];if(!b)i[y]=v;else if(b!=v)throw new Error("Inconsistent bindings for "+y)}delete e[l]}for(var S in i)e[S]=i[S];return e}function vo(e,i,l,s){i=Ul(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 vo(e,i.fallthrough,l,s);for(var d=0;d<i.fallthrough.length;d++){var v=vo(e,i.fallthrough[d],l,s);if(v)return v}}}function Gd(e){var i=typeof e=="string"?e:Kr[e.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function Vd(e,i,l){var s=e;return i.altKey&&s!="Alt"&&(e="Alt-"+e),(ft?i.metaKey:i.ctrlKey)&&s!="Ctrl"&&(e="Ctrl-"+e),(ft?i.ctrlKey:i.metaKey)&&s!="Mod"&&(e="Cmd-"+e),!l&&i.shiftKey&&s!="Shift"&&(e="Shift-"+e),e}function Kd(e,i){if(A&&e.keyCode==34&&e.char)return!1;var l=Kr[e.keyCode];return l==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(l=e.code),Vd(l,e,i))}function Ul(e){return typeof e=="string"?_r[e]:e}function mo(e,i){for(var l=e.doc.sel.ranges,s=[],c=0;c<l.length;c++){for(var d=i(l[c]);s.length&&M(d.from,Y(s).to)<=0;){var v=s.pop();if(M(v.from,d.from)<0){d.from=v.from;break}}s.push(d)}dn(e,function(){for(var y=s.length-1;y>=0;y--)po(e.doc,"",s[y].from,s[y].to,"+delete");ao(e)})}function iu(e,i,l){var s=Vt(e.text,i+l,l);return s<0||s>e.text.length?null:s}function ou(e,i,l){var s=iu(e,i.ch,l);return s==null?null:new x(i.line,s,l<0?"after":"before")}function su(e,i,l,s,c){if(e){i.doc.direction=="rtl"&&(c=-c);var d=Oe(l,i.doc.direction);if(d){var v=c<0?Y(d):d[0],y=c<0==(v.level==1),b=y?"after":"before",S;if(v.level>0||i.doc.direction=="rtl"){var N=io(i,l);S=c<0?l.text.length-1:0;var O=tr(i,N,S).top;S=te(function(H){return tr(i,N,H).top==O},c<0==(v.level==1)?v.from:v.to-1,S),b=="before"&&(S=iu(l,S,1))}else S=c<0?v.to:v.from;return new x(s,S,b)}}return new x(s,c<0?l.text.length:0,c<0?"before":"after")}function dw(e,i,l,s){var c=Oe(i,e.doc.direction);if(!c)return ou(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=Se(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 ou(i,l,s);var y=function(gt,wt){return iu(i,gt instanceof x?gt.ch:gt,wt)},b,S=function(gt){return e.options.lineWrapping?(b=b||io(e,i),Qh(e,i,b,gt)):{begin:0,end:i.text.length}},N=S(l.sticky=="before"?y(l,-1):l.ch);if(e.doc.direction=="rtl"||v.level==1){var O=v.level==1==s<0,H=y(l,O?1:-1);if(H!=null&&(O?H<=v.to&&H<=N.end:H>=v.from&&H>=N.begin)){var I=O?"before":"after";return new x(l.line,H,I)}}var X=function(gt,wt,vt){for(var St=function(he,Fe){return Fe?new x(l.line,y(he,1),"before"):new x(l.line,he,"after")};gt>=0&><c.length;gt+=wt){var Rt=c[gt],Ot=wt>0==(Rt.level!=1),Gt=Ot?vt.begin:y(vt.end,-1);if(Rt.from<=Gt&&Gt<Rt.to||(Gt=Ot?Rt.from:y(Rt.to,-1),vt.begin<=Gt&&Gt<vt.end))return St(Gt,Ot)}},et=X(d+s,s,N);if(et)return et;var at=s>0?N.end:y(N.begin,-1);return at!=null&&!(s>0&&at==i.text.length)&&(et=X(s>0?0:c.length-1,s,S(at)),et)?et:null}var xs={selectAll:Pd,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Xt)},killLine:function(e){return mo(e,function(i){if(i.empty()){var l=Et(e.doc,i.head.line).text.length;return i.head.ch==l&&i.head.line<e.lastLine()?{from:i.head,to:x(i.head.line+1,0)}:{from:i.head,to:x(i.head.line,l)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(e){return mo(e,function(i){return{from:x(i.from().line,0),to:At(e.doc,x(i.to().line+1,0))}})},delLineLeft:function(e){return mo(e,function(i){return{from:x(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(e){return mo(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 mo(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(x(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(x(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(i){return Xd(e,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(i){return Yd(e,i.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(i){return pw(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")},Nt)},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")},Nt)},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/)?Yd(e,i.head):s},Nt)},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=K(e.getLine(d.line),d.ch,s);i.push(G(s-v%s))}e.replaceSelections(i)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return dn(e,function(){for(var i=e.listSelections(),l=[],s=0;s<i.length;s++)if(!!i[s].empty()){var c=i[s].head,d=Et(e.doc,c.line).text;if(d){if(c.ch==d.length&&(c=new x(c.line,c.ch-1)),c.ch>0)c=new x(c.line,c.ch+1),e.replaceRange(d.charAt(c.ch-1)+d.charAt(c.ch-2),x(c.line,c.ch-2),c,"+transpose");else if(c.line>e.doc.first){var v=Et(e.doc,c.line-1).text;v&&(c=new x(c.line,1),e.replaceRange(d.charAt(0)+e.doc.lineSeparator()+v.charAt(v.length-1),x(c.line-1,v.length-1),c,"+transpose"))}}l.push(new ie(c,c))}e.setSelections(l)})},newlineAndIndent:function(e){return dn(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);ao(e)})},openLine:function(e){return e.replaceSelection(`
|
|
18
|
-
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Xd(e,i){var l=Et(e.doc,i),s=zn(l);return s!=l&&(i=re(s)),su(!0,e,s,i,1)}function pw(e,i){var l=Et(e.doc,i),s=Zy(l);return s!=l&&(i=re(s)),su(!0,e,l,i,-1)}function Yd(e,i){var l=Xd(e,i.line),s=Et(e.doc,l.line),c=Oe(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 x(l.line,v?0:d,l.sticky)}return l}function jl(e,i,l){if(typeof i=="string"&&(i=xs[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)!=zt}finally{e.display.shift=s,e.state.suppressEdits=!1}return c}function gw(e,i,l){for(var s=0;s<e.state.keyMaps.length;s++){var c=vo(i,e.state.keyMaps[s],l,e);if(c)return c}return e.options.extraKeys&&vo(i,e.options.extraKeys,l,e)||vo(i,e.options.keyMap,l,e)}var vw=new tt;function _s(e,i,l,s){var c=e.state.keySeq;if(c){if(Gd(i))return"handled";if(/\'$/.test(i)?e.state.keySeq=null:vw.set(50,function(){e.state.keySeq==c&&(e.state.keySeq=null,e.display.input.reset())}),Zd(e,c+" "+i,l,s))return!0}return Zd(e,i,l,s)}function Zd(e,i,l,s){var c=gw(e,i,s);return c=="multi"&&(e.state.keySeq=i),c=="handled"&&Re(e,"keyHandled",e,i,l),(c=="handled"||c=="multi")&&($e(l),Bc(e)),!!c}function Jd(e,i){var l=Kd(i,!0);return l?i.shiftKey&&!e.state.keySeq?_s(e,"Shift-"+l,i,function(s){return jl(e,s,!0)})||_s(e,l,i,function(s){if(typeof s=="string"?/^go[A-Z]/.test(s):s.motion)return jl(e,s)}):_s(e,l,i,function(s){return jl(e,s)}):!1}function mw(e,i,l){return _s(e,"'"+l+"'",i,function(s){return jl(e,s,!0)})}var lu=null;function Qd(e){var i=this;if(!(e.target&&e.target!=i.display.input.getField())&&(i.curOp.focus=yt(),!ke(i,e))){p&&g<11&&e.keyCode==27&&(e.returnValue=!1);var l=e.keyCode;i.display.shift=l==16||e.shiftKey;var s=Jd(i,e);A&&(lu=s?l:null,!s&&l==88&&!xc&&(V?e.metaKey:e.ctrlKey)&&i.replaceSelection("",null,"cut")),a&&!V&&!s&&l==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),l==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&yw(i)}}function yw(e){var i=e.display.lineDiv;Ct(i,"CodeMirror-crosshair");function l(s){(s.keyCode==18||!s.altKey)&&(ct(i,"CodeMirror-crosshair"),It(document,"keyup",l),It(document,"mouseover",l))}Dt(document,"keyup",l),Dt(document,"mouseover",l)}function tp(e){e.keyCode==16&&(this.doc.sel.shift=!1),ke(this,e)}function ep(e){var i=this;if(!(e.target&&e.target!=i.display.input.getField())&&!(wr(i.display,e)||ke(i,e)||e.ctrlKey&&!e.altKey||V&&e.metaKey)){var l=e.keyCode,s=e.charCode;if(A&&l==lu){lu=null,$e(e);return}if(!(A&&(!e.which||e.which<10)&&Jd(i,e))){var c=String.fromCharCode(s==null?l:s);c!="\b"&&(mw(i,e,c)||i.display.input.onKeyPress(e))}}}var bw=400,au=function(e,i,l){this.time=e,this.pos=i,this.button=l};au.prototype.compare=function(e,i,l){return this.time+bw>e&&M(i,this.pos)==0&&l==this.button};var Ss,ks;function ww(e,i){var l=+new Date;return ks&&ks.compare(l,e,i)?(Ss=ks=null,"triple"):Ss&&Ss.compare(l,e,i)?(ks=new au(l,e,i),Ss=null,"double"):(Ss=new au(l,e,i),ks=null,"single")}function np(e){var i=this,l=i.display;if(!(ke(i,e)||l.activeTouch&&l.input.supportsTouch())){if(l.input.ensurePolled(),l.shift=e.shiftKey,wr(l,e)){m||(l.scroller.draggable=!1,setTimeout(function(){return l.scroller.draggable=!0},100));return}if(!cu(i,e)){var s=Si(i,e),c=Zi(e),d=s?ww(s,c):"single";window.focus(),c==1&&i.state.selectingText&&i.state.selectingText(e),!(s&&xw(i,c,s,d,e))&&(c==1?s?Sw(i,s,d,e):Jo(e)==l.scroller&&$e(e):c==2?(s&&Fl(i.doc,s),setTimeout(function(){return l.input.focus()},20)):c==3&&(mt?i.display.input.onContextMenu(e):Wc(i)))}}}function xw(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,_s(e,Vd(d,c),c,function(v){if(typeof v=="string"&&(v=xs[v]),!v)return!1;var y=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),y=v(e,l)!=zt}finally{e.state.suppressEdits=!1}return y})}function _w(e,i,l){var s=e.getOption("configureMouse"),c=s?s(e,i,l):{};if(c.unit==null){var d=W?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=V?l.metaKey:l.ctrlKey),c.moveOnDrag==null&&(c.moveOnDrag=!(V?l.altKey:l.ctrlKey)),c}function Sw(e,i,l,s){p?setTimeout(Qt(rd,e),0):e.curOp.focus=yt();var c=_w(e,l,s),d=e.doc.sel,v;e.options.dragDrop&&_n&&!e.isReadOnly()&&l=="single"&&(v=d.contains(i))>-1&&(M((v=d.ranges[v]).from(),i)<0||i.xRel>0)&&(M(v.to(),i)>0||i.xRel<0)?kw(e,s,i,c):Cw(e,s,i,c)}function kw(e,i,l,s){var c=e.display,d=!1,v=ze(e,function(S){m&&(c.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Wc(e)),It(c.wrapper.ownerDocument,"mouseup",v),It(c.wrapper.ownerDocument,"mousemove",y),It(c.scroller,"dragstart",b),It(c.scroller,"drop",v),d||($e(S),s.addNew||Fl(e.doc,l,null,null,s.extend),m&&!P||p&&g==9?setTimeout(function(){c.wrapper.ownerDocument.body.focus({preventScroll:!0}),c.input.focus()},20):c.input.focus())}),y=function(S){d=d||Math.abs(i.clientX-S.clientX)+Math.abs(i.clientY-S.clientY)>=10},b=function(){return d=!0};m&&(c.scroller.draggable=!0),e.state.draggingText=v,v.copy=!s.moveOnDrag,Dt(c.wrapper.ownerDocument,"mouseup",v),Dt(c.wrapper.ownerDocument,"mousemove",y),Dt(c.scroller,"dragstart",b),Dt(c.scroller,"drop",v),e.state.delayingBlurEvent=!0,setTimeout(function(){return c.input.focus()},20),c.scroller.dragDrop&&c.scroller.dragDrop()}function rp(e,i,l){if(l=="char")return new ie(i,i);if(l=="word")return e.findWordAt(i);if(l=="line")return new ie(x(i.line,0),At(e.doc,x(i.line+1,0)));var s=l(e,i);return new ie(s.from,s.to)}function Cw(e,i,l,s){p&&Wc(e);var c=e.display,d=e.doc;$e(i);var v,y,b=d.sel,S=b.ranges;if(s.addNew&&!s.extend?(y=d.sel.contains(l),y>-1?v=S[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=Si(e,i,!0,!0),y=-1;else{var N=rp(e,l,s.unit);s.extend?v=nu(v,N.anchor,N.head,s.extend):v=N}s.addNew?y==-1?(y=S.length,Ve(d,Fn(e,S.concat([v]),y),{scroll:!1,origin:"*mouse"})):S.length>1&&S[y].empty()&&s.unit=="char"&&!s.extend?(Ve(d,Fn(e,S.slice(0,y).concat(S.slice(y+1)),0),{scroll:!1,origin:"*mouse"}),b=d.sel):ru(d,y,v,Tt):(y=0,Ve(d,new Sn([v],0),Tt),b=d.sel);var O=l;function H(vt){if(M(O,vt)!=0)if(O=vt,s.unit=="rectangle"){for(var St=[],Rt=e.options.tabSize,Ot=K(Et(d,l.line).text,l.ch,Rt),Gt=K(Et(d,vt.line).text,vt.ch,Rt),he=Math.min(Ot,Gt),Fe=Math.max(Ot,Gt),xe=Math.min(l.line,vt.line),pn=Math.min(e.lastLine(),Math.max(l.line,vt.line));xe<=pn;xe++){var rn=Et(d,xe).text,Ee=D(rn,he,Rt);he==Fe?St.push(new ie(x(xe,Ee),x(xe,Ee))):rn.length>Ee&&St.push(new ie(x(xe,Ee),x(xe,D(rn,Fe,Rt))))}St.length||St.push(new ie(l,l)),Ve(d,Fn(e,b.ranges.slice(0,y).concat(St),y),{origin:"*mouse",scroll:!1}),e.scrollIntoView(vt)}else{var on=v,Be=rp(e,vt,s.unit),Ne=on.anchor,Ae;M(Be.anchor,Ne)>0?(Ae=Be.head,Ne=Yt(on.from(),Be.anchor)):(Ae=Be.anchor,Ne=qt(on.to(),Be.head));var Ce=b.ranges.slice(0);Ce[y]=Tw(e,new ie(At(d,Ne),Ae)),Ve(d,Fn(e,Ce,y),Tt)}}var I=c.wrapper.getBoundingClientRect(),X=0;function et(vt){var St=++X,Rt=Si(e,vt,!0,s.unit=="rectangle");if(!!Rt)if(M(Rt,O)!=0){e.curOp.focus=yt(),H(Rt);var Ot=Ol(c,d);(Rt.line>=Ot.to||Rt.line<Ot.from)&&setTimeout(ze(e,function(){X==St&&et(vt)}),150)}else{var Gt=vt.clientY<I.top?-20:vt.clientY>I.bottom?20:0;Gt&&setTimeout(ze(e,function(){X==St&&(c.scroller.scrollTop+=Gt,et(vt))}),50)}}function at(vt){e.state.selectingText=!1,X=1/0,vt&&($e(vt),c.input.focus()),It(c.wrapper.ownerDocument,"mousemove",gt),It(c.wrapper.ownerDocument,"mouseup",wt),d.history.lastSelOrigin=null}var gt=ze(e,function(vt){vt.buttons===0||!Zi(vt)?at(vt):et(vt)}),wt=ze(e,at);e.state.selectingText=wt,Dt(c.wrapper.ownerDocument,"mousemove",gt),Dt(c.wrapper.ownerDocument,"mouseup",wt)}function Tw(e,i){var l=i.anchor,s=i.head,c=Et(e.doc,l.line);if(M(l,s)==0&&l.sticky==s.sticky)return i;var d=Oe(c);if(!d)return i;var v=Se(d,l.ch,l.sticky),y=d[v];if(y.from!=l.ch&&y.to!=l.ch)return i;var b=v+(y.from==l.ch==(y.level!=1)?0:1);if(b==0||b==d.length)return i;var S;if(s.line!=l.line)S=(s.line-l.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var N=Se(d,s.ch,s.sticky),O=N-v||(s.ch-l.ch)*(y.level==1?-1:1);N==b-1||N==b?S=O<0:S=O>0}var H=d[b+(S?-1:0)],I=S==(H.level==1),X=I?H.from:H.to,et=I?"after":"before";return l.ch==X&&l.sticky==et?i:new ie(new x(l.line,X,et),s)}function ip(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&&$e(i);var v=e.display,y=v.lineDiv.getBoundingClientRect();if(d>y.bottom||!Ye(e,l))return Zo(i);d-=y.top-v.viewOffset;for(var b=0;b<e.display.gutterSpecs.length;++b){var S=v.gutters.childNodes[b];if(S&&S.getBoundingClientRect().right>=c){var N=mr(e.doc,d),O=e.display.gutterSpecs[b];return me(e,l,e,N,O.className,i),Zo(i)}}}function cu(e,i){return ip(e,i,"gutterClick",!0)}function op(e,i){wr(e.display,i)||Lw(e,i)||ke(e,i,"contextmenu")||mt||e.display.input.onContextMenu(i)}function Lw(e,i){return Ye(e,"gutterContextMenu")?ip(e,i,"gutterContextMenu",!1):!1}function sp(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),is(e)}var yo={toString:function(){return"CodeMirror.Init"}},lp={},Gl={};function Ew(e){var i=e.optionHandlers;function l(s,c,d,v){e.defaults[s]=c,d&&(i[s]=v?function(y,b,S){S!=yo&&d(y,b,S)}:d)}e.defineOption=l,e.Init=yo,l("value","",function(s,c){return s.setValue(c)},!0),l("mode",null,function(s,c){s.doc.modeOption=c,Qc(s)},!0),l("indentUnit",2,Qc,!0),l("indentWithTabs",!1),l("smartIndent",!0),l("tabSize",4,function(s){hs(s),is(s),en(s)},!0),l("lineSeparator",null,function(s,c){if(s.doc.lineSep=c,!!c){var d=[],v=s.doc.first;s.doc.iter(function(b){for(var S=0;;){var N=b.text.indexOf(c,S);if(N==-1)break;S=N+c.length,d.push(x(v,N))}v++});for(var y=d.length-1;y>=0;y--)po(s.doc,c,d[y],x(d[y].line,d[y].ch+c.length))}}),l("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(s,c,d){s.state.specialChars=new RegExp(c.source+(c.test(" ")?"":"| "),"g"),d!=yo&&s.refresh()}),l("specialCharPlaceholder",rb,function(s){return s.refresh()},!0),l("electricChars",!0),l("inputStyle",$?"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",!st),l("wholeLineUpdateBefore",!0),l("theme","default",function(s){sp(s),fs(s)},!0),l("keyMap","default",function(s,c,d){var v=Ul(c),y=d!=yo&&Ul(d);y&&y.detach&&y.detach(s,v),v.attach&&v.attach(s,y||null)}),l("extraKeys",null),l("configureMouse",null),l("lineWrapping",!1,Mw,!0),l("gutters",[],function(s,c){s.display.gutterSpecs=Zc(c,s.options.lineNumbers),fs(s)},!0),l("fixedGutter",!0,function(s,c){s.display.gutters.style.left=c?Fc(s.display)+"px":"0",s.refresh()},!0),l("coverGutterNextToScrollbar",!1,function(s){return co(s)},!0),l("scrollbarStyle","native",function(s){cd(s),co(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=Zc(s.options.gutters,c),fs(s)},!0),l("firstLineNumber",1,fs,!0),l("lineNumberFormatter",function(s){return s},fs,!0),l("showCursorWhenSelecting",!1,os,!0),l("resetSelectionOnContextMenu",!0),l("lineWiseCopyCut",!0),l("pasteLinesPerSelection",!0),l("selectionsMayTouch",!1),l("readOnly",!1,function(s,c){c=="nocursor"&&(lo(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,Aw),l("allowDropFileTypes",null),l("cursorBlinkRate",530),l("cursorScrollMargin",0),l("cursorHeight",1,os,!0),l("singleCursorHeightPerLine",!0,os,!0),l("workTime",100),l("workDelay",100),l("flattenSpans",!0,hs,!0),l("addModeClass",!1,hs,!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,hs,!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 Aw(e,i,l){var s=l&&l!=yo;if(!i!=!s){var c=e.display.dragFunctions,d=i?Dt:It;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 Mw(e){e.options.lineWrapping?(Ct(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ct(e.display.wrapper,"CodeMirror-wrap"),Ac(e)),qc(e),en(e),is(e),setTimeout(function(){return co(e)},100)}function be(e,i){var l=this;if(!(this instanceof be))return new be(e,i);this.options=i=i?Jt(i):{},Jt(lp,i,!1);var s=i.value;typeof s=="string"?s=new nn(s,i.mode,null,i.lineSeparator,i.direction):i.mode&&(s.modeOption=i.mode),this.doc=s;var c=new be.inputStyles[i.inputStyle](this),d=this.display=new Wb(e,s,c,i);d.wrapper.CodeMirror=this,sp(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),cd(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 tt,keySeq:null,specialChars:null},i.autofocus&&!$&&d.input.focus(),p&&g<11&&setTimeout(function(){return l.display.input.reset(!0)},20),Nw(this),aw(),Li(this),this.curOp.forceUpdate=!0,bd(this,s),i.autofocus&&!$||this.hasFocus()?setTimeout(function(){l.hasFocus()&&!l.state.focused&&Uc(l)},20):lo(this);for(var v in Gl)Gl.hasOwnProperty(v)&&Gl[v](this,i[v],yo);hd(this),i.finishInit&&i.finishInit(this);for(var y=0;y<uu.length;++y)uu[y](this);Ei(this),m&&i.lineWrapping&&getComputedStyle(d.lineDiv).textRendering=="optimizelegibility"&&(d.lineDiv.style.textRendering="auto")}be.defaults=lp,be.optionHandlers=Gl;function Nw(e){var i=e.display;Dt(i.scroller,"mousedown",ze(e,np)),p&&g<11?Dt(i.scroller,"dblclick",ze(e,function(b){if(!ke(e,b)){var S=Si(e,b);if(!(!S||cu(e,b)||wr(e.display,b))){$e(b);var N=e.findWordAt(S);Fl(e.doc,N.anchor,N.head)}}})):Dt(i.scroller,"dblclick",function(b){return ke(e,b)||$e(b)}),Dt(i.scroller,"contextmenu",function(b){return op(e,b)}),Dt(i.input.getField(),"contextmenu",function(b){i.scroller.contains(b.target)||op(e,b)});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(b){if(b.touches.length!=1)return!1;var S=b.touches[0];return S.radiusX<=1&&S.radiusY<=1}function v(b,S){if(S.left==null)return!0;var N=S.left-b.left,O=S.top-b.top;return N*N+O*O>20*20}Dt(i.scroller,"touchstart",function(b){if(!ke(e,b)&&!d(b)&&!cu(e,b)){i.input.ensurePolled(),clearTimeout(l);var S=+new Date;i.activeTouch={start:S,moved:!1,prev:S-s.end<=300?s:null},b.touches.length==1&&(i.activeTouch.left=b.touches[0].pageX,i.activeTouch.top=b.touches[0].pageY)}}),Dt(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Dt(i.scroller,"touchend",function(b){var S=i.activeTouch;if(S&&!wr(i,b)&&S.left!=null&&!S.moved&&new Date-S.start<300){var N=e.coordsChar(i.activeTouch,"page"),O;!S.prev||v(S,S.prev)?O=new ie(N,N):!S.prev.prev||v(S,S.prev.prev)?O=e.findWordAt(N):O=new ie(x(N.line,0),At(e.doc,x(N.line+1,0))),e.setSelection(O.anchor,O.head),e.focus(),$e(b)}c()}),Dt(i.scroller,"touchcancel",c),Dt(i.scroller,"scroll",function(){i.scroller.clientHeight&&(ls(e,i.scroller.scrollTop),Ci(e,i.scroller.scrollLeft,!0),me(e,"scroll",e))}),Dt(i.scroller,"mousewheel",function(b){return gd(e,b)}),Dt(i.scroller,"DOMMouseScroll",function(b){return gd(e,b)}),Dt(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(b){ke(e,b)||Kn(b)},over:function(b){ke(e,b)||(lw(e,b),Kn(b))},start:function(b){return sw(e,b)},drop:ze(e,ow),leave:function(b){ke(e,b)||Wd(e)}};var y=i.input.getField();Dt(y,"keyup",function(b){return tp.call(e,b)}),Dt(y,"keydown",ze(e,Qd)),Dt(y,"keypress",ze(e,ep)),Dt(y,"focus",function(b){return Uc(e,b)}),Dt(y,"blur",function(b){return lo(e,b)})}var uu=[];be.defineInitHook=function(e){return uu.push(e)};function Cs(e,i,l,s){var c=e.doc,d;l==null&&(l="add"),l=="smart"&&(c.mode.indent?d=Qo(e,i).state:l="prev");var v=e.options.tabSize,y=Et(c,i),b=K(y.text,null,v);y.stateAfter&&(y.stateAfter=null);var S=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(S.length),y.text),N==zt||N>150)){if(!s)return;l="prev"}l=="prev"?i>c.first?N=K(Et(c,i-1).text,null,v):N=0:l=="add"?N=b+e.options.indentUnit:l=="subtract"?N=b-e.options.indentUnit:typeof l=="number"&&(N=b+l),N=Math.max(0,N);var O="",H=0;if(e.options.indentWithTabs)for(var I=Math.floor(N/v);I;--I)H+=v,O+=" ";if(H<N&&(O+=G(N-H)),O!=S)return po(c,O,x(i,0),x(i,S.length),"+input"),y.stateAfter=null,!0;for(var X=0;X<c.sel.ranges.length;X++){var et=c.sel.ranges[X];if(et.head.line==i&&et.head.ch<S.length){var at=x(i,S.length);ru(c,X,new ie(at,at));break}}}var qn=null;function Vl(e){qn=e}function fu(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,b=Qi(i),S=null;if(y&&s.ranges.length>1)if(qn&&qn.text.join(`
|
|
19
|
-
`)==i){if(s.ranges.length%qn.text.length==0){S=[];for(var N=0;N<qn.text.length;N++)S.push(d.splitLines(qn.text[N]))}}else b.length==s.ranges.length&&e.options.pasteLinesPerSelection&&(S=rt(b,function(gt){return[gt]}));for(var O=e.curOp.updateInput,H=s.ranges.length-1;H>=0;H--){var I=s.ranges[H],X=I.from(),et=I.to();I.empty()&&(l&&l>0?X=x(X.line,X.ch-l):e.state.overwrite&&!y?et=x(et.line,Math.min(Et(d,et.line).text.length,et.ch+Y(b).length)):y&&qn&&qn.lineWise&&qn.text.join(`
|
|
20
|
-
`)==b.join(`
|
|
21
|
-
`)&&(X=et=x(X.line,0)));var at={from:X,to:et,text:S?S[H%S.length]:b,origin:c||(y?"paste":e.state.cutIncoming>v?"cut":"+input")};ho(e.doc,at),Re(e,"inputRead",e,at)}i&&!y&&cp(e,i),ao(e),e.curOp.updateInput<2&&(e.curOp.updateInput=O),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function ap(e,i){var l=e.clipboardData&&e.clipboardData.getData("Text");if(l)return e.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&dn(i,function(){return fu(i,l,0,null,"paste")}),!0}function cp(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=Cs(e,c.head.line,"smart");break}}else d.electricInput&&d.electricInput.test(Et(e.doc,c.head.line).text.slice(0,c.head.ch))&&(v=Cs(e,c.head.line,"smart"));v&&Re(e,"electricInput",e,c.head.line)}}}function up(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:x(c,0),head:x(c+1,0)};l.push(d),i.push(e.getRange(d.anchor,d.head))}return{text:i,ranges:l}}function fp(e,i,l,s){e.setAttribute("autocorrect",l?"":"off"),e.setAttribute("autocapitalize",s?"":"off"),e.setAttribute("spellcheck",!!i)}function hp(){var e=C("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=C("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"),fp(e),i}function Pw(e){var i=e.optionHandlers,l=e.helpers={};e.prototype={constructor:e,focus:function(){window.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)&&ze(this,i[s])(this,c,v),me(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"](Ul(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.");pt(this.state.overlays,{mode:d,modeSpec:s,opaque:c&&c.opaque,priority:c&&c.priority||0},function(v){return v.priority}),this.state.modeGen++,en(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++,en(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"),wi(this.doc,s)&&Cs(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&&(Cs(this,y.head.line,s,!0),d=y.head.line,v==this.doc.sel.primIndex&&ao(this));else{var b=y.from(),S=y.to(),N=Math.max(d,b.line);d=Math.min(this.lastLine(),S.line-(S.ch?0:1))+1;for(var O=N;O<d;++O)Cs(this,O,s);var H=this.doc.sel.ranges;b.ch==0&&c.length==H.length&&H[v].from().ch>0&&ru(this.doc,v,new ie(b,H[v].to()),Xt)}}}),getTokenAt:function(s,c){return xh(this,s,c)},getLineTokens:function(s,c){return xh(this,x(s),c,!0)},getTokenTypeAt:function(s){s=At(this.doc,s);var c=yh(this,Et(this.doc,s.line)),d=0,v=(c.length-1)/2,y=s.ch,b;if(y==0)b=c[2];else for(;;){var S=d+v>>1;if((S?c[S*2-1]:0)>=y)v=S;else if(c[S*2+1]<y)d=S+1;else{b=c[S*2+2];break}}var N=b?b.indexOf("overlay "):-1;return N<0?b:N==0?null:b.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 b=0;b<y[c].length;b++){var S=v[y[c][b]];S&&d.push(S)}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)&&j(d,O.val)==-1&&d.push(O.val)}return d},getStateAfter:function(s,c){var d=this.doc;return s=oe(d,s==null?d.first+d.size-1:s),Qo(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=At(this.doc,s):d=s?v.from():v.to(),In(this,d,c||"page")},charCoords:function(s,c){return Al(this,At(this.doc,s),c||"page")},coordsChar:function(s,c){return s=Yh(this,s,c||"page"),Rc(this,s.left,s.top)},lineAtHeight:function(s,c){return s=Yh(this,{top:s,left:0},c||"page").top,mr(this.doc,s+this.display.viewOffset)},heightAtLine:function(s,c,d){var v=!1,y;if(typeof s=="number"){var b=this.doc.first+this.doc.size-1;s<this.doc.first?s=this.doc.first:s>b&&(s=b,v=!0),y=Et(this.doc,s)}else y=s;return El(this,y,{top:0,left:0},c||"page",d||v).top+(v?this.doc.height-br(y):0)},defaultTextHeight:function(){return oo(this.display)},defaultCharWidth:function(){return so(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(s,c,d,v,y){var b=this.display;s=In(this,At(this.doc,s));var S=s.bottom,N=s.left;if(c.style.position="absolute",c.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(c),b.sizer.appendChild(c),v=="over")S=s.top;else if(v=="above"||v=="near"){var O=Math.max(b.wrapper.clientHeight,this.doc.height),H=Math.max(b.sizer.clientWidth,b.lineSpace.clientWidth);(v=="above"||s.bottom+c.offsetHeight>O)&&s.top>c.offsetHeight?S=s.top-c.offsetHeight:s.bottom+c.offsetHeight<=O&&(S=s.bottom),N+c.offsetWidth>H&&(N=H-c.offsetWidth)}c.style.top=S+"px",c.style.left=c.style.right="",y=="right"?(N=b.sizer.clientWidth-c.offsetWidth,c.style.right="0px"):(y=="left"?N=0:y=="middle"&&(N=(b.sizer.clientWidth-c.offsetWidth)/2),c.style.left=N+"px"),d&&Ab(this,{left:N,top:S,right:N+c.offsetWidth,bottom:S+c.offsetHeight})},triggerOnKeyDown:Je(Qd),triggerOnKeyPress:Je(ep),triggerOnKeyUp:tp,triggerOnMouseDown:Je(np),execCommand:function(s){if(xs.hasOwnProperty(s))return xs[s].call(null,this)},triggerElectric:Je(function(s){cp(this,s)}),findPosH:function(s,c,d,v){var y=1;c<0&&(y=-1,c=-c);for(var b=At(this.doc,s),S=0;S<c&&(b=hu(this.doc,b,y,d,v),!b.hitSide);++S);return b},moveH:Je(function(s,c){var d=this;this.extendSelectionsBy(function(v){return d.display.shift||d.doc.extend||v.empty()?hu(d.doc,v.head,s,c,d.options.rtlMoveVisually):s<0?v.from():v.to()},Nt)}),deleteH:Je(function(s,c){var d=this.doc.sel,v=this.doc;d.somethingSelected()?v.replaceSelection("",null,"+delete"):mo(this,function(y){var b=hu(v,y.head,s,c,!1);return s<0?{from:b,to:y.head}:{from:y.head,to:b}})}),findPosV:function(s,c,d,v){var y=1,b=v;c<0&&(y=-1,c=-c);for(var S=At(this.doc,s),N=0;N<c;++N){var O=In(this,S,"div");if(b==null?b=O.left:O.left=b,S=dp(this,O,y,d),S.hitSide)break}return S},moveV:Je(function(s,c){var d=this,v=this.doc,y=[],b=!this.display.shift&&!v.extend&&v.sel.somethingSelected();if(v.extendSelectionsBy(function(N){if(b)return s<0?N.from():N.to();var O=In(d,N.head,"div");N.goalColumn!=null&&(O.left=N.goalColumn),y.push(O.left);var H=dp(d,O,s,c);return c=="page"&&N==v.sel.primary()&&Gc(d,Al(d,H,"div").top-O.top),H},Nt),y.length)for(var S=0;S<v.sel.ranges.length;S++)v.sel.ranges[S].goalColumn=y[S]}),findWordAt:function(s){var c=this.doc,d=Et(c,s.line).text,v=s.ch,y=s.ch;if(d){var b=this.getHelper(s,"wordChars");(s.sticky=="before"||y==d.length)&&v?--v:++y;for(var S=d.charAt(v),N=Pt(S,b)?function(O){return Pt(O,b)}:/\s/.test(S)?function(O){return/\s/.test(O)}:function(O){return!/\s/.test(O)&&!Pt(O)};v>0&&N(d.charAt(v-1));)--v;for(;y<d.length&&N(d.charAt(y));)++y}return new ie(x(s.line,v),x(s.line,y))},toggleOverwrite:function(s){s!=null&&s==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ct(this.display.cursorDiv,"CodeMirror-overwrite"):ct(this.display.cursorDiv,"CodeMirror-overwrite"),me(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==yt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Je(function(s,c){ss(this,s,c)}),getScrollInfo:function(){var s=this.display.scroller;return{left:s.scrollLeft,top:s.scrollTop,height:s.scrollHeight-Qn(this)-this.display.barHeight,width:s.scrollWidth-Qn(this)-this.display.barWidth,clientHeight:Pc(this),clientWidth:xi(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:x(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?Mb(this,s):od(this,s.from,s.to,s.margin)}),setSize:Je(function(s,c){var d=this,v=function(b){return typeof b=="number"||/^\d+$/.test(String(b))?b+"px":b};s!=null&&(this.display.wrapper.style.width=v(s)),c!=null&&(this.display.wrapper.style.height=v(c)),this.options.lineWrapping&&Vh(this);var y=this.display.viewFrom;this.doc.iter(y,this.display.viewTo,function(b){if(b.widgets){for(var S=0;S<b.widgets.length;S++)if(b.widgets[S].noHScroll){Br(d,y,"widget");break}}++y}),this.curOp.forceUpdate=!0,me(this,"refresh",this)}),operation:function(s){return dn(this,s)},startOperation:function(){return Li(this)},endOperation:function(){return Ei(this)},refresh:Je(function(){var s=this.display.cachedTextHeight;en(this),this.curOp.forceUpdate=!0,is(this),ss(this,this.doc.scrollLeft,this.doc.scrollTop),Xc(this.display),(s==null||Math.abs(s-oo(this.display))>.5||this.options.lineWrapping)&&qc(this),me(this,"refresh",this)}),swapDoc:Je(function(s){var c=this.doc;return c.cm=null,this.state.selectingText&&this.state.selectingText(),bd(this,s),is(this),this.display.input.reset(),ss(this,s.scrollLeft,s.scrollTop),this.curOp.forceScroll=!0,Re(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}},Fr(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 hu(e,i,l,s,c){var d=i,v=l,y=Et(e,i.line),b=c&&e.direction=="rtl"?-l:l;function S(){var wt=i.line+b;return wt<e.first||wt>=e.first+e.size?!1:(i=new x(wt,i.ch,i.sticky),y=Et(e,wt))}function N(wt){var vt;if(s=="codepoint"){var St=y.text.charCodeAt(i.ch+(l>0?0:-1));if(isNaN(St))vt=null;else{var Rt=l>0?St>=55296&&St<56320:St>=56320&&St<57343;vt=new x(i.line,Math.max(0,Math.min(y.text.length,i.ch+l*(Rt?2:1))),-l)}}else c?vt=dw(e.cm,y,i,l):vt=ou(y,i,l);if(vt==null)if(!wt&&S())i=su(c,e.cm,y,i.line,b);else return!1;else i=vt;return!0}if(s=="char"||s=="codepoint")N();else if(s=="column")N(!0);else if(s=="word"||s=="group")for(var O=null,H=s=="group",I=e.cm&&e.cm.getHelper(i,"wordChars"),X=!0;!(l<0&&!N(!X));X=!1){var et=y.text.charAt(i.ch)||`
|
|
22
|
-
`,at=Pt(et,I)?"w":H&&et==`
|
|
23
|
-
`?"n":!H||/\s/.test(et)?null:"p";if(H&&!X&&!at&&(at="s"),O&&O!=at){l<0&&(l=1,N(),i.sticky="after");break}if(at&&(O=at),l>0&&!N(!X))break}var gt=Hl(e,i,d,v,!0);return J(d,gt)&&(gt.hitSide=!0),gt}function dp(e,i,l,s){var c=e.doc,d=i.left,v;if(s=="page"){var y=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),b=Math.max(y-.5*oo(e.display),3);v=(l>0?i.bottom:i.top)+l*b}else s=="line"&&(v=l>0?i.bottom+3:i.top-3);for(var S;S=Rc(e,d,v),!!S.outside;){if(l<0?v<=0:v>=c.height){S.hitSide=!0;break}v+=l*5}return S}var le=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new tt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};le.prototype.init=function(e){var i=this,l=this,s=l.cm,c=l.div=e.lineDiv;c.contentEditable=!0,fp(c,s.options.spellcheck,s.options.autocorrect,s.options.autocapitalize);function d(y){for(var b=y.target;b;b=b.parentNode){if(b==c)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(b.className))break}return!1}Dt(c,"paste",function(y){!d(y)||ke(s,y)||ap(y,s)||g<=11&&setTimeout(ze(s,function(){return i.updateFromDOM()}),20)}),Dt(c,"compositionstart",function(y){i.composing={data:y.data,done:!1}}),Dt(c,"compositionupdate",function(y){i.composing||(i.composing={data:y.data,done:!1})}),Dt(c,"compositionend",function(y){i.composing&&(y.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Dt(c,"touchstart",function(){return l.forceCompositionEnd()}),Dt(c,"input",function(){i.composing||i.readFromDOMSoon()});function v(y){if(!(!d(y)||ke(s,y))){if(s.somethingSelected())Vl({lineWise:!1,text:s.getSelections()}),y.type=="cut"&&s.replaceSelection("",null,"cut");else if(s.options.lineWiseCopyCut){var b=up(s);Vl({lineWise:!0,text:b.text}),y.type=="cut"&&s.operation(function(){s.setSelections(b.ranges,0,Xt),s.replaceSelection("",null,"cut")})}else return;if(y.clipboardData){y.clipboardData.clearData();var S=qn.text.join(`
|
|
24
|
-
`);if(y.clipboardData.setData("Text",S),y.clipboardData.getData("Text")==S){y.preventDefault();return}}var N=hp(),O=N.firstChild;s.display.lineSpace.insertBefore(N,s.display.lineSpace.firstChild),O.value=qn.text.join(`
|
|
25
|
-
`);var H=yt();Kt(O),setTimeout(function(){s.display.lineSpace.removeChild(N),H.focus(),H==c&&l.showPrimarySelection()},50)}}Dt(c,"copy",v),Dt(c,"cut",v)},le.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},le.prototype.prepareSelection=function(){var e=nd(this.cm,!1);return e.focus=yt()==this.div,e},le.prototype.showSelection=function(e,i){!e||!this.cm.display.view.length||((e.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(e))},le.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},le.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=Kl(i,e.anchorNode,e.anchorOffset),v=Kl(i,e.focusNode,e.focusOffset);if(!(d&&!d.bad&&v&&!v.bad&&M(Yt(d,v),s)==0&&M(qt(d,v),c)==0)){var y=i.display.view,b=s.line>=i.display.viewFrom&&pp(i,s)||{node:y[0].measure.map[2],offset:0},S=c.line<i.display.viewTo&&pp(i,c);if(!S){var N=y[y.length-1].measure,O=N.maps?N.maps[N.maps.length-1]:N.map;S={node:O[O.length-1],offset:O[O.length-2]-O[O.length-3]}}if(!b||!S){e.removeAllRanges();return}var H=e.rangeCount&&e.getRangeAt(0),I;try{I=B(b.node,b.offset,S.offset,S.node)}catch{}I&&(!a&&i.state.focused?(e.collapse(b.node,b.offset),I.collapsed||(e.removeAllRanges(),e.addRange(I))):(e.removeAllRanges(),e.addRange(I)),H&&e.anchorNode==null?e.addRange(H):a&&this.startGracePeriod()),this.rememberSelection()}},le.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)},le.prototype.showMultipleSelections=function(e){R(this.cm.display.cursorDiv,e.cursors),R(this.cm.display.selectionDiv,e.selection)},le.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},le.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var i=e.getRangeAt(0).commonAncestorContainer;return Q(this.div,i)},le.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||yt()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},le.prototype.blur=function(){this.div.blur()},le.prototype.getField=function(){return this.div},le.prototype.supportsTouch=function(){return!0},le.prototype.receivedFocus=function(){var e=this,i=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):dn(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)},le.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},le.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),i=this.cm;if(z&&_&&this.cm.display.gutterSpecs.length&&Ow(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var l=Kl(i,e.anchorNode,e.anchorOffset),s=Kl(i,e.focusNode,e.focusOffset);l&&s&&dn(i,function(){Ve(i.doc,Ur(l,s),Xt),(l.bad||s.bad)&&(i.curOp.selectionChanged=!0)})}}},le.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=x(s.line-1,Et(e.doc,s.line-1).length)),c.ch==Et(e.doc,c.line).text.length&&c.line<e.lastLine()&&(c=x(c.line+1,0)),s.line<i.viewFrom||c.line>i.viewTo-1)return!1;var d,v,y;s.line==i.viewFrom||(d=ki(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 b=ki(e,c.line),S,N;if(b==i.view.length-1?(S=i.viewTo-1,N=i.lineDiv.lastChild):(S=re(i.view[b+1].line)-1,N=i.view[b+1].node.previousSibling),!y)return!1;for(var O=e.doc.splitLines(Dw(e,y,N,v,S)),H=vr(e.doc,x(v,0),x(S,Et(e.doc,S).text.length));O.length>1&&H.length>1;)if(Y(O)==Y(H))O.pop(),H.pop(),S--;else if(O[0]==H[0])O.shift(),H.shift(),v++;else break;for(var I=0,X=0,et=O[0],at=H[0],gt=Math.min(et.length,at.length);I<gt&&et.charCodeAt(I)==at.charCodeAt(I);)++I;for(var wt=Y(O),vt=Y(H),St=Math.min(wt.length-(O.length==1?I:0),vt.length-(H.length==1?I:0));X<St&&wt.charCodeAt(wt.length-X-1)==vt.charCodeAt(vt.length-X-1);)++X;if(O.length==1&&H.length==1&&v==s.line)for(;I&&I>s.ch&&wt.charCodeAt(wt.length-X-1)==vt.charCodeAt(vt.length-X-1);)I--,X++;O[O.length-1]=wt.slice(0,wt.length-X).replace(/^\u200b+/,""),O[0]=O[0].slice(I).replace(/\u200b+$/,"");var Rt=x(v,I),Ot=x(S,H.length?Y(H).length-X:0);if(O.length>1||O[0]||M(Rt,Ot))return po(e.doc,O,Rt,Ot,"+input"),!0},le.prototype.ensurePolled=function(){this.forceCompositionEnd()},le.prototype.reset=function(){this.forceCompositionEnd()},le.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},le.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))},le.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&dn(this.cm,function(){return en(e.cm)})},le.prototype.setUneditable=function(e){e.contentEditable="false"},le.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ze(this.cm,fu)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},le.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},le.prototype.onContextMenu=function(){},le.prototype.resetPosition=function(){},le.prototype.needsContentAttribute=!0;function pp(e,i){var l=Oc(e,i.line);if(!l||l.hidden)return null;var s=Et(e.doc,i.line),c=Bh(l,s,i.line),d=Oe(s,e.doc.direction),v="left";if(d){var y=Se(d,i.ch);v=y%2?"right":"left"}var b=jh(c.map,i.ch,v);return b.offset=b.collapse=="right"?b.end:b.start,b}function Ow(e){for(var i=e;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function bo(e,i){return i&&(e.bad=!0),e}function Dw(e,i,l,s,c){var d="",v=!1,y=e.doc.lineSeparator(),b=!1;function S(I){return function(X){return X.id==I}}function N(){v&&(d+=y,b&&(d+=y),v=b=!1)}function O(I){I&&(N(),d+=I)}function H(I){if(I.nodeType==1){var X=I.getAttribute("cm-text");if(X){O(X);return}var et=I.getAttribute("cm-marker"),at;if(et){var gt=e.findMarks(x(s,0),x(c+1,0),S(+et));gt.length&&(at=gt[0].find(0))&&O(vr(e.doc,at.from,at.to).join(y));return}if(I.getAttribute("contenteditable")=="false")return;var wt=/^(pre|div|p|li|table|br)$/i.test(I.nodeName);if(!/^br$/i.test(I.nodeName)&&I.textContent.length==0)return;wt&&N();for(var vt=0;vt<I.childNodes.length;vt++)H(I.childNodes[vt]);/^(pre|p)$/i.test(I.nodeName)&&(b=!0),wt&&(v=!0)}else I.nodeType==3&&O(I.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;H(i),i!=l;)i=i.nextSibling,b=!1;return d}function Kl(e,i,l){var s;if(i==e.display.lineDiv){if(s=e.display.lineDiv.childNodes[l],!s)return bo(e.clipPos(x(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 $w(d,i,l)}}function $w(e,i,l){var s=e.text.firstChild,c=!1;if(!i||!Q(s,i))return bo(x(re(e.line),0),!0);if(i==s&&(c=!0,i=s.childNodes[l],l=0,!i)){var d=e.rest?Y(e.rest):e.line;return bo(x(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 b=e.measure,S=b.maps;function N(at,gt,wt){for(var vt=-1;vt<(S?S.length:0);vt++)for(var St=vt<0?b.map:S[vt],Rt=0;Rt<St.length;Rt+=3){var Ot=St[Rt+2];if(Ot==at||Ot==gt){var Gt=re(vt<0?e.line:e.rest[vt]),he=St[Rt]+wt;return(wt<0||Ot!=at)&&(he=St[Rt+(wt?1:0)]),x(Gt,he)}}}var O=N(v,y,l);if(O)return bo(O,c);for(var H=y.nextSibling,I=v?v.nodeValue.length-l:0;H;H=H.nextSibling){if(O=N(H,H.firstChild,0),O)return bo(x(O.line,O.ch-I),c);I+=H.textContent.length}for(var X=y.previousSibling,et=l;X;X=X.previousSibling){if(O=N(X,X.firstChild,-1),O)return bo(x(O.line,O.ch+et),c);et+=X.textContent.length}}var Te=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new tt,this.hasSelection=!1,this.composing=null};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"),Dt(c,"input",function(){p&&g>=9&&i.hasSelection&&(i.hasSelection=null),l.poll()}),Dt(c,"paste",function(v){ke(s,v)||ap(v,s)||(s.state.pasteIncoming=+new Date,l.fastPoll())});function d(v){if(!ke(s,v)){if(s.somethingSelected())Vl({lineWise:!1,text:s.getSelections()});else if(s.options.lineWiseCopyCut){var y=up(s);Vl({lineWise:!0,text:y.text}),v.type=="cut"?s.setSelections(y.ranges,null,Xt):(l.prevInput="",c.value=y.text.join(`
|
|
26
|
-
`),Kt(c))}else return;v.type=="cut"&&(s.state.cutIncoming=+new Date)}}Dt(c,"cut",d),Dt(c,"copy",d),Dt(e.scroller,"paste",function(v){if(!(wr(e,v)||ke(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)}}),Dt(e.lineSpace,"selectstart",function(v){wr(e,v)||$e(v)}),Dt(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"})}}),Dt(c,"compositionend",function(){l.composing&&(l.poll(),l.composing.range.clear(),l.composing=null)})},Te.prototype.createField=function(e){this.wrapper=hp(),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=nd(e);if(e.options.moveInputWithCursor){var c=In(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;R(l.cursorDiv,e.cursors),R(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)){var i=this.cm;if(i.somethingSelected()){this.prevInput="";var l=i.getSelection();this.textarea.value=l,i.state.focused&&Kt(this.textarea),p&&g>=9&&(this.hasSelection=l)}else e||(this.prevInput=this.textarea.value="",p&&g>=9&&(this.hasSelection=null))}},Te.prototype.getField=function(){return this.textarea},Te.prototype.supportsTouch=function(){return!1},Te.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!$||yt()!=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||!i.state.focused||ml(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||V&&/[\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 dn(i,function(){fu(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=Si(l,e),v=s.scroller.scrollTop;if(!d||A)return;var y=l.options.resetSelectionOnContextMenu;y&&l.doc.sel.contains(d)==-1&&ze(l,Ve)(l.doc,Ur(d),Xt);var b=c.style.cssText,S=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=window.scrollY),s.input.focus(),m&&window.scrollTo(null,O),s.input.reset(),l.somethingSelected()||(c.value=i.prevInput=" "),i.contextMenuPending=I,s.selForContextMenu=l.doc.sel,clearTimeout(s.detectingSelectAll);function H(){if(c.selectionStart!=null){var et=l.somethingSelected(),at="\u200B"+(et?c.value:"");c.value="\u21DA",c.value=at,i.prevInput=et?"":"\u200B",c.selectionStart=1,c.selectionEnd=at.length,s.selForContextMenu=l.doc.sel}}function I(){if(i.contextMenuPending==I&&(i.contextMenuPending=!1,i.wrapper.style.cssText=S,c.style.cssText=b,p&&g<9&&s.scrollbars.setScrollTop(s.scroller.scrollTop=v),c.selectionStart!=null)){(!p||p&&g<9)&&H();var et=0,at=function(){s.selForContextMenu==l.doc.sel&&c.selectionStart==0&&c.selectionEnd>0&&i.prevInput=="\u200B"?ze(l,Pd)(l):et++<10?s.detectingSelectAll=setTimeout(at,500):(s.selForContextMenu=null,s.input.reset())};s.detectingSelectAll=setTimeout(at,200)}}if(p&&g>=9&&H(),mt){Kn(e);var X=function(){It(window,"mouseup",X),setTimeout(I,20)};Dt(window,"mouseup",X)}else setTimeout(I,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 Rw(e,i){if(i=i?Jt(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=yt();i.autofocus=l==e||e.getAttribute("autofocus")!=null&&l==document.body}function s(){e.value=y.getValue()}var c;if(e.form&&(Dt(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(b){b.save=s,b.getTextArea=function(){return e},b.toTextArea=function(){b.toTextArea=isNaN,s(),e.parentNode.removeChild(b.getWrapperElement()),e.style.display="",e.form&&(It(e.form,"submit",s),!i.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=c))}},e.style.display="none";var y=be(function(b){return e.parentNode.insertBefore(b,e.nextSibling)},i);return y}function zw(e){e.off=It,e.on=Dt,e.wheelEventPixels=Ub,e.Doc=nn,e.splitLines=Qi,e.countColumn=K,e.findColumn=D,e.isWordChar=ot,e.Pass=zt,e.signal=me,e.Line=no,e.changeEnd=jr,e.scrollbarModel=ad,e.Pos=x,e.cmpPos=M,e.modes=Zn,e.mimeModes=dr,e.resolveMode=mi,e.getMode=qr,e.modeExtensions=Ze,e.extendMode=yi,e.copyState=gr,e.startState=yl,e.innerMode=to,e.commands=xs,e.keyMap=_r,e.keyName=Kd,e.isModifierKey=Gd,e.lookupKey=vo,e.normalizeKeyMap=hw,e.StringStream=ye,e.SharedTextMarker=ys,e.TextMarker=Vr,e.LineWidget=ms,e.e_preventDefault=$e,e.e_stopPropagation=Mn,e.e_stop=Kn,e.addClass=Ct,e.contains=Q,e.rmClass=ct,e.keyNames=Kr}Ew(be),Pw(be);var Iw="iter insert remove copy getEditor constructor".split(" ");for(var Xl in nn.prototype)nn.prototype.hasOwnProperty(Xl)&&j(Iw,Xl)<0&&(be.prototype[Xl]=function(e){return function(){return e.apply(this.doc,arguments)}}(nn.prototype[Xl]));return Fr(nn),be.inputStyles={textarea:Te,contenteditable:le},be.defineMode=function(e){!be.defaults.mode&&e!="null"&&(be.defaults.mode=e),pr.apply(this,arguments)},be.defineMIME=_c,be.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),be.defineMIME("text/plain","null"),be.defineExtension=function(e,i){be.prototype[e]=i},be.defineDocExtension=function(e,i){nn.prototype[e]=i},be.fromTextArea=Rw,zw(be),be.version="5.65.6",be})})(Yi);var xst=Yi.exports,_st={exports:{}};(function(t,n){(function(r){r(Yi.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,w=a.wordCharacters||/[\w$\xa1-\uffff]/,_=function(){function x(At){return{type:At,style:"keyword"}}var M=x("keyword a"),J=x("keyword b"),lt=x("keyword c"),qt=x("keyword d"),Yt=x("operator"),oe={type:"atom",style:"atom"};return{if:x("if"),while:M,with:M,else:J,do:J,try:J,finally:J,return:qt,break:qt,continue:qt,new:x("new"),delete:lt,void:lt,throw:lt,debugger:x("debugger"),var:x("var"),const:x("var"),let:x("var"),function:x("function"),catch:x("catch"),for:x("for"),switch:x("switch"),case:x("case"),default:x("default"),in:Yt,typeof:Yt,instanceof:Yt,true:oe,false:oe,null:oe,undefined:oe,NaN:oe,Infinity:oe,this:x("this"),class:x("class"),super:x("atom"),yield:lt,export:x("export"),import:x("import"),extends:lt,await:lt}}(),k=/[+\-*&%=<>!?|~^@]/,A=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function P(x){for(var M=!1,J,lt=!1;(J=x.next())!=null;){if(!M){if(J=="/"&&!lt)return;J=="["?lt=!0:lt&&J=="]"&&(lt=!1)}M=!M&&J=="\\"}}var L,T;function E(x,M,J){return L=x,T=J,M}function z(x,M){var J=x.next();if(J=='"'||J=="'")return M.tokenize=$(J),M.tokenize(x,M);if(J=="."&&x.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return E("number","number");if(J=="."&&x.match(".."))return E("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(J))return E(J);if(J=="="&&x.eat(">"))return E("=>","operator");if(J=="0"&&x.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return E("number","number");if(/\d/.test(J))return x.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),E("number","number");if(J=="/")return x.eat("*")?(M.tokenize=V,V(x,M)):x.eat("/")?(x.skipToEnd(),E("comment","comment")):eo(x,M,1)?(P(x),x.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),E("regexp","string-2")):(x.eat("="),E("operator","operator",x.current()));if(J=="`")return M.tokenize=W,W(x,M);if(J=="#"&&x.peek()=="!")return x.skipToEnd(),E("meta","meta");if(J=="#"&&x.eatWhile(w))return E("variable","property");if(J=="<"&&x.match("!--")||J=="-"&&x.match("->")&&!/\S/.test(x.string.slice(0,x.start)))return x.skipToEnd(),E("comment","comment");if(k.test(J))return(J!=">"||!M.lexical||M.lexical.type!=">")&&(x.eat("=")?(J=="!"||J=="=")&&x.eat("="):/[<>*+\-|&?]/.test(J)&&(x.eat(J),J==">"&&x.eat(J))),J=="?"&&x.eat(".")?E("."):E("operator","operator",x.current());if(w.test(J)){x.eatWhile(w);var lt=x.current();if(M.lastType!="."){if(_.propertyIsEnumerable(lt)){var qt=_[lt];return E(qt.type,qt.style,lt)}if(lt=="async"&&x.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return E("async","keyword",lt)}return E("variable","variable",lt)}}function $(x){return function(M,J){var lt=!1,qt;if(h&&M.peek()=="@"&&M.match(A))return J.tokenize=z,E("jsonld-keyword","meta");for(;(qt=M.next())!=null&&!(qt==x&&!lt);)lt=!lt&&qt=="\\";return lt||(J.tokenize=z),E("string","string")}}function V(x,M){for(var J=!1,lt;lt=x.next();){if(lt=="/"&&J){M.tokenize=z;break}J=lt=="*"}return E("comment","comment")}function W(x,M){for(var J=!1,lt;(lt=x.next())!=null;){if(!J&&(lt=="`"||lt=="$"&&x.eat("{"))){M.tokenize=z;break}J=!J&<=="\\"}return E("quasi","string-2",x.current())}var st="([{}])";function nt(x,M){M.fatArrowAt&&(M.fatArrowAt=null);var J=x.string.indexOf("=>",x.start);if(!(J<0)){if(m){var lt=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(x.string.slice(x.start,J));lt&&(J=lt.index)}for(var qt=0,Yt=!1,oe=J-1;oe>=0;--oe){var At=x.string.charAt(oe),On=st.indexOf(At);if(On>=0&&On<3){if(!qt){++oe;break}if(--qt==0){At=="("&&(Yt=!0);break}}else if(On>=3&&On<6)++qt;else if(w.test(At))Yt=!0;else if(/["'\/`]/.test(At))for(;;--oe){if(oe==0)return;var bl=x.string.charAt(oe-1);if(bl==At&&x.string.charAt(oe-2)!="\\"){oe--;break}}else if(Yt&&!qt){++oe;break}}Yt&&!qt&&(M.fatArrowAt=oe)}}var ft={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function mt(x,M,J,lt,qt,Yt){this.indented=x,this.column=M,this.type=J,this.prev=qt,this.info=Yt,lt!=null&&(this.align=lt)}function xt(x,M){if(!g)return!1;for(var J=x.localVars;J;J=J.next)if(J.name==M)return!0;for(var lt=x.context;lt;lt=lt.prev)for(var J=lt.vars;J;J=J.next)if(J.name==M)return!0}function ct(x,M,J,lt,qt){var Yt=x.cc;for(U.state=x,U.stream=qt,U.marked=null,U.cc=Yt,U.style=M,x.lexical.hasOwnProperty("align")||(x.lexical.align=!0);;){var oe=Yt.length?Yt.pop():p?Tt:zt;if(oe(J,lt)){for(;Yt.length&&Yt[Yt.length-1].lex;)Yt.pop()();return U.marked?U.marked:J=="variable"&&xt(x,lt)?"variable-2":M}}}var U={state:null,column:null,marked:null,cc:null};function R(){for(var x=arguments.length-1;x>=0;x--)U.cc.push(arguments[x])}function C(){return R.apply(null,arguments),!0}function F(x,M){for(var J=M;J;J=J.next)if(J.name==x)return!0;return!1}function B(x){var M=U.state;if(U.marked="def",!!g){if(M.context){if(M.lexical.info=="var"&&M.context&&M.context.block){var J=Q(x,M.context);if(J!=null){M.context=J;return}}else if(!F(x,M.localVars)){M.localVars=new Ut(x,M.localVars);return}}a.globalVars&&!F(x,M.globalVars)&&(M.globalVars=new Ut(x,M.globalVars))}}function Q(x,M){if(M)if(M.block){var J=Q(x,M.prev);return J?J==M.prev?M:new Ct(J,M.vars,!0):null}else return F(x,M.vars)?M:new Ct(M.prev,new Ut(x,M.vars),!1);else return null}function yt(x){return x=="public"||x=="private"||x=="protected"||x=="abstract"||x=="readonly"}function Ct(x,M,J){this.prev=x,this.vars=M,this.block=J}function Ut(x,M){this.name=x,this.next=M}var Kt=new Ut("this",new Ut("arguments",null));function Qt(){U.state.context=new Ct(U.state.context,U.state.localVars,!1),U.state.localVars=Kt}function Jt(){U.state.context=new Ct(U.state.context,U.state.localVars,!0),U.state.localVars=null}Qt.lex=Jt.lex=!0;function K(){U.state.localVars=U.state.context.vars,U.state.context=U.state.context.prev}K.lex=!0;function tt(x,M){var J=function(){var lt=U.state,qt=lt.indented;if(lt.lexical.type=="stat")qt=lt.lexical.indented;else for(var Yt=lt.lexical;Yt&&Yt.type==")"&&Yt.align;Yt=Yt.prev)qt=Yt.indented;lt.lexical=new mt(qt,U.stream.column(),x,null,lt.lexical,M)};return J.lex=!0,J}function j(){var x=U.state;x.lexical.prev&&(x.lexical.type==")"&&(x.indented=x.lexical.indented),x.lexical=x.lexical.prev)}j.lex=!0;function it(x){function M(J){return J==x?C():x==";"||J=="}"||J==")"||J=="]"?R():C(M)}return M}function zt(x,M){return x=="var"?C(tt("vardef",M),Zi,it(";"),j):x=="keyword a"?C(tt("form"),D,zt,j):x=="keyword b"?C(tt("form"),zt,j):x=="keyword d"?U.stream.match(/^\s*$/,!1)?C():C(tt("stat"),G,it(";"),j):x=="debugger"?C(it(";")):x=="{"?C(tt("}"),Jt,xn,j,K):x==";"?C():x=="if"?(U.state.lexical.info=="else"&&U.state.cc[U.state.cc.length-1]==j&&U.state.cc.pop()(),C(tt("form"),D,zt,j,Qi)):x=="function"?C(Yn):x=="for"?C(tt("form"),Jt,ml,zt,K,j):x=="class"||m&&M=="interface"?(U.marked="keyword",C(tt("form",x=="class"?x:M),mi,j)):x=="variable"?m&&M=="declare"?(U.marked="keyword",C(zt)):m&&(M=="module"||M=="enum"||M=="type")&&U.stream.match(/^\s*\w/,!1)?(U.marked="keyword",M=="enum"?C(re):M=="type"?C(dr,it("operator"),It,it(";")):C(tt("form"),_n,it("{"),tt("}"),xn,j,j)):m&&M=="namespace"?(U.marked="keyword",C(tt("form"),Tt,zt,j)):m&&M=="abstract"?(U.marked="keyword",C(zt)):C(tt("stat"),$t):x=="switch"?C(tt("form"),D,it("{"),tt("}","switch"),Jt,xn,j,j,K):x=="case"?C(Tt,it(":")):x=="default"?C(it(":")):x=="catch"?C(tt("form"),Qt,Xt,zt,j,K):x=="export"?C(tt("stat"),gr,j):x=="import"?C(tt("stat"),yl,j):x=="async"?C(zt):M=="@"?C(Tt,zt):R(tt("stat"),Tt,it(";"),j)}function Xt(x){if(x=="(")return C(pr,it(")"))}function Tt(x,M){return q(x,M,!1)}function Nt(x,M){return q(x,M,!0)}function D(x){return x!="("?R():C(tt(")"),G,it(")"),j)}function q(x,M,J){if(U.state.fatArrowAt==U.stream.start){var lt=J?bt:dt;if(x=="(")return C(Qt,tt(")"),Ht(pr,")"),j,it("=>"),lt,K);if(x=="variable")return R(Qt,_n,it("=>"),lt,K)}var qt=J?rt:Y;return ft.hasOwnProperty(x)?C(qt):x=="function"?C(Yn,qt):x=="class"||m&&M=="interface"?(U.marked="keyword",C(tt("form"),_c,j)):x=="keyword c"||x=="async"?C(J?Nt:Tt):x=="("?C(tt(")"),G,it(")"),j,qt):x=="operator"||x=="spread"?C(J?Nt:Tt):x=="["?C(tt("]"),Pn,j,qt):x=="{"?Se(Vt,"}",null,qt):x=="quasi"?R(pt,qt):x=="new"?C(ot(J)):C()}function G(x){return x.match(/[;\}\)\],]/)?R():R(Tt)}function Y(x,M){return x==","?C(G):rt(x,M,!1)}function rt(x,M,J){var lt=J==!1?Y:rt,qt=J==!1?Tt:Nt;if(x=="=>")return C(Qt,J?bt:dt,K);if(x=="operator")return/\+\+|--/.test(M)||m&&M=="!"?C(lt):m&&M=="<"&&U.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?C(tt(">"),Ht(It,">"),j,lt):M=="?"?C(Tt,it(":"),qt):C(qt);if(x=="quasi")return R(pt,lt);if(x!=";"){if(x=="(")return Se(Nt,")","call",lt);if(x==".")return C(Ft,lt);if(x=="[")return C(tt("]"),G,it("]"),j,lt);if(m&&M=="as")return U.marked="keyword",C(It,lt);if(x=="regexp")return U.state.lastType=U.marked="operator",U.stream.backUp(U.stream.pos-U.stream.start-1),C(qt)}}function pt(x,M){return x!="quasi"?R():M.slice(M.length-2)!="${"?C(pt):C(G,_t)}function _t(x){if(x=="}")return U.marked="string-2",U.state.tokenize=W,C(pt)}function dt(x){return nt(U.stream,U.state),R(x=="{"?zt:Tt)}function bt(x){return nt(U.stream,U.state),R(x=="{"?zt:Nt)}function ot(x){return function(M){return M=="."?C(x?Lt:Pt):M=="variable"&&m?C(Zo,x?rt:Y):R(x?Nt:Tt)}}function Pt(x,M){if(M=="target")return U.marked="keyword",C(Y)}function Lt(x,M){if(M=="target")return U.marked="keyword",C(rt)}function $t(x){return x==":"?C(j,zt):R(Y,it(";"),j)}function Ft(x){if(x=="variable")return U.marked="property",C()}function Vt(x,M){if(x=="async")return U.marked="property",C(Vt);if(x=="variable"||U.style=="keyword"){if(U.marked="property",M=="get"||M=="set")return C(te);var J;return m&&U.state.fatArrowAt==U.stream.start&&(J=U.stream.match(/^\s*:\s*/,!1))&&(U.state.fatArrowAt=U.stream.pos+J[0].length),C(Zt)}else{if(x=="number"||x=="string")return U.marked=h?"property":U.style+" property",C(Zt);if(x=="jsonld-keyword")return C(Zt);if(m&&yt(M))return U.marked="keyword",C(Vt);if(x=="[")return C(Tt,Oe,it("]"),Zt);if(x=="spread")return C(Nt,Zt);if(M=="*")return U.marked="keyword",C(Vt);if(x==":")return R(Zt)}}function te(x){return x!="variable"?R(Zt):(U.marked="property",C(Yn))}function Zt(x){if(x==":")return C(Nt);if(x=="(")return R(Yn)}function Ht(x,M,J){function lt(qt,Yt){if(J?J.indexOf(qt)>-1:qt==","){var oe=U.state.lexical;return oe.info=="call"&&(oe.pos=(oe.pos||0)+1),C(function(At,On){return At==M||On==M?R():R(x)},lt)}return qt==M||Yt==M?C():J&&J.indexOf(";")>-1?R(x):C(it(M))}return function(qt,Yt){return qt==M||Yt==M?C():R(x,lt)}}function Se(x,M,J){for(var lt=3;lt<arguments.length;lt++)U.cc.push(arguments[lt]);return C(tt(M,J),Ht(x,M),j)}function xn(x){return x=="}"?C():R(zt,xn)}function Oe(x,M){if(m){if(x==":")return C(It);if(M=="?")return C(Oe)}}function Vn(x,M){if(m&&(x==":"||M=="in"))return C(It)}function Dt(x){if(m&&x==":")return U.stream.match(/^\s*\w+\s+is\b/,!1)?C(Tt,De,It):C(It)}function De(x,M){if(M=="is")return U.marked="keyword",C()}function It(x,M){if(M=="keyof"||M=="typeof"||M=="infer"||M=="readonly")return U.marked="keyword",C(M=="typeof"?Nt:It);if(x=="variable"||M=="void")return U.marked="type",C(Mn);if(M=="|"||M=="&")return C(It);if(x=="string"||x=="number"||x=="atom")return C(Mn);if(x=="[")return C(tt("]"),Ht(It,"]",","),j,Mn);if(x=="{")return C(tt("}"),ke,j,Mn);if(x=="(")return C(Ht($e,")"),me,Mn);if(x=="<")return C(Ht(It,">"),It);if(x=="quasi")return R(Ye,Mn)}function me(x){if(x=="=>")return C(It)}function ke(x){return x.match(/[\}\)\]]/)?C():x==","||x==";"?C(ke):R(Ir,ke)}function Ir(x,M){if(x=="variable"||U.style=="keyword")return U.marked="property",C(Ir);if(M=="?"||x=="number"||x=="string")return C(Ir);if(x==":")return C(It);if(x=="[")return C(it("variable"),Vn,it("]"),Ir);if(x=="(")return R(Zn,Ir);if(!x.match(/[;\}\)\],]/))return C()}function Ye(x,M){return x!="quasi"?R():M.slice(M.length-2)!="${"?C(Ye):C(It,Fr)}function Fr(x){if(x=="}")return U.marked="string-2",U.state.tokenize=W,C(Ye)}function $e(x,M){return x=="variable"&&U.stream.match(/^\s*[?:]/,!1)||M=="?"?C($e):x==":"?C(It):x=="spread"?C($e):R(It)}function Mn(x,M){if(M=="<")return C(tt(">"),Ht(It,">"),j,Mn);if(M=="|"||x=="."||M=="&")return C(It);if(x=="[")return C(It,it("]"),Mn);if(M=="extends"||M=="implements")return U.marked="keyword",C(It);if(M=="?")return C(It,it(":"),It)}function Zo(x,M){if(M=="<")return C(tt(">"),Ht(It,">"),j,Mn)}function Kn(){return R(It,Jo)}function Jo(x,M){if(M=="=")return C(It)}function Zi(x,M){return M=="enum"?(U.marked="keyword",C(re)):R(_n,Oe,Nn,wc)}function _n(x,M){if(m&&yt(M))return U.marked="keyword",C(_n);if(x=="variable")return B(M),C();if(x=="spread")return C(_n);if(x=="[")return Se(bc,"]");if(x=="{")return Se(Ji,"}")}function Ji(x,M){return x=="variable"&&!U.stream.match(/^\s*:/,!1)?(B(M),C(Nn)):(x=="variable"&&(U.marked="property"),x=="spread"?C(_n):x=="}"?R():x=="["?C(Tt,it("]"),it(":"),Ji):C(it(":"),_n,Nn))}function bc(){return R(_n,Nn)}function Nn(x,M){if(M=="=")return C(Nt)}function wc(x){if(x==",")return C(Zi)}function Qi(x,M){if(x=="keyword b"&&M=="else")return C(tt("form","else"),zt,j)}function ml(x,M){if(M=="await")return C(ml);if(x=="(")return C(tt(")"),xc,j)}function xc(x){return x=="var"?C(Zi,Xn):x=="variable"?C(Xn):R(Xn)}function Xn(x,M){return x==")"?C():x==";"?C(Xn):M=="in"||M=="of"?(U.marked="keyword",C(Tt,Xn)):R(Tt,Xn)}function Yn(x,M){if(M=="*")return U.marked="keyword",C(Yn);if(x=="variable")return B(M),C(Yn);if(x=="(")return C(Qt,tt(")"),Ht(pr,")"),j,Dt,zt,K);if(m&&M=="<")return C(tt(">"),Ht(Kn,">"),j,Yn)}function Zn(x,M){if(M=="*")return U.marked="keyword",C(Zn);if(x=="variable")return B(M),C(Zn);if(x=="(")return C(Qt,tt(")"),Ht(pr,")"),j,Dt,K);if(m&&M=="<")return C(tt(">"),Ht(Kn,">"),j,Zn)}function dr(x,M){if(x=="keyword"||x=="variable")return U.marked="type",C(dr);if(M=="<")return C(tt(">"),Ht(Kn,">"),j)}function pr(x,M){return M=="@"&&C(Tt,pr),x=="spread"?C(pr):m&&yt(M)?(U.marked="keyword",C(pr)):m&&x=="this"?C(Oe,Nn):R(_n,Oe,Nn)}function _c(x,M){return x=="variable"?mi(x,M):qr(x,M)}function mi(x,M){if(x=="variable")return B(M),C(qr)}function qr(x,M){if(M=="<")return C(tt(">"),Ht(Kn,">"),j,qr);if(M=="extends"||M=="implements"||m&&x==",")return M=="implements"&&(U.marked="keyword"),C(m?It:Tt,qr);if(x=="{")return C(tt("}"),Ze,j)}function Ze(x,M){if(x=="async"||x=="variable"&&(M=="static"||M=="get"||M=="set"||m&&yt(M))&&U.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return U.marked="keyword",C(Ze);if(x=="variable"||U.style=="keyword")return U.marked="property",C(yi,Ze);if(x=="number"||x=="string")return C(yi,Ze);if(x=="[")return C(Tt,Oe,it("]"),yi,Ze);if(M=="*")return U.marked="keyword",C(Ze);if(m&&x=="(")return R(Zn,Ze);if(x==";"||x==",")return C(Ze);if(x=="}")return C();if(M=="@")return C(Tt,Ze)}function yi(x,M){if(M=="!"||M=="?")return C(yi);if(x==":")return C(It,Nn);if(M=="=")return C(Nt);var J=U.state.lexical.prev,lt=J&&J.info=="interface";return R(lt?Zn:Yn)}function gr(x,M){return M=="*"?(U.marked="keyword",C(bi,it(";"))):M=="default"?(U.marked="keyword",C(Tt,it(";"))):x=="{"?C(Ht(to,"}"),bi,it(";")):R(zt)}function to(x,M){if(M=="as")return U.marked="keyword",C(it("variable"));if(x=="variable")return R(Nt,to)}function yl(x){return x=="string"?C():x=="("?R(Tt):x=="."?R(Y):R(ye,Et,bi)}function ye(x,M){return x=="{"?Se(ye,"}"):(x=="variable"&&B(M),M=="*"&&(U.marked="keyword"),C(vr))}function Et(x){if(x==",")return C(ye,Et)}function vr(x,M){if(M=="as")return U.marked="keyword",C(ye)}function bi(x,M){if(M=="from")return U.marked="keyword",C(Tt)}function Pn(x){return x=="]"?C():R(Ht(Nt,"]"))}function re(){return R(tt("form"),_n,it("{"),tt("}"),Ht(mr,"}"),j,j)}function mr(){return R(_n,Nn)}function wi(x,M){return x.lastType=="operator"||x.lastType==","||k.test(M.charAt(0))||/[,.]/.test(M.charAt(0))}function eo(x,M,J){return M.tokenize==z&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(M.lastType)||M.lastType=="quasi"&&/\{\s*$/.test(x.string.slice(0,x.pos-(J||0)))}return{startState:function(x){var M={tokenize:z,lastType:"sof",cc:[],lexical:new mt((x||0)-u,0,"block",!1),localVars:a.localVars,context:a.localVars&&new Ct(null,null,!1),indented:x||0};return a.globalVars&&typeof a.globalVars=="object"&&(M.globalVars=a.globalVars),M},token:function(x,M){if(x.sol()&&(M.lexical.hasOwnProperty("align")||(M.lexical.align=!1),M.indented=x.indentation(),nt(x,M)),M.tokenize!=V&&x.eatSpace())return null;var J=M.tokenize(x,M);return L=="comment"?J:(M.lastType=L=="operator"&&(T=="++"||T=="--")?"incdec":L,ct(M,J,L,T,x))},indent:function(x,M){if(x.tokenize==V||x.tokenize==W)return r.Pass;if(x.tokenize!=z)return 0;var J=M&&M.charAt(0),lt=x.lexical,qt;if(!/^\s*else\b/.test(M))for(var Yt=x.cc.length-1;Yt>=0;--Yt){var oe=x.cc[Yt];if(oe==j)lt=lt.prev;else if(oe!=Qi&&oe!=K)break}for(;(lt.type=="stat"||lt.type=="form")&&(J=="}"||(qt=x.cc[x.cc.length-1])&&(qt==Y||qt==rt)&&!/^[,\.=+\-*:?[\(]/.test(M));)lt=lt.prev;f&<.type==")"&<.prev.type=="stat"&&(lt=lt.prev);var At=lt.type,On=J==At;return At=="vardef"?lt.indented+(x.lastType=="operator"||x.lastType==","?lt.info.length+1:0):At=="form"&&J=="{"?lt.indented:At=="form"?lt.indented+u:At=="stat"?lt.indented+(wi(x,M)?f||u:0):lt.info=="switch"&&!On&&a.doubleIndentSwitch!=!1?lt.indented+(/^(?:case|default)\b/.test(M)?u:2*u):lt.align?lt.column+(On?0:1):lt.indented+(On?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:eo,skipExpression:function(x){ct(x,"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 Sst={exports:{}};(function(t,n){(function(r){r(Yi.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 w,_;function k(C,F){function B(Ct){return F.tokenize=Ct,Ct(C,F)}var Q=C.next();if(Q=="<")return C.eat("!")?C.eat("[")?C.match("CDATA[")?B(L("atom","]]>")):null:C.match("--")?B(L("comment","-->")):C.match("DOCTYPE",!0,!0)?(C.eatWhile(/[\w\._\-]/),B(T(1))):null:C.eat("?")?(C.eatWhile(/[\w\._\-]/),F.tokenize=L("meta","?>"),"meta"):(w=C.eat("/")?"closeTag":"openTag",F.tokenize=A,"tag bracket");if(Q=="&"){var yt;return C.eat("#")?C.eat("x")?yt=C.eatWhile(/[a-fA-F\d]/)&&C.eat(";"):yt=C.eatWhile(/[\d]/)&&C.eat(";"):yt=C.eatWhile(/[\w\.\-:]/)&&C.eat(";"),yt?"atom":"error"}else return C.eatWhile(/[^&<]/),null}k.isInText=!0;function A(C,F){var B=C.next();if(B==">"||B=="/"&&C.eat(">"))return F.tokenize=k,w=B==">"?"endTag":"selfcloseTag","tag bracket";if(B=="=")return w="equals",null;if(B=="<"){F.tokenize=k,F.state=W,F.tagName=F.tagStart=null;var Q=F.tokenize(C,F);return Q?Q+" tag error":"tag error"}else return/[\'\"]/.test(B)?(F.tokenize=P(B),F.stringStartCol=C.column(),F.tokenize(C,F)):(C.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function P(C){var F=function(B,Q){for(;!B.eol();)if(B.next()==C){Q.tokenize=A;break}return"string"};return F.isInAttribute=!0,F}function L(C,F){return function(B,Q){for(;!B.eol();){if(B.match(F)){Q.tokenize=k;break}B.next()}return C}}function T(C){return function(F,B){for(var Q;(Q=F.next())!=null;){if(Q=="<")return B.tokenize=T(C+1),B.tokenize(F,B);if(Q==">")if(C==1){B.tokenize=k;break}else return B.tokenize=T(C-1),B.tokenize(F,B)}return"meta"}}function E(C){return C&&C.toLowerCase()}function z(C,F,B){this.prev=C.context,this.tagName=F||"",this.indent=C.indented,this.startOfLine=B,(p.doNotIndent.hasOwnProperty(F)||C.context&&C.context.noIndent)&&(this.noIndent=!0)}function $(C){C.context&&(C.context=C.context.prev)}function V(C,F){for(var B;;){if(!C.context||(B=C.context.tagName,!p.contextGrabbers.hasOwnProperty(E(B))||!p.contextGrabbers[E(B)].hasOwnProperty(E(F))))return;$(C)}}function W(C,F,B){return C=="openTag"?(B.tagStart=F.column(),st):C=="closeTag"?nt:W}function st(C,F,B){return C=="word"?(B.tagName=F.current(),_="tag",xt):p.allowMissingTagName&&C=="endTag"?(_="tag bracket",xt(C,F,B)):(_="error",st)}function nt(C,F,B){if(C=="word"){var Q=F.current();return B.context&&B.context.tagName!=Q&&p.implicitlyClosed.hasOwnProperty(E(B.context.tagName))&&$(B),B.context&&B.context.tagName==Q||p.matchClosing===!1?(_="tag",ft):(_="tag error",mt)}else return p.allowMissingTagName&&C=="endTag"?(_="tag bracket",ft(C,F,B)):(_="error",mt)}function ft(C,F,B){return C!="endTag"?(_="error",ft):($(B),W)}function mt(C,F,B){return _="error",ft(C,F,B)}function xt(C,F,B){if(C=="word")return _="attribute",ct;if(C=="endTag"||C=="selfcloseTag"){var Q=B.tagName,yt=B.tagStart;return B.tagName=B.tagStart=null,C=="selfcloseTag"||p.autoSelfClosers.hasOwnProperty(E(Q))?V(B,Q):(V(B,Q),B.context=new z(B,Q,yt==B.indented)),W}return _="error",xt}function ct(C,F,B){return C=="equals"?U:(p.allowMissing||(_="error"),xt(C,F,B))}function U(C,F,B){return C=="string"?R:C=="word"&&p.allowUnquoted?(_="string",xt):(_="error",xt(C,F,B))}function R(C,F,B){return C=="string"?R:xt(C,F,B)}return{startState:function(C){var F={tokenize:k,state:W,indented:C||0,tagName:null,tagStart:null,context:null};return C!=null&&(F.baseIndent=C),F},token:function(C,F){if(!F.tagName&&C.sol()&&(F.indented=C.indentation()),C.eatSpace())return null;w=null;var B=F.tokenize(C,F);return(B||w)&&B!="comment"&&(_=null,F.state=F.state(w||B,C,F),_&&(B=_=="error"?B+" error":_)),B},indent:function(C,F,B){var Q=C.context;if(C.tokenize.isInAttribute)return C.tagStart==C.indented?C.stringStartCol+1:C.indented+h;if(Q&&Q.noIndent)return r.Pass;if(C.tokenize!=A&&C.tokenize!=k)return B?B.match(/^(\s*)/)[0].length:0;if(C.tagName)return p.multilineTagIndentPastTag!==!1?C.tagStart+C.tagName.length+2:C.tagStart+h*(p.multilineTagIndentFactor||1);if(p.alignCDATA&&/<!\[CDATA\[/.test(F))return 0;var yt=F&&/^<(\/)?([\w_:\.-]*)/.exec(F);if(yt&&yt[1])for(;Q;)if(Q.tagName==yt[2]){Q=Q.prev;break}else if(p.implicitlyClosed.hasOwnProperty(E(Q.tagName)))Q=Q.prev;else break;else if(yt)for(;Q;){var Ct=p.contextGrabbers[E(Q.tagName)];if(Ct&&Ct.hasOwnProperty(E(yt[2])))Q=Q.prev;else break}for(;Q&&Q.prev&&!Q.startOfLine;)Q=Q.prev;return Q?Q.indent+h:C.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:p.htmlMode?"html":"xml",helperType:p.htmlMode?"html":"xml",skipAttribute:function(C){C.state==U&&(C.state=xt)},xmlCurrentTag:function(C){return C.tagName?{name:C.tagName,close:C.type=="closeTag"}:null},xmlCurrentContext:function(C){for(var F=[],B=C.context;B;B=B.prev)F.push(B.tagName);return F.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();(function(t,n){(function(r){r(Yi.exports,Sst.exports,_st.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(k){var A=k.tagName;k.tagName=null;var P=h.indent(k,"","");return k.tagName=A,P}function m(k,A){return A.context.mode==h?w(k,A,A.context):_(k,A,A.context)}function w(k,A,P){if(P.depth==2)return k.match(/^.*?\*\//)?P.depth=1:k.skipToEnd(),"comment";if(k.peek()=="{"){h.skipAttribute(P.state);var L=g(P.state),T=P.state.context;if(T&&k.match(/^[^>]*>\s*$/,!1)){for(;T.prev&&!T.startOfLine;)T=T.prev;T.startOfLine?L-=u.indentUnit:P.prev.state.lexical&&(L=P.prev.state.lexical.indented)}else P.depth==1&&(L+=u.indentUnit);return A.context=new o(r.startState(p,L),p,0,A.context),null}if(P.depth==1){if(k.peek()=="<")return h.skipAttribute(P.state),A.context=new o(r.startState(h,g(P.state)),h,0,A.context),null;if(k.match("//"))return k.skipToEnd(),"comment";if(k.match("/*"))return P.depth=2,m(k,A)}var E=h.token(k,P.state),z=k.current(),$;return/\btag\b/.test(E)?/>$/.test(z)?P.state.context?P.depth=0:A.context=A.context.prev:/^</.test(z)&&(P.depth=1):!E&&($=z.indexOf("{"))>-1&&k.backUp(z.length-$),E}function _(k,A,P){if(k.peek()=="<"&&p.expressionAllowed(k,P.state))return A.context=new o(r.startState(h,p.indent(P.state,"","")),h,0,A.context),p.skipExpression(P.state),null;var L=p.token(k,P.state);if(!L&&P.depth!=null){var T=k.current();T=="{"?P.depth++:T=="}"&&--P.depth==0&&(A.context=A.context.prev)}return L}return{startState:function(){return{context:new o(r.startState(p),p)}},copyState:function(k){return{context:a(k.context)}},token:m,indent:function(k,A,P){return k.context.mode.indent(k.context.state,A,P)},innerMode:function(k){return k.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(Yi.exports)})(function(r){r.defineOption("placeholder","",function(g,m,w){var _=w&&w!=r.Init;if(m&&!_)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&&_){g.off("blur",f),g.off("change",h),g.off("swapDoc",h),r.off(g.getInputField(),"compositionupdate",g.state.placeholderCompose),o(g);var k=g.getWrapperElement();k.className=k.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 w=g.getOption("placeholder");typeof w=="string"&&(w=document.createTextNode(w)),m.appendChild(w),g.display.lineSpace.insertBefore(m,g.display.lineSpace.firstChild)}function u(g){setTimeout(function(){var m=!1;if(g.lineCount()==1){var w=g.getInputField();m=w.nodeName=="TEXTAREA"?!g.getLine(0).length:!/[^\u200b]/.test(w.querySelector(".CodeMirror-line").textContent)}m?a(g):o(g)},20)}function f(g){p(g)&&a(g)}function h(g){var m=g.getWrapperElement(),w=p(g);m.className=m.className.replace(" CodeMirror-empty","")+(w?" CodeMirror-empty":""),w?a(g):o(g)}function p(g){return g.lineCount()===1&&g.getLine(0)===""}})})();(function(t,n){(function(r){r(Yi.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(w){if(w.which!=1)return;r.e_preventDefault(w);var _=g.orientation=="horizontal"?"pageX":"pageY",k=w[_],A=g.pos;function P(){r.off(document,"mousemove",L),r.off(document,"mouseup",P)}function L(T){if(T.which!=1)return P();g.moveTo(A+(T[_]-k)*(g.total/g.size))}r.on(document,"mousemove",L),r.on(document,"mouseup",P)}),r.on(this.node,"click",function(w){r.e_preventDefault(w);var _=g.inner.getBoundingClientRect(),k;g.orientation=="horizontal"?k=w.clientX<_.left?-1:w.clientX>_.right?1:0:k=w.clientY<_.top?-1:w.clientY>_.bottom?1:0,g.moveTo(g.pos+k*g.screen)});function m(w){var _=r.wheelEventPixels(w)[g.orientation=="horizontal"?"x":"y"],k=g.pos;g.moveTo(g.pos+_),g.pos!=k&&r.e_preventDefault(w)}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 kst(t,n,r={}){const o=xst.fromTextArea(t.value,{theme:"vars",...r,scrollbarStyle:"simple"});let a=!1;return o.on("change",()=>{if(a){a=!1;return}n.value=o.getValue()}),je(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}),Pf(o)}const Cst={relative:"","font-mono":"","text-sm":"",class:"codemirror-scrolls"},Z0=ue({__name:"CodeMirror",props:{modelValue:null,mode:null,readOnly:{type:Boolean}},emits:["update:modelValue","save"],setup(t,{expose:n,emit:r}){const o=t,a=F1(),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=ne(),h=PC(o,"modelValue",r,{passive:!0}),p=ll();return n({cm:p}),cl(async()=>{p.value=kst(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",Cst,[ut("textarea",{ref_key:"el",ref:f},null,512)]))}}),Tst=ue({__name:"ViewEditor",props:{file:null},emits:["draft"],setup(t,{emit:n}){const r=t,o=ne(""),a=ll(void 0),u=ne(!1);je(()=>r.file,async()=>{var T;if(!r.file||!((T=r.file)!=null&&T.filepath)){o.value="",a.value=o.value,u.value=!1;return}o.value=await Ue.rpc.readFile(r.file.filepath),a.value=o.value,u.value=!1},{immediate:!0});const f=kt(()=>{var T,E;return((E=(T=r.file)==null?void 0:T.filepath)==null?void 0:E.split(/\./g).pop())||"js"}),h=ne(),p=kt(()=>{var T;return(T=h.value)==null?void 0:T.cm}),g=kt(()=>{var T;return((T=r.file)==null?void 0:T.tasks.filter(E=>{var z;return((z=E.result)==null?void 0:z.state)==="fail"}))||[]}),m=[],w=[],_=[],k=ne(!1),A=()=>{_.forEach(([T,E,z])=>{T.removeEventListener("click",E),z()}),_.length=0};MC(h,()=>{var T;(T=p.value)==null||T.refresh()});function P(){u.value=a.value!==p.value.getValue()}je(u,T=>{n("draft",T)},{immediate:!0}),je([p,g],([T])=>{if(!T){A();return}setTimeout(()=>{A(),m.forEach(E=>E.clear()),w.forEach(E=>{var z;return(z=p.value)==null?void 0:z.removeLineClass(E,"wrap")}),m.length=0,w.length=0,T.on("changes",P),g.value.forEach(E=>{var V;const z=(V=E.result)==null?void 0:V.error,$=((z==null?void 0:z.stacks)||[]).filter(W=>{var st;return W.file&&W.file===((st=r.file)==null?void 0:st.filepath)});if($.length){const W=$[0].sourcePos||$[0],st=document.createElement("div");st.className="op80 flex gap-x-2 items-center";const nt=document.createElement("pre");nt.className="c-red-600 dark:c-red-400",nt.textContent=`${" ".repeat(W.column)}^ ${z==null?void 0:z.nameStr}: ${z==null?void 0:z.message}`,st.appendChild(nt);const ft=document.createElement("span");ft.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",ft.tabIndex=0,ft.ariaLabel="Open in Editor",o0(ft,{content:"Open in Editor",placement:"bottom"},!1);const mt=async()=>{await X0($[0].file,W.line,W.column)};st.appendChild(ft),_.push([ft,mt,()=>Yf(ft)]),w.push(p.value.addLineClass(W.line-1,"wrap","bg-red-500/10")),m.push(p.value.addLineWidget(W.line-1,st))}}),k.value||T.clearHistory()},100)},{flush:"post"});async function L(T){k.value=!0,await Ue.rpc.writeFile(r.file.filepath,T),a.value=T,u.value=!1}return(T,E)=>{const z=Z0;return ht(),de(z,fi({ref_key:"editor",ref:h,modelValue:o.value,"onUpdate:modelValue":E[0]||(E[0]=$=>o.value=$),"h-full":""},{lineNumbers:!0},{mode:Z(f),"data-testid":"code-mirror",onSave:L}),null,16,["modelValue","mode"])}}}),Lst=ue({__name:"Modal",props:{modelValue:{type:Boolean,default:!1},direction:{default:"bottom"}},emits:["update:modelValue"],setup(t){const n=t,r=kt(()=>{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=kt(()=>{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:ve(["fixed inset-0 z-40",t.modelValue?"":"pointer-events-none"])},[ut("div",{class:ve(["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:ve(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[Z(r)]]),style:yn(t.modelValue?{}:{transform:Z(o)})},[Pr(a.$slots,"default")],6)],2))}}),Est=["aria-label","opacity","disabled","hover"],Yo=ue({__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"},[Pr(n.$slots,"default",{},()=>[ut("div",{class:ve(t.icon),ma:""},null,2)])],8,Est))}}),Ast={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Mst={"p-4":"",relative:""},Nst=ut("p",null,"Module Info",-1),Pst={op50:"","font-mono":"","text-sm":""},Ost={key:0,"p-5":""},Dst={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},$st=ut("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1),Rst=ut("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1),zst={key:0},Ist={p:"x3 y-1","bg-overlay":"",border:"base b t"},Fst=ue({__name:"ModuleTransformResultView",props:{id:null},emits:["close"],setup(t,{emit:n}){const r=t,o=sC(()=>Ue.rpc.getTransformResult(r.id)),a=kt(()=>{var p;return((p=r.id)==null?void 0:p.split(/\./g).pop())||"js"}),u=kt(()=>{var p,g;return((g=(p=o.value)==null?void 0:p.source)==null?void 0:g.trim())||""}),f=kt(()=>{var p,g;return((g=(p=o.value)==null?void 0:p.code)==null?void 0:g.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=kt(()=>{var p,g,m,w,_;return{mappings:(m=(g=(p=o.value)==null?void 0:p.map)==null?void 0:g.mappings)!=null?m:"",version:(_=(w=o.value)==null?void 0:w.map)==null?void 0:_.version}});return aC("Escape",()=>{n("close")}),(p,g)=>{const m=Yo,w=Z0;return ht(),Mt("div",Ast,[ut("div",Mst,[Nst,ut("p",Pst,ae(t.id),1),Bt(m,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:g[0]||(g[0]=_=>n("close"))})]),Z(o)?(ht(),Mt(ce,{key:1},[ut("div",Dst,[$st,Rst,Bt(w,fi({"h-full":"","model-value":Z(u),"read-only":""},{lineNumbers:!0},{mode:Z(a)}),null,16,["model-value","mode"]),Bt(w,fi({"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",Ist," Source map (v"+ae(Z(h).version)+") ",1),Bt(w,fi({"model-value":Z(h).mappings,"read-only":""},{lineNumbers:!0},{mode:Z(a)}),null,16,["model-value","mode"])])):_e("",!0)],64)):(ht(),Mt("div",Ost," No transform result found for this module. "))])}}});var J0={},cf=En&&En.__assign||function(){return cf=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},cf.apply(this,arguments)},qst=En&&En.__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},Hst=En&&En.__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(J0,"__esModule",{value:!0});var Yg=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},Bst=["__proto__","constructor","prototype"],si=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.reduce(function(r,o){return Object.keys(o).forEach(function(a){Bst.includes(a)||(Array.isArray(r[a])&&Array.isArray(o[a])?r[a]=si.options.mergeArrays?Array.from(new Set(r[a].concat(o[a]))):o[a]:Yg(r[a])&&Yg(o[a])?r[a]=si(r[a],o[a]):r[a]=o[a])}),r},{})},Q0={mergeArrays:!0};si.options=Q0;si.withOptions=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];si.options=cf({mergeArrays:!0},t);var o=si.apply(void 0,Hst([],qst(n),!1));return si.options=Q0,o};var Wst=J0.default=si,uf="http://www.w3.org/1999/xhtml",Zg={svg:"http://www.w3.org/2000/svg",xhtml:uf,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function gc(t){var n=t+="",r=n.indexOf(":");return r>=0&&(n=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),Zg.hasOwnProperty(n)?{space:Zg[n],local:t}:t}function Ust(t){return function(){var n=this.ownerDocument,r=this.namespaceURI;return r===uf&&n.documentElement.namespaceURI===uf?n.createElement(t):n.createElementNS(r,t)}}function jst(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function ty(t){var n=gc(t);return(n.local?jst:Ust)(n)}function Gst(){}function nh(t){return t==null?Gst:function(){return this.querySelector(t)}}function Vst(t){typeof t!="function"&&(t=nh(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 An(o,this._parents)}function Kst(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Xst(){return[]}function ey(t){return t==null?Xst:function(){return this.querySelectorAll(t)}}function Yst(t){return function(){return Kst(t.apply(this,arguments))}}function Zst(t){typeof t=="function"?t=Yst(t):t=ey(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 An(o,a)}function ny(t){return function(){return this.matches(t)}}function ry(t){return function(n){return n.matches(t)}}var Jst=Array.prototype.find;function Qst(t){return function(){return Jst.call(this.children,t)}}function tlt(){return this.firstElementChild}function elt(t){return this.select(t==null?tlt:Qst(typeof t=="function"?t:ry(t)))}var nlt=Array.prototype.filter;function rlt(){return Array.from(this.children)}function ilt(t){return function(){return nlt.call(this.children,t)}}function olt(t){return this.selectAll(t==null?rlt:ilt(typeof t=="function"?t:ry(t)))}function slt(t){typeof t!="function"&&(t=ny(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 An(o,this._parents)}function iy(t){return new Array(t.length)}function llt(){return new An(this._enter||this._groups.map(iy),this._parents)}function Ra(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}Ra.prototype={constructor:Ra,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 alt(t){return function(){return t}}function clt(t,n,r,o,a,u){for(var f=0,h,p=n.length,g=u.length;f<g;++f)(h=n[f])?(h.__data__=u[f],o[f]=h):r[f]=new Ra(t,u[f]);for(;f<p;++f)(h=n[f])&&(a[f]=h)}function ult(t,n,r,o,a,u,f){var h,p,g=new Map,m=n.length,w=u.length,_=new Array(m),k;for(h=0;h<m;++h)(p=n[h])&&(_[h]=k=f.call(p,p.__data__,h,n)+"",g.has(k)?a[h]=p:g.set(k,p));for(h=0;h<w;++h)k=f.call(t,u[h],h,u)+"",(p=g.get(k))?(o[h]=p,p.__data__=u[h],g.delete(k)):r[h]=new Ra(t,u[h]);for(h=0;h<m;++h)(p=n[h])&&g.get(_[h])===p&&(a[h]=p)}function flt(t){return t.__data__}function hlt(t,n){if(!arguments.length)return Array.from(this,flt);var r=n?ult:clt,o=this._parents,a=this._groups;typeof t!="function"&&(t=alt(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],w=a[g],_=w.length,k=dlt(t.call(m,m&&m.__data__,g,o)),A=k.length,P=h[g]=new Array(A),L=f[g]=new Array(A),T=p[g]=new Array(_);r(m,w,P,L,T,k,n);for(var E=0,z=0,$,V;E<A;++E)if($=P[E]){for(E>=z&&(z=E+1);!(V=L[z])&&++z<A;);$._next=V||null}}return f=new An(f,o),f._enter=h,f._exit=p,f}function dlt(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function plt(){return new An(this._exit||this._groups.map(iy),this._parents)}function glt(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 vlt(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],w=g.length,_=h[p]=new Array(w),k,A=0;A<w;++A)(k=g[A]||m[A])&&(_[A]=k);for(;p<a;++p)h[p]=r[p];return new An(h,this._parents)}function mlt(){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 ylt(t){t||(t=blt);function n(w,_){return w&&_?t(w.__data__,_.__data__):!w-!_}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 An(a,this._parents).order()}function blt(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function wlt(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function xlt(){return Array.from(this)}function _lt(){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 Slt(){let t=0;for(const n of this)++t;return t}function klt(){return!this.node()}function Clt(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 Tlt(t){return function(){this.removeAttribute(t)}}function Llt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Elt(t,n){return function(){this.setAttribute(t,n)}}function Alt(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Mlt(t,n){return function(){var r=n.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function Nlt(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 Plt(t,n){var r=gc(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?Llt:Tlt:typeof n=="function"?r.local?Nlt:Mlt:r.local?Alt:Elt)(r,n))}function oy(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Olt(t){return function(){this.style.removeProperty(t)}}function Dlt(t,n,r){return function(){this.style.setProperty(t,n,r)}}function $lt(t,n,r){return function(){var o=n.apply(this,arguments);o==null?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}function Rlt(t,n,r){return arguments.length>1?this.each((n==null?Olt:typeof n=="function"?$lt:Dlt)(t,n,r==null?"":r)):Uo(this.node(),t)}function Uo(t,n){return t.style.getPropertyValue(n)||oy(t).getComputedStyle(t,null).getPropertyValue(n)}function zlt(t){return function(){delete this[t]}}function Ilt(t,n){return function(){this[t]=n}}function Flt(t,n){return function(){var r=n.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function qlt(t,n){return arguments.length>1?this.each((n==null?zlt:typeof n=="function"?Flt:Ilt)(t,n)):this.node()[t]}function sy(t){return t.trim().split(/^|\s+/)}function rh(t){return t.classList||new ly(t)}function ly(t){this._node=t,this._names=sy(t.getAttribute("class")||"")}ly.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 ay(t,n){for(var r=rh(t),o=-1,a=n.length;++o<a;)r.add(n[o])}function cy(t,n){for(var r=rh(t),o=-1,a=n.length;++o<a;)r.remove(n[o])}function Hlt(t){return function(){ay(this,t)}}function Blt(t){return function(){cy(this,t)}}function Wlt(t,n){return function(){(n.apply(this,arguments)?ay:cy)(this,t)}}function Ult(t,n){var r=sy(t+"");if(arguments.length<2){for(var o=rh(this.node()),a=-1,u=r.length;++a<u;)if(!o.contains(r[a]))return!1;return!0}return this.each((typeof n=="function"?Wlt:n?Hlt:Blt)(r,n))}function jlt(){this.textContent=""}function Glt(t){return function(){this.textContent=t}}function Vlt(t){return function(){var n=t.apply(this,arguments);this.textContent=n==null?"":n}}function Klt(t){return arguments.length?this.each(t==null?jlt:(typeof t=="function"?Vlt:Glt)(t)):this.node().textContent}function Xlt(){this.innerHTML=""}function Ylt(t){return function(){this.innerHTML=t}}function Zlt(t){return function(){var n=t.apply(this,arguments);this.innerHTML=n==null?"":n}}function Jlt(t){return arguments.length?this.each(t==null?Xlt:(typeof t=="function"?Zlt:Ylt)(t)):this.node().innerHTML}function Qlt(){this.nextSibling&&this.parentNode.appendChild(this)}function tat(){return this.each(Qlt)}function eat(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function nat(){return this.each(eat)}function rat(t){var n=typeof t=="function"?t:ty(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function iat(){return null}function oat(t,n){var r=typeof t=="function"?t:ty(t),o=n==null?iat:typeof n=="function"?n:nh(n);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function sat(){var t=this.parentNode;t&&t.removeChild(this)}function lat(){return this.each(sat)}function aat(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function cat(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function uat(t){return this.select(t?cat:aat)}function fat(t){return arguments.length?this.property("__data__",t):this.node().__data__}function hat(t){return function(n){t.call(this,n,this.__data__)}}function dat(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 pat(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 gat(t,n,r){return function(){var o=this.__on,a,u=hat(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 vat(t,n,r){var o=dat(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?gat:pat,a=0;a<u;++a)this.each(h(o[a],n,r));return this}function uy(t,n,r){var o=oy(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 mat(t,n){return function(){return uy(this,t,n)}}function yat(t,n){return function(){return uy(this,t,n.apply(this,arguments))}}function bat(t,n){return this.each((typeof n=="function"?yat:mat)(t,n))}function*wat(){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 fy=[null];function An(t,n){this._groups=t,this._parents=n}function pl(){return new An([[document.documentElement]],fy)}function xat(){return this}An.prototype=pl.prototype={constructor:An,select:Vst,selectAll:Zst,selectChild:elt,selectChildren:olt,filter:slt,data:hlt,enter:llt,exit:plt,join:glt,merge:vlt,selection:xat,order:mlt,sort:ylt,call:wlt,nodes:xlt,node:_lt,size:Slt,empty:klt,each:Clt,attr:Plt,style:Rlt,property:qlt,classed:Ult,text:Klt,html:Jlt,raise:tat,lower:nat,append:rat,insert:oat,remove:lat,clone:uat,datum:fat,on:vat,dispatch:bat,[Symbol.iterator]:wat};function vn(t){return typeof t=="string"?new An([[document.querySelector(t)]],[document.documentElement]):new An([[t]],fy)}function _at(t){let n;for(;n=t.sourceEvent;)t=n;return t}function Cr(t,n){if(t=_at(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 Sat={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 ma(r)}function ma(t){this._=t}function kat(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}})}ma.prototype=gl.prototype={constructor:ma,on:function(t,n){var r=this._,o=kat(t+"",r),a,u=-1,f=o.length;if(arguments.length<2){for(;++u<f;)if((a=(t=o[u]).type)&&(a=Cat(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]=Jg(r[a],t.name,n);else if(n==null)for(a in r)r[a]=Jg(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 ma(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 Cat(t,n){for(var r=0,o=t.length,a;r<o;++r)if((a=t[r]).name===n)return a.value}function Jg(t,n,r){for(var o=0,a=t.length;o<a;++o)if(t[o].name===n){t[o]=Sat,t=t.slice(0,o).concat(t.slice(o+1));break}return r!=null&&t.push({name:n,value:r}),t}const Tat={passive:!1},nl={capture:!0,passive:!1};function Lu(t){t.stopImmediatePropagation()}function Oo(t){t.preventDefault(),t.stopImmediatePropagation()}function hy(t){var n=t.document.documentElement,r=vn(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 dy(t,n){var r=t.document.documentElement,o=vn(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)}var na=t=>()=>t;function ff(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}})}ff.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function Lat(t){return!t.ctrlKey&&!t.button}function Eat(){return this.parentNode}function Aat(t,n){return n==null?{x:t.x,y:t.y}:n}function Mat(){return navigator.maxTouchPoints||"ontouchstart"in this}function Nat(){var t=Lat,n=Eat,r=Aat,o=Mat,a={},u=gl("start","drag","end"),f=0,h,p,g,m,w=0;function _($){$.on("mousedown.drag",k).filter(o).on("touchstart.drag",L).on("touchmove.drag",T,Tat).on("touchend.drag touchcancel.drag",E).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function k($,V){if(!(m||!t.call(this,$,V))){var W=z(this,n.call(this,$,V),$,V,"mouse");!W||(vn($.view).on("mousemove.drag",A,nl).on("mouseup.drag",P,nl),hy($.view),Lu($),g=!1,h=$.clientX,p=$.clientY,W("start",$))}}function A($){if(Oo($),!g){var V=$.clientX-h,W=$.clientY-p;g=V*V+W*W>w}a.mouse("drag",$)}function P($){vn($.view).on("mousemove.drag mouseup.drag",null),dy($.view,g),Oo($),a.mouse("end",$)}function L($,V){if(!!t.call(this,$,V)){var W=$.changedTouches,st=n.call(this,$,V),nt=W.length,ft,mt;for(ft=0;ft<nt;++ft)(mt=z(this,st,$,V,W[ft].identifier,W[ft]))&&(Lu($),mt("start",$,W[ft]))}}function T($){var V=$.changedTouches,W=V.length,st,nt;for(st=0;st<W;++st)(nt=a[V[st].identifier])&&(Oo($),nt("drag",$,V[st]))}function E($){var V=$.changedTouches,W=V.length,st,nt;for(m&&clearTimeout(m),m=setTimeout(function(){m=null},500),st=0;st<W;++st)(nt=a[V[st].identifier])&&(Lu($),nt("end",$,V[st]))}function z($,V,W,st,nt,ft){var mt=u.copy(),xt=Cr(ft||W,V),ct,U,R;if((R=r.call($,new ff("beforestart",{sourceEvent:W,target:_,identifier:nt,active:f,x:xt[0],y:xt[1],dx:0,dy:0,dispatch:mt}),st))!=null)return ct=R.x-xt[0]||0,U=R.y-xt[1]||0,function C(F,B,Q){var yt=xt,Ct;switch(F){case"start":a[nt]=C,Ct=f++;break;case"end":delete a[nt],--f;case"drag":xt=Cr(Q||B,V),Ct=f;break}mt.call(F,$,new ff(F,{sourceEvent:B,subject:R,target:_,identifier:nt,active:Ct,x:xt[0]+ct,y:xt[1]+U,dx:xt[0]-yt[0],dy:xt[1]-yt[1],dispatch:mt}),st)}}return _.filter=function($){return arguments.length?(t=typeof $=="function"?$:na(!!$),_):t},_.container=function($){return arguments.length?(n=typeof $=="function"?$:na($),_):n},_.subject=function($){return arguments.length?(r=typeof $=="function"?$:na($),_):r},_.touchable=function($){return arguments.length?(o=typeof $=="function"?$:na(!!$),_):o},_.on=function(){var $=u.on.apply(u,arguments);return $===u?_:$},_.clickDistance=function($){return arguments.length?(w=($=+$)*$,_):Math.sqrt(w)},_}function ih(t,n,r){t.prototype=n.prototype=r,r.constructor=t}function py(t,n){var r=Object.create(t.prototype);for(var o in n)r[o]=n[o];return r}function vl(){}var rl=.7,za=1/rl,Do="\\s*([+-]?\\d+)\\s*",il="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",lr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Pat=/^#([0-9a-f]{3,8})$/,Oat=new RegExp(`^rgb\\(${Do},${Do},${Do}\\)$`),Dat=new RegExp(`^rgb\\(${lr},${lr},${lr}\\)$`),$at=new RegExp(`^rgba\\(${Do},${Do},${Do},${il}\\)$`),Rat=new RegExp(`^rgba\\(${lr},${lr},${lr},${il}\\)$`),zat=new RegExp(`^hsl\\(${il},${lr},${lr}\\)$`),Iat=new RegExp(`^hsla\\(${il},${lr},${lr},${il}\\)$`),Qg={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};ih(vl,ol,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:tv,formatHex:tv,formatHex8:Fat,formatHsl:qat,formatRgb:ev,toString:ev});function tv(){return this.rgb().formatHex()}function Fat(){return this.rgb().formatHex8()}function qat(){return gy(this).formatHsl()}function ev(){return this.rgb().formatRgb()}function ol(t){var n,r;return t=(t+"").trim().toLowerCase(),(n=Pat.exec(t))?(r=n[1].length,n=parseInt(n[1],16),r===6?nv(n):r===3?new mn(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):r===8?ra(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):r===4?ra(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=Oat.exec(t))?new mn(n[1],n[2],n[3],1):(n=Dat.exec(t))?new mn(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=$at.exec(t))?ra(n[1],n[2],n[3],n[4]):(n=Rat.exec(t))?ra(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=zat.exec(t))?ov(n[1],n[2]/100,n[3]/100,1):(n=Iat.exec(t))?ov(n[1],n[2]/100,n[3]/100,n[4]):Qg.hasOwnProperty(t)?nv(Qg[t]):t==="transparent"?new mn(NaN,NaN,NaN,0):null}function nv(t){return new mn(t>>16&255,t>>8&255,t&255,1)}function ra(t,n,r,o){return o<=0&&(t=n=r=NaN),new mn(t,n,r,o)}function Hat(t){return t instanceof vl||(t=ol(t)),t?(t=t.rgb(),new mn(t.r,t.g,t.b,t.opacity)):new mn}function hf(t,n,r,o){return arguments.length===1?Hat(t):new mn(t,n,r,o==null?1:o)}function mn(t,n,r,o){this.r=+t,this.g=+n,this.b=+r,this.opacity=+o}ih(mn,hf,py(vl,{brighter(t){return t=t==null?za:Math.pow(za,t),new mn(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?rl:Math.pow(rl,t),new mn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new mn(ji(this.r),ji(this.g),ji(this.b),Ia(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:rv,formatHex:rv,formatHex8:Bat,formatRgb:iv,toString:iv}));function rv(){return`#${Hi(this.r)}${Hi(this.g)}${Hi(this.b)}`}function Bat(){return`#${Hi(this.r)}${Hi(this.g)}${Hi(this.b)}${Hi((isNaN(this.opacity)?1:this.opacity)*255)}`}function iv(){const t=Ia(this.opacity);return`${t===1?"rgb(":"rgba("}${ji(this.r)}, ${ji(this.g)}, ${ji(this.b)}${t===1?")":`, ${t})`}`}function Ia(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 ov(t,n,r,o){return o<=0?t=n=r=NaN:r<=0||r>=1?t=n=NaN:n<=0&&(t=NaN),new Wn(t,n,r,o)}function gy(t){if(t instanceof Wn)return new Wn(t.h,t.s,t.l,t.opacity);if(t instanceof vl||(t=ol(t)),!t)return new Wn;if(t instanceof Wn)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 Wn(f,h,p,t.opacity)}function Wat(t,n,r,o){return arguments.length===1?gy(t):new Wn(t,n,r,o==null?1:o)}function Wn(t,n,r,o){this.h=+t,this.s=+n,this.l=+r,this.opacity=+o}ih(Wn,Wat,py(vl,{brighter(t){return t=t==null?za:Math.pow(za,t),new Wn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?rl:Math.pow(rl,t),new Wn(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 mn(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 Wn(sv(this.h),ia(this.s),ia(this.l),Ia(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=Ia(this.opacity);return`${t===1?"hsl(":"hsla("}${sv(this.h)}, ${ia(this.s)*100}%, ${ia(this.l)*100}%${t===1?")":`, ${t})`}`}}));function sv(t){return t=(t||0)%360,t<0?t+360:t}function ia(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}var vy=t=>()=>t;function Uat(t,n){return function(r){return t+r*n}}function jat(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 Gat(t){return(t=+t)==1?my:function(n,r){return r-n?jat(n,r,t):vy(isNaN(n)?r:n)}}function my(t,n){var r=n-t;return r?Uat(t,r):vy(isNaN(t)?n:t)}var lv=function t(n){var r=Gat(n);function o(a,u){var f=r((a=hf(a)).r,(u=hf(u)).r),h=r(a.g,u.g),p=r(a.b,u.b),g=my(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 ii(t,n){return t=+t,n=+n,function(r){return t*(1-r)+n*r}}var df=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Au=new RegExp(df.source,"g");function Vat(t){return function(){return t}}function Kat(t){return function(n){return t(n)+""}}function Xat(t,n){var r=df.lastIndex=Au.lastIndex=0,o,a,u,f=-1,h=[],p=[];for(t=t+"",n=n+"";(o=df.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:ii(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]?Kat(p[0].x):Vat(n):(n=p.length,function(g){for(var m=0,w;m<n;++m)h[(w=p[m]).i]=w.x(g);return h.join("")})}var av=180/Math.PI,pf={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function yy(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)*av,skewX:Math.atan(p)*av,scaleX:f,scaleY:h}}var oa;function Yat(t){const n=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return n.isIdentity?pf:yy(n.a,n.b,n.c,n.d,n.e,n.f)}function Zat(t){return t==null||(oa||(oa=document.createElementNS("http://www.w3.org/2000/svg","g")),oa.setAttribute("transform",t),!(t=oa.transform.baseVal.consolidate()))?pf:(t=t.matrix,yy(t.a,t.b,t.c,t.d,t.e,t.f))}function by(t,n,r,o){function a(g){return g.length?g.pop()+" ":""}function u(g,m,w,_,k,A){if(g!==w||m!==_){var P=k.push("translate(",null,n,null,r);A.push({i:P-4,x:ii(g,w)},{i:P-2,x:ii(m,_)})}else(w||_)&&k.push("translate("+w+n+_+r)}function f(g,m,w,_){g!==m?(g-m>180?m+=360:m-g>180&&(g+=360),_.push({i:w.push(a(w)+"rotate(",null,o)-2,x:ii(g,m)})):m&&w.push(a(w)+"rotate("+m+o)}function h(g,m,w,_){g!==m?_.push({i:w.push(a(w)+"skewX(",null,o)-2,x:ii(g,m)}):m&&w.push(a(w)+"skewX("+m+o)}function p(g,m,w,_,k,A){if(g!==w||m!==_){var P=k.push(a(k)+"scale(",null,",",null,")");A.push({i:P-4,x:ii(g,w)},{i:P-2,x:ii(m,_)})}else(w!==1||_!==1)&&k.push(a(k)+"scale("+w+","+_+")")}return function(g,m){var w=[],_=[];return g=t(g),m=t(m),u(g.translateX,g.translateY,m.translateX,m.translateY,w,_),f(g.rotate,m.rotate,w,_),h(g.skewX,m.skewX,w,_),p(g.scaleX,g.scaleY,m.scaleX,m.scaleY,w,_),g=m=null,function(k){for(var A=-1,P=_.length,L;++A<P;)w[(L=_[A]).i]=L.x(k);return w.join("")}}}var Jat=by(Yat,"px, ","px)","deg)"),Qat=by(Zat,", ",")",")"),tct=1e-12;function cv(t){return((t=Math.exp(t))+1/t)/2}function ect(t){return((t=Math.exp(t))-1/t)/2}function nct(t){return((t=Math.exp(2*t))-1)/(t+1)}var rct=function t(n,r,o){function a(u,f){var h=u[0],p=u[1],g=u[2],m=f[0],w=f[1],_=f[2],k=m-h,A=w-p,P=k*k+A*A,L,T;if(P<tct)T=Math.log(_/g)/n,L=function(st){return[h+st*k,p+st*A,g*Math.exp(n*st*T)]};else{var E=Math.sqrt(P),z=(_*_-g*g+o*P)/(2*g*r*E),$=(_*_-g*g-o*P)/(2*_*r*E),V=Math.log(Math.sqrt(z*z+1)-z),W=Math.log(Math.sqrt($*$+1)-$);T=(W-V)/n,L=function(st){var nt=st*T,ft=cv(V),mt=g/(r*E)*(ft*nct(n*nt+V)-ect(V));return[h+mt*k,p+mt*A,g*ft/cv(n*nt+V)]}}return L.duration=T*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),jo=0,Os=0,As=0,wy=1e3,Fa,Ds,qa=0,Vi=0,vc=0,sl=typeof performance=="object"&&performance.now?performance:Date,xy=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function oh(){return Vi||(xy(ict),Vi=sl.now()+vc)}function ict(){Vi=0}function Ha(){this._call=this._time=this._next=null}Ha.prototype=sh.prototype={constructor:Ha,restart:function(t,n,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?oh():+r)+(n==null?0:+n),!this._next&&Ds!==this&&(Ds?Ds._next=this:Fa=this,Ds=this),this._call=t,this._time=r,gf()},stop:function(){this._call&&(this._call=null,this._time=1/0,gf())}};function sh(t,n,r){var o=new Ha;return o.restart(t,n,r),o}function oct(){oh(),++jo;for(var t=Fa,n;t;)(n=Vi-t._time)>=0&&t._call.call(void 0,n),t=t._next;--jo}function uv(){Vi=(qa=sl.now())+vc,jo=Os=0;try{oct()}finally{jo=0,lct(),Vi=0}}function sct(){var t=sl.now(),n=t-qa;n>wy&&(vc-=n,qa=t)}function lct(){for(var t,n=Fa,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:Fa=r);Ds=t,gf(o)}function gf(t){if(!jo){Os&&(Os=clearTimeout(Os));var n=t-Vi;n>24?(t<1/0&&(Os=setTimeout(uv,t-sl.now()-vc)),As&&(As=clearInterval(As))):(As||(qa=sl.now(),As=setInterval(sct,wy)),jo=1,xy(uv))}}function fv(t,n,r){var o=new Ha;return n=n==null?0:+n,o.restart(a=>{o.stop(),t(a+n)},n,r),o}var act=gl("start","end","cancel","interrupt"),cct=[],_y=0,hv=1,vf=2,ya=3,dv=4,mf=5,ba=6;function mc(t,n,r,o,a,u){var f=t.__transition;if(!f)t.__transition={};else if(r in f)return;uct(t,r,{name:n,index:o,group:a,on:act,tween:cct,time:u.time,delay:u.delay,duration:u.duration,ease:u.ease,timer:null,state:_y})}function lh(t,n){var r=Gn(t,n);if(r.state>_y)throw new Error("too late; already scheduled");return r}function fr(t,n){var r=Gn(t,n);if(r.state>ya)throw new Error("too late; already running");return r}function Gn(t,n){var r=t.__transition;if(!r||!(r=r[n]))throw new Error("transition not found");return r}function uct(t,n,r){var o=t.__transition,a;o[n]=r,r.timer=sh(u,0,r.time);function u(g){r.state=hv,r.timer.restart(f,r.delay,r.time),r.delay<=g&&f(g-r.delay)}function f(g){var m,w,_,k;if(r.state!==hv)return p();for(m in o)if(k=o[m],k.name===r.name){if(k.state===ya)return fv(f);k.state===dv?(k.state=ba,k.timer.stop(),k.on.call("interrupt",t,t.__data__,k.index,k.group),delete o[m]):+m<n&&(k.state=ba,k.timer.stop(),k.on.call("cancel",t,t.__data__,k.index,k.group),delete o[m])}if(fv(function(){r.state===ya&&(r.state=dv,r.timer.restart(h,r.delay,r.time),h(g))}),r.state=vf,r.on.call("start",t,t.__data__,r.index,r.group),r.state===vf){for(r.state=ya,a=new Array(_=r.tween.length),m=0,w=-1;m<_;++m)(k=r.tween[m].value.call(t,t.__data__,r.index,r.group))&&(a[++w]=k);a.length=w+1}}function h(g){for(var m=g<r.duration?r.ease.call(null,g/r.duration):(r.timer.restart(p),r.state=mf,1),w=-1,_=a.length;++w<_;)a[w].call(t,m);r.state===mf&&(r.on.call("end",t,t.__data__,r.index,r.group),p())}function p(){r.state=ba,r.timer.stop(),delete o[n];for(var g in o)return;delete t.__transition}}function wa(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>vf&&o.state<mf,o.state=ba,o.timer.stop(),o.on.call(a?"interrupt":"cancel",t,t.__data__,o.index,o.group),delete r[f]}u&&delete t.__transition}}function fct(t){return this.each(function(){wa(this,t)})}function hct(t,n){var r,o;return function(){var a=fr(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 dct(t,n,r){var o,a;if(typeof r!="function")throw new Error;return function(){var u=fr(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 pct(t,n){var r=this._id;if(t+="",arguments.length<2){for(var o=Gn(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?hct:dct)(r,t,n))}function ah(t,n,r){var o=t._id;return t.each(function(){var a=fr(this,o);(a.value||(a.value={}))[n]=r.apply(this,arguments)}),function(a){return Gn(a,o).value[n]}}function Sy(t,n){var r;return(typeof n=="number"?ii:n instanceof ol?lv:(r=ol(n))?(n=r,lv):Xat)(t,n)}function gct(t){return function(){this.removeAttribute(t)}}function vct(t){return function(){this.removeAttributeNS(t.space,t.local)}}function mct(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 yct(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 bct(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 wct(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 xct(t,n){var r=gc(t),o=r==="transform"?Qat:Sy;return this.attrTween(t,typeof n=="function"?(r.local?wct:bct)(r,o,ah(this,"attr."+t,n)):n==null?(r.local?vct:gct)(r):(r.local?yct:mct)(r,o,n))}function _ct(t,n){return function(r){this.setAttribute(t,n.call(this,r))}}function Sct(t,n){return function(r){this.setAttributeNS(t.space,t.local,n.call(this,r))}}function kct(t,n){var r,o;function a(){var u=n.apply(this,arguments);return u!==o&&(r=(o=u)&&Sct(t,u)),r}return a._value=n,a}function Cct(t,n){var r,o;function a(){var u=n.apply(this,arguments);return u!==o&&(r=(o=u)&&_ct(t,u)),r}return a._value=n,a}function Tct(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=gc(t);return this.tween(r,(o.local?kct:Cct)(o,n))}function Lct(t,n){return function(){lh(this,t).delay=+n.apply(this,arguments)}}function Ect(t,n){return n=+n,function(){lh(this,t).delay=n}}function Act(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?Lct:Ect)(n,t)):Gn(this.node(),n).delay}function Mct(t,n){return function(){fr(this,t).duration=+n.apply(this,arguments)}}function Nct(t,n){return n=+n,function(){fr(this,t).duration=n}}function Pct(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?Mct:Nct)(n,t)):Gn(this.node(),n).duration}function Oct(t,n){if(typeof n!="function")throw new Error;return function(){fr(this,t).ease=n}}function Dct(t){var n=this._id;return arguments.length?this.each(Oct(n,t)):Gn(this.node(),n).ease}function $ct(t,n){return function(){var r=n.apply(this,arguments);if(typeof r!="function")throw new Error;fr(this,t).ease=r}}function Rct(t){if(typeof t!="function")throw new Error;return this.each($ct(this._id,t))}function zct(t){typeof t!="function"&&(t=ny(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 $r(o,this._parents,this._name,this._id)}function Ict(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,w=f[h]=new Array(m),_,k=0;k<m;++k)(_=p[k]||g[k])&&(w[k]=_);for(;h<o;++h)f[h]=n[h];return new $r(f,this._parents,this._name,this._id)}function Fct(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 qct(t,n,r){var o,a,u=Fct(n)?lh:fr;return function(){var f=u(this,t),h=f.on;h!==o&&(a=(o=h).copy()).on(n,r),f.on=a}}function Hct(t,n){var r=this._id;return arguments.length<2?Gn(this.node(),r).on.on(t):this.each(qct(r,t,n))}function Bct(t){return function(){var n=this.parentNode;for(var r in this.__transition)if(+r!==t)return;n&&n.removeChild(this)}}function Wct(){return this.on("end.remove",Bct(this._id))}function Uct(t){var n=this._name,r=this._id;typeof t!="function"&&(t=nh(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,w,_=0;_<p;++_)(m=h[_])&&(w=t.call(m,m.__data__,_,h))&&("__data__"in m&&(w.__data__=m.__data__),g[_]=w,mc(g[_],n,r,_,g,Gn(m,r)));return new $r(u,this._parents,n,r)}function jct(t){var n=this._name,r=this._id;typeof t!="function"&&(t=ey(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,w=0;w<g;++w)if(m=p[w]){for(var _=t.call(m,m.__data__,w,p),k,A=Gn(m,r),P=0,L=_.length;P<L;++P)(k=_[P])&&mc(k,n,r,P,_,A);u.push(_),f.push(m)}return new $r(u,f,n,r)}var Gct=pl.prototype.constructor;function Vct(){return new Gct(this._groups,this._parents)}function Kct(t,n){var r,o,a;return function(){var u=Uo(this,t),f=(this.style.removeProperty(t),Uo(this,t));return u===f?null:u===r&&f===o?a:a=n(r=u,o=f)}}function ky(t){return function(){this.style.removeProperty(t)}}function Xct(t,n,r){var o,a=r+"",u;return function(){var f=Uo(this,t);return f===a?null:f===o?u:u=n(o=f,r)}}function Yct(t,n,r){var o,a,u;return function(){var f=Uo(this,t),h=r(this),p=h+"";return h==null&&(p=h=(this.style.removeProperty(t),Uo(this,t))),f===p?null:f===o&&p===a?u:(a=p,u=n(o=f,h))}}function Zct(t,n){var r,o,a,u="style."+n,f="end."+u,h;return function(){var p=fr(this,t),g=p.on,m=p.value[u]==null?h||(h=ky(n)):void 0;(g!==r||a!==m)&&(o=(r=g).copy()).on(f,a=m),p.on=o}}function Jct(t,n,r){var o=(t+="")=="transform"?Jat:Sy;return n==null?this.styleTween(t,Kct(t,o)).on("end.style."+t,ky(t)):typeof n=="function"?this.styleTween(t,Yct(t,o,ah(this,"style."+t,n))).each(Zct(this._id,t)):this.styleTween(t,Xct(t,o,n),r).on("end.style."+t,null)}function Qct(t,n,r){return function(o){this.style.setProperty(t,n.call(this,o),r)}}function tut(t,n,r){var o,a;function u(){var f=n.apply(this,arguments);return f!==a&&(o=(a=f)&&Qct(t,f,r)),o}return u._value=n,u}function eut(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,tut(t,n,r==null?"":r))}function nut(t){return function(){this.textContent=t}}function rut(t){return function(){var n=t(this);this.textContent=n==null?"":n}}function iut(t){return this.tween("text",typeof t=="function"?rut(ah(this,"text",t)):nut(t==null?"":t+""))}function out(t){return function(n){this.textContent=t.call(this,n)}}function sut(t){var n,r;function o(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&out(a)),n}return o._value=t,o}function lut(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,sut(t))}function aut(){for(var t=this._name,n=this._id,r=Cy(),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=Gn(p,n);mc(p,t,r,g,f,{time:m.time+m.delay+m.duration,delay:0,duration:m.duration,ease:m.ease})}return new $r(o,this._parents,t,r)}function cut(){var t,n,r=this,o=r._id,a=r.size();return new Promise(function(u,f){var h={value:f},p={value:function(){--a===0&&u()}};r.each(function(){var g=fr(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 uut=0;function $r(t,n,r,o){this._groups=t,this._parents=n,this._name=r,this._id=o}function Cy(){return++uut}var kr=pl.prototype;$r.prototype={constructor:$r,select:Uct,selectAll:jct,selectChild:kr.selectChild,selectChildren:kr.selectChildren,filter:zct,merge:Ict,selection:Vct,transition:aut,call:kr.call,nodes:kr.nodes,node:kr.node,size:kr.size,empty:kr.empty,each:kr.each,on:Hct,attr:xct,attrTween:Tct,style:Jct,styleTween:eut,text:iut,textTween:lut,remove:Wct,tween:pct,delay:Act,duration:Pct,ease:Dct,easeVarying:Rct,end:cut,[Symbol.iterator]:kr[Symbol.iterator]};function fut(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var hut={time:null,delay:0,duration:250,ease:fut};function dut(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 put(t){var n,r;t instanceof $r?(n=t._id,t=t._name):(n=Cy(),(r=hut).time=oh(),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])&&mc(p,t,n,g,f,r||dut(p,n));return new $r(o,this._parents,t,n)}pl.prototype.interrupt=fct;pl.prototype.transition=put;var sa=t=>()=>t;function gut(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 Ar(t,n,r){this.k=t,this.x=n,this.y=r}Ar.prototype={constructor:Ar,scale:function(t){return t===1?this:new Ar(this.k*t,this.x,this.y)},translate:function(t,n){return t===0&n===0?this:new Ar(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 ch=new Ar(1,0,0);Ar.prototype;function Mu(t){t.stopImmediatePropagation()}function Ms(t){t.preventDefault(),t.stopImmediatePropagation()}function vut(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function mut(){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 pv(){return this.__zoom||ch}function yut(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function but(){return navigator.maxTouchPoints||"ontouchstart"in this}function wut(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 xut(){var t=vut,n=mut,r=wut,o=yut,a=but,u=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],h=250,p=rct,g=gl("start","zoom","end"),m,w,_,k=500,A=150,P=0,L=10;function T(R){R.property("__zoom",pv).on("wheel.zoom",nt,{passive:!1}).on("mousedown.zoom",ft).on("dblclick.zoom",mt).filter(a).on("touchstart.zoom",xt).on("touchmove.zoom",ct).on("touchend.zoom touchcancel.zoom",U).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}T.transform=function(R,C,F,B){var Q=R.selection?R.selection():R;Q.property("__zoom",pv),R!==Q?V(R,C,F,B):Q.interrupt().each(function(){W(this,arguments).event(B).start().zoom(null,typeof C=="function"?C.apply(this,arguments):C).end()})},T.scaleBy=function(R,C,F,B){T.scaleTo(R,function(){var Q=this.__zoom.k,yt=typeof C=="function"?C.apply(this,arguments):C;return Q*yt},F,B)},T.scaleTo=function(R,C,F,B){T.transform(R,function(){var Q=n.apply(this,arguments),yt=this.__zoom,Ct=F==null?$(Q):typeof F=="function"?F.apply(this,arguments):F,Ut=yt.invert(Ct),Kt=typeof C=="function"?C.apply(this,arguments):C;return r(z(E(yt,Kt),Ct,Ut),Q,f)},F,B)},T.translateBy=function(R,C,F,B){T.transform(R,function(){return r(this.__zoom.translate(typeof C=="function"?C.apply(this,arguments):C,typeof F=="function"?F.apply(this,arguments):F),n.apply(this,arguments),f)},null,B)},T.translateTo=function(R,C,F,B,Q){T.transform(R,function(){var yt=n.apply(this,arguments),Ct=this.__zoom,Ut=B==null?$(yt):typeof B=="function"?B.apply(this,arguments):B;return r(ch.translate(Ut[0],Ut[1]).scale(Ct.k).translate(typeof C=="function"?-C.apply(this,arguments):-C,typeof F=="function"?-F.apply(this,arguments):-F),yt,f)},B,Q)};function E(R,C){return C=Math.max(u[0],Math.min(u[1],C)),C===R.k?R:new Ar(C,R.x,R.y)}function z(R,C,F){var B=C[0]-F[0]*R.k,Q=C[1]-F[1]*R.k;return B===R.x&&Q===R.y?R:new Ar(R.k,B,Q)}function $(R){return[(+R[0][0]+ +R[1][0])/2,(+R[0][1]+ +R[1][1])/2]}function V(R,C,F,B){R.on("start.zoom",function(){W(this,arguments).event(B).start()}).on("interrupt.zoom end.zoom",function(){W(this,arguments).event(B).end()}).tween("zoom",function(){var Q=this,yt=arguments,Ct=W(Q,yt).event(B),Ut=n.apply(Q,yt),Kt=F==null?$(Ut):typeof F=="function"?F.apply(Q,yt):F,Qt=Math.max(Ut[1][0]-Ut[0][0],Ut[1][1]-Ut[0][1]),Jt=Q.__zoom,K=typeof C=="function"?C.apply(Q,yt):C,tt=p(Jt.invert(Kt).concat(Qt/Jt.k),K.invert(Kt).concat(Qt/K.k));return function(j){if(j===1)j=K;else{var it=tt(j),zt=Qt/it[2];j=new Ar(zt,Kt[0]-it[0]*zt,Kt[1]-it[1]*zt)}Ct.zoom(null,j)}})}function W(R,C,F){return!F&&R.__zooming||new st(R,C)}function st(R,C){this.that=R,this.args=C,this.active=0,this.sourceEvent=null,this.extent=n.apply(R,C),this.taps=0}st.prototype={event:function(R){return R&&(this.sourceEvent=R),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(R,C){return this.mouse&&R!=="mouse"&&(this.mouse[1]=C.invert(this.mouse[0])),this.touch0&&R!=="touch"&&(this.touch0[1]=C.invert(this.touch0[0])),this.touch1&&R!=="touch"&&(this.touch1[1]=C.invert(this.touch1[0])),this.that.__zoom=C,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(R){var C=vn(this.that).datum();g.call(R,this.that,new gut(R,{sourceEvent:this.sourceEvent,target:T,type:R,transform:this.that.__zoom,dispatch:g}),C)}};function nt(R,...C){if(!t.apply(this,arguments))return;var F=W(this,C).event(R),B=this.__zoom,Q=Math.max(u[0],Math.min(u[1],B.k*Math.pow(2,o.apply(this,arguments)))),yt=Cr(R);if(F.wheel)(F.mouse[0][0]!==yt[0]||F.mouse[0][1]!==yt[1])&&(F.mouse[1]=B.invert(F.mouse[0]=yt)),clearTimeout(F.wheel);else{if(B.k===Q)return;F.mouse=[yt,B.invert(yt)],wa(this),F.start()}Ms(R),F.wheel=setTimeout(Ct,A),F.zoom("mouse",r(z(E(B,Q),F.mouse[0],F.mouse[1]),F.extent,f));function Ct(){F.wheel=null,F.end()}}function ft(R,...C){if(_||!t.apply(this,arguments))return;var F=R.currentTarget,B=W(this,C,!0).event(R),Q=vn(R.view).on("mousemove.zoom",Kt,!0).on("mouseup.zoom",Qt,!0),yt=Cr(R,F),Ct=R.clientX,Ut=R.clientY;hy(R.view),Mu(R),B.mouse=[yt,this.__zoom.invert(yt)],wa(this),B.start();function Kt(Jt){if(Ms(Jt),!B.moved){var K=Jt.clientX-Ct,tt=Jt.clientY-Ut;B.moved=K*K+tt*tt>P}B.event(Jt).zoom("mouse",r(z(B.that.__zoom,B.mouse[0]=Cr(Jt,F),B.mouse[1]),B.extent,f))}function Qt(Jt){Q.on("mousemove.zoom mouseup.zoom",null),dy(Jt.view,B.moved),Ms(Jt),B.event(Jt).end()}}function mt(R,...C){if(!!t.apply(this,arguments)){var F=this.__zoom,B=Cr(R.changedTouches?R.changedTouches[0]:R,this),Q=F.invert(B),yt=F.k*(R.shiftKey?.5:2),Ct=r(z(E(F,yt),B,Q),n.apply(this,C),f);Ms(R),h>0?vn(this).transition().duration(h).call(V,Ct,B,R):vn(this).call(T.transform,Ct,B,R)}}function xt(R,...C){if(!!t.apply(this,arguments)){var F=R.touches,B=F.length,Q=W(this,C,R.changedTouches.length===B).event(R),yt,Ct,Ut,Kt;for(Mu(R),Ct=0;Ct<B;++Ct)Ut=F[Ct],Kt=Cr(Ut,this),Kt=[Kt,this.__zoom.invert(Kt),Ut.identifier],Q.touch0?!Q.touch1&&Q.touch0[2]!==Kt[2]&&(Q.touch1=Kt,Q.taps=0):(Q.touch0=Kt,yt=!0,Q.taps=1+!!m);m&&(m=clearTimeout(m)),yt&&(Q.taps<2&&(w=Kt[0],m=setTimeout(function(){m=null},k)),wa(this),Q.start())}}function ct(R,...C){if(!!this.__zooming){var F=W(this,C).event(R),B=R.changedTouches,Q=B.length,yt,Ct,Ut,Kt;for(Ms(R),yt=0;yt<Q;++yt)Ct=B[yt],Ut=Cr(Ct,this),F.touch0&&F.touch0[2]===Ct.identifier?F.touch0[0]=Ut:F.touch1&&F.touch1[2]===Ct.identifier&&(F.touch1[0]=Ut);if(Ct=F.that.__zoom,F.touch1){var Qt=F.touch0[0],Jt=F.touch0[1],K=F.touch1[0],tt=F.touch1[1],j=(j=K[0]-Qt[0])*j+(j=K[1]-Qt[1])*j,it=(it=tt[0]-Jt[0])*it+(it=tt[1]-Jt[1])*it;Ct=E(Ct,Math.sqrt(j/it)),Ut=[(Qt[0]+K[0])/2,(Qt[1]+K[1])/2],Kt=[(Jt[0]+tt[0])/2,(Jt[1]+tt[1])/2]}else if(F.touch0)Ut=F.touch0[0],Kt=F.touch0[1];else return;F.zoom("touch",r(z(Ct,Ut,Kt),F.extent,f))}}function U(R,...C){if(!!this.__zooming){var F=W(this,C).event(R),B=R.changedTouches,Q=B.length,yt,Ct;for(Mu(R),_&&clearTimeout(_),_=setTimeout(function(){_=null},k),yt=0;yt<Q;++yt)Ct=B[yt],F.touch0&&F.touch0[2]===Ct.identifier?delete F.touch0:F.touch1&&F.touch1[2]===Ct.identifier&&delete F.touch1;if(F.touch1&&!F.touch0&&(F.touch0=F.touch1,delete F.touch1),F.touch0)F.touch0[1]=this.__zoom.invert(F.touch0[0]);else if(F.end(),F.taps===2&&(Ct=Cr(Ct,this),Math.hypot(w[0]-Ct[0],w[1]-Ct[1])<L)){var Ut=vn(this).on("dblclick.zoom");Ut&&Ut.apply(this,arguments)}}}return T.wheelDelta=function(R){return arguments.length?(o=typeof R=="function"?R:sa(+R),T):o},T.filter=function(R){return arguments.length?(t=typeof R=="function"?R:sa(!!R),T):t},T.touchable=function(R){return arguments.length?(a=typeof R=="function"?R:sa(!!R),T):a},T.extent=function(R){return arguments.length?(n=typeof R=="function"?R:sa([[+R[0][0],+R[0][1]],[+R[1][0],+R[1][1]]]),T):n},T.scaleExtent=function(R){return arguments.length?(u[0]=+R[0],u[1]=+R[1],T):[u[0],u[1]]},T.translateExtent=function(R){return arguments.length?(f[0][0]=+R[0][0],f[1][0]=+R[1][0],f[0][1]=+R[0][1],f[1][1]=+R[1][1],T):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},T.constrain=function(R){return arguments.length?(r=R,T):r},T.duration=function(R){return arguments.length?(h=+R,T):h},T.interpolate=function(R){return arguments.length?(p=R,T):p},T.on=function(){var R=g.on.apply(g,arguments);return R===g?T:R},T.clickDistance=function(R){return arguments.length?(P=(R=+R)*R,T):Math.sqrt(P)},T.tapDistance=function(R){return arguments.length?(L=+R,T):L},T}class an{constructor(n,r){this.x=n,this.y=r}static of([n,r]){return new an(n,r)}add(n){return new an(this.x+n.x,this.y+n.y)}subtract(n){return new an(this.x-n.x,this.y-n.y)}multiply(n){return new an(this.x*n,this.y*n)}divide(n){return new an(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 an(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 an(this.x/n,this.y/n)}rotateByRadians(n){const r=Math.cos(n),o=Math.sin(n);return new an(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(n){return this.rotateByRadians(n*Math.PI/180)}}function _ut(t){const n=+this._x.call(null,t),r=+this._y.call(null,t);return Ty(this.cover(n,r),n,r,t)}function Ty(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,w,_,k,A,P,L,T,E;if(!u)return t._root=f,t;for(;u.length;)if((P=n>=(w=(h+g)/2))?h=w:g=w,(L=r>=(_=(p+m)/2))?p=_:m=_,a=u,!(u=u[T=L<<1|P]))return a[T]=f,t;if(k=+t._x.call(null,u.data),A=+t._y.call(null,u.data),n===k&&r===A)return f.next=u,a?a[T]=f:t._root=f,t;do a=a?a[T]=new Array(4):t._root=new Array(4),(P=n>=(w=(h+g)/2))?h=w:g=w,(L=r>=(_=(p+m)/2))?p=_:m=_;while((T=L<<1|P)===(E=(A>=_)<<1|k>=w));return a[E]=u,a[T]=f,t}function Sut(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,w=-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>w&&(w=u));if(p>m||g>w)return this;for(this.cover(p,g).cover(m,w),r=0;r<o;++r)Ty(this,f[r],h[r],t[r]);return this}function kut(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 Cut(){var t=[];return this.visit(function(n){if(!n.length)do t.push(n.data);while(n=n.next)}),t}function Tut(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 cn(t,n,r,o,a){this.node=t,this.x0=n,this.y0=r,this.x1=o,this.y1=a}function Lut(t,n,r){var o,a=this._x0,u=this._y0,f,h,p,g,m=this._x1,w=this._y1,_=[],k=this._root,A,P;for(k&&_.push(new cn(k,a,u,m,w)),r==null?r=1/0:(a=t-r,u=n-r,m=t+r,w=n+r,r*=r);A=_.pop();)if(!(!(k=A.node)||(f=A.x0)>m||(h=A.y0)>w||(p=A.x1)<a||(g=A.y1)<u))if(k.length){var L=(f+p)/2,T=(h+g)/2;_.push(new cn(k[3],L,T,p,g),new cn(k[2],f,T,L,g),new cn(k[1],L,h,p,T),new cn(k[0],f,h,L,T)),(P=(n>=T)<<1|t>=L)&&(A=_[_.length-1],_[_.length-1]=_[_.length-1-P],_[_.length-1-P]=A)}else{var E=t-+this._x.call(null,k.data),z=n-+this._y.call(null,k.data),$=E*E+z*z;if($<r){var V=Math.sqrt(r=$);a=t-V,u=n-V,m=t+V,w=n+V,o=k.data}}return o}function Eut(t){if(isNaN(m=+this._x.call(null,t))||isNaN(w=+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,w,_,k,A,P,L,T;if(!r)return this;if(r.length)for(;;){if((A=m>=(_=(f+p)/2))?f=_:p=_,(P=w>=(k=(h+g)/2))?h=k:g=k,n=r,!(r=r[L=P<<1|A]))return this;if(!r.length)break;(n[L+1&3]||n[L+2&3]||n[L+3&3])&&(o=n,T=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[T]=r:this._root=r),this):(this._root=u,this)}function Aut(t){for(var n=0,r=t.length;n<r;++n)this.remove(t[n]);return this}function Mut(){return this._root}function Nut(){var t=0;return this.visit(function(n){if(!n.length)do++t;while(n=n.next)}),t}function Put(t){var n=[],r,o=this._root,a,u,f,h,p;for(o&&n.push(new cn(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 cn(a,g,m,h,p)),(a=o[2])&&n.push(new cn(a,u,m,g,p)),(a=o[1])&&n.push(new cn(a,g,f,h,m)),(a=o[0])&&n.push(new cn(a,u,f,g,m))}return this}function Out(t){var n=[],r=[],o;for(this._root&&n.push(new cn(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,w=(h+g)/2;(u=a[0])&&n.push(new cn(u,f,h,m,w)),(u=a[1])&&n.push(new cn(u,m,h,p,w)),(u=a[2])&&n.push(new cn(u,f,w,m,g)),(u=a[3])&&n.push(new cn(u,m,w,p,g))}r.push(o)}for(;o=r.pop();)t(o.node,o.x0,o.y0,o.x1,o.y1);return this}function Dut(t){return t[0]}function $ut(t){return arguments.length?(this._x=t,this):this._x}function Rut(t){return t[1]}function zut(t){return arguments.length?(this._y=t,this):this._y}function uh(t,n,r){var o=new fh(n==null?Dut:n,r==null?Rut:r,NaN,NaN,NaN,NaN);return t==null?o:o.addAll(t)}function fh(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 gv(t){for(var n={data:t.data},r=n;t=t.next;)r=r.next={data:t.data};return n}var hn=uh.prototype=fh.prototype;hn.copy=function(){var t=new fh(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=gv(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]=gv(o));return t};hn.add=_ut;hn.addAll=Sut;hn.cover=kut;hn.data=Cut;hn.extent=Tut;hn.find=Lut;hn.remove=Eut;hn.removeAll=Aut;hn.root=Mut;hn.size=Nut;hn.visit=Put;hn.visitAfter=Out;hn.x=$ut;hn.y=zut;function fn(t){return function(){return t}}function li(t){return(t()-.5)*1e-6}function Iut(t){return t.x+t.vx}function Fut(t){return t.y+t.vy}function qut(t){var n,r,o,a=1,u=1;typeof t!="function"&&(t=fn(t==null?1:+t));function f(){for(var g,m=n.length,w,_,k,A,P,L,T=0;T<u;++T)for(w=uh(n,Iut,Fut).visitAfter(h),g=0;g<m;++g)_=n[g],P=r[_.index],L=P*P,k=_.x+_.vx,A=_.y+_.vy,w.visit(E);function E(z,$,V,W,st){var nt=z.data,ft=z.r,mt=P+ft;if(nt){if(nt.index>_.index){var xt=k-nt.x-nt.vx,ct=A-nt.y-nt.vy,U=xt*xt+ct*ct;U<mt*mt&&(xt===0&&(xt=li(o),U+=xt*xt),ct===0&&(ct=li(o),U+=ct*ct),U=(mt-(U=Math.sqrt(U)))/U*a,_.vx+=(xt*=U)*(mt=(ft*=ft)/(L+ft)),_.vy+=(ct*=U)*mt,nt.vx-=xt*(mt=1-mt),nt.vy-=ct*mt)}return}return $>k+mt||W<k-mt||V>A+mt||st<A-mt}}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,w;for(r=new Array(m),g=0;g<m;++g)w=n[g],r[w.index]=+t(w,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:fn(+g),p(),f):t},f}function Hut(t){return t.index}function vv(t,n){var r=t.get(n);if(!r)throw new Error("node not found: "+n);return r}function But(t){var n=Hut,r=w,o,a=fn(30),u,f,h,p,g,m=1;t==null&&(t=[]);function w(L){return 1/Math.min(h[L.source.index],h[L.target.index])}function _(L){for(var T=0,E=t.length;T<m;++T)for(var z=0,$,V,W,st,nt,ft,mt;z<E;++z)$=t[z],V=$.source,W=$.target,st=W.x+W.vx-V.x-V.vx||li(g),nt=W.y+W.vy-V.y-V.vy||li(g),ft=Math.sqrt(st*st+nt*nt),ft=(ft-u[z])/ft*L*o[z],st*=ft,nt*=ft,W.vx-=st*(mt=p[z]),W.vy-=nt*mt,V.vx+=st*(mt=1-mt),V.vy+=nt*mt}function k(){if(!!f){var L,T=f.length,E=t.length,z=new Map(f.map((V,W)=>[n(V,W,f),V])),$;for(L=0,h=new Array(T);L<E;++L)$=t[L],$.index=L,typeof $.source!="object"&&($.source=vv(z,$.source)),typeof $.target!="object"&&($.target=vv(z,$.target)),h[$.source.index]=(h[$.source.index]||0)+1,h[$.target.index]=(h[$.target.index]||0)+1;for(L=0,p=new Array(E);L<E;++L)$=t[L],p[L]=h[$.source.index]/(h[$.source.index]+h[$.target.index]);o=new Array(E),A(),u=new Array(E),P()}}function A(){if(!!f)for(var L=0,T=t.length;L<T;++L)o[L]=+r(t[L],L,t)}function P(){if(!!f)for(var L=0,T=t.length;L<T;++L)u[L]=+a(t[L],L,t)}return _.initialize=function(L,T){f=L,g=T,k()},_.links=function(L){return arguments.length?(t=L,k(),_):t},_.id=function(L){return arguments.length?(n=L,_):n},_.iterations=function(L){return arguments.length?(m=+L,_):m},_.strength=function(L){return arguments.length?(r=typeof L=="function"?L:fn(+L),A(),_):r},_.distance=function(L){return arguments.length?(a=typeof L=="function"?L:fn(+L),P(),_):a},_}const Wut=1664525,Uut=1013904223,mv=4294967296;function jut(){let t=1;return()=>(t=(Wut*t+Uut)%mv)/mv}function Gut(t){return t.x}function Vut(t){return t.y}var Kut=10,Xut=Math.PI*(3-Math.sqrt(5));function Yut(t){var n,r=1,o=.001,a=1-Math.pow(o,1/300),u=0,f=.6,h=new Map,p=sh(w),g=gl("tick","end"),m=jut();t==null&&(t=[]);function w(){_(),g.call("tick",n),r<o&&(p.stop(),g.call("end",n))}function _(P){var L,T=t.length,E;P===void 0&&(P=1);for(var z=0;z<P;++z)for(r+=(u-r)*a,h.forEach(function($){$(r)}),L=0;L<T;++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 k(){for(var P=0,L=t.length,T;P<L;++P){if(T=t[P],T.index=P,T.fx!=null&&(T.x=T.fx),T.fy!=null&&(T.y=T.fy),isNaN(T.x)||isNaN(T.y)){var E=Kut*Math.sqrt(.5+P),z=P*Xut;T.x=E*Math.cos(z),T.y=E*Math.sin(z)}(isNaN(T.vx)||isNaN(T.vy))&&(T.vx=T.vy=0)}}function A(P){return P.initialize&&P.initialize(t,m),P}return k(),n={tick:_,restart:function(){return p.restart(w),n},stop:function(){return p.stop(),n},nodes:function(P){return arguments.length?(t=P,k(),h.forEach(A),n):t},alpha:function(P){return arguments.length?(r=+P,n):r},alphaMin:function(P){return arguments.length?(o=+P,n):o},alphaDecay:function(P){return arguments.length?(a=+P,n):+a},alphaTarget:function(P){return arguments.length?(u=+P,n):u},velocityDecay:function(P){return arguments.length?(f=1-P,n):1-f},randomSource:function(P){return arguments.length?(m=P,h.forEach(A),n):m},force:function(P,L){return arguments.length>1?(L==null?h.delete(P):h.set(P,A(L)),n):h.get(P)},find:function(P,L,T){var E=0,z=t.length,$,V,W,st,nt;for(T==null?T=1/0:T*=T,E=0;E<z;++E)st=t[E],$=P-st.x,V=L-st.y,W=$*$+V*V,W<T&&(nt=st,T=W);return nt},on:function(P,L){return arguments.length>1?(g.on(P,L),n):g.on(P)}}}function Zut(){var t,n,r,o,a=fn(-30),u,f=1,h=1/0,p=.81;function g(k){var A,P=t.length,L=uh(t,Gut,Vut).visitAfter(w);for(o=k,A=0;A<P;++A)n=t[A],L.visit(_)}function m(){if(!!t){var k,A=t.length,P;for(u=new Array(A),k=0;k<A;++k)P=t[k],u[P.index]=+a(P,k,t)}}function w(k){var A=0,P,L,T=0,E,z,$;if(k.length){for(E=z=$=0;$<4;++$)(P=k[$])&&(L=Math.abs(P.value))&&(A+=P.value,T+=L,E+=L*P.x,z+=L*P.y);k.x=E/T,k.y=z/T}else{P=k,P.x=P.data.x,P.y=P.data.y;do A+=u[P.data.index];while(P=P.next)}k.value=A}function _(k,A,P,L){if(!k.value)return!0;var T=k.x-n.x,E=k.y-n.y,z=L-A,$=T*T+E*E;if(z*z/p<$)return $<h&&(T===0&&(T=li(r),$+=T*T),E===0&&(E=li(r),$+=E*E),$<f&&($=Math.sqrt(f*$)),n.vx+=T*k.value*o/$,n.vy+=E*k.value*o/$),!0;if(k.length||$>=h)return;(k.data!==n||k.next)&&(T===0&&(T=li(r),$+=T*T),E===0&&(E=li(r),$+=E*E),$<f&&($=Math.sqrt(f*$)));do k.data!==n&&(z=u[k.data.index]*o/$,n.vx+=T*z,n.vy+=E*z);while(k=k.next)}return g.initialize=function(k,A){t=k,r=A,m()},g.strength=function(k){return arguments.length?(a=typeof k=="function"?k:fn(+k),m(),g):a},g.distanceMin=function(k){return arguments.length?(f=k*k,g):Math.sqrt(f)},g.distanceMax=function(k){return arguments.length?(h=k*k,g):Math.sqrt(h)},g.theta=function(k){return arguments.length?(p=k*k,g):Math.sqrt(p)},g}function Jut(t){var n=fn(.1),r,o,a;typeof t!="function"&&(t=fn(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:fn(+h),f(),u):n},u.x=function(h){return arguments.length?(t=typeof h=="function"?h:fn(+h),f(),u):t},u}function Qut(t){var n=fn(.1),r,o,a;typeof t!="function"&&(t=fn(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:fn(+h),f(),u):n},u.y=function(h){return arguments.length?(t=typeof h=="function"?h:fn(+h),f(),u):t},u}var tft=Object.defineProperty,eft=(t,n,r)=>n in t?tft(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,Me=(t,n,r)=>(eft(t,typeof n!="symbol"?n+"":n,r),r);function nft(){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 rft(){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 ift(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function Ly(t){t.preventDefault(),t.stopPropagation()}function Ey(t){return typeof t=="number"}function pi(t,n){return Ey(t.nodeRadius)?t.nodeRadius:t.nodeRadius(n)}function oft(t){return`${t.source.id}-${t.target.id}`}function Ay(t){return`link-arrow-${t}`.replace(/[()]/g,"~")}function sft(t){return`url(#${Ay(t.color)})`}function lft(t){return{size:t,padding:(n,r)=>pi(r,n)+2*t,ref:[t/2,t/2],path:[[0,0],[0,t],[t,t/2]],viewBox:[0,0,t,t].join(",")}}const My={Arrow:t=>lft(t)},aft=(t,n,r)=>[n/2,r/2],cft=(t,n,r)=>[yv(0,n),yv(0,r)];function yv(t,n){return Math.random()*(n-t)+t}const yf={Centered:aft,Randomized:cft};function uft(){return{autoResize:!1,callbacks:{},initial:ift(),nodeRadius:16,marker:My.Arrow(4),modifiers:{},positionInitializer:yf.Centered,simulation:{alphas:nft(),forces:rft()},zoom:{initial:1,min:.1,max:2}}}function fft(t={}){return Wst.withOptions({mergeArrays:!1},uft(),t)}function hft(t,n){let r;return()=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>t(),n)}}function dft({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=>Ly(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,ch.translate(u,f).scale(h)),g.append("g")}function pft({canvas:t,scale:n,xOffset:r,yOffset:o}){t==null||t.attr("transform",`translate(${r},${o})scale(${n})`)}function gft({config:t,onDragStart:n,onDragEnd:r}){var o,a;const u=Nat().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),vn(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),vn(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 vft({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=[...yft(t,n),...bft(t,n)],o=r.flatMap(a=>[a.source,a.target]);return{nodes:[...new Set([...o,n])],links:[...new Set(r)]}}function yft(t,n){return Ny(t,n,(r,o)=>r.target.id===o.id)}function bft(t,n){return Ny(t,n,(r,o)=>r.source.id===o.id)}function Ny(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 bf(t){var n;return(n=t.x)!=null?n:0}function wf(t){var n;return(n=t.y)!=null?n:0}function hh({source:t,target:n}){const r=new an(bf(t),wf(t)),o=new an(bf(n),wf(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 Py({center:t,node:n}){const r=new an(bf(n),wf(n));let o=t;return r.x===o.x&&r.y===o.y&&(o=o.add(new an(0,1))),{n:r,c:o}}function Oy({config:t,source:n,target:r}){const{s:o,t:a,norm:u}=hh({config:t,source:n,target:r}),f=o.add(u.multiply(pi(t,n)-1)),h=a.subtract(u.multiply(t.marker.padding(r,t)));return{start:f,end:h}}function wft(t){const{start:n,end:r}=Oy(t);return`M${n.x},${n.y}
|
|
31
|
-
L${r.x},${r.y}`}function xft(t){const{start:n,end:r}=Oy(t),o=r.subtract(n).multiply(.5),a=n.add(o);return`translate(${a.x-8},${a.y-4})`}function _ft({config:t,source:n,target:r}){const{s:o,t:a,dist:u,norm:f,endNorm:h}=hh({config:t,source:n,target:r}),p=10,g=f.rotateByDegrees(-p).multiply(pi(t,n)-1).add(o),m=h.rotateByDegrees(p).multiply(pi(t,r)).add(a).add(h.rotateByDegrees(p).multiply(2*t.marker.size)),w=1.2*u;return`M${g.x},${g.y}
|
|
32
|
-
A${w},${w},0,0,1,${m.x},${m.y}`}function Sft({center:t,config:n,node:r}){const{n:o,c:a}=Py({center:t,config:n,node:r}),u=pi(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 kft({config:t,source:n,target:r}){const{t:o,dist:a,endNorm:u}=hh({config:t,source:n,target:r}),f=10,h=u.rotateByDegrees(f).multiply(.5*a).add(o);return`translate(${h.x},${h.y})`}function Cft({center:t,config:n,node:r}){const{n:o,c:a}=Py({center:t,config:n,node:r}),u=o.subtract(a),f=u.multiply(1/u.length()).multiply(3*pi(n,r)+8).add(o);return`translate(${f.x},${f.y})`}var $o={line:{labelTransform:xft,path:wft},arc:{labelTransform:kft,path:_ft},reflexive:{labelTransform:Cft,path:Sft}};function Tft(t){return t.append("g").classed("links",!0).selectAll("path")}function Lft({config:t,graph:n,selection:r,showLabels:o}){const a=r==null?void 0:r.data(n.links,u=>oft(u)).join(u=>{var f,h,p,g;const m=u.append("g"),w=m.append("path").classed("link",!0).style("marker-end",k=>sft(k)).style("stroke",k=>k.color);(h=(f=t.modifiers).link)==null||h.call(f,w);const _=m.append("text").classed("link__label",!0).style("fill",k=>k.label?k.label.color:null).style("font-size",k=>k.label?k.label.fontSize:null).text(k=>k.label?k.label.text:null);return(g=(p=t.modifiers).linkLabel)==null||g.call(p,_),m});return a==null||a.select(".link__label").attr("opacity",u=>u.label&&o?1:0),a}function Eft(t){Aft(t),Mft(t)}function Aft({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?$o.reflexive.path({config:n,node:a.source,center:t}):Dy(r,a.source,a.target)?$o.arc.path({config:n,source:a.source,target:a.target}):$o.line.path({config:n,source:a.source,target:a.target}))}function Mft({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?$o.reflexive.labelTransform({config:t,node:a.source,center:n}):Dy(r,a.source,a.target)?$o.arc.labelTransform({config:t,source:a.source,target:a.target}):$o.line.labelTransform({config:t,source:a.source,target:a.target}))}function Dy(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 Nft(t){return t.append("defs").selectAll("marker")}function Pft({config:t,graph:n,selection:r}){return r==null?void 0:r.data(Oft(n),o=>o).join(o=>{const a=o.append("marker").attr("id",u=>Ay(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",Dft(t.marker.path)),a})}function Oft(t){return[...new Set(t.links.map(n=>n.color))]}function Dft(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 $ft(t){return t.append("g").classed("nodes",!0).selectAll("circle")}function Rft({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,w,_;const k=p.append("g");n!==void 0&&k.call(n);const A=k.append("circle").classed("node",!0).attr("aria-label",L=>L.label?L.label.text:L.id).attr("r",L=>pi(t,L)).on("contextmenu",(L,T)=>{Ly(L),o(T)}).on("pointerdown",(L,T)=>Ift(L,T,a!=null?a:o)).style("fill",L=>L.color);(m=(g=t.modifiers).node)==null||m.call(g,A);const P=k.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(_=(w=t.modifiers).nodeLabel)==null||_.call(w,P),k});return h==null||h.select(".node").classed("focused",p=>p.isFocused),h==null||h.select(".node__label").attr("opacity",f?1:0),h}const zft=500;function Ift(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>zft){n.lastInteractionTimestamp=a;return}n.lastInteractionTimestamp=void 0,r(n)}function Fft(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=Yut(r.nodes),h=n.simulation.forces.centering;if(h&&h.enabled){const w=h.strength;f.force("x",Jut(()=>t().x).strength(w)).force("y",Qut(()=>t().y).strength(w))}const p=n.simulation.forces.charge;p&&p.enabled&&f.force("charge",Zut().strength(p.strength));const g=n.simulation.forces.collision;g&&g.enabled&&f.force("collision",qut().radius(w=>g.radiusMultiplier*pi(n,w)));const m=n.simulation.forces.link;return m&&m.enabled&&f.force("link",But(r.links).id(w=>w.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 Hft({canvasContainer:t,config:n,min:r,max:o,onZoom:a}){var u,f;const h=xut().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 Bft{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(hft(()=>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 an.of([this.width,this.height]).divide(2).subtract(an.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(Ey(h)?h:h({oldWidth:n,oldHeight:r,newWidth:o,newHeight:a}))}restart(n){var r;this.markerSelection=Pft({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=Lft({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Rft({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=Hft({config:this.config,canvasContainer:()=>vn(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:n=>this.onZoom(n)}),this.canvas=dft({applyZoom:this.scale!==1,container:vn(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=Tft(this.canvas),this.nodeSelection=$ft(this.canvas),this.markerSelection=Nft(this.canvas),this.drag=gft({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(){Fft(this.nodeSelection),Eft({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var n;(n=this.simulation)==null||n.stop(),vn(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(){pft({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=vft({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function bv({nodes:t,links:n}){return{nodes:t!=null?t:[],links:n!=null?n:[]}}function Wft(t){return{...t}}function $y(t){return{...t,isFocused:!1,lastInteractionTimestamp:void 0}}const Uft={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},jft={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},Gft=["id","checked","onChange"],Vft=["for"],Kft=ut("div",{"flex-auto":""},null,-1),Xft=ue({__name:"ViewModuleGraph",props:{graph:null},setup(t){const n=t,{graph:r}=Mx(n),o=ne(),a=ne(!1),u=ne(),f=ne();nm(()=>{a.value===!1&&setTimeout(()=>u.value=void 0,300)},{flush:"post"}),cl(()=>{g()}),Ff(()=>{var w;(w=f.value)==null||w.shutdown()}),je(r,g);function h(w,_){var k;(k=f.value)==null||k.filterNodesByType(_,w)}function p(w){u.value=w,a.value=!0}function g(){var w;(w=f.value)==null||w.shutdown(),!(!r.value||!o.value)&&(f.value=new Bft(o.value,r.value,fft({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:_,newWidth:k})=>_===0&&k===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:My.Arrow(2),modifiers:{node:m},positionInitializer:r.value.nodes.length>1?yf.Randomized:yf.Centered,zoom:{min:.5,max:2}})))}function m(w){const _=L=>L.button===0;let k=0,A=0,P=0;w.on("pointerdown",(L,T)=>{T.type!=="external"&&(!T.x||!T.y||!_(L)||(k=T.x,A=T.y,P=Date.now()))}).on("pointerup",(L,T)=>{if(T.type==="external"||!T.x||!T.y||!_(L)||Date.now()-P>500)return;const E=T.x-k,z=T.y-A;E**2+z**2<100&&p(T.id)})}return(w,_)=>{var T;const k=Yo,A=Fst,P=Lst,L=Xi("tooltip");return ht(),Mt("div",Uft,[ut("div",null,[ut("div",jft,[(ht(!0),Mt(ce,null,ir((T=f.value)==null?void 0:T.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:$=>h(E,$.target.checked)},null,40,Gft),ut("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"",truncate:"",for:`type-${E}`,"border-b-2":"",style:yn({"border-color":`var(--color-node-${E})`})},ae(E)+" Modules",13,Vft)])}),128)),Kft,ut("div",null,[un(Bt(k,{icon:"i-carbon-reset",onClick:g},null,512),[[L,"Reset",void 0,{bottom:!0}]])])])]),ut("div",{ref_key:"el",ref:o},null,512),Bt(P,{modelValue:a.value,"onUpdate:modelValue":_[1]||(_[1]=E=>a.value=E),direction:"right"},{default:we(()=>[u.value?(ht(),de(Gx,{key:0},{default:we(()=>[Bt(A,{id:u.value,onClose:_[0]||(_[0]=E=>a.value=!1)},null,8,["id"])]),_:1})):_e("",!0)]),_:1},8,["modelValue"])])}}}),Yft={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},Zft={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},Jft={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},Qft={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},tht={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},eht={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},dh=ue({__name:"StatusIcon",props:{task:null},setup(t){return(n,r)=>{var a,u,f;const o=Xi("tooltip");return((a=t.task.result)==null?void 0:a.state)==="pass"?(ht(),Mt("div",Yft)):Z(fc)(t.task)?un((ht(),Mt("div",Zft,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):((u=t.task.result)==null?void 0:u.state)==="fail"?(ht(),Mt("div",Jft)):t.task.mode==="todo"?un((ht(),Mt("div",Qft,null,512)),[[o,"Todo",void 0,{right:!0}]]):t.task.mode==="skip"||((f=t.task.result)==null?void 0:f.state)==="skip"?un((ht(),Mt("div",tht,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(ht(),Mt("div",eht))}}});function nht(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:w,candidate:_}=u;n.set(w,_);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 rht(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 iht(t){const n=t.map(o=>rht(o)),r=nht(n);return n.map(({raw:o,id:a})=>{var u;return $y({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 oht(t,n){return $y({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 sht(t,n){var h;if(!t)return bv({});const r=iht(t.externalized),o=(h=t.inlined.map(p=>oht(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 w=u[p],_=u[m];if(!(w===void 0||_===void 0))return Wft({source:w,target:_,color:"var(--color-link)",label:!1})}).filter(m=>m!==void 0));return bv({nodes:a,links:f})}const lht={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":""},aht={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},cht={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},uht={class:"flex text-lg"},fht={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},hht={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},dht=ue({__name:"FileDetails",setup(t){const n=ne({externalized:[],graph:{},inlined:[]}),r=ne({nodes:[],links:[]}),o=ne(!1);Jk(Le,async(p,g)=>{p&&p.filepath!==(g==null?void 0:g.filepath)&&(n.value=await Ue.rpc.getModuleGraph(p.filepath),r.value=sht(n.value,p.filepath))},{debounce:100,immediate:!0});const a=()=>{var g;const p=(g=Le.value)==null?void 0:g.filepath;p&&fetch(`/__open-in-editor?file=${encodeURIComponent(p)}`)},u=p=>{rr.value=p},f=kt(()=>{var p,g;return(g=(p=N0.value)==null?void 0:p.reduce((m,{size:w})=>m+w,0))!=null?g:0});function h(p){o.value=p}return(p,g)=>{var T,E;const m=dh,w=Yo,_=Xft,k=Tst,A=wst,P=cst,L=Xi("tooltip");return Z(Le)?(ht(),Mt("div",lht,[ut("div",null,[ut("div",aht,[Bt(m,{task:Z(Le)},null,8,["task"]),ut("div",cht,ae((T=Z(Le))==null?void 0:T.filepath),1),ut("div",uht,[un(Bt(w,{title:"Open in editor",icon:"i-carbon-launch",disabled:!((E=Z(Le))!=null&&E.filepath),onClick:a},null,8,["disabled"]),[[L,"Open in editor",void 0,{bottom:!0}]])])]),ut("div",fht,[ut("button",{"tab-button":"",class:ve({"tab-button-active":Z(rr)==null}),onClick:g[0]||(g[0]=z=>u(null))}," Report ",2),ut("button",{"tab-button":"",class:ve({"tab-button-active":Z(rr)==="graph"}),onClick:g[1]||(g[1]=z=>u("graph"))}," Module Graph ",2),ut("button",{"tab-button":"",class:ve({"tab-button-active":Z(rr)==="editor"}),onClick:g[2]||(g[2]=z=>u("editor"))},ae(o.value?"*\xA0":"")+"Code ",3),ut("button",{"tab-button":"",class:ve({"tab-button-active":Z(rr)==="console",op20:Z(rr)!=="console"&&Z(f)===0}),onClick:g[3]||(g[3]=z=>u("console"))}," Console ("+ae(Z(f))+") ",3)])]),ut("div",hht,[un(Bt(_,{graph:r.value},null,8,["graph"]),[[Mm,Z(rr)==="graph"]]),Z(rr)==="editor"?(ht(),de(k,{key:Z(Le).filepath,file:Z(Le),onDraft:h},null,8,["file"])):Z(rr)==="console"?(ht(),de(A,{key:1,file:Z(Le)},null,8,["file"])):Z(rr)?_e("",!0):(ht(),de(P,{key:2,file:Z(Le)},null,8,["file"]))])])):_e("",!0)}}});const pht=["open"],ght=ut("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),vht=ut("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1),mht=ue({__name:"DetailsPanel",props:{color:null},setup(t){const n=ne(!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:ve(t.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[ght,Pr(r.$slots,"summary",{open:n.value}),vht],2),Pr(r.$slots,"default")],40,pht))}}),yht={key:0,flex:"~ row","items-center":"",p:"x-2 y-1","border-rounded":"","cursor-pointer":"",hover:"bg-active"},bht=["text"],wht={"text-sm":"",truncate:"","font-light":""},xht={key:0,text:"xs",op20:"",style:{"white-space":"nowrap"}},_ht=ue({__name:"TaskItem",props:{task:null},setup(t){const n=t,r=kt(()=>{const{result:o}=n.task;return o&&Math.round(o.duration||0)});return(o,a)=>{var f,h;const u=dh;return t.task?(ht(),Mt("div",yht,[Bt(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",wht,ae(t.task.name),1),typeof Z(r)=="number"?(ht(),Mt("span",xht,ae(Z(r)>0?Z(r):"< 1")+"ms ",1)):_e("",!0)],8,bht)])):_e("",!0)}}});function Sht(t){return Object.hasOwnProperty.call(t,"tasks")}function Ry(t,n){return typeof t!="string"||typeof n!="string"?!1:t.toLowerCase().includes(n.toLowerCase())}const kht={key:1},Cht={inheritAttrs:!1},Tht=ue({...Cht,__name:"TaskTree",props:{task:null,indent:{default:0},nested:{type:Boolean,default:!1},search:null,onItemClick:null},setup(t){return(n,r)=>{const o=_ht,a=Gi("TaskTree",!0);return ht(),Mt(ce,null,[!t.search||Z(Ry)(t.task.name,t.search)?(ht(),de(o,fi({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"])):_e("",!0),t.nested&&t.task.type==="suite"&&t.task.tasks.length?(ht(),Mt("div",kht,[(ht(!0),Mt(ce,null,ir(t.task.tasks,u=>(ht(),de(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))])):_e("",!0)],64)}}}),Lht={h:"full",flex:"~ col"},Eht={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Aht={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Mht=ut("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1),Nht=["op"],Pht={class:"scrolls","flex-auto":"","py-1":""},Oht={"text-red5":""},Dht={"text-yellow5":""},$ht={"text-green5":""},Rht={class:"text-purple5:50"},zht={key:2,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},Iht=ut("div",{op30:""}," No matched test ",-1),Fht={inheritAttrs:!1},zy=ue({...Fht,__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=ne(""),a=ne(),u=kt(()=>o.value.trim()!==""),f=(L,T)=>{let E=!1;for(let z=0;z<L.length;z++){const $=L[z];if(Ry($.name,T)){E=!0;break}if(Sht($)&&$.tasks&&(E=f($.tasks,T),E))break}return E},h=kt(()=>o.value.trim()?r.tasks.filter(L=>f([L],o.value)):r.tasks),p=kt(()=>u.value?h.value.map(L=>$a(L.id)).filter(Boolean):[]),g=kt(()=>h.value.filter(L=>{var T;return((T=L.result)==null?void 0:T.state)==="fail"})),m=kt(()=>h.value.filter(L=>{var T;return((T=L.result)==null?void 0:T.state)==="pass"})),w=kt(()=>h.value.filter(L=>L.mode==="skip"||L.mode==="todo")),_=kt(()=>h.value.filter(L=>!g.value.includes(L)&&!m.value.includes(L)&&!w.value.includes(L))),k=qk(_,250),A=L=>{var T;o.value="",L&&((T=a.value)==null||T.focus())},P=kt(()=>o.value==="");return(L,T)=>{const E=Yo,z=Tht,$=mht,V=Xi("tooltip");return ht(),Mt("div",Lht,[ut("div",null,[ut("div",Eht,[Pr(L.$slots,"header",{filteredTests:Z(u)?Z(p):void 0})]),ut("div",Aht,[Mht,un(ut("input",{ref_key:"searchBox",ref:a,"onUpdate:modelValue":T[0]||(T[0]=W=>o.value=W),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:o.value.length?"100":"50",onKeydown:[T[1]||(T[1]=Ku(W=>A(!1),["esc"])),T[2]||(T[2]=Ku(W=>n("run",Z(u)?Z(p):void 0),["enter"]))]},null,40,Nht),[[h_,o.value]]),un(Bt(E,{disabled:Z(P),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:T[3]||(T[3]=W=>A(!0))},null,8,["disabled"]),[[V,"Clear search",void 0,{bottom:!0}]])])]),ut("div",Pht,[t.groupByType?(ht(),Mt(ce,{key:0},[Z(g).length?(ht(),de($,{key:0},{summary:we(()=>[ut("div",Oht," FAIL ("+ae(Z(g).length)+") ",1)]),default:we(()=>[(ht(!0),Mt(ce,null,ir(Z(g),W=>(ht(),de(z,{key:W.id,task:W,nested:t.nested,search:o.value,class:ve(Z(Lr)===W.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):_e("",!0),Z(_).length||Z(Da)==="running"?(ht(),de($,{key:1},{summary:we(()=>[ut("div",Dht," RUNNING ("+ae(Z(k).length)+") ",1)]),default:we(()=>[(ht(!0),Mt(ce,null,ir(Z(k),W=>(ht(),de(z,{key:W.id,task:W,nested:t.nested,search:o.value,class:ve(Z(Lr)===W.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):_e("",!0),Z(m).length?(ht(),de($,{key:2},{summary:we(()=>[ut("div",$ht," PASS ("+ae(Z(m).length)+") ",1)]),default:we(()=>[(ht(!0),Mt(ce,null,ir(Z(m),W=>(ht(),de(z,{key:W.id,task:W,nested:t.nested,search:o.value,class:ve(Z(Lr)===W.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):_e("",!0),Z(w).length?(ht(),de($,{key:3},{summary:we(()=>[ut("div",Rht," SKIP ("+ae(Z(w).length)+") ",1)]),default:we(()=>[(ht(!0),Mt(ce,null,ir(Z(w),W=>(ht(),de(z,{key:W.id,task:W,nested:t.nested,search:o.value,class:ve(Z(Lr)===W.id?"bg-active":""),"on-item-click":t.onItemClick},null,8,["task","nested","search","class","on-item-click"]))),128))]),_:1})):_e("",!0)],64)):(ht(!0),Mt(ce,{key:1},ir(Z(h),W=>(ht(),de(z,{key:W.id,task:W,nested:t.nested,search:o.value,class:ve(Z(Lr)===W.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,[Iht,ut("button",{"font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:T[4]||(T[4]=W=>A(!0))}," Clear ",32)])):_e("",!0)])])}}}),qht={key:0,"h-full":""},Hht={"font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},Bht={class:"flex text-lg"},Wht=ue({__name:"Suites",setup(t){const n=kt(()=>{var a;return(a=Le.value)==null?void 0:a.name.split(/\//g).pop()}),r=kt(()=>{var a,u;return((a=Le.value)==null?void 0:a.tasks)&&fc((u=Le.value)==null?void 0:u.tasks)}),o=()=>Le.value&&Ue.rpc.updateSnapshot(Le.value);return(a,u)=>{const f=dh,h=Yo,p=zy,g=Xi("tooltip");return Z(Le)?(ht(),Mt("div",qht,[Bt(p,{tasks:Z(Le).tasks,nested:!0},{header:we(()=>[Bt(f,{"mx-1":"",task:Z(Le)},null,8,["task"]),ut("span",Hht,ae(Z(n)),1),ut("div",Bht,[Z(r)?un((ht(),de(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}]]):_e("",!0),un(Bt(h,{icon:"i-carbon-play",onClick:u[1]||(u[1]=m=>Z(JC)())},null,512),[[g,"Rerun file",void 0,{bottom:!0}]])])]),_:1},8,["tasks"])])):_e("",!0)}}}),Ba=kt(()=>wn.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="fail"})),Wa=kt(()=>wn.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="pass"})),ph=kt(()=>wn.value.filter(t=>t.mode==="skip"||t.mode==="todo"));kt(()=>wn.value.filter(t=>!Ba.value.includes(t)&&!Wa.value.includes(t)&&!ph.value.includes(t)));kt(()=>ph.value.filter(t=>t.mode==="skip"));const wv=kt(()=>wn.value.filter(fc));kt(()=>ph.value.filter(t=>t.mode==="todo"));const Uht=kt(()=>Da.value==="idle"),yc=kt(()=>gh(wn.value)),jht=kt(()=>yc.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="fail"})),Ght=kt(()=>yc.value.filter(t=>{var n;return((n=t.result)==null?void 0:n.state)==="pass"})),Iy=kt(()=>yc.value.filter(t=>t.mode==="skip"||t.mode==="todo"));kt(()=>Iy.value.filter(t=>t.mode==="skip"));kt(()=>Iy.value.filter(t=>t.mode==="todo"));kt(()=>jht.value.length+Ght.value.length);const Vht=kt(()=>{const t=gh(yc.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 Kht(t){return t=t||[],Array.isArray(t)?t:[t]}function gh(t){return Kht(t).flatMap(n=>n.type==="test"?[n]:n.tasks.flatMap(r=>r.type==="test"?[r]:gh(r)))}const hr=t=>(tm("data-v-65f7d3a2"),t=t(),em(),t),Xht={"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:""},Yht=hr(()=>ut("div",{"i-carbon-document":""},null,-1)),Zht=hr(()=>ut("div",null,"Files",-1)),Jht={class:"number","data-testid":"num-files"},Qht=hr(()=>ut("div",{"i-carbon-checkmark":""},null,-1)),tdt=hr(()=>ut("div",null,"Pass",-1)),edt={class:"number"},ndt=hr(()=>ut("div",{"i-carbon-close":""},null,-1)),rdt=hr(()=>ut("div",null," Fail ",-1)),idt={class:"number","text-red5":""},odt=hr(()=>ut("div",{"i-carbon-compare":""},null,-1)),sdt=hr(()=>ut("div",null," Snapshot Fail ",-1)),ldt={class:"number","text-red5":""},adt=hr(()=>ut("div",{"i-carbon-timer":""},null,-1)),cdt=hr(()=>ut("div",null,"Time",-1)),udt={class:"number","data-testid":"run-time"},fdt=ue({__name:"TestFilesEntry",setup(t){return(n,r)=>(ht(),Mt("div",Xht,[Yht,Zht,ut("div",Jht,ae(Z(wn).length),1),Z(Wa).length?(ht(),Mt(ce,{key:0},[Qht,tdt,ut("div",edt,ae(Z(Wa).length),1)],64)):_e("",!0),Z(Ba).length?(ht(),Mt(ce,{key:1},[ndt,rdt,ut("div",idt,ae(Z(Ba).length),1)],64)):_e("",!0),Z(wv).length?(ht(),Mt(ce,{key:2},[odt,sdt,ut("div",ldt,ae(Z(wv).length),1)],64)):_e("",!0),adt,cdt,ut("div",udt,ae(Z(Vht)),1)]))}});var hdt=Xo(fdt,[["__scopeId","data-v-65f7d3a2"]]);const ddt={},pdt={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},gdt={"bg-header":"","rounded-lg":"",p:"y4 x2"};function vdt(t,n){const r=hdt;return ht(),Mt("div",pdt,[ut("div",gdt,[Bt(r)])])}var mdt=Xo(ddt,[["render",vdt]]);const ydt={},bdt={h:"full",flex:"~ col"},wdt=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),xdt={class:"scrolls","flex-auto":"","py-1":""};function _dt(t,n){const r=mdt;return ht(),Mt("div",bdt,[wdt,ut("div",xdt,[Bt(r)])])}var Sdt=Xo(ydt,[["render",_dt]]),kdt="/__vitest__/favicon.svg";const Ua=ne(void 0),Bs=ne(!0);function Cdt(){const t=Lr.value;if(t&&t.length>0){const n=$a(t);n?(Ua.value=n,Bs.value=!1):Qk(()=>Ue.state.getFiles(),()=>{Ua.value=$a(t),Bs.value=!1})}return Bs}function xv(t){Bs.value=t,t&&(Ua.value=void 0,Lr.value="")}const Tdt=ut("img",{"w-6":"","h-6":"",src:kdt,alt:"Vitest logo"},null,-1),Ldt=ut("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1),Edt={class:"flex text-lg"},Adt=ue({__name:"Navigation",setup(t){const n=kt(()=>wn.value&&fc(wn.value)),r=()=>Ue.rpc.updateSnapshot();function o(u){Lr.value=u.id,Ua.value=$a(u.id),xv(!1)}const a=kt(()=>pc.value?"light":"dark");return(u,f)=>{const h=Yo,p=zy,g=Xi("tooltip");return ht(),de(p,{border:"r base",tasks:Z(wn),"on-item-click":o,"group-by-type":!0,onRun:Z(qg)},{header:we(({filteredTests:m})=>[Tdt,Ldt,ut("div",Edt,[un(Bt(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon-dashboard",onClick:f[0]||(f[0]=w=>Z(xv)(!0))},null,512),[[Mm,!Z(Bs)],[g,"Dashboard",void 0,{bottom:!0}]]),Z(n)?un((ht(),de(h,{key:0,icon:"i-carbon-result-old",onClick:f[1]||(f[1]=w=>r())},null,512)),[[g,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):_e("",!0),un(Bt(h,{disabled:(m==null?void 0:m.length)===0,icon:"i-carbon-play",onClick:w=>Z(qg)(m)},null,8,["disabled","onClick"]),[[g,m?m.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),un(Bt(h,{icon:"dark:i-carbon-moon i-carbon-sun",onClick:f[2]||(f[2]=w=>Z(est)())},null,512),[[g,`Toggle to ${Z(a)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["tasks","onRun"])}}});const Mdt={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},Ndt=ue({__name:"ProgressBar",setup(t){const{width:n}=OC(),r=kt(()=>wn.value.length===0?"!bg-gray-4 !dark:bg-gray-7 in-progress":Uht.value?null:"in-progress"),o=kt(()=>wn.value.length),a=kt(()=>Wa.value.length),u=kt(()=>Ba.value.length),f=kt(()=>{const m=Z(o);return m>0?n.value*a.value/m:0}),h=kt(()=>{const m=Z(o);return m>0?n.value*u.value/m:0}),p=kt(()=>Z(o)-u.value-a.value),g=kt(()=>{const m=Z(o);return m>0?n.value*p.value/m:0});return(m,w)=>(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:ve(Z(r))},[ut("div",Mdt,[ut("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:ve(Z(r)),style:yn(`width: ${Z(h)}px;`)}," \xA0 ",6),ut("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:ve(Z(r)),style:yn(`left: ${Z(h)}px; width: ${Z(f)}px;`)}," \xA0 ",6),ut("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:ve(Z(r)),style:yn(`left: ${Z(f)+Z(h)}px; width: ${Z(g)}px;`)}," \xA0 ",6)])],2))}});var Pdt=Xo(Ndt,[["__scopeId","data-v-513f7dd8"]]),Odt=Object.defineProperty,Ddt=Object.defineProperties,$dt=Object.getOwnPropertyDescriptors,ja=Object.getOwnPropertySymbols,Fy=Object.prototype.hasOwnProperty,qy=Object.prototype.propertyIsEnumerable,_v=(t,n,r)=>n in t?Odt(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,Rdt=(t,n)=>{for(var r in n||(n={}))Fy.call(n,r)&&_v(t,r,n[r]);if(ja)for(var r of ja(n))qy.call(n,r)&&_v(t,r,n[r]);return t},zdt=(t,n)=>Ddt(t,$dt(n)),Idt=(t,n)=>{var r={};for(var o in t)Fy.call(t,o)&&n.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&ja)for(var o of ja(t))n.indexOf(o)<0&&qy.call(t,o)&&(r[o]=t[o]);return r};const Sv={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((t,n)=>(t[n.id]=n)&&t,{})}},methods:{updatePaneComponents(){this.panes.forEach(t=>{t.update&&t.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[t.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(t,n){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=n},onMouseMove(t){this.touch.mouseDown&&(t.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(t)),this.$emit("resize",this.panes.map(n=>({min:n.min,max:n.max,size:n.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(t,n){"ontouchstart"in window&&(t.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===n?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(t,n),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=n,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[n])},onSplitterDblClick(t,n){let r=0;this.panes=this.panes.map((o,a)=>(o.size=a===n?o.max:o.min,a!==n&&(r+=o.min),o)),this.panes[n].size-=r,this.$emit("pane-maximize",this.panes[n])},onPaneClick(t,n){this.$emit("pane-click",this.indexedPanes[n])},getCurrentMouseDrag(t){const n=this.container.getBoundingClientRect(),{clientX:r,clientY:o}="ontouchstart"in window&&t.touches?t.touches[0]:t;return{x:r-n.left,y:o-n.top}},getCurrentDragPercentage(t){t=t[this.horizontal?"y":"x"];const n=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(t=n-t),t*100/n},calculatePanesSize(t){const n=this.touch.activeSplitter;let r={prevPanesSize:this.sumPrevPanesSize(n),nextPanesSize:this.sumNextPanesSize(n),prevReachedMinPanes:0,nextReachedMinPanes:0};const o=0+(this.pushOtherPanes?0:r.prevPanesSize),a=100-(this.pushOtherPanes?0:r.nextPanesSize),u=Math.max(Math.min(this.getCurrentDragPercentage(t),a),o);let f=[n,n+1],h=this.panes[f[0]]||null,p=this.panes[f[1]]||null;const g=h.max<100&&u>=h.max+r.prevPanesSize,m=p.max<100&&u<=100-(p.max+this.sumNextPanesSize(n+1));if(g||m){g?(h.size=h.max,p.size=Math.max(100-h.max-r.prevPanesSize-r.nextPanesSize,0)):(h.size=Math.max(100-p.max-r.prevPanesSize-this.sumNextPanesSize(n+1),0),p.size=p.max);return}if(this.pushOtherPanes){const w=this.doPushOtherPanes(r,u);if(!w)return;({sums:r,panesToResize:f}=w),h=this.panes[f[0]]||null,p=this.panes[f[1]]||null}h!==null&&(h.size=Math.min(Math.max(u-r.prevPanesSize-r.prevReachedMinPanes,h.min),h.max)),p!==null&&(p.size=Math.min(Math.max(100-u-r.nextPanesSize-r.nextReachedMinPanes,p.min),p.max))},doPushOtherPanes(t,n){const r=this.touch.activeSplitter,o=[r,r+1];return n<t.prevPanesSize+this.panes[o[0]].min&&(o[0]=this.findPrevExpandedPane(r).index,t.prevReachedMinPanes=0,o[0]<r&&this.panes.forEach((a,u)=>{u>o[0]&&u<=r&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),t.prevPanesSize=this.sumPrevPanesSize(o[0]),o[0]===void 0)?(t.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((a,u)=>{u>0&&u<=r&&(a.size=a.min,t.prevReachedMinPanes+=a.min)}),this.panes[o[1]].size=100-t.prevReachedMinPanes-this.panes[0].min-t.prevPanesSize-t.nextPanesSize,null):n>100-t.nextPanesSize-this.panes[o[1]].min&&(o[1]=this.findNextExpandedPane(r).index,t.nextReachedMinPanes=0,o[1]>r+1&&this.panes.forEach((a,u)=>{u>r&&u<o[1]&&(a.size=a.min,t.nextReachedMinPanes+=a.min)}),t.nextPanesSize=this.sumNextPanesSize(o[1]-1),o[1]===void 0)?(t.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((a,u)=>{u<this.panesCount-1&&u>=r+1&&(a.size=a.min,t.nextReachedMinPanes+=a.min)}),this.panes[o[0]].size=100-t.prevPanesSize-t.nextReachedMinPanes-this.panes[this.panesCount-1].min-t.nextPanesSize,null):{sums:t,panesToResize:o}},sumPrevPanesSize(t){return this.panes.reduce((n,r,o)=>n+(o<t?r.size:0),0)},sumNextPanesSize(t){return this.panes.reduce((n,r,o)=>n+(o>t+1?r.size:0),0)},findPrevExpandedPane(t){return[...this.panes].reverse().find(r=>r.index<t&&r.size>r.min)||{}},findNextExpandedPane(t){return this.panes.find(r=>r.index>t+1&&r.size>r.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(n=>{const r=n.classList.contains("splitpanes__pane"),o=n.classList.contains("splitpanes__splitter");if(!r&&!o){n.parentNode.removeChild(n),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed.");return}})},addSplitter(t,n,r=!1){const o=t-1,a=document.createElement("div");a.classList.add("splitpanes__splitter"),r||(a.onmousedown=u=>this.onMouseDown(u,o),typeof window!="undefined"&&"ontouchstart"in window&&(a.ontouchstart=u=>this.onMouseDown(u,o)),a.onclick=u=>this.onSplitterClick(u,o+1)),this.dblClickSplitter&&(a.ondblclick=u=>this.onSplitterDblClick(u,o+1)),n.parentNode.insertBefore(a,n)},removeSplitter(t){t.onmousedown=void 0,t.onclick=void 0,t.ondblclick=void 0,t.parentNode.removeChild(t)},redoSplitters(){const t=Array.from(this.container.children);t.forEach(r=>{r.className.includes("splitpanes__splitter")&&this.removeSplitter(r)});let n=0;t.forEach(r=>{r.className.includes("splitpanes__pane")&&(!n&&this.firstSplitter?this.addSplitter(n,r,!0):n&&this.addSplitter(n,r),n++)})},requestUpdate(t){var n=t,{target:r}=n,o=Idt(n,["target"]);const a=this.indexedPanes[r._.uid];Object.entries(o).forEach(([u,f])=>a[u]=f)},onPaneAdd(t){let n=-1;Array.from(t.$el.parentNode.children).some(a=>(a.className.includes("splitpanes__pane")&&n++,a===t.$el));const r=parseFloat(t.minSize),o=parseFloat(t.maxSize);this.panes.splice(n,0,{id:t._.uid,index:n,min:isNaN(r)?0:r,max:isNaN(o)?100:o,size:t.size===null?null:parseFloat(t.size),givenSize:t.size,update:t.update}),this.panes.forEach((a,u)=>a.index=u),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[n]}),this.$emit("pane-add",{index:n,panes:this.panes.map(a=>({min:a.min,max:a.max,size:a.size}))})})},onPaneRemove(t){const n=this.panes.findIndex(o=>o.id===t._.uid),r=this.panes.splice(n,1)[0];this.panes.forEach((o,a)=>o.index=a),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:zdt(Rdt({},r),{index:n})}),this.$emit("pane-remove",{removed:r,panes:this.panes.map(o=>({min:o.min,max:o.max,size:o.size}))})})},resetPaneSizes(t={}){!t.addedPane&&!t.removedPane?this.initialPanesSizing():this.panes.some(n=>n.givenSize!==null||n.min||n.max<100)?this.equalizeAfterAddOrRemove(t):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(n=>({min:n.min,max:n.max,size:n.size})))},equalize(){const t=100/this.panesCount;let n=0,r=[],o=[];this.panes.forEach(a=>{a.size=Math.max(Math.min(t,a.max),a.min),n-=a.size,a.size>=a.max&&r.push(a.id),a.size<=a.min&&o.push(a.id)}),n>.1&&this.readjustSizes(n,r,o)},initialPanesSizing(){100/this.panesCount;let t=100,n=[],r=[],o=0;this.panes.forEach(u=>{t-=u.size,u.size!==null&&o++,u.size>=u.max&&n.push(u.id),u.size<=u.min&&r.push(u.id)});let a=100;t>.1&&(this.panes.forEach(u=>{u.size===null&&(u.size=Math.max(Math.min(t/(this.panesCount-o),u.max),u.min)),a-=u.size}),a>.1&&this.readjustSizes(t,n,r))},equalizeAfterAddOrRemove({addedPane:t,removedPane:n}={}){let r=100/this.panesCount,o=0,a=[],u=[];t&&t.givenSize!==null&&(r=(100-t.givenSize)/(this.panesCount-1)),this.panes.forEach(f=>{o-=f.size,f.size>=f.max&&a.push(f.id),f.size<=f.min&&u.push(f.id)}),!(Math.abs(o)<.1)&&(this.panes.forEach(f=>{t&&t.givenSize!==null&&t.id===f.id||(f.size=Math.max(Math.min(r,f.max),f.min)),o-=f.size,f.size>=f.max&&a.push(f.id),f.size<=f.min&&u.push(f.id)}),o>.1&&this.readjustSizes(o,a,u))},readjustSizes(t,n,r){let o;t>0?o=t/(this.panesCount-n.length):o=t/(this.panesCount-r.length),this.panes.forEach((a,u)=>{if(t>0&&!n.includes(a.id)){const f=Math.max(Math.min(a.size+o,a.max),a.min);t-=f-a.size,a.size=f}else if(!r.includes(a.id)){const f=Math.max(Math.min(a.size+o,a.max),a.min);t-=f-a.size,a.size=f}a.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[a.id].size}%`})}),Math.abs(t)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(t){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((r,o)=>{r.ondblclick=t?a=>this.onSplitterDblClick(a,o):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return fl("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}};var Fdt=(t,n)=>{const r=t.__vccOpts||t;for(const[o,a]of n)r[o]=a;return r};const qdt={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 Hdt(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:yn(t.style)},[Pr(t.$slots,"default")],4)}var la=Fdt(qdt,[["render",Hdt]]);const Bdt={"h-screen":"","w-screen":"",overflow:"hidden"},Wdt=ue({__name:"index",setup(t){const n=Cdt(),r=cr([33,67]),o=cr([33,67]),a=Eg(h=>{h.forEach((p,g)=>{r[g]=p.size})},0),u=Eg(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=Pdt,m=Adt,w=Sdt,_=Wht,k=dht,A=eT;return ht(),Mt(ce,null,[Bt(g),ut("div",Bdt,[Bt(Z(Sv),{class:"pt-4px",onResized:Z(a),onReady:f},{default:we(()=>[Bt(Z(la),{size:r[0]},{default:we(()=>[Bt(m)]),_:1},8,["size"]),Bt(Z(la),{size:r[1]},{default:we(()=>[Bt(Wf,null,{default:we(()=>[Z(n)?(ht(),de(w,{key:"summary"})):(ht(),de(Z(Sv),{key:"detail",onResized:Z(u)},{default:we(()=>[Bt(Z(la),{size:o[0]},{default:we(()=>[Bt(_)]),_:1},8,["size"]),Bt(Z(la),{size:o[1]},{default:we(()=>[Bt(k)]),_:1},8,["size"])]),_:1},8,["onResized"]))]),_:1})]),_:1},8,["size"])]),_:1},8,["onResized"])]),Bt(A)],64)}}}),Udt=[{name:"index",path:"/",component:Wdt,props:!0}];const jdt={tooltip:Ok};f0.options.instantMove=!0;f0.options.distance=10;const Gdt=()=>_S({history:z_("/__vitest__/"),routes:Udt}),Vdt=[Gdt],vh=Nm(b_);Vdt.forEach(t=>{vh.use(t())});Object.entries(jdt).forEach(([t,n])=>{vh.directive(t,n)});vh.mount("#app");
|