58 lines
687 KiB
JavaScript
58 lines
687 KiB
JavaScript
|
|
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();/**
|
|||
|
|
* @vue/shared v3.5.25
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/function Fh(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const vt={},Rs=[],Xr=()=>{},C0=()=>!1,$u=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Hh=e=>e.startsWith("onUpdate:"),on=Object.assign,Bh=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},$S=Object.prototype.hasOwnProperty,wt=(e,t)=>$S.call(e,t),Ze=Array.isArray,$s=e=>Oa(e)==="[object Map]",Iu=e=>Oa(e)==="[object Set]",Bm=e=>Oa(e)==="[object Date]",et=e=>typeof e=="function",Ht=e=>typeof e=="string",Pr=e=>typeof e=="symbol",kt=e=>e!==null&&typeof e=="object",E0=e=>(kt(e)||et(e))&&et(e.then)&&et(e.catch),A0=Object.prototype.toString,Oa=e=>A0.call(e),IS=e=>Oa(e).slice(8,-1),L0=e=>Oa(e)==="[object Object]",Du=e=>Ht(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Xl=Fh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zu=e=>{const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))},DS=/-\w/g,sr=zu(e=>e.replace(DS,t=>t.slice(1).toUpperCase())),zS=/\B([A-Z])/g,Ai=zu(e=>e.replace(zS,"-$1").toLowerCase()),Fu=zu(e=>e.charAt(0).toUpperCase()+e.slice(1)),qc=zu(e=>e?`on${Fu(e)}`:""),Gn=(e,t)=>!Object.is(e,t),jc=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},M0=(e,t,r,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:r})},Wh=e=>{const t=parseFloat(e);return isNaN(t)?e:t},N0=e=>{const t=Ht(e)?Number(e):NaN;return isNaN(t)?e:t};let Wm;const Hu=()=>Wm||(Wm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function zt(e){if(Ze(e)){const t={};for(let r=0;r<e.length;r++){const o=e[r],s=Ht(o)?WS(o):zt(o);if(s)for(const c in s)t[c]=s[c]}return t}else if(Ht(e)||kt(e))return e}const FS=/;(?![^(]*\))/g,HS=/:([^]+)/,BS=/\/\*[^]*?\*\//g;function WS(e){const t={};return e.replace(BS,"").split(FS).forEach(r=>{if(r){const o=r.split(HS);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function ot(e){let t="";if(Ht(e))t=e;else if(Ze(e))for(let r=0;r<e.length;r++){const o=ot(e[r]);o&&(t+=o+" ")}else if(kt(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function qS(e){if(!e)return null;let{class:t,style:r}=e;return t&&!Ht(t)&&(e.class=ot(t)),r&&(e.style=zt(r)),e}const jS="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",US=Fh(jS);function O0(e){return!!e||e===""}function VS(e,t){if(e.length!==t.length)return!1;let r=!0;for(let o=0;r&&o<e.length;o++)r=Bu(e[o],t[o]);return r}function Bu(e,t){if(e===t)return!0;let r=Bm(e),o=Bm(t);if(r||o)return r&&o?e.getTime()===t.getTime():!1;if(r=Pr(e),o=Pr(t),r||o)return e===t;if(r=Ze(e),o=Ze(t),r||o)return r&&o?VS(e,t):!1;if(r=kt(e),o=kt(t),r||o){if(!r||!o)return!1;const s=Object.keys(e).length,c=Object.keys(t).length;if(s!==c)return!1;for(const f in e){const d=e.hasOwnProperty(f),h=t.hasOwnProperty(f);if(d&&!h||!d&&h||!Bu(e[f],t[f]))return!1}}return String(e)===String(t)}function P0(e,t){return e.findIndex(r=>Bu(r,t))}const R0=e=>!!(e&&e.__v_isRef===!0),Re=e=>Ht(e)?e:e==null?"":Ze(e)||kt(e)&&(e.toString===A0||!et(e.toString))?R0(e)?Re(e.value):JSON.stringify(e,$0,2):String(e),$0=(e,t)=>R0(t)?$0(e,t.value):$s(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[o,s],c)=>(r[fd(o,c)+" =>"]=s,r),{})}:Iu(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>fd(r))}:Pr(t)?fd(t):kt(t)&&!Ze(t)&&!L0(t)?String(t):t,fd=(e,t="")=>{var r;return Pr(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/**
|
|||
|
|
* @vue/reactivity v3.5.25
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/let bn;class GS{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=bn,!t&&bn&&(this.index=(bn.scopes||(bn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].pause();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].resume();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].resume()}}run(t){if(this._active){const r=bn;try{return bn=this,t()}finally{bn=r}}}on(){++this._on===1&&(this.prevScope=bn,bn=this)}off(){this._on>0&&--this._on===0&&(bn=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,o;for(r=0,o=this.effects.length;r<o;r++)this.effects[r].stop();for(this.effects.length=0,r=0,o=this.cleanups.length;r<o;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,o=this.scopes.length;r<o;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function I0(){return bn}function KS(e,t=!1){bn&&bn.cleanups.push(e)}let Tt;const dd=new WeakSet;class D0{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,bn&&bn.active&&bn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,dd.has(this)&&(dd.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||F0(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,qm(this),H0(this);const t=Tt,r=Nr;Tt=this,Nr=!0;try{return this.fn()}finally{B0(this),Tt=t,Nr=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Uh(t);this.deps=this.depsTail=void 0,qm(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?dd.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){jd(this)&&this.run()}get dirty(){return jd(this)}}let z0=0,Yl,Zl;function F0(e,t=!1){if(e.flags|=8,t){e.next=Zl,Zl=e;return}e.next=Yl,Yl=e}function qh(){z0++}function jh(){if(--z0>0)return;if(Zl){let t=Zl;for(Zl=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Yl;){let t=Yl;for(Yl=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=r}}if(e)throw e}function H0(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function B0(e){let t,r=e.depsTail,o=r;for(;o;){const s=o.prevDep;o.version===-1?(o===r&&(r=s),Uh(o),XS(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=r}function jd(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(W0(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function W0(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===aa)||(e.globalVersion=aa,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!jd(e))))return;e.flags|=2;const t=e.dep,r=Tt,o=Nr;Tt=e,Nr=!0;try{H0(e);const s=e.fn(e._value);(t.version===0||Gn(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Tt=r,Nr=o,B0(e),e.flags&=-3}}function Uh(e,t=!1){const{dep:r,prevSub:o,nextSub:s}=e;if(o&&(o.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=o,e.nextSub=void 0),r.subs===e&&(r.subs=o,!o&&r.computed)){r.computed.flags&=-5;for(let c=r.computed.deps;c;c=c.nextDep)Uh(c,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function XS(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let Nr=!0;const q0=[];function Si(){q0.push(Nr),Nr=!1}function _i(){const e=q0.pop();Nr=e===void 0?!0:e}function qm(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=Tt;Tt=void 0;try{t()}finally{Tt=r}}}let aa=0;class YS{constructor(t,r){this.sub=t,this.dep=r,this.v
|
|||
|
|
* @vue/runtime-core v3.5.25
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/function Pa(e,t,r,o){try{return o?e(...o):e()}catch(s){Ra(s,t,r)}}function $r(e,t,r,o){if(et(e)){const s=Pa(e,t,r,o);return s&&E0(s)&&s.catch(c=>{Ra(c,t,r)}),s}if(Ze(e)){const s=[];for(let c=0;c<e.length;c++)s.push($r(e[c],t,r,o));return s}}function Ra(e,t,r,o=!0){const s=t?t.vnode:null,{errorHandler:c,throwUnhandledErrorInProduction:f}=t&&t.appContext.config||vt;if(t){let d=t.parent;const h=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${r}`;for(;d;){const g=d.ec;if(g){for(let v=0;v<g.length;v++)if(g[v](e,h,p)===!1)return}d=d.parent}if(c){Si(),Pa(c,null,10,[e,h,p]),_i();return}}T_(e,r,s,o,f)}function T_(e,t,r,o=!0,s=!1){if(s)throw e;console.error(e)}const Pn=[];let Gr=-1;const Is=[];let Zi=null,Es=0;const tb=Promise.resolve();let su=null;function Et(e){const t=su||tb;return e?t.then(this?e.bind(this):e):t}function C_(e){let t=Gr+1,r=Pn.length;for(;t<r;){const o=t+r>>>1,s=Pn[o],c=ua(s);c<e||c===e&&s.flags&2?t=o+1:r=o}return t}function Xh(e){if(!(e.flags&1)){const t=ua(e),r=Pn[Pn.length-1];!r||!(e.flags&2)&&t>=ua(r)?Pn.push(e):Pn.splice(C_(t),0,e),e.flags|=1,nb()}}function nb(){su||(su=tb.then(ib))}function Gd(e){Ze(e)?Is.push(...e):Zi&&e.id===-1?Zi.splice(Es+1,0,e):e.flags&1||(Is.push(e),e.flags|=1),nb()}function Um(e,t,r=Gr+1){for(;r<Pn.length;r++){const o=Pn[r];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;Pn.splice(r,1),r--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function rb(e){if(Is.length){const t=[...new Set(Is)].sort((r,o)=>ua(r)-ua(o));if(Is.length=0,Zi){Zi.push(...t);return}for(Zi=t,Es=0;Es<Zi.length;Es++){const r=Zi[Es];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Zi=null,Es=0}}const ua=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ib(e){try{for(Gr=0;Gr<Pn.length;Gr++){const t=Pn[Gr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Pa(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Gr<Pn.length;Gr++){const t=Pn[Gr];t&&(t.flags&=-2)}Gr=-1,Pn.length=0,rb(),su=null,(Pn.length||Is.length)&&ib()}}let mn=null,Vu=null;function lu(e){const t=mn;return mn=e,Vu=e&&e.type.__scopeId||null,t}function ob(e){Vu=e}function sb(){Vu=null}const lb=e=>We;function We(e,t=mn,r){if(!t||e._n)return e;const o=(...s)=>{o._d&&Ys(-1);const c=lu(t);let f;try{f=e(...s)}finally{lu(c),o._d&&Ys(1)}return f};return o._n=!0,o._c=!0,o._d=!0,o}function at(e,t){if(mn===null)return e;const r=Qu(mn),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[c,f,d,h=vt]=t[s];c&&(et(c)&&(c={mounted:c,updated:c}),c.deep&&wi(f),o.push({dir:c,instance:r,value:f,oldValue:void 0,arg:d,modifiers:h}))}return e}function Mo(e,t,r,o){const s=e.dirs,c=t&&t.dirs;for(let f=0;f<s.length;f++){const d=s[f];c&&(d.oldValue=c[f].value);let h=d.dir[o];h&&(Si(),$r(h,r,8,[e.el,d,e,t]),_i())}}const E_=Symbol("_vte"),ab=e=>e.__isTeleport,yi=Symbol("_leaveCb"),Ac=Symbol("_enterCb");function A_(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Mi(()=>{e.isMounted=!0}),$a(()=>{e.isUnmounting=!0}),e}const ur=[Function,Array],cb={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ur,onEnter:ur,onAfterEnter:ur,onEnterCancelled:ur,onBeforeLeave:ur,onLeave:ur,onAfterLeave:ur,onLeaveCancelled:ur,onBeforeAppear:ur,onAppear:ur,onAfterAppear:ur,onAppearCancelled:ur},ub=e=>{const t=e.subTree;return t.component?ub(t.component):t},L_={name:"BaseTransition",props:cb,setup(e,{slots:t}){const r=ti(),o=A_();return()=>{const s=t.default&&hb(t.default(),!0);if(!s||!s.length)return;const c=fb(s),f=mt(e),{mode:d}=f;if(o.isLeaving)return gd(c);const h=Vm(c);if(!h)return gd(c);let p=Kd(h,f,o,r,v=>p=v);h.type!==ln&&fa(h,p);let g=r.subTree&&Vm(r.subTree);if(g&&g.type!==ln&&!Kr(g,h)&&ub(r).type!==ln){let v=Kd(g,f,o,r);if(fa(g,v),d==="out-in"&&h.type!==ln)return o.isLeaving=!0,v.afterLeave=()=>{o.isLeaving=!1,r.job.flags&8||r.update(),delete v.afterLeave,g=void 0},gd(c);d==="in-out"&&h.type!==ln?v.delayLeave=(b,w,E)=>{const L=db(o,g);L[String(g.key)]=g,b[yi]=()=>{w(),b[yi]=void 0,delete p.delayedLeave,g=void 0},p.delayedLeave=()=>{E(),delete p.delayedLeave,g=void 0}}:g=void 0}else g&&(g=void 0);return c}}};function fb(e){let t=e[0];i
|
|||
|
|
* @vue/runtime-dom v3.5.25
|
|||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|||
|
|
* @license MIT
|
|||
|
|
**/let rh;const iv=typeof window<"u"&&window.trustedTypes;if(iv)try{rh=iv.createPolicy("vue",{createHTML:e=>e})}catch{}const Gb=rh?e=>rh.createHTML(e):e=>e,IT="http://www.w3.org/2000/svg",DT="http://www.w3.org/1998/Math/MathML",mi=typeof document<"u"?document:null,ov=mi&&mi.createElement("template"),zT={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,o)=>{const s=t==="svg"?mi.createElementNS(IT,e):t==="mathml"?mi.createElementNS(DT,e):r?mi.createElement(e,{is:r}):mi.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>mi.createTextNode(e),createComment:e=>mi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>mi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,o,s,c){const f=r?r.previousSibling:t.lastChild;if(s&&(s===c||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===c||!(s=s.nextSibling)););else{ov.innerHTML=Gb(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const d=ov.content;if(o==="svg"||o==="mathml"){const h=d.firstChild;for(;h.firstChild;)d.appendChild(h.firstChild);d.removeChild(h)}t.insertBefore(d,r)}return[f?f.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Ui="transition",zl="animation",ga=Symbol("_vtc"),Kb={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},FT=on({},cb,Kb),HT=e=>(e.displayName="Transition",e.props=FT,e),BT=HT((e,{slots:t})=>za(M_,WT(e),t)),Oo=(e,t=[])=>{Ze(e)?e.forEach(r=>r(...t)):e&&e(...t)},sv=e=>e?Ze(e)?e.some(t=>t.length>1):e.length>1:!1;function WT(e){const t={};for(const N in e)N in Kb||(t[N]=e[N]);if(e.css===!1)return t;const{name:r="v",type:o,duration:s,enterFromClass:c=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:d=`${r}-enter-to`,appearFromClass:h=c,appearActiveClass:p=f,appearToClass:g=d,leaveFromClass:v=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:w=`${r}-leave-to`}=e,E=qT(s),L=E&&E[0],P=E&&E[1],{onBeforeEnter:M,onEnter:R,onEnterCancelled:I,onLeave:_,onLeaveCancelled:$,onBeforeAppear:W=M,onAppear:ne=R,onAppearCancelled:ee=I}=t,Z=(N,O,C,k)=>{N._enterCancelled=k,Po(N,O?g:d),Po(N,O?p:f),C&&C()},G=(N,O)=>{N._isLeaving=!1,Po(N,v),Po(N,w),Po(N,b),O&&O()},j=N=>(O,C)=>{const k=N?ne:R,z=()=>Z(O,N,C);Oo(k,[O,z]),lv(()=>{Po(O,N?h:c),di(O,N?g:d),sv(k)||av(O,o,L,z)})};return on(t,{onBeforeEnter(N){Oo(M,[N]),di(N,c),di(N,f)},onBeforeAppear(N){Oo(W,[N]),di(N,h),di(N,p)},onEnter:j(!1),onAppear:j(!0),onLeave(N,O){N._isLeaving=!0;const C=()=>G(N,O);di(N,v),N._enterCancelled?(di(N,b),fv(N)):(fv(N),di(N,b)),lv(()=>{N._isLeaving&&(Po(N,v),di(N,w),sv(_)||av(N,o,P,C))}),Oo(_,[N,C])},onEnterCancelled(N){Z(N,!1,void 0,!0),Oo(I,[N])},onAppearCancelled(N){Z(N,!0,void 0,!0),Oo(ee,[N])},onLeaveCancelled(N){G(N),Oo($,[N])}})}function qT(e){if(e==null)return null;if(kt(e))return[bd(e.enter),bd(e.leave)];{const t=bd(e);return[t,t]}}function bd(e){return N0(e)}function di(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[ga]||(e[ga]=new Set)).add(t)}function Po(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[ga];r&&(r.delete(t),r.size||(e[ga]=void 0))}function lv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let jT=0;function av(e,t,r,o){const s=e._endId=++jT,c=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=UT(e,t);if(!f)return o();const p=f+"end";let g=0;const v=()=>{e.removeEventListener(p,b),c()},b=w=>{w.target===e&&++g>=h&&v()};setTimeout(()=>{g<h&&v()},d+1),e.addEventListener(p,b)}function UT(e,t){const r=window.getComputedStyle(e),o=E=>(r[E]||"").split(", "),s=o(`${Ui}Delay`),c=o(`${Ui}Duration`),f=cv(s,c),d=o(`${zl}Delay`),h=o(`${zl}Dur
|
|||
|
|
`).map(t=>yA(t)).filter(Rw)}function kA(e){return e.split(`
|
|||
|
|
`).map(t=>bA(t)).filter(Rw)}class SA{_encoded;_decoded;_decodedMemo;url;version;names=[];resolvedSources;constructor(t,r){this.map=t;const{mappings:o,names:s,sources:c}=t;this.version=t.version,this.names=s||[],this._encoded=o||"",this._decodedMemo=_A(),this.url=r,this.resolvedSources=(c||[]).map(f=>$w(f||"",r))}}function _A(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function TA(e,t){const r=pA(e,t);return r.column==null?null:r}const CA=/^[A-Za-z]:\//;function Fw(e=""){return e&&e.replace(/\\/g,"/").replace(CA,t=>t.toUpperCase())}const EA=/^[/\\]{2}/,AA=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,LA=/^[A-Za-z]:$/,Qv=/^\/([A-Za-z]:)?$/,MA=function(e){if(e.length===0)return".";e=Fw(e);const t=e.match(EA),r=xu(e),o=e[e.length-1]==="/";return e=Hw(e,!r),e.length===0?r?"/":o?"./":".":(o&&(e+="/"),LA.test(e)&&(e+="/"),t?r?`//${e}`:`//./${e}`:r&&!xu(e)?`/${e}`:e)},NA=function(...e){let t="";for(const r of e)if(r)if(t.length>0){const o=t[t.length-1]==="/",s=r[0]==="/";o&&s?t+=r.slice(1):t+=o||s?r:`/${r}`}else t+=r;return MA(t)};function OA(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const ey=function(...e){e=e.map(o=>Fw(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:OA();!s||s.length===0||(t=`${s}/${t}`,r=xu(s))}return t=Hw(t,!r),r&&!xu(t)?`/${t}`:t.length>0?t:"."};function Hw(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const xu=function(e){return AA.test(e)},af=function(e,t){const r=ey(e).replace(Qv,"$1").split("/"),o=ey(t).replace(Qv,"$1").split("/");if(o[0][1]===":"&&r[0][1]===":"&&r[0]!==o[0])return o.join("/");const s=[...r];for(const c of s){if(o[0]!==c)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")};function PA(e){let t=0;if(e.length===0)return`${t}`;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);t=(t<<5)-t+o,t=t&t}return`${t}`}function Bw(e,t,r,o,s){const c=af(t,e),f={id:RA(c,r),name:c,fullName:c,type:"suite",mode:"queued",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0,pool:o,viteEnvironment:s};return f.file=f,f}function RA(e,t){return PA(`${e}${t||""}`)}function Js(e){return e.type==="test"}function Ww(e){const t=[],r=pp(e);for(const o of r)if(Js(o))t.push(o);else for(const s of o.tasks)if(Js(s))t.push(s);else{const c=Ww(s);for(const f of c)t.push(f)}return t}function gp(e=[]){return pp(e).flatMap(t=>Js(t)?[t]:[t,...gp(t.tasks)])}function $A(e){const t=[e.name];let r=e;for(;r?.suite;)r=r.suite,r?.name&&t.unshift(r.name);return r!==e.file&&t.unshift(e.file.name),t}const ty="q",ny="s";function IA(){let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}const DA=Math.random.bind(Math),zA="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function FA(e=21){let t="",r=e;for(;r--;)t+=zA[DA()*64|0];return t}const HA=6e4,qw=e=>e,BA=qw,{clearTimeout:ry,setTimeout:WA}=globalThis;function qA(e,t){const{post:r,on:o,off:s=()=>{},eventNames:c=[],serialize:f=qw,deserialize:d=BA,resolver:h,bind:p="rpc",timeout:g=HA,proxify:v=!0}=t;let b=!1;const w=new Map;let E,L;async function P($,W,ne,ee){if(b)throw new Error(`[birpc] rpc is closed, cannot call "${$}"`);const Z={m:$,a:W,t:ty};ee&&(Z.o=!0);const G=async B=>r(f(B));if(ne){await G(Z);return}if(E)try{await E}finally{E=void 0}let{promise:j,resolve:N,reject:O}=IA();const C=FA();Z.i=C;let k;async function z(B=Z){return g>=0&&(k=WA(()=>{try{if(t.onTimeoutError?.call(L,$,W)!==!0)throw new Error(`[birpc] timeout on calling "${$}"`)}catch(ce){O(ce)}w.delete(C)},g),typeof k=="object"&&(k=k.unref?.())),w.set(C,{resolve:N,reject:O,timeoutId:k
|
|||
|
|
|
|||
|
|
b`.split(/\n/).length!=3?function(n){for(var i=0,a=[],l=n.length;i<=l;){var u=n.indexOf(`
|
|||
|
|
`,i);u==-1&&(u=n.length);var m=n.slice(i,n.charAt(u-1)=="\r"?u-1:u),y=m.indexOf("\r");y!=-1?(a.push(m.slice(0,y)),i+=y+1):(a.push(m),i=u+1)}return a}:function(n){return n.split(/\r\n?|\n/)},Ri=window.getSelection?function(n){try{return n.selectionStart!=n.selectionEnd}catch{return!1}}:function(n){var i;try{i=n.ownerDocument.selection.createRange()}catch{}return!i||i.parentElement()!=n?!1:i.compareEndPoints("StartToEnd",i)!=0},Ka=(function(){var n=k("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")})(),wr=null;function vf(n){if(wr!=null)return wr;var i=C(n,k("span","x")),a=i.getBoundingClientRect(),l=B(i,0,1).getBoundingClientRect();return wr=Math.abs(a.left-l.left)>1}var Qo={},xr={};function kr(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Qo[n]=i}function bo(n,i){xr[n]=i}function es(n){if(typeof n=="string"&&xr.hasOwnProperty(n))n=xr[n];else if(n&&typeof n.name=="string"&&xr.hasOwnProperty(n.name)){var i=xr[n.name];typeof i=="string"&&(i={name:i}),n=oe(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return es("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return es("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function ts(n,i){i=es(i);var a=Qo[i.name];if(!a)return ts(n,"text/plain");var l=a(n,i);if($i.hasOwnProperty(i.name)){var u=$i[i.name];for(var m in u)u.hasOwnProperty(m)&&(l.hasOwnProperty(m)&&(l["_"+m]=l[m]),l[m]=u[m])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var y in i.modeProps)l[y]=i.modeProps[y];return l}var $i={};function ns(n,i){var a=$i.hasOwnProperty(n)?$i[n]:$i[n]={};Y(i,a)}function Br(n,i){if(i===!0)return i;if(n.copyState)return n.copyState(i);var a={};for(var l in i){var u=i[l];u instanceof Array&&(u=u.concat([])),a[l]=u}return a}function al(n,i){for(var a;n.innerMode&&(a=n.innerMode(i),!(!a||a.mode==n));)i=a.state,n=a.mode;return a||{mode:n,state:i}}function rs(n,i,a){return n.startState?n.startState(i,a):!0}var $t=function(n,i,a){this.pos=this.start=0,this.string=n,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=a};$t.prototype.eol=function(){return this.pos>=this.string.length},$t.prototype.sol=function(){return this.pos==this.lineStart},$t.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},$t.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},$t.prototype.eat=function(n){var i=this.string.charAt(this.pos),a;if(typeof n=="string"?a=i==n:a=i&&(n.test?n.test(i):n(i)),a)return++this.pos,i},$t.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},$t.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},$t.prototype.skipToEnd=function(){this.pos=this.string.length},$t.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},$t.prototype.backUp=function(n){this.pos-=n},$t.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=re(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?re(this.string,this.lineStart,this.tabSize):0)},$t.prototype.indentation=function(){return re(this.string,null,this.tabSize)-(this.lineStart?re(this.string,this.lineStart,this.tabSize):0)},$t.prototype.match=function(n,i,a){if(typeof n=="string"){var l=function(y){return a?y.toLowerCase():y},u=this.string.substr(this.pos,n.length);if(l(u)==l(n))return i!==!1&&(this.pos+=n.length),!0}else{var m=this.string.slice(this.pos).match(n);return m&&m.index>0?null:(m&&i!==!1&&(this.pos+=m[0].length),m)}},$t.prototype.current=function(){return this.string.slice(this.start,this.pos)},$t.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},$t.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},$t.
|
|||
|
|
`?(we=H.appendChild(k("span",se[0]=="\r"?"␍":"","cm-invalidchar")),we.setAttribute("cm-text",se[0]),n.col+=1):(we=n.cm.options.specialCharPlaceholder(se[0]),we.setAttribute("cm-text",se[0]),h&&p<9?H.appendChild(k("span",[we])):H.appendChild(we),n.col+=1);n.map.push(n.pos,n.pos+1,we),n.pos++}}if(n.trailingSpace=x.charCodeAt(i.length-1)==32,a||l||u||T||m||y){var De=a||"";l&&(De+=l),u&&(De+=u);var Me=k("span",[H],De,m);if(y)for(var ze in y)y.hasOwnProperty(ze)&&ze!="style"&&ze!="class"&&Me.setAttribute(ze,y[ze]);return n.content.appendChild(Me)}n.content.appendChild(H)}}function tk(n,i){if(n.length>1&&!/ /.test(n))return n;for(var a=i,l="",u=0;u<n.length;u++){var m=n.charAt(u);m==" "&&a&&(u==n.length-1||n.charCodeAt(u+1)==32)&&(m=" "),l+=m,a=m==" "}return l}function nk(n,i){return function(a,l,u,m,y,x,S){u=u?u+" cm-force-border":"cm-force-border";for(var T=a.pos,H=T+l.length;;){for(var V=void 0,se=0;se<i.length&&(V=i[se],!(V.to>T&&V.from<=T));se++);if(V.to>=H)return n(a,l,u,m,y,x,S);n(a,l.slice(0,V.to-T),u,m,null,x,S),m=null,l=l.slice(V.to-T),T=V.to}}}function lg(n,i,a,l){var u=!l&&a.widgetNode;u&&n.map.push(n.pos,n.pos+i,u),!l&&n.cm.display.input.needsContentAttribute&&(u||(u=n.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",a.id)),u&&(n.cm.display.input.setUneditable(u),n.content.appendChild(u)),n.pos+=i,n.trailingSpace=!1}function rk(n,i,a){var l=n.markedSpans,u=n.text,m=0;if(!l){for(var y=1;y<a.length;y+=2)i.addToken(i,u.slice(m,m=a[y]),og(a[y+1],i.cm.options));return}for(var x=u.length,S=0,T=1,H="",V,se,te=0,pe,we,Te,Le,De;;){if(te==S){pe=we=Te=se="",De=null,Le=null,te=1/0;for(var Me=[],ze=void 0,Ye=0;Ye<l.length;++Ye){var Ue=l[Ye],st=Ue.marker;if(st.type=="bookmark"&&Ue.from==S&&st.widgetNode)Me.push(st);else if(Ue.from<=S&&(Ue.to==null||Ue.to>S||st.collapsed&&Ue.to==S&&Ue.from==S)){if(Ue.to!=null&&Ue.to!=S&&te>Ue.to&&(te=Ue.to,we=""),st.className&&(pe+=" "+st.className),st.css&&(se=(se?se+";":"")+st.css),st.startStyle&&Ue.from==S&&(Te+=" "+st.startStyle),st.endStyle&&Ue.to==te&&(ze||(ze=[])).push(st.endStyle,Ue.to),st.title&&((De||(De={})).title=st.title),st.attributes)for(var St in st.attributes)(De||(De={}))[St]=st.attributes[St];st.collapsed&&(!Le||xf(Le.marker,st)<0)&&(Le=Ue)}else Ue.from>S&&te>Ue.from&&(te=Ue.from)}if(ze)for(var tn=0;tn<ze.length;tn+=2)ze[tn+1]==te&&(we+=" "+ze[tn]);if(!Le||Le.from==S)for(var Ot=0;Ot<Me.length;++Ot)lg(i,0,Me[Ot]);if(Le&&(Le.from||0)==S){if(lg(i,(Le.to==null?x+1:Le.to)-S,Le.marker,Le.from==null),Le.to==null)return;Le.to==S&&(Le=!1)}}if(S>=x)break;for(var qn=Math.min(x,te);;){if(H){var Cn=S+H.length;if(!Le){var Ut=Cn>qn?H.slice(0,qn-S):H;i.addToken(i,Ut,V?V+pe:pe,Te,S+Ut.length==te?we:"",se,De)}if(Cn>=qn){H=H.slice(qn-S),S=qn;break}S=Cn,Te=""}H=u.slice(m,m=a[T++]),V=og(a[T++],i.cm.options)}}}function ag(n,i,a){this.line=i,this.rest=K1(i),this.size=this.rest?A(xe(this.rest))-a+1:1,this.node=this.text=null,this.hidden=Ii(n,i)}function tc(n,i,a){for(var l=[],u,m=i;m<a;m=u){var y=new ag(n.doc,qe(n.doc,m),m);u=m+y.size,l.push(y)}return l}var ss=null;function ik(n){ss?ss.ops.push(n):n.ownsGroup=ss={ops:[n],delayedCallbacks:[]}}function ok(n){var i=n.delayedCallbacks,a=0;do{for(;a<i.length;a++)i[a].call(null);for(var l=0;l<n.ops.length;l++){var u=n.ops[l];if(u.cursorActivityHandlers)for(;u.cursorActivityCalled<u.cursorActivityHandlers.length;)u.cursorActivityHandlers[u.cursorActivityCalled++].call(null,u.cm)}}while(a<i.length)}function sk(n,i){var a=n.ownsGroup;if(a)try{ok(a)}finally{ss=null,i(a)}}var dl=null;function Jt(n,i){var a=ri(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),u;ss?u=ss.delayedCallbacks:dl?u=dl:(u=dl=[],setTimeout(lk,0));for(var m=function(x){u.push(function(){return a[x].apply(null,l)})},y=0;y<a.length;++y)m(y)}}function lk(){var n=dl;dl=null;for(var i=0;i<n.length;++i)n[i]()}function cg(n,i,a,l){for(var u=0;u<i.changes.length;u++){var m=i.changes[u];m=="text"?ck(n,i):m=="gutter"?fg(n,i,a,l):m=="class"?Tf(n,i):m=="widget"&&uk(n,i,l)}i.changes=null}function hl(n){return n.node==n.text&&(n.node=k("div",null,null
|
|||
|
|
top: `+ze+"px; width: "+(Ye??S-Me)+`px;
|
|||
|
|
height: `+(Ue-ze)+"px"))}function V(Me,ze,Ye){var Ue=qe(u,Me),st=Ue.text.length,St,tn;function Ot(Ut,En){return ic(n,fe(Me,Ut),"div",Ue,En)}function qn(Ut,En,sn){var Kt=Cg(n,Ue,null,Ut),Vt=En=="ltr"==(sn=="after")?"left":"right",It=sn=="after"?Kt.begin:Kt.end-(/\s/.test(Ue.text.charAt(Kt.end-1))?2:1);return Ot(It,Vt)[Vt]}var Cn=lt(Ue,u.direction);return Fn(Cn,ze||0,Ye??st,function(Ut,En,sn,Kt){var Vt=sn=="ltr",It=Ot(Ut,Vt?"left":"right"),An=Ot(En-1,Vt?"right":"left"),ks=ze==null&&Ut==0,ji=Ye==null&&En==st,fn=Kt==0,Ur=!Cn||Kt==Cn.length-1;if(An.top-It.top<=3){var nn=(T?ks:ji)&&fn,cd=(T?ji:ks)&&Ur,ui=nn?x:(Vt?It:An).left,Ao=cd?S:(Vt?An:It).right;H(ui,It.top,Ao-ui,It.bottom)}else{var Lo,yn,Ss,ud;Vt?(Lo=T&&ks&&fn?x:It.left,yn=T?S:qn(Ut,sn,"before"),Ss=T?x:qn(En,sn,"after"),ud=T&&ji&&Ur?S:An.right):(Lo=T?qn(Ut,sn,"before"):x,yn=!T&&ks&&fn?S:It.right,Ss=!T&&ji&&Ur?x:An.left,ud=T?qn(En,sn,"after"):S),H(Lo,It.top,yn-Lo,It.bottom),It.bottom<An.top&&H(x,It.bottom,null,An.top),H(Ss,An.top,ud-Ss,An.bottom)}(!St||sc(It,St)<0)&&(St=It),sc(An,St)<0&&(St=An),(!tn||sc(It,tn)<0)&&(tn=It),sc(An,tn)<0&&(tn=An)}),{start:St,end:tn}}var se=i.from(),te=i.to();if(se.line==te.line)V(se.line,se.ch,te.ch);else{var pe=qe(u,se.line),we=qe(u,te.line),Te=Sr(pe)==Sr(we),Le=V(se.line,se.ch,Te?pe.text.length+1:null).end,De=V(te.line,Te?0:null,te.ch).start;Te&&(Le.top<De.top-2?(H(Le.right,Le.top,null,Le.bottom),H(x,De.top,De.left,De.bottom)):H(Le.right,Le.top,De.left-Le.right,Le.bottom)),Le.bottom<De.top&&H(x,Le.bottom,null,De.top)}a.appendChild(m)}function Df(n){if(n.state.focused){var i=n.display;clearInterval(i.blinker);var a=!0;i.cursorDiv.style.visibility="",n.options.cursorBlinkRate>0?i.blinker=setInterval(function(){n.hasFocus()||us(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function Mg(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||Ff(n))}function zf(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&us(n))},100)}function Ff(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(Pt(n,"focus",n,i),n.state.focused=!0,Se(n.display.wrapper,"CodeMirror-focused"),!n.curOp&&n.display.selForContextMenu!=n.doc.sel&&(n.display.input.reset(),g&&setTimeout(function(){return n.display.input.reset(!0)},20)),n.display.input.receivedFocus()),Df(n))}function us(n,i){n.state.delayingBlurEvent||(n.state.focused&&(Pt(n,"blur",n,i),n.state.focused=!1,N(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function lc(n){for(var i=n.display,a=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),u=i.lineDiv.getBoundingClientRect().top,m=0,y=0;y<i.view.length;y++){var x=i.view[y],S=n.options.lineWrapping,T=void 0,H=0;if(!x.hidden){if(u+=x.line.height,h&&p<8){var V=x.node.offsetTop+x.node.offsetHeight;T=V-a,a=V}else{var se=x.node.getBoundingClientRect();T=se.bottom-se.top,!S&&x.text.firstChild&&(H=x.text.firstChild.getBoundingClientRect().right-se.left-1)}var te=x.line.height-T;if((te>.005||te<-.005)&&(u<l&&(m-=te),Qn(x.line,T),Ng(x.line),x.rest))for(var pe=0;pe<x.rest.length;pe++)Ng(x.rest[pe]);if(H>n.display.sizerWidth){var we=Math.ceil(H/cs(n.display));we>n.display.maxLineLength&&(n.display.maxLineLength=we,n.display.maxLine=x.line,n.display.maxLineChanged=!0)}}}Math.abs(m)>2&&(i.scroller.scrollTop+=m)}function Ng(n){if(n.widgets)for(var i=0;i<n.widgets.length;++i){var a=n.widgets[i],l=a.node.parentNode;l&&(a.height=l.offsetHeight)}}function ac(n,i,a){var l=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;l=Math.floor(l-nc(n));var u=a&&a.bottom!=null?a.bottom:l+n.wrapper.clientHeight,m=U(i,l),y=U(i,u);if(a&&a.ensure){var x=a.ensure.from.line,S=a.ensure.to.line;x<m?(m=x,y=U(i,si(qe(i,x))+n.wrapper.clientHeight)):Math.min(S,i.lastLine())>=y&&(m=U(i,si(qe(i,S))-
|
|||
|
|
top: `+(i.top-a.viewOffset-nc(n.display))+`px;
|
|||
|
|
height: `+(i.bottom-i.top+qr(n)+a.barHeight)+`px;
|
|||
|
|
left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");n.display.lineSpace.appendChild(y),y.scrollIntoView(u),n.display.lineSpace.removeChild(y)}}}function _k(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?fe(i.line,i.ch+1,"before"):i,i=i.ch?fe(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var m=0;m<5;m++){var y=!1,x=_r(n,i),S=!a||a==i?x:_r(n,a);u={left:Math.min(x.left,S.left),top:Math.min(x.top,S.top)-l,right:Math.max(x.left,S.left),bottom:Math.max(x.bottom,S.bottom)+l};var T=Hf(n,u),H=n.doc.scrollTop,V=n.doc.scrollLeft;if(T.scrollTop!=null&&(yl(n,T.scrollTop),Math.abs(n.doc.scrollTop-H)>1&&(y=!0)),T.scrollLeft!=null&&(_o(n,T.scrollLeft),Math.abs(n.doc.scrollLeft-V)>1&&(y=!0)),!y)break}return u}function Tk(n,i){var a=Hf(n,i);a.scrollTop!=null&&yl(n,a.scrollTop),a.scrollLeft!=null&&_o(n,a.scrollLeft)}function Hf(n,i){var a=n.display,l=as(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,m=Ef(n),y={};i.bottom-i.top>m&&(i.bottom=i.top+m);var x=n.doc.height+Cf(a),S=i.top<l,T=i.bottom>x-l;if(i.top<u)y.scrollTop=S?0:i.top;else if(i.bottom>u+m){var H=Math.min(i.top,(T?x:i.bottom)-m);H!=u&&(y.scrollTop=H)}var V=n.options.fixedGutter?0:a.gutters.offsetWidth,se=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-V,te=wo(n)-a.gutters.offsetWidth,pe=i.right-i.left>te;return pe&&(i.right=i.left+te),i.left<10?y.scrollLeft=0:i.left<se?y.scrollLeft=Math.max(0,i.left+V-(pe?0:10)):i.right>te+se-3&&(y.scrollLeft=i.right+(pe?0:10)-te),y}function Bf(n,i){i!=null&&(cc(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function fs(n){cc(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function vl(n,i,a){(i!=null||a!=null)&&cc(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function Ck(n,i){cc(n),n.curOp.scrollToPos=i}function cc(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=_g(n,i.from),l=_g(n,i.to);Og(n,a,l,i.margin)}}function Og(n,i,a,l){var u=Hf(n,{left:Math.min(i.left,a.left),top:Math.min(i.top,a.top)-l,right:Math.max(i.right,a.right),bottom:Math.max(i.bottom,a.bottom)+l});vl(n,u.scrollLeft,u.scrollTop)}function yl(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||qf(n,{top:i}),Pg(n,i,!0),s&&qf(n),xl(n,100))}function Pg(n,i,a){i=Math.max(0,Math.min(n.display.scroller.scrollHeight-n.display.scroller.clientHeight,i)),!(n.display.scroller.scrollTop==i&&!a)&&(n.doc.scrollTop=i,n.display.scrollbars.setScrollTop(i),n.display.scroller.scrollTop!=i&&(n.display.scroller.scrollTop=i))}function _o(n,i,a,l){i=Math.max(0,Math.min(i,n.display.scroller.scrollWidth-n.display.scroller.clientWidth)),!((a?i==n.doc.scrollLeft:Math.abs(n.doc.scrollLeft-i)<2)&&!l)&&(n.doc.scrollLeft=i,zg(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function bl(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+Cf(n.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:n.options.fixedGutter?a:0,docHeight:l,scrollHeight:l+qr(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var To=function(n,i,a){this.cm=a;var l=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=u.tabIndex=-1,n(l),n(u),Xe(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),Xe(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};To.prototype.update=function(n){var i=n.scrollWidth>n.clientWidth+1,a=n.scrollHeight>n.clientHeight+1,l=n.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var u=n.viewHeight-(i?l:0);this.vert.firs
|
|||
|
|
`},setDirection:en(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&Wk(this.cm))})}),Tn.prototype.eachLine=Tn.prototype.iter;var gm=0;function tS(n){var i=this;if(mm(i),!(Rt(i,n)||li(i.display,n))){cn(n),h&&(gm=+new Date);var a=ko(i,n,!0),l=n.dataTransfer.files;if(!(!a||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var u=l.length,m=Array(u),y=0,x=function(){++y==u&&Qt(i,function(){a=tt(i.doc,a);var te={from:a,to:a,text:i.doc.splitLines(m.filter(function(pe){return pe!=null}).join(i.doc.lineSeparator())),origin:"paste"};gs(i.doc,te),em(i.doc,Fi(tt(i.doc,a),tt(i.doc,Hi(te))))})()},S=function(te,pe){if(i.options.allowDropFileTypes&&ae(i.options.allowDropFileTypes,te.type)==-1){x();return}var we=new FileReader;we.onerror=function(){return x()},we.onload=function(){var Te=we.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Te)){x();return}m[pe]=Te,x()},we.readAsText(te)},T=0;T<l.length;T++)S(l[T],T);else{if(i.state.draggingText&&i.doc.sel.contains(a)>-1){i.state.draggingText(n),setTimeout(function(){return i.display.input.focus()},20);return}try{var H=n.dataTransfer.getData("Text");if(H){var V;if(i.state.draggingText&&!i.state.draggingText.copy&&(V=i.listSelections()),gc(i.doc,Fi(a,a)),V)for(var se=0;se<V.length;++se)ms(i.doc,"",V[se].anchor,V[se].head,"drag");i.replaceSelection(H,"around","paste"),i.display.input.focus()}}catch{}}}}function nS(n,i){if(h&&(!n.state.draggingText||+new Date-gm<100)){Oi(i);return}if(!(Rt(n,i)||li(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!L)){var a=k("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",E&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),E&&a.parentNode.removeChild(a)}}function rS(n,i){var a=ko(n,i);if(a){var l=document.createDocumentFragment();If(n,a,l),n.display.dragCursor||(n.display.dragCursor=k("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),n.display.lineSpace.insertBefore(n.display.dragCursor,n.display.cursorDiv)),C(n.display.dragCursor,l)}}function mm(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function vm(n){if(document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),a=[],l=0;l<i.length;l++){var u=i[l].CodeMirror;u&&a.push(u)}a.length&&a[0].operation(function(){for(var m=0;m<a.length;m++)n(a[m])})}}var ym=!1;function iS(){ym||(oS(),ym=!0)}function oS(){var n;Xe(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,vm(sS)},100))}),Xe(window,"blur",function(){return vm(us)})}function sS(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var qi={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"},Ml=0;Ml<10;Ml++)qi[Ml+48]=qi[Ml+96]=String(Ml);for(var yc=65;yc<=90;yc++)qi[yc]=String.fromCharCode(yc);for(var Nl=1;Nl<=12;Nl++)qi[Nl+111]=qi[Nl+63235]="F"+Nl;var ci={};ci.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"},ci.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"
|
|||
|
|
`,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function km(n,i){var a=qe(n.doc,i),l=Sr(a);return l!=a&&(i=A(l)),td(!0,n,l,i,1)}function uS(n,i){var a=qe(n.doc,i),l=G1(a);return l!=a&&(i=A(l)),td(!0,n,a,i,-1)}function Sm(n,i){var a=km(n,i.line),l=qe(n.doc,a.line),u=lt(l,n.doc.direction);if(!u||u[0].level==0){var m=Math.max(a.ch,l.text.search(/\S/)),y=i.line==a.line&&i.ch<=m&&i.ch;return fe(a.line,y?0:m,a.sticky)}return a}function wc(n,i,a){if(typeof i=="string"&&(i=Ol[i],!i))return!1;n.display.input.ensurePolled();var l=n.display.shift,u=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),a&&(n.display.shift=!1),u=i(n)!=q}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function fS(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var u=ys(i,n.state.keyMaps[l],a,n);if(u)return u}return n.options.extraKeys&&ys(i,n.options.extraKeys,a,n)||ys(i,n.options.keyMap,a,n)}var dS=new le;function Pl(n,i,a,l){var u=n.state.keySeq;if(u){if(bm(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:dS.set(50,function(){n.state.keySeq==u&&(n.state.keySeq=null,n.display.input.reset())}),_m(n,u+" "+i,a,l))return!0}return _m(n,i,a,l)}function _m(n,i,a,l){var u=fS(n,i,l);return u=="multi"&&(n.state.keySeq=i),u=="handled"&&Jt(n,"keyHandled",n,i,a),(u=="handled"||u=="multi")&&(cn(a),Df(n)),!!u}function Tm(n,i){var a=xm(i,!0);return a?i.shiftKey&&!n.state.keySeq?Pl(n,"Shift-"+a,i,function(l){return wc(n,l,!0)})||Pl(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return wc(n,l)}):Pl(n,a,i,function(l){return wc(n,l)}):!1}function hS(n,i,a){return Pl(n,"'"+a+"'",i,function(l){return wc(n,l,!0)})}var nd=null;function Cm(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=be(je(i)),!Rt(i,n))){h&&p<11&&n.keyCode==27&&(n.returnValue=!1);var a=n.keyCode;i.display.shift=a==16||n.shiftKey;var l=Tm(i,n);E&&(nd=l?a:null,!l&&a==88&&!Ka&&($?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),s&&!$&&!l&&a==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&pS(i)}}function pS(n){var i=n.display.lineDiv;Se(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&(N(i,"CodeMirror-crosshair"),an(document,"keyup",a),an(document,"mouseover",a))}Xe(document,"keyup",a),Xe(document,"mouseover",a)}function Em(n){n.keyCode==16&&(this.doc.sel.shift=!1),Rt(this,n)}function Am(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(li(i.display,n)||Rt(i,n)||n.ctrlKey&&!n.altKey||$&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(E&&a==nd){nd=null,cn(n);return}if(!(E&&(!n.which||n.which<10)&&Tm(i,n))){var u=String.fromCharCode(l??a);u!="\b"&&(hS(i,n,u)||i.display.input.onKeyPress(n))}}}var gS=400,rd=function(n,i,a){this.time=n,this.pos=i,this.button=a};rd.prototype.compare=function(n,i,a){return this.time+gS>n&&Ie(i,this.pos)==0&&a==this.button};var Rl,$l;function mS(n,i){var a=+new Date;return $l&&$l.compare(a,n,i)?(Rl=$l=null,"triple"):Rl&&Rl.compare(a,n,i)?($l=new rd(a,n,i),Rl=null,"double"):(Rl=new rd(a,n,i),$l=null,"single")}function Lm(n){var i=this,a=i.display;if(!(Rt(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,li(a,n)){g||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!id(i,n)){var l=ko(i,n),u=br(n),m=l?mS(l,u):"single";Pe(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&vS(i,u,l,m,n))&&(u==1?l?bS(i,l,m,n):sl(n)==a.scroller&&cn(n):u==2?(l&&pc(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(G?i.display.input.onContextMenu(n):zf(i)))}}}function vS(n,i,a,l,u){var m="Click";return l=="double"?m="Double"+m:l=="triple"&&(m="Triple"+m),m=(i==1?"Left":i==2?"Middle":"Right")+m,Pl(n,wm(m,u),u,function(y){if(typeof y=="string"&&(y=Ol[y]),!y)return!1;var x=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),x=y(n,a)!=q}finally{n.state.suppressEdits=!1}return x})}function yS(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==n
|
|||
|
|
`)==i){if(l.ranges.length%Cr.text.length==0){T=[];for(var H=0;H<Cr.text.length;H++)T.push(m.splitLines(Cr.text[H]))}}else S.length==l.ranges.length&&n.options.pasteLinesPerSelection&&(T=ye(S,function(Le){return[Le]}));for(var V=n.curOp.updateInput,se=l.ranges.length-1;se>=0;se--){var te=l.ranges[se],pe=te.from(),we=te.to();te.empty()&&(a&&a>0?pe=fe(pe.line,pe.ch-a):n.state.overwrite&&!x?we=fe(we.line,Math.min(qe(m,we.line).text.length,we.ch+xe(S).length)):x&&Cr&&Cr.lineWise&&Cr.text.join(`
|
|||
|
|
`)==S.join(`
|
|||
|
|
`)&&(pe=we=fe(pe.line,0)));var Te={from:pe,to:we,text:T?T[se%T.length]:S,origin:u||(x?"paste":n.state.cutIncoming>y?"cut":"+input")};gs(n.doc,Te),Jt(n,"inputRead",n,Te)}i&&!x&&Im(n,i),fs(n),n.curOp.updateInput<2&&(n.curOp.updateInput=V),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function $m(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&Wn(i,function(){return sd(i,a,0,null,"paste")}),!0}function Im(n,i){if(!(!n.options.electricChars||!n.options.smartIndent))for(var a=n.doc.sel,l=a.ranges.length-1;l>=0;l--){var u=a.ranges[l];if(!(u.head.ch>100||l&&a.ranges[l-1].head.line==u.head.line)){var m=n.getModeAt(u.head),y=!1;if(m.electricChars){for(var x=0;x<m.electricChars.length;x++)if(i.indexOf(m.electricChars.charAt(x))>-1){y=Il(n,u.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(qe(n.doc,u.head.line).text.slice(0,u.head.ch))&&(y=Il(n,u.head.line,"smart"));y&&Jt(n,"electricInput",n,u.head.line)}}}function Dm(n){for(var i=[],a=[],l=0;l<n.doc.sel.ranges.length;l++){var u=n.doc.sel.ranges[l].head.line,m={anchor:fe(u,0),head:fe(u+1,0)};a.push(m),i.push(n.getRange(m.anchor,m.head))}return{text:i,ranges:a}}function ld(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function zm(){var n=k("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=k("div",[n],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return g?n.style.width="1000px":n.setAttribute("wrap","off"),R&&(n.style.border="1px solid black"),i}function AS(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){Pe(this).focus(),this.display.input.focus()},setOption:function(l,u){var m=this.options,y=m[l];m[l]==u&&l!="mode"||(m[l]=u,i.hasOwnProperty(l)&&Qt(this,i[l])(this,u,y),Pt(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,u){this.state.keyMaps[u?"push":"unshift"](bc(l))},removeKeyMap:function(l){for(var u=this.state.keyMaps,m=0;m<u.length;++m)if(u[m]==l||u[m].name==l)return u.splice(m,1),!0},addOverlay:vn(function(l,u){var m=l.token?l:n.getMode(this.options,l);if(m.startState)throw new Error("Overlays may not be stateful.");J(this.state.overlays,{mode:m,modeSpec:l,opaque:u&&u.opaque,priority:u&&u.priority||0},function(y){return y.priority}),this.state.modeGen++,_n(this)}),removeOverlay:vn(function(l){for(var u=this.state.overlays,m=0;m<u.length;++m){var y=u[m].modeSpec;if(y==l||typeof l=="string"&&y.name==l){u.splice(m,1),this.state.modeGen++,_n(this);return}}}),indentLine:vn(function(l,u,m){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),me(this.doc,l)&&Il(this,l,u,m)}),indentSelection:vn(function(l){for(var u=this.doc.sel.ranges,m=-1,y=0;y<u.length;y++){var x=u[y];if(x.empty())x.head.line>m&&(Il(this,x.head.line,l,!0),m=x.head.line,y==this.doc.sel.primIndex&&fs(this));else{var S=x.from(),T=x.to(),H=Math.max(m,S.line);m=Math.min(this.lastLine(),T.line-(T.ch?0:1))+1;for(var V=H;V<m;++V)Il(this,V,l);var se=this.doc.sel.ranges;S.ch==0&&u.length==se.length&&se[y].from().ch>0&&Jf(this.doc,y,new gt(S,se[y].to()),Q)}}}),getTokenAt:function(l,u){return Kp(this,l,u)},getLineTokens:function(l,u){return Kp(this,fe(l),u,!0)},getTokenTypeAt:function(l){l=tt(this.doc,l);var u=Up(this,qe(this.doc,l.line)),m=0,y=(u.length-1)/2,x=l.ch,S;if(x==0)S=u[2];else for(;;){var T=m+y>>1;if((T?u[T*2-1]:0)>=x)y=T;else if(u[T*2+1]<x)m=T+1;else{S=u[T*2+2];break}}var H=S?S.indexOf("overlay "):-1;return H<0?S:H==0?null:S.slice(0,H-1)},getModeAt:function(l){var u=this.doc.mode;return u.innerMode?n.innerMode(u,this.getTokenAt(l).state).mode:u},getHelper:function(l,u){return this.getHelpers(l,u)[0]},getHelpers:function(l,u){var m=[];if(!a.hasOwnProperty(u))return m;var y=a[u],x=this.getModeAt(l);if(typeof x[u]=="string"
|
|||
|
|
`,Te=ct(we,te)?"w":se&&we==`
|
|||
|
|
`?"n":!se||/\s/.test(we)?null:"p";if(se&&!pe&&!Te&&(Te="s"),V&&V!=Te){a<0&&(a=1,H(),i.sticky="after");break}if(Te&&(V=Te),a>0&&!H(!pe))break}var Le=mc(n,i,m,y,!0);return pt(m,Le)&&(Le.hitSide=!0),Le}function Fm(n,i,a,l){var u=n.doc,m=i.left,y;if(l=="page"){var x=Math.min(n.display.wrapper.clientHeight,Pe(n).innerHeight||u(n).documentElement.clientHeight),S=Math.max(x-.5*as(n.display),3);y=(a>0?i.bottom:i.top)+a*S}else l=="line"&&(y=a>0?i.bottom+3:i.top-3);for(var T;T=Nf(n,m,y),!!T.outside;){if(a<0?y<=0:y>=u.height){T.hitSide=!0;break}y+=a*5}return T}var yt=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new le,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};yt.prototype.init=function(n){var i=this,a=this,l=a.cm,u=a.div=n.lineDiv;u.contentEditable=!0,ld(u,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function m(x){for(var S=x.target;S;S=S.parentNode){if(S==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(S.className))break}return!1}Xe(u,"paste",function(x){!m(x)||Rt(l,x)||$m(x,l)||p<=11&&setTimeout(Qt(l,function(){return i.updateFromDOM()}),20)}),Xe(u,"compositionstart",function(x){i.composing={data:x.data,done:!1}}),Xe(u,"compositionupdate",function(x){i.composing||(i.composing={data:x.data,done:!1})}),Xe(u,"compositionend",function(x){i.composing&&(x.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Xe(u,"touchstart",function(){return a.forceCompositionEnd()}),Xe(u,"input",function(){i.composing||i.readFromDOMSoon()});function y(x){if(!(!m(x)||Rt(l,x))){if(l.somethingSelected())kc({lineWise:!1,text:l.getSelections()}),x.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var S=Dm(l);kc({lineWise:!0,text:S.text}),x.type=="cut"&&l.operation(function(){l.setSelections(S.ranges,0,Q),l.replaceSelection("",null,"cut")})}else return;if(x.clipboardData){x.clipboardData.clearData();var T=Cr.text.join(`
|
|||
|
|
`);if(x.clipboardData.setData("Text",T),x.clipboardData.getData("Text")==T){x.preventDefault();return}}var H=zm(),V=H.firstChild;ld(V),l.display.lineSpace.insertBefore(H,l.display.lineSpace.firstChild),V.value=Cr.text.join(`
|
|||
|
|
`);var se=be(Fe(u));Ae(V),setTimeout(function(){l.display.lineSpace.removeChild(H),se.focus(),se==u&&a.showPrimarySelection()},50)}}Xe(u,"copy",y),Xe(u,"cut",y)},yt.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},yt.prototype.prepareSelection=function(){var n=Lg(this.cm,!1);return n.focus=be(Fe(this.div))==this.div,n},yt.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},yt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},yt.prototype.showPrimarySelection=function(){var n=this.getSelection(),i=this.cm,a=i.doc.sel.primary(),l=a.from(),u=a.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||u.line<i.display.viewFrom){n.removeAllRanges();return}var m=Sc(i,n.anchorNode,n.anchorOffset),y=Sc(i,n.focusNode,n.focusOffset);if(!(m&&!m.bad&&y&&!y.bad&&Ie(is(m,y),l)==0&&Ie(Sn(m,y),u)==0)){var x=i.display.view,S=l.line>=i.display.viewFrom&&Hm(i,l)||{node:x[0].measure.map[2],offset:0},T=u.line<i.display.viewTo&&Hm(i,u);if(!T){var H=x[x.length-1].measure,V=H.maps?H.maps[H.maps.length-1]:H.map;T={node:V[V.length-1],offset:V[V.length-2]-V[V.length-3]}}if(!S||!T){n.removeAllRanges();return}var se=n.rangeCount&&n.getRangeAt(0),te;try{te=B(S.node,S.offset,T.offset,T.node)}catch{}te&&(!s&&i.state.focused?(n.collapse(S.node,S.offset),te.collapsed||(n.removeAllRanges(),n.addRange(te))):(n.removeAllRanges(),n.addRange(te)),se&&n.anchorNode==null?n.addRange(se):s&&this.startGracePeriod()),this.rememberSelection()}},yt.prototype.startGracePeriod=function(){var n=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){n.gracePeriod=!1,n.selectionChanged()&&n.cm.operation(function(){return n.cm.curOp.selectionChanged=!0})},20)},yt.prototype.showMultipleSelections=function(n){C(this.cm.display.cursorDiv,n.cursors),C(this.cm.display.selectionDiv,n.selection)},yt.prototype.rememberSelection=function(){var n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset},yt.prototype.selectionInEditor=function(){var n=this.getSelection();if(!n.rangeCount)return!1;var i=n.getRangeAt(0).commonAncestorContainer;return ce(this.div,i)},yt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||be(Fe(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},yt.prototype.blur=function(){this.div.blur()},yt.prototype.getField=function(){return this.div},yt.prototype.supportsTouch=function(){return!0},yt.prototype.receivedFocus=function(){var n=this,i=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):Wn(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function a(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,a))}this.polling.set(this.cm.options.pollInterval,a)},yt.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},yt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var n=this.getSelection(),i=this.cm;if(I&&b&&this.cm.display.gutterSpecs.length&&LS(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=Sc(i,n.anchorNode,n.anchorOffset),l=Sc(i,n.focusNode,n.focusOffset);a&&l&&Wn(i,function(){un(i.doc,Fi(a,l),Q),(a.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},yt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var n=this.cm,i=n.display,a=n.doc.sel.primary(),l=a.from(),u=a.to();if(l.ch==0&&l.line>n.firstLine()&&(l=fe(l.line-1,qe(n.doc,l.line-1).length)),u.ch==q
|
|||
|
|
`),Ae(u))}else return;y.type=="cut"&&(l.state.cutIncoming=+new Date)}}Xe(u,"cut",m),Xe(u,"copy",m),Xe(n.scroller,"paste",function(y){if(!(li(n,y)||Rt(l,y))){if(!u.dispatchEvent){l.state.pasteIncoming=+new Date,a.focus();return}var x=new Event("paste");x.clipboardData=y.clipboardData,u.dispatchEvent(x)}}),Xe(n.lineSpace,"selectstart",function(y){li(n,y)||cn(y)}),Xe(u,"compositionstart",function(){var y=l.getCursor("from");a.composing&&a.composing.range.clear(),a.composing={start:y,range:l.markText(y,l.getCursor("to"),{className:"CodeMirror-composing"})}}),Xe(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Wt.prototype.createField=function(n){this.wrapper=zm(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;ld(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Wt.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Wt.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=Lg(n);if(n.options.moveInputWithCursor){var u=_r(n,a.sel.primary().head,"div"),m=i.wrapper.getBoundingClientRect(),y=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,u.top+y.top-m.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,u.left+y.left-m.left))}return l},Wt.prototype.showSelection=function(n){var i=this.cm,a=i.display;C(a.cursorDiv,n.cursors),C(a.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},Wt.prototype.reset=function(n){if(!(this.contextMenuPending||this.composing&&n)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var a=i.getSelection();this.textarea.value=a,i.state.focused&&Ae(this.textarea),h&&p>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",h&&p>=9&&(this.hasSelection=null));this.resetting=!1}},Wt.prototype.getField=function(){return this.textarea},Wt.prototype.supportsTouch=function(){return!1},Wt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!_||be(Fe(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Wt.prototype.blur=function(){this.textarea.blur()},Wt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Wt.prototype.receivedFocus=function(){this.slowPoll()},Wt.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Wt.prototype.fastPoll=function(){var n=!1,i=this;i.pollingFast=!0;function a(){var l=i.poll();!l&&!n?(n=!0,i.polling.set(60,a)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,a)},Wt.prototype.poll=function(){var n=this,i=this.cm,a=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||Ri(a)&&!l&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var u=a.value;if(u==l&&!i.somethingSelected())return!1;if(h&&p>=9&&this.hasSelection===u||$&&/[\uf700-\uf7ff]/.test(u))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var m=u.charCodeAt(0);if(m==8203&&!l&&(l=""),m==8666)return this.reset(),this.cm.execCommand("undo")}for(var y=0,x=Math.min(l.length,u.length);y<x&&l.charCodeAt(y)==u.charCodeAt(y);)++y;return Wn(i,function(){sd(i,u.slice(y),l.length-y,null,n.composing?"*compose":null),u.length>1e3||u.indexOf(`
|
|||
|
|
`)>-1?a.value=n.prevInput="":n.prevInput=u,n.composing&&(n.composing.range.clear(),n.composing.range=i.markText(n.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Wt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Wt.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},Wt.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,u=i.textarea;i.contextMenuPending&&i.contextMenuPending();var m=ko(a,n),y=l.scroller.scrollTop;if(!m||E)return;var x=a.options.resetSelectionOnContextMenu;x&&a.doc.sel.contains(m)==-1&&Qt(a,un)(a.doc,Fi(m),Q);var S=u.style.cssText,T=i.wrapper.style.cssText,H=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|||
|
|
top: `+(n.clientY-H.top-5)+"px; left: "+(n.clientX-H.left-5)+`px;
|
|||
|
|
z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|||
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var V;g&&(V=u.ownerDocument.defaultView.scrollY),l.input.focus(),g&&u.ownerDocument.defaultView.scrollTo(null,V),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=te,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function se(){if(u.selectionStart!=null){var we=a.somethingSelected(),Te=""+(we?u.value:"");u.value="⇚",u.value=Te,i.prevInput=we?"":"",u.selectionStart=1,u.selectionEnd=Te.length,l.selForContextMenu=a.doc.sel}}function te(){if(i.contextMenuPending==te&&(i.contextMenuPending=!1,i.wrapper.style.cssText=T,u.style.cssText=S,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=y),u.selectionStart!=null)){(!h||h&&p<9)&&se();var we=0,Te=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput==""?Qt(a,om)(a):we++<10?l.detectingSelectAll=setTimeout(Te,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(Te,200)}}if(h&&p>=9&&se(),G){Oi(n);var pe=function(){an(window,"mouseup",pe),setTimeout(te,20)};Xe(window,"mouseup",pe)}else setTimeout(te,50)},Wt.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Wt.prototype.setUneditable=function(){},Wt.prototype.needsContentAttribute=!1;function OS(n,i){if(i=i?Y(i):{},i.value=n.value,!i.tabindex&&n.tabIndex&&(i.tabindex=n.tabIndex),!i.placeholder&&n.placeholder&&(i.placeholder=n.placeholder),i.autofocus==null){var a=be(Fe(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=x.getValue()}var u;if(n.form&&(Xe(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var m=n.form;u=m.submit;try{var y=m.submit=function(){l(),m.submit=u,m.submit(),m.submit=y}}catch{}}i.finishInit=function(S){S.save=l,S.getTextArea=function(){return n},S.toTextArea=function(){S.toTextArea=isNaN,l(),n.parentNode.removeChild(S.getWrapperElement()),n.style.display="",n.form&&(an(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var x=Ct(function(S){return n.parentNode.insertBefore(S,n.nextSibling)},i);return x}function PS(n){n.off=an,n.on=Xe,n.wheelEventPixels=Hk,n.Doc=Tn,n.splitLines=cr,n.countColumn=re,n.findColumn=ge,n.isWordChar=Je,n.Pass=q,n.signal=Pt,n.Line=os,n.changeEnd=Hi,n.scrollbarModel=$g,n.Pos=fe,n.cmpPos=Ie,n.modes=Qo,n.mimeModes=xr,n.resolveMode=es,n.getMode=ts,n.modeExtensions=$i,n.extendMode=ns,n.copyState=Br,n.startState=rs,n.innerMode=al,n.commands=Ol,n.keyMap=ci,n.keyName=xm,n.isModifierKey=bm,n.lookupKey=ys,n.normalizeKeyMap=aS,n.StringStream=$t,n.SharedTextMarker=Ll,n.TextMarker=Wi,n.LineWidget=Al,n.e_preventDefault=cn,n.e_stopPropagation=Zo,n.e_stop=Oi,n.addClass=Se,n.contains=ce,n.rmClass=N,n.keyNames=qi}_S(Ct),AS(Ct);var RS="iter insert remove copy getEditor constructor".split(" ");for(var _c in Tn.prototype)Tn.prototype.hasOwnProperty(_c)&&ae(RS,_c)<0&&(Ct.prototype[_c]=(function(n){return function(){return n.apply(this.doc,arguments)}})(Tn.prototype[_c]));return yr(Tn),Ct.inputStyles={textarea:Wt,contenteditable:yt},Ct.defineMode=function(n){!Ct.defaults.mode&&n!="null"&&(Ct.defaults.mode=n),kr.apply(this,arguments)},Ct.defineMIME=bo,Ct.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),Ct.defineMIME("text/plain","null"),Ct.defineExtension=function(n,i){Ct.prototype[n]=i},Ct.defineDocExtension=function(n,i){Tn.prototype[n]=i},Ct.fromTextArea=OS,PS(Ct),Ct.version="5.65.18",Ct}))})(Yc)),Yc.exports}var ML=vo();const NL=ax(ML);var Ad={},Er={};const OL="Á",PL="á",RL="Ă",$L="ă",IL="∾",DL="∿",zL="∾̳",FL="Â",HL="â",BL="´",WL="А",qL="а",jL="Æ",UL="æ",VL="",GL="𝔄",KL="𝔞",XL="À",YL="à",ZL="ℵ",JL="ℵ",QL="Α",eM="α",tM="Ā",nM="ā",rM="⨿",iM="&",oM="&",sM="⩕",lM="⩓",aM="∧",cM="⩜",uM="⩘",fM="⩚",dM="∠",hM="⦤",pM="∠",gM="⦨",mM="⦩",vM="⦪",yM="⦫",bM="⦬",wM="⦭",xM="⦮",kM="⦯",SM="∡",_M="∟",
|
|||
|
|
`,sU="∄",lU="∄",aU="𝔑",cU="𝔫",uU="≧̸",fU="≱",dU="≱",hU="≧̸",pU="⩾̸",gU="⩾̸",mU="⋙̸",vU="≵",yU="≫⃒",bU="≯",wU="≯",xU="≫̸",kU="↮",SU="⇎",_U="⫲",TU="∋",CU="⋼",EU="⋺",AU="∋",LU="Њ",MU="њ",NU="↚",OU="⇍",PU="‥",RU="≦̸",$U="≰",IU="↚",DU="⇍",zU="↮",FU="⇎",HU="≰",BU="≦̸",WU="⩽̸",qU="⩽̸",jU="≮",UU="⋘̸",VU="≴",GU="≪⃒",KU="≮",XU="⋪",YU="⋬",ZU="≪̸",JU="∤",QU="",e6=" ",t6="𝕟",n6="ℕ",r6="⫬",i6="¬",o6="≢",s6="≭",l6="∦",a6="∉",c6="≠",u6="≂̸",f6="∄",d6="≯",h6="≱",p6="≧̸",g6="≫̸",m6="≹",v6="⩾̸",y6="≵",b6="≎̸",w6="≏̸",x6="∉",k6="⋵̸",S6="⋹̸",_6="∉",T6="⋷",C6="⋶",E6="⧏̸",A6="⋪",L6="⋬",M6="≮",N6="≰",O6="≸",P6="≪̸",R6="⩽̸",$6="≴",I6="⪢̸",D6="⪡̸",z6="∌",F6="∌",H6="⋾",B6="⋽",W6="⊀",q6="⪯̸",j6="⋠",U6="∌",V6="⧐̸",G6="⋫",K6="⋭",X6="⊏̸",Y6="⋢",Z6="⊐̸",J6="⋣",Q6="⊂⃒",eV="⊈",tV="⊁",nV="⪰̸",rV="⋡",iV="≿̸",oV="⊃⃒",sV="⊉",lV="≁",aV="≄",cV="≇",uV="≉",fV="∤",dV="∦",hV="∦",pV="⫽⃥",gV="∂̸",mV="⨔",vV="⊀",yV="⋠",bV="⊀",wV="⪯̸",xV="⪯̸",kV="⤳̸",SV="↛",_V="⇏",TV="↝̸",CV="↛",EV="⇏",AV="⋫",LV="⋭",MV="⊁",NV="⋡",OV="⪰̸",PV="𝒩",RV="𝓃",$V="∤",IV="∦",DV="≁",zV="≄",FV="≄",HV="∤",BV="∦",WV="⋢",qV="⋣",jV="⊄",UV="⫅̸",VV="⊈",GV="⊂⃒",KV="⊈",XV="⫅̸",YV="⊁",ZV="⪰̸",JV="⊅",QV="⫆̸",eG="⊉",tG="⊃⃒",nG="⊉",rG="⫆̸",iG="≹",oG="Ñ",sG="ñ",lG="≸",aG="⋪",cG="⋬",uG="⋫",fG="⋭",dG="Ν",hG="ν",pG="#",gG="№",mG=" ",vG="≍⃒",yG="⊬",bG="⊭",wG="⊮",xG="⊯",kG="≥⃒",SG=">⃒",_G="⤄",TG="⧞",CG="⤂",EG="≤⃒",AG="<⃒",LG="⊴⃒",MG="⤃",NG="⊵⃒",OG="∼⃒",PG="⤣",RG="↖",$G="⇖",IG="↖",DG="⤧",zG="Ó",FG="ó",HG="⊛",BG="Ô",WG="ô",qG="⊚",jG="О",UG="о",VG="⊝",GG="Ő",KG="ő",XG="⨸",YG="⊙",ZG="⦼",JG="Œ",QG="œ",e9="⦿",t9="𝔒",n9="𝔬",r9="˛",i9="Ò",o9="ò",s9="⧁",l9="⦵",a9="Ω",c9="∮",u9="↺",f9="⦾",d9="⦻",h9="‾",p9="⧀",g9="Ō",m9="ō",v9="Ω",y9="ω",b9="Ο",w9="ο",x9="⦶",k9="⊖",S9="𝕆",_9="𝕠",T9="⦷",C9="“",E9="‘",A9="⦹",L9="⊕",M9="↻",N9="⩔",O9="∨",P9="⩝",R9="ℴ",$9="ℴ",I9="ª",D9="º",z9="⊶",F9="⩖",H9="⩗",B9="⩛",W9="Ⓢ",q9="𝒪",j9="ℴ",U9="Ø",V9="ø",G9="⊘",K9="Õ",X9="õ",Y9="⨶",Z9="⨷",J9="⊗",Q9="Ö",eK="ö",tK="⌽",nK="‾",rK="⏞",iK="⎴",oK="⏜",sK="¶",lK="∥",aK="∥",cK="⫳",uK="⫽",fK="∂",dK="∂",hK="П",pK="п",gK="%",mK=".",vK="‰",yK="⊥",bK="‱",wK="𝔓",xK="𝔭",kK="Φ",SK="φ",_K="ϕ",TK="ℳ",CK="☎",EK="Π",AK="π",LK="⋔",MK="ϖ",NK="ℏ",OK="ℎ",PK="ℏ",RK="⨣",$K="⊞",IK="⨢",DK="+",zK="∔",FK="⨥",HK="⩲",BK="±",WK="±",qK="⨦",jK="⨧",UK="±",VK="ℌ",GK="⨕",KK="𝕡",XK="ℙ",YK="£",ZK="⪷",JK="⪻",QK="≺",e7="≼",t7="⪷",n7="≺",r7="≼",i7="≺",o7="⪯",s7="≼",l7="≾",a7="⪯",c7="⪹",u7="⪵",f7="⋨",d7="⪯",h7="⪳",p7="≾",g7="′",m7="″",v7="ℙ",y7="⪹",b7="⪵",w7="⋨",x7="∏",k7="∏",S7="⌮",_7="⌒",T7="⌓",C7="∝",E7="∝",A7="∷",L7="∝",M7="≾",N7="⊰",O7="𝒫",P7="𝓅",R7="Ψ",$7="ψ",I7=" ",D7="𝔔",z7="𝔮",F7="⨌",H7="𝕢",B7="ℚ",W7="⁗",q7="𝒬",j7="𝓆",U7="ℍ",V7="⨖",G7="?",K7="≟",X7='"',Y7='"',Z7="⇛",J7="∽̱",Q7="Ŕ",eX="ŕ",tX="√",nX="⦳",rX="⟩",iX="⟫",oX="⦒",sX="⦥",lX="⟩",aX="»",cX="⥵",uX="⇥",fX="⤠",dX="⤳",hX="→",pX="↠",gX="⇒",mX="⤞",vX="↪",yX="↬",bX="⥅",wX="⥴",xX="⤖",kX="↣",SX="↝",_X="⤚",TX="⤜",CX="∶",EX="ℚ",AX="⤍",LX="⤏",MX="⤐",NX="❳",OX="}",PX="]",RX="⦌",$X="⦎",IX="⦐",DX="Ř",zX="ř",FX="Ŗ",HX="ŗ",BX="⌉",WX="}",qX="Р",jX="р",UX="⤷",VX="⥩",GX="”",KX="”",XX="↳",YX="ℜ",ZX="ℛ",JX="ℜ",QX="ℝ",eY="ℜ",tY="▭",nY="®",rY="®",iY="∋",oY="⇋",sY="⥯",lY="⥽",aY="⌋",cY="𝔯",uY="ℜ",fY="⥤",dY="⇁",hY="⇀",pY="⥬",gY="Ρ",mY="ρ",vY="ϱ",yY="⟩",bY="⇥",wY="→",xY="→
|
|||
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var B=!0,ce=!1,be;return{s:function(){C=C.call(N)},n:function(){var Be=C.next();return B=Be.done,Be},e:function(Be){ce=!0,be=Be},f:function(){try{!B&&C.return!=null&&C.return()}finally{if(ce)throw be}}}}function s(N,O){if(N){if(typeof N=="string")return c(N,O);var C=Object.prototype.toString.call(N).slice(8,-1);if(C==="Object"&&N.constructor&&(C=N.constructor.name),C==="Map"||C==="Set")return Array.from(N);if(C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return c(N,O)}}function c(N,O){(O==null||O>N.length)&&(O=N.length);for(var C=0,k=new Array(O);C<O;C++)k[C]=N[C];return k}var f=tce(),d={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:h()};function h(){var N={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 P(0,5).forEach(function(O){P(0,5).forEach(function(C){P(0,5).forEach(function(k){return p(O,C,k,N)})})}),P(0,23).forEach(function(O){var C=O+232,k=g(O*10+8);N[C]="#"+k+k+k}),N}function p(N,O,C,k){var z=16+N*36+O*6+C,B=N>0?N*40+55:0,ce=O>0?O*40+55:0,be=C>0?C*40+55:0;k[z]=v([B,ce,be])}function g(N){for(var O=N.toString(16);O.length<2;)O="0"+O;return O}function v(N){var O=[],C=o(N),k;try{for(C.s();!(k=C.n()).done;){var z=k.value;O.push(g(z))}}catch(B){C.e(B)}finally{C.f()}return"#"+O.join("")}function b(N,O,C,k){var z;return O==="text"?z=I(C,k):O==="display"?z=E(N,C,k):O==="xterm256Foreground"?z=W(N,k.colors[C]):O==="xterm256Background"?z=ne(N,k.colors[C]):O==="rgb"&&(z=w(N,C)),z}function w(N,O){O=O.substring(2).slice(0,-1);var C=+O.substr(0,2),k=O.substring(5).split(";"),z=k.map(function(B){return("0"+Number(B).toString(16)).substr(-2)}).join("");return $(N,(C===38?"color:#":"background-color:#")+z)}function E(N,O,C){O=parseInt(O,10);var k={"-1":function(){return"<br/>"},0:function(){return N.length&&L(N)},1:function(){return _(N,"b")},3:function(){return _(N,"i")},4:function(){return _(N,"u")},8:function(){return $(N,"display:none")},9:function(){return _(N,"strike")},22:function(){return $(N,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return ee(N,"i")},24:function(){return ee(N,"u")},39:function(){return W(N,C.fg)},49:function(){return ne(N,C.bg)},53:function(){return $(N,"text-decoration:overline")}},z;return k[O]?z=k[O]():4<O&&O<7?z=_(N,"blink"):29<O&&O<38?z=W(N,C.colors[O-30]):39<O&&O<48?z=ne(N,C.colors[O-40]):89<O&&O<98?z=W(N,C.colors[8+(O-90)]):99<O&&O<108&&(z=ne(N,C.colors[8+(O-100)])),z}function L(N){var O=N.slice(0);return N.length=0,O.reverse().map(function(C){return"</"+C+">"}).join("")}function P(N,O){for(var C=[],k=N;k<=O;k++)C.push(k);return C}function M(N){return function(O){return(N===null||O.category!==N)&&N!=="all"}}function R(N){N=parseInt(N,10);var O=null;return N===0?O="all":N===1?O="bold":2<N&&N<5?O="underline":4<N&&N<7?O="blink":N===8?O="hide":N===9?O="strike":29<N&&N<38||N===39||89<N&&N<98?O="foreground-color":(39<N&&N<48||N===49||99<N&&N<108)&&(O="background-color"),O}function I(N,O){return O.escapeXML?f.encodeXML(N):N}function _(N,O,C){return C||(C=""),N.push(O),"<".concat(O).concat(C?' style="'.concat(C,'"'):"",">")}function $(N,O){return _(N,"span",O)}function W(N,O){return _(N,"span","color:"+O)}function ne(N,O){return _(N,"span","background-color:"+O)}function ee(N,O){var C;if(N.slice(-1)[0]===O&&(C=N.pop()),C)return"</"+O+">"}function Z(N,O,C){var k=!1,z=3;function B(){return""}function ce(q,Q){return C("xterm256Foreground",Q),""}function be(q,Q){return C("xterm256Background",Q),""}function Se(q){return O.newline?C("display",-1):C("text",q),""}function Be(q,Q){k=!0,Q.trim().length===0&&(Q="0"),Q=Q.trimRight(";").split(";");var he=o(Q),de;try{for(he.s();!(de=he.n()).done;){var ge=de.value;C("display",ge)}}catch(Ce){he.e(Ce)}finally{he.f()}return""}function Ae(q){return C("text",q),""}function Ke(q){return C("rgb",q),""}var je=[{pattern:/^\x08+/,sub:B},{pattern:/^\x1b\[[012]?K/,sub:B},{pattern:/^\x1b\[\(B/,sub:B},{pattern:/^\x1b\[[34
|
|||
|
|
L${r.x},${r.y}`}function kge(e){const{start:t,end:r}=l1(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function Sge({config:e,source:t,target:r}){const{s:o,t:s,dist:c,norm:f,endNorm:d}=$p({source:t,target:r}),h=10,p=f.rotateByDegrees(-h).multiply(mo(e,t)-1).add(o),g=d.rotateByDegrees(h).multiply(mo(e,r)).add(s).add(d.rotateByDegrees(h).multiply(2*e.marker.size)),v=1.2*c;return`M${p.x},${p.y}
|
|||
|
|
A${v},${v},0,0,1,${g.x},${g.y}`}function _ge({center:e,config:t,node:r}){const{n:o,c:s}=s1({center:e,node:r}),c=mo(t,r),f=o.subtract(s),d=f.multiply(1/f.length()),h=40,p=d.rotateByDegrees(h).multiply(c-1).add(o),g=d.rotateByDegrees(-h).multiply(c).add(o).add(d.rotateByDegrees(-h).multiply(2*t.marker.size));return`M${p.x},${p.y}
|
|||
|
|
A${c},${c},0,1,0,${g.x},${g.y}`}function Tge({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=$p({source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function Cge({center:e,config:t,node:r}){const{n:o,c:s}=s1({center:e,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*mo(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const Vs={line:{labelTransform:kge,path:xge},arc:{labelTransform:Tge,path:Sge},reflexive:{labelTransform:Cge,path:_ge}};function Ege(e){return e.append("g").classed("links",!0).selectAll("path")}function Age({config:e,graph:t,selection:r,showLabels:o}){const s=r?.data(t.links,c=>lge(c)).join(c=>{const f=c.append("g"),d=f.append("path").classed("link",!0).style("marker-end",p=>age(p)).style("stroke",p=>p.color);e.modifiers.link?.(d);const h=f.append("text").classed("link__label",!0).style("fill",p=>p.label?p.label.color:null).style("font-size",p=>p.label?p.label.fontSize:null).text(p=>p.label?p.label.text:null);return e.modifiers.linkLabel?.(h),f});return s?.select(".link__label").attr("opacity",c=>c.label&&o?1:0),s}function Lge(e){Mge(e),Nge(e)}function Mge({center:e,config:t,graph:r,selection:o}){o?.selectAll("path").attr("d",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"":s.source.id===s.target.id?Vs.reflexive.path({config:t,node:s.source,center:e}):a1(r,s.source,s.target)?Vs.arc.path({config:t,source:s.source,target:s.target}):Vs.line.path({config:t,source:s.source,target:s.target}))}function Nge({config:e,center:t,graph:r,selection:o}){o?.select(".link__label").attr("transform",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"translate(0, 0)":s.source.id===s.target.id?Vs.reflexive.labelTransform({config:e,node:s.source,center:t}):a1(r,s.source,s.target)?Vs.arc.labelTransform({config:e,source:s.source,target:s.target}):Vs.line.labelTransform({config:e,source:s.source,target:s.target}))}function a1(e,t,r){return t.id!==r.id&&e.links.some(o=>o.target.id===t.id&&o.source.id===r.id)&&e.links.some(o=>o.target.id===r.id&&o.source.id===t.id)}function Oge(e){return e.append("defs").selectAll("marker")}function Pge({config:e,graph:t,selection:r}){return r?.data(Rge(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>r1(c)).attr("markerHeight",4*e.marker.size).attr("markerWidth",4*e.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",e.marker.ref[0]).attr("refY",e.marker.ref[1]).attr("viewBox",e.marker.viewBox).style("fill",c=>c);return s.append("path").attr("d",$ge(e.marker.path)),s})}function Rge(e){return[...new Set(e.links.map(t=>t.color))]}function $ge(e){const[t,...r]=e;if(!t)return"M0,0";const[o,s]=t;return r.reduce((c,[f,d])=>`${c}L${f},${d}`,`M${o},${s}`)}function Ige(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function Dge({config:e,drag:t,graph:r,onNodeContext:o,onNodeSelected:s,selection:c,showLabels:f}){const d=c?.data(r.nodes,h=>h.id).join(h=>{const p=h.append("g");t!==void 0&&p.call(t);const g=p.append("circle").classed("node",!0).attr("r",b=>mo(e,b)).on("contextmenu",(b,w)=>{t1(b),o(w)}).on("pointerdown",(b,w)=>Fge(b,w,s??o)).style("fill",b=>b.color);e.modifiers.node?.(g);const v=p.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",b=>b.label?b.label.color:null).style("font-size",b=>b.label?b.label.fontSize:null).style("stroke","none").text(b=>b.label?b.label.text:null);return e.modifiers.nodeLabel?.(v),p});return d?.select(".node").classed("focused",h=>h.isFocused),d?.select(".node__label").attr("opacity",f?1:0),d}const zge=500;function Fge(e,t,r){if(e.button!==void 0&&e.button!==0)return;const o=t.lastInteractionTimestamp,s=Date.now();if(o===void 0||s-o>zge){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function Hge(e){e?.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function Bge({center:e,config:t,graph:r,onTick:o}){const s=Qpe(r.nodes),c=t.simulation.forces.centering;if(c&&c.enabled){const p=c.strength;s.force("x",tge(()=>
|
|||
|
|
`),O.append(C,k),N.append(O);const z=Z.attachment;if(z?.path||z?.body)if(z.contentType?.startsWith("image/")){const B=document.createElement("a"),ce=document.createElement("img");B.classList.add("inline-block","mt-3"),B.style.maxWidth="50vw";const be=z.path||z.body;typeof be=="string"&&(be.startsWith("http://")||be.startsWith("https://"))?(ce.setAttribute("src",be),B.referrerPolicy="no-referrer"):ce.setAttribute("src",Ma(z)),B.target="_blank",B.href=ce.src,B.append(ce),N.append(B)}else{const B=document.createElement("a");B.href=Ma(z),B.download=f1(Z.message,z.contentType),B.classList.add("flex","w-min","gap-2","items-center","font-sans","underline","cursor-pointer");const ce=document.createElement("div");ce.classList.add("i-carbon:download","block");const be=document.createElement("span");be.textContent="Download",B.append(ce,be),N.append(B)}E.push(Nn.value.addLineWidget(G-1,N))}const{pause:W,resume:ne}=xt([Nn,b,w,Ms],([Z,G,j,N])=>{if(!Z){E.length=0,L.length=0,R();return}N&&(Z.off("changes",I),R(),E.forEach(O=>O.clear()),L.forEach(O=>Z?.removeLineClass(O,"wrap")),E.length=0,L.length=0,setTimeout(()=>{G.forEach(_),j.forEach($),M.value||Z.clearHistory(),Z.on("changes",I)},100))},{flush:"post"});hp(()=>[Ms.value,h.value,p.value],([Z,G],j)=>{Z&&!G&&j&&j[2]&&Nn.value?.setCursor(j[2])},{debounce:100,flush:"post"});async function ee(Z){if(h.value)return;W(),h.value=!0,await Et();const G=Nn.value;G&&(G.setOption("readOnly",!0),await Et(),G.refresh()),p.value=G?.getCursor(),G?.off("changes",I),R(),E.forEach(j=>j.clear()),L.forEach(j=>G?.removeLineClass(j,"wrap")),E.length=0,L.length=0;try{M.value=!0,await ft.rpc.saveTestFile(r.file.filepath,Z),c.value=Z,f.value=!1}catch(j){console.error("error saving file",j)}M.value||G?.clearHistory();try{await Uv(Ms).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await Uv(Ms).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}b.value.forEach(_),w.value.forEach($),G?.on("changes",I),h.value=!1,await Et(),G&&(G.setOption("readOnly",!1),await Et(),G.refresh()),ne()}return $a(R),(Z,G)=>(ie(),Ve(tu,ki({ref_key:"editor",ref:v,modelValue:s.value,"onUpdate:modelValue":G[0]||(G[0]=j=>s.value=j),"h-full":""},{lineNumbers:!0,readOnly:K(gr),saving:h.value},{mode:g.value,"data-testid":"code-mirror",onSave:ee}),null,16,["modelValue","mode"]))}}),Dp=rt({__name:"Modal",props:da({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Yu(e,"modelValue"),r=ke(()=>{switch(e.direction){case"bottom":return"bottom-0 left-0 right-0 border-t";case"top":return"top-0 left-0 right-0 border-b";case"left":return"bottom-0 left-0 top-0 border-r";case"right":return"bottom-0 top-0 right-0 border-l";default:return""}}),o=ke(()=>{switch(e.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),s=()=>t.value=!1;return(c,f)=>(ie(),ve("div",{class:ot(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[X("div",{class:ot(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),X("div",{class:ot(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[r.value]]),style:zt(t.value?{}:{transform:o.value})},[Dt(c.$slots,"default")],6)],2))}}),ume={class:"overflow-auto max-h-120"},fme={"my-2":"","mx-4":""},dme={"op-70":""},hme={"my-2":"","mx-4":"","text-sm":"","font-light":"","op-90":""},pme=["onClick"],gme=rt({__name:"ModuleGraphImportBreakdown",emits:["select"],setup(e,{emit:t}){const r=t,o=Ge(10),s=ke(()=>{const h=pr.value?.importDurations;if(!h)return[];const p=ei.value.root,g=[];for(const b in h){const w=h[b],E=w.external?tL(b):af(p,b);g.push({importedFile:b,relativeFile:f(E),selfTime:w.selfTime,totalTime:w.totalTime,formattedSelfTime:Fo(w.selfTime),formattedTotalTime:Fo(w.totalTime),selfTimeClass:_u(w.selfTime),totalTimeClass:_u(w.totalTime),external:w.external})}return g.sort((b,w)=>w.totalTime-b.totalTime)}),c=ke(()=>s.value.
|
|||
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fye(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function dye(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,c,f=function(h){for(var p=arguments.length,g=new Array(p>1?p-1:0),v=1;v<p;v++)g[v-1]=arguments[v];if(c=g,!(o&&h===s)){var b=r.leading;typeof b=="function"&&(b=b(h,s)),(!o||h!==s)&&b&&e.apply(void 0,[h].concat(a0(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat(a0(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function b1(e,t){if(e===t)return!0;if(ru(e)==="object"){for(var r in e)if(!b1(e[r],t[r]))return!1;return!0}return!1}var hye=(function(){function e(t,r,o){iye(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return sye(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=fye(r),this.callback=function(d,h){s.options.callback(d,h),d&&s.options.once&&(s.frozen=!0,s.destroyObserver())},this.callback&&this.options.throttle){var c=this.options.throttleOptions||{},f=c.leading;this.callback=dye(this.callback,this.options.throttle,{leading:function(h){return f==="both"||f==="visible"&&h||f==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(d){var h=d[0];if(d.length>1){var p=d.find(function(v){return v.isIntersecting});p&&(h=p)}if(s.callback){var g=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(g===s.oldResult)return;s.oldResult=g,s.callback(g,h)}},this.options.intersection),Et(function(){s.observer&&s.observer.observe(s.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e})();function w1(e,t,r){var o=t.value;if(o)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var s=new hye(e,o,r);e._vue_visibilityState=s}}function pye(e,t,r){var o=t.value,s=t.oldValue;if(!b1(o,s)){var c=e._vue_visibilityState;if(!o){x1(e);return}c?c.createObserver(o,r):w1(e,{value:o},r)}}function x1(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var gye={beforeMount:w1,updated:pye,unmounted:x1},mye={itemsLimit:1e3},vye=/(auto|scroll)/;function k1(e,t){return e.parentNode===null?t:k1(e.parentNode,t.concat([e]))}var Fd=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},yye=function(t){return Fd(t,"overflow")+Fd(t,"overflow-y")+Fd(t,"overflow-x")},bye=function(t){return vye.test(yye(t))};function c0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=k1(e.parentNode,[]),r=0;r<t.length;r+=1)if(bye(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function Ph(e){"@babel/helpers - typeof";return Ph=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ph(e)}var wye={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function xye(){return this.items.length&&Ph(this.items[0])!=="object"}var Rh=!1;if(typeof window<"u"){Rh=!1;try{var kye=Object.defineProperty({},"passive",{get:function(){Rh=!0}});window.addEventListener("test",null,kye)}catch{}}let Sye=0;var zp={name:"RecycleScroller",components:{ResizeObserver:pf},directives:{ObserveVisibility:gye},props:{...wye,itemSize:{type:Number,default:null},gridItems:{type:Number
|
|||
|
|
* vue-router v4.6.3
|
|||
|
|
* (c) 2025 Eduardo San Martin Morote
|
|||
|
|
* @license MIT
|
|||
|
|
*/const Ls=typeof document<"u";function S1(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function d0e(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&S1(e.default)}const bt=Object.assign;function Hd(e,t){const r={};for(const o in t){const s=t[o];r[o]=zr(s)?s.map(e):e(s)}return r}const la=()=>{},zr=Array.isArray;function u0(e,t){const r={};for(const o in e)r[o]=o in t?t[o]:e[o];return r}const _1=/#/g,h0e=/&/g,p0e=/\//g,g0e=/=/g,m0e=/\?/g,T1=/\+/g,v0e=/%5B/g,y0e=/%5D/g,C1=/%5E/g,b0e=/%60/g,E1=/%7B/g,w0e=/%7C/g,A1=/%7D/g,x0e=/%20/g;function Fp(e){return e==null?"":encodeURI(""+e).replace(w0e,"|").replace(v0e,"[").replace(y0e,"]")}function k0e(e){return Fp(e).replace(E1,"{").replace(A1,"}").replace(C1,"^")}function $h(e){return Fp(e).replace(T1,"%2B").replace(x0e,"+").replace(_1,"%23").replace(h0e,"%26").replace(b0e,"`").replace(E1,"{").replace(A1,"}").replace(C1,"^")}function S0e(e){return $h(e).replace(g0e,"%3D")}function _0e(e){return Fp(e).replace(_1,"%23").replace(m0e,"%3F")}function T0e(e){return _0e(e).replace(p0e,"%2F")}function Na(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const C0e=/\/$/,E0e=e=>e.replace(C0e,"");function Bd(e,t,r="/"){let o,s={},c="",f="";const d=t.indexOf("#");let h=t.indexOf("?");return h=d>=0&&h>d?-1:h,h>=0&&(o=t.slice(0,h),c=t.slice(h,d>0?d:t.length),s=e(c.slice(1))),d>=0&&(o=o||t.slice(0,d),f=t.slice(d,t.length)),o=N0e(o??t,r),{fullPath:o+c+f,path:o,query:s,hash:Na(f)}}function A0e(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function f0(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function L0e(e,t,r){const o=t.matched.length-1,s=r.matched.length-1;return o>-1&&o===s&&rl(t.matched[o],r.matched[s])&&L1(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function rl(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function L1(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!M0e(e[r],t[r]))return!1;return!0}function M0e(e,t){return zr(e)?d0(e,t):zr(t)?d0(t,e):e===t}function d0(e,t){return zr(t)?e.length===t.length&&e.every((r,o)=>r===t[o]):e.length===1&&e[0]===t}function N0e(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),o=e.split("/"),s=o[o.length-1];(s===".."||s===".")&&o.push("");let c=r.length-1,f,d;for(f=0;f<o.length;f++)if(d=o[f],d!==".")if(d==="..")c>1&&c--;else break;return r.slice(0,c).join("/")+"/"+o.slice(f).join("/")}const Gi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Ih=(function(e){return e.pop="pop",e.push="push",e})({}),Wd=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function O0e(e){if(!e)if(Ls){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),E0e(e)}const P0e=/^[^#]+#/;function R0e(e,t){return e.replace(P0e,"#")+t}function $0e(e,t){const r=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-r.left-(t.left||0),top:o.top-r.top-(t.top||0)}}const gf=()=>({left:window.scrollX,top:window.scrollY});function I0e(e){let t;if("el"in e){const r=e.el,o=typeof r=="string"&&r.startsWith("#"),s=typeof r=="string"?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!s)return;t=$0e(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function h0(e,t){return(history.state?history.state.position-t:-1)+e}const Dh=new Map;function D0e(e,t){Dh.set(e,t)}function z0e(e){const t=Dh.get(e);return Dh.delete(e),t}function F0e(e){return typeof e=="string"||e&&typeof e=="object"}function M1(e){return typeof e=="string"||typeof e=="symbol"}let qt=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAV
|
|||
|
|
* vue-router v4.6.3
|
|||
|
|
* (c) 2025 Eduardo San Martin Morote
|
|||
|
|
* @license MIT
|
|||
|
|
*/let V0e=()=>location.protocol+"//"+location.host;function P1(e,t){const{pathname:r,search:o,hash:s}=t,c=e.indexOf("#");if(c>-1){let f=s.includes(e.slice(c))?e.slice(c).length:1,d=s.slice(f);return d[0]!=="/"&&(d="/"+d),f0(d,"")}return f0(r,e)+o+s}function G0e(e,t,r,o){let s=[],c=[],f=null;const d=({state:b})=>{const w=P1(e,location),E=r.value,L=t.value;let P=0;if(b){if(r.value=w,t.value=b,f&&f===E){f=null;return}P=L?b.position-L.position:0}else o(w);s.forEach(M=>{M(r.value,E,{delta:P,type:Ih.pop,direction:P?P>0?Wd.forward:Wd.back:Wd.unknown})})};function h(){f=r.value}function p(b){s.push(b);const w=()=>{const E=s.indexOf(b);E>-1&&s.splice(E,1)};return c.push(w),w}function g(){if(document.visibilityState==="hidden"){const{history:b}=window;if(!b.state)return;b.replaceState(bt({},b.state,{scroll:gf()}),"")}}function v(){for(const b of c)b();c=[],window.removeEventListener("popstate",d),window.removeEventListener("pagehide",g),document.removeEventListener("visibilitychange",g)}return window.addEventListener("popstate",d),window.addEventListener("pagehide",g),document.addEventListener("visibilitychange",g),{pauseListeners:h,listen:p,destroy:v}}function m0(e,t,r,o=!1,s=!1){return{back:e,current:t,forward:r,replaced:o,position:window.history.length,scroll:s?gf():null}}function K0e(e){const{history:t,location:r}=window,o={value:P1(e,r)},s={value:t.state};s.value||c(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function c(h,p,g){const v=e.indexOf("#"),b=v>-1?(r.host&&document.querySelector("base")?e:e.slice(v))+h:V0e()+e+h;try{t[g?"replaceState":"pushState"](p,"",b),s.value=p}catch(w){console.error(w),r[g?"replace":"assign"](b)}}function f(h,p){c(h,bt({},t.state,m0(s.value.back,h,s.value.forward,!0),p,{position:s.value.position}),!0),o.value=h}function d(h,p){const g=bt({},s.value,t.state,{forward:h,scroll:gf()});c(g.current,g,!0),c(h,bt({},m0(o.value,h,null),{position:g.position+1},p),!1),o.value=h}return{location:o,state:s,push:d,replace:f}}function X0e(e){e=O0e(e);const t=K0e(e),r=G0e(e,t.state,t.location,t.replace);function o(c,f=!0){f||r.pauseListeners(),history.go(c)}const s=bt({location:"",base:e,go:o,createHref:R0e.bind(null,e)},t,r);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function Y0e(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),X0e(e)}let Wo=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var rn=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(rn||{});const Z0e={type:Wo.Static,value:""},J0e=/[a-zA-Z0-9_]/;function Q0e(e){if(!e)return[[]];if(e==="/")return[[Z0e]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(w){throw new Error(`ERR (${r})/"${p}": ${w}`)}let r=rn.Static,o=r;const s=[];let c;function f(){c&&s.push(c),c=[]}let d=0,h,p="",g="";function v(){p&&(r===rn.Static?c.push({type:Wo.Static,value:p}):r===rn.Param||r===rn.ParamRegExp||r===rn.ParamRegExpEnd?(c.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),c.push({type:Wo.Param,value:p,regexp:g,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function b(){p+=h}for(;d<e.length;){if(h=e[d++],h==="\\"&&r!==rn.ParamRegExp){o=r,r=rn.EscapeNext;continue}switch(r){case rn.Static:h==="/"?(p&&v(),f()):h===":"?(v(),r=rn.Param):b();break;case rn.EscapeNext:b(),r=o;break;case rn.Param:h==="("?r=rn.ParamRegExp:J0e.test(h)?b():(v(),r=rn.Static,h!=="*"&&h!=="?"&&h!=="+"&&d--);break;case rn.ParamRegExp:h===")"?g[g.length-1]=="\\"?g=g.slice(0,-1)+h:r=rn.ParamRegExpEnd:g+=h;break;case rn.ParamRegExpEnd:v(),r=rn.Static,h!=="*"&&h!=="?"&&h!=="+"&&d--,g="";break;default:t("Unknown state");break}}return r===rn.ParamRegExp&&t(`Unfinished custom RegExp for param "${p}"`),v(),f(),s}c
|