easynode/server/app/static/assets/index.c20c6c58.js
2022-06-28 09:20:52 +08:00

88 lines
950 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var a1=Object.defineProperty,l1=Object.defineProperties;var c1=Object.getOwnPropertyDescriptors;var Pa=Object.getOwnPropertySymbols;var fh=Object.prototype.hasOwnProperty,dh=Object.prototype.propertyIsEnumerable;var uh=(e,t,r)=>t in e?a1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Se=(e,t)=>{for(var r in t||(t={}))fh.call(t,r)&&uh(e,r,t[r]);if(Pa)for(var r of Pa(t))dh.call(t,r)&&uh(e,r,t[r]);return e},je=(e,t)=>l1(e,c1(t));var Da=(e,t)=>{var r={};for(var n in e)fh.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Pa)for(var n of Pa(e))t.indexOf(n)<0&&dh.call(e,n)&&(r[n]=e[n]);return r};var u1=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var wN=u1((mr,_r)=>{const f1=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}};f1();function Vf(e,t){const r=Object.create(null),n=e.split(",");for(let o=0;o<n.length;o++)r[n[o]]=!0;return t?o=>!!r[o.toLowerCase()]:o=>!!r[o]}const d1="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",h1=Vf(d1);function vv(e){return!!e||e===""}function We(e){if(Pe(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],o=ze(n)?g1(n):We(n);if(o)for(const i in o)t[i]=o[i]}return t}else{if(ze(e))return e;if(it(e))return e}}const p1=/;(?![^(]*\))/g,v1=/:(.+)/;function g1(e){const t={};return e.split(p1).forEach(r=>{if(r){const n=r.split(v1);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ne(e){let t="";if(ze(e))t=e;else if(Pe(e))for(let r=0;r<e.length;r++){const n=ne(e[r]);n&&(t+=n+" ")}else if(it(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function Pu(e){if(!e)return null;let{class:t,style:r}=e;return t&&!ze(t)&&(e.class=ne(t)),r&&(e.style=We(r)),e}function m1(e,t){if(e.length!==t.length)return!1;let r=!0;for(let n=0;r&&n<e.length;n++)r=To(e[n],t[n]);return r}function To(e,t){if(e===t)return!0;let r=hh(e),n=hh(t);if(r||n)return r&&n?e.getTime()===t.getTime():!1;if(r=Os(e),n=Os(t),r||n)return e===t;if(r=Pe(e),n=Pe(t),r||n)return r&&n?m1(e,t):!1;if(r=it(e),n=it(t),r||n){if(!r||!n)return!1;const o=Object.keys(e).length,i=Object.keys(t).length;if(o!==i)return!1;for(const s in e){const a=e.hasOwnProperty(s),l=t.hasOwnProperty(s);if(a&&!l||!a&&l||!To(e[s],t[s]))return!1}}return String(e)===String(t)}function gv(e,t){return e.findIndex(r=>To(r,t))}const me=e=>ze(e)?e:e==null?"":Pe(e)||it(e)&&(e.toString===yv||!Ue(e.toString))?JSON.stringify(e,mv,2):String(e),mv=(e,t)=>t&&t.__v_isRef?mv(e,t.value):wo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,o])=>(r[`${n} =>`]=o,r),{})}:Xl(t)?{[`Set(${t.size})`]:[...t.values()]}:it(t)&&!Pe(t)&&!bv(t)?String(t):t,ut={},Co=[],kt=()=>{},_1=()=>!1,y1=/^on[^a-z]/,Yl=e=>y1.test(e),Kf=e=>e.startsWith("onUpdate:"),Pt=Object.assign,Gf=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},b1=Object.prototype.hasOwnProperty,qe=(e,t)=>b1.call(e,t),Pe=Array.isArray,wo=e=>qo(e)==="[object Map]",Xl=e=>qo(e)==="[object Set]",hh=e=>qo(e)==="[object Date]",Ue=e=>typeof e=="function",ze=e=>typeof e=="string",Os=e=>typeof e=="symbol",it=e=>e!==null&&typeof e=="object",_v=e=>it(e)&&Ue(e.then)&&Ue(e.catch),yv=Object.prototype.toString,qo=e=>yv.call(e),C1=e=>qo(e).slice(8,-1),bv=e=>qo(e)==="[object Object]",Yf=e=>ze(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,al=Vf(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ql=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},w1=/-(\w)/g,Rr=Ql(e=>e.replace(w1,(t,r)=>r?r.toUpperCase():"")),S1=/\B([A-Z])/g,Zn=Ql(e=>e.replace(S1,"-$1").toLowerCase()),$r=Ql(e=>e.charAt(0).toUpperCase()+e.slice(1)),iu=Ql(e=>e?`on${$r(e)}`:""),Is=(e,t)=>!Object.is(e,t),ll=(e,t)=>{for(let r=0;r<e.length;r++)e[r](t)},Al=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},Cv=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ph;const x1=()=>ph||(ph=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let hr;class E1{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&hr&&(this.parent=hr,this.index=(hr.scopes||(hr.scopes=[])).push(this)-1)}run(t){if(this.active){const r=hr;try{return hr=this,t()}finally{hr=r}}}on(){hr=this}off(){hr=this.parent}stop(t){if(this.active){let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.scopes)for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);if(this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.active=!1}}}function A1(e,t=hr){t&&t.active&&t.effects.push(e)}function k1(){return hr}function wv(e){hr&&hr.cleanups.push(e)}const Xf=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Sv=e=>(e.w&Gn)>0,xv=e=>(e.n&Gn)>0,T1=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Gn},L1=e=>{const{deps:t}=e;if(t.length){let r=0;for(let n=0;n<t.length;n++){const o=t[n];Sv(o)&&!xv(o)?o.delete(e):t[r++]=o,o.w&=~Gn,o.n&=~Gn}t.length=r}},Du=new WeakMap;let ds=0,Gn=1;const Hu=30;let jr;const Ri=Symbol(""),Fu=Symbol("");class Qf{constructor(t,r=null,n){this.fn=t,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,A1(this,n)}run(){if(!this.active)return this.fn();let t=jr,r=Vn;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=jr,jr=this,Vn=!0,Gn=1<<++ds,ds<=Hu?T1(this):vh(this),this.fn()}finally{ds<=Hu&&L1(this),Gn=1<<--ds,jr=this.parent,Vn=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){jr===this?this.deferStop=!0:this.active&&(vh(this),this.onStop&&this.onStop(),this.active=!1)}}function vh(e){const{deps:t}=e;if(t.length){for(let r=0;r<t.length;r++)t[r].delete(e);t.length=0}}let Vn=!0;const Ev=[];function $i(){Ev.push(Vn),Vn=!1}function ji(){const e=Ev.pop();Vn=e===void 0?!0:e}function br(e,t,r){if(Vn&&jr){let n=Du.get(e);n||Du.set(e,n=new Map);let o=n.get(r);o||n.set(r,o=Xf()),Av(o)}}function Av(e,t){let r=!1;ds<=Hu?xv(e)||(e.n|=Gn,r=!Sv(e)):r=!e.has(jr),r&&(e.add(jr),jr.deps.push(e))}function yn(e,t,r,n,o,i){const s=Du.get(e);if(!s)return;let a=[];if(t==="clear")a=[...s.values()];else if(r==="length"&&Pe(e))s.forEach((l,u)=>{(u==="length"||u>=n)&&a.push(l)});else switch(r!==void 0&&a.push(s.get(r)),t){case"add":Pe(e)?Yf(r)&&a.push(s.get("length")):(a.push(s.get(Ri)),wo(e)&&a.push(s.get(Fu)));break;case"delete":Pe(e)||(a.push(s.get(Ri)),wo(e)&&a.push(s.get(Fu)));break;case"set":wo(e)&&a.push(s.get(Ri));break}if(a.length===1)a[0]&&Nu(a[0]);else{const l=[];for(const u of a)u&&l.push(...u);Nu(Xf(l))}}function Nu(e,t){const r=Pe(e)?e:[...e];for(const n of r)n.computed&&gh(n);for(const n of r)n.computed||gh(n)}function gh(e,t){(e!==jr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const R1=Vf("__proto__,__v_isRef,__isVue"),kv=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Os)),B1=Jf(),O1=Jf(!1,!0),I1=Jf(!0),mh=M1();function M1(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=nt(this);for(let i=0,s=this.length;i<s;i++)br(n,"get",i+"");const o=n[t](...r);return o===-1||o===!1?n[t](...r.map(nt)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){$i();const n=nt(this)[t].apply(this,r);return ji(),n}}),e}function Jf(e=!1,t=!1){return function(n,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&i===(e?t?X1:Ov:t?Bv:Rv).get(n))return n;const s=Pe(n);if(!e&&s&&qe(mh,o))return Reflect.get(mh,o,i);const a=Reflect.get(n,o,i);return(Os(o)?kv.has(o):R1(o))||(e||br(n,"get",o),t)?a:yt(a)?s&&Yf(o)?a:a.value:it(a)?e?Js(a):sr(a):a}}const P1=Tv(),D1=Tv(!0);function Tv(e=!1){return function(r,n,o,i){let s=r[n];if(Ms(s)&&yt(s)&&!yt(o))return!1;if(!e&&!Ms(o)&&($u(o)||(o=nt(o),s=nt(s)),!Pe(r)&&yt(s)&&!yt(o)))return s.value=o,!0;const a=Pe(r)&&Yf(n)?Number(n)<r.length:qe(r,n),l=Reflect.set(r,n,o,i);return r===nt(i)&&(a?Is(o,s)&&yn(r,"set",n,o):yn(r,"add",n,o)),l}}function H1(e,t){const r=qe(e,t);e[t];const n=Reflect.deleteProperty(e,t);return n&&r&&yn(e,"delete",t,void 0),n}function F1(e,t){const r=Reflect.has(e,t);return(!Os(t)||!kv.has(t))&&br(e,"has",t),r}function N1(e){return br(e,"iterate",Pe(e)?"length":Ri),Reflect.ownKeys(e)}const Lv={get:B1,set:P1,deleteProperty:H1,has:F1,ownKeys:N1},$1={get:I1,set(e,t){return!0},deleteProperty(e,t){return!0}},j1=Pt({},Lv,{get:O1,set:D1}),Zf=e=>e,Jl=e=>Reflect.getPrototypeOf(e);function Ha(e,t,r=!1,n=!1){e=e.__v_raw;const o=nt(e),i=nt(t);r||(t!==i&&br(o,"get",t),br(o,"get",i));const{has:s}=Jl(o),a=n?Zf:r?rd:Ps;if(s.call(o,t))return a(e.get(t));if(s.call(o,i))return a(e.get(i));e!==o&&e.get(t)}function Fa(e,t=!1){const r=this.__v_raw,n=nt(r),o=nt(e);return t||(e!==o&&br(n,"has",e),br(n,"has",o)),e===o?r.has(e):r.has(e)||r.has(o)}function Na(e,t=!1){return e=e.__v_raw,!t&&br(nt(e),"iterate",Ri),Reflect.get(e,"size",e)}function _h(e){e=nt(e);const t=nt(this);return Jl(t).has.call(t,e)||(t.add(e),yn(t,"add",e,e)),this}function yh(e,t){t=nt(t);const r=nt(this),{has:n,get:o}=Jl(r);let i=n.call(r,e);i||(e=nt(e),i=n.call(r,e));const s=o.call(r,e);return r.set(e,t),i?Is(t,s)&&yn(r,"set",e,t):yn(r,"add",e,t),this}function bh(e){const t=nt(this),{has:r,get:n}=Jl(t);let o=r.call(t,e);o||(e=nt(e),o=r.call(t,e)),n&&n.call(t,e);const i=t.delete(e);return o&&yn(t,"delete",e,void 0),i}function Ch(){const e=nt(this),t=e.size!==0,r=e.clear();return t&&yn(e,"clear",void 0,void 0),r}function $a(e,t){return function(n,o){const i=this,s=i.__v_raw,a=nt(s),l=t?Zf:e?rd:Ps;return!e&&br(a,"iterate",Ri),s.forEach((u,c)=>n.call(o,l(u),l(c),i))}}function ja(e,t,r){return function(...n){const o=this.__v_raw,i=nt(o),s=wo(i),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,u=o[e](...n),c=r?Zf:t?rd:Ps;return!t&&br(i,"iterate",l?Fu:Ri),{next(){const{value:_,done:v}=u.next();return v?{value:_,done:v}:{value:a?[c(_[0]),c(_[1])]:c(_),done:v}},[Symbol.iterator](){return this}}}}function Rn(e){return function(...t){return e==="delete"?!1:this}}function U1(){const e={get(i){return Ha(this,i)},get size(){return Na(this)},has:Fa,add:_h,set:yh,delete:bh,clear:Ch,forEach:$a(!1,!1)},t={get(i){return Ha(this,i,!1,!0)},get size(){return Na(this)},has:Fa,add:_h,set:yh,delete:bh,clear:Ch,forEach:$a(!1,!0)},r={get(i){return Ha(this,i,!0)},get size(){return Na(this,!0)},has(i){return Fa.call(this,i,!0)},add:Rn("add"),set:Rn("set"),delete:Rn("delete"),clear:Rn("clear"),forEach:$a(!0,!1)},n={get(i){return Ha(this,i,!0,!0)},get size(){return Na(this,!0)},has(i){return Fa.call(this,i,!0)},add:Rn("add"),set:Rn("set"),delete:Rn("delete"),clear:Rn("clear"),forEach:$a(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=ja(i,!1,!1),r[i]=ja(i,!0,!1),t[i]=ja(i,!1,!0),n[i]=ja(i,!0,!0)}),[e,r,t,n]}const[W1,z1,q1,V1]=U1();function ed(e,t){const r=t?e?V1:q1:e?z1:W1;return(n,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?n:Reflect.get(qe(r,o)&&o in n?r:n,o,i)}const K1={get:ed(!1,!1)},G1={get:ed(!1,!0)},Y1={get:ed(!0,!1)},Rv=new WeakMap,Bv=new WeakMap,Ov=new WeakMap,X1=new WeakMap;function Q1(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function J1(e){return e.__v_skip||!Object.isExtensible(e)?0:Q1(C1(e))}function sr(e){return Ms(e)?e:td(e,!1,Lv,K1,Rv)}function Z1(e){return td(e,!1,j1,G1,Bv)}function Js(e){return td(e,!0,$1,Y1,Ov)}function td(e,t,r,n,o){if(!it(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const s=J1(e);if(s===0)return e;const a=new Proxy(e,s===2?n:r);return o.set(e,a),a}function So(e){return Ms(e)?So(e.__v_raw):!!(e&&e.__v_isReactive)}function Ms(e){return!!(e&&e.__v_isReadonly)}function $u(e){return!!(e&&e.__v_isShallow)}function Iv(e){return So(e)||Ms(e)}function nt(e){const t=e&&e.__v_raw;return t?nt(t):e}function Mv(e){return Al(e,"__v_skip",!0),e}const Ps=e=>it(e)?sr(e):e,rd=e=>it(e)?Js(e):e;function Pv(e){Vn&&jr&&(e=nt(e),Av(e.dep||(e.dep=Xf())))}function Dv(e,t){e=nt(e),e.dep&&Nu(e.dep)}function yt(e){return!!(e&&e.__v_isRef===!0)}function X(e){return Hv(e,!1)}function ms(e){return Hv(e,!0)}function Hv(e,t){return yt(e)?e:new eb(e,t)}class eb{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:nt(t),this._value=r?t:Ps(t)}get value(){return Pv(this),this._value}set value(t){t=this.__v_isShallow?t:nt(t),Is(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:Ps(t),Dv(this))}}function N(e){return yt(e)?e.value:e}const tb={get:(e,t,r)=>N(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const o=e[t];return yt(o)&&!yt(r)?(o.value=r,!0):Reflect.set(e,t,r,n)}};function Fv(e){return So(e)?e:new Proxy(e,tb)}function Ui(e){const t=Pe(e)?new Array(e.length):{};for(const r in e)t[r]=Gt(e,r);return t}class rb{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function Gt(e,t,r){const n=e[t];return yt(n)?n:new rb(e,t,r)}class nb{constructor(t,r,n,o){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new Qf(t,()=>{this._dirty||(this._dirty=!0,Dv(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const t=nt(this);return Pv(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function ib(e,t,r=!1){let n,o;const i=Ue(e);return i?(n=e,o=kt):(n=e.get,o=e.set),new nb(n,o,i||!o,r)}const _s=[];function ob(e,...t){$i();const r=_s.length?_s[_s.length-1].component:null,n=r&&r.appContext.config.warnHandler,o=sb();if(n)mn(n,r,11,[e+t.join(""),r&&r.proxy,o.map(({vnode:i})=>`at <${vg(r,i.type)}>`).join(`
`),o]);else{const i=[`[Vue warn]: ${e}`,...t];o.length&&i.push(`
`,...ab(o)),console.warn(...i)}ji()}function sb(){let e=_s[_s.length-1];if(!e)return[];const t=[];for(;e;){const r=t[0];r&&r.vnode===e?r.recurseCount++:t.push({vnode:e,recurseCount:0});const n=e.component&&e.component.parent;e=n&&n.vnode}return t}function ab(e){const t=[];return e.forEach((r,n)=>{t.push(...n===0?[]:[`
`],...lb(r))}),t}function lb({vnode:e,recurseCount:t}){const r=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,o=` at <${vg(e.component,e.type,n)}`,i=">"+r;return e.props?[o,...cb(e.props),i]:[o+i]}function cb(e){const t=[],r=Object.keys(e);return r.slice(0,3).forEach(n=>{t.push(...Nv(n,e[n]))}),r.length>3&&t.push(" ..."),t}function Nv(e,t,r){return ze(t)?(t=JSON.stringify(t),r?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?r?t:[`${e}=${t}`]:yt(t)?(t=Nv(e,nt(t.value),!0),r?t:[`${e}=Ref<`,t,">"]):Ue(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=nt(t),r?t:[`${e}=`,t])}function mn(e,t,r,n){let o;try{o=n?e(...n):e()}catch(i){Zl(i,t,r)}return o}function Tr(e,t,r,n){if(Ue(e)){const i=mn(e,t,r,n);return i&&_v(i)&&i.catch(s=>{Zl(s,t,r)}),i}const o=[];for(let i=0;i<e.length;i++)o.push(Tr(e[i],t,r,n));return o}function Zl(e,t,r,n=!0){const o=t?t.vnode:null;if(t){let i=t.parent;const s=t.proxy,a=r;for(;i;){const u=i.ec;if(u){for(let c=0;c<u.length;c++)if(u[c](e,s,a)===!1)return}i=i.parent}const l=t.appContext.config.errorHandler;if(l){mn(l,null,10,[e,s,a]);return}}ub(e,r,o,n)}function ub(e,t,r,n=!0){console.error(e)}let kl=!1,ju=!1;const vr=[];let pn=0;const ys=[];let hs=null,mo=0;const bs=[];let Pn=null,_o=0;const $v=Promise.resolve();let nd=null,Uu=null;function Xe(e){const t=nd||$v;return e?t.then(this?e.bind(this):e):t}function fb(e){let t=pn+1,r=vr.length;for(;t<r;){const n=t+r>>>1;Ds(vr[n])<e?t=n+1:r=n}return t}function jv(e){(!vr.length||!vr.includes(e,kl&&e.allowRecurse?pn+1:pn))&&e!==Uu&&(e.id==null?vr.push(e):vr.splice(fb(e.id),0,e),Uv())}function Uv(){!kl&&!ju&&(ju=!0,nd=$v.then(qv))}function db(e){const t=vr.indexOf(e);t>pn&&vr.splice(t,1)}function Wv(e,t,r,n){Pe(e)?r.push(...e):(!t||!t.includes(e,e.allowRecurse?n+1:n))&&r.push(e),Uv()}function hb(e){Wv(e,hs,ys,mo)}function pb(e){Wv(e,Pn,bs,_o)}function ec(e,t=null){if(ys.length){for(Uu=t,hs=[...new Set(ys)],ys.length=0,mo=0;mo<hs.length;mo++)hs[mo]();hs=null,mo=0,Uu=null,ec(e,t)}}function zv(e){if(ec(),bs.length){const t=[...new Set(bs)];if(bs.length=0,Pn){Pn.push(...t);return}for(Pn=t,Pn.sort((r,n)=>Ds(r)-Ds(n)),_o=0;_o<Pn.length;_o++)Pn[_o]();Pn=null,_o=0}}const Ds=e=>e.id==null?1/0:e.id;function qv(e){ju=!1,kl=!0,ec(e),vr.sort((r,n)=>Ds(r)-Ds(n));const t=kt;try{for(pn=0;pn<vr.length;pn++){const r=vr[pn];r&&r.active!==!1&&mn(r,null,14)}}finally{pn=0,vr.length=0,zv(),kl=!1,nd=null,(vr.length||ys.length||bs.length)&&qv(e)}}function vb(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||ut;let o=r;const i=t.startsWith("update:"),s=i&&t.slice(7);if(s&&s in n){const c=`${s==="modelValue"?"model":s}Modifiers`,{number:_,trim:v}=n[c]||ut;v&&(o=r.map(p=>p.trim())),_&&(o=r.map(Cv))}let a,l=n[a=iu(t)]||n[a=iu(Rr(t))];!l&&i&&(l=n[a=iu(Zn(t))]),l&&Tr(l,e,6,o);const u=n[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Tr(u,e,6,o)}}function Vv(e,t,r=!1){const n=t.emitsCache,o=n.get(e);if(o!==void 0)return o;const i=e.emits;let s={},a=!1;if(!Ue(e)){const l=u=>{const c=Vv(u,t,!0);c&&(a=!0,Pt(s,c))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(n.set(e,null),null):(Pe(i)?i.forEach(l=>s[l]=null):Pt(s,i),n.set(e,s),s)}function tc(e,t){return!e||!Yl(t)?!1:(t=t.slice(2).replace(/Once$/,""),qe(e,t[0].toLowerCase()+t.slice(1))||qe(e,Zn(t))||qe(e,t))}let zt=null,rc=null;function Tl(e){const t=zt;return zt=e,rc=e&&e.type.__scopeId||null,t}function nc(e){rc=e}function ic(){rc=null}function Q(e,t=zt,r){if(!t||e._n)return e;const n=(...o)=>{n._d&&Ih(-1);const i=Tl(t),s=e(...o);return Tl(i),n._d&&Ih(1),s};return n._n=!0,n._c=!0,n._d=!0,n}function ou(e){const{type:t,vnode:r,proxy:n,withProxy:o,props:i,propsOptions:[s],slots:a,attrs:l,emit:u,render:c,renderCache:_,data:v,setupState:p,ctx:g,inheritAttrs:b}=e;let m,d;const f=Tl(e);try{if(r.shapeFlag&4){const y=o||n;m=Zr(c.call(y,y,_,i,p,v,g)),d=l}else{const y=t;m=Zr(y.length>1?y(i,{attrs:l,slots:a,emit:u}):y(i,null)),d=t.props?l:gb(l)}}catch(y){Ss.length=0,Zl(y,e,1),m=G(rr)}let h=m;if(d&&b!==!1){const y=Object.keys(d),{shapeFlag:C}=h;y.length&&C&7&&(s&&y.some(Kf)&&(d=mb(d,s)),h=bn(h,d))}return r.dirs&&(h=bn(h),h.dirs=h.dirs?h.dirs.concat(r.dirs):r.dirs),r.transition&&(h.transition=r.transition),m=h,Tl(f),m}const gb=e=>{let t;for(const r in e)(r==="class"||r==="style"||Yl(r))&&((t||(t={}))[r]=e[r]);return t},mb=(e,t)=>{const r={};for(const n in e)(!Kf(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function _b(e,t,r){const{props:n,children:o,component:i}=e,{props:s,children:a,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?wh(n,s,u):!!s;if(l&8){const c=t.dynamicProps;for(let _=0;_<c.length;_++){const v=c[_];if(s[v]!==n[v]&&!tc(u,v))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:n===s?!1:n?s?wh(n,s,u):!0:!!s;return!1}function wh(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let o=0;o<n.length;o++){const i=n[o];if(t[i]!==e[i]&&!tc(r,i))return!0}return!1}function yb({vnode:e,parent:t},r){for(;t&&t.subTree===e;)(e=t.vnode).el=r,t=t.parent}const bb=e=>e.__isSuspense;function Cb(e,t){t&&t.pendingBranch?Pe(e)?t.effects.push(...e):t.effects.push(e):pb(e)}function ft(e,t){if(Ot){let r=Ot.provides;const n=Ot.parent&&Ot.parent.provides;n===r&&(r=Ot.provides=Object.create(n)),r[e]=t}}function Ie(e,t,r=!1){const n=Ot||zt;if(n){const o=n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return r&&Ue(t)?t.call(n.proxy):t}}function Bi(e,t){return id(e,null,t)}const Sh={};function Be(e,t,r){return id(e,t,r)}function id(e,t,{immediate:r,deep:n,flush:o,onTrack:i,onTrigger:s}=ut){const a=Ot;let l,u=!1,c=!1;if(yt(e)?(l=()=>e.value,u=$u(e)):So(e)?(l=()=>e,n=!0):Pe(e)?(c=!0,u=e.some(d=>So(d)||$u(d)),l=()=>e.map(d=>{if(yt(d))return d.value;if(So(d))return Ei(d);if(Ue(d))return mn(d,a,2)})):Ue(e)?t?l=()=>mn(e,a,2):l=()=>{if(!(a&&a.isUnmounted))return _&&_(),Tr(e,a,3,[v])}:l=kt,t&&n){const d=l;l=()=>Ei(d())}let _,v=d=>{_=m.onStop=()=>{mn(d,a,4)}};if($s)return v=kt,t?r&&Tr(t,a,3,[l(),c?[]:void 0,v]):l(),kt;let p=c?[]:Sh;const g=()=>{if(!!m.active)if(t){const d=m.run();(n||u||(c?d.some((f,h)=>Is(f,p[h])):Is(d,p)))&&(_&&_(),Tr(t,a,3,[d,p===Sh?void 0:p,v]),p=d)}else m.run()};g.allowRecurse=!!t;let b;o==="sync"?b=g:o==="post"?b=()=>Zt(g,a&&a.suspense):b=()=>hb(g);const m=new Qf(l,b);return t?r?g():p=m.run():o==="post"?Zt(m.run.bind(m),a&&a.suspense):m.run(),()=>{m.stop(),a&&a.scope&&Gf(a.scope.effects,m)}}function wb(e,t,r){const n=this.proxy,o=ze(e)?e.includes(".")?Kv(n,e):()=>n[e]:e.bind(n,n);let i;Ue(t)?i=t:(i=t.handler,r=t);const s=Ot;Lo(this);const a=id(o,i.bind(n),r);return s?Lo(s):Oi(),a}function Kv(e,t){const r=t.split(".");return()=>{let n=e;for(let o=0;o<r.length&&n;o++)n=n[r[o]];return n}}function Ei(e,t){if(!it(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),yt(e))Ei(e.value,t);else if(Pe(e))for(let r=0;r<e.length;r++)Ei(e[r],t);else if(Xl(e)||wo(e))e.forEach(r=>{Ei(r,t)});else if(bv(e))for(const r in e)Ei(e[r],t);return e}function Gv(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ht(()=>{e.isMounted=!0}),Yt(()=>{e.isUnmounting=!0}),e}const Er=[Function,Array],Sb={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Er,onEnter:Er,onAfterEnter:Er,onEnterCancelled:Er,onBeforeLeave:Er,onLeave:Er,onAfterLeave:Er,onLeaveCancelled:Er,onBeforeAppear:Er,onAppear:Er,onAfterAppear:Er,onAppearCancelled:Er},setup(e,{slots:t}){const r=ot(),n=Gv();let o;return()=>{const i=t.default&&od(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const b of i)if(b.type!==rr){s=b;break}}const a=nt(e),{mode:l}=a;if(n.isLeaving)return su(s);const u=xh(s);if(!u)return su(s);const c=Hs(u,a,n,r);Fs(u,c);const _=r.subTree,v=_&&xh(_);let p=!1;const{getTransitionKey:g}=u.type;if(g){const b=g();o===void 0?o=b:b!==o&&(o=b,p=!0)}if(v&&v.type!==rr&&(!wi(u,v)||p)){const b=Hs(v,a,n,r);if(Fs(v,b),l==="out-in")return n.isLeaving=!0,b.afterLeave=()=>{n.isLeaving=!1,r.update()},su(s);l==="in-out"&&u.type!==rr&&(b.delayLeave=(m,d,f)=>{const h=Xv(n,v);h[String(v.key)]=v,m._leaveCb=()=>{d(),m._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=f})}return s}}},Yv=Sb;function Xv(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function Hs(e,t,r,n){const{appear:o,mode:i,persisted:s=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:_,onLeave:v,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:b,onAppear:m,onAfterAppear:d,onAppearCancelled:f}=t,h=String(e.key),y=Xv(r,e),C=(E,k)=>{E&&Tr(E,n,9,k)},w=(E,k)=>{const x=k[1];C(E,k),Pe(E)?E.every(A=>A.length<=1)&&x():E.length<=1&&x()},S={mode:i,persisted:s,beforeEnter(E){let k=a;if(!r.isMounted)if(o)k=b||a;else return;E._leaveCb&&E._leaveCb(!0);const x=y[h];x&&wi(e,x)&&x.el._leaveCb&&x.el._leaveCb(),C(k,[E])},enter(E){let k=l,x=u,A=c;if(!r.isMounted)if(o)k=m||l,x=d||u,A=f||c;else return;let L=!1;const T=E._enterCb=H=>{L||(L=!0,H?C(A,[E]):C(x,[E]),S.delayedLeave&&S.delayedLeave(),E._enterCb=void 0)};k?w(k,[E,T]):T()},leave(E,k){const x=String(e.key);if(E._enterCb&&E._enterCb(!0),r.isUnmounting)return k();C(_,[E]);let A=!1;const L=E._leaveCb=T=>{A||(A=!0,k(),T?C(g,[E]):C(p,[E]),E._leaveCb=void 0,y[x]===e&&delete y[x])};y[x]=e,v?w(v,[E,L]):L()},clone(E){return Hs(E,t,r,n)}};return S}function su(e){if(oc(e))return e=bn(e),e.children=null,e}function xh(e){return oc(e)?e.children?e.children[0]:void 0:e}function Fs(e,t){e.shapeFlag&6&&e.component?Fs(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function od(e,t=!1,r){let n=[],o=0;for(let i=0;i<e.length;i++){let s=e[i];const a=r==null?s.key:String(r)+String(s.key!=null?s.key:i);s.type===Ve?(s.patchFlag&128&&o++,n=n.concat(od(s.children,t,a))):(t||s.type!==rr)&&n.push(a!=null?bn(s,{key:a}):s)}if(o>1)for(let i=0;i<n.length;i++)n[i].patchFlag=-2;return n}function we(e){return Ue(e)?{setup:e,name:e.name}:e}const Cs=e=>!!e.type.__asyncLoader,oc=e=>e.type.__isKeepAlive;function xb(e,t){Qv(e,"a",t)}function Eb(e,t){Qv(e,"da",t)}function Qv(e,t,r=Ot){const n=e.__wdc||(e.__wdc=()=>{let o=r;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(sc(t,n,r),r){let o=r.parent;for(;o&&o.parent;)oc(o.parent.vnode)&&Ab(n,t,r,o),o=o.parent}}function Ab(e,t,r,n){const o=sc(t,e,n,!0);Vo(()=>{Gf(n[t],o)},r)}function sc(e,t,r=Ot,n=!1){if(r){const o=r[e]||(r[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(r.isUnmounted)return;$i(),Lo(r);const a=Tr(t,r,e,s);return Oi(),ji(),a});return n?o.unshift(i):o.push(i),i}}const xn=e=>(t,r=Ot)=>(!$s||e==="sp")&&sc(e,t,r),ac=xn("bm"),ht=xn("m"),kb=xn("bu"),ei=xn("u"),Yt=xn("bum"),Vo=xn("um"),Tb=xn("sp"),Lb=xn("rtg"),Rb=xn("rtc");function Bb(e,t=Ot){sc("ec",e,t)}function at(e,t){const r=zt;if(r===null)return e;const n=cc(r)||r.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,a,l,u=ut]=t[i];Ue(s)&&(s={mounted:s,updated:s}),s.deep&&Ei(a),o.push({dir:s,instance:n,value:a,oldValue:void 0,arg:l,modifiers:u})}return e}function pi(e,t,r,n){const o=e.dirs,i=t&&t.dirs;for(let s=0;s<o.length;s++){const a=o[s];i&&(a.oldValue=i[s].value);let l=a.dir[n];l&&($i(),Tr(l,r,8,[e.el,a,e,t]),ji())}}const sd="components",Ob="directives";function Oe(e,t){return ld(sd,e,!0,t)||e}const Jv=Symbol();function jt(e){return ze(e)?ld(sd,e,!1)||e:e||Jv}function ad(e){return ld(Ob,e)}function ld(e,t,r=!0,n=!1){const o=zt||Ot;if(o){const i=o.type;if(e===sd){const a=pg(i);if(a&&(a===t||a===Rr(t)||a===$r(Rr(t))))return i}const s=Eh(o[e]||i[e],t)||Eh(o.appContext[e],t);return!s&&n?i:s}}function Eh(e,t){return e&&(e[t]||e[Rr(t)]||e[$r(Rr(t))])}function Wr(e,t,r,n){let o;const i=r&&r[n];if(Pe(e)||ze(e)){o=new Array(e.length);for(let s=0,a=e.length;s<a;s++)o[s]=t(e[s],s,void 0,i&&i[s])}else if(typeof e=="number"){o=new Array(e);for(let s=0;s<e;s++)o[s]=t(s+1,s,void 0,i&&i[s])}else if(it(e))if(e[Symbol.iterator])o=Array.from(e,(s,a)=>t(s,a,void 0,i&&i[a]));else{const s=Object.keys(e);o=new Array(s.length);for(let a=0,l=s.length;a<l;a++){const u=s[a];o[a]=t(e[u],u,a,i&&i[a])}}else o=[];return r&&(r[n]=o),o}function cd(e,t){for(let r=0;r<t.length;r++){const n=t[r];if(Pe(n))for(let o=0;o<n.length;o++)e[n[o].name]=n[o].fn;else n&&(e[n.name]=n.fn)}return e}function Ee(e,t,r={},n,o){if(zt.isCE||zt.parent&&Cs(zt.parent)&&zt.parent.isCE)return G("slot",t==="default"?null:{name:t},n&&n());let i=e[t];i&&i._c&&(i._d=!1),K();const s=i&&Zv(i(r)),a=Ce(Ve,{key:r.key||`_${t}`},s||(n?n():[]),s&&e._===1?64:-2);return!o&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function Zv(e){return e.some(t=>It(t)?!(t.type===rr||t.type===Ve&&!Zv(t.children)):!0)?e:null}const Wu=e=>e?fg(e)?cc(e)||e.proxy:Wu(e.parent):null,Ll=Pt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Wu(e.parent),$root:e=>Wu(e.root),$emit:e=>e.emit,$options:e=>tg(e),$forceUpdate:e=>e.f||(e.f=()=>jv(e.update)),$nextTick:e=>e.n||(e.n=Xe.bind(e.proxy)),$watch:e=>wb.bind(e)}),Ib={get({_:e},t){const{ctx:r,setupState:n,data:o,props:i,accessCache:s,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const p=s[t];if(p!==void 0)switch(p){case 1:return n[t];case 2:return o[t];case 4:return r[t];case 3:return i[t]}else{if(n!==ut&&qe(n,t))return s[t]=1,n[t];if(o!==ut&&qe(o,t))return s[t]=2,o[t];if((u=e.propsOptions[0])&&qe(u,t))return s[t]=3,i[t];if(r!==ut&&qe(r,t))return s[t]=4,r[t];zu&&(s[t]=0)}}const c=Ll[t];let _,v;if(c)return t==="$attrs"&&br(e,"get",t),c(e);if((_=a.__cssModules)&&(_=_[t]))return _;if(r!==ut&&qe(r,t))return s[t]=4,r[t];if(v=l.config.globalProperties,qe(v,t))return v[t]},set({_:e},t,r){const{data:n,setupState:o,ctx:i}=e;return o!==ut&&qe(o,t)?(o[t]=r,!0):n!==ut&&qe(n,t)?(n[t]=r,!0):qe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:o,propsOptions:i}},s){let a;return!!r[s]||e!==ut&&qe(e,s)||t!==ut&&qe(t,s)||(a=i[0])&&qe(a,s)||qe(n,s)||qe(Ll,s)||qe(o.config.globalProperties,s)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:qe(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};let zu=!0;function Mb(e){const t=tg(e),r=e.proxy,n=e.ctx;zu=!1,t.beforeCreate&&Ah(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:s,watch:a,provide:l,inject:u,created:c,beforeMount:_,mounted:v,beforeUpdate:p,updated:g,activated:b,deactivated:m,beforeDestroy:d,beforeUnmount:f,destroyed:h,unmounted:y,render:C,renderTracked:w,renderTriggered:S,errorCaptured:E,serverPrefetch:k,expose:x,inheritAttrs:A,components:L,directives:T,filters:H}=t;if(u&&Pb(u,n,null,e.appContext.config.unwrapInjectedRef),s)for(const I in s){const M=s[I];Ue(M)&&(n[I]=M.bind(r))}if(o){const I=o.call(r,r);it(I)&&(e.data=sr(I))}if(zu=!0,i)for(const I in i){const M=i[I],$=Ue(M)?M.bind(r,r):Ue(M.get)?M.get.bind(r,r):kt,V=!Ue(M)&&Ue(M.set)?M.set.bind(r):kt,U=J({get:$,set:V});Object.defineProperty(n,I,{enumerable:!0,configurable:!0,get:()=>U.value,set:Y=>U.value=Y})}if(a)for(const I in a)eg(a[I],n,r,I);if(l){const I=Ue(l)?l.call(r):l;Reflect.ownKeys(I).forEach(M=>{ft(M,I[M])})}c&&Ah(c,e,"c");function R(I,M){Pe(M)?M.forEach($=>I($.bind(r))):M&&I(M.bind(r))}if(R(ac,_),R(ht,v),R(kb,p),R(ei,g),R(xb,b),R(Eb,m),R(Bb,E),R(Rb,w),R(Lb,S),R(Yt,f),R(Vo,y),R(Tb,k),Pe(x))if(x.length){const I=e.exposed||(e.exposed={});x.forEach(M=>{Object.defineProperty(I,M,{get:()=>r[M],set:$=>r[M]=$})})}else e.exposed||(e.exposed={});C&&e.render===kt&&(e.render=C),A!=null&&(e.inheritAttrs=A),L&&(e.components=L),T&&(e.directives=T)}function Pb(e,t,r=kt,n=!1){Pe(e)&&(e=qu(e));for(const o in e){const i=e[o];let s;it(i)?"default"in i?s=Ie(i.from||o,i.default,!0):s=Ie(i.from||o):s=Ie(i),yt(s)&&n?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:a=>s.value=a}):t[o]=s}}function Ah(e,t,r){Tr(Pe(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function eg(e,t,r,n){const o=n.includes(".")?Kv(r,n):()=>r[n];if(ze(e)){const i=t[e];Ue(i)&&Be(o,i)}else if(Ue(e))Be(o,e.bind(r));else if(it(e))if(Pe(e))e.forEach(i=>eg(i,t,r,n));else{const i=Ue(e.handler)?e.handler.bind(r):t[e.handler];Ue(i)&&Be(o,i,e)}}function tg(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,a=i.get(t);let l;return a?l=a:!o.length&&!r&&!n?l=t:(l={},o.length&&o.forEach(u=>Rl(l,u,s,!0)),Rl(l,t,s)),i.set(t,l),l}function Rl(e,t,r,n=!1){const{mixins:o,extends:i}=t;i&&Rl(e,i,r,!0),o&&o.forEach(s=>Rl(e,s,r,!0));for(const s in t)if(!(n&&s==="expose")){const a=Db[s]||r&&r[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const Db={data:kh,props:yi,emits:yi,methods:yi,computed:yi,beforeCreate:Vt,created:Vt,beforeMount:Vt,mounted:Vt,beforeUpdate:Vt,updated:Vt,beforeDestroy:Vt,beforeUnmount:Vt,destroyed:Vt,unmounted:Vt,activated:Vt,deactivated:Vt,errorCaptured:Vt,serverPrefetch:Vt,components:yi,directives:yi,watch:Fb,provide:kh,inject:Hb};function kh(e,t){return t?e?function(){return Pt(Ue(e)?e.call(this,this):e,Ue(t)?t.call(this,this):t)}:t:e}function Hb(e,t){return yi(qu(e),qu(t))}function qu(e){if(Pe(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Vt(e,t){return e?[...new Set([].concat(e,t))]:t}function yi(e,t){return e?Pt(Pt(Object.create(null),e),t):t}function Fb(e,t){if(!e)return t;if(!t)return e;const r=Pt(Object.create(null),e);for(const n in t)r[n]=Vt(e[n],t[n]);return r}function Nb(e,t,r,n=!1){const o={},i={};Al(i,lc,1),e.propsDefaults=Object.create(null),rg(e,t,o,i);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);r?e.props=n?o:Z1(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function $b(e,t,r,n){const{props:o,attrs:i,vnode:{patchFlag:s}}=e,a=nt(o),[l]=e.propsOptions;let u=!1;if((n||s>0)&&!(s&16)){if(s&8){const c=e.vnode.dynamicProps;for(let _=0;_<c.length;_++){let v=c[_];if(tc(e.emitsOptions,v))continue;const p=t[v];if(l)if(qe(i,v))p!==i[v]&&(i[v]=p,u=!0);else{const g=Rr(v);o[g]=Vu(l,a,g,p,e,!1)}else p!==i[v]&&(i[v]=p,u=!0)}}}else{rg(e,t,o,i)&&(u=!0);let c;for(const _ in a)(!t||!qe(t,_)&&((c=Zn(_))===_||!qe(t,c)))&&(l?r&&(r[_]!==void 0||r[c]!==void 0)&&(o[_]=Vu(l,a,_,void 0,e,!0)):delete o[_]);if(i!==a)for(const _ in i)(!t||!qe(t,_)&&!0)&&(delete i[_],u=!0)}u&&yn(e,"set","$attrs")}function rg(e,t,r,n){const[o,i]=e.propsOptions;let s=!1,a;if(t)for(let l in t){if(al(l))continue;const u=t[l];let c;o&&qe(o,c=Rr(l))?!i||!i.includes(c)?r[c]=u:(a||(a={}))[c]=u:tc(e.emitsOptions,l)||(!(l in n)||u!==n[l])&&(n[l]=u,s=!0)}if(i){const l=nt(r),u=a||ut;for(let c=0;c<i.length;c++){const _=i[c];r[_]=Vu(o,l,_,u[_],e,!qe(u,_))}}return s}function Vu(e,t,r,n,o,i){const s=e[r];if(s!=null){const a=qe(s,"default");if(a&&n===void 0){const l=s.default;if(s.type!==Function&&Ue(l)){const{propsDefaults:u}=o;r in u?n=u[r]:(Lo(o),n=u[r]=l.call(null,t),Oi())}else n=l}s[0]&&(i&&!a?n=!1:s[1]&&(n===""||n===Zn(r))&&(n=!0))}return n}function ng(e,t,r=!1){const n=t.propsCache,o=n.get(e);if(o)return o;const i=e.props,s={},a=[];let l=!1;if(!Ue(e)){const c=_=>{l=!0;const[v,p]=ng(_,t,!0);Pt(s,v),p&&a.push(...p)};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return n.set(e,Co),Co;if(Pe(i))for(let c=0;c<i.length;c++){const _=Rr(i[c]);Th(_)&&(s[_]=ut)}else if(i)for(const c in i){const _=Rr(c);if(Th(_)){const v=i[c],p=s[_]=Pe(v)||Ue(v)?{type:v}:v;if(p){const g=Bh(Boolean,p.type),b=Bh(String,p.type);p[0]=g>-1,p[1]=b<0||g<b,(g>-1||qe(p,"default"))&&a.push(_)}}}const u=[s,a];return n.set(e,u),u}function Th(e){return e[0]!=="$"}function Lh(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function Rh(e,t){return Lh(e)===Lh(t)}function Bh(e,t){return Pe(t)?t.findIndex(r=>Rh(r,e)):Ue(t)&&Rh(t,e)?0:-1}const ig=e=>e[0]==="_"||e==="$stable",ud=e=>Pe(e)?e.map(Zr):[Zr(e)],jb=(e,t,r)=>{if(t._n)return t;const n=Q((...o)=>ud(t(...o)),r);return n._c=!1,n},og=(e,t,r)=>{const n=e._ctx;for(const o in e){if(ig(o))continue;const i=e[o];if(Ue(i))t[o]=jb(o,i,n);else if(i!=null){const s=ud(i);t[o]=()=>s}}},sg=(e,t)=>{const r=ud(t);e.slots.default=()=>r},Ub=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=nt(t),Al(t,"_",r)):og(t,e.slots={})}else e.slots={},t&&sg(e,t);Al(e.slots,lc,1)},Wb=(e,t,r)=>{const{vnode:n,slots:o}=e;let i=!0,s=ut;if(n.shapeFlag&32){const a=t._;a?r&&a===1?i=!1:(Pt(o,t),!r&&a===1&&delete o._):(i=!t.$stable,og(t,o)),s=t}else t&&(sg(e,t),s={default:1});if(i)for(const a in o)!ig(a)&&!(a in s)&&delete o[a]};function ag(){return{app:null,config:{isNativeTag:_1,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let zb=0;function qb(e,t){return function(n,o=null){Ue(n)||(n=Object.assign({},n)),o!=null&&!it(o)&&(o=null);const i=ag(),s=new Set;let a=!1;const l=i.app={_uid:zb++,_component:n,_props:o,_container:null,_context:i,_instance:null,version:cC,get config(){return i.config},set config(u){},use(u,...c){return s.has(u)||(u&&Ue(u.install)?(s.add(u),u.install(l,...c)):Ue(u)&&(s.add(u),u(l,...c))),l},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),l},component(u,c){return c?(i.components[u]=c,l):i.components[u]},directive(u,c){return c?(i.directives[u]=c,l):i.directives[u]},mount(u,c,_){if(!a){const v=G(n,o);return v.appContext=i,c&&t?t(v,u):e(v,u,_),a=!0,l._container=u,u.__vue_app__=l,cc(v.component)||v.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,c){return i.provides[u]=c,l}};return l}}function Ku(e,t,r,n,o=!1){if(Pe(e)){e.forEach((v,p)=>Ku(v,t&&(Pe(t)?t[p]:t),r,n,o));return}if(Cs(n)&&!o)return;const i=n.shapeFlag&4?cc(n.component)||n.component.proxy:n.el,s=o?null:i,{i:a,r:l}=e,u=t&&t.r,c=a.refs===ut?a.refs={}:a.refs,_=a.setupState;if(u!=null&&u!==l&&(ze(u)?(c[u]=null,qe(_,u)&&(_[u]=null)):yt(u)&&(u.value=null)),Ue(l))mn(l,a,12,[s,c]);else{const v=ze(l),p=yt(l);if(v||p){const g=()=>{if(e.f){const b=v?c[l]:l.value;o?Pe(b)&&Gf(b,i):Pe(b)?b.includes(i)||b.push(i):v?(c[l]=[i],qe(_,l)&&(_[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else v?(c[l]=s,qe(_,l)&&(_[l]=s)):yt(l)&&(l.value=s,e.k&&(c[e.k]=s))};s?(g.id=-1,Zt(g,r)):g()}}}const Zt=Cb;function Vb(e){return Kb(e)}function Kb(e,t){const r=x1();r.__VUE__=!0;const{insert:n,remove:o,patchProp:i,createElement:s,createText:a,createComment:l,setText:u,setElementText:c,parentNode:_,nextSibling:v,setScopeId:p=kt,cloneNode:g,insertStaticContent:b}=e,m=(j,q,ie,ee=null,ae=null,pe=null,be=!1,he=null,_e=!!q.dynamicChildren)=>{if(j===q)return;j&&!wi(j,q)&&(ee=D(j),Z(j,ae,pe,!0),j=null),q.patchFlag===-2&&(_e=!1,q.dynamicChildren=null);const{type:ce,ref:re,shapeFlag:ve}=q;switch(ce){case Zs:d(j,q,ie,ee);break;case rr:f(j,q,ie,ee);break;case au:j==null&&h(q,ie,ee,be);break;case Ve:T(j,q,ie,ee,ae,pe,be,he,_e);break;default:ve&1?w(j,q,ie,ee,ae,pe,be,he,_e):ve&6?H(j,q,ie,ee,ae,pe,be,he,_e):(ve&64||ve&128)&&ce.process(j,q,ie,ee,ae,pe,be,he,_e,ue)}re!=null&&ae&&Ku(re,j&&j.ref,pe,q||j,!q)},d=(j,q,ie,ee)=>{if(j==null)n(q.el=a(q.children),ie,ee);else{const ae=q.el=j.el;q.children!==j.children&&u(ae,q.children)}},f=(j,q,ie,ee)=>{j==null?n(q.el=l(q.children||""),ie,ee):q.el=j.el},h=(j,q,ie,ee)=>{[j.el,j.anchor]=b(j.children,q,ie,ee,j.el,j.anchor)},y=({el:j,anchor:q},ie,ee)=>{let ae;for(;j&&j!==q;)ae=v(j),n(j,ie,ee),j=ae;n(q,ie,ee)},C=({el:j,anchor:q})=>{let ie;for(;j&&j!==q;)ie=v(j),o(j),j=ie;o(q)},w=(j,q,ie,ee,ae,pe,be,he,_e)=>{be=be||q.type==="svg",j==null?S(q,ie,ee,ae,pe,be,he,_e):x(j,q,ae,pe,be,he,_e)},S=(j,q,ie,ee,ae,pe,be,he)=>{let _e,ce;const{type:re,props:ve,shapeFlag:Ae,transition:Le,patchFlag:$e,dirs:ye}=j;if(j.el&&g!==void 0&&$e===-1)_e=j.el=g(j.el);else{if(_e=j.el=s(j.type,pe,ve&&ve.is,ve),Ae&8?c(_e,j.children):Ae&16&&k(j.children,_e,null,ee,ae,pe&&re!=="foreignObject",be,he),ye&&pi(j,null,ee,"created"),ve){for(const Re in ve)Re!=="value"&&!al(Re)&&i(_e,Re,null,ve[Re],pe,j.children,ee,ae,O);"value"in ve&&i(_e,"value",null,ve.value),(ce=ve.onVnodeBeforeMount)&&Jr(ce,ee,j)}E(_e,j,j.scopeId,be,ee)}ye&&pi(j,null,ee,"beforeMount");const xe=(!ae||ae&&!ae.pendingBranch)&&Le&&!Le.persisted;xe&&Le.beforeEnter(_e),n(_e,q,ie),((ce=ve&&ve.onVnodeMounted)||xe||ye)&&Zt(()=>{ce&&Jr(ce,ee,j),xe&&Le.enter(_e),ye&&pi(j,null,ee,"mounted")},ae)},E=(j,q,ie,ee,ae)=>{if(ie&&p(j,ie),ee)for(let pe=0;pe<ee.length;pe++)p(j,ee[pe]);if(ae){let pe=ae.subTree;if(q===pe){const be=ae.vnode;E(j,be,be.scopeId,be.slotScopeIds,ae.parent)}}},k=(j,q,ie,ee,ae,pe,be,he,_e=0)=>{for(let ce=_e;ce<j.length;ce++){const re=j[ce]=he?Nn(j[ce]):Zr(j[ce]);m(null,re,q,ie,ee,ae,pe,be,he)}},x=(j,q,ie,ee,ae,pe,be)=>{const he=q.el=j.el;let{patchFlag:_e,dynamicChildren:ce,dirs:re}=q;_e|=j.patchFlag&16;const ve=j.props||ut,Ae=q.props||ut;let Le;ie&&vi(ie,!1),(Le=Ae.onVnodeBeforeUpdate)&&Jr(Le,ie,q,j),re&&pi(q,j,ie,"beforeUpdate"),ie&&vi(ie,!0);const $e=ae&&q.type!=="foreignObject";if(ce?A(j.dynamicChildren,ce,he,ie,ee,$e,pe):be||$(j,q,he,null,ie,ee,$e,pe,!1),_e>0){if(_e&16)L(he,q,ve,Ae,ie,ee,ae);else if(_e&2&&ve.class!==Ae.class&&i(he,"class",null,Ae.class,ae),_e&4&&i(he,"style",ve.style,Ae.style,ae),_e&8){const ye=q.dynamicProps;for(let xe=0;xe<ye.length;xe++){const Re=ye[xe],Me=ve[Re],Ke=Ae[Re];(Ke!==Me||Re==="value")&&i(he,Re,Me,Ke,ae,j.children,ie,ee,O)}}_e&1&&j.children!==q.children&&c(he,q.children)}else!be&&ce==null&&L(he,q,ve,Ae,ie,ee,ae);((Le=Ae.onVnodeUpdated)||re)&&Zt(()=>{Le&&Jr(Le,ie,q,j),re&&pi(q,j,ie,"updated")},ee)},A=(j,q,ie,ee,ae,pe,be)=>{for(let he=0;he<q.length;he++){const _e=j[he],ce=q[he],re=_e.el&&(_e.type===Ve||!wi(_e,ce)||_e.shapeFlag&70)?_(_e.el):ie;m(_e,ce,re,null,ee,ae,pe,be,!0)}},L=(j,q,ie,ee,ae,pe,be)=>{if(ie!==ee){for(const he in ee){if(al(he))continue;const _e=ee[he],ce=ie[he];_e!==ce&&he!=="value"&&i(j,he,ce,_e,be,q.children,ae,pe,O)}if(ie!==ut)for(const he in ie)!al(he)&&!(he in ee)&&i(j,he,ie[he],null,be,q.children,ae,pe,O);"value"in ee&&i(j,"value",ie.value,ee.value)}},T=(j,q,ie,ee,ae,pe,be,he,_e)=>{const ce=q.el=j?j.el:a(""),re=q.anchor=j?j.anchor:a("");let{patchFlag:ve,dynamicChildren:Ae,slotScopeIds:Le}=q;Le&&(he=he?he.concat(Le):Le),j==null?(n(ce,ie,ee),n(re,ie,ee),k(q.children,ie,re,ae,pe,be,he,_e)):ve>0&&ve&64&&Ae&&j.dynamicChildren?(A(j.dynamicChildren,Ae,ie,ae,pe,be,he),(q.key!=null||ae&&q===ae.subTree)&&fd(j,q,!0)):$(j,q,ie,re,ae,pe,be,he,_e)},H=(j,q,ie,ee,ae,pe,be,he,_e)=>{q.slotScopeIds=he,j==null?q.shapeFlag&512?ae.ctx.activate(q,ie,ee,be,_e):P(q,ie,ee,ae,pe,be,_e):R(j,q,_e)},P=(j,q,ie,ee,ae,pe,be)=>{const he=j.component=rC(j,ee,ae);if(oc(j)&&(he.ctx.renderer=ue),nC(he),he.asyncDep){if(ae&&ae.registerDep(he,I),!j.el){const _e=he.subTree=G(rr);f(null,_e,q,ie)}return}I(he,j,q,ie,ae,pe,be)},R=(j,q,ie)=>{const ee=q.component=j.component;if(_b(j,q,ie))if(ee.asyncDep&&!ee.asyncResolved){M(ee,q,ie);return}else ee.next=q,db(ee.update),ee.update();else q.el=j.el,ee.vnode=q},I=(j,q,ie,ee,ae,pe,be)=>{const he=()=>{if(j.isMounted){let{next:re,bu:ve,u:Ae,parent:Le,vnode:$e}=j,ye=re,xe;vi(j,!1),re?(re.el=$e.el,M(j,re,be)):re=$e,ve&&ll(ve),(xe=re.props&&re.props.onVnodeBeforeUpdate)&&Jr(xe,Le,re,$e),vi(j,!0);const Re=ou(j),Me=j.subTree;j.subTree=Re,m(Me,Re,_(Me.el),D(Me),j,ae,pe),re.el=Re.el,ye===null&&yb(j,Re.el),Ae&&Zt(Ae,ae),(xe=re.props&&re.props.onVnodeUpdated)&&Zt(()=>Jr(xe,Le,re,$e),ae)}else{let re;const{el:ve,props:Ae}=q,{bm:Le,m:$e,parent:ye}=j,xe=Cs(q);if(vi(j,!1),Le&&ll(Le),!xe&&(re=Ae&&Ae.onVnodeBeforeMount)&&Jr(re,ye,q),vi(j,!0),ve&&ge){const Re=()=>{j.subTree=ou(j),ge(ve,j.subTree,j,ae,null)};xe?q.type.__asyncLoader().then(()=>!j.isUnmounted&&Re()):Re()}else{const Re=j.subTree=ou(j);m(null,Re,ie,ee,j,ae,pe),q.el=Re.el}if($e&&Zt($e,ae),!xe&&(re=Ae&&Ae.onVnodeMounted)){const Re=q;Zt(()=>Jr(re,ye,Re),ae)}(q.shapeFlag&256||ye&&Cs(ye.vnode)&&ye.vnode.shapeFlag&256)&&j.a&&Zt(j.a,ae),j.isMounted=!0,q=ie=ee=null}},_e=j.effect=new Qf(he,()=>jv(ce),j.scope),ce=j.update=()=>_e.run();ce.id=j.uid,vi(j,!0),ce()},M=(j,q,ie)=>{q.component=j;const ee=j.vnode.props;j.vnode=q,j.next=null,$b(j,q.props,ee,ie),Wb(j,q.children,ie),$i(),ec(void 0,j.update),ji()},$=(j,q,ie,ee,ae,pe,be,he,_e=!1)=>{const ce=j&&j.children,re=j?j.shapeFlag:0,ve=q.children,{patchFlag:Ae,shapeFlag:Le}=q;if(Ae>0){if(Ae&128){U(ce,ve,ie,ee,ae,pe,be,he,_e);return}else if(Ae&256){V(ce,ve,ie,ee,ae,pe,be,he,_e);return}}Le&8?(re&16&&O(ce,ae,pe),ve!==ce&&c(ie,ve)):re&16?Le&16?U(ce,ve,ie,ee,ae,pe,be,he,_e):O(ce,ae,pe,!0):(re&8&&c(ie,""),Le&16&&k(ve,ie,ee,ae,pe,be,he,_e))},V=(j,q,ie,ee,ae,pe,be,he,_e)=>{j=j||Co,q=q||Co;const ce=j.length,re=q.length,ve=Math.min(ce,re);let Ae;for(Ae=0;Ae<ve;Ae++){const Le=q[Ae]=_e?Nn(q[Ae]):Zr(q[Ae]);m(j[Ae],Le,ie,null,ae,pe,be,he,_e)}ce>re?O(j,ae,pe,!0,!1,ve):k(q,ie,ee,ae,pe,be,he,_e,ve)},U=(j,q,ie,ee,ae,pe,be,he,_e)=>{let ce=0;const re=q.length;let ve=j.length-1,Ae=re-1;for(;ce<=ve&&ce<=Ae;){const Le=j[ce],$e=q[ce]=_e?Nn(q[ce]):Zr(q[ce]);if(wi(Le,$e))m(Le,$e,ie,null,ae,pe,be,he,_e);else break;ce++}for(;ce<=ve&&ce<=Ae;){const Le=j[ve],$e=q[Ae]=_e?Nn(q[Ae]):Zr(q[Ae]);if(wi(Le,$e))m(Le,$e,ie,null,ae,pe,be,he,_e);else break;ve--,Ae--}if(ce>ve){if(ce<=Ae){const Le=Ae+1,$e=Le<re?q[Le].el:ee;for(;ce<=Ae;)m(null,q[ce]=_e?Nn(q[ce]):Zr(q[ce]),ie,$e,ae,pe,be,he,_e),ce++}}else if(ce>Ae)for(;ce<=ve;)Z(j[ce],ae,pe,!0),ce++;else{const Le=ce,$e=ce,ye=new Map;for(ce=$e;ce<=Ae;ce++){const st=q[ce]=_e?Nn(q[ce]):Zr(q[ce]);st.key!=null&&ye.set(st.key,ce)}let xe,Re=0;const Me=Ae-$e+1;let Ke=!1,pt=0;const vt=new Array(Me);for(ce=0;ce<Me;ce++)vt[ce]=0;for(ce=Le;ce<=ve;ce++){const st=j[ce];if(Re>=Me){Z(st,ae,pe,!0);continue}let At;if(st.key!=null)At=ye.get(st.key);else for(xe=$e;xe<=Ae;xe++)if(vt[xe-$e]===0&&wi(st,q[xe])){At=xe;break}At===void 0?Z(st,ae,pe,!0):(vt[At-$e]=ce+1,At>=pt?pt=At:Ke=!0,m(st,q[At],ie,null,ae,pe,be,he,_e),Re++)}const Ht=Ke?Gb(vt):Co;for(xe=Ht.length-1,ce=Me-1;ce>=0;ce--){const st=$e+ce,At=q[st],Sr=st+1<re?q[st+1].el:ee;vt[ce]===0?m(null,At,ie,Sr,ae,pe,be,he,_e):Ke&&(xe<0||ce!==Ht[xe]?Y(At,ie,Sr,2):xe--)}}},Y=(j,q,ie,ee,ae=null)=>{const{el:pe,type:be,transition:he,children:_e,shapeFlag:ce}=j;if(ce&6){Y(j.component.subTree,q,ie,ee);return}if(ce&128){j.suspense.move(q,ie,ee);return}if(ce&64){be.move(j,q,ie,ue);return}if(be===Ve){n(pe,q,ie);for(let ve=0;ve<_e.length;ve++)Y(_e[ve],q,ie,ee);n(j.anchor,q,ie);return}if(be===au){y(j,q,ie);return}if(ee!==2&&ce&1&&he)if(ee===0)he.beforeEnter(pe),n(pe,q,ie),Zt(()=>he.enter(pe),ae);else{const{leave:ve,delayLeave:Ae,afterLeave:Le}=he,$e=()=>n(pe,q,ie),ye=()=>{ve(pe,()=>{$e(),Le&&Le()})};Ae?Ae(pe,$e,ye):ye()}else n(pe,q,ie)},Z=(j,q,ie,ee=!1,ae=!1)=>{const{type:pe,props:be,ref:he,children:_e,dynamicChildren:ce,shapeFlag:re,patchFlag:ve,dirs:Ae}=j;if(he!=null&&Ku(he,null,ie,j,!0),re&256){q.ctx.deactivate(j);return}const Le=re&1&&Ae,$e=!Cs(j);let ye;if($e&&(ye=be&&be.onVnodeBeforeUnmount)&&Jr(ye,q,j),re&6)z(j.component,ie,ee);else{if(re&128){j.suspense.unmount(ie,ee);return}Le&&pi(j,null,q,"beforeUnmount"),re&64?j.type.remove(j,q,ie,ae,ue,ee):ce&&(pe!==Ve||ve>0&&ve&64)?O(ce,q,ie,!1,!0):(pe===Ve&&ve&384||!ae&&re&16)&&O(_e,q,ie),ee&&te(j)}($e&&(ye=be&&be.onVnodeUnmounted)||Le)&&Zt(()=>{ye&&Jr(ye,q,j),Le&&pi(j,null,q,"unmounted")},ie)},te=j=>{const{type:q,el:ie,anchor:ee,transition:ae}=j;if(q===Ve){B(ie,ee);return}if(q===au){C(j);return}const pe=()=>{o(ie),ae&&!ae.persisted&&ae.afterLeave&&ae.afterLeave()};if(j.shapeFlag&1&&ae&&!ae.persisted){const{leave:be,delayLeave:he}=ae,_e=()=>be(ie,pe);he?he(j.el,pe,_e):_e()}else pe()},B=(j,q)=>{let ie;for(;j!==q;)ie=v(j),o(j),j=ie;o(q)},z=(j,q,ie)=>{const{bum:ee,scope:ae,update:pe,subTree:be,um:he}=j;ee&&ll(ee),ae.stop(),pe&&(pe.active=!1,Z(be,j,q,ie)),he&&Zt(he,q),Zt(()=>{j.isUnmounted=!0},q),q&&q.pendingBranch&&!q.isUnmounted&&j.asyncDep&&!j.asyncResolved&&j.suspenseId===q.pendingId&&(q.deps--,q.deps===0&&q.resolve())},O=(j,q,ie,ee=!1,ae=!1,pe=0)=>{for(let be=pe;be<j.length;be++)Z(j[be],q,ie,ee,ae)},D=j=>j.shapeFlag&6?D(j.component.subTree):j.shapeFlag&128?j.suspense.next():v(j.anchor||j.el),F=(j,q,ie)=>{j==null?q._vnode&&Z(q._vnode,null,null,!0):m(q._vnode||null,j,q,null,null,null,ie),zv(),q._vnode=j},ue={p:m,um:Z,m:Y,r:te,mt:P,mc:k,pc:$,pbc:A,n:D,o:e};let fe,ge;return t&&([fe,ge]=t(ue)),{render:F,hydrate:fe,createApp:qb(F,fe)}}function vi({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function fd(e,t,r=!1){const n=e.children,o=t.children;if(Pe(n)&&Pe(o))for(let i=0;i<n.length;i++){const s=n[i];let a=o[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[i]=Nn(o[i]),a.el=s.el),r||fd(s,a))}}function Gb(e){const t=e.slice(),r=[0];let n,o,i,s,a;const l=e.length;for(n=0;n<l;n++){const u=e[n];if(u!==0){if(o=r[r.length-1],e[o]<u){t[n]=o,r.push(n);continue}for(i=0,s=r.length-1;i<s;)a=i+s>>1,e[r[a]]<u?i=a+1:s=a;u<e[r[i]]&&(i>0&&(t[n]=r[i-1]),r[i]=n)}}for(i=r.length,s=r[i-1];i-- >0;)r[i]=s,s=t[s];return r}const Yb=e=>e.__isTeleport,ws=e=>e&&(e.disabled||e.disabled===""),Oh=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,Gu=(e,t)=>{const r=e&&e.to;return ze(r)?t?t(r):null:r},Xb={__isTeleport:!0,process(e,t,r,n,o,i,s,a,l,u){const{mc:c,pc:_,pbc:v,o:{insert:p,querySelector:g,createText:b,createComment:m}}=u,d=ws(t.props);let{shapeFlag:f,children:h,dynamicChildren:y}=t;if(e==null){const C=t.el=b(""),w=t.anchor=b("");p(C,r,n),p(w,r,n);const S=t.target=Gu(t.props,g),E=t.targetAnchor=b("");S&&(p(E,S),s=s||Oh(S));const k=(x,A)=>{f&16&&c(h,x,A,o,i,s,a,l)};d?k(r,w):S&&k(S,E)}else{t.el=e.el;const C=t.anchor=e.anchor,w=t.target=e.target,S=t.targetAnchor=e.targetAnchor,E=ws(e.props),k=E?r:w,x=E?C:S;if(s=s||Oh(w),y?(v(e.dynamicChildren,y,k,o,i,s,a),fd(e,t,!0)):l||_(e,t,k,x,o,i,s,a,!1),d)E||Ua(t,r,C,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const A=t.target=Gu(t.props,g);A&&Ua(t,A,null,u,0)}else E&&Ua(t,w,S,u,1)}},remove(e,t,r,n,{um:o,o:{remove:i}},s){const{shapeFlag:a,children:l,anchor:u,targetAnchor:c,target:_,props:v}=e;if(_&&i(c),(s||!ws(v))&&(i(u),a&16))for(let p=0;p<l.length;p++){const g=l[p];o(g,t,r,!0,!!g.dynamicChildren)}},move:Ua,hydrate:Qb};function Ua(e,t,r,{o:{insert:n},m:o},i=2){i===0&&n(e.targetAnchor,t,r);const{el:s,anchor:a,shapeFlag:l,children:u,props:c}=e,_=i===2;if(_&&n(s,t,r),(!_||ws(c))&&l&16)for(let v=0;v<u.length;v++)o(u[v],t,r,2);_&&n(a,t,r)}function Qb(e,t,r,n,o,i,{o:{nextSibling:s,parentNode:a,querySelector:l}},u){const c=t.target=Gu(t.props,l);if(c){const _=c._lpa||c.firstChild;if(t.shapeFlag&16)if(ws(t.props))t.anchor=u(s(e),t,a(e),r,n,o,i),t.targetAnchor=_;else{t.anchor=s(e);let v=_;for(;v;)if(v=s(v),v&&v.nodeType===8&&v.data==="teleport anchor"){t.targetAnchor=v,c._lpa=t.targetAnchor&&s(t.targetAnchor);break}u(_,t,c,r,n,o,i)}}return t.anchor&&s(t.anchor)}const lg=Xb,Ve=Symbol(void 0),Zs=Symbol(void 0),rr=Symbol(void 0),au=Symbol(void 0),Ss=[];let Ur=null;function K(e=!1){Ss.push(Ur=e?null:[])}function Jb(){Ss.pop(),Ur=Ss[Ss.length-1]||null}let Ns=1;function Ih(e){Ns+=e}function cg(e){return e.dynamicChildren=Ns>0?Ur||Co:null,Jb(),Ns>0&&Ur&&Ur.push(e),e}function se(e,t,r,n,o,i){return cg(W(e,t,r,n,o,i,!0))}function Ce(e,t,r,n,o){return cg(G(e,t,r,n,o,!0))}function It(e){return e?e.__v_isVNode===!0:!1}function wi(e,t){return e.type===t.type&&e.key===t.key}const lc="__vInternal",ug=({key:e})=>e!=null?e:null,cl=({ref:e,ref_key:t,ref_for:r})=>e!=null?ze(e)||yt(e)||Ue(e)?{i:zt,r:e,k:t,f:!!r}:e:null;function W(e,t=null,r=null,n=0,o=null,i=e===Ve?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ug(t),ref:t&&cl(t),scopeId:rc,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:o,dynamicChildren:null,appContext:null};return a?(dd(l,r),i&128&&e.normalize(l)):r&&(l.shapeFlag|=ze(r)?8:16),Ns>0&&!s&&Ur&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Ur.push(l),l}const G=Zb;function Zb(e,t=null,r=null,n=0,o=null,i=!1){if((!e||e===Jv)&&(e=rr),It(e)){const a=bn(e,t,!0);return r&&dd(a,r),Ns>0&&!i&&Ur&&(a.shapeFlag&6?Ur[Ur.indexOf(e)]=a:Ur.push(a)),a.patchFlag|=-2,a}if(lC(e)&&(e=e.__vccOpts),t){t=Bl(t);let{class:a,style:l}=t;a&&!ze(a)&&(t.class=ne(a)),it(l)&&(Iv(l)&&!Pe(l)&&(l=Pt({},l)),t.style=We(l))}const s=ze(e)?1:bb(e)?128:Yb(e)?64:it(e)?4:Ue(e)?2:0;return W(e,t,r,n,o,s,i,!0)}function Bl(e){return e?Iv(e)||lc in e?Pt({},e):e:null}function bn(e,t,r=!1){const{props:n,ref:o,patchFlag:i,children:s}=e,a=t?or(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&ug(a),ref:t&&t.ref?r&&o?Pe(o)?o.concat(cl(t)):[o,cl(t)]:cl(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ve?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&bn(e.ssContent),ssFallback:e.ssFallback&&bn(e.ssFallback),el:e.el,anchor:e.anchor}}function Te(e=" ",t=0){return G(Zs,null,e,t)}function ke(e="",t=!1){return t?(K(),Ce(rr,null,e)):G(rr,null,e)}function Zr(e){return e==null||typeof e=="boolean"?G(rr):Pe(e)?G(Ve,null,e.slice()):typeof e=="object"?Nn(e):G(Zs,null,String(e))}function Nn(e){return e.el===null||e.memo?e:bn(e)}function dd(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(Pe(t))r=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),dd(e,o()),o._c&&(o._d=!0));return}else{r=32;const o=t._;!o&&!(lc in t)?t._ctx=zt:o===3&&zt&&(zt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ue(t)?(t={default:t,_ctx:zt},r=32):(t=String(t),n&64?(r=16,t=[Te(t)]):r=8);e.children=t,e.shapeFlag|=r}function or(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const o in n)if(o==="class")t.class!==n.class&&(t.class=ne([t.class,n.class]));else if(o==="style")t.style=We([t.style,n.style]);else if(Yl(o)){const i=t[o],s=n[o];s&&i!==s&&!(Pe(i)&&i.includes(s))&&(t[o]=i?[].concat(i,s):s)}else o!==""&&(t[o]=n[o])}return t}function Jr(e,t,r,n=null){Tr(e,t,7,[r,n])}const eC=ag();let tC=0;function rC(e,t,r){const n=e.type,o=(t?t.appContext:e.appContext)||eC,i={uid:tC++,vnode:e,type:n,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new E1(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ng(n,o),emitsOptions:Vv(n,o),emit:null,emitted:null,propsDefaults:ut,inheritAttrs:n.inheritAttrs,ctx:ut,data:ut,props:ut,attrs:ut,slots:ut,refs:ut,setupState:ut,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=vb.bind(null,i),e.ce&&e.ce(i),i}let Ot=null;const ot=()=>Ot||zt,Lo=e=>{Ot=e,e.scope.on()},Oi=()=>{Ot&&Ot.scope.off(),Ot=null};function fg(e){return e.vnode.shapeFlag&4}let $s=!1;function nC(e,t=!1){$s=t;const{props:r,children:n}=e.vnode,o=fg(e);Nb(e,r,o,t),Ub(e,n);const i=o?iC(e,t):void 0;return $s=!1,i}function iC(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=Mv(new Proxy(e.ctx,Ib));const{setup:n}=r;if(n){const o=e.setupContext=n.length>1?hg(e):null;Lo(e),$i();const i=mn(n,e,0,[e.props,o]);if(ji(),Oi(),_v(i)){if(i.then(Oi,Oi),t)return i.then(s=>{Mh(e,s,t)}).catch(s=>{Zl(s,e,0)});e.asyncDep=i}else Mh(e,i,t)}else dg(e,t)}function Mh(e,t,r){Ue(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:it(t)&&(e.setupState=Fv(t)),dg(e,r)}let Ph;function dg(e,t,r){const n=e.type;if(!e.render){if(!t&&Ph&&!n.render){const o=n.template;if(o){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:a,compilerOptions:l}=n,u=Pt(Pt({isCustomElement:i,delimiters:a},s),l);n.render=Ph(o,u)}}e.render=n.render||kt}Lo(e),$i(),Mb(e),ji(),Oi()}function oC(e){return new Proxy(e.attrs,{get(t,r){return br(e,"get","$attrs"),t[r]}})}function hg(e){const t=n=>{e.exposed=n||{}};let r;return{get attrs(){return r||(r=oC(e))},slots:e.slots,emit:e.emit,expose:t}}function cc(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Fv(Mv(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Ll)return Ll[r](e)}}))}const sC=/(?:^|[-_])(\w)/g,aC=e=>e.replace(sC,t=>t.toUpperCase()).replace(/[-_]/g,"");function pg(e){return Ue(e)&&e.displayName||e.name}function vg(e,t,r=!1){let n=pg(t);if(!n&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(n=o[1])}if(!n&&e&&e.parent){const o=i=>{for(const s in i)if(i[s]===t)return s};n=o(e.components||e.parent.type.components)||o(e.appContext.components)}return n?aC(n):r?"App":"Anonymous"}function lC(e){return Ue(e)&&"__vccOpts"in e}const J=(e,t)=>ib(e,t,$s);function ea(){return mg().slots}function gg(){return mg().attrs}function mg(){const e=ot();return e.setupContext||(e.setupContext=hg(e))}function He(e,t,r){const n=arguments.length;return n===2?it(t)&&!Pe(t)?It(t)?G(e,null,[t]):G(e,t):G(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&It(r)&&(r=[r]),G(e,t,r))}const cC="3.2.34",uC="http://www.w3.org/2000/svg",Si=typeof document!="undefined"?document:null,Dh=Si&&Si.createElement("template"),fC={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const o=t?Si.createElementNS(uC,e):Si.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>Si.createTextNode(e),createComment:e=>Si.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Si.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,r,n,o,i){const s=r?r.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),r),!(o===i||!(o=o.nextSibling)););else{Dh.innerHTML=n?`<svg>${e}</svg>`:e;const a=Dh.content;if(n){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,r)}return[s?s.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};function dC(e,t,r){const n=e._vtc;n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function hC(e,t,r){const n=e.style,o=ze(r);if(r&&!o){for(const i in r)Yu(n,i,r[i]);if(t&&!ze(t))for(const i in t)r[i]==null&&Yu(n,i,"")}else{const i=n.display;o?t!==r&&(n.cssText=r):t&&e.removeAttribute("style"),"_vod"in e&&(n.display=i)}}const Hh=/\s*!important$/;function Yu(e,t,r){if(Pe(r))r.forEach(n=>Yu(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=pC(e,t);Hh.test(r)?e.setProperty(Zn(n),r.replace(Hh,""),"important"):e[n]=r}}const Fh=["Webkit","Moz","ms"],lu={};function pC(e,t){const r=lu[t];if(r)return r;let n=Rr(t);if(n!=="filter"&&n in e)return lu[t]=n;n=$r(n);for(let o=0;o<Fh.length;o++){const i=Fh[o]+n;if(i in e)return lu[t]=i}return t}const Nh="http://www.w3.org/1999/xlink";function vC(e,t,r,n,o){if(n&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(Nh,t.slice(6,t.length)):e.setAttributeNS(Nh,t,r);else{const i=h1(t);r==null||i&&!vv(r)?e.removeAttribute(t):e.setAttribute(t,i?"":r)}}function gC(e,t,r,n,o,i,s){if(t==="innerHTML"||t==="textContent"){n&&s(n,o,i),e[t]=r==null?"":r;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=r;const l=r==null?"":r;(e.value!==l||e.tagName==="OPTION")&&(e.value=l),r==null&&e.removeAttribute(t);return}let a=!1;if(r===""||r==null){const l=typeof e[t];l==="boolean"?r=vv(r):r==null&&l==="string"?(r="",a=!0):l==="number"&&(r=0,a=!0)}try{e[t]=r}catch{}a&&e.removeAttribute(t)}const[_g,mC]=(()=>{let e=Date.now,t=!1;if(typeof window!="undefined"){Date.now()>document.createEvent("Event").timeStamp&&(e=()=>performance.now());const r=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(r&&Number(r[1])<=53)}return[e,t]})();let Xu=0;const _C=Promise.resolve(),yC=()=>{Xu=0},bC=()=>Xu||(_C.then(yC),Xu=_g());function hd(e,t,r,n){e.addEventListener(t,r,n)}function CC(e,t,r,n){e.removeEventListener(t,r,n)}function wC(e,t,r,n,o=null){const i=e._vei||(e._vei={}),s=i[t];if(n&&s)s.value=n;else{const[a,l]=SC(t);if(n){const u=i[t]=xC(n,o);hd(e,a,u,l)}else s&&(CC(e,a,s,l),i[t]=void 0)}}const $h=/(?:Once|Passive|Capture)$/;function SC(e){let t;if($h.test(e)){t={};let r;for(;r=e.match($h);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[Zn(e.slice(2)),t]}function xC(e,t){const r=n=>{const o=n.timeStamp||_g();(mC||o>=r.attached-1)&&Tr(EC(n,r.value),t,5,[n])};return r.value=e,r.attached=bC(),r}function EC(e,t){if(Pe(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>o=>!o._stopped&&n&&n(o))}else return t}const jh=/^on[a-z]/,AC=(e,t,r,n,o=!1,i,s,a,l)=>{t==="class"?dC(e,n,o):t==="style"?hC(e,r,n):Yl(t)?Kf(t)||wC(e,t,r,n,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):kC(e,t,n,o))?gC(e,t,n,i,s,a,l):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),vC(e,t,n,o))};function kC(e,t,r,n){return n?!!(t==="innerHTML"||t==="textContent"||t in e&&jh.test(t)&&Ue(r)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||jh.test(t)&&ze(r)?!1:t in e}const Bn="transition",ss="animation",wr=(e,{slots:t})=>He(Yv,bg(e),t);wr.displayName="Transition";const yg={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},TC=wr.props=Pt({},Yv.props,yg),gi=(e,t=[])=>{Pe(e)?e.forEach(r=>r(...t)):e&&e(...t)},Uh=e=>e?Pe(e)?e.some(t=>t.length>1):e.length>1:!1;function bg(e){const t={};for(const T in e)T in yg||(t[T]=e[T]);if(e.css===!1)return t;const{name:r="v",type:n,duration:o,enterFromClass:i=`${r}-enter-from`,enterActiveClass:s=`${r}-enter-active`,enterToClass:a=`${r}-enter-to`,appearFromClass:l=i,appearActiveClass:u=s,appearToClass:c=a,leaveFromClass:_=`${r}-leave-from`,leaveActiveClass:v=`${r}-leave-active`,leaveToClass:p=`${r}-leave-to`}=e,g=LC(o),b=g&&g[0],m=g&&g[1],{onBeforeEnter:d,onEnter:f,onEnterCancelled:h,onLeave:y,onLeaveCancelled:C,onBeforeAppear:w=d,onAppear:S=f,onAppearCancelled:E=h}=t,k=(T,H,P)=>{Dn(T,H?c:a),Dn(T,H?u:s),P&&P()};let x=!1;const A=(T,H)=>{x=!1,Dn(T,_),Dn(T,p),Dn(T,v),H&&H()},L=T=>(H,P)=>{const R=T?S:f,I=()=>k(H,T,P);gi(R,[H,I]),Wh(()=>{Dn(H,T?l:i),dn(H,T?c:a),Uh(R)||zh(H,n,b,I)})};return Pt(t,{onBeforeEnter(T){gi(d,[T]),dn(T,i),dn(T,s)},onBeforeAppear(T){gi(w,[T]),dn(T,l),dn(T,u)},onEnter:L(!1),onAppear:L(!0),onLeave(T,H){x=!0;const P=()=>A(T,H);dn(T,_),wg(),dn(T,v),Wh(()=>{!x||(Dn(T,_),dn(T,p),Uh(y)||zh(T,n,m,P))}),gi(y,[T,P])},onEnterCancelled(T){k(T,!1),gi(h,[T])},onAppearCancelled(T){k(T,!0),gi(E,[T])},onLeaveCancelled(T){A(T),gi(C,[T])}})}function LC(e){if(e==null)return null;if(it(e))return[cu(e.enter),cu(e.leave)];{const t=cu(e);return[t,t]}}function cu(e){return Cv(e)}function dn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e._vtc||(e._vtc=new Set)).add(t)}function Dn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const{_vtc:r}=e;r&&(r.delete(t),r.size||(e._vtc=void 0))}function Wh(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let RC=0;function zh(e,t,r,n){const o=e._endId=++RC,i=()=>{o===e._endId&&n()};if(r)return setTimeout(i,r);const{type:s,timeout:a,propCount:l}=Cg(e,t);if(!s)return n();const u=s+"end";let c=0;const _=()=>{e.removeEventListener(u,v),i()},v=p=>{p.target===e&&++c>=l&&_()};setTimeout(()=>{c<l&&_()},a+1),e.addEventListener(u,v)}function Cg(e,t){const r=window.getComputedStyle(e),n=g=>(r[g]||"").split(", "),o=n(Bn+"Delay"),i=n(Bn+"Duration"),s=qh(o,i),a=n(ss+"Delay"),l=n(ss+"Duration"),u=qh(a,l);let c=null,_=0,v=0;t===Bn?s>0&&(c=Bn,_=s,v=i.length):t===ss?u>0&&(c=ss,_=u,v=l.length):(_=Math.max(s,u),c=_>0?s>u?Bn:ss:null,v=c?c===Bn?i.length:l.length:0);const p=c===Bn&&/\b(transform|all)(,|$)/.test(r[Bn+"Property"]);return{type:c,timeout:_,propCount:v,hasTransform:p}}function qh(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>Vh(r)+Vh(e[n])))}function Vh(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function wg(){return document.body.offsetHeight}const Sg=new WeakMap,xg=new WeakMap,BC={name:"TransitionGroup",props:Pt({},TC,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=ot(),n=Gv();let o,i;return ei(()=>{if(!o.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!DC(o[0].el,r.vnode.el,s))return;o.forEach(IC),o.forEach(MC);const a=o.filter(PC);wg(),a.forEach(l=>{const u=l.el,c=u.style;dn(u,s),c.transform=c.webkitTransform=c.transitionDuration="";const _=u._moveCb=v=>{v&&v.target!==u||(!v||/transform$/.test(v.propertyName))&&(u.removeEventListener("transitionend",_),u._moveCb=null,Dn(u,s))};u.addEventListener("transitionend",_)})}),()=>{const s=nt(e),a=bg(s);let l=s.tag||Ve;o=i,i=t.default?od(t.default()):[];for(let u=0;u<i.length;u++){const c=i[u];c.key!=null&&Fs(c,Hs(c,a,n,r))}if(o)for(let u=0;u<o.length;u++){const c=o[u];Fs(c,Hs(c,a,n,r)),Sg.set(c,c.el.getBoundingClientRect())}return G(l,null,i)}}},OC=BC;function IC(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function MC(e){xg.set(e,e.el.getBoundingClientRect())}function PC(e){const t=Sg.get(e),r=xg.get(e),n=t.left-r.left,o=t.top-r.top;if(n||o){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${n}px,${o}px)`,i.transitionDuration="0s",e}}function DC(e,t,r){const n=e.cloneNode();e._vtc&&e._vtc.forEach(s=>{s.split(/\s+/).forEach(a=>a&&n.classList.remove(a))}),r.split(/\s+/).forEach(s=>s&&n.classList.add(s)),n.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(n);const{hasTransform:i}=Cg(n);return o.removeChild(n),i}const Ol=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Pe(t)?r=>ll(t,r):t},Il={deep:!0,created(e,t,r){e._assign=Ol(r),hd(e,"change",()=>{const n=e._modelValue,o=Ag(e),i=e.checked,s=e._assign;if(Pe(n)){const a=gv(n,o),l=a!==-1;if(i&&!l)s(n.concat(o));else if(!i&&l){const u=[...n];u.splice(a,1),s(u)}}else if(Xl(n)){const a=new Set(n);i?a.add(o):a.delete(o),s(a)}else s(kg(e,i))})},mounted:Kh,beforeUpdate(e,t,r){e._assign=Ol(r),Kh(e,t,r)}};function Kh(e,{value:t,oldValue:r},n){e._modelValue=t,Pe(t)?e.checked=gv(t,n.props.value)>-1:Xl(t)?e.checked=t.has(n.props.value):t!==r&&(e.checked=To(t,kg(e,!0)))}const Eg={created(e,{value:t},r){e.checked=To(t,r.props.value),e._assign=Ol(r),hd(e,"change",()=>{e._assign(Ag(e))})},beforeUpdate(e,{value:t,oldValue:r},n){e._assign=Ol(n),t!==r&&(e.checked=To(t,n.props.value))}};function Ag(e){return"_value"in e?e._value:e.value}function kg(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const HC=["ctrl","shift","alt","meta"],FC={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>HC.some(r=>e[`${r}Key`]&&!t.includes(r))},er=(e,t)=>(r,...n)=>{for(let o=0;o<t.length;o++){const i=FC[t[o]];if(i&&i(r,t))return}return e(r,...n)},NC={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},tr=(e,t)=>r=>{if(!("key"in r))return;const n=Zn(r.key);if(t.some(o=>o===n||NC[o]===n))return e(r)},Ut={beforeMount(e,{value:t},{transition:r}){e._vod=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):as(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),as(e,!0),n.enter(e)):n.leave(e,()=>{as(e,!1)}):as(e,t))},beforeUnmount(e,{value:t}){as(e,t)}};function as(e,t){e.style.display=t?e._vod:"none"}const $C=Pt({patchProp:AC},fC);let Gh;function Tg(){return Gh||(Gh=Vb($C))}const Ro=(...e)=>{Tg().render(...e)},Lg=(...e)=>{const t=Tg().createApp(...e),{mount:r}=t;return t.mount=n=>{const o=jC(n);if(!o)return;const i=t._component;!Ue(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const s=r(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t};function jC(e){return ze(e)?document.querySelector(e):e}/*!
* vue-router v4.0.15
* (c) 2022 Eduardo San Martin Morote
* @license MIT
*/const Rg=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Ko=e=>Rg?Symbol(e):"_vr_"+e,UC=Ko("rvlm"),Yh=Ko("rvd"),pd=Ko("r"),Bg=Ko("rl"),Qu=Ko("rvl"),yo=typeof window!="undefined";function WC(e){return e.__esModule||Rg&&e[Symbol.toStringTag]==="Module"}const ct=Object.assign;function uu(e,t){const r={};for(const n in t){const o=t[n];r[n]=Array.isArray(o)?o.map(e):e(o)}return r}const xs=()=>{},zC=/\/$/,qC=e=>e.replace(zC,"");function fu(e,t,r="/"){let n,o={},i="",s="";const a=t.indexOf("?"),l=t.indexOf("#",a>-1?a:0);return a>-1&&(n=t.slice(0,a),i=t.slice(a+1,l>-1?l:t.length),o=e(i)),l>-1&&(n=n||t.slice(0,l),s=t.slice(l,t.length)),n=YC(n!=null?n:t,r),{fullPath:n+(i&&"?")+i+s,path:n,query:o,hash:s}}function VC(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function Xh(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function KC(e,t,r){const n=t.matched.length-1,o=r.matched.length-1;return n>-1&&n===o&&Bo(t.matched[n],r.matched[o])&&Og(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Bo(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Og(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!GC(e[r],t[r]))return!1;return!0}function GC(e,t){return Array.isArray(e)?Qh(e,t):Array.isArray(t)?Qh(t,e):e===t}function Qh(e,t){return Array.isArray(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function YC(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/");let o=r.length-1,i,s;for(i=0;i<n.length;i++)if(s=n[i],!(o===1||s==="."))if(s==="..")o--;else break;return r.slice(0,o).join("/")+"/"+n.slice(i-(i===n.length?1:0)).join("/")}var js;(function(e){e.pop="pop",e.push="push"})(js||(js={}));var Es;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Es||(Es={}));function XC(e){if(!e)if(yo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),qC(e)}const QC=/^[^#]+#/;function JC(e,t){return e.replace(QC,"#")+t}function ZC(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const uc=()=>({left:window.pageXOffset,top:window.pageYOffset});function ew(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),o=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!o)return;t=ZC(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Jh(e,t){return(history.state?history.state.position-t:-1)+e}const Ju=new Map;function tw(e,t){Ju.set(e,t)}function rw(e){const t=Ju.get(e);return Ju.delete(e),t}let nw=()=>location.protocol+"//"+location.host;function Ig(e,t){const{pathname:r,search:n,hash:o}=t,i=e.indexOf("#");if(i>-1){let a=o.includes(e.slice(i))?e.slice(i).length:1,l=o.slice(a);return l[0]!=="/"&&(l="/"+l),Xh(l,"")}return Xh(r,e)+n+o}function iw(e,t,r,n){let o=[],i=[],s=null;const a=({state:v})=>{const p=Ig(e,location),g=r.value,b=t.value;let m=0;if(v){if(r.value=p,t.value=v,s&&s===g){s=null;return}m=b?v.position-b.position:0}else n(p);o.forEach(d=>{d(r.value,g,{delta:m,type:js.pop,direction:m?m>0?Es.forward:Es.back:Es.unknown})})};function l(){s=r.value}function u(v){o.push(v);const p=()=>{const g=o.indexOf(v);g>-1&&o.splice(g,1)};return i.push(p),p}function c(){const{history:v}=window;!v.state||v.replaceState(ct({},v.state,{scroll:uc()}),"")}function _(){for(const v of i)v();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c),{pauseListeners:l,listen:u,destroy:_}}function Zh(e,t,r,n=!1,o=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:o?uc():null}}function ow(e){const{history:t,location:r}=window,n={value:Ig(e,r)},o={value:t.state};o.value||i(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const _=e.indexOf("#"),v=_>-1?(r.host&&document.querySelector("base")?e:e.slice(_))+l:nw()+e+l;try{t[c?"replaceState":"pushState"](u,"",v),o.value=u}catch(p){console.error(p),r[c?"replace":"assign"](v)}}function s(l,u){const c=ct({},t.state,Zh(o.value.back,l,o.value.forward,!0),u,{position:o.value.position});i(l,c,!0),n.value=l}function a(l,u){const c=ct({},o.value,t.state,{forward:l,scroll:uc()});i(c.current,c,!0);const _=ct({},Zh(n.value,l,null),{position:c.position+1},u);i(l,_,!1),n.value=l}return{location:n,state:o,push:a,replace:s}}function sw(e){e=XC(e);const t=ow(e),r=iw(e,t.state,t.location,t.replace);function n(i,s=!0){s||r.pauseListeners(),history.go(i)}const o=ct({location:"",base:e,go:n,createHref:JC.bind(null,e)},t,r);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function aw(e){return typeof e=="string"||e&&typeof e=="object"}function Mg(e){return typeof e=="string"||typeof e=="symbol"}const On={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Pg=Ko("nf");var ep;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ep||(ep={}));function Oo(e,t){return ct(new Error,{type:e,[Pg]:!0},t)}function In(e,t){return e instanceof Error&&Pg in e&&(t==null||!!(e.type&t))}const tp="[^/]+?",lw={sensitive:!1,strict:!1,start:!0,end:!0},cw=/[.+*?^${}()[\]/\\]/g;function uw(e,t){const r=ct({},lw,t),n=[];let o=r.start?"^":"";const i=[];for(const u of e){const c=u.length?[]:[90];r.strict&&!u.length&&(o+="/");for(let _=0;_<u.length;_++){const v=u[_];let p=40+(r.sensitive?.25:0);if(v.type===0)_||(o+="/"),o+=v.value.replace(cw,"\\$&"),p+=40;else if(v.type===1){const{value:g,repeatable:b,optional:m,regexp:d}=v;i.push({name:g,repeatable:b,optional:m});const f=d||tp;if(f!==tp){p+=10;try{new RegExp(`(${f})`)}catch(y){throw new Error(`Invalid custom RegExp for param "${g}" (${f}): `+y.message)}}let h=b?`((?:${f})(?:/(?:${f}))*)`:`(${f})`;_||(h=m&&u.length<2?`(?:/${h})`:"/"+h),m&&(h+="?"),o+=h,p+=20,m&&(p+=-8),b&&(p+=-20),f===".*"&&(p+=-50)}c.push(p)}n.push(c)}if(r.strict&&r.end){const u=n.length-1;n[u][n[u].length-1]+=.7000000000000001}r.strict||(o+="/?"),r.end?o+="$":r.strict&&(o+="(?:/|$)");const s=new RegExp(o,r.sensitive?"":"i");function a(u){const c=u.match(s),_={};if(!c)return null;for(let v=1;v<c.length;v++){const p=c[v]||"",g=i[v-1];_[g.name]=p&&g.repeatable?p.split("/"):p}return _}function l(u){let c="",_=!1;for(const v of e){(!_||!c.endsWith("/"))&&(c+="/"),_=!1;for(const p of v)if(p.type===0)c+=p.value;else if(p.type===1){const{value:g,repeatable:b,optional:m}=p,d=g in u?u[g]:"";if(Array.isArray(d)&&!b)throw new Error(`Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`);const f=Array.isArray(d)?d.join("/"):d;if(!f)if(m)v.length<2&&e.length>1&&(c.endsWith("/")?c=c.slice(0,-1):_=!0);else throw new Error(`Missing required param "${g}"`);c+=f}}return c}return{re:s,score:n,keys:i,parse:a,stringify:l}}function fw(e,t){let r=0;for(;r<e.length&&r<t.length;){const n=t[r]-e[r];if(n)return n;r++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function dw(e,t){let r=0;const n=e.score,o=t.score;for(;r<n.length&&r<o.length;){const i=fw(n[r],o[r]);if(i)return i;r++}return o.length-n.length}const hw={type:0,value:""},pw=/[a-zA-Z0-9_]/;function vw(e){if(!e)return[[]];if(e==="/")return[[hw]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${r})/"${u}": ${p}`)}let r=0,n=r;const o=[];let i;function s(){i&&o.push(i),i=[]}let a=0,l,u="",c="";function _(){!u||(r===0?i.push({type:0,value:u}):r===1||r===2||r===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function v(){u+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&r!==2){n=r,r=4;continue}switch(r){case 0:l==="/"?(u&&_(),s()):l===":"?(_(),r=1):v();break;case 4:v(),r=n;break;case 1:l==="("?r=2:pw.test(l)?v():(_(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:r=3:c+=l;break;case 3:_(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,c="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${u}"`),_(),s(),o}function gw(e,t,r){const n=uw(vw(e.path),r),o=ct(n,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function mw(e,t){const r=[],n=new Map;t=np({strict:!1,end:!0,sensitive:!1},t);function o(c){return n.get(c)}function i(c,_,v){const p=!v,g=yw(c);g.aliasOf=v&&v.record;const b=np(t,c),m=[g];if("alias"in c){const h=typeof c.alias=="string"?[c.alias]:c.alias;for(const y of h)m.push(ct({},g,{components:v?v.record.components:g.components,path:y,aliasOf:v?v.record:g}))}let d,f;for(const h of m){const{path:y}=h;if(_&&y[0]!=="/"){const C=_.record.path,w=C[C.length-1]==="/"?"":"/";h.path=_.record.path+(y&&w+y)}if(d=gw(h,_,b),v?v.alias.push(d):(f=f||d,f!==d&&f.alias.push(d),p&&c.name&&!rp(d)&&s(c.name)),"children"in g){const C=g.children;for(let w=0;w<C.length;w++)i(C[w],d,v&&v.children[w])}v=v||d,l(d)}return f?()=>{s(f)}:xs}function s(c){if(Mg(c)){const _=n.get(c);_&&(n.delete(c),r.splice(r.indexOf(_),1),_.children.forEach(s),_.alias.forEach(s))}else{const _=r.indexOf(c);_>-1&&(r.splice(_,1),c.record.name&&n.delete(c.record.name),c.children.forEach(s),c.alias.forEach(s))}}function a(){return r}function l(c){let _=0;for(;_<r.length&&dw(c,r[_])>=0&&(c.record.path!==r[_].record.path||!Dg(c,r[_]));)_++;r.splice(_,0,c),c.record.name&&!rp(c)&&n.set(c.record.name,c)}function u(c,_){let v,p={},g,b;if("name"in c&&c.name){if(v=n.get(c.name),!v)throw Oo(1,{location:c});b=v.record.name,p=ct(_w(_.params,v.keys.filter(f=>!f.optional).map(f=>f.name)),c.params),g=v.stringify(p)}else if("path"in c)g=c.path,v=r.find(f=>f.re.test(g)),v&&(p=v.parse(g),b=v.record.name);else{if(v=_.name?n.get(_.name):r.find(f=>f.re.test(_.path)),!v)throw Oo(1,{location:c,currentLocation:_});b=v.record.name,p=ct({},_.params,c.params),g=v.stringify(p)}const m=[];let d=v;for(;d;)m.unshift(d.record),d=d.parent;return{name:b,path:g,params:p,matched:m,meta:Cw(m)}}return e.forEach(c=>i(c)),{addRoute:i,resolve:u,removeRoute:s,getRoutes:a,getRecordMatcher:o}}function _w(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function yw(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:bw(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}function bw(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="boolean"?r:r[n];return t}function rp(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Cw(e){return e.reduce((t,r)=>ct(t,r.meta),{})}function np(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function Dg(e,t){return t.children.some(r=>r===e||Dg(e,r))}const Hg=/#/g,ww=/&/g,Sw=/\//g,xw=/=/g,Ew=/\?/g,Fg=/\+/g,Aw=/%5B/g,kw=/%5D/g,Ng=/%5E/g,Tw=/%60/g,$g=/%7B/g,Lw=/%7C/g,jg=/%7D/g,Rw=/%20/g;function vd(e){return encodeURI(""+e).replace(Lw,"|").replace(Aw,"[").replace(kw,"]")}function Bw(e){return vd(e).replace($g,"{").replace(jg,"}").replace(Ng,"^")}function Zu(e){return vd(e).replace(Fg,"%2B").replace(Rw,"+").replace(Hg,"%23").replace(ww,"%26").replace(Tw,"`").replace($g,"{").replace(jg,"}").replace(Ng,"^")}function Ow(e){return Zu(e).replace(xw,"%3D")}function Iw(e){return vd(e).replace(Hg,"%23").replace(Ew,"%3F")}function Mw(e){return e==null?"":Iw(e).replace(Sw,"%2F")}function Ml(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Pw(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<n.length;++o){const i=n[o].replace(Fg," "),s=i.indexOf("="),a=Ml(s<0?i:i.slice(0,s)),l=s<0?null:Ml(i.slice(s+1));if(a in t){let u=t[a];Array.isArray(u)||(u=t[a]=[u]),u.push(l)}else t[a]=l}return t}function ip(e){let t="";for(let r in e){const n=e[r];if(r=Ow(r),n==null){n!==void 0&&(t+=(t.length?"&":"")+r);continue}(Array.isArray(n)?n.map(i=>i&&Zu(i)):[n&&Zu(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+r,i!=null&&(t+="="+i))})}return t}function Dw(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=Array.isArray(n)?n.map(o=>o==null?null:""+o):n==null?n:""+n)}return t}function ls(){let e=[];function t(n){return e.push(n),()=>{const o=e.indexOf(n);o>-1&&e.splice(o,1)}}function r(){e=[]}return{add:t,list:()=>e,reset:r}}function $n(e,t,r,n,o){const i=n&&(n.enterCallbacks[o]=n.enterCallbacks[o]||[]);return()=>new Promise((s,a)=>{const l=_=>{_===!1?a(Oo(4,{from:r,to:t})):_ instanceof Error?a(_):aw(_)?a(Oo(2,{from:t,to:_})):(i&&n.enterCallbacks[o]===i&&typeof _=="function"&&i.push(_),s())},u=e.call(n&&n.instances[o],t,r,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch(_=>a(_))})}function du(e,t,r,n){const o=[];for(const i of e)for(const s in i.components){let a=i.components[s];if(!(t!=="beforeRouteEnter"&&!i.instances[s]))if(Hw(a)){const u=(a.__vccOpts||a)[t];u&&o.push($n(u,r,n,i,s))}else{let l=a();o.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${i.path}"`));const c=WC(u)?u.default:u;i.components[s]=c;const v=(c.__vccOpts||c)[t];return v&&$n(v,r,n,i,s)()}))}}return o}function Hw(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function op(e){const t=Ie(pd),r=Ie(Bg),n=J(()=>t.resolve(N(e.to))),o=J(()=>{const{matched:l}=n.value,{length:u}=l,c=l[u-1],_=r.matched;if(!c||!_.length)return-1;const v=_.findIndex(Bo.bind(null,c));if(v>-1)return v;const p=sp(l[u-2]);return u>1&&sp(c)===p&&_[_.length-1].path!==p?_.findIndex(Bo.bind(null,l[u-2])):v}),i=J(()=>o.value>-1&&jw(r.params,n.value.params)),s=J(()=>o.value>-1&&o.value===r.matched.length-1&&Og(r.params,n.value.params));function a(l={}){return $w(l)?t[N(e.replace)?"replace":"push"](N(e.to)).catch(xs):Promise.resolve()}return{route:n,href:J(()=>n.value.href),isActive:i,isExactActive:s,navigate:a}}const Fw=we({name:"RouterLink",props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:op,setup(e,{slots:t}){const r=sr(op(e)),{options:n}=Ie(pd),o=J(()=>({[ap(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[ap(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const i=t.default&&t.default(r);return e.custom?i:He("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:o.value},i)}}}),Nw=Fw;function $w(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function jw(e,t){for(const r in t){const n=t[r],o=e[r];if(typeof n=="string"){if(n!==o)return!1}else if(!Array.isArray(o)||o.length!==n.length||n.some((i,s)=>i!==o[s]))return!1}return!0}function sp(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ap=(e,t,r)=>e!=null?e:t!=null?t:r,Uw=we({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=Ie(Qu),o=J(()=>e.route||n.value),i=Ie(Yh,0),s=J(()=>o.value.matched[i]);ft(Yh,i+1),ft(UC,s),ft(Qu,o);const a=X();return Be(()=>[a.value,s.value,e.name],([l,u,c],[_,v,p])=>{u&&(u.instances[c]=l,v&&v!==u&&l&&l===_&&(u.leaveGuards.size||(u.leaveGuards=v.leaveGuards),u.updateGuards.size||(u.updateGuards=v.updateGuards))),l&&u&&(!v||!Bo(u,v)||!_)&&(u.enterCallbacks[c]||[]).forEach(g=>g(l))},{flush:"post"}),()=>{const l=o.value,u=s.value,c=u&&u.components[e.name],_=e.name;if(!c)return lp(r.default,{Component:c,route:l});const v=u.props[e.name],p=v?v===!0?l.params:typeof v=="function"?v(l):v:null,b=He(c,ct({},p,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(u.instances[_]=null)},ref:a}));return lp(r.default,{Component:b,route:l})||b}}});function lp(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const Ww=Uw;function zw(e){const t=mw(e.routes,e),r=e.parseQuery||Pw,n=e.stringifyQuery||ip,o=e.history,i=ls(),s=ls(),a=ls(),l=ms(On);let u=On;yo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=uu.bind(null,B=>""+B),_=uu.bind(null,Mw),v=uu.bind(null,Ml);function p(B,z){let O,D;return Mg(B)?(O=t.getRecordMatcher(B),D=z):D=B,t.addRoute(D,O)}function g(B){const z=t.getRecordMatcher(B);z&&t.removeRoute(z)}function b(){return t.getRoutes().map(B=>B.record)}function m(B){return!!t.getRecordMatcher(B)}function d(B,z){if(z=ct({},z||l.value),typeof B=="string"){const ge=fu(r,B,z.path),j=t.resolve({path:ge.path},z),q=o.createHref(ge.fullPath);return ct(ge,j,{params:v(j.params),hash:Ml(ge.hash),redirectedFrom:void 0,href:q})}let O;if("path"in B)O=ct({},B,{path:fu(r,B.path,z.path).path});else{const ge=ct({},B.params);for(const j in ge)ge[j]==null&&delete ge[j];O=ct({},B,{params:_(B.params)}),z.params=_(z.params)}const D=t.resolve(O,z),F=B.hash||"";D.params=c(v(D.params));const ue=VC(n,ct({},B,{hash:Bw(F),path:D.path})),fe=o.createHref(ue);return ct({fullPath:ue,hash:F,query:n===ip?Dw(B.query):B.query||{}},D,{redirectedFrom:void 0,href:fe})}function f(B){return typeof B=="string"?fu(r,B,l.value.path):ct({},B)}function h(B,z){if(u!==B)return Oo(8,{from:z,to:B})}function y(B){return S(B)}function C(B){return y(ct(f(B),{replace:!0}))}function w(B){const z=B.matched[B.matched.length-1];if(z&&z.redirect){const{redirect:O}=z;let D=typeof O=="function"?O(B):O;return typeof D=="string"&&(D=D.includes("?")||D.includes("#")?D=f(D):{path:D},D.params={}),ct({query:B.query,hash:B.hash,params:B.params},D)}}function S(B,z){const O=u=d(B),D=l.value,F=B.state,ue=B.force,fe=B.replace===!0,ge=w(O);if(ge)return S(ct(f(ge),{state:F,force:ue,replace:fe}),z||O);const j=O;j.redirectedFrom=z;let q;return!ue&&KC(n,D,O)&&(q=Oo(16,{to:j,from:D}),V(D,D,!0,!1)),(q?Promise.resolve(q):k(j,D)).catch(ie=>In(ie)?In(ie,2)?ie:$(ie):I(ie,j,D)).then(ie=>{if(ie){if(In(ie,2))return S(ct(f(ie.to),{state:F,force:ue,replace:fe}),z||j)}else ie=A(j,D,!0,fe,F);return x(j,D,ie),ie})}function E(B,z){const O=h(B,z);return O?Promise.reject(O):Promise.resolve()}function k(B,z){let O;const[D,F,ue]=qw(B,z);O=du(D.reverse(),"beforeRouteLeave",B,z);for(const ge of D)ge.leaveGuards.forEach(j=>{O.push($n(j,B,z))});const fe=E.bind(null,B,z);return O.push(fe),co(O).then(()=>{O=[];for(const ge of i.list())O.push($n(ge,B,z));return O.push(fe),co(O)}).then(()=>{O=du(F,"beforeRouteUpdate",B,z);for(const ge of F)ge.updateGuards.forEach(j=>{O.push($n(j,B,z))});return O.push(fe),co(O)}).then(()=>{O=[];for(const ge of B.matched)if(ge.beforeEnter&&!z.matched.includes(ge))if(Array.isArray(ge.beforeEnter))for(const j of ge.beforeEnter)O.push($n(j,B,z));else O.push($n(ge.beforeEnter,B,z));return O.push(fe),co(O)}).then(()=>(B.matched.forEach(ge=>ge.enterCallbacks={}),O=du(ue,"beforeRouteEnter",B,z),O.push(fe),co(O))).then(()=>{O=[];for(const ge of s.list())O.push($n(ge,B,z));return O.push(fe),co(O)}).catch(ge=>In(ge,8)?ge:Promise.reject(ge))}function x(B,z,O){for(const D of a.list())D(B,z,O)}function A(B,z,O,D,F){const ue=h(B,z);if(ue)return ue;const fe=z===On,ge=yo?history.state:{};O&&(D||fe?o.replace(B.fullPath,ct({scroll:fe&&ge&&ge.scroll},F)):o.push(B.fullPath,F)),l.value=B,V(B,z,O,fe),$()}let L;function T(){L||(L=o.listen((B,z,O)=>{const D=d(B),F=w(D);if(F){S(ct(F,{replace:!0}),D).catch(xs);return}u=D;const ue=l.value;yo&&tw(Jh(ue.fullPath,O.delta),uc()),k(D,ue).catch(fe=>In(fe,12)?fe:In(fe,2)?(S(fe.to,D).then(ge=>{In(ge,20)&&!O.delta&&O.type===js.pop&&o.go(-1,!1)}).catch(xs),Promise.reject()):(O.delta&&o.go(-O.delta,!1),I(fe,D,ue))).then(fe=>{fe=fe||A(D,ue,!1),fe&&(O.delta?o.go(-O.delta,!1):O.type===js.pop&&In(fe,20)&&o.go(-1,!1)),x(D,ue,fe)}).catch(xs)}))}let H=ls(),P=ls(),R;function I(B,z,O){$(B);const D=P.list();return D.length?D.forEach(F=>F(B,z,O)):console.error(B),Promise.reject(B)}function M(){return R&&l.value!==On?Promise.resolve():new Promise((B,z)=>{H.add([B,z])})}function $(B){return R||(R=!B,T(),H.list().forEach(([z,O])=>B?O(B):z()),H.reset()),B}function V(B,z,O,D){const{scrollBehavior:F}=e;if(!yo||!F)return Promise.resolve();const ue=!O&&rw(Jh(B.fullPath,0))||(D||!O)&&history.state&&history.state.scroll||null;return Xe().then(()=>F(B,z,ue)).then(fe=>fe&&ew(fe)).catch(fe=>I(fe,B,z))}const U=B=>o.go(B);let Y;const Z=new Set;return{currentRoute:l,addRoute:p,removeRoute:g,hasRoute:m,getRoutes:b,resolve:d,options:e,push:y,replace:C,go:U,back:()=>U(-1),forward:()=>U(1),beforeEach:i.add,beforeResolve:s.add,afterEach:a.add,onError:P.add,isReady:M,install(B){const z=this;B.component("RouterLink",Nw),B.component("RouterView",Ww),B.config.globalProperties.$router=z,Object.defineProperty(B.config.globalProperties,"$route",{enumerable:!0,get:()=>N(l)}),yo&&!Y&&l.value===On&&(Y=!0,y(o.location).catch(F=>{}));const O={};for(const F in On)O[F]=J(()=>l.value[F]);B.provide(pd,z),B.provide(Bg,sr(O)),B.provide(Qu,l);const D=B.unmount;Z.add(B),B.unmount=function(){Z.delete(B),Z.size<1&&(u=On,L&&L(),L=null,l.value=On,Y=!1,R=!1),D()}}}}function co(e){return e.reduce((t,r)=>t.then(()=>r()),Promise.resolve())}function qw(e,t){const r=[],n=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;s<i;s++){const a=t.matched[s];a&&(e.matched.find(u=>Bo(u,a))?n.push(a):r.push(a));const l=e.matched[s];l&&(t.matched.find(u=>Bo(u,l))||o.push(l))}return[r,n,o]}var Vw=typeof global=="object"&&global&&global.Object===Object&&global,Ug=Vw,Kw=typeof self=="object"&&self&&self.Object===Object&&self,Gw=Ug||Kw||Function("return this")(),qr=Gw,Yw=qr.Symbol,rn=Yw,Wg=Object.prototype,Xw=Wg.hasOwnProperty,Qw=Wg.toString,cs=rn?rn.toStringTag:void 0;function Jw(e){var t=Xw.call(e,cs),r=e[cs];try{e[cs]=void 0;var n=!0}catch{}var o=Qw.call(e);return n&&(t?e[cs]=r:delete e[cs]),o}var Zw=Object.prototype,eS=Zw.toString;function tS(e){return eS.call(e)}var rS="[object Null]",nS="[object Undefined]",cp=rn?rn.toStringTag:void 0;function Go(e){return e==null?e===void 0?nS:rS:cp&&cp in Object(e)?Jw(e):tS(e)}function Yn(e){return e!=null&&typeof e=="object"}var iS="[object Symbol]";function fc(e){return typeof e=="symbol"||Yn(e)&&Go(e)==iS}function oS(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var sS=Array.isArray,Cn=sS,aS=1/0,up=rn?rn.prototype:void 0,fp=up?up.toString:void 0;function zg(e){if(typeof e=="string")return e;if(Cn(e))return oS(e,zg)+"";if(fc(e))return fp?fp.call(e):"";var t=e+"";return t=="0"&&1/e==-aS?"-0":t}var lS=/\s/;function cS(e){for(var t=e.length;t--&&lS.test(e.charAt(t)););return t}var uS=/^\s+/;function fS(e){return e&&e.slice(0,cS(e)+1).replace(uS,"")}function nn(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var dp=0/0,dS=/^[-+]0x[0-9a-f]+$/i,hS=/^0b[01]+$/i,pS=/^0o[0-7]+$/i,vS=parseInt;function hp(e){if(typeof e=="number")return e;if(fc(e))return dp;if(nn(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=nn(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=fS(e);var r=hS.test(e);return r||pS.test(e)?vS(e.slice(2),r?2:8):dS.test(e)?dp:+e}var gS="[object AsyncFunction]",mS="[object Function]",_S="[object GeneratorFunction]",yS="[object Proxy]";function qg(e){if(!nn(e))return!1;var t=Go(e);return t==mS||t==_S||t==gS||t==yS}var bS=qr["__core-js_shared__"],hu=bS,pp=function(){var e=/[^.]+$/.exec(hu&&hu.keys&&hu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function CS(e){return!!pp&&pp in e}var wS=Function.prototype,SS=wS.toString;function Wi(e){if(e!=null){try{return SS.call(e)}catch{}try{return e+""}catch{}}return""}var xS=/[\\^$.*+?()[\]{}|]/g,ES=/^\[object .+?Constructor\]$/,AS=Function.prototype,kS=Object.prototype,TS=AS.toString,LS=kS.hasOwnProperty,RS=RegExp("^"+TS.call(LS).replace(xS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function BS(e){if(!nn(e)||CS(e))return!1;var t=qg(e)?RS:ES;return t.test(Wi(e))}function OS(e,t){return e==null?void 0:e[t]}function zi(e,t){var r=OS(e,t);return BS(r)?r:void 0}var IS=zi(qr,"WeakMap"),ef=IS,vp=Object.create,MS=function(){function e(){}return function(t){if(!nn(t))return{};if(vp)return vp(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),PS=MS;function DS(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var HS=function(){try{var e=zi(Object,"defineProperty");return e({},"",{}),e}catch{}}(),gp=HS;function FS(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var NS=9007199254740991,$S=/^(?:0|[1-9]\d*)$/;function Vg(e,t){var r=typeof e;return t=t==null?NS:t,!!t&&(r=="number"||r!="symbol"&&$S.test(e))&&e>-1&&e%1==0&&e<t}function Kg(e,t,r){t=="__proto__"&&gp?gp(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function gd(e,t){return e===t||e!==e&&t!==t}var jS=Object.prototype,US=jS.hasOwnProperty;function md(e,t,r){var n=e[t];(!(US.call(e,t)&&gd(n,r))||r===void 0&&!(t in e))&&Kg(e,t,r)}function dc(e,t,r,n){var o=!r;r||(r={});for(var i=-1,s=t.length;++i<s;){var a=t[i],l=n?n(r[a],e[a],a,r,e):void 0;l===void 0&&(l=e[a]),o?Kg(r,a,l):md(r,a,l)}return r}var WS=9007199254740991;function Gg(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=WS}function Yg(e){return e!=null&&Gg(e.length)&&!qg(e)}var zS=Object.prototype;function _d(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||zS;return e===r}function qS(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var VS="[object Arguments]";function mp(e){return Yn(e)&&Go(e)==VS}var Xg=Object.prototype,KS=Xg.hasOwnProperty,GS=Xg.propertyIsEnumerable,YS=mp(function(){return arguments}())?mp:function(e){return Yn(e)&&KS.call(e,"callee")&&!GS.call(e,"callee")},XS=YS;function QS(){return!1}var Qg=typeof mr=="object"&&mr&&!mr.nodeType&&mr,_p=Qg&&typeof _r=="object"&&_r&&!_r.nodeType&&_r,JS=_p&&_p.exports===Qg,yp=JS?qr.Buffer:void 0,ZS=yp?yp.isBuffer:void 0,ex=ZS||QS,Pl=ex,tx="[object Arguments]",rx="[object Array]",nx="[object Boolean]",ix="[object Date]",ox="[object Error]",sx="[object Function]",ax="[object Map]",lx="[object Number]",cx="[object Object]",ux="[object RegExp]",fx="[object Set]",dx="[object String]",hx="[object WeakMap]",px="[object ArrayBuffer]",vx="[object DataView]",gx="[object Float32Array]",mx="[object Float64Array]",_x="[object Int8Array]",yx="[object Int16Array]",bx="[object Int32Array]",Cx="[object Uint8Array]",wx="[object Uint8ClampedArray]",Sx="[object Uint16Array]",xx="[object Uint32Array]",_t={};_t[gx]=_t[mx]=_t[_x]=_t[yx]=_t[bx]=_t[Cx]=_t[wx]=_t[Sx]=_t[xx]=!0;_t[tx]=_t[rx]=_t[px]=_t[nx]=_t[vx]=_t[ix]=_t[ox]=_t[sx]=_t[ax]=_t[lx]=_t[cx]=_t[ux]=_t[fx]=_t[dx]=_t[hx]=!1;function Ex(e){return Yn(e)&&Gg(e.length)&&!!_t[Go(e)]}function yd(e){return function(t){return e(t)}}var Jg=typeof mr=="object"&&mr&&!mr.nodeType&&mr,As=Jg&&typeof _r=="object"&&_r&&!_r.nodeType&&_r,Ax=As&&As.exports===Jg,pu=Ax&&Ug.process,kx=function(){try{var e=As&&As.require&&As.require("util").types;return e||pu&&pu.binding&&pu.binding("util")}catch{}}(),Io=kx,bp=Io&&Io.isTypedArray,Tx=bp?yd(bp):Ex,Zg=Tx,Lx=Object.prototype,Rx=Lx.hasOwnProperty;function em(e,t){var r=Cn(e),n=!r&&XS(e),o=!r&&!n&&Pl(e),i=!r&&!n&&!o&&Zg(e),s=r||n||o||i,a=s?qS(e.length,String):[],l=a.length;for(var u in e)(t||Rx.call(e,u))&&!(s&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Vg(u,l)))&&a.push(u);return a}function tm(e,t){return function(r){return e(t(r))}}var Bx=tm(Object.keys,Object),Ox=Bx,Ix=Object.prototype,Mx=Ix.hasOwnProperty;function Px(e){if(!_d(e))return Ox(e);var t=[];for(var r in Object(e))Mx.call(e,r)&&r!="constructor"&&t.push(r);return t}function bd(e){return Yg(e)?em(e):Px(e)}function Dx(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Hx=Object.prototype,Fx=Hx.hasOwnProperty;function Nx(e){if(!nn(e))return Dx(e);var t=_d(e),r=[];for(var n in e)n=="constructor"&&(t||!Fx.call(e,n))||r.push(n);return r}function Cd(e){return Yg(e)?em(e,!0):Nx(e)}var $x=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jx=/^\w*$/;function Ux(e,t){if(Cn(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||fc(e)?!0:jx.test(e)||!$x.test(e)||t!=null&&e in Object(t)}var Wx=zi(Object,"create"),Us=Wx;function zx(){this.__data__=Us?Us(null):{},this.size=0}function qx(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Vx="__lodash_hash_undefined__",Kx=Object.prototype,Gx=Kx.hasOwnProperty;function Yx(e){var t=this.__data__;if(Us){var r=t[e];return r===Vx?void 0:r}return Gx.call(t,e)?t[e]:void 0}var Xx=Object.prototype,Qx=Xx.hasOwnProperty;function Jx(e){var t=this.__data__;return Us?t[e]!==void 0:Qx.call(t,e)}var Zx="__lodash_hash_undefined__";function e2(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Us&&t===void 0?Zx:t,this}function Pi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Pi.prototype.clear=zx;Pi.prototype.delete=qx;Pi.prototype.get=Yx;Pi.prototype.has=Jx;Pi.prototype.set=e2;function t2(){this.__data__=[],this.size=0}function hc(e,t){for(var r=e.length;r--;)if(gd(e[r][0],t))return r;return-1}var r2=Array.prototype,n2=r2.splice;function i2(e){var t=this.__data__,r=hc(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():n2.call(t,r,1),--this.size,!0}function o2(e){var t=this.__data__,r=hc(t,e);return r<0?void 0:t[r][1]}function s2(e){return hc(this.__data__,e)>-1}function a2(e,t){var r=this.__data__,n=hc(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function En(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}En.prototype.clear=t2;En.prototype.delete=i2;En.prototype.get=o2;En.prototype.has=s2;En.prototype.set=a2;var l2=zi(qr,"Map"),Ws=l2;function c2(){this.size=0,this.__data__={hash:new Pi,map:new(Ws||En),string:new Pi}}function u2(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function pc(e,t){var r=e.__data__;return u2(t)?r[typeof t=="string"?"string":"hash"]:r.map}function f2(e){var t=pc(this,e).delete(e);return this.size-=t?1:0,t}function d2(e){return pc(this,e).get(e)}function h2(e){return pc(this,e).has(e)}function p2(e,t){var r=pc(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function An(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}An.prototype.clear=c2;An.prototype.delete=f2;An.prototype.get=d2;An.prototype.has=h2;An.prototype.set=p2;var v2="Expected a function";function wd(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(v2);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(wd.Cache||An),r}wd.Cache=An;var g2=500;function m2(e){var t=wd(e,function(n){return r.size===g2&&r.clear(),n}),r=t.cache;return t}var _2=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,y2=/\\(\\)?/g,b2=m2(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(_2,function(r,n,o,i){t.push(o?i.replace(y2,"$1"):n||r)}),t}),C2=b2;function w2(e){return e==null?"":zg(e)}function rm(e,t){return Cn(e)?e:Ux(e,t)?[e]:C2(w2(e))}var S2=1/0;function nm(e){if(typeof e=="string"||fc(e))return e;var t=e+"";return t=="0"&&1/e==-S2?"-0":t}function x2(e,t){t=rm(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[nm(t[r++])];return r&&r==n?e:void 0}function Dl(e,t,r){var n=e==null?void 0:x2(e,t);return n===void 0?r:n}function im(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var E2=tm(Object.getPrototypeOf,Object),om=E2;function tf(){if(!arguments.length)return[];var e=arguments[0];return Cn(e)?e:[e]}function A2(){this.__data__=new En,this.size=0}function k2(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function T2(e){return this.__data__.get(e)}function L2(e){return this.__data__.has(e)}var R2=200;function B2(e,t){var r=this.__data__;if(r instanceof En){var n=r.__data__;if(!Ws||n.length<R2-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new An(n)}return r.set(e,t),this.size=r.size,this}function _n(e){var t=this.__data__=new En(e);this.size=t.size}_n.prototype.clear=A2;_n.prototype.delete=k2;_n.prototype.get=T2;_n.prototype.has=L2;_n.prototype.set=B2;function O2(e,t){return e&&dc(t,bd(t),e)}function I2(e,t){return e&&dc(t,Cd(t),e)}var sm=typeof mr=="object"&&mr&&!mr.nodeType&&mr,Cp=sm&&typeof _r=="object"&&_r&&!_r.nodeType&&_r,M2=Cp&&Cp.exports===sm,wp=M2?qr.Buffer:void 0,Sp=wp?wp.allocUnsafe:void 0;function P2(e,t){if(t)return e.slice();var r=e.length,n=Sp?Sp(r):new e.constructor(r);return e.copy(n),n}function D2(e,t){for(var r=-1,n=e==null?0:e.length,o=0,i=[];++r<n;){var s=e[r];t(s,r,e)&&(i[o++]=s)}return i}function am(){return[]}var H2=Object.prototype,F2=H2.propertyIsEnumerable,xp=Object.getOwnPropertySymbols,N2=xp?function(e){return e==null?[]:(e=Object(e),D2(xp(e),function(t){return F2.call(e,t)}))}:am,Sd=N2;function $2(e,t){return dc(e,Sd(e),t)}var j2=Object.getOwnPropertySymbols,U2=j2?function(e){for(var t=[];e;)im(t,Sd(e)),e=om(e);return t}:am,lm=U2;function W2(e,t){return dc(e,lm(e),t)}function cm(e,t,r){var n=t(e);return Cn(e)?n:im(n,r(e))}function rf(e){return cm(e,bd,Sd)}function z2(e){return cm(e,Cd,lm)}var q2=zi(qr,"DataView"),nf=q2,V2=zi(qr,"Promise"),of=V2,K2=zi(qr,"Set"),sf=K2,Ep="[object Map]",G2="[object Object]",Ap="[object Promise]",kp="[object Set]",Tp="[object WeakMap]",Lp="[object DataView]",Y2=Wi(nf),X2=Wi(Ws),Q2=Wi(of),J2=Wi(sf),Z2=Wi(ef),bi=Go;(nf&&bi(new nf(new ArrayBuffer(1)))!=Lp||Ws&&bi(new Ws)!=Ep||of&&bi(of.resolve())!=Ap||sf&&bi(new sf)!=kp||ef&&bi(new ef)!=Tp)&&(bi=function(e){var t=Go(e),r=t==G2?e.constructor:void 0,n=r?Wi(r):"";if(n)switch(n){case Y2:return Lp;case X2:return Ep;case Q2:return Ap;case J2:return kp;case Z2:return Tp}return t});var zs=bi,eE=Object.prototype,tE=eE.hasOwnProperty;function rE(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&tE.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var nE=qr.Uint8Array,Hl=nE;function xd(e){var t=new e.constructor(e.byteLength);return new Hl(t).set(new Hl(e)),t}function iE(e,t){var r=t?xd(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var oE=/\w*$/;function sE(e){var t=new e.constructor(e.source,oE.exec(e));return t.lastIndex=e.lastIndex,t}var Rp=rn?rn.prototype:void 0,Bp=Rp?Rp.valueOf:void 0;function aE(e){return Bp?Object(Bp.call(e)):{}}function lE(e,t){var r=t?xd(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var cE="[object Boolean]",uE="[object Date]",fE="[object Map]",dE="[object Number]",hE="[object RegExp]",pE="[object Set]",vE="[object String]",gE="[object Symbol]",mE="[object ArrayBuffer]",_E="[object DataView]",yE="[object Float32Array]",bE="[object Float64Array]",CE="[object Int8Array]",wE="[object Int16Array]",SE="[object Int32Array]",xE="[object Uint8Array]",EE="[object Uint8ClampedArray]",AE="[object Uint16Array]",kE="[object Uint32Array]";function TE(e,t,r){var n=e.constructor;switch(t){case mE:return xd(e);case cE:case uE:return new n(+e);case _E:return iE(e,r);case yE:case bE:case CE:case wE:case SE:case xE:case EE:case AE:case kE:return lE(e,r);case fE:return new n;case dE:case vE:return new n(e);case hE:return sE(e);case pE:return new n;case gE:return aE(e)}}function LE(e){return typeof e.constructor=="function"&&!_d(e)?PS(om(e)):{}}var RE="[object Map]";function BE(e){return Yn(e)&&zs(e)==RE}var Op=Io&&Io.isMap,OE=Op?yd(Op):BE,IE=OE,ME="[object Set]";function PE(e){return Yn(e)&&zs(e)==ME}var Ip=Io&&Io.isSet,DE=Ip?yd(Ip):PE,HE=DE,FE=1,NE=2,$E=4,um="[object Arguments]",jE="[object Array]",UE="[object Boolean]",WE="[object Date]",zE="[object Error]",fm="[object Function]",qE="[object GeneratorFunction]",VE="[object Map]",KE="[object Number]",dm="[object Object]",GE="[object RegExp]",YE="[object Set]",XE="[object String]",QE="[object Symbol]",JE="[object WeakMap]",ZE="[object ArrayBuffer]",e5="[object DataView]",t5="[object Float32Array]",r5="[object Float64Array]",n5="[object Int8Array]",i5="[object Int16Array]",o5="[object Int32Array]",s5="[object Uint8Array]",a5="[object Uint8ClampedArray]",l5="[object Uint16Array]",c5="[object Uint32Array]",gt={};gt[um]=gt[jE]=gt[ZE]=gt[e5]=gt[UE]=gt[WE]=gt[t5]=gt[r5]=gt[n5]=gt[i5]=gt[o5]=gt[VE]=gt[KE]=gt[dm]=gt[GE]=gt[YE]=gt[XE]=gt[QE]=gt[s5]=gt[a5]=gt[l5]=gt[c5]=!0;gt[zE]=gt[fm]=gt[JE]=!1;function ul(e,t,r,n,o,i){var s,a=t&FE,l=t&NE,u=t&$E;if(r&&(s=o?r(e,n,o,i):r(e)),s!==void 0)return s;if(!nn(e))return e;var c=Cn(e);if(c){if(s=rE(e),!a)return DS(e,s)}else{var _=zs(e),v=_==fm||_==qE;if(Pl(e))return P2(e,a);if(_==dm||_==um||v&&!o){if(s=l||v?{}:LE(e),!a)return l?W2(e,I2(s,e)):$2(e,O2(s,e))}else{if(!gt[_])return o?e:{};s=TE(e,_,a)}}i||(i=new _n);var p=i.get(e);if(p)return p;i.set(e,s),HE(e)?e.forEach(function(m){s.add(ul(m,t,r,m,e,i))}):IE(e)&&e.forEach(function(m,d){s.set(d,ul(m,t,r,d,e,i))});var g=u?l?z2:rf:l?Cd:bd,b=c?void 0:g(e);return FS(b||e,function(m,d){b&&(d=m,m=e[d]),md(s,d,ul(m,t,r,d,e,i))}),s}var u5=4;function f5(e){return ul(e,u5)}var d5="__lodash_hash_undefined__";function h5(e){return this.__data__.set(e,d5),this}function p5(e){return this.__data__.has(e)}function Fl(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new An;++t<r;)this.add(e[t])}Fl.prototype.add=Fl.prototype.push=h5;Fl.prototype.has=p5;function v5(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function g5(e,t){return e.has(t)}var m5=1,_5=2;function hm(e,t,r,n,o,i){var s=r&m5,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var _=-1,v=!0,p=r&_5?new Fl:void 0;for(i.set(e,t),i.set(t,e);++_<a;){var g=e[_],b=t[_];if(n)var m=s?n(b,g,_,t,e,i):n(g,b,_,e,t,i);if(m!==void 0){if(m)continue;v=!1;break}if(p){if(!v5(t,function(d,f){if(!g5(p,f)&&(g===d||o(g,d,r,n,i)))return p.push(f)})){v=!1;break}}else if(!(g===b||o(g,b,r,n,i))){v=!1;break}}return i.delete(e),i.delete(t),v}function y5(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function b5(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var C5=1,w5=2,S5="[object Boolean]",x5="[object Date]",E5="[object Error]",A5="[object Map]",k5="[object Number]",T5="[object RegExp]",L5="[object Set]",R5="[object String]",B5="[object Symbol]",O5="[object ArrayBuffer]",I5="[object DataView]",Mp=rn?rn.prototype:void 0,vu=Mp?Mp.valueOf:void 0;function M5(e,t,r,n,o,i,s){switch(r){case I5:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case O5:return!(e.byteLength!=t.byteLength||!i(new Hl(e),new Hl(t)));case S5:case x5:case k5:return gd(+e,+t);case E5:return e.name==t.name&&e.message==t.message;case T5:case R5:return e==t+"";case A5:var a=y5;case L5:var l=n&C5;if(a||(a=b5),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;n|=w5,s.set(e,t);var c=hm(a(e),a(t),n,o,i,s);return s.delete(e),c;case B5:if(vu)return vu.call(e)==vu.call(t)}return!1}var P5=1,D5=Object.prototype,H5=D5.hasOwnProperty;function F5(e,t,r,n,o,i){var s=r&P5,a=rf(e),l=a.length,u=rf(t),c=u.length;if(l!=c&&!s)return!1;for(var _=l;_--;){var v=a[_];if(!(s?v in t:H5.call(t,v)))return!1}var p=i.get(e),g=i.get(t);if(p&&g)return p==t&&g==e;var b=!0;i.set(e,t),i.set(t,e);for(var m=s;++_<l;){v=a[_];var d=e[v],f=t[v];if(n)var h=s?n(f,d,v,t,e,i):n(d,f,v,e,t,i);if(!(h===void 0?d===f||o(d,f,r,n,i):h)){b=!1;break}m||(m=v=="constructor")}if(b&&!m){var y=e.constructor,C=t.constructor;y!=C&&"constructor"in e&&"constructor"in t&&!(typeof y=="function"&&y instanceof y&&typeof C=="function"&&C instanceof C)&&(b=!1)}return i.delete(e),i.delete(t),b}var N5=1,Pp="[object Arguments]",Dp="[object Array]",Wa="[object Object]",$5=Object.prototype,Hp=$5.hasOwnProperty;function j5(e,t,r,n,o,i){var s=Cn(e),a=Cn(t),l=s?Dp:zs(e),u=a?Dp:zs(t);l=l==Pp?Wa:l,u=u==Pp?Wa:u;var c=l==Wa,_=u==Wa,v=l==u;if(v&&Pl(e)){if(!Pl(t))return!1;s=!0,c=!1}if(v&&!c)return i||(i=new _n),s||Zg(e)?hm(e,t,r,n,o,i):M5(e,t,l,r,n,o,i);if(!(r&N5)){var p=c&&Hp.call(e,"__wrapped__"),g=_&&Hp.call(t,"__wrapped__");if(p||g){var b=p?e.value():e,m=g?t.value():t;return i||(i=new _n),o(b,m,r,n,i)}}return v?(i||(i=new _n),F5(e,t,r,n,o,i)):!1}function pm(e,t,r,n,o){return e===t?!0:e==null||t==null||!Yn(e)&&!Yn(t)?e!==e&&t!==t:j5(e,t,r,n,pm,o)}var U5=function(){return qr.Date.now()},gu=U5,W5="Expected a function",z5=Math.max,q5=Math.min;function qs(e,t,r){var n,o,i,s,a,l,u=0,c=!1,_=!1,v=!0;if(typeof e!="function")throw new TypeError(W5);t=hp(t)||0,nn(r)&&(c=!!r.leading,_="maxWait"in r,i=_?z5(hp(r.maxWait)||0,t):i,v="trailing"in r?!!r.trailing:v);function p(w){var S=n,E=o;return n=o=void 0,u=w,s=e.apply(E,S),s}function g(w){return u=w,a=setTimeout(d,t),c?p(w):s}function b(w){var S=w-l,E=w-u,k=t-S;return _?q5(k,i-E):k}function m(w){var S=w-l,E=w-u;return l===void 0||S>=t||S<0||_&&E>=i}function d(){var w=gu();if(m(w))return f(w);a=setTimeout(d,b(w))}function f(w){return a=void 0,v&&n?p(w):(n=o=void 0,s)}function h(){a!==void 0&&clearTimeout(a),u=0,n=l=o=a=void 0}function y(){return a===void 0?s:f(gu())}function C(){var w=gu(),S=m(w);if(n=arguments,o=this,l=w,S){if(a===void 0)return g(l);if(_)return clearTimeout(a),a=setTimeout(d,t),p(l)}return a===void 0&&(a=setTimeout(d,t)),s}return C.cancel=h,C.flush=y,C}function vm(e){for(var t=-1,r=e==null?0:e.length,n={};++t<r;){var o=e[t];n[o[0]]=o[1]}return n}function V5(e,t){return pm(e,t)}function K5(e){return e==null}function G5(e,t,r,n){if(!nn(e))return e;t=rm(t,e);for(var o=-1,i=t.length,s=i-1,a=e;a!=null&&++o<i;){var l=nm(t[o]),u=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(o!=s){var c=a[l];u=n?n(c,l,a):void 0,u===void 0&&(u=nn(c)?c:Vg(t[o+1])?[]:{})}md(a,l,u),a=a[l]}return e}function Y5(e,t,r){return e==null?e:G5(e,t,r)}const X5='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',Q5=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,Fp=e=>Array.from(e.querySelectorAll(X5)).filter(t=>J5(t)&&Q5(t)),J5=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Di=(e,t,r,n=!1)=>{e&&t&&r&&(e==null||e.addEventListener(t,r,n))},Hi=(e,t,r,n=!1)=>{e&&t&&r&&(e==null||e.removeEventListener(t,r,n))},xt=(e,t,{checkForDefaultPrevented:r=!0}={})=>o=>{const i=e==null?void 0:e(o);if(r===!1||!i)return t==null?void 0:t(o)},Np=e=>t=>t.pointerType==="mouse"?e(t):void 0;var Z5=Object.defineProperty,eA=Object.defineProperties,tA=Object.getOwnPropertyDescriptors,$p=Object.getOwnPropertySymbols,rA=Object.prototype.hasOwnProperty,nA=Object.prototype.propertyIsEnumerable,jp=(e,t,r)=>t in e?Z5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,iA=(e,t)=>{for(var r in t||(t={}))rA.call(t,r)&&jp(e,r,t[r]);if($p)for(var r of $p(t))nA.call(t,r)&&jp(e,r,t[r]);return e},oA=(e,t)=>eA(e,tA(t));function Up(e,t){var r;const n=ms();return Bi(()=>{n.value=e()},oA(iA({},t),{flush:(r=t==null?void 0:t.flush)!=null?r:"sync"})),Js(n)}function vc(e){return k1()?(wv(e),!0):!1}var Wp;const dt=typeof window!="undefined",Xn=e=>typeof e=="boolean",Mt=e=>typeof e=="number",sA=e=>typeof e=="string",mu=()=>{};dt&&((Wp=window==null?void 0:window.navigator)==null?void 0:Wp.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function aA(e,t){function r(...n){e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})}return r}function lA(e,t={}){let r,n;return i=>{const s=N(e),a=N(t.maxWait);if(r&&clearTimeout(r),s<=0||a!==void 0&&a<=0)return n&&(clearTimeout(n),n=null),i();a&&!n&&(n=setTimeout(()=>{r&&clearTimeout(r),n=null,i()},a)),r=setTimeout(()=>{n&&clearTimeout(n),n=null,i()},s)}}function cA(e,t=200,r={}){return aA(lA(t,r),e)}function uA(e,t=200,r={}){if(t<=0)return e;const n=X(e.value),o=cA(()=>{n.value=e.value},t,r);return Be(e,()=>o()),n}function Nl(e,t,r={}){const{immediate:n=!0}=r,o=X(!1);let i=null;function s(){i&&(clearTimeout(i),i=null)}function a(){o.value=!1,s()}function l(...u){s(),o.value=!0,i=setTimeout(()=>{o.value=!1,i=null,e(...u)},N(t))}return n&&(o.value=!0,dt&&l()),vc(a),{isPending:o,start:l,stop:a}}function Ii(e){var t;const r=N(e);return(t=r==null?void 0:r.$el)!=null?t:r}const gc=dt?window:void 0,fA=dt?window.document:void 0;function yr(...e){let t,r,n,o;if(sA(e[0])?([r,n,o]=e,t=gc):[t,r,n,o]=e,!t)return mu;let i=mu;const s=Be(()=>Ii(t),l=>{i(),l&&(l.addEventListener(r,n,o),i=()=>{l.removeEventListener(r,n,o),i=mu})},{immediate:!0,flush:"post"}),a=()=>{s(),i()};return vc(a),a}function gm(e,t,r={}){const{window:n=gc,ignore:o,capture:i=!0}=r;if(!n)return;const s=X(!0);let a;const l=_=>{n.clearTimeout(a);const v=Ii(e),p=_.composedPath();!v||v===_.target||p.includes(v)||!s.value||o&&o.length>0&&o.some(g=>{const b=Ii(g);return b&&(_.target===b||p.includes(b))})||t(_)},u=[yr(n,"click",l,{passive:!0,capture:i}),yr(n,"pointerdown",_=>{const v=Ii(e);s.value=!!v&&!_.composedPath().includes(v)},{passive:!0}),yr(n,"pointerup",_=>{a=n.setTimeout(()=>l(_),50)},{passive:!0})];return()=>u.forEach(_=>_())}const af=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},lf="__vueuse_ssr_handlers__";af[lf]=af[lf]||{};af[lf];function dA({document:e=fA}={}){if(!e)return X("visible");const t=X(e.visibilityState);return yr(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var zp=Object.getOwnPropertySymbols,hA=Object.prototype.hasOwnProperty,pA=Object.prototype.propertyIsEnumerable,vA=(e,t)=>{var r={};for(var n in e)hA.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&zp)for(var n of zp(e))t.indexOf(n)<0&&pA.call(e,n)&&(r[n]=e[n]);return r};function ta(e,t,r={}){const n=r,{window:o=gc}=n,i=vA(n,["window"]);let s;const a=o&&"ResizeObserver"in o,l=()=>{s&&(s.disconnect(),s=void 0)},u=Be(()=>Ii(e),_=>{l(),a&&o&&_&&(s=new ResizeObserver(t),s.observe(_,i))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return vc(c),{isSupported:a,stop:c}}function gA({window:e=gc}={}){if(!e)return X(!1);const t=X(e.document.hasFocus());return yr(e,"blur",()=>{t.value=!1}),yr(e,"focus",()=>{t.value=!0}),t}const mA=function(e){for(const t of e){const r=t.target.__resizeListeners__||[];r.length&&r.forEach(n=>{n()})}},_A=function(e,t){!dt||!e||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new ResizeObserver(mA),e.__ro__.observe(e)),e.__resizeListeners__.push(t))},yA=function(e,t){var r;!e||!e.__resizeListeners__||(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||(r=e.__ro__)==null||r.disconnect())},$l=e=>e===void 0,Mo=e=>typeof Element=="undefined"?!1:e instanceof Element,cf=e=>Object.keys(e),fl=(e,t,r)=>({get value(){return Dl(e,t,r)},set value(n){Y5(e,t,n)}});class bA extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function qi(e,t){throw new bA(`[${e}] ${t}`)}const mm=(e="")=>e.split(" ").filter(t=>!!t.trim()),xo=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Vs=(e,t)=>{!e||!t.trim()||e.classList.add(...mm(t))},Qn=(e,t)=>{!e||!t.trim()||e.classList.remove(...mm(t))},vn=(e,t)=>{var r;if(!dt||!e||!t)return"";Rr(t);try{const n=e.style[t];if(n)return n;const o=(r=document.defaultView)==null?void 0:r.getComputedStyle(e,"");return o?o[t]:""}catch{return e.style[t]}};function on(e,t="px"){if(!e)return"";if(ze(e))return e;if(Mt(e))return`${e}${t}`}let za;const CA=()=>{var e;if(!dt)return 0;if(za!==void 0)return za;const t=document.createElement("div");t.className="el-scrollbar__wrap",t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const r=t.offsetWidth;t.style.overflow="scroll";const n=document.createElement("div");n.style.width="100%",t.appendChild(n);const o=n.offsetWidth;return(e=t.parentNode)==null||e.removeChild(t),za=r-o,za};var qt=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r};const wA=we({name:"ArrowDown"}),SA={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},xA=W("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),EA=[xA];function AA(e,t,r,n,o,i){return K(),se("svg",SA,EA)}var _m=qt(wA,[["render",AA]]);const kA=we({name:"ArrowLeft"}),TA={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},LA=W("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"},null,-1),RA=[LA];function BA(e,t,r,n,o,i){return K(),se("svg",TA,RA)}var OA=qt(kA,[["render",BA]]);const IA=we({name:"ArrowRight"}),MA={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},PA=W("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1),DA=[PA];function HA(e,t,r,n,o,i){return K(),se("svg",MA,DA)}var Ed=qt(IA,[["render",HA]]);const FA=we({name:"ArrowUp"}),NA={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},$A=W("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1),jA=[$A];function UA(e,t,r,n,o,i){return K(),se("svg",NA,jA)}var WA=qt(FA,[["render",UA]]);const zA=we({name:"Check"}),qA={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},VA=W("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"},null,-1),KA=[VA];function GA(e,t,r,n,o,i){return K(),se("svg",qA,KA)}var qp=qt(zA,[["render",GA]]);const YA=we({name:"CircleCheck"}),XA={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},QA=W("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),JA=W("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),ZA=[QA,JA];function e4(e,t,r,n,o,i){return K(),se("svg",XA,ZA)}var uf=qt(YA,[["render",e4]]);const t4=we({name:"CircleCloseFilled"}),r4={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},n4=W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),i4=[n4];function o4(e,t,r,n,o,i){return K(),se("svg",r4,i4)}var ym=qt(t4,[["render",o4]]);const s4=we({name:"CircleClose"}),a4={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},l4=W("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),c4=W("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),u4=[l4,c4];function f4(e,t,r,n,o,i){return K(),se("svg",a4,u4)}var jl=qt(s4,[["render",f4]]);const d4=we({name:"Close"}),h4={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},p4=W("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),v4=[p4];function g4(e,t,r,n,o,i){return K(),se("svg",h4,v4)}var Fi=qt(d4,[["render",g4]]);const m4=we({name:"Hide"}),_4={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},y4=W("path",{d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z",fill:"currentColor"},null,-1),b4=W("path",{d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z",fill:"currentColor"},null,-1),C4=[y4,b4];function w4(e,t,r,n,o,i){return K(),se("svg",_4,C4)}var S4=qt(m4,[["render",w4]]);const x4=we({name:"InfoFilled"}),E4={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},A4=W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),k4=[A4];function T4(e,t,r,n,o,i){return K(),se("svg",E4,k4)}var bm=qt(x4,[["render",T4]]);const L4=we({name:"Loading"}),R4={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},B4=W("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),O4=[B4];function I4(e,t,r,n,o,i){return K(),se("svg",R4,O4)}var mc=qt(L4,[["render",I4]]);const M4=we({name:"Plus"}),P4={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},D4=W("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1),H4=[D4];function F4(e,t,r,n,o,i){return K(),se("svg",P4,H4)}var N4=qt(M4,[["render",F4]]);const $4=we({name:"SuccessFilled"}),j4={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},U4=W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),W4=[U4];function z4(e,t,r,n,o,i){return K(),se("svg",j4,W4)}var Cm=qt($4,[["render",z4]]);const q4=we({name:"View"}),V4={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},K4=W("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),G4=[K4];function Y4(e,t,r,n,o,i){return K(),se("svg",V4,G4)}var X4=qt(q4,[["render",Y4]]);const Q4=we({name:"WarningFilled"}),J4={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Z4=W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),e3=[Z4];function t3(e,t,r,n,o,i){return K(),se("svg",J4,e3)}var Ul=qt(Q4,[["render",t3]]);const ff=Symbol(),Vp="__elPropsReservedKey";function _c(e,t){if(!it(e)||!!e[Vp])return e;const{values:r,required:n,default:o,type:i,validator:s}=e,a=r||s?u=>{let c=!1,_=[];if(r&&(_=Array.from(r),qe(e,"default")&&_.push(o),c||(c=_.includes(u))),s&&(c||(c=s(u))),!c&&_.length>0){const v=[...new Set(_)].map(p=>JSON.stringify(p)).join(", ");ob(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${v}], got value ${JSON.stringify(u)}.`)}return c}:void 0,l={type:it(i)&&Object.getOwnPropertySymbols(i).includes(ff)?i[ff]:i,required:!!n,validator:a,[Vp]:!0};return qe(e,"default")&&(l.default=o),l}const Ge=e=>vm(Object.entries(e).map(([t,r])=>[t,_c(r,t)])),De=e=>({[ff]:e}),Ni=De([String,Object,Function]),r3={Close:Fi},yc={Close:Fi,SuccessFilled:Cm,InfoFilled:bm,WarningFilled:Ul,CircleCloseFilled:ym},wn={success:Cm,warning:Ul,error:ym,info:bm},n3={validating:mc,success:uf,error:jl},Ct=(e,t)=>{if(e.install=r=>{for(const n of[e,...Object.values(t!=null?t:{})])r.component(n.name,n)},t)for(const[r,n]of Object.entries(t))e[r]=n;return e},wm=(e,t)=>(e.install=r=>{e._context=r._context,r.config.globalProperties[t]=e},e),Vr=e=>(e.install=kt,e),Sm=(...e)=>t=>{e.forEach(r=>{Ue(r)?r(t):r.value=t})},Ze={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},Tt="update:modelValue",Yo=["","default","small","large"],bc=e=>["",...Yo].includes(e);var dl=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(dl||{});const i3=e=>{if(!It(e))return{};const t=e.props||{},r=(It(e.type)?e.type.props:void 0)||{},n={};return Object.keys(r).forEach(o=>{qe(r[o],"default")&&(n[o]=r[o].default)}),Object.keys(t).forEach(o=>{n[Rr(o)]=t[o]}),n},o3=e=>/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e),xm=()=>Math.floor(Math.random()*1e4),Ad=e=>e,s3=["class","style"],a3=/^on[A-Z]/,Em=(e={})=>{const{excludeListeners:t=!1,excludeKeys:r=[]}=e,n=r.concat(s3),o=ot();return J(o?()=>{var i;return vm(Object.entries((i=o.proxy)==null?void 0:i.$attrs).filter(([s])=>!n.includes(s)&&!(t&&a3.test(s))))}:()=>({}))},Am=Symbol("buttonGroupContextKey"),km=Symbol(),Tm=Symbol("dialogInjectionKey"),Vi=Symbol("formContextKey"),Jn=Symbol("formItemContextKey"),Lm=Symbol("radioGroupKey"),Rm=Symbol("scrollbarContextKey"),Cc=Symbol("tabsRootContextKey"),kd=Symbol("popper"),Bm=Symbol("popperContent"),Om=e=>{const t=ot();return J(()=>{var r,n;return(n=(r=t.proxy)==null?void 0:r.$props[e])!=null?n:void 0})},Wl=X();function Ki(e,t=void 0){const r=ot()?Ie(km,Wl):Wl;return e?J(()=>{var n,o;return(o=(n=r.value)==null?void 0:n[e])!=null?o:t}):r}const l3=(e,t,r=!1)=>{var n;const o=!!ot(),i=o?Ki():void 0,s=(n=t==null?void 0:t.provide)!=null?n:o?ft:void 0;if(!s)return;const a=J(()=>{const l=N(e);return i!=null&&i.value?c3(i.value,l):l});return s(km,a),(r||!Wl.value)&&(Wl.value=a.value),a},c3=(e,t)=>{var r;const n=[...new Set([...cf(e),...cf(t)])],o={};for(const i of n)o[i]=(r=t[i])!=null?r:e[i];return o},wc=_c({type:String,values:Yo,required:!1}),Cr=(e,t={})=>{const r=X(void 0),n=t.prop?r:Om("size"),o=t.global?r:Ki("size"),i=t.form?{size:void 0}:Ie(Vi,void 0),s=t.formItem?{size:void 0}:Ie(Jn,void 0);return J(()=>n.value||N(e)||(s==null?void 0:s.size)||(i==null?void 0:i.size)||o.value||"")},Sc=e=>{const t=Om("disabled"),r=Ie(Vi,void 0);return J(()=>t.value||N(e)||(r==null?void 0:r.disabled)||!1)},Im=(e,t,r)=>{let n={offsetX:0,offsetY:0};const o=a=>{const l=a.clientX,u=a.clientY,{offsetX:c,offsetY:_}=n,v=e.value.getBoundingClientRect(),p=v.left,g=v.top,b=v.width,m=v.height,d=document.documentElement.clientWidth,f=document.documentElement.clientHeight,h=-p+c,y=-g+_,C=d-p-b+c,w=f-g-m+_,S=k=>{const x=Math.min(Math.max(c+k.clientX-l,h),C),A=Math.min(Math.max(_+k.clientY-u,y),w);n={offsetX:x,offsetY:A},e.value.style.transform=`translate(${on(x)}, ${on(A)})`},E=()=>{document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",E)};document.addEventListener("mousemove",S),document.addEventListener("mouseup",E)},i=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",o)},s=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",o)};ht(()=>{Bi(()=>{r.value?i():s()})}),Yt(()=>{s()})},u3={prefix:Math.floor(Math.random()*1e4),current:0},f3=Symbol("elIdInjection"),xc=e=>{const t=Ie(f3,u3);return J(()=>N(e)||`el-id-${t.prefix}-${t.current++}`)},Td=()=>{const e=Ie(Vi,void 0),t=Ie(Jn,void 0);return{form:e,formItem:t}},Ec=(e,{formItemContext:t,disableIdGeneration:r,disableIdManagement:n})=>{r||(r=X(!1)),n||(n=X(!1));const o=X();let i;const s=J(()=>{var a;return!!(!e.label&&t&&t.inputIds&&((a=t.inputIds)==null?void 0:a.length)<=1)});return ht(()=>{i=Be([Gt(e,"id"),r],([a,l])=>{const u=a!=null?a:l?void 0:xc().value;u!==o.value&&(t!=null&&t.removeInputId&&(o.value&&t.removeInputId(o.value),!(n!=null&&n.value)&&!l&&u&&t.addInputId(u)),o.value=u)},{immediate:!0})}),Vo(()=>{i&&i(),t!=null&&t.removeInputId&&o.value&&t.removeInputId(o.value)}),{isLabeledByFormItem:s,inputId:o}};var d3={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const h3=e=>(t,r)=>p3(t,r,N(e)),p3=(e,t,r)=>Dl(r,e,e).replace(/\{(\w+)\}/g,(n,o)=>{var i;return`${(i=t==null?void 0:t[o])!=null?i:`{${o}}`}`}),v3=e=>{const t=J(()=>N(e).name),r=yt(e)?e:X(e);return{lang:t,locale:r,t:h3(e)}},Ld=()=>{const e=Ki("locale");return v3(J(()=>e.value||d3))},Mm=e=>{if(yt(e)||qi("[useLockscreen]","You need to pass a ref param to this function"),!dt||xo(document.body,"el-popup-parent--hidden"))return;let t=0,r=!1,n="0",o=0;const i=()=>{Qn(document.body,"el-popup-parent--hidden"),r&&(document.body.style.paddingRight=n)};Be(e,s=>{if(!s){i();return}r=!xo(document.body,"el-popup-parent--hidden"),r&&(n=document.body.style.paddingRight,o=Number.parseInt(vn(document.body,"paddingRight"),10)),t=CA();const a=document.documentElement.clientHeight<document.body.scrollHeight,l=vn(document.body,"overflowY");t>0&&(a||l==="scroll")&&r&&(document.body.style.paddingRight=`${o+t}px`),Vs(document.body,"el-popup-parent--hidden")}),wv(()=>i())},Eo=[],g3=e=>{Eo.length!==0&&e.code===Ze.esc&&(e.stopPropagation(),Eo[Eo.length-1].handleClose())},Pm=(e,t)=>{Be(t,r=>{r?Eo.push(e):Eo.splice(Eo.indexOf(e),1)})};dt&&yr(document,"keydown",g3);const m3=_c({type:De(Boolean),default:null}),_3=_c({type:De(Function)}),y3=e=>{const t={[e]:m3,[`onUpdate:${e}`]:_3},r=[`update:${e}`];return{useModelToggle:({indicator:o,shouldHideWhenRouteChanges:i,shouldProceed:s,onShow:a,onHide:l})=>{const u=ot(),c=u.props,{emit:_}=u,v=`update:${e}`,p=J(()=>Ue(c[`onUpdate:${e}`])),g=J(()=>c[e]===null),b=()=>{o.value!==!0&&(o.value=!0,Ue(a)&&a())},m=()=>{o.value!==!1&&(o.value=!1,Ue(l)&&l())},d=()=>{if(c.disabled===!0||Ue(s)&&!s())return;const C=p.value&&dt;C&&_(v,!0),(g.value||!C)&&b()},f=()=>{if(c.disabled===!0||!dt)return;const C=p.value&&dt;C&&_(v,!1),(g.value||!C)&&m()},h=C=>{!Xn(C)||(c.disabled&&C?p.value&&_(v,!1):o.value!==C&&(C?b():m()))},y=()=>{o.value?f():d()};return Be(()=>c[e],h),i&&u.appContext.config.globalProperties.$route!==void 0&&Be(()=>Se({},u.proxy.$route),()=>{i.value&&o.value&&f()}),ht(()=>{h(c[e])}),{hide:f,show:d,toggle:y}},useModelToggleProps:t,useModelToggleEmits:r}},b3=(e,t,r)=>{const n=i=>{r(i)&&i.stopImmediatePropagation()};let o;Be(()=>e.value,i=>{i?o=yr(document,t,n,!0):o==null||o()},{immediate:!0})},Dm=(e,t)=>{let r;Be(()=>e.value,n=>{var o,i;n?(r=document.activeElement,yt(t)&&((i=(o=t.value).focus)==null||i.call(o))):r.focus()})},Rd=e=>{if(!e)return{onClick:kt,onMousedown:kt,onMouseup:kt};let t=!1,r=!1;return{onClick:s=>{t&&r&&e(s),t=r=!1},onMousedown:s=>{t=s.target===s.currentTarget},onMouseup:s=>{r=s.target===s.currentTarget}}};function C3(){let e;const t=(n,o)=>{r(),e=window.setTimeout(n,o)},r=()=>window.clearTimeout(e);return vc(()=>r()),{registerTimeout:t,cancelTimeout:r}}const w3=e=>{const t=r=>{const n=r;n.key===Ze.esc&&(e==null||e(n))};ht(()=>{Di(document,"keydown",t)}),Yt(()=>{Hi(document,"keydown",t)})};let Kp;const Hm=`el-popper-container-${xm()}`,Fm=`#${Hm}`,S3=()=>{const e=document.createElement("div");return e.id=Hm,document.body.appendChild(e),e},x3=()=>{ac(()=>{!dt||(!Kp||!document.body.querySelector(Fm))&&(Kp=S3())})},E3=Ge({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),A3=({showAfter:e,hideAfter:t,open:r,close:n})=>{const{registerTimeout:o}=C3();return{onOpen:()=>{o(()=>{r()},N(e))},onClose:()=>{o(()=>{n()},N(t))}}},Nm=Symbol("elForwardRef"),k3=e=>{ft(Nm,{setForwardRef:r=>{e.value=r}})},T3=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),$m="el",L3="is-",mi=(e,t,r,n,o)=>{let i=`${e}-${t}`;return r&&(i+=`-${r}`),n&&(i+=`__${n}`),o&&(i+=`--${o}`),i},Fe=e=>{const t=Ki("namespace"),r=J(()=>t.value||$m);return{namespace:r,b:(b="")=>mi(N(r),e,b,"",""),e:b=>b?mi(N(r),e,"",b,""):"",m:b=>b?mi(N(r),e,"","",b):"",be:(b,m)=>b&&m?mi(N(r),e,b,m,""):"",em:(b,m)=>b&&m?mi(N(r),e,"",b,m):"",bm:(b,m)=>b&&m?mi(N(r),e,b,"",m):"",bem:(b,m,d)=>b&&m&&d?mi(N(r),e,b,m,d):"",is:(b,...m)=>{const d=m.length>=1?m[0]:!0;return b&&d?`${L3}${b}`:""},cssVar:b=>{const m={};for(const d in b)m[`--${r.value}-${d}`]=b[d];return m},cssVarName:b=>`--${r.value}-${b}`,cssVarBlock:b=>{const m={};for(const d in b)m[`--${r.value}-${e}-${d}`]=b[d];return m},cssVarBlockName:b=>`--${r.value}-${e}-${b}`}},Gp=X(0),Gi=()=>{const e=Ki("zIndex",2e3),t=J(()=>e.value+Gp.value);return{initialZIndex:e,currentZIndex:t,nextZIndex:()=>(Gp.value++,t.value)}};function R3(e){const t=X();function r(){if(e.value==null)return;const{selectionStart:o,selectionEnd:i,value:s}=e.value;if(o==null||i==null)return;const a=s.slice(0,Math.max(0,o)),l=s.slice(Math.max(0,i));t.value={selectionStart:o,selectionEnd:i,value:s,beforeTxt:a,afterTxt:l}}function n(){if(e.value==null||t.value==null)return;const{value:o}=e.value,{beforeTxt:i,afterTxt:s,selectionStart:a}=t.value;if(i==null||s==null||a==null)return;let l=o.length;if(o.endsWith(s))l=o.length-s.length;else if(o.startsWith(i))l=i.length;else{const u=i[a-1],c=o.indexOf(u,a-1);c!==-1&&(l=c+1)}e.value.setSelectionRange(l,l)}return[r,n]}var Ne=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r};const B3=Ge({size:{type:De([Number,String])},color:{type:String}}),O3={name:"ElIcon",inheritAttrs:!1},I3=we(je(Se({},O3),{props:B3,setup(e){const t=e,r=Fe("icon"),n=J(()=>!t.size&&!t.color?{}:{fontSize:$l(t.size)?void 0:on(t.size),"--color":t.color});return(o,i)=>(K(),se("i",or({class:N(r).b(),style:N(n)},o.$attrs),[Ee(o.$slots,"default")],16))}}));var M3=Ne(I3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const mt=Ct(M3),P3=["light","dark"],D3=Ge({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:cf(wn),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:P3,default:"light"}}),H3={close:e=>e instanceof MouseEvent},F3={name:"ElAlert"},N3=we(je(Se({},F3),{props:D3,emits:H3,setup(e,{emit:t}){const r=e,{Close:n}=yc,o=ea(),i=Fe("alert"),s=X(!0),a=J(()=>wn[r.type]||wn.info),l=J(()=>r.description||{[i.is("big")]:o.default}),u=J(()=>r.description||{[i.is("bold")]:o.default}),c=_=>{s.value=!1,t("close",_)};return(_,v)=>(K(),Ce(wr,{name:N(i).b("fade")},{default:Q(()=>[at(W("div",{class:ne([N(i).b(),N(i).m(_.type),N(i).is("center",_.center),N(i).is(_.effect)]),role:"alert"},[_.showIcon&&N(a)?(K(),Ce(N(mt),{key:0,class:ne([N(i).e("icon"),N(l)])},{default:Q(()=>[(K(),Ce(jt(N(a))))]),_:1},8,["class"])):ke("v-if",!0),W("div",{class:ne(N(i).e("content"))},[_.title||_.$slots.title?(K(),se("span",{key:0,class:ne([N(i).e("title"),N(u)])},[Ee(_.$slots,"title",{},()=>[Te(me(_.title),1)])],2)):ke("v-if",!0),_.$slots.default||_.description?(K(),se("p",{key:1,class:ne(N(i).e("description"))},[Ee(_.$slots,"default",{},()=>[Te(me(_.description),1)])],2)):ke("v-if",!0),_.closable?(K(),se(Ve,{key:2},[_.closeText?(K(),se("div",{key:0,class:ne([N(i).e("close-btn"),N(i).is("customed")]),onClick:c},me(_.closeText),3)):(K(),Ce(N(mt),{key:1,class:ne(N(i).e("close-btn")),onClick:c},{default:Q(()=>[G(N(n))]),_:1},8,["class"]))],2112)):ke("v-if",!0)],2)],2),[[Ut,s.value]])]),_:3},8,["name"]))}}));var $3=Ne(N3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const jm=Ct($3);let Dr;const j3=`
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
`,U3=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function W3(e){const t=window.getComputedStyle(e),r=t.getPropertyValue("box-sizing"),n=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:U3.map(s=>`${s}:${t.getPropertyValue(s)}`).join(";"),paddingSize:n,borderSize:o,boxSizing:r}}function Yp(e,t=1,r){var n;Dr||(Dr=document.createElement("textarea"),document.body.appendChild(Dr));const{paddingSize:o,borderSize:i,boxSizing:s,contextStyle:a}=W3(e);Dr.setAttribute("style",`${a};${j3}`),Dr.value=e.value||e.placeholder||"";let l=Dr.scrollHeight;const u={};s==="border-box"?l=l+i:s==="content-box"&&(l=l-o),Dr.value="";const c=Dr.scrollHeight-o;if(Mt(t)){let _=c*t;s==="border-box"&&(_=_+o+i),l=Math.max(_,l),u.minHeight=`${_}px`}if(Mt(r)){let _=c*r;s==="border-box"&&(_=_+o+i),l=Math.min(_,l)}return u.height=`${l}px`,(n=Dr.parentNode)==null||n.removeChild(Dr),Dr=void 0,u}const z3=Ge({id:{type:String,default:void 0},size:wc,disabled:Boolean,modelValue:{type:De([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:De([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String,default:""},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Ni,default:""},prefixIcon:{type:Ni,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:De([Object,Array,String]),default:()=>Ad({})}}),q3={[Tt]:e=>ze(e),input:e=>ze(e),change:e=>ze(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},V3=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder"],K3=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder"],G3={name:"ElInput",inheritAttrs:!1},Y3=we(je(Se({},G3),{props:z3,emits:q3,setup(e,{expose:t,emit:r}){const n=e,o={suffix:"append",prefix:"prepend"},i=ot(),s=gg(),a=ea(),l=Em(),{form:u,formItem:c}=Td(),{inputId:_}=Ec(n,{formItemContext:c}),v=Cr(),p=Sc(),g=Fe("input"),b=Fe("textarea"),m=ms(),d=ms(),f=X(!1),h=X(!1),y=X(!1),C=X(!1),w=X(),S=ms(n.inputStyle),E=J(()=>m.value||d.value),k=J(()=>{var re;return(re=u==null?void 0:u.statusIcon)!=null?re:!1}),x=J(()=>(c==null?void 0:c.validateState)||""),A=J(()=>n3[x.value]),L=J(()=>C.value?X4:S4),T=J(()=>[s.style,n.inputStyle]),H=J(()=>[n.inputStyle,S.value,{resize:n.resize}]),P=J(()=>K5(n.modelValue)?"":String(n.modelValue)),R=J(()=>n.clearable&&!p.value&&!n.readonly&&!!P.value&&(f.value||h.value)),I=J(()=>n.showPassword&&!p.value&&!n.readonly&&(!!P.value||f.value)),M=J(()=>n.showWordLimit&&!!l.value.maxlength&&(n.type==="text"||n.type==="textarea")&&!p.value&&!n.readonly&&!n.showPassword),$=J(()=>Array.from(P.value).length),V=J(()=>!!M.value&&$.value>Number(l.value.maxlength)),U=J(()=>!!a.suffix||!!n.suffixIcon||R.value||n.showPassword||M.value||!!x.value&&k.value),[Y,Z]=R3(m);ta(d,re=>{if(!M.value||n.resize!=="both")return;const ve=re[0],{width:Ae}=ve.contentRect;w.value={right:`calc(100% - ${Ae+15+6}px)`}});const te=()=>{const{type:re,autosize:ve}=n;if(!(!dt||re!=="textarea"))if(ve){const Ae=it(ve)?ve.minRows:void 0,Le=it(ve)?ve.maxRows:void 0;S.value=Se({},Yp(d.value,Ae,Le))}else S.value={minHeight:Yp(d.value).minHeight}},B=()=>{const re=E.value;!re||re.value===P.value||(re.value=P.value)},z=re=>{const{el:ve}=i.vnode;if(!ve)return;const Le=Array.from(ve.querySelectorAll(`.${g.e(re)}`)).find(ye=>ye.parentNode===ve);if(!Le)return;const $e=o[re];a[$e]?Le.style.transform=`translateX(${re==="suffix"?"-":""}${ve.querySelector(`.${g.be("group",$e)}`).offsetWidth}px)`:Le.removeAttribute("style")},O=()=>{z("prefix"),z("suffix")},D=async re=>{Y();let{value:ve}=re.target;n.formatter&&(ve=n.parser?n.parser(ve):ve,ve=n.formatter(ve)),!y.value&&ve!==P.value&&(r(Tt,ve),r("input",ve),await Xe(),B(),Z())},F=re=>{r("change",re.target.value)},ue=re=>{r("compositionstart",re),y.value=!0},fe=re=>{var ve;r("compositionupdate",re);const Ae=(ve=re.target)==null?void 0:ve.value,Le=Ae[Ae.length-1]||"";y.value=!o3(Le)},ge=re=>{r("compositionend",re),y.value&&(y.value=!1,D(re))},j=()=>{C.value=!C.value,q()},q=async()=>{var re;await Xe(),(re=E.value)==null||re.focus()},ie=()=>{var re;return(re=E.value)==null?void 0:re.blur()},ee=re=>{f.value=!0,r("focus",re)},ae=re=>{var ve;f.value=!1,r("blur",re),n.validateEvent&&((ve=c==null?void 0:c.validate)==null||ve.call(c,"blur").catch(Ae=>void 0))},pe=re=>{h.value=!1,r("mouseleave",re)},be=re=>{h.value=!0,r("mouseenter",re)},he=re=>{r("keydown",re)},_e=()=>{var re;(re=E.value)==null||re.select()},ce=()=>{r(Tt,""),r("change",""),r("clear"),r("input","")};return Be(()=>n.modelValue,()=>{var re;Xe(()=>te()),n.validateEvent&&((re=c==null?void 0:c.validate)==null||re.call(c,"change").catch(ve=>void 0))}),Be(P,()=>B()),Be(()=>n.type,async()=>{await Xe(),B(),te(),O()}),ht(async()=>{!n.formatter&&n.parser,B(),O(),await Xe(),te()}),ei(async()=>{await Xe(),O()}),t({input:m,textarea:d,ref:E,textareaStyle:H,autosize:Gt(n,"autosize"),focus:q,blur:ie,select:_e,clear:ce,resizeTextarea:te}),(re,ve)=>at((K(),se("div",{class:ne([re.type==="textarea"?N(b).b():N(g).b(),N(g).m(N(v)),N(g).is("disabled",N(p)),N(g).is("exceed",N(V)),{[N(g).b("group")]:re.$slots.prepend||re.$slots.append,[N(g).bm("group","append")]:re.$slots.append,[N(g).bm("group","prepend")]:re.$slots.prepend,[N(g).m("prefix")]:re.$slots.prefix||re.prefixIcon,[N(g).m("suffix")]:re.$slots.suffix||re.suffixIcon||re.clearable||re.showPassword,[N(g).bm("suffix","password-clear")]:N(R)&&N(I)},re.$attrs.class]),style:We(N(T)),onMouseenter:be,onMouseleave:pe},[ke(" input "),re.type!=="textarea"?(K(),se(Ve,{key:0},[ke(" prepend slot "),re.$slots.prepend?(K(),se("div",{key:0,class:ne(N(g).be("group","prepend"))},[Ee(re.$slots,"prepend")],2)):ke("v-if",!0),W("div",{class:ne([N(g).e("wrapper"),N(g).is("focus",f.value)])},[ke(" prefix slot "),re.$slots.prefix||re.prefixIcon?(K(),se("span",{key:0,class:ne(N(g).e("prefix"))},[W("span",{class:ne(N(g).e("prefix-inner"))},[Ee(re.$slots,"prefix"),re.prefixIcon?(K(),Ce(N(mt),{key:0,class:ne(N(g).e("icon"))},{default:Q(()=>[(K(),Ce(jt(re.prefixIcon)))]),_:1},8,["class"])):ke("v-if",!0)],2)],2)):ke("v-if",!0),W("input",or({id:N(_),ref_key:"input",ref:m,class:N(g).e("inner")},N(l),{type:re.showPassword?C.value?"text":"password":re.type,disabled:N(p),formatter:re.formatter,parser:re.parser,readonly:re.readonly,autocomplete:re.autocomplete,tabindex:re.tabindex,"aria-label":re.label,placeholder:re.placeholder,style:re.inputStyle,onCompositionstart:ue,onCompositionupdate:fe,onCompositionend:ge,onInput:D,onFocus:ee,onBlur:ae,onChange:F,onKeydown:he}),null,16,V3),ke(" suffix slot "),N(U)?(K(),se("span",{key:1,class:ne(N(g).e("suffix"))},[W("span",{class:ne(N(g).e("suffix-inner"))},[!N(R)||!N(I)||!N(M)?(K(),se(Ve,{key:0},[Ee(re.$slots,"suffix"),re.suffixIcon?(K(),Ce(N(mt),{key:0,class:ne(N(g).e("icon"))},{default:Q(()=>[(K(),Ce(jt(re.suffixIcon)))]),_:1},8,["class"])):ke("v-if",!0)],64)):ke("v-if",!0),N(R)?(K(),Ce(N(mt),{key:1,class:ne([N(g).e("icon"),N(g).e("clear")]),onMousedown:ve[0]||(ve[0]=er(()=>{},["prevent"])),onClick:ce},{default:Q(()=>[G(N(jl))]),_:1},8,["class"])):ke("v-if",!0),N(I)?(K(),Ce(N(mt),{key:2,class:ne([N(g).e("icon"),N(g).e("password")]),onClick:j},{default:Q(()=>[(K(),Ce(jt(N(L))))]),_:1},8,["class"])):ke("v-if",!0),N(M)?(K(),se("span",{key:3,class:ne(N(g).e("count"))},[W("span",{class:ne(N(g).e("count-inner"))},me(N($))+" / "+me(N(l).maxlength),3)],2)):ke("v-if",!0),N(x)&&N(A)&&N(k)?(K(),Ce(N(mt),{key:4,class:ne([N(g).e("icon"),N(g).e("validateIcon"),N(g).is("loading",N(x)==="validating")])},{default:Q(()=>[(K(),Ce(jt(N(A))))]),_:1},8,["class"])):ke("v-if",!0)],2)],2)):ke("v-if",!0)],2),ke(" append slot "),re.$slots.append?(K(),se("div",{key:1,class:ne(N(g).be("group","append"))},[Ee(re.$slots,"append")],2)):ke("v-if",!0)],64)):(K(),se(Ve,{key:1},[ke(" textarea "),W("textarea",or({id:N(_),ref_key:"textarea",ref:d,class:N(b).e("inner")},N(l),{tabindex:re.tabindex,disabled:N(p),readonly:re.readonly,autocomplete:re.autocomplete,style:N(H),"aria-label":re.label,placeholder:re.placeholder,onCompositionstart:ue,onCompositionupdate:fe,onCompositionend:ge,onInput:D,onFocus:ee,onBlur:ae,onChange:F,onKeydown:he}),null,16,K3),N(M)?(K(),se("span",{key:0,style:We(w.value),class:ne(N(g).e("count"))},me(N($))+" / "+me(N(l).maxlength),7)):ke("v-if",!0)],64))],38)),[[Ut,re.type!=="hidden"]])}}));var X3=Ne(Y3,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const Xo=Ct(X3),Q3={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},J3=({move:e,size:t,bar:r})=>({[r.size]:t,transform:`translate${r.axis}(${e}%)`}),Z3=Ge({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),Xp="Thumb",ek=we({name:Xp,props:Z3,setup(e){const t=Ie(Rm),r=Fe("scrollbar");t||qi(Xp,"can not inject scrollbar context");const n=X(),o=X(),i=X({}),s=X(!1);let a=!1,l=!1,u=dt?document.onselectstart:null;const c=J(()=>Q3[e.vertical?"vertical":"horizontal"]),_=J(()=>J3({size:e.size,move:e.move,bar:c.value})),v=J(()=>n.value[c.value.offset]**2/t.wrapElement[c.value.scrollSize]/e.ratio/o.value[c.value.offset]),p=C=>{var w;if(C.stopPropagation(),C.ctrlKey||[1,2].includes(C.button))return;(w=window.getSelection())==null||w.removeAllRanges(),b(C);const S=C.currentTarget;!S||(i.value[c.value.axis]=S[c.value.offset]-(C[c.value.client]-S.getBoundingClientRect()[c.value.direction]))},g=C=>{if(!o.value||!n.value||!t.wrapElement)return;const w=Math.abs(C.target.getBoundingClientRect()[c.value.direction]-C[c.value.client]),S=o.value[c.value.offset]/2,E=(w-S)*100*v.value/n.value[c.value.offset];t.wrapElement[c.value.scroll]=E*t.wrapElement[c.value.scrollSize]/100},b=C=>{C.stopImmediatePropagation(),a=!0,document.addEventListener("mousemove",m),document.addEventListener("mouseup",d),u=document.onselectstart,document.onselectstart=()=>!1},m=C=>{if(!n.value||!o.value||a===!1)return;const w=i.value[c.value.axis];if(!w)return;const S=(n.value.getBoundingClientRect()[c.value.direction]-C[c.value.client])*-1,E=o.value[c.value.offset]-w,k=(S-E)*100*v.value/n.value[c.value.offset];t.wrapElement[c.value.scroll]=k*t.wrapElement[c.value.scrollSize]/100},d=()=>{a=!1,i.value[c.value.axis]=0,document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",d),y(),l&&(s.value=!1)},f=()=>{l=!1,s.value=!!e.size},h=()=>{l=!0,s.value=a};Yt(()=>{y(),document.removeEventListener("mouseup",d)});const y=()=>{document.onselectstart!==u&&(document.onselectstart=u)};return yr(Gt(t,"scrollbarElement"),"mousemove",f),yr(Gt(t,"scrollbarElement"),"mouseleave",h),{ns:r,instance:n,thumb:o,bar:c,thumbStyle:_,visible:s,clickTrackHandler:g,clickThumbHandler:p}}});function tk(e,t,r,n,o,i){return K(),Ce(wr,{name:e.ns.b("fade")},{default:Q(()=>[at(W("div",{ref:"instance",class:ne([e.ns.e("bar"),e.ns.is(e.bar.key)]),onMousedown:t[1]||(t[1]=(...s)=>e.clickTrackHandler&&e.clickTrackHandler(...s))},[W("div",{ref:"thumb",class:ne(e.ns.e("thumb")),style:We(e.thumbStyle),onMousedown:t[0]||(t[0]=(...s)=>e.clickThumbHandler&&e.clickThumbHandler(...s))},null,38)],34),[[Ut,e.always||e.visible]])]),_:1},8,["name"])}var rk=Ne(ek,[["render",tk],["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const nk=Ge({always:{type:Boolean,default:!0},width:{type:String,default:""},height:{type:String,default:""},ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),ik=we({components:{Thumb:rk},props:nk,setup(e){const t=X(0),r=X(0),n=4;return{handleScroll:i=>{if(i){const s=i.offsetHeight-n,a=i.offsetWidth-n;r.value=i.scrollTop*100/s*e.ratioY,t.value=i.scrollLeft*100/a*e.ratioX}},moveX:t,moveY:r}}});function ok(e,t,r,n,o,i){const s=Oe("thumb");return K(),se(Ve,null,[G(s,{move:e.moveX,ratio:e.ratioX,size:e.width,always:e.always},null,8,["move","ratio","size","always"]),G(s,{move:e.moveY,ratio:e.ratioY,size:e.height,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64)}var sk=Ne(ik,[["render",ok],["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const ak=Ge({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:De([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:{type:Boolean,default:!1},minSize:{type:Number,default:20}}),lk={scroll:({scrollTop:e,scrollLeft:t})=>Mt(e)&&Mt(t)},ck=we({name:"ElScrollbar",components:{Bar:sk},props:ak,emits:lk,setup(e,{emit:t}){const r=Fe("scrollbar");let n,o;const i=X(),s=X(),a=X(),l=X("0"),u=X("0"),c=X(),_=X(0),v=X(0),p=X(1),g=X(1),b=4,m=J(()=>{const w={};return e.height&&(w.height=on(e.height)),e.maxHeight&&(w.maxHeight=on(e.maxHeight)),[e.wrapStyle,w]}),d=()=>{var w;s.value&&((w=c.value)==null||w.handleScroll(s.value),t("scroll",{scrollTop:s.value.scrollTop,scrollLeft:s.value.scrollLeft}))};function f(w,S){it(w)?s.value.scrollTo(w):Mt(w)&&Mt(S)&&s.value.scrollTo(w,S)}const h=w=>{!Mt(w)||(s.value.scrollTop=w)},y=w=>{!Mt(w)||(s.value.scrollLeft=w)},C=()=>{if(!s.value)return;const w=s.value.offsetHeight-b,S=s.value.offsetWidth-b,E=w**2/s.value.scrollHeight,k=S**2/s.value.scrollWidth,x=Math.max(E,e.minSize),A=Math.max(k,e.minSize);p.value=E/(w-E)/(x/(w-x)),g.value=k/(S-k)/(A/(S-A)),u.value=x+b<w?`${x}px`:"",l.value=A+b<S?`${A}px`:""};return Be(()=>e.noresize,w=>{w?(n==null||n(),o==null||o()):({stop:n}=ta(a,C),o=yr("resize",C))},{immediate:!0}),Be(()=>[e.maxHeight,e.height],()=>{e.native||Xe(()=>{var w;C(),s.value&&((w=c.value)==null||w.handleScroll(s.value))})}),ft(Rm,sr({scrollbarElement:i,wrapElement:s})),ht(()=>{e.native||Xe(()=>C())}),ei(()=>C()),{ns:r,scrollbar$:i,wrap$:s,resize$:a,barRef:c,moveX:_,moveY:v,ratioX:g,ratioY:p,sizeWidth:l,sizeHeight:u,style:m,update:C,handleScroll:d,scrollTo:f,setScrollTop:h,setScrollLeft:y}}});function uk(e,t,r,n,o,i){const s=Oe("bar");return K(),se("div",{ref:"scrollbar$",class:ne(e.ns.b())},[W("div",{ref:"wrap$",class:ne([e.wrapClass,e.ns.e("wrap"),{[e.ns.em("wrap","hidden-default")]:!e.native}]),style:We(e.style),onScroll:t[0]||(t[0]=(...a)=>e.handleScroll&&e.handleScroll(...a))},[(K(),Ce(jt(e.tag),{ref:"resize$",class:ne([e.ns.e("view"),e.viewClass]),style:We(e.viewStyle)},{default:Q(()=>[Ee(e.$slots,"default")]),_:3},8,["class","style"]))],38),e.native?ke("v-if",!0):(K(),Ce(s,{key:0,ref:"barRef",height:e.sizeHeight,width:e.sizeWidth,always:e.always,"ratio-x":e.ratioX,"ratio-y":e.ratioY},null,8,["height","width","always","ratio-x","ratio-y"]))],2)}var fk=Ne(ck,[["render",uk],["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const Ac=Ct(fk),dk={name:"ElPopperRoot",inheritAttrs:!1},hk=we(je(Se({},dk),{setup(e,{expose:t}){const r=X(),n=X(),o=X(),i=X(),s={triggerRef:r,popperInstanceRef:n,contentRef:o,referenceRef:i};return t(s),ft(kd,s),(a,l)=>Ee(a.$slots,"default")}}));var pk=Ne(hk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const Um=Ge({arrowOffset:{type:Number,default:5}}),vk={name:"ElPopperArrow",inheritAttrs:!1},gk=we(je(Se({},vk),{props:Um,setup(e,{expose:t}){const r=e,n=Fe("popper"),{arrowOffset:o,arrowRef:i}=Ie(Bm,void 0);return Be(()=>r.arrowOffset,s=>{o.value=s}),Yt(()=>{i.value=void 0}),t({arrowRef:i}),(s,a)=>(K(),se("span",{ref_key:"arrowRef",ref:i,class:ne(N(n).e("arrow")),"data-popper-arrow":""},null,2))}}));var mk=Ne(gk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const _k="ElOnlyChild",yk=we({name:_k,setup(e,{slots:t,attrs:r}){var n;const o=Ie(Nm),i=T3((n=o==null?void 0:o.setForwardRef)!=null?n:kt);return()=>{var s;const a=(s=t.default)==null?void 0:s.call(t,r);if(!a||a.length>1)return null;const l=Wm(a);return l?at(bn(l,r),[[i]]):null}}});function Wm(e){if(!e)return null;const t=e;for(const r of t){if(it(r))switch(r.type){case rr:continue;case Zs:return _u(r);case"svg":return _u(r);case Ve:return Wm(r.children);default:return r}return _u(r)}return null}function _u(e){return G("span",{class:"el-only-child__content"},[e])}const zm=Ge({virtualRef:{type:De(Object)},virtualTriggering:Boolean,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,onBlur:Function,onContextmenu:Function,id:String,open:Boolean}),bk={name:"ElPopperTrigger",inheritAttrs:!1},Ck=we(je(Se({},bk),{props:zm,setup(e,{expose:t}){const r=e,{triggerRef:n}=Ie(kd,void 0);return k3(n),ht(()=>{Be(()=>r.virtualRef,o=>{o&&(n.value=Ii(o))},{immediate:!0}),Be(()=>n.value,(o,i)=>{Mo(o)&&["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(s=>{var a;const l=r[s];l&&(o.addEventListener(s.slice(2).toLowerCase(),l),(a=i==null?void 0:i.removeEventListener)==null||a.call(i,s.slice(2).toLowerCase(),l))})},{immediate:!0})}),t({triggerRef:n}),(o,i)=>o.virtualTriggering?ke("v-if",!0):(K(),Ce(N(yk),or({key:0},o.$attrs,{"aria-describedby":o.open?o.id:void 0}),{default:Q(()=>[Ee(o.$slots,"default")]),_:3},16,["aria-describedby"]))}}));var wk=Ne(Ck,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]),nr="top",Br="bottom",Or="right",ir="left",Bd="auto",ra=[nr,Br,Or,ir],Po="start",Ks="end",Sk="clippingParents",qm="viewport",us="popper",xk="reference",Qp=ra.reduce(function(e,t){return e.concat([t+"-"+Po,t+"-"+Ks])},[]),Od=[].concat(ra,[Bd]).reduce(function(e,t){return e.concat([t,t+"-"+Po,t+"-"+Ks])},[]),Ek="beforeRead",Ak="read",kk="afterRead",Tk="beforeMain",Lk="main",Rk="afterMain",Bk="beforeWrite",Ok="write",Ik="afterWrite",Mk=[Ek,Ak,kk,Tk,Lk,Rk,Bk,Ok,Ik];function sn(e){return e?(e.nodeName||"").toLowerCase():null}function Kr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Do(e){var t=Kr(e).Element;return e instanceof t||e instanceof Element}function Lr(e){var t=Kr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Id(e){if(typeof ShadowRoot=="undefined")return!1;var t=Kr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Pk(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},i=t.elements[r];!Lr(i)||!sn(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function Dk(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],i=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),a=s.reduce(function(l,u){return l[u]="",l},{});!Lr(o)||!sn(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}var Vm={name:"applyStyles",enabled:!0,phase:"write",fn:Pk,effect:Dk,requires:["computeStyles"]};function en(e){return e.split("-")[0]}var Mi=Math.max,zl=Math.min,Ho=Math.round;function Fo(e,t){t===void 0&&(t=!1);var r=e.getBoundingClientRect(),n=1,o=1;if(Lr(e)&&t){var i=e.offsetHeight,s=e.offsetWidth;s>0&&(n=Ho(r.width)/s||1),i>0&&(o=Ho(r.height)/i||1)}return{width:r.width/n,height:r.height/o,top:r.top/o,right:r.right/n,bottom:r.bottom/o,left:r.left/n,x:r.left/n,y:r.top/o}}function Md(e){var t=Fo(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Km(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Id(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Sn(e){return Kr(e).getComputedStyle(e)}function Hk(e){return["table","td","th"].indexOf(sn(e))>=0}function ti(e){return((Do(e)?e.ownerDocument:e.document)||window.document).documentElement}function kc(e){return sn(e)==="html"?e:e.assignedSlot||e.parentNode||(Id(e)?e.host:null)||ti(e)}function Jp(e){return!Lr(e)||Sn(e).position==="fixed"?null:e.offsetParent}function Fk(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&Lr(e)){var n=Sn(e);if(n.position==="fixed")return null}var o=kc(e);for(Id(o)&&(o=o.host);Lr(o)&&["html","body"].indexOf(sn(o))<0;){var i=Sn(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function na(e){for(var t=Kr(e),r=Jp(e);r&&Hk(r)&&Sn(r).position==="static";)r=Jp(r);return r&&(sn(r)==="html"||sn(r)==="body"&&Sn(r).position==="static")?t:r||Fk(e)||t}function Pd(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ks(e,t,r){return Mi(e,zl(t,r))}function Nk(e,t,r){var n=ks(e,t,r);return n>r?r:n}function Gm(){return{top:0,right:0,bottom:0,left:0}}function Ym(e){return Object.assign({},Gm(),e)}function Xm(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var $k=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Ym(typeof e!="number"?e:Xm(e,ra))};function jk(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,s=r.modifiersData.popperOffsets,a=en(r.placement),l=Pd(a),u=[ir,Or].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var _=$k(o.padding,r),v=Md(i),p=l==="y"?nr:ir,g=l==="y"?Br:Or,b=r.rects.reference[c]+r.rects.reference[l]-s[l]-r.rects.popper[c],m=s[l]-r.rects.reference[l],d=na(i),f=d?l==="y"?d.clientHeight||0:d.clientWidth||0:0,h=b/2-m/2,y=_[p],C=f-v[c]-_[g],w=f/2-v[c]/2+h,S=ks(y,w,C),E=l;r.modifiersData[n]=(t={},t[E]=S,t.centerOffset=S-w,t)}}function Uk(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!Km(t.elements.popper,o)||(t.elements.arrow=o))}var Wk={name:"arrow",enabled:!0,phase:"main",fn:jk,effect:Uk,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function No(e){return e.split("-")[1]}var zk={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qk(e){var t=e.x,r=e.y,n=window,o=n.devicePixelRatio||1;return{x:Ho(t*o)/o||0,y:Ho(r*o)/o||0}}function Zp(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,_=e.isFixed,v=s.x,p=v===void 0?0:v,g=s.y,b=g===void 0?0:g,m=typeof c=="function"?c({x:p,y:b}):{x:p,y:b};p=m.x,b=m.y;var d=s.hasOwnProperty("x"),f=s.hasOwnProperty("y"),h=ir,y=nr,C=window;if(u){var w=na(r),S="clientHeight",E="clientWidth";if(w===Kr(r)&&(w=ti(r),Sn(w).position!=="static"&&a==="absolute"&&(S="scrollHeight",E="scrollWidth")),w=w,o===nr||(o===ir||o===Or)&&i===Ks){y=Br;var k=_&&w===C&&C.visualViewport?C.visualViewport.height:w[S];b-=k-n.height,b*=l?1:-1}if(o===ir||(o===nr||o===Br)&&i===Ks){h=Or;var x=_&&w===C&&C.visualViewport?C.visualViewport.width:w[E];p-=x-n.width,p*=l?1:-1}}var A=Object.assign({position:a},u&&zk),L=c===!0?qk({x:p,y:b}):{x:p,y:b};if(p=L.x,b=L.y,l){var T;return Object.assign({},A,(T={},T[y]=f?"0":"",T[h]=d?"0":"",T.transform=(C.devicePixelRatio||1)<=1?"translate("+p+"px, "+b+"px)":"translate3d("+p+"px, "+b+"px, 0)",T))}return Object.assign({},A,(t={},t[y]=f?b+"px":"",t[h]=d?p+"px":"",t.transform="",t))}function Vk(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,s=i===void 0?!0:i,a=r.roundOffsets,l=a===void 0?!0:a,u={placement:en(t.placement),variation:No(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Zp(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Zp(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Qm={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Vk,data:{}},qa={passive:!0};function Kk(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,s=n.resize,a=s===void 0?!0:s,l=Kr(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",r.update,qa)}),a&&l.addEventListener("resize",r.update,qa),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",r.update,qa)}),a&&l.removeEventListener("resize",r.update,qa)}}var Jm={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Kk,data:{}},Gk={left:"right",right:"left",bottom:"top",top:"bottom"};function hl(e){return e.replace(/left|right|bottom|top/g,function(t){return Gk[t]})}var Yk={start:"end",end:"start"};function e0(e){return e.replace(/start|end/g,function(t){return Yk[t]})}function Dd(e){var t=Kr(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Hd(e){return Fo(ti(e)).left+Dd(e).scrollLeft}function Xk(e){var t=Kr(e),r=ti(e),n=t.visualViewport,o=r.clientWidth,i=r.clientHeight,s=0,a=0;return n&&(o=n.width,i=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=n.offsetLeft,a=n.offsetTop)),{width:o,height:i,x:s+Hd(e),y:a}}function Qk(e){var t,r=ti(e),n=Dd(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Mi(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Mi(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+Hd(e),l=-n.scrollTop;return Sn(o||r).direction==="rtl"&&(a+=Mi(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function Fd(e){var t=Sn(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Zm(e){return["html","body","#document"].indexOf(sn(e))>=0?e.ownerDocument.body:Lr(e)&&Fd(e)?e:Zm(kc(e))}function Ts(e,t){var r;t===void 0&&(t=[]);var n=Zm(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=Kr(n),s=o?[i].concat(i.visualViewport||[],Fd(n)?n:[]):n,a=t.concat(s);return o?a:a.concat(Ts(kc(s)))}function df(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Jk(e){var t=Fo(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function t0(e,t){return t===qm?df(Xk(e)):Do(t)?Jk(t):df(Qk(ti(e)))}function Zk(e){var t=Ts(kc(e)),r=["absolute","fixed"].indexOf(Sn(e).position)>=0,n=r&&Lr(e)?na(e):e;return Do(n)?t.filter(function(o){return Do(o)&&Km(o,n)&&sn(o)!=="body"}):[]}function eT(e,t,r){var n=t==="clippingParents"?Zk(e):[].concat(t),o=[].concat(n,[r]),i=o[0],s=o.reduce(function(a,l){var u=t0(e,l);return a.top=Mi(u.top,a.top),a.right=zl(u.right,a.right),a.bottom=zl(u.bottom,a.bottom),a.left=Mi(u.left,a.left),a},t0(e,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function e_(e){var t=e.reference,r=e.element,n=e.placement,o=n?en(n):null,i=n?No(n):null,s=t.x+t.width/2-r.width/2,a=t.y+t.height/2-r.height/2,l;switch(o){case nr:l={x:s,y:t.y-r.height};break;case Br:l={x:s,y:t.y+t.height};break;case Or:l={x:t.x+t.width,y:a};break;case ir:l={x:t.x-r.width,y:a};break;default:l={x:t.x,y:t.y}}var u=o?Pd(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Po:l[u]=l[u]-(t[c]/2-r[c]/2);break;case Ks:l[u]=l[u]+(t[c]/2-r[c]/2);break}}return l}function Gs(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.boundary,s=i===void 0?Sk:i,a=r.rootBoundary,l=a===void 0?qm:a,u=r.elementContext,c=u===void 0?us:u,_=r.altBoundary,v=_===void 0?!1:_,p=r.padding,g=p===void 0?0:p,b=Ym(typeof g!="number"?g:Xm(g,ra)),m=c===us?xk:us,d=e.rects.popper,f=e.elements[v?m:c],h=eT(Do(f)?f:f.contextElement||ti(e.elements.popper),s,l),y=Fo(e.elements.reference),C=e_({reference:y,element:d,strategy:"absolute",placement:o}),w=df(Object.assign({},d,C)),S=c===us?w:y,E={top:h.top-S.top+b.top,bottom:S.bottom-h.bottom+b.bottom,left:h.left-S.left+b.left,right:S.right-h.right+b.right},k=e.modifiersData.offset;if(c===us&&k){var x=k[o];Object.keys(E).forEach(function(A){var L=[Or,Br].indexOf(A)>=0?1:-1,T=[nr,Br].indexOf(A)>=0?"y":"x";E[A]+=x[T]*L})}return E}function tT(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,s=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,u=l===void 0?Od:l,c=No(n),_=c?a?Qp:Qp.filter(function(g){return No(g)===c}):ra,v=_.filter(function(g){return u.indexOf(g)>=0});v.length===0&&(v=_);var p=v.reduce(function(g,b){return g[b]=Gs(e,{placement:b,boundary:o,rootBoundary:i,padding:s})[en(b)],g},{});return Object.keys(p).sort(function(g,b){return p[g]-p[b]})}function rT(e){if(en(e)===Bd)return[];var t=hl(e);return[e0(e),t,e0(t)]}function nT(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,s=r.altAxis,a=s===void 0?!0:s,l=r.fallbackPlacements,u=r.padding,c=r.boundary,_=r.rootBoundary,v=r.altBoundary,p=r.flipVariations,g=p===void 0?!0:p,b=r.allowedAutoPlacements,m=t.options.placement,d=en(m),f=d===m,h=l||(f||!g?[hl(m)]:rT(m)),y=[m].concat(h).reduce(function(te,B){return te.concat(en(B)===Bd?tT(t,{placement:B,boundary:c,rootBoundary:_,padding:u,flipVariations:g,allowedAutoPlacements:b}):B)},[]),C=t.rects.reference,w=t.rects.popper,S=new Map,E=!0,k=y[0],x=0;x<y.length;x++){var A=y[x],L=en(A),T=No(A)===Po,H=[nr,Br].indexOf(L)>=0,P=H?"width":"height",R=Gs(t,{placement:A,boundary:c,rootBoundary:_,altBoundary:v,padding:u}),I=H?T?Or:ir:T?Br:nr;C[P]>w[P]&&(I=hl(I));var M=hl(I),$=[];if(i&&$.push(R[L]<=0),a&&$.push(R[I]<=0,R[M]<=0),$.every(function(te){return te})){k=A,E=!1;break}S.set(A,$)}if(E)for(var V=g?3:1,U=function(te){var B=y.find(function(z){var O=S.get(z);if(O)return O.slice(0,te).every(function(D){return D})});if(B)return k=B,"break"},Y=V;Y>0;Y--){var Z=U(Y);if(Z==="break")break}t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}}var iT={name:"flip",enabled:!0,phase:"main",fn:nT,requiresIfExists:["offset"],data:{_skip:!1}};function r0(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function n0(e){return[nr,Or,Br,ir].some(function(t){return e[t]>=0})}function oT(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Gs(t,{elementContext:"reference"}),a=Gs(t,{altBoundary:!0}),l=r0(s,n),u=r0(a,o,i),c=n0(l),_=n0(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:_},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":_})}var sT={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:oT};function aT(e,t,r){var n=en(e),o=[ir,nr].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[ir,Or].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function lT(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,s=Od.reduce(function(c,_){return c[_]=aT(_,t.rects,i),c},{}),a=s[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=s}var cT={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:lT};function uT(e){var t=e.state,r=e.name;t.modifiersData[r]=e_({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var t_={name:"popperOffsets",enabled:!0,phase:"read",fn:uT,data:{}};function fT(e){return e==="x"?"y":"x"}function dT(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=o===void 0?!0:o,s=r.altAxis,a=s===void 0?!1:s,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,_=r.padding,v=r.tether,p=v===void 0?!0:v,g=r.tetherOffset,b=g===void 0?0:g,m=Gs(t,{boundary:l,rootBoundary:u,padding:_,altBoundary:c}),d=en(t.placement),f=No(t.placement),h=!f,y=Pd(d),C=fT(y),w=t.modifiersData.popperOffsets,S=t.rects.reference,E=t.rects.popper,k=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,x=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(w){if(i){var T,H=y==="y"?nr:ir,P=y==="y"?Br:Or,R=y==="y"?"height":"width",I=w[y],M=I+m[H],$=I-m[P],V=p?-E[R]/2:0,U=f===Po?S[R]:E[R],Y=f===Po?-E[R]:-S[R],Z=t.elements.arrow,te=p&&Z?Md(Z):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Gm(),z=B[H],O=B[P],D=ks(0,S[R],te[R]),F=h?S[R]/2-V-D-z-x.mainAxis:U-D-z-x.mainAxis,ue=h?-S[R]/2+V+D+O+x.mainAxis:Y+D+O+x.mainAxis,fe=t.elements.arrow&&na(t.elements.arrow),ge=fe?y==="y"?fe.clientTop||0:fe.clientLeft||0:0,j=(T=A==null?void 0:A[y])!=null?T:0,q=I+F-j-ge,ie=I+ue-j,ee=ks(p?zl(M,q):M,I,p?Mi($,ie):$);w[y]=ee,L[y]=ee-I}if(a){var ae,pe=y==="x"?nr:ir,be=y==="x"?Br:Or,he=w[C],_e=C==="y"?"height":"width",ce=he+m[pe],re=he-m[be],ve=[nr,ir].indexOf(d)!==-1,Ae=(ae=A==null?void 0:A[C])!=null?ae:0,Le=ve?ce:he-S[_e]-E[_e]-Ae+x.altAxis,$e=ve?he+S[_e]+E[_e]-Ae-x.altAxis:re,ye=p&&ve?Nk(Le,he,$e):ks(p?Le:ce,he,p?$e:re);w[C]=ye,L[C]=ye-he}t.modifiersData[n]=L}}var hT={name:"preventOverflow",enabled:!0,phase:"main",fn:dT,requiresIfExists:["offset"]};function pT(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function vT(e){return e===Kr(e)||!Lr(e)?Dd(e):pT(e)}function gT(e){var t=e.getBoundingClientRect(),r=Ho(t.width)/e.offsetWidth||1,n=Ho(t.height)/e.offsetHeight||1;return r!==1||n!==1}function mT(e,t,r){r===void 0&&(r=!1);var n=Lr(t),o=Lr(t)&&gT(t),i=ti(t),s=Fo(e,o),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((sn(t)!=="body"||Fd(i))&&(a=vT(t)),Lr(t)?(l=Fo(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Hd(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function _T(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function o(i){r.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!r.has(a)){var l=t.get(a);l&&o(l)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function yT(e){var t=_T(e);return Mk.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function bT(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function CT(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var i0={placement:"bottom",modifiers:[],strategy:"absolute"};function o0(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Nd(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,i=o===void 0?i0:o;return function(s,a,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},i0,i),modifiersData:{},elements:{reference:s,popper:a},attributes:{},styles:{}},c=[],_=!1,v={state:u,setOptions:function(b){var m=typeof b=="function"?b(u.options):b;g(),u.options=Object.assign({},i,u.options,m),u.scrollParents={reference:Do(s)?Ts(s):s.contextElement?Ts(s.contextElement):[],popper:Ts(a)};var d=yT(CT([].concat(n,u.options.modifiers)));return u.orderedModifiers=d.filter(function(f){return f.enabled}),p(),v.update()},forceUpdate:function(){if(!_){var b=u.elements,m=b.reference,d=b.popper;if(o0(m,d)){u.rects={reference:mT(m,na(d),u.options.strategy==="fixed"),popper:Md(d)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(E){return u.modifiersData[E.name]=Object.assign({},E.data)});for(var f=0;f<u.orderedModifiers.length;f++){if(u.reset===!0){u.reset=!1,f=-1;continue}var h=u.orderedModifiers[f],y=h.fn,C=h.options,w=C===void 0?{}:C,S=h.name;typeof y=="function"&&(u=y({state:u,options:w,name:S,instance:v})||u)}}}},update:bT(function(){return new Promise(function(b){v.forceUpdate(),b(u)})}),destroy:function(){g(),_=!0}};if(!o0(s,a))return v;v.setOptions(l).then(function(b){!_&&l.onFirstUpdate&&l.onFirstUpdate(b)});function p(){u.orderedModifiers.forEach(function(b){var m=b.name,d=b.options,f=d===void 0?{}:d,h=b.effect;if(typeof h=="function"){var y=h({state:u,name:m,instance:v,options:f}),C=function(){};c.push(y||C)}})}function g(){c.forEach(function(b){return b()}),c=[]}return v}}Nd();var wT=[Jm,t_,Qm,Vm];Nd({defaultModifiers:wT});var ST=[Jm,t_,Qm,Vm,cT,iT,hT,Wk,sT],r_=Nd({defaultModifiers:ST});const xT=["fixed","absolute"],ET=Ge({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:De(Array),default:()=>[]},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Od,default:"bottom"},popperOptions:{type:De(Object),default:()=>({})},strategy:{type:String,values:xT,default:"absolute"}}),n_=Ge(je(Se({},ET),{style:{type:De([String,Array,Object])},className:{type:De([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,popperClass:{type:De([String,Array,Object])},popperStyle:{type:De([String,Array,Object])},referenceEl:{type:De(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},zIndex:Number})),s0=(e,t)=>{const{placement:r,strategy:n,popperOptions:o}=e,i=je(Se({placement:r,strategy:n},o),{modifiers:kT(e)});return TT(i,t),LT(i,o==null?void 0:o.modifiers),i},AT=e=>{if(!!dt)return Ii(e)};function kT(e){const{offset:t,gpuAcceleration:r,fallbackPlacements:n}=e;return[{name:"offset",options:{offset:[0,t!=null?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:n!=null?n:[]}},{name:"computeStyles",options:{gpuAcceleration:r,adaptive:r}}]}function TT(e,{arrowEl:t,arrowOffset:r}){e.modifiers.push({name:"arrow",options:{element:t,padding:r!=null?r:5}})}function LT(e,t){t&&(e.modifiers=[...e.modifiers,...t!=null?t:[]])}const RT={name:"ElPopperContent"},BT=we(je(Se({},RT),{props:n_,emits:["mouseenter","mouseleave"],setup(e,{expose:t}){const r=e,{popperInstanceRef:n,contentRef:o,triggerRef:i}=Ie(kd,void 0),s=Ie(Jn,void 0),{nextZIndex:a}=Gi(),l=Fe("popper"),u=X(),c=X(),_=X();ft(Bm,{arrowRef:c,arrowOffset:_}),ft(Jn,je(Se({},s),{addInputId:()=>{},removeInputId:()=>{}}));const v=X(r.zIndex||a()),p=J(()=>AT(r.referenceEl)||N(i)),g=J(()=>[{zIndex:N(v)},r.popperStyle]),b=J(()=>[l.b(),l.is("pure",r.pure),l.is(r.effect),r.popperClass]),m=({referenceEl:h,popperContentEl:y,arrowEl:C})=>{const w=s0(r,{arrowEl:C,arrowOffset:N(_)});return r_(h,y,w)},d=(h=!0)=>{var y;(y=N(n))==null||y.update(),h&&(v.value=r.zIndex||a())},f=()=>{var h,y;const C={name:"eventListeners",enabled:r.visible};(y=(h=N(n))==null?void 0:h.setOptions)==null||y.call(h,w=>je(Se({},w),{modifiers:[...w.modifiers||[],C]})),d(!1)};return ht(()=>{let h;Be(p,y=>{var C;h==null||h();const w=N(n);if((C=w==null?void 0:w.destroy)==null||C.call(w),y){const S=N(u);o.value=S,n.value=m({referenceEl:y,popperContentEl:S,arrowEl:N(c)}),h=Be(()=>y.getBoundingClientRect(),()=>d(),{immediate:!0})}else n.value=void 0},{immediate:!0}),Be(()=>r.visible,f,{immediate:!0}),Be(()=>s0(r,{arrowEl:N(c),arrowOffset:N(_)}),y=>{var C;return(C=n.value)==null?void 0:C.setOptions(y)})}),t({popperContentRef:u,popperInstanceRef:n,updatePopper:d,contentStyle:g}),(h,y)=>(K(),se("div",{ref_key:"popperContentRef",ref:u,style:We(N(g)),class:ne(N(b)),role:"tooltip",onMouseenter:y[0]||(y[0]=C=>h.$emit("mouseenter",C)),onMouseleave:y[1]||(y[1]=C=>h.$emit("mouseleave",C))},[Ee(h.$slots,"default")],38))}}));var OT=Ne(BT,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const IT=Ct(pk),MT=we({name:"ElVisuallyHidden",props:{style:{type:[String,Object,Array]}},setup(e){return{computedStyle:J(()=>[e.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}])}}});function PT(e,t,r,n,o,i){return K(),se("span",or(e.$attrs,{style:e.computedStyle}),[Ee(e.$slots,"default")],16)}var DT=Ne(MT,[["render",PT],["__file","/home/runner/work/element-plus/element-plus/packages/components/visual-hidden/src/visual-hidden.vue"]]);const Ar=Ge(je(Se(Se({},E3),n_),{appendTo:{type:De([String,Object]),default:Fm},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:De(Boolean),default:null},transition:{type:String,default:"el-fade-in-linear"},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}})),Ys=Ge(je(Se({},zm),{disabled:Boolean,trigger:{type:De([String,Array]),default:"hover"}})),HT=Ge({openDelay:{type:Number},visibleArrow:{type:Boolean,default:void 0},hideAfter:{type:Number,default:200},showArrow:{type:Boolean,default:!0}}),$d=Symbol("elTooltip"),FT=we({name:"ElTooltipContent",components:{ElPopperContent:OT,ElVisuallyHidden:DT},inheritAttrs:!1,props:Ar,setup(e){const t=X(null),r=X(!1),n=X(!1),o=X(!1),i=X(!1),{controlled:s,id:a,open:l,trigger:u,onClose:c,onOpen:_,onShow:v,onHide:p,onBeforeShow:g,onBeforeHide:b}=Ie($d,void 0),m=J(()=>e.persistent);Yt(()=>{i.value=!0});const d=J(()=>N(m)?!0:N(l)),f=J(()=>e.disabled?!1:N(l)),h=J(()=>{var T;return(T=e.style)!=null?T:{}}),y=J(()=>!N(l));w3(c);const C=()=>{p()},w=()=>{if(N(s))return!0},S=xt(w,()=>{e.enterable&&N(u)==="hover"&&_()}),E=xt(w,()=>{N(u)==="hover"&&c()}),k=()=>{var T,H;(H=(T=t.value)==null?void 0:T.updatePopper)==null||H.call(T),g==null||g()},x=()=>{b==null||b()},A=()=>{v()};let L;return Be(()=>N(l),T=>{T?L=gm(J(()=>{var H;return(H=t.value)==null?void 0:H.popperContentRef}),()=>{if(N(s))return;N(u)!=="hover"&&c()}):L==null||L()},{flush:"post"}),{ariaHidden:y,entering:n,leaving:o,id:a,intermediateOpen:r,contentStyle:h,contentRef:t,destroyed:i,shouldRender:d,shouldShow:f,open:l,onAfterShow:A,onBeforeEnter:k,onBeforeLeave:x,onContentEnter:S,onContentLeave:E,onTransitionLeave:C}}});function NT(e,t,r,n,o,i){const s=Oe("el-visually-hidden"),a=Oe("el-popper-content");return K(),Ce(lg,{disabled:!e.teleported,to:e.appendTo},[G(wr,{name:e.transition,onAfterLeave:e.onTransitionLeave,onBeforeEnter:e.onBeforeEnter,onAfterEnter:e.onAfterShow,onBeforeLeave:e.onBeforeLeave},{default:Q(()=>[e.shouldRender?at((K(),Ce(a,or({key:0,ref:"contentRef"},e.$attrs,{"aria-hidden":e.ariaHidden,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,e.contentStyle],"reference-el":e.referenceEl,visible:e.shouldShow,"z-index":e.zIndex,onMouseenter:e.onContentEnter,onMouseleave:e.onContentLeave}),{default:Q(()=>[ke(" Workaround bug #6378 "),e.destroyed?ke("v-if",!0):(K(),se(Ve,{key:0},[Ee(e.$slots,"default"),G(s,{id:e.id,role:"tooltip"},{default:Q(()=>[Te(me(e.ariaLabel),1)]),_:1},8,["id"])],64))]),_:3},16,["aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","visible","z-index","onMouseenter","onMouseleave"])),[[Ut,e.shouldShow]]):ke("v-if",!0)]),_:3},8,["name","onAfterLeave","onBeforeEnter","onAfterEnter","onBeforeLeave"])],8,["disabled","to"])}var $T=Ne(FT,[["render",NT],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const jT=(e,t)=>Pe(e)?e.includes(t):e===t,uo=(e,t,r)=>n=>{jT(N(e),t)&&r(n)},UT=we({name:"ElTooltipTrigger",components:{ElPopperTrigger:wk},props:Ys,setup(e){const t=Fe("tooltip"),{controlled:r,id:n,open:o,onOpen:i,onClose:s,onToggle:a}=Ie($d,void 0),l=X(null),u=()=>{if(N(r)||e.disabled)return!0},c=Gt(e,"trigger"),_=xt(u,uo(c,"hover",i)),v=xt(u,uo(c,"hover",s)),p=xt(u,uo(c,"click",f=>{f.button===0&&a(f)})),g=xt(u,uo(c,"focus",i)),b=xt(u,uo(c,"focus",s)),m=xt(u,uo(c,"contextmenu",f=>{f.preventDefault(),a(f)})),d=xt(u,f=>{const{code:h}=f;(h===Ze.enter||h===Ze.space)&&a(f)});return{onBlur:b,onContextMenu:m,onFocus:g,onMouseenter:_,onMouseleave:v,onClick:p,onKeydown:d,open:o,id:n,triggerRef:l,ns:t}}});function WT(e,t,r,n,o,i){const s=Oe("el-popper-trigger");return K(),Ce(s,{id:e.id,"virtual-ref":e.virtualRef,open:e.open,"virtual-triggering":e.virtualTriggering,class:ne(e.ns.e("trigger")),onBlur:e.onBlur,onClick:e.onClick,onContextmenu:e.onContextMenu,onFocus:e.onFocus,onMouseenter:e.onMouseenter,onMouseleave:e.onMouseleave,onKeydown:e.onKeydown},{default:Q(()=>[Ee(e.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"])}var zT=Ne(UT,[["render",WT],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const{useModelToggleProps:qT,useModelToggle:VT,useModelToggleEmits:KT}=y3("visible"),GT=we({name:"ElTooltip",components:{ElPopper:IT,ElPopperArrow:mk,ElTooltipContent:$T,ElTooltipTrigger:zT},props:Se(Se(Se(Se(Se({},qT),Ar),Ys),Um),HT),emits:[...KT,"before-show","before-hide","show","hide"],setup(e,{emit:t}){x3();const r=J(()=>($l(e.openDelay),e.openDelay||e.showAfter)),n=J(()=>($l(e.visibleArrow),Xn(e.visibleArrow)?e.visibleArrow:e.showArrow)),o=xc(),i=X(null),s=()=>{var p;const g=N(i);g&&((p=g.popperInstanceRef)==null||p.update())},a=X(!1),{show:l,hide:u}=VT({indicator:a}),{onOpen:c,onClose:_}=A3({showAfter:r,hideAfter:Gt(e,"hideAfter"),open:l,close:u}),v=J(()=>Xn(e.visible));return ft($d,{controlled:v,id:o,open:Js(a),trigger:Gt(e,"trigger"),onOpen:c,onClose:_,onToggle:()=>{N(a)?_():c()},onShow:()=>{t("show")},onHide:()=>{t("hide")},onBeforeShow:()=>{t("before-show")},onBeforeHide:()=>{t("before-hide")},updatePopper:s}),Be(()=>e.disabled,p=>{p&&a.value&&(a.value=!1)}),{compatShowAfter:r,compatShowArrow:n,popperRef:i,open:a,hide:u,updatePopper:s,onOpen:c,onClose:_}}}),YT=["innerHTML"],XT={key:1};function QT(e,t,r,n,o,i){const s=Oe("el-tooltip-trigger"),a=Oe("el-popper-arrow"),l=Oe("el-tooltip-content"),u=Oe("el-popper");return K(),Ce(u,{ref:"popperRef"},{default:Q(()=>[G(s,{disabled:e.disabled,trigger:e.trigger,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:Q(()=>[e.$slots.default?Ee(e.$slots,"default",{key:0}):ke("v-if",!0)]),_:3},8,["disabled","trigger","virtual-ref","virtual-triggering"]),G(l,{"aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":e.popperClass,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"show-after":e.compatShowAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"z-index":e.zIndex,"append-to":e.appendTo},{default:Q(()=>[Ee(e.$slots,"content",{},()=>[e.rawContent?(K(),se("span",{key:0,innerHTML:e.content},null,8,YT)):(K(),se("span",XT,me(e.content),1))]),e.compatShowArrow?(K(),Ce(a,{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):ke("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","show-after","strategy","teleported","transition","z-index","append-to"])]),_:3},512)}var JT=Ne(GT,[["render",QT],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Tc=Ct(JT),ZT=Ge({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:De(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:De([Function,Array]),default:kt},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:Ar.teleported,highlightFirstItem:{type:Boolean,default:!1}}),e8={[Tt]:e=>ze(e),input:e=>ze(e),change:e=>ze(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>it(e)},t8=["aria-expanded","aria-owns"],r8={key:0},n8=["id","aria-selected","onClick"],i8={name:"ElAutocomplete",inheritAttrs:!1},o8=we(je(Se({},i8),{props:ZT,emits:e8,setup(e,{expose:t,emit:r}){const n=e,o="ElAutocomplete",i=Fe("autocomplete");let s=!1;const a=Em(),l=gg(),u=X([]),c=X(-1),_=X(""),v=X(!1),p=X(!1),g=X(!1),b=X(),m=X(),d=X(),f=X(),h=J(()=>i.b(String(xm()))),y=J(()=>l.style),C=J(()=>(Pe(u.value)&&u.value.length>0||g.value)&&v.value),w=J(()=>!n.hideLoading&&g.value),S=()=>{Xe(()=>{C.value&&(_.value=`${b.value.$el.offsetWidth}px`)})},k=qs(async V=>{if(p.value)return;g.value=!0;const U=Y=>{g.value=!1,!p.value&&(Pe(Y)?(u.value=Y,c.value=n.highlightFirstItem?0:-1):qi(o,"autocomplete suggestions must be an array"))};if(Pe(n.fetchSuggestions))U(n.fetchSuggestions);else{const Y=await n.fetchSuggestions(V,U);Pe(Y)&&U(Y)}},n.debounce),x=V=>{const U=Boolean(V);if(r("input",V),r(Tt,V),p.value=!1,v.value||(v.value=s&&U),!n.triggerOnFocus&&!V){p.value=!0,u.value=[];return}s&&U&&(s=!1),k(V)},A=V=>{r("change",V)},L=V=>{v.value=!0,r("focus",V),n.triggerOnFocus&&k(String(n.modelValue))},T=V=>{r("blur",V)},H=()=>{v.value=!1,s=!0,r(Tt,""),r("clear")},P=()=>{C.value&&c.value>=0&&c.value<u.value.length?M(u.value[c.value]):n.selectWhenUnmatched&&(r("select",{value:n.modelValue}),Xe(()=>{u.value=[],c.value=-1}))},R=()=>{v.value=!1},I=()=>{var V;(V=b.value)==null||V.focus()},M=V=>{r("input",V[n.valueKey]),r(Tt,V[n.valueKey]),r("select",V),Xe(()=>{u.value=[],c.value=-1})},$=V=>{if(!C.value||g.value)return;if(V<0){c.value=-1;return}V>=u.value.length&&(V=u.value.length-1);const U=m.value.querySelector(`.${i.be("suggestion","wrap")}`),Z=U.querySelectorAll(`.${i.be("suggestion","list")} li`)[V],te=U.scrollTop,{offsetTop:B,scrollHeight:z}=Z;B+z>te+U.clientHeight&&(U.scrollTop+=z),B<te&&(U.scrollTop-=z),c.value=V,b.value.ref.setAttribute("aria-activedescendant",`${h.value}-item-${c.value}`)};return gm(f,R),ht(()=>{b.value.ref.setAttribute("role","textbox"),b.value.ref.setAttribute("aria-autocomplete","list"),b.value.ref.setAttribute("aria-controls","id"),b.value.ref.setAttribute("aria-activedescendant",`${h.value}-item-${c.value}`)}),t({highlightedIndex:c,activated:v,loading:g,inputRef:b,popperRef:d,suggestions:u,handleSelect:M,handleKeyEnter:P,focus:I,close:R,highlight:$}),(V,U)=>(K(),Ce(N(Tc),{ref_key:"popperRef",ref:d,visible:N(C),"onUpdate:visible":U[2]||(U[2]=Y=>yt(C)?C.value=Y:null),placement:V.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[N(i).e("popper"),V.popperClass],teleported:V.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${N(i).namespace.value}-zoom-in-top`,persistent:"",onBeforeShow:S},{content:Q(()=>[W("div",{ref_key:"regionRef",ref:m,class:ne([N(i).b("suggestion"),N(i).is("loading",N(w))]),style:We({minWidth:_.value,outline:"none"}),role:"region"},[G(N(Ac),{id:N(h),tag:"ul","wrap-class":N(i).be("suggestion","wrap"),"view-class":N(i).be("suggestion","list"),role:"listbox"},{default:Q(()=>[N(w)?(K(),se("li",r8,[G(N(mt),{class:ne(N(i).is("loading"))},{default:Q(()=>[G(N(mc))]),_:1},8,["class"])])):(K(!0),se(Ve,{key:1},Wr(u.value,(Y,Z)=>(K(),se("li",{id:`${N(h)}-item-${Z}`,key:Z,class:ne({highlighted:c.value===Z}),role:"option","aria-selected":c.value===Z,onClick:te=>M(Y)},[Ee(V.$slots,"default",{item:Y},()=>[Te(me(Y[V.valueKey]),1)])],10,n8))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:Q(()=>[W("div",{ref_key:"listboxRef",ref:f,class:ne([N(i).b(),V.$attrs.class]),style:We(N(y)),role:"combobox","aria-haspopup":"listbox","aria-expanded":N(C),"aria-owns":N(h)},[G(N(Xo),or({ref_key:"inputRef",ref:b},N(a),{"model-value":V.modelValue,onInput:x,onChange:A,onFocus:L,onBlur:T,onClear:H,onKeydown:[U[0]||(U[0]=tr(er(Y=>$(c.value-1),["prevent"]),["up"])),U[1]||(U[1]=tr(er(Y=>$(c.value+1),["prevent"]),["down"])),tr(P,["enter"]),tr(R,["tab"])]}),cd({_:2},[V.$slots.prepend?{name:"prepend",fn:Q(()=>[Ee(V.$slots,"prepend")])}:void 0,V.$slots.append?{name:"append",fn:Q(()=>[Ee(V.$slots,"append")])}:void 0,V.$slots.prefix?{name:"prefix",fn:Q(()=>[Ee(V.$slots,"prefix")])}:void 0,V.$slots.suffix?{name:"suffix",fn:Q(()=>[Ee(V.$slots,"suffix")])}:void 0]),1040,["model-value","onKeydown"])],14,t8)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}}));var s8=Ne(o8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const a8=Ct(s8),l8=Ge({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),c8=["textContent"],u8={name:"ElBadge"},f8=we(je(Se({},u8),{props:l8,setup(e,{expose:t}){const r=e,n=Fe("badge"),o=J(()=>r.isDot?"":Mt(r.value)&&Mt(r.max)?r.max<r.value?`${r.max}+`:`${r.value}`:`${r.value}`);return t({content:o}),(i,s)=>(K(),se("div",{class:ne(N(n).b())},[Ee(i.$slots,"default"),G(wr,{name:`${N(n).namespace.value}-zoom-in-center`},{default:Q(()=>[at(W("sup",{class:ne([N(n).e("content"),N(n).em("content",i.type),N(n).is("fixed",!!i.$slots.default),N(n).is("dot",i.isDot)]),textContent:me(N(o))},null,10,c8),[[Ut,!i.hidden&&(N(o)||N(o)==="0"||i.isDot)]])]),_:1},8,["name"])],2))}}));var d8=Ne(f8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const h8=Ct(d8),p8=["default","primary","success","warning","info","danger",""],v8=["button","submit","reset"],hf=Ge({size:wc,disabled:Boolean,type:{type:String,values:p8,default:""},icon:{type:Ni,default:""},nativeType:{type:String,values:v8,default:"button"},loading:Boolean,loadingIcon:{type:Ni,default:()=>mc},plain:Boolean,text:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),g8={click:e=>e instanceof MouseEvent};function Wt(e,t){m8(e)&&(e="100%");var r=_8(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Va(e){return Math.min(1,Math.max(0,e))}function m8(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function _8(e){return typeof e=="string"&&e.indexOf("%")!==-1}function i_(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ka(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ai(e){return e.length===1?"0"+e:String(e)}function y8(e,t,r){return{r:Wt(e,255)*255,g:Wt(t,255)*255,b:Wt(r,255)*255}}function a0(e,t,r){e=Wt(e,255),t=Wt(t,255),r=Wt(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),i=0,s=0,a=(n+o)/2;if(n===o)s=0,i=0;else{var l=n-o;switch(s=a>.5?l/(2-n-o):l/(n+o),n){case e:i=(t-r)/l+(t<r?6:0);break;case t:i=(r-e)/l+2;break;case r:i=(e-t)/l+4;break}i/=6}return{h:i,s,l:a}}function yu(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function b8(e,t,r){var n,o,i;if(e=Wt(e,360),t=Wt(t,100),r=Wt(r,100),t===0)o=r,i=r,n=r;else{var s=r<.5?r*(1+t):r+t-r*t,a=2*r-s;n=yu(a,s,e+1/3),o=yu(a,s,e),i=yu(a,s,e-1/3)}return{r:n*255,g:o*255,b:i*255}}function l0(e,t,r){e=Wt(e,255),t=Wt(t,255),r=Wt(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),i=0,s=n,a=n-o,l=n===0?0:a/n;if(n===o)i=0;else{switch(n){case e:i=(t-r)/a+(t<r?6:0);break;case t:i=(r-e)/a+2;break;case r:i=(e-t)/a+4;break}i/=6}return{h:i,s:l,v:s}}function C8(e,t,r){e=Wt(e,360)*6,t=Wt(t,100),r=Wt(r,100);var n=Math.floor(e),o=e-n,i=r*(1-t),s=r*(1-o*t),a=r*(1-(1-o)*t),l=n%6,u=[r,s,i,i,a,r][l],c=[a,r,r,s,i,i][l],_=[i,i,a,r,r,s][l];return{r:u*255,g:c*255,b:_*255}}function c0(e,t,r,n){var o=[Ai(Math.round(e).toString(16)),Ai(Math.round(t).toString(16)),Ai(Math.round(r).toString(16))];return n&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function w8(e,t,r,n,o){var i=[Ai(Math.round(e).toString(16)),Ai(Math.round(t).toString(16)),Ai(Math.round(r).toString(16)),Ai(S8(n))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function S8(e){return Math.round(parseFloat(e)*255).toString(16)}function u0(e){return dr(e)/255}function dr(e){return parseInt(e,16)}function x8(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var pf={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function E8(e){var t={r:0,g:0,b:0},r=1,n=null,o=null,i=null,s=!1,a=!1;return typeof e=="string"&&(e=T8(e)),typeof e=="object"&&(fn(e.r)&&fn(e.g)&&fn(e.b)?(t=y8(e.r,e.g,e.b),s=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):fn(e.h)&&fn(e.s)&&fn(e.v)?(n=Ka(e.s),o=Ka(e.v),t=C8(e.h,n,o),s=!0,a="hsv"):fn(e.h)&&fn(e.s)&&fn(e.l)&&(n=Ka(e.s),i=Ka(e.l),t=b8(e.h,n,i),s=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=i_(r),{ok:s,format:e.format||a,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var A8="[-\\+]?\\d+%?",k8="[-\\+]?\\d*\\.\\d+%?",Wn="(?:".concat(k8,")|(?:").concat(A8,")"),bu="[\\s|\\(]+(".concat(Wn,")[,|\\s]+(").concat(Wn,")[,|\\s]+(").concat(Wn,")\\s*\\)?"),Cu="[\\s|\\(]+(".concat(Wn,")[,|\\s]+(").concat(Wn,")[,|\\s]+(").concat(Wn,")[,|\\s]+(").concat(Wn,")\\s*\\)?"),Hr={CSS_UNIT:new RegExp(Wn),rgb:new RegExp("rgb"+bu),rgba:new RegExp("rgba"+Cu),hsl:new RegExp("hsl"+bu),hsla:new RegExp("hsla"+Cu),hsv:new RegExp("hsv"+bu),hsva:new RegExp("hsva"+Cu),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function T8(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(pf[e])e=pf[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=Hr.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=Hr.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Hr.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=Hr.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Hr.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=Hr.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Hr.hex8.exec(e),r?{r:dr(r[1]),g:dr(r[2]),b:dr(r[3]),a:u0(r[4]),format:t?"name":"hex8"}:(r=Hr.hex6.exec(e),r?{r:dr(r[1]),g:dr(r[2]),b:dr(r[3]),format:t?"name":"hex"}:(r=Hr.hex4.exec(e),r?{r:dr(r[1]+r[1]),g:dr(r[2]+r[2]),b:dr(r[3]+r[3]),a:u0(r[4]+r[4]),format:t?"name":"hex8"}:(r=Hr.hex3.exec(e),r?{r:dr(r[1]+r[1]),g:dr(r[2]+r[2]),b:dr(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function fn(e){return Boolean(Hr.CSS_UNIT.exec(String(e)))}var L8=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=x8(t)),this.originalInput=t;var o=E8(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:o.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,o,i=t.r/255,s=t.g/255,a=t.b/255;return i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),a<=.03928?o=a/12.92:o=Math.pow((a+.055)/1.055,2.4),.2126*r+.7152*n+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=i_(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var t=l0(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=l0(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=a0(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=a0(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),c0(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),w8(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(Wt(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(Wt(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+c0(this.r,this.g,this.b,!1),r=0,n=Object.entries(pf);r<n.length;r++){var o=n[r],i=o[0],s=o[1];if(t===s)return i}return!1},e.prototype.toString=function(t){var r=Boolean(t);t=t!=null?t:this.format;var n=!1,o=this.a<1&&this.a>=0,i=!r&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=Va(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=Va(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=Va(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=Va(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),o=new e(t).toRgb(),i=r/100,s={r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+n.a};return new e(s)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),o=360/r,i=[this];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,i.push(new e(n));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,o=r.s,i=r.v,s=[],a=1/t;t--;)s.push(new e({h:n,s:o,v:i})),i=(i+a)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb();return new e({r:n.r+(r.r-n.r)*r.a,g:n.g+(r.g-n.g)*r.a,b:n.b+(r.b-n.b)*r.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,o=[this],i=360/t,s=1;s<t;s++)o.push(new e({h:(n+s*i)%360,s:r.s,l:r.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Mn(e,t=20){return e.mix("#141414",t).toString()}function R8(e){const t=Sc(),r=Fe("button");return J(()=>{let n={};const o=e.color;if(o){const i=new L8(o),s=e.dark?i.tint(20).toString():Mn(i,20);if(e.plain)n=r.cssVarBlock({"bg-color":e.dark?Mn(i,90):i.tint(90).toString(),"text-color":o,"border-color":e.dark?Mn(i,50):i.tint(50).toString(),"hover-text-color":`var(${r.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":s,"active-text-color":`var(${r.cssVarName("color-white")})`,"active-border-color":s}),t.value&&(n[r.cssVarBlockName("disabled-bg-color")]=e.dark?Mn(i,90):i.tint(90).toString(),n[r.cssVarBlockName("disabled-text-color")]=e.dark?Mn(i,50):i.tint(50).toString(),n[r.cssVarBlockName("disabled-border-color")]=e.dark?Mn(i,80):i.tint(80).toString());else{const a=e.dark?Mn(i,30):i.tint(30).toString(),l=i.isDark()?`var(${r.cssVarName("color-white")})`:`var(${r.cssVarName("color-black")})`;if(n=r.cssVarBlock({"bg-color":o,"text-color":l,"border-color":o,"hover-bg-color":a,"hover-text-color":l,"hover-border-color":a,"active-bg-color":s,"active-border-color":s}),t.value){const u=e.dark?Mn(i,50):i.tint(50).toString();n[r.cssVarBlockName("disabled-bg-color")]=u,n[r.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${r.cssVarName("color-white")})`,n[r.cssVarBlockName("disabled-border-color")]=u}}}return n})}const B8=["aria-disabled","disabled","autofocus","type"],O8={name:"ElButton"},I8=we(je(Se({},O8),{props:hf,emits:g8,setup(e,{expose:t,emit:r}){const n=e,o=ea(),i=Ie(Am,void 0),s=Ki("button"),a=Fe("button"),{form:l}=Td(),u=Cr(J(()=>i==null?void 0:i.size)),c=Sc(),_=X(),v=J(()=>n.type||(i==null?void 0:i.type)||""),p=J(()=>{var d,f,h;return(h=(f=n.autoInsertSpace)!=null?f:(d=s.value)==null?void 0:d.autoInsertSpace)!=null?h:!1}),g=J(()=>{var d;const f=(d=o.default)==null?void 0:d.call(o);if(p.value&&(f==null?void 0:f.length)===1){const h=f[0];if((h==null?void 0:h.type)===Zs){const y=h.children;return/^\p{Unified_Ideograph}{2}$/u.test(y.trim())}}return!1}),b=R8(n),m=d=>{n.nativeType==="reset"&&(l==null||l.resetFields()),r("click",d)};return t({ref:_,size:u,type:v,disabled:c,shouldAddSpace:g}),(d,f)=>(K(),se("button",{ref_key:"_ref",ref:_,class:ne([N(a).b(),N(a).m(N(v)),N(a).m(N(u)),N(a).is("disabled",N(c)),N(a).is("loading",d.loading),N(a).is("plain",d.plain),N(a).is("round",d.round),N(a).is("circle",d.circle),N(a).is("text",d.text),N(a).is("has-bg",d.bg)]),"aria-disabled":N(c)||d.loading,disabled:N(c)||d.loading,autofocus:d.autofocus,type:d.nativeType,style:We(N(b)),onClick:m},[d.loading?(K(),se(Ve,{key:0},[d.$slots.loading?Ee(d.$slots,"loading",{key:0}):(K(),Ce(N(mt),{key:1,class:ne(N(a).is("loading"))},{default:Q(()=>[(K(),Ce(jt(d.loadingIcon)))]),_:1},8,["class"]))],2112)):d.icon||d.$slots.icon?(K(),Ce(N(mt),{key:1},{default:Q(()=>[d.icon?(K(),Ce(jt(d.icon),{key:0})):Ee(d.$slots,"icon",{key:1})]),_:3})):ke("v-if",!0),d.$slots.default?(K(),se("span",{key:2,class:ne({[N(a).em("text","expand")]:N(g)})},[Ee(d.$slots,"default")],2)):ke("v-if",!0)],14,B8))}}));var M8=Ne(I8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const P8={size:hf.size,type:hf.type},D8={name:"ElButtonGroup"},H8=we(je(Se({},D8),{props:P8,setup(e){const t=e;ft(Am,sr({size:Gt(t,"size"),type:Gt(t,"type")}));const r=Fe("button");return(n,o)=>(K(),se("div",{class:ne(`${N(r).b("group")}`)},[Ee(n.$slots,"default")],2))}}));var o_=Ne(H8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const Ir=Ct(M8,{ButtonGroup:o_});Vr(o_);var Qe=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function F8(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}const Hn=new Map;let f0;dt&&(document.addEventListener("mousedown",e=>f0=e),document.addEventListener("mouseup",e=>{for(const t of Hn.values())for(const{documentHandler:r}of t)r(e,f0)}));function d0(e,t){let r=[];return Array.isArray(t.arg)?r=t.arg:Mo(t.arg)&&r.push(t.arg),function(n,o){const i=t.instance.popperRef,s=n.target,a=o==null?void 0:o.target,l=!t||!t.instance,u=!s||!a,c=e.contains(s)||e.contains(a),_=e===s,v=r.length&&r.some(g=>g==null?void 0:g.contains(s))||r.length&&r.includes(a),p=i&&(i.contains(s)||i.contains(a));l||u||c||_||v||p||t.value(n,o)}}const N8={beforeMount(e,t){Hn.has(e)||Hn.set(e,[]),Hn.get(e).push({documentHandler:d0(e,t),bindingFn:t.value})},updated(e,t){Hn.has(e)||Hn.set(e,[]);const r=Hn.get(e),n=r.findIndex(i=>i.bindingFn===t.oldValue),o={documentHandler:d0(e,t),bindingFn:t.value};n>=0?r.splice(n,1,o):r.push(o)},unmounted(e){Hn.delete(e)}},vf="_trap-focus-children",ki=[],h0=e=>{if(ki.length===0)return;const t=ki[ki.length-1][vf];if(t.length>0&&e.code===Ze.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const r=e.shiftKey,n=e.target===t[0],o=e.target===t[t.length-1];n&&r&&(e.preventDefault(),t[t.length-1].focus()),o&&!r&&(e.preventDefault(),t[0].focus())}},$8={beforeMount(e){e[vf]=Fp(e),ki.push(e),ki.length<=1&&Di(document,"keydown",h0)},updated(e){Xe(()=>{e[vf]=Fp(e)})},unmounted(){ki.shift(),ki.length===0&&Hi(document,"keydown",h0)}};var p0=!1,xi,gf,mf,pl,vl,s_,gl,_f,yf,bf,a_,Cf,wf,l_,c_;function Jt(){if(!p0){p0=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),r=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(Cf=/\b(iPhone|iP[ao]d)/.exec(e),wf=/\b(iP[ao]d)/.exec(e),bf=/Android/i.exec(e),l_=/FBAN\/\w+;/i.exec(e),c_=/Mobile/i.exec(e),a_=!!/Win64/.exec(e),t){xi=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,xi&&document&&document.documentMode&&(xi=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(e);s_=n?parseFloat(n[1])+4:xi,gf=t[2]?parseFloat(t[2]):NaN,mf=t[3]?parseFloat(t[3]):NaN,pl=t[4]?parseFloat(t[4]):NaN,pl?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),vl=t&&t[1]?parseFloat(t[1]):NaN):vl=NaN}else xi=gf=mf=vl=pl=NaN;if(r){if(r[1]){var o=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);gl=o?parseFloat(o[1].replace("_",".")):!0}else gl=!1;_f=!!r[2],yf=!!r[3]}else gl=_f=yf=!1}}var Sf={ie:function(){return Jt()||xi},ieCompatibilityMode:function(){return Jt()||s_>xi},ie64:function(){return Sf.ie()&&a_},firefox:function(){return Jt()||gf},opera:function(){return Jt()||mf},webkit:function(){return Jt()||pl},safari:function(){return Sf.webkit()},chrome:function(){return Jt()||vl},windows:function(){return Jt()||_f},osx:function(){return Jt()||gl},linux:function(){return Jt()||yf},iphone:function(){return Jt()||Cf},mobile:function(){return Jt()||Cf||wf||bf||c_},nativeApp:function(){return Jt()||l_},android:function(){return Jt()||bf},ipad:function(){return Jt()||wf}},j8=Sf,Ga=!!(typeof window<"u"&&window.document&&window.document.createElement),U8={canUseDOM:Ga,canUseWorkers:typeof Worker<"u",canUseEventListeners:Ga&&!!(window.addEventListener||window.attachEvent),canUseViewport:Ga&&!!window.screen,isInWorker:!Ga},u_=U8,f_;u_.canUseDOM&&(f_=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function W8(e,t){if(!u_.canUseDOM||t&&!("addEventListener"in document))return!1;var r="on"+e,n=r in document;if(!n){var o=document.createElement("div");o.setAttribute(r,"return;"),n=typeof o[r]=="function"}return!n&&f_&&e==="wheel"&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}var z8=W8,v0=10,g0=40,m0=800;function d_(e){var t=0,r=0,n=0,o=0;return"detail"in e&&(r=e.detail),"wheelDelta"in e&&(r=-e.wheelDelta/120),"wheelDeltaY"in e&&(r=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=r,r=0),n=t*v0,o=r*v0,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||o)&&e.deltaMode&&(e.deltaMode==1?(n*=g0,o*=g0):(n*=m0,o*=m0)),n&&!t&&(t=n<1?-1:1),o&&!r&&(r=o<1?-1:1),{spinX:t,spinY:r,pixelX:n,pixelY:o}}d_.getEventType=function(){return j8.firefox()?"DOMMouseScroll":z8("wheel")?"wheel":"mousewheel"};var q8=d_;/**
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/const V8=function(e,t){if(e&&e.addEventListener){const r=function(n){const o=q8(n);t&&Reflect.apply(t,this,[n,o])};e.addEventListener("wheel",r,{passive:!0})}},K8={beforeMount(e,t){V8(e,t.value)}},G8=Ge({header:{type:String,default:""},bodyStyle:{type:De([String,Object,Array]),default:""},shadow:{type:String,default:"always"}}),Y8={name:"ElCard"},X8=we(je(Se({},Y8),{props:G8,setup(e){const t=Fe("card");return(r,n)=>(K(),se("div",{class:ne([N(t).b(),N(t).is(`${r.shadow}-shadow`)])},[r.$slots.header||r.header?(K(),se("div",{key:0,class:ne(N(t).e("header"))},[Ee(r.$slots,"header",{},()=>[Te(me(r.header),1)])],2)):ke("v-if",!0),W("div",{class:ne(N(t).e("body")),style:We(r.bodyStyle)},[Ee(r.$slots,"default")],6)],2))}}));var Q8=Ne(X8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const J8=Ct(Q8),Z8={modelValue:{type:Array,default:()=>[]},disabled:Boolean,min:{type:Number,default:void 0},max:{type:Number,default:void 0},size:{type:String,validator:bc},id:{type:String,default:void 0},label:{type:String,default:void 0},fill:{type:String,default:void 0},textColor:{type:String,default:void 0},tag:{type:String,default:"div"}},h_={modelValue:{type:[Number,String,Boolean],default:()=>{}},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:{type:String,validator:bc},tabindex:[String,Number]},Qo=()=>{const e=Ie(Vi,{}),t=Ie(Jn,{}),r=Ie("CheckboxGroup",{}),n=J(()=>r&&(r==null?void 0:r.name)==="ElCheckboxGroup"),o=J(()=>t.size);return{isGroup:n,checkboxGroup:r,elForm:e,elFormItemSize:o,elFormItem:t}},eL=(e,{elFormItem:t})=>{const{inputId:r,isLabeledByFormItem:n}=Ec(e,{formItemContext:t});return{isLabeledByFormItem:n,groupId:r}},tL=e=>{const t=X(!1),{emit:r}=ot(),{isGroup:n,checkboxGroup:o,elFormItem:i}=Qo(),s=X(!1);return{model:J({get(){var l,u;return n.value?(l=o.modelValue)==null?void 0:l.value:(u=e.modelValue)!=null?u:t.value},set(l){var u;n.value&&Array.isArray(l)?(s.value=o.max!==void 0&&l.length>o.max.value,s.value===!1&&((u=o==null?void 0:o.changeEvent)==null||u.call(o,l))):(r(Tt,l),t.value=l)}}),isGroup:n,isLimitExceeded:s,elFormItem:i}},rL=(e,t,{model:r})=>{const{isGroup:n,checkboxGroup:o}=Qo(),i=X(!1),s=Cr(o==null?void 0:o.checkboxGroupSize,{prop:!0}),a=J(()=>{const c=r.value;return qo(c)==="[object Boolean]"?c:Array.isArray(c)?c.includes(e.label):c!=null?c===e.trueLabel:!!c}),l=Cr(J(()=>{var c;return n.value?(c=o==null?void 0:o.checkboxGroupSize)==null?void 0:c.value:void 0})),u=J(()=>!!(t.default||e.label));return{isChecked:a,focus:i,size:s,checkboxSize:l,hasOwnLabel:u}},nL=(e,{model:t,isChecked:r})=>{const{elForm:n,isGroup:o,checkboxGroup:i}=Qo(),s=J(()=>{var l,u;const c=(l=i.max)==null?void 0:l.value,_=(u=i.min)==null?void 0:u.value;return!!(c||_)&&t.value.length>=c&&!r.value||t.value.length<=_&&r.value});return{isDisabled:J(()=>{var l,u;const c=e.disabled||(n==null?void 0:n.disabled);return(u=o.value?((l=i.disabled)==null?void 0:l.value)||c||s.value:c)!=null?u:!1}),isLimitDisabled:s}},iL=(e,{model:t})=>{function r(){Array.isArray(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&r()},oL=(e,{model:t,isLimitExceeded:r,hasOwnLabel:n,isDisabled:o,isLabeledByFormItem:i})=>{const{elFormItem:s}=Qo(),{emit:a}=ot();function l(v){var p,g;return v===e.trueLabel||v===!0?(p=e.trueLabel)!=null?p:!0:(g=e.falseLabel)!=null?g:!1}function u(v,p){a("change",l(v),p)}function c(v){if(r.value)return;const p=v.target;a("change",l(p.checked),v)}async function _(v){r.value||!n.value&&!o.value&&i.value&&(t.value=l([!1,e.falseLabel].includes(t.value)),await Xe(),u(t.value,v))}return Be(()=>e.modelValue,()=>{var v;(v=s==null?void 0:s.validate)==null||v.call(s,"change").catch(p=>void 0)}),{handleChange:c,onClickRoot:_}},p_=(e,t)=>{const{model:r,isGroup:n,isLimitExceeded:o,elFormItem:i}=tL(e),{focus:s,size:a,isChecked:l,checkboxSize:u,hasOwnLabel:c}=rL(e,t,{model:r}),{isDisabled:_}=nL(e,{model:r,isChecked:l}),{inputId:v,isLabeledByFormItem:p}=Ec(e,{formItemContext:i,disableIdGeneration:c,disableIdManagement:n}),{handleChange:g,onClickRoot:b}=oL(e,{model:r,isLimitExceeded:o,hasOwnLabel:c,isDisabled:_,isLabeledByFormItem:p});return iL(e,{model:r}),{elFormItem:i,inputId:v,isLabeledByFormItem:p,isChecked:l,isDisabled:_,isGroup:n,checkboxSize:u,hasOwnLabel:c,model:r,handleChange:g,onClickRoot:b,focus:s,size:a}},sL=we({name:"ElCheckbox",props:h_,emits:[Tt,"change"],setup(e,{slots:t}){const r=Fe("checkbox");return Se({ns:r},p_(e,t))}}),aL=["tabindex","role","aria-checked"],lL=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],cL=["id","aria-hidden","disabled","value","name","tabindex"];function uL(e,t,r,n,o,i){return K(),Ce(jt(!e.hasOwnLabel&&e.isLabeledByFormItem?"span":"label"),{class:ne([e.ns.b(),e.ns.m(e.checkboxSize),e.ns.is("disabled",e.isDisabled),e.ns.is("bordered",e.border),e.ns.is("checked",e.isChecked)]),"aria-controls":e.indeterminate?e.controls:null,onClick:e.onClickRoot},{default:Q(()=>[W("span",{class:ne([e.ns.e("input"),e.ns.is("disabled",e.isDisabled),e.ns.is("checked",e.isChecked),e.ns.is("indeterminate",e.indeterminate),e.ns.is("focus",e.focus)]),tabindex:e.indeterminate?0:void 0,role:e.indeterminate?"checkbox":void 0,"aria-checked":e.indeterminate?"mixed":void 0},[W("span",{class:ne(e.ns.e("inner"))},null,2),e.trueLabel||e.falseLabel?at((K(),se("input",{key:0,id:e.inputId,"onUpdate:modelValue":t[0]||(t[0]=s=>e.model=s),class:ne(e.ns.e("original")),type:"checkbox","aria-hidden":e.indeterminate?"true":"false",name:e.name,tabindex:e.tabindex,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel,onChange:t[1]||(t[1]=(...s)=>e.handleChange&&e.handleChange(...s)),onFocus:t[2]||(t[2]=s=>e.focus=!0),onBlur:t[3]||(t[3]=s=>e.focus=!1)},null,42,lL)),[[Il,e.model]]):at((K(),se("input",{key:1,id:e.inputId,"onUpdate:modelValue":t[4]||(t[4]=s=>e.model=s),class:ne(e.ns.e("original")),type:"checkbox","aria-hidden":e.indeterminate?"true":"false",disabled:e.isDisabled,value:e.label,name:e.name,tabindex:e.tabindex,onChange:t[5]||(t[5]=(...s)=>e.handleChange&&e.handleChange(...s)),onFocus:t[6]||(t[6]=s=>e.focus=!0),onBlur:t[7]||(t[7]=s=>e.focus=!1)},null,42,cL)),[[Il,e.model]])],10,aL),e.hasOwnLabel?(K(),se("span",{key:0,class:ne(e.ns.e("label"))},[Ee(e.$slots,"default"),e.$slots.default?ke("v-if",!0):(K(),se(Ve,{key:0},[Te(me(e.label),1)],2112))],2)):ke("v-if",!0)]),_:3},8,["class","aria-controls","onClick"])}var fL=Ne(sL,[["render",uL],["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const dL=we({name:"ElCheckboxButton",props:h_,emits:[Tt,"change"],setup(e,{slots:t}){const{focus:r,isChecked:n,isDisabled:o,size:i,model:s,handleChange:a}=p_(e,t),{checkboxGroup:l}=Qo(),u=Fe("checkbox"),c=J(()=>{var _,v,p,g;const b=(v=(_=l==null?void 0:l.fill)==null?void 0:_.value)!=null?v:"";return{backgroundColor:b,borderColor:b,color:(g=(p=l==null?void 0:l.textColor)==null?void 0:p.value)!=null?g:"",boxShadow:b?`-1px 0 0 0 ${b}`:null}});return{focus:r,isChecked:n,isDisabled:o,model:s,handleChange:a,activeStyle:c,size:i,ns:u}}}),hL=["name","tabindex","disabled","true-value","false-value"],pL=["name","tabindex","disabled","value"];function vL(e,t,r,n,o,i){return K(),se("label",{class:ne([e.ns.b("button"),e.ns.bm("button",e.size),e.ns.is("disabled",e.isDisabled),e.ns.is("checked",e.isChecked),e.ns.is("focus",e.focus)])},[e.trueLabel||e.falseLabel?at((K(),se("input",{key:0,"onUpdate:modelValue":t[0]||(t[0]=s=>e.model=s),class:ne(e.ns.be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel,onChange:t[1]||(t[1]=(...s)=>e.handleChange&&e.handleChange(...s)),onFocus:t[2]||(t[2]=s=>e.focus=!0),onBlur:t[3]||(t[3]=s=>e.focus=!1)},null,42,hL)),[[Il,e.model]]):at((K(),se("input",{key:1,"onUpdate:modelValue":t[4]||(t[4]=s=>e.model=s),class:ne(e.ns.be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:e.isDisabled,value:e.label,onChange:t[5]||(t[5]=(...s)=>e.handleChange&&e.handleChange(...s)),onFocus:t[6]||(t[6]=s=>e.focus=!0),onBlur:t[7]||(t[7]=s=>e.focus=!1)},null,42,pL)),[[Il,e.model]]),e.$slots.default||e.label?(K(),se("span",{key:2,class:ne(e.ns.be("button","inner")),style:We(e.isChecked?e.activeStyle:null)},[Ee(e.$slots,"default",{},()=>[Te(me(e.label),1)])],6)):ke("v-if",!0)],2)}var v_=Ne(dL,[["render",vL],["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const gL=we({name:"ElCheckboxGroup",props:Z8,emits:[Tt,"change"],setup(e,{emit:t,slots:r}){const{elFormItem:n}=Qo(),{groupId:o,isLabeledByFormItem:i}=eL(e,{elFormItem:n}),s=Cr(),a=Fe("checkbox"),l=c=>{t(Tt,c),Xe(()=>{t("change",c)})},u=J({get(){return e.modelValue},set(c){l(c)}});return ft("CheckboxGroup",je(Se({name:"ElCheckboxGroup",modelValue:u},Ui(e)),{checkboxGroupSize:s,changeEvent:l})),Be(()=>e.modelValue,()=>{var c;(c=n.validate)==null||c.call(n,"change").catch(_=>void 0)}),()=>He(e.tag,{id:o.value,class:a.b("group"),role:"group","aria-label":i.value?void 0:e.label||"checkbox-group","aria-labelledby":i.value?n.labelId:void 0},[Ee(r,"default")])}});var g_=Ne(gL,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const $o=Ct(fL,{CheckboxButton:v_,CheckboxGroup:g_});Vr(v_);Vr(g_);const m_=Ge({size:wc,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),mL=Ge(je(Se({},m_),{modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean})),__={[Tt]:e=>ze(e)||Mt(e)||Xn(e),change:e=>ze(e)||Mt(e)||Xn(e)},y_=(e,t)=>{const r=X(),n=Ie(Lm,void 0),o=J(()=>!!n),i=J({get(){return o.value?n.modelValue:e.modelValue},set(c){o.value?n.changeEvent(c):t(Tt,c),r.value.checked=e.modelValue===e.label}}),s=Cr(J(()=>n==null?void 0:n.size)),a=Sc(J(()=>n==null?void 0:n.disabled)),l=X(!1),u=J(()=>a.value||o.value&&i.value!==e.label?-1:0);return{radioRef:r,isGroup:o,radioGroup:n,focus:l,size:s,disabled:a,tabIndex:u,modelValue:i}},_L=we({name:"ElRadio",props:mL,emits:__,setup(e,{emit:t}){const r=Fe("radio"),{radioRef:n,isGroup:o,focus:i,size:s,disabled:a,tabIndex:l,modelValue:u}=y_(e,t);function c(){Xe(()=>t("change",u.value))}return{ns:r,focus:i,isGroup:o,modelValue:u,tabIndex:l,size:s,disabled:a,radioRef:n,handleChange:c}}}),yL=["value","name","disabled"];function bL(e,t,r,n,o,i){return K(),se("label",{class:ne([e.ns.b(),e.ns.is("disabled",e.disabled),e.ns.is("focus",e.focus),e.ns.is("bordered",e.border),e.ns.is("checked",e.modelValue===e.label),e.ns.m(e.size)]),onKeydown:t[5]||(t[5]=tr(er(s=>e.modelValue=e.disabled?e.modelValue:e.label,["stop","prevent"]),["space"]))},[W("span",{class:ne([e.ns.e("input"),e.ns.is("disabled",e.disabled),e.ns.is("checked",e.modelValue===e.label)])},[W("span",{class:ne(e.ns.e("inner"))},null,2),at(W("input",{ref:"radioRef","onUpdate:modelValue":t[0]||(t[0]=s=>e.modelValue=s),class:ne(e.ns.e("original")),value:e.label,type:"radio",name:e.name,disabled:e.disabled,tabindex:"tabIndex",onFocus:t[1]||(t[1]=s=>e.focus=!0),onBlur:t[2]||(t[2]=s=>e.focus=!1),onChange:t[3]||(t[3]=(...s)=>e.handleChange&&e.handleChange(...s))},null,42,yL),[[Eg,e.modelValue]])],2),W("span",{class:ne(e.ns.e("label")),onKeydown:t[4]||(t[4]=er(()=>{},["stop"]))},[Ee(e.$slots,"default",{},()=>[Te(me(e.label),1)])],34)],34)}var CL=Ne(_L,[["render",bL],["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const wL=Ge(je(Se({},m_),{name:{type:String,default:""}})),SL=we({name:"ElRadioButton",props:wL,setup(e,{emit:t}){const r=Fe("radio"),{radioRef:n,isGroup:o,focus:i,size:s,disabled:a,tabIndex:l,modelValue:u,radioGroup:c}=y_(e,t),_=J(()=>({backgroundColor:(c==null?void 0:c.fill)||"",borderColor:(c==null?void 0:c.fill)||"",boxShadow:c!=null&&c.fill?`-1px 0 0 0 ${c.fill}`:"",color:(c==null?void 0:c.textColor)||""}));return{ns:r,isGroup:o,size:s,disabled:a,tabIndex:l,modelValue:u,focus:i,activeStyle:_,radioRef:n}}}),xL=["aria-checked","aria-disabled","tabindex"],EL=["value","name","disabled"];function AL(e,t,r,n,o,i){return K(),se("label",{class:ne([e.ns.b("button"),e.ns.is("active",e.modelValue===e.label),e.ns.is("disabled",e.disabled),e.ns.is("focus",e.focus),e.ns.bm("button",e.size)]),role:"radio","aria-checked":e.modelValue===e.label,"aria-disabled":e.disabled,tabindex:e.tabIndex,onKeydown:t[4]||(t[4]=tr(er(s=>e.modelValue=e.disabled?e.modelValue:e.label,["stop","prevent"]),["space"]))},[at(W("input",{ref:"radioRef","onUpdate:modelValue":t[0]||(t[0]=s=>e.modelValue=s),class:ne(e.ns.be("button","original-radio")),value:e.label,type:"radio",name:e.name,disabled:e.disabled,tabindex:"-1",onFocus:t[1]||(t[1]=s=>e.focus=!0),onBlur:t[2]||(t[2]=s=>e.focus=!1)},null,42,EL),[[Eg,e.modelValue]]),W("span",{class:ne(e.ns.be("button","inner")),style:We(e.modelValue===e.label?e.activeStyle:{}),onKeydown:t[3]||(t[3]=er(()=>{},["stop"]))},[Ee(e.$slots,"default",{},()=>[Te(me(e.label),1)])],38)],42,xL)}var b_=Ne(SL,[["render",AL],["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const kL=Ge({id:{type:String,default:void 0},size:wc,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""}}),TL=__,LL=we({name:"ElRadioGroup",props:kL,emits:TL,setup(e,t){const r=Fe("radio"),n=X(),{formItem:o}=Td(),{inputId:i,isLabeledByFormItem:s}=Ec(e,{formItemContext:o}),a=u=>{t.emit(Tt,u),Xe(()=>t.emit("change",u))},l=u=>{if(!n.value)return;const c=u.target,_=c.nodeName==="INPUT"?"[type=radio]":"[role=radio]",v=n.value.querySelectorAll(_),p=v.length,g=Array.from(v).indexOf(c),b=n.value.querySelectorAll("[role=radio]");let m=null;switch(u.code){case Ze.left:case Ze.up:u.stopPropagation(),u.preventDefault(),m=g===0?p-1:g-1;break;case Ze.right:case Ze.down:u.stopPropagation(),u.preventDefault(),m=g===p-1?0:g+1;break}m!==null&&(b[m].click(),b[m].focus())};return ht(()=>{const u=n.value.querySelectorAll("[type=radio]"),c=u[0];!Array.from(u).some(_=>_.checked)&&c&&(c.tabIndex=0)}),ft(Lm,sr(je(Se({},Ui(e)),{changeEvent:a}))),Be(()=>e.modelValue,()=>o==null?void 0:o.validate("change").catch(u=>void 0)),{ns:r,radioGroupRef:n,formItem:o,groupId:i,isLabeledByFormItem:s,handleKeydown:l}}}),RL=["id","aria-label","aria-labelledby"];function BL(e,t,r,n,o,i){return K(),se("div",{id:e.groupId,ref:"radioGroupRef",class:ne(e.ns.b("group")),role:"radiogroup","aria-label":e.isLabeledByFormItem?void 0:e.label||"radio-group","aria-labelledby":e.isLabeledByFormItem?e.formItem.labelId:void 0,onKeydown:t[0]||(t[0]=(...s)=>e.handleKeydown&&e.handleKeydown(...s))},[Ee(e.$slots,"default")],42,RL)}var C_=Ne(LL,[["render",BL],["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const OL=Ct(CL,{RadioButton:b_,RadioGroup:C_});Vr(C_);Vr(b_);const IL=Ge({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:Yo,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),ML={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},PL={name:"ElTag"},DL=we(je(Se({},PL),{props:IL,emits:ML,setup(e,{emit:t}){const r=e,n=Cr(),o=Fe("tag"),i=J(()=>{const{type:l,hit:u,effect:c,closable:_,round:v}=r;return[o.b(),o.is("closable",_),o.m(l),o.m(n.value),o.m(c),o.is("hit",u),o.is("round",v)]}),s=l=>{l.stopPropagation(),t("close",l)},a=l=>{t("click",l)};return(l,u)=>l.disableTransitions?(K(),Ce(wr,{key:1,name:`${N(o).namespace.value}-zoom-in-center`},{default:Q(()=>[W("span",{class:ne(N(i)),style:We({backgroundColor:l.color}),onClick:a},[W("span",{class:ne(N(o).e("content"))},[Ee(l.$slots,"default")],2),l.closable?(K(),Ce(N(mt),{key:0,class:ne(N(o).e("close")),onClick:s},{default:Q(()=>[G(N(Fi))]),_:1},8,["class"])):ke("v-if",!0)],6)]),_:3},8,["name"])):(K(),se("span",{key:0,class:ne(N(i)),style:We({backgroundColor:l.color}),onClick:a},[W("span",{class:ne(N(o).e("content"))},[Ee(l.$slots,"default")],2),l.closable?(K(),Ce(N(mt),{key:0,class:ne(N(o).e("close")),onClick:s},{default:Q(()=>[G(N(Fi))]),_:1},8,["class"])):ke("v-if",!0)],6))}}));var HL=Ne(DL,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const FL=Ct(HL),xf={},NL=Ge({a11y:{type:Boolean,default:!0},locale:{type:De(Object)},size:{type:String,values:Yo,default:""},button:{type:De(Object)},experimentalFeatures:{type:De(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:De(Object)},zIndex:{type:Number},namespace:{type:String,default:"el"}});we({name:"ElConfigProvider",props:NL,setup(e,{slots:t}){Be(()=>e.message,n=>{Object.assign(xf,n!=null?n:{})},{immediate:!0,deep:!0});const r=l3(e);return()=>Ee(t,"default",{config:r==null?void 0:r.value})}});const jd="elDescriptions";var _0=we({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String},type:{type:String}},setup(){return{descriptions:Ie(jd,{})}},render(){var e,t,r,n,o,i;const s=i3(this.cell),{border:a,direction:l}=this.descriptions,u=l==="vertical",c=((r=(t=(e=this.cell)==null?void 0:e.children)==null?void 0:t.label)==null?void 0:r.call(t))||s.label,_=(i=(o=(n=this.cell)==null?void 0:n.children)==null?void 0:o.default)==null?void 0:i.call(o),v=s.span,p=s.align?`is-${s.align}`:"",g=s.labelAlign?`is-${s.labelAlign}`:p,b=s.className,m=s.labelClassName,d={width:on(s.width),minWidth:on(s.minWidth)},f=Fe("descriptions");switch(this.type){case"label":return He(this.tag,{style:d,class:[f.e("cell"),f.e("label"),f.is("bordered-label",a),f.is("vertical-label",u),g,m],colSpan:u?v:1},c);case"content":return He(this.tag,{style:d,class:[f.e("cell"),f.e("content"),f.is("bordered-content",a),f.is("vertical-content",u),p,b],colSpan:u?v:v*2-1},_);default:return He("td",{style:d,class:[f.e("cell"),p],colSpan:v},[He("span",{class:[f.e("label"),m]},c),He("span",{class:[f.e("content"),b]},_)])}}});const $L=we({name:"ElDescriptionsRow",components:{[_0.name]:_0},props:{row:{type:Array}},setup(){return{descriptions:Ie(jd,{})}}}),jL={key:1};function UL(e,t,r,n,o,i){const s=Oe("el-descriptions-cell");return e.descriptions.direction==="vertical"?(K(),se(Ve,{key:0},[W("tr",null,[(K(!0),se(Ve,null,Wr(e.row,(a,l)=>(K(),Ce(s,{key:`tr1-${l}`,cell:a,tag:"th",type:"label"},null,8,["cell"]))),128))]),W("tr",null,[(K(!0),se(Ve,null,Wr(e.row,(a,l)=>(K(),Ce(s,{key:`tr2-${l}`,cell:a,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(K(),se("tr",jL,[(K(!0),se(Ve,null,Wr(e.row,(a,l)=>(K(),se(Ve,{key:`tr3-${l}`},[e.descriptions.border?(K(),se(Ve,{key:0},[G(s,{cell:a,tag:"td",type:"label"},null,8,["cell"]),G(s,{cell:a,tag:"td",type:"content"},null,8,["cell"])],64)):(K(),Ce(s,{key:1,cell:a,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}var y0=Ne($L,[["render",UL],["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const WL=we({name:"ElDescriptions",components:{[y0.name]:y0},props:{border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,default:"horizontal"},size:{type:String,validator:bc},title:{type:String,default:""},extra:{type:String,default:""}},setup(e,{slots:t}){ft(jd,e);const r=Cr(),n=Fe("descriptions"),o=J(()=>[n.b(),n.m(r.value)]),i=l=>{const u=Array.isArray(l)?l:[l],c=[];return u.forEach(_=>{Array.isArray(_.children)?c.push(...i(_.children)):c.push(_)}),c},s=(l,u,c,_=!1)=>(l.props||(l.props={}),u>c&&(l.props.span=c),_&&(l.props.span=u),l);return{descriptionKls:o,getRows:()=>{var l;const u=i((l=t.default)==null?void 0:l.call(t)).filter(g=>{var b;return((b=g==null?void 0:g.type)==null?void 0:b.name)==="ElDescriptionsItem"}),c=[];let _=[],v=e.column,p=0;return u.forEach((g,b)=>{var m;const d=((m=g.props)==null?void 0:m.span)||1;if(b<u.length-1&&(p+=d>v?v:d),b===u.length-1){const f=e.column-p%e.column;_.push(s(g,f,v,!0)),c.push(_);return}d<v?(v-=d,_.push(g)):(_.push(s(g,d,v)),c.push(_),v=e.column,_=[])}),c},ns:n}}});function zL(e,t,r,n,o,i){const s=Oe("el-descriptions-row");return K(),se("div",{class:ne(e.descriptionKls)},[e.title||e.extra||e.$slots.title||e.$slots.extra?(K(),se("div",{key:0,class:ne(e.ns.e("header"))},[W("div",{class:ne(e.ns.e("title"))},[Ee(e.$slots,"title",{},()=>[Te(me(e.title),1)])],2),W("div",{class:ne(e.ns.e("extra"))},[Ee(e.$slots,"extra",{},()=>[Te(me(e.extra),1)])],2)],2)):ke("v-if",!0),W("div",{class:ne(e.ns.e("body"))},[W("table",{class:ne([e.ns.e("table"),e.ns.is("bordered",e.border)])},[W("tbody",null,[(K(!0),se(Ve,null,Wr(e.getRows(),(a,l)=>(K(),Ce(s,{key:l,row:a},null,8,["row"]))),128))])],2)],2)],2)}var qL=Ne(WL,[["render",zL],["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/index.vue"]]),w_=we({name:"ElDescriptionsItem",props:{label:{type:String,default:""},span:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}});const VL=Ct(qL,{DescriptionsItem:w_}),KL=Vr(w_),GL=Ge({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:De([String,Array,Object])},zIndex:{type:De([String,Number])}}),YL={click:e=>e instanceof MouseEvent};var XL=we({name:"ElOverlay",props:GL,emits:YL,setup(e,{slots:t,emit:r}){const n=Fe("overlay"),o=l=>{r("click",l)},{onClick:i,onMousedown:s,onMouseup:a}=Rd(e.customMaskEvent?void 0:o);return()=>e.mask?G("div",{class:[n.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:s,onMouseup:a},[Ee(t,"default")],dl.STYLE|dl.CLASS|dl.PROPS,["onClick","onMouseup","onMousedown"]):He("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Ee(t,"default")])}});const S_=XL,x_=Ge({center:{type:Boolean,default:!1},closeIcon:{type:Ni,default:""},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),QL={close:()=>!0},JL=["aria-label"],ZL={name:"ElDialogContent"},eR=we(je(Se({},ZL),{props:x_,emits:QL,setup(e){const{Close:t}=r3,{dialogRef:r,headerRef:n,ns:o,style:i}=Ie(Tm);return(s,a)=>(K(),se("div",{ref_key:"dialogRef",ref:r,class:ne([N(o).b(),N(o).is("fullscreen",s.fullscreen),N(o).is("draggable",s.draggable),{[N(o).m("center")]:s.center},s.customClass]),"aria-modal":"true",role:"dialog","aria-label":s.title||"dialog",style:We(N(i)),onClick:a[1]||(a[1]=er(()=>{},["stop"]))},[W("div",{ref_key:"headerRef",ref:n,class:ne(N(o).e("header"))},[Ee(s.$slots,"title",{},()=>[W("span",{class:ne(N(o).e("title"))},me(s.title),3)])],2),W("div",{class:ne(N(o).e("body"))},[Ee(s.$slots,"default")],2),s.$slots.footer?(K(),se("div",{key:0,class:ne(N(o).e("footer"))},[Ee(s.$slots,"footer")],2)):ke("v-if",!0),s.showClose?(K(),se("button",{key:1,"aria-label":"close",class:ne(N(o).e("headerbtn")),type:"button",onClick:a[0]||(a[0]=l=>s.$emit("close"))},[G(N(mt),{class:ne(N(o).e("close"))},{default:Q(()=>[(K(),Ce(jt(s.closeIcon||N(t))))]),_:1},8,["class"])],2)):ke("v-if",!0)],14,JL))}}));var tR=Ne(eR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const rR=Ge(je(Se({},x_),{appendToBody:{type:Boolean,default:!1},beforeClose:{type:De(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,required:!0},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}})),nR={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Tt]:e=>Xn(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},iR=(e,t)=>{const n=ot().emit,{nextZIndex:o}=Gi();let i="";const s=X(!1),a=X(!1),l=X(!1),u=X(e.zIndex||o());let c,_;const v=J(()=>Mt(e.width)?`${e.width}px`:e.width),p=Ki("namespace",$m),g=J(()=>{const E={},k=`--${p.value}-dialog`;return e.fullscreen||(e.top&&(E[`${k}-margin-top`]=e.top),e.width&&(E[`${k}-width`]=v.value)),E});function b(){n("opened")}function m(){n("closed"),n(Tt,!1),e.destroyOnClose&&(l.value=!1)}function d(){n("close")}function f(){_==null||_(),c==null||c(),e.openDelay&&e.openDelay>0?{stop:c}=Nl(()=>w(),e.openDelay):w()}function h(){c==null||c(),_==null||_(),e.closeDelay&&e.closeDelay>0?{stop:_}=Nl(()=>S(),e.closeDelay):S()}function y(){function E(k){k||(a.value=!0,s.value=!1)}e.beforeClose?e.beforeClose(E):h()}function C(){e.closeOnClickModal&&y()}function w(){!dt||(s.value=!0)}function S(){s.value=!1}return e.lockScroll&&Mm(s),e.closeOnPressEscape&&Pm({handleClose:y},s),Dm(s),Be(()=>e.modelValue,E=>{E?(a.value=!1,f(),l.value=!0,n("open"),u.value=e.zIndex?u.value++:o(),Xe(()=>{t.value&&(t.value.scrollTop=0)})):s.value&&h()}),Be(()=>e.fullscreen,E=>{!t.value||(E?(i=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=i)}),ht(()=>{e.modelValue&&(s.value=!0,l.value=!0,f())}),{afterEnter:b,afterLeave:m,beforeLeave:d,handleClose:y,onModalClick:C,close:h,doClose:S,closed:a,style:g,rendered:l,visible:s,zIndex:u}},oR={name:"ElDialog"},sR=we(je(Se({},oR),{props:rR,emits:nR,setup(e,{expose:t}){const r=e,n=Fe("dialog"),o=X(),i=X(),{visible:s,style:a,rendered:l,zIndex:u,afterEnter:c,afterLeave:_,beforeLeave:v,handleClose:p,onModalClick:g}=iR(r,o);ft(Tm,{dialogRef:o,headerRef:i,ns:n,rendered:l,style:a});const b=Rd(g),m=J(()=>r.draggable&&!r.fullscreen);return Im(o,i,m),t({visible:s}),(d,f)=>(K(),Ce(lg,{to:"body",disabled:!d.appendToBody},[G(wr,{name:"dialog-fade",onAfterEnter:N(c),onAfterLeave:N(_),onBeforeLeave:N(v)},{default:Q(()=>[at(G(N(S_),{"custom-mask-event":"",mask:d.modal,"overlay-class":d.modalClass,"z-index":N(u)},{default:Q(()=>[W("div",{class:ne(`${N(n).namespace.value}-overlay-dialog`),onClick:f[0]||(f[0]=(...h)=>N(b).onClick&&N(b).onClick(...h)),onMousedown:f[1]||(f[1]=(...h)=>N(b).onMousedown&&N(b).onMousedown(...h)),onMouseup:f[2]||(f[2]=(...h)=>N(b).onMouseup&&N(b).onMouseup(...h))},[N(l)?(K(),Ce(tR,{key:0,"custom-class":d.customClass,center:d.center,"close-icon":d.closeIcon,draggable:N(m),fullscreen:d.fullscreen,"show-close":d.showClose,style:We(N(a)),title:d.title,onClose:N(p)},cd({title:Q(()=>[Ee(d.$slots,"title")]),default:Q(()=>[Ee(d.$slots,"default")]),_:2},[d.$slots.footer?{name:"footer",fn:Q(()=>[Ee(d.$slots,"footer")])}:void 0]),1032,["custom-class","center","close-icon","draggable","fullscreen","show-close","style","title","onClose"])):ke("v-if",!0)],34)]),_:3},8,["mask","overlay-class","z-index"]),[[Ut,N(s)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}}));var aR=Ne(sR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const Yi=Ct(aR),lR=Ge({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:De(String),default:"solid"}}),cR={name:"ElDivider"},uR=we(je(Se({},cR),{props:lR,setup(e){const t=e,r=Fe("divider"),n=J(()=>r.cssVar({"border-style":t.borderStyle}));return(o,i)=>(K(),se("div",{class:ne([N(r).b(),N(r).m(o.direction)]),style:We(N(n))},[o.$slots.default&&o.direction!=="vertical"?(K(),se("div",{key:0,class:ne([N(r).e("text"),N(r).is(o.contentPosition)])},[Ee(o.$slots,"default")],2)):ke("v-if",!0)],6))}}));var fR=Ne(uR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const dR=Ct(fR),E_=e=>{const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t},b0=(e,t)=>{for(const r of e)if(!hR(r,t))return r},hR=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},pR=e=>{const t=E_(e),r=b0(t,e),n=b0(t.reverse(),e);return[r,n]},vR=e=>e instanceof HTMLInputElement&&"select"in e,Ci=(e,t)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&vR(e)&&t&&e.select()}};function C0(e,t){const r=[...e],n=e.indexOf(t);return n!==-1&&r.splice(n,1),r}const gR=()=>{let e=[];return{push:n=>{const o=e[0];o&&n!==o&&o.pause(),e=C0(e,n),e.unshift(n)},remove:n=>{var o,i;e=C0(e,n),(i=(o=e[0])==null?void 0:o.resume)==null||i.call(o)}}},mR=(e,t=!1)=>{const r=document.activeElement;for(const n of e)if(Ci(n,t),document.activeElement!==r)return},w0=gR(),wu="focus-trap.focus-on-mount",Su="focus-trap.focus-on-unmount",S0={cancelable:!0,bubbles:!1},x0="mountOnFocus",E0="unmountOnFocus",A_=Symbol("elFocusTrap"),_R=we({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean},emits:[x0,E0],setup(e,{emit:t}){const r=X(),n=X(null);let o,i;const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},a=p=>{if(!e.loop&&!e.trapped||s.paused)return;const{key:g,altKey:b,ctrlKey:m,metaKey:d,currentTarget:f,shiftKey:h}=p,{loop:y}=e,C=g===Ze.tab&&!b&&!m&&!d,w=document.activeElement;if(C&&w){const S=f,[E,k]=pR(S);E&&k?!h&&w===k?(p.preventDefault(),y&&Ci(E,!0)):h&&w===E&&(p.preventDefault(),y&&Ci(k,!0)):w===S&&p.preventDefault()}};ft(A_,{focusTrapRef:n,onKeydown:a});const l=p=>{t(x0,p)},u=p=>t(E0,p),c=p=>{const g=N(n);if(s.paused||!g)return;const b=p.target;b&&g.contains(b)?i=b:Ci(i,!0)},_=p=>{const g=N(n);s.paused||!g||g.contains(p.relatedTarget)||Ci(i,!0)},v=()=>{document.removeEventListener("focusin",c),document.removeEventListener("focusout",_)};return ht(()=>{const p=N(n);if(p){w0.push(s);const g=document.activeElement;if(o=g,!p.contains(g)){const m=new Event(wu,S0);p.addEventListener(wu,l),p.dispatchEvent(m),m.defaultPrevented||Xe(()=>{mR(E_(p),!0),document.activeElement===g&&Ci(p)})}}Be(()=>e.trapped,g=>{g?(document.addEventListener("focusin",c),document.addEventListener("focusout",_)):v()},{immediate:!0})}),Yt(()=>{v();const p=N(n);if(p){p.removeEventListener(wu,l);const g=new Event(Su,S0);p.addEventListener(Su,u),p.dispatchEvent(g),g.defaultPrevented||Ci(o!=null?o:document.body,!0),p.removeEventListener(Su,l),w0.remove(s)}}),{focusTrapRef:r,forwardRef:n,onKeydown:a}}});function yR(e,t,r,n,o,i){return Ee(e.$slots,"default")}var bR=Ne(_R,[["render",yR],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const CR=we({inheritAttrs:!1});function wR(e,t,r,n,o,i){return Ee(e.$slots,"default")}var SR=Ne(CR,[["render",wR],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const xR=we({name:"ElCollectionItem",inheritAttrs:!1});function ER(e,t,r,n,o,i){return Ee(e.$slots,"default")}var AR=Ne(xR,[["render",ER],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const k_="data-el-collection-item",T_=e=>{const t=`El${e}Collection`,r=`${t}Item`,n=Symbol(t),o=Symbol(r),i=je(Se({},SR),{name:t,setup(){const a=X(null),l=new Map;ft(n,{itemMap:l,getItems:()=>{const c=N(a);if(!c)return[];const _=Array.from(c.querySelectorAll(`[${k_}]`));return[...l.values()].sort((g,b)=>_.indexOf(g.ref)-_.indexOf(b.ref))},collectionRef:a})}}),s=je(Se({},AR),{name:r,setup(a,{attrs:l}){const u=X(null),c=Ie(n,void 0);ft(o,{collectionItemRef:u}),ht(()=>{const _=N(u);_&&c.itemMap.set(_,Se({ref:_},l))}),Yt(()=>{const _=N(u);c.itemMap.delete(_)})}});return{COLLECTION_INJECTION_KEY:n,COLLECTION_ITEM_INJECTION_KEY:o,ElCollection:i,ElCollectionItem:s}},kR=Ge({style:{type:De([String,Array,Object])},currentTabId:{type:De(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:De(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:TR,ElCollectionItem:LR,COLLECTION_INJECTION_KEY:Ud,COLLECTION_ITEM_INJECTION_KEY:RR}=T_("RovingFocusGroup"),Wd=Symbol("elRovingFocusGroup"),L_=Symbol("elRovingFocusGroupItem"),BR={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},OR=(e,t)=>{if(t!=="rtl")return e;switch(e){case Ze.right:return Ze.left;case Ze.left:return Ze.right;default:return e}},IR=(e,t,r)=>{const n=OR(e.key,r);if(!(t==="vertical"&&[Ze.left,Ze.right].includes(n))&&!(t==="horizontal"&&[Ze.up,Ze.down].includes(n)))return BR[n]},MR=(e,t)=>e.map((r,n)=>e[(n+t)%e.length]),zd=e=>{const{activeElement:t}=document;for(const r of e)if(r===t||(r.focus(),t!==document.activeElement))return},A0="currentTabIdChange",xu="rovingFocusGroup.entryFocus",PR={bubbles:!1,cancelable:!0},DR=we({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:kR,emits:[A0,"entryFocus"],setup(e,{emit:t}){var r;const n=X((r=e.currentTabId||e.defaultCurrentTabId)!=null?r:null),o=X(!1),i=X(!1),s=X(null),{getItems:a}=Ie(Ud,void 0),l=J(()=>[{outline:"none"},e.style]),u=b=>{t(A0,b)},c=()=>{o.value=!0},_=xt(b=>{var m;(m=e.onMousedown)==null||m.call(e,b)},()=>{i.value=!0}),v=xt(b=>{var m;(m=e.onFocus)==null||m.call(e,b)},b=>{const m=!N(i),{target:d,currentTarget:f}=b;if(d===f&&m&&!N(o)){const h=new Event(xu,PR);if(f==null||f.dispatchEvent(h),!h.defaultPrevented){const y=a().filter(k=>k.focusable),C=y.find(k=>k.active),w=y.find(k=>k.id===N(n)),E=[C,w,...y].filter(Boolean).map(k=>k.ref);zd(E)}}i.value=!1}),p=xt(b=>{var m;(m=e.onBlur)==null||m.call(e,b)},()=>{o.value=!1}),g=(...b)=>{t("entryFocus",...b)};ft(Wd,{currentTabbedId:Js(n),loop:Gt(e,"loop"),tabIndex:J(()=>N(o)?-1:0),rovingFocusGroupRef:s,rovingFocusGroupRootStyle:l,orientation:Gt(e,"orientation"),dir:Gt(e,"dir"),onItemFocus:u,onItemShiftTab:c,onBlur:p,onFocus:v,onMousedown:_}),Be(()=>e.currentTabId,b=>{n.value=b!=null?b:null}),ht(()=>{const b=N(s);Di(b,xu,g)}),Yt(()=>{const b=N(s);Hi(b,xu,g)})}});function HR(e,t,r,n,o,i){return Ee(e.$slots,"default")}var FR=Ne(DR,[["render",HR],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const NR=we({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:TR,ElRovingFocusGroupImpl:FR}});function $R(e,t,r,n,o,i){const s=Oe("el-roving-focus-group-impl"),a=Oe("el-focus-group-collection");return K(),Ce(a,null,{default:Q(()=>[G(s,Pu(Bl(e.$attrs)),{default:Q(()=>[Ee(e.$slots,"default")]),_:3},16)]),_:3})}var jR=Ne(NR,[["render",$R],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const UR=we({components:{ElRovingFocusCollectionItem:LR},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:r,loop:n,onItemFocus:o,onItemShiftTab:i}=Ie(Wd,void 0),{getItems:s}=Ie(Ud,void 0),a=xc(),l=X(null),u=xt(p=>{t("mousedown",p)},p=>{e.focusable?o(N(a)):p.preventDefault()}),c=xt(p=>{t("focus",p)},()=>{o(N(a))}),_=xt(p=>{t("keydown",p)},p=>{const{key:g,shiftKey:b,target:m,currentTarget:d}=p;if(g===Ze.tab&&b){i();return}if(m!==d)return;const f=IR(p);if(f){p.preventDefault();let y=s().filter(C=>C.focusable).map(C=>C.ref);switch(f){case"last":{y.reverse();break}case"prev":case"next":{f==="prev"&&y.reverse();const C=y.indexOf(d);y=n.value?MR(y,C+1):y.slice(C+1);break}}Xe(()=>{zd(y)})}}),v=J(()=>r.value===N(a));return ft(L_,{rovingFocusGroupItemRef:l,tabIndex:J(()=>N(v)?0:-1),handleMousedown:u,handleFocus:c,handleKeydown:_}),{id:a,handleKeydown:_,handleFocus:c,handleMousedown:u}}});function WR(e,t,r,n,o,i){const s=Oe("el-roving-focus-collection-item");return K(),Ce(s,{id:e.id,focusable:e.focusable,active:e.active},{default:Q(()=>[Ee(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var zR=Ne(UR,[["render",WR],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const ml=Ge({trigger:Ys.trigger,effect:je(Se({},Ar.effect),{default:"light"}),type:{type:De(String)},placement:{type:De(String),default:"bottom"},popperOptions:{type:De(Object),default:()=>({})},size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:De([Number,String]),default:0},maxHeight:{type:De([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},buttonProps:{type:De(Object)}}),R_=Ge({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Ni}}),qR=Ge({onKeydown:{type:De(Function)}}),VR=[Ze.down,Ze.pageDown,Ze.home],B_=[Ze.up,Ze.pageUp,Ze.end],KR=[...VR,...B_],{ElCollection:GR,ElCollectionItem:YR,COLLECTION_INJECTION_KEY:XR,COLLECTION_ITEM_INJECTION_KEY:QR}=T_("Dropdown"),qd=Symbol("elDropdown"),{ButtonGroup:JR}=Ir,ZR=we({name:"ElDropdown",components:{ElButton:Ir,ElFocusTrap:bR,ElButtonGroup:JR,ElScrollbar:Ac,ElDropdownCollection:GR,ElTooltip:Tc,ElRovingFocusGroup:jR,ElIcon:mt,ArrowDown:_m},props:ml,emits:["visible-change","click","command"],setup(e,{emit:t}){const r=ot(),n=Fe("dropdown"),o=X(),i=X(),s=X(null),a=X(null),l=X(null),u=X(null),c=X(!1),_=J(()=>({maxHeight:on(e.maxHeight)})),v=J(()=>[n.m(m.value)]);function p(){g()}function g(){var E;(E=s.value)==null||E.onClose()}function b(){var E;(E=s.value)==null||E.onOpen()}const m=Cr();function d(...E){t("command",...E)}function f(){}function h(){const E=N(a);E==null||E.focus(),u.value=null}function y(E){u.value=E}function C(E){c.value||(E.preventDefault(),E.stopImmediatePropagation())}return ft(qd,{contentRef:a,isUsingKeyboard:c,onItemEnter:f,onItemLeave:h}),ft("elDropdown",{instance:r,dropdownSize:m,handleClick:p,commandHandler:d,trigger:Gt(e,"trigger"),hideOnClick:Gt(e,"hideOnClick")}),{ns:n,scrollbar:l,wrapStyle:_,dropdownTriggerKls:v,dropdownSize:m,currentTabId:u,handleCurrentTabIdChange:y,handlerMainButtonClick:E=>{t("click",E)},handleEntryFocus:C,handleClose:g,handleOpen:b,onMountOnFocus:E=>{var k,x;E.preventDefault(),(x=(k=a.value)==null?void 0:k.focus)==null||x.call(k,{preventScroll:!0})},popperRef:s,triggeringElementRef:o,referenceElementRef:i}}});function eB(e,t,r,n,o,i){var s;const a=Oe("el-dropdown-collection"),l=Oe("el-roving-focus-group"),u=Oe("el-focus-trap"),c=Oe("el-scrollbar"),_=Oe("el-tooltip"),v=Oe("el-button"),p=Oe("arrow-down"),g=Oe("el-icon"),b=Oe("el-button-group");return K(),se("div",{class:ne([e.ns.b(),e.ns.is("disabled",e.disabled)])},[G(_,{ref:"popperRef",effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(s=e.referenceElementRef)==null?void 0:s.$el,trigger:e.trigger,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:"",pure:"",persistent:"",onShow:t[0]||(t[0]=m=>e.$emit("visible-change",!0)),onHide:t[1]||(t[1]=m=>e.$emit("visible-change",!1))},cd({content:Q(()=>[G(c,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:Q(()=>[G(u,{trapped:"",onMountOnFocus:e.onMountOnFocus},{default:Q(()=>[G(l,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:Q(()=>[G(a,null,{default:Q(()=>[Ee(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["onMountOnFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:Q(()=>[W("div",{class:ne(e.dropdownTriggerKls)},[Ee(e.$slots,"default")],2)])}]),1032,["effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","show-after","virtual-ref","virtual-triggering","disabled","transition"]),e.splitButton?(K(),Ce(b,{key:0},{default:Q(()=>[G(v,or({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,onClick:e.handlerMainButtonClick}),{default:Q(()=>[Ee(e.$slots,"default")]),_:3},16,["size","type","disabled","onClick"]),G(v,or({ref:"triggeringElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled}),{default:Q(()=>[G(g,{class:ne(e.ns.e("icon"))},{default:Q(()=>[G(p)]),_:1},8,["class"])]),_:1},16,["size","type","class","disabled"])]),_:3})):ke("v-if",!0)],2)}var tB=Ne(ZR,[["render",eB],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const rB=we({name:"DropdownItemImpl",components:{ElIcon:mt},props:R_,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const r=Fe("dropdown"),{collectionItemRef:n}=Ie(QR,void 0),{collectionItemRef:o}=Ie(RR,void 0),{rovingFocusGroupItemRef:i,tabIndex:s,handleFocus:a,handleKeydown:l,handleMousedown:u}=Ie(L_,void 0),c=Sm(n,o,i),_=xt(v=>{const{code:p}=v;if(p===Ze.enter||p===Ze.space)return v.preventDefault(),v.stopImmediatePropagation(),t("clickimpl",v),!0},l);return{ns:r,itemRef:c,dataset:{[k_]:""},tabIndex:s,handleFocus:a,handleKeydown:_,handleMousedown:u}}}),nB=["aria-disabled","tabindex"];function iB(e,t,r,n,o,i){const s=Oe("el-icon");return K(),se(Ve,null,[e.divided?(K(),se("li",or({key:0,class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):ke("v-if",!0),W("li",or({ref:e.itemRef},Se(Se({},e.dataset),e.$attrs),{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:"menuitem",onClick:t[0]||(t[0]=a=>e.$emit("clickimpl",a)),onFocus:t[1]||(t[1]=(...a)=>e.handleFocus&&e.handleFocus(...a)),onKeydown:t[2]||(t[2]=(...a)=>e.handleKeydown&&e.handleKeydown(...a)),onMousedown:t[3]||(t[3]=(...a)=>e.handleMousedown&&e.handleMousedown(...a)),onPointermove:t[4]||(t[4]=a=>e.$emit("pointermove",a)),onPointerleave:t[5]||(t[5]=a=>e.$emit("pointerleave",a))}),[e.icon?(K(),Ce(s,{key:0},{default:Q(()=>[(K(),Ce(jt(e.icon)))]),_:1})):ke("v-if",!0),Ee(e.$slots,"default")],16,nB)],64)}var oB=Ne(rB,[["render",iB],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const O_=()=>{const e=Ie("elDropdown",{}),t=J(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},sB=we({name:"ElDropdownItem",components:{ElDropdownCollectionItem:YR,ElRovingFocusItem:zR,ElDropdownItemImpl:oB},inheritAttrs:!1,props:R_,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:r}){const{elDropdown:n}=O_(),o=ot(),i=X(null),s=J(()=>{var p,g;return(g=(p=N(i))==null?void 0:p.textContent)!=null?g:""}),{onItemEnter:a,onItemLeave:l}=Ie(qd,void 0),u=xt(p=>(t("pointermove",p),p.defaultPrevented),Np(p=>{var g;e.disabled?l(p):(a(p),p.defaultPrevented||(g=p.currentTarget)==null||g.focus())})),c=xt(p=>(t("pointerleave",p),p.defaultPrevented),Np(p=>{l(p)})),_=xt(p=>(t("click",p),p.defaultPrevented),p=>{var g,b,m;if(e.disabled){p.stopImmediatePropagation();return}(g=n==null?void 0:n.hideOnClick)!=null&&g.value&&((b=n.handleClick)==null||b.call(n)),(m=n.commandHandler)==null||m.call(n,e.command,o,p)}),v=J(()=>Se(Se({},e),r));return{handleClick:_,handlePointerMove:u,handlePointerLeave:c,textContent:s,propsAndAttrs:v}}});function aB(e,t,r,n,o,i){var s;const a=Oe("el-dropdown-item-impl"),l=Oe("el-roving-focus-item"),u=Oe("el-dropdown-collection-item");return K(),Ce(u,{disabled:e.disabled,"text-value":(s=e.textValue)!=null?s:e.textContent},{default:Q(()=>[G(l,{focusable:!e.disabled},{default:Q(()=>[G(a,or(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:Q(()=>[Ee(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var I_=Ne(sB,[["render",aB],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const lB=we({name:"ElDropdownMenu",props:qR,setup(e){const t=Fe("dropdown"),{_elDropdownSize:r}=O_(),n=r.value,{focusTrapRef:o,onKeydown:i}=Ie(A_,void 0),{contentRef:s}=Ie(qd,void 0),{collectionRef:a,getItems:l}=Ie(XR,void 0),{rovingFocusGroupRef:u,rovingFocusGroupRootStyle:c,tabIndex:_,onBlur:v,onFocus:p,onMousedown:g}=Ie(Wd,void 0),{collectionRef:b}=Ie(Ud,void 0),m=J(()=>[t.b("menu"),t.bm("menu",n==null?void 0:n.value)]),d=Sm(s,a,o,u,b),f=xt(y=>{var C;(C=e.onKeydown)==null||C.call(e,y)},y=>{const{currentTarget:C,code:w,target:S}=y;if(C.contains(S),Ze.tab===w&&y.stopImmediatePropagation(),y.preventDefault(),S!==N(s)||!KR.includes(w))return;const k=l().filter(x=>!x.disabled).map(x=>x.ref);B_.includes(w)&&k.reverse(),zd(k)});return{size:n,rovingFocusGroupRootStyle:c,tabIndex:_,dropdownKls:m,dropdownListWrapperRef:d,handleKeydown:y=>{f(y),i(y)},onBlur:v,onFocus:p,onMousedown:g}}});function cB(e,t,r,n,o,i){return K(),se("ul",{ref:e.dropdownListWrapperRef,class:ne(e.dropdownKls),style:We(e.rovingFocusGroupRootStyle),tabindex:-1,role:"menu",onBlur:t[0]||(t[0]=(...s)=>e.onBlur&&e.onBlur(...s)),onFocus:t[1]||(t[1]=(...s)=>e.onFocus&&e.onFocus(...s)),onKeydown:t[2]||(t[2]=(...s)=>e.handleKeydown&&e.handleKeydown(...s)),onMousedown:t[3]||(t[3]=(...s)=>e.onMousedown&&e.onMousedown(...s))},[Ee(e.$slots,"default")],38)}var M_=Ne(lB,[["render",cB],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const uB=Ct(tB,{DropdownItem:I_,DropdownMenu:M_}),fB=Vr(I_),dB=Vr(M_),hB=Ge({model:Object,rules:{type:De(Object)},labelPosition:String,labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},size:{type:String,values:Yo},disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean}),pB={validate:(e,t,r)=>(Pe(e)||ze(e))&&Xn(t)&&ze(r)};function vB(){const e=X([]),t=J(()=>{if(!e.value.length)return"0";const i=Math.max(...e.value);return i?`${i}px`:""});function r(i){return e.value.indexOf(i)}function n(i,s){if(i&&s){const a=r(s);e.value.splice(a,1,i)}else i&&e.value.push(i)}function o(i){const s=r(i);s>-1&&e.value.splice(s,1)}return{autoLabelWidth:t,registerLabelWidth:n,deregisterLabelWidth:o}}const Ya=(e,t)=>{const r=tf(t);return r.length>0?e.filter(n=>n.prop&&r.includes(n.prop)):e},gB={name:"ElForm"},mB=we(je(Se({},gB),{props:hB,emits:pB,setup(e,{expose:t,emit:r}){const n=e,o=[],i=Cr(),s=Fe("form"),a=J(()=>{const{labelPosition:f,inline:h}=n;return[s.b(),s.m(i.value||"default"),{[s.m(`label-${f}`)]:f,[s.m("inline")]:h}]}),l=f=>{o.push(f)},u=f=>{f.prop&&o.splice(o.indexOf(f),1)},c=(f=[])=>{!n.model||Ya(o,f).forEach(h=>h.resetField())},_=(f=[])=>{Ya(o,f).forEach(h=>h.clearValidate())},v=J(()=>!!n.model),p=f=>{if(o.length===0)return[];const h=Ya(o,f);return h.length?h:[]},g=async f=>m(void 0,f),b=async(f=[])=>{if(!v.value)return!1;const h=p(f);if(h.length===0)return!0;let y={};for(const C of h)try{await C.validate("")}catch(w){y=Se(Se({},y),w)}return Object.keys(y).length===0?!0:Promise.reject(y)},m=async(f=[],h)=>{const y=!Ue(h);try{const C=await b(f);return C===!0&&(h==null||h(C)),C}catch(C){const w=C;return n.scrollToError&&d(Object.keys(w)[0]),h==null||h(!1,w),y&&Promise.reject(w)}},d=f=>{var h;const y=Ya(o,f)[0];y&&((h=y.$el)==null||h.scrollIntoView())};return Be(()=>n.rules,()=>{n.validateOnRuleChange&&g()},{deep:!0}),ft(Vi,sr(Se(je(Se({},Ui(n)),{emit:r,resetFields:c,clearValidate:_,validateField:m,addField:l,removeField:u}),vB()))),t({validate:g,validateField:m,resetFields:c,clearValidate:_,scrollToField:d}),(f,h)=>(K(),se("form",{class:ne(N(a))},[Ee(f.$slots,"default")],2))}}));var _B=Ne(mB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function Ti(){return Ti=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ti.apply(this,arguments)}function yB(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xs(e,t)}function Ef(e){return Ef=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ef(e)}function Xs(e,t){return Xs=Object.setPrototypeOf||function(n,o){return n.__proto__=o,n},Xs(e,t)}function bB(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _l(e,t,r){return bB()?_l=Reflect.construct:_l=function(o,i,s){var a=[null];a.push.apply(a,i);var l=Function.bind.apply(o,a),u=new l;return s&&Xs(u,s.prototype),u},_l.apply(null,arguments)}function CB(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Af(e){var t=typeof Map=="function"?new Map:void 0;return Af=function(n){if(n===null||!CB(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return _l(n,arguments,Ef(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Xs(o,n)},Af(e)}var wB=/%[sdj%]/g,SB=function(){};function kf(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function gr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=0,i=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var s=e.replace(wB,function(a){if(a==="%%")return"%";if(o>=i)return a;switch(a){case"%s":return String(r[o++]);case"%d":return Number(r[o++]);case"%j":try{return JSON.stringify(r[o++])}catch{return"[Circular]"}break;default:return a}});return s}return e}function xB(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Lt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||xB(t)&&typeof e=="string"&&!e)}function EB(e,t,r){var n=[],o=0,i=e.length;function s(a){n.push.apply(n,a||[]),o++,o===i&&r(n)}e.forEach(function(a){t(a,s)})}function k0(e,t,r){var n=0,o=e.length;function i(s){if(s&&s.length){r(s);return}var a=n;n=n+1,a<o?t(e[a],i):r([])}i([])}function AB(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,e[r]||[])}),t}var T0=function(e){yB(t,e);function t(r,n){var o;return o=e.call(this,"Async Validation Error")||this,o.errors=r,o.fields=n,o}return t}(Af(Error));function kB(e,t,r,n,o){if(t.first){var i=new Promise(function(v,p){var g=function(d){return n(d),d.length?p(new T0(d,kf(d))):v(o)},b=AB(e);k0(b,r,g)});return i.catch(function(v){return v}),i}var s=t.firstFields===!0?Object.keys(e):t.firstFields||[],a=Object.keys(e),l=a.length,u=0,c=[],_=new Promise(function(v,p){var g=function(m){if(c.push.apply(c,m),u++,u===l)return n(c),c.length?p(new T0(c,kf(c))):v(o)};a.length||(n(c),v(o)),a.forEach(function(b){var m=e[b];s.indexOf(b)!==-1?k0(m,r,g):EB(m,r,g)})});return _.catch(function(v){return v}),_}function TB(e){return!!(e&&e.message!==void 0)}function LB(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function L0(e,t){return function(r){var n;return e.fullFields?n=LB(t,e.fullFields):n=t[r.field||e.fullField],TB(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function R0(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];typeof n=="object"&&typeof e[r]=="object"?e[r]=Ti({},e[r],n):e[r]=n}}return e}var P_=function(t,r,n,o,i,s){t.required&&(!n.hasOwnProperty(t.field)||Lt(r,s||t.type))&&o.push(gr(i.messages.required,t.fullField))},RB=function(t,r,n,o,i){(/^\s+$/.test(r)||r==="")&&o.push(gr(i.messages.whitespace,t.fullField))},Eu={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ps={integer:function(t){return ps.number(t)&&parseInt(t,10)===t},float:function(t){return ps.number(t)&&!ps.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!ps.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Eu.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Eu.url)},hex:function(t){return typeof t=="string"&&!!t.match(Eu.hex)}},BB=function(t,r,n,o,i){if(t.required&&r===void 0){P_(t,r,n,o,i);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=t.type;s.indexOf(a)>-1?ps[a](r)||o.push(gr(i.messages.types[a],t.fullField,t.type)):a&&typeof r!==t.type&&o.push(gr(i.messages.types[a],t.fullField,t.type))},OB=function(t,r,n,o,i){var s=typeof t.len=="number",a=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=r,_=null,v=typeof r=="number",p=typeof r=="string",g=Array.isArray(r);if(v?_="number":p?_="string":g&&(_="array"),!_)return!1;g&&(c=r.length),p&&(c=r.replace(u,"_").length),s?c!==t.len&&o.push(gr(i.messages[_].len,t.fullField,t.len)):a&&!l&&c<t.min?o.push(gr(i.messages[_].min,t.fullField,t.min)):l&&!a&&c>t.max?o.push(gr(i.messages[_].max,t.fullField,t.max)):a&&l&&(c<t.min||c>t.max)&&o.push(gr(i.messages[_].range,t.fullField,t.min,t.max))},fo="enum",IB=function(t,r,n,o,i){t[fo]=Array.isArray(t[fo])?t[fo]:[],t[fo].indexOf(r)===-1&&o.push(gr(i.messages[fo],t.fullField,t[fo].join(", ")))},MB=function(t,r,n,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||o.push(gr(i.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var s=new RegExp(t.pattern);s.test(r)||o.push(gr(i.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},et={required:P_,whitespace:RB,type:BB,range:OB,enum:IB,pattern:MB},PB=function(t,r,n,o,i){var s=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(Lt(r,"string")&&!t.required)return n();et.required(t,r,o,s,i,"string"),Lt(r,"string")||(et.type(t,r,o,s,i),et.range(t,r,o,s,i),et.pattern(t,r,o,s,i),t.whitespace===!0&&et.whitespace(t,r,o,s,i))}n(s)},DB=function(t,r,n,o,i){var s=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(Lt(r)&&!t.required)return n();et.required(t,r,o,s,i),r!==void 0&&et.type(t,r,o,s,i)}n(s)},HB=function(t,r,n,o,i){var s=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(r===""&&(r=void 0),Lt(r)&&!t.required)return n();et.required(t,r,o,s,i),r!==void 0&&(et.type(t,r,o,s,i),et.range(t,r,o,s,i))}n(s)},FB=function(t,r,n,o,i){var s=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(Lt(r)&&!t.required)return n();et.required(t,r,o,s,i),r!==void 0&&et.type(t,r,o,s,i)}n(s)},NB=function(t,r,n,o,i){var s=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(Lt(r)&&!t.required)return n();et.required(t,r,o,s,i),Lt(r)||et.type(t,r,o,s,i)}n(s)},$B=function(t,r,n,o,i){var s=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(Lt(r)&&!t.required)return n();et.required(t,r,o,s,i),r!==void 0&&(et.type(t,r,o,s,i),et.range(t,r,o,s,i))}n(s)},jB=function(t,r,n,o,i){var s=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(Lt(r)&&!t.required)return n();et.required(t,r,o,s,i),r!==void 0&&(et.type(t,r,o,s,i),et.range(t,r,o,s,i))}n(s)},UB=function(t,r,n,o,i){var s=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(r==null&&!t.required)return n();et.required(t,r,o,s,i,"array"),r!=null&&(et.type(t,r,o,s,i),et.range(t,r,o,s,i))}n(s)},WB=function(t,r,n,o,i){var s=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(Lt(r)&&!t.required)return n();et.required(t,r,o,s,i),r!==void 0&&et.type(t,r,o,s,i)}n(s)},zB="enum",qB=function(t,r,n,o,i){var s=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(Lt(r)&&!t.required)return n();et.required(t,r,o,s,i),r!==void 0&&et[zB](t,r,o,s,i)}n(s)},VB=function(t,r,n,o,i){var s=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(Lt(r,"string")&&!t.required)return n();et.required(t,r,o,s,i),Lt(r,"string")||et.pattern(t,r,o,s,i)}n(s)},KB=function(t,r,n,o,i){var s=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(Lt(r,"date")&&!t.required)return n();if(et.required(t,r,o,s,i),!Lt(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),et.type(t,l,o,s,i),l&&et.range(t,l.getTime(),o,s,i)}}n(s)},GB=function(t,r,n,o,i){var s=[],a=Array.isArray(r)?"array":typeof r;et.required(t,r,o,s,i,a),n(s)},Au=function(t,r,n,o,i){var s=t.type,a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Lt(r,s)&&!t.required)return n();et.required(t,r,o,a,i,s),Lt(r,s)||et.type(t,r,o,a,i)}n(a)},YB=function(t,r,n,o,i){var s=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(Lt(r)&&!t.required)return n();et.required(t,r,o,s,i)}n(s)},Ls={string:PB,method:DB,number:HB,boolean:FB,regexp:NB,integer:$B,float:jB,array:UB,object:WB,enum:qB,pattern:VB,date:KB,url:Au,hex:Au,email:Au,required:GB,any:YB};function Tf(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Lf=Tf(),ia=function(){function e(r){this.rules=null,this._messages=Lf,this.define(r)}var t=e.prototype;return t.define=function(n){var o=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(typeof n!="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var s=n[i];o.rules[i]=Array.isArray(s)?s:[s]})},t.messages=function(n){return n&&(this._messages=R0(Tf(),n)),this._messages},t.validate=function(n,o,i){var s=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var a=n,l=o,u=i;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,a),Promise.resolve(a);function c(b){var m=[],d={};function f(y){if(Array.isArray(y)){var C;m=(C=m).concat.apply(C,y)}else m.push(y)}for(var h=0;h<b.length;h++)f(b[h]);m.length?(d=kf(m),u(m,d)):u(null,a)}if(l.messages){var _=this.messages();_===Lf&&(_=Tf()),R0(_,l.messages),l.messages=_}else l.messages=this.messages();var v={},p=l.keys||Object.keys(this.rules);p.forEach(function(b){var m=s.rules[b],d=a[b];m.forEach(function(f){var h=f;typeof h.transform=="function"&&(a===n&&(a=Ti({},a)),d=a[b]=h.transform(d)),typeof h=="function"?h={validator:h}:h=Ti({},h),h.validator=s.getValidationMethod(h),h.validator&&(h.field=b,h.fullField=h.fullField||b,h.type=s.getType(h),v[b]=v[b]||[],v[b].push({rule:h,value:d,source:a,field:b}))})});var g={};return kB(v,l,function(b,m){var d=b.rule,f=(d.type==="object"||d.type==="array")&&(typeof d.fields=="object"||typeof d.defaultField=="object");f=f&&(d.required||!d.required&&b.value),d.field=b.field;function h(w,S){return Ti({},S,{fullField:d.fullField+"."+w,fullFields:d.fullFields?[].concat(d.fullFields,[w]):[w]})}function y(w){w===void 0&&(w=[]);var S=Array.isArray(w)?w:[w];!l.suppressWarning&&S.length&&e.warning("async-validator:",S),S.length&&d.message!==void 0&&(S=[].concat(d.message));var E=S.map(L0(d,a));if(l.first&&E.length)return g[d.field]=1,m(E);if(!f)m(E);else{if(d.required&&!b.value)return d.message!==void 0?E=[].concat(d.message).map(L0(d,a)):l.error&&(E=[l.error(d,gr(l.messages.required,d.field))]),m(E);var k={};d.defaultField&&Object.keys(b.value).map(function(L){k[L]=d.defaultField}),k=Ti({},k,b.rule.fields);var x={};Object.keys(k).forEach(function(L){var T=k[L],H=Array.isArray(T)?T:[T];x[L]=H.map(h.bind(null,L))});var A=new e(x);A.messages(l.messages),b.rule.options&&(b.rule.options.messages=l.messages,b.rule.options.error=l.error),A.validate(b.value,b.rule.options||l,function(L){var T=[];E&&E.length&&T.push.apply(T,E),L&&L.length&&T.push.apply(T,L),m(T.length?T:null)})}}var C;if(d.asyncValidator)C=d.asyncValidator(d,b.value,y,b.source,l);else if(d.validator){try{C=d.validator(d,b.value,y,b.source,l)}catch(w){console.error==null||console.error(w),setTimeout(function(){throw w},0),y(w.message)}C===!0?y():C===!1?y(typeof d.message=="function"?d.message(d.fullField||d.field):d.message||(d.fullField||d.field)+" fails"):C instanceof Array?y(C):C instanceof Error&&y(C.message)}C&&C.then&&C.then(function(){return y()},function(w){return y(w)})},function(b){c(b)},a)},t.getType=function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Ls.hasOwnProperty(n.type))throw new Error(gr("Unknown rule type %s",n.type));return n.type||"string"},t.getValidationMethod=function(n){if(typeof n.validator=="function")return n.validator;var o=Object.keys(n),i=o.indexOf("message");return i!==-1&&o.splice(i,1),o.length===1&&o[0]==="required"?Ls.required:Ls[this.getType(n)]||void 0},e}();ia.register=function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Ls[t]=r};ia.warning=SB;ia.messages=Lf;ia.validators=Ls;const XB=["","error","validating","success"],QB=Ge({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:De([String,Array])},required:{type:Boolean,default:void 0},rules:{type:De([Object,Array])},error:String,validateStatus:{type:String,values:XB},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:Yo}}),B0="ElLabelWrap";var JB=we({name:B0,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const r=Ie(Vi,void 0);Ie(Jn)||qi(B0,"usage: <el-form-item><label-wrap /></el-form-item>");const o=Fe("form"),i=X(),s=X(0),a=()=>{var c;if((c=i.value)!=null&&c.firstElementChild){const _=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(_))}else return 0},l=(c="update")=>{Xe(()=>{t.default&&e.isAutoWidth&&(c==="update"?s.value=a():c==="remove"&&(r==null||r.deregisterLabelWidth(s.value)))})},u=()=>l("update");return ht(()=>{u()}),Yt(()=>{l("remove")}),ei(()=>u()),Be(s,(c,_)=>{e.updateAll&&(r==null||r.registerLabelWidth(c,_))}),ta(J(()=>{var c,_;return(_=(c=i.value)==null?void 0:c.firstElementChild)!=null?_:null}),u),()=>{var c,_;if(!t)return null;const{isAutoWidth:v}=e;if(v){const p=r==null?void 0:r.autoLabelWidth,g={};if(p&&p!=="auto"){const b=Math.max(0,Number.parseInt(p,10)-s.value),m=r.labelPosition==="left"?"marginRight":"marginLeft";b&&(g[m]=`${b}px`)}return G("div",{ref:i,class:[o.be("item","label-wrap")],style:g},[(c=t.default)==null?void 0:c.call(t)])}else return G(Ve,{ref:i},[(_=t.default)==null?void 0:_.call(t)])}}});const ZB=["role","aria-labelledby"],eO={name:"ElFormItem"},tO=we(je(Se({},eO),{props:QB,setup(e,{expose:t}){const r=e,n=ea(),o=Ie(Vi,void 0),i=Ie(Jn,void 0),s=Cr(void 0,{formItem:!1}),a=Fe("form-item"),l=xc().value,u=X([]),c=X(""),_=uA(c,100),v=X(""),p=X();let g,b=!1;const m=J(()=>{if((o==null?void 0:o.labelPosition)==="top")return{};const O=on(r.labelWidth||(o==null?void 0:o.labelWidth)||"");return O?{width:O}:{}}),d=J(()=>{if((o==null?void 0:o.labelPosition)==="top"||(o==null?void 0:o.inline))return{};if(!r.label&&!r.labelWidth&&k)return{};const O=on(r.labelWidth||(o==null?void 0:o.labelWidth)||"");return!r.label&&!n.label?{marginLeft:O}:{}}),f=J(()=>[a.b(),a.m(s.value),a.is("error",c.value==="error"),a.is("validating",c.value==="validating"),a.is("success",c.value==="success"),a.is("required",H.value||r.required),a.is("no-asterisk",o==null?void 0:o.hideRequiredAsterisk),{[a.m("feedback")]:o==null?void 0:o.statusIcon}]),h=J(()=>Xn(r.inlineMessage)?r.inlineMessage:(o==null?void 0:o.inlineMessage)||!1),y=J(()=>[a.e("error"),{[a.em("error","inline")]:h.value}]),C=J(()=>r.prop?ze(r.prop)?r.prop:r.prop.join("."):""),w=J(()=>!!(r.label||n.label)),S=J(()=>r.for||u.value.length===1?u.value[0]:void 0),E=J(()=>!S.value&&w.value),k=!!i,x=J(()=>{const O=o==null?void 0:o.model;if(!(!O||!r.prop))return fl(O,r.prop).value}),A=J(()=>{const O=r.rules?tf(r.rules):[],D=o==null?void 0:o.rules;if(D&&r.prop){const F=fl(D,r.prop).value;F&&O.push(...tf(F))}return r.required!==void 0&&O.push({required:!!r.required}),O}),L=J(()=>A.value.length>0),T=O=>A.value.filter(F=>!F.trigger||!O?!0:Array.isArray(F.trigger)?F.trigger.includes(O):F.trigger===O).map(fe=>{var ge=fe,{trigger:F}=ge,ue=Da(ge,["trigger"]);return ue}),H=J(()=>A.value.some(O=>O.required===!0)),P=J(()=>{var O;return _.value==="error"&&r.showMessage&&((O=o==null?void 0:o.showMessage)!=null?O:!0)}),R=J(()=>`${r.label||""}${(o==null?void 0:o.labelSuffix)||""}`),I=O=>{c.value=O},M=O=>{var D,F;const{errors:ue,fields:fe}=O;(!ue||!fe)&&console.error(O),I("error"),v.value=ue?(F=(D=ue==null?void 0:ue[0])==null?void 0:D.message)!=null?F:`${r.prop} is required`:"",o==null||o.emit("validate",r.prop,!1,v.value)},$=()=>{I("success"),o==null||o.emit("validate",r.prop,!0,"")},V=async O=>{const D=C.value;return new ia({[D]:O}).validate({[D]:x.value},{firstFields:!0}).then(()=>($(),!0)).catch(ue=>(M(ue),Promise.reject(ue)))},U=async(O,D)=>{if(b)return b=!1,!1;const F=Ue(D);if(!L.value)return D==null||D(!1),!1;const ue=T(O);return ue.length===0?(D==null||D(!0),!0):(I("validating"),V(ue).then(()=>(D==null||D(!0),!0)).catch(fe=>{const{fields:ge}=fe;return D==null||D(!1,ge),F?!1:Promise.reject(ge)}))},Y=()=>{I(""),v.value=""},Z=async()=>{const O=o==null?void 0:o.model;if(!O||!r.prop)return;const D=fl(O,r.prop);V5(D.value,g)||(b=!0),D.value=g,await Xe(),Y()},te=O=>{u.value.includes(O)||u.value.push(O)},B=O=>{u.value=u.value.filter(D=>D!==O)};Be(()=>r.error,O=>{v.value=O||"",I(O?"error":"")},{immediate:!0}),Be(()=>r.validateStatus,O=>I(O||""));const z=sr(je(Se({},Ui(r)),{$el:p,size:s,validateState:c,labelId:l,inputIds:u,isGroup:E,addInputId:te,removeInputId:B,resetField:Z,clearValidate:Y,validate:U}));return ft(Jn,z),ht(()=>{r.prop&&(o==null||o.addField(z),g=f5(x.value))}),Yt(()=>{o==null||o.removeField(z)}),t({size:s,validateMessage:v,validateState:c,validate:U,clearValidate:Y,resetField:Z}),(O,D)=>{var F;return K(),se("div",{ref_key:"formItemRef",ref:p,class:ne(N(f)),role:N(E)?"group":void 0,"aria-labelledby":N(E)?N(l):void 0},[G(N(JB),{"is-auto-width":N(m).width==="auto","update-all":((F=N(o))==null?void 0:F.labelWidth)==="auto"},{default:Q(()=>[N(w)?(K(),Ce(jt(N(S)?"label":"div"),{key:0,id:N(l),for:N(S),class:ne(N(a).e("label")),style:We(N(m))},{default:Q(()=>[Ee(O.$slots,"label",{label:N(R)},()=>[Te(me(N(R)),1)])]),_:3},8,["id","for","class","style"])):ke("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),W("div",{class:ne(N(a).e("content")),style:We(N(d))},[Ee(O.$slots,"default"),G(wr,{name:`${N(a).namespace.value}-zoom-in-top`},{default:Q(()=>[N(P)?Ee(O.$slots,"error",{key:0,error:v.value},()=>[W("div",{class:ne(N(y))},me(v.value),3)]):ke("v-if",!0)]),_:3},8,["name"])],6)],10,ZB)}}}));var D_=Ne(tO,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const Lc=Ct(_B,{FormItem:D_}),Rc=Vr(D_),rO=Ge({trigger:Ys.trigger,placement:ml.placement,disabled:Ys.disabled,visible:Ar.visible,transition:Ar.transition,popperOptions:ml.popperOptions,tabindex:ml.tabindex,content:Ar.content,popperStyle:Ar.popperStyle,popperClass:Ar.popperClass,enterable:je(Se({},Ar.enterable),{default:!0}),effect:je(Se({},Ar.effect),{default:"light"}),teleported:Ar.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0}}),nO=["update:visible","before-enter","before-leave","after-enter","after-leave"],iO="ElPopover",oO=we({name:iO,components:{ElTooltip:Tc},props:rO,emits:nO,setup(e,{emit:t}){const r=Fe("popover"),n=X(null),o=J(()=>{var g;return(g=N(n))==null?void 0:g.popperRef}),i=J(()=>ze(e.width)?e.width:`${e.width}px`),s=J(()=>[{width:i.value},e.popperStyle]),a=J(()=>[r.b(),e.popperClass,{[r.m("plain")]:!!e.content}]),l=J(()=>e.transition==="el-fade-in-linear");return{ns:r,kls:a,gpuAcceleration:l,style:s,tooltipRef:n,popperRef:o,hide:()=>{var g;(g=n.value)==null||g.hide()},beforeEnter:()=>{t("before-enter")},beforeLeave:()=>{t("before-leave")},afterEnter:()=>{t("after-enter")},afterLeave:()=>{t("update:visible",!1),t("after-leave")}}}});function sO(e,t,r,n,o,i){const s=Oe("el-tooltip");return K(),Ce(s,or({ref:"tooltipRef"},e.$attrs,{trigger:e.trigger,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":e.kls,"popper-style":e.style,teleported:e.teleported,persistent:e.persistent,"gpu-acceleration":e.gpuAcceleration,onBeforeShow:e.beforeEnter,onBeforeHide:e.beforeLeave,onShow:e.afterEnter,onHide:e.afterLeave}),{content:Q(()=>[e.title?(K(),se("div",{key:0,class:ne(e.ns.e("title")),role:"title"},me(e.title),3)):ke("v-if",!0),Ee(e.$slots,"default",{},()=>[Te(me(e.content),1)])]),default:Q(()=>[e.$slots.reference?Ee(e.$slots,"reference",{key:0}):ke("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onBeforeShow","onBeforeHide","onShow","onHide"])}var Rs=Ne(oO,[["render",sO],["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/index.vue"]]);const O0=(e,t)=>{const r=t.arg||t.value,n=r==null?void 0:r.popperRef;n&&(n.triggerRef=e)};var Rf={mounted(e,t){O0(e,t)},updated(e,t){O0(e,t)}};const aO="popover";Rs.install=e=>{e.component(Rs.name,Rs)};Rf.install=e=>{e.directive(aO,Rf)};const lO=Rf;Rs.directive=lO;const cO=Rs,uO=cO,fO=Ge({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:De(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:De([String,Array,Function]),default:""},format:{type:De(Function),default:e=>`${e}%`}}),dO=we({name:"ElProgress",components:{ElIcon:mt,CircleCheck:uf,CircleClose:jl,Check:qp,Close:Fi,WarningFilled:Ul},props:fO,setup(e){const t=Fe("progress"),r=J(()=>({width:`${e.percentage}%`,animationDuration:`${e.duration}s`,backgroundColor:b(e.percentage)})),n=J(()=>(e.strokeWidth/e.width*100).toFixed(1)),o=J(()=>e.type==="circle"||e.type==="dashboard"?Number.parseInt(`${50-Number.parseFloat(n.value)/2}`,10):0),i=J(()=>{const d=o.value,f=e.type==="dashboard";return`
M 50 50
m 0 ${f?"":"-"}${d}
a ${d} ${d} 0 1 1 0 ${f?"-":""}${d*2}
a ${d} ${d} 0 1 1 0 ${f?"":"-"}${d*2}
`}),s=J(()=>2*Math.PI*o.value),a=J(()=>e.type==="dashboard"?.75:1),l=J(()=>`${-1*s.value*(1-a.value)/2}px`),u=J(()=>({strokeDasharray:`${s.value*a.value}px, ${s.value}px`,strokeDashoffset:l.value})),c=J(()=>({strokeDasharray:`${s.value*a.value*(e.percentage/100)}px, ${s.value}px`,strokeDashoffset:l.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"})),_=J(()=>{let d;if(e.color)d=b(e.percentage);else switch(e.status){case"success":d="#13ce66";break;case"exception":d="#ff4949";break;case"warning":d="#e6a23c";break;default:d="#20a0ff"}return d}),v=J(()=>e.status==="warning"?Ul:e.type==="line"?e.status==="success"?uf:jl:e.status==="success"?qp:Fi),p=J(()=>e.type==="line"?12+e.strokeWidth*.4:e.width*.111111+2),g=J(()=>e.format(e.percentage)),b=d=>{var f;const{color:h}=e;if(typeof h=="function")return h(d);if(typeof h=="string")return h;{const y=100/h.length,w=h.map((S,E)=>typeof S=="string"?{color:S,percentage:(E+1)*y}:S).sort((S,E)=>S.percentage-E.percentage);for(const S of w)if(S.percentage>d)return S.color;return(f=w[w.length-1])==null?void 0:f.color}},m=J(()=>({percentage:e.percentage}));return{ns:t,barStyle:r,relativeStrokeWidth:n,radius:o,trackPath:i,perimeter:s,rate:a,strokeDashoffset:l,trailPathStyle:u,circlePathStyle:c,stroke:_,statusIcon:v,progressTextSize:p,content:g,slotData:m}}}),hO=["aria-valuenow"],pO={viewBox:"0 0 100 100"},vO=["d","stroke","stroke-width"],gO=["d","stroke","stroke-linecap","stroke-width"],mO={key:0};function _O(e,t,r,n,o,i){const s=Oe("el-icon");return K(),se("div",{class:ne([e.ns.b(),e.ns.m(e.type),e.ns.is(e.status),{[e.ns.m("without-text")]:!e.showText,[e.ns.m("text-inside")]:e.textInside}]),role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[e.type==="line"?(K(),se("div",{key:0,class:ne(e.ns.b("bar"))},[W("div",{class:ne(e.ns.be("bar","outer")),style:We({height:`${e.strokeWidth}px`})},[W("div",{class:ne([e.ns.be("bar","inner"),{[e.ns.bem("bar","inner","indeterminate")]:e.indeterminate}]),style:We(e.barStyle)},[(e.showText||e.$slots.default)&&e.textInside?(K(),se("div",{key:0,class:ne(e.ns.be("bar","innerText"))},[Ee(e.$slots,"default",Pu(Bl(e.slotData)),()=>[W("span",null,me(e.content),1)])],2)):ke("v-if",!0)],6)],6)],2)):(K(),se("div",{key:1,class:ne(e.ns.b("circle")),style:We({height:`${e.width}px`,width:`${e.width}px`})},[(K(),se("svg",pO,[W("path",{class:ne(e.ns.be("circle","track")),d:e.trackPath,stroke:`var(${e.ns.cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":e.relativeStrokeWidth,fill:"none",style:We(e.trailPathStyle)},null,14,vO),W("path",{class:ne(e.ns.be("circle","path")),d:e.trackPath,stroke:e.stroke,fill:"none","stroke-linecap":e.strokeLinecap,"stroke-width":e.percentage?e.relativeStrokeWidth:0,style:We(e.circlePathStyle)},null,14,gO)]))],6)),(e.showText||e.$slots.default)&&!e.textInside?(K(),se("div",{key:2,class:ne(e.ns.e("text")),style:We({fontSize:`${e.progressTextSize}px`})},[Ee(e.$slots,"default",Pu(Bl(e.slotData)),()=>[e.status?(K(),Ce(s,{key:1},{default:Q(()=>[(K(),Ce(jt(e.statusIcon)))]),_:1})):(K(),se("span",mO,me(e.content),1))])],6)):ke("v-if",!0)],10,hO)}var yO=Ne(dO,[["render",_O],["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const bO=Ct(yO);/*!
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*/var CO=/["'&<>]/,wO=SO;function SO(e){var t=""+e,r=CO.exec(t);if(!r)return t;var n,o="",i=0,s=0;for(i=r.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:n="&quot;";break;case 38:n="&amp;";break;case 39:n="&#39;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;default:continue}s!==i&&(o+=t.substring(s,i)),s=i+1,o+=n}return s!==i?o+t.substring(s,i):o}const ku=function(e){let t=e.target;for(;t&&t.tagName.toUpperCase()!=="HTML";){if(t.tagName.toUpperCase()==="TD")return t;t=t.parentNode}return null},I0=function(e){return e!==null&&typeof e=="object"},xO=function(e,t,r,n,o){if(!t&&!n&&(!o||Array.isArray(o)&&!o.length))return e;typeof r=="string"?r=r==="descending"?-1:1:r=r&&r<0?-1:1;const i=n?null:function(a,l){return o?(Array.isArray(o)||(o=[o]),o.map(u=>typeof u=="string"?Dl(a,u):u(a,l,e))):(t!=="$key"&&I0(a)&&"$value"in a&&(a=a.$value),[I0(a)?Dl(a,t):a])},s=function(a,l){if(n)return n(a.value,l.value);for(let u=0,c=a.key.length;u<c;u++){if(a.key[u]<l.key[u])return-1;if(a.key[u]>l.key[u])return 1}return 0};return e.map((a,l)=>({value:a,index:l,key:i?i(a,l):null})).sort((a,l)=>{let u=s(a,l);return u||(u=a.index-l.index),u*+r}).map(a=>a.value)},H_=function(e,t){let r=null;return e.columns.forEach(n=>{n.id===t&&(r=n)}),r},EO=function(e,t){let r=null;for(let n=0;n<e.columns.length;n++){const o=e.columns[n];if(o.columnKey===t){r=o;break}}return r},M0=function(e,t,r){const n=(t.className||"").match(new RegExp(`${r}-table_[^\\s]+`,"gm"));return n?H_(e,n[0]):null},$t=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const r=t.split(".");let n=e;for(const o of r)n=n[o];return`${n}`}else if(typeof t=="function")return t.call(null,e)},Li=function(e,t){const r={};return(e||[]).forEach((n,o)=>{r[$t(n,t)]={row:n,index:o}}),r};function AO(e,t){const r={};let n;for(n in e)r[n]=e[n];for(n in t)if(qe(t,n)){const o=t[n];typeof o!="undefined"&&(r[n]=o)}return r}function Vd(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function F_(e){return e===""||e!==void 0&&(e=Vd(e),Number.isNaN(e)&&(e=80)),e}function Bf(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function kO(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function yl(e,t,r){let n=!1;const o=e.indexOf(t),i=o!==-1,s=()=>{e.push(t),n=!0},a=()=>{e.splice(o,1),n=!0};return typeof r=="boolean"?r&&!i?s():!r&&i&&a():i?a():s(),n}function TO(e,t,r="children",n="hasChildren"){const o=s=>!(Array.isArray(s)&&s.length);function i(s,a,l){t(s,a,l),a.forEach(u=>{if(u[n]){t(u,null,l+1);return}const c=u[r];o(c)||i(u,c,l+1)})}e.forEach(s=>{if(s[n]){t(s,null,0);return}const a=s[r];o(a)||i(s,a,0)})}let ql;function LO(e,t,r,n){const{nextZIndex:o}=Gi();function i(){const _=n==="light",v=document.createElement("div");return v.className=`el-popper ${_?"is-light":"is-dark"}`,t=wO(t),v.innerHTML=t,v.style.zIndex=String(o()),document.body.appendChild(v),v}function s(){const _=document.createElement("div");return _.className="el-popper__arrow",_}function a(){l&&l.update()}ql=function _(){try{l&&l.destroy(),u&&document.body.removeChild(u),Hi(e,"mouseenter",a),Hi(e,"mouseleave",_)}catch{}};let l=null;const u=i(),c=s();return u.appendChild(c),l=r_(e,u,Se({modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"arrow",options:{element:c,padding:10}}]},r)),Di(e,"mouseenter",a),Di(e,"mouseleave",ql),l}const N_=(e,t,r,n)=>{let o=0,i=e;if(n){if(n[e].colSpan>1)return{};for(let l=0;l<e;l++)o+=n[l].colSpan;i=o+n[e].colSpan-1}else o=e;let s;const a=r.states.columns;switch(t){case"left":i<r.states.fixedLeafColumnsLength.value&&(s="left");break;case"right":o>=a.value.length-r.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:i<r.states.fixedLeafColumnsLength.value?s="left":o>=a.value.length-r.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:o,after:i}:{}},Kd=(e,t,r,n,o)=>{const i=[],{direction:s,start:a}=N_(t,r,n,o);if(s){const l=s==="left";i.push(`${e}-fixed-column--${s}`),l&&a===n.states.fixedLeafColumnsLength.value-1?i.push("is-last-column"):!l&&a===n.states.columns.value.length-n.states.rightFixedLeafColumnsLength.value&&i.push("is-first-column")}return i};function P0(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Gd=(e,t,r,n)=>{const{direction:o,start:i=0}=N_(e,t,r,n);if(!o)return;const s={},a=o==="left",l=r.states.columns.value;return a?s.left=l.slice(0,e).reduce(P0,0):s.right=l.slice(i+1).reverse().reduce(P0,0),s},jo=(e,t)=>{!e||Number.isNaN(e[t])||(e[t]=`${e[t]}px`)};function RO(e){const t=ot(),r=X(!1),n=X([]);return{updateExpandRows:()=>{const l=e.data.value||[],u=e.rowKey.value;if(r.value)n.value=l.slice();else if(u){const c=Li(n.value,u);n.value=l.reduce((_,v)=>{const p=$t(v,u);return c[p]&&_.push(v),_},[])}else n.value=[]},toggleRowExpansion:(l,u)=>{yl(n.value,l,u)&&t.emit("expand-change",l,n.value.slice())},setExpandRowKeys:l=>{t.store.assertRowKey();const u=e.data.value||[],c=e.rowKey.value,_=Li(u,c);n.value=l.reduce((v,p)=>{const g=_[p];return g&&v.push(g.row),v},[])},isRowExpanded:l=>{const u=e.rowKey.value;return u?!!Li(n.value,u)[$t(l,u)]:n.value.includes(l)},states:{expandRows:n,defaultExpandAll:r}}}function BO(e){const t=ot(),r=X(null),n=X(null),o=u=>{t.store.assertRowKey(),r.value=u,s(u)},i=()=>{r.value=null},s=u=>{const{data:c,rowKey:_}=e;let v=null;_.value&&(v=(N(c)||[]).find(p=>$t(p,_.value)===u)),n.value=v,t.emit("current-change",n.value,null)};return{setCurrentRowKey:o,restoreCurrentRowKey:i,setCurrentRowByKey:s,updateCurrentRow:u=>{const c=n.value;if(u&&u!==c){n.value=u,t.emit("current-change",n.value,c);return}!u&&c&&(n.value=null,t.emit("current-change",null,c))},updateCurrentRowData:()=>{const u=e.rowKey.value,c=e.data.value||[],_=n.value;if(!c.includes(_)&&_){if(u){const v=$t(_,u);s(v)}else n.value=null;n.value===null&&t.emit("current-change",null,_)}else r.value&&(s(r.value),i())},states:{_currentRowKey:r,currentRow:n}}}function OO(e){const t=X([]),r=X({}),n=X(16),o=X(!1),i=X({}),s=X("hasChildren"),a=X("children"),l=ot(),u=J(()=>{if(!e.rowKey.value)return{};const d=e.data.value||[];return _(d)}),c=J(()=>{const d=e.rowKey.value,f=Object.keys(i.value),h={};return f.length&&f.forEach(y=>{if(i.value[y].length){const C={children:[]};i.value[y].forEach(w=>{const S=$t(w,d);C.children.push(S),w[s.value]&&!h[S]&&(h[S]={children:[]})}),h[y]=C}}),h}),_=d=>{const f=e.rowKey.value,h={};return TO(d,(y,C,w)=>{const S=$t(y,f);Array.isArray(C)?h[S]={children:C.map(E=>$t(E,f)),level:w}:o.value&&(h[S]={children:[],lazy:!0,level:w})},a.value,s.value),h},v=(d=!1,f=(h=>(h=l.store)==null?void 0:h.states.defaultExpandAll.value)())=>{var h;const y=u.value,C=c.value,w=Object.keys(y),S={};if(w.length){const E=N(r),k=[],x=(L,T)=>{if(d)return t.value?f||t.value.includes(T):!!(f||(L==null?void 0:L.expanded));{const H=f||t.value&&t.value.includes(T);return!!((L==null?void 0:L.expanded)||H)}};w.forEach(L=>{const T=E[L],H=Se({},y[L]);if(H.expanded=x(T,L),H.lazy){const{loaded:P=!1,loading:R=!1}=T||{};H.loaded=!!P,H.loading=!!R,k.push(L)}S[L]=H});const A=Object.keys(C);o.value&&A.length&&k.length&&A.forEach(L=>{const T=E[L],H=C[L].children;if(k.includes(L)){if(S[L].children.length!==0)throw new Error("[ElTable]children must be an empty array.");S[L].children=H}else{const{loaded:P=!1,loading:R=!1}=T||{};S[L]={lazy:!0,loaded:!!P,loading:!!R,expanded:x(T,L),children:H,level:""}}})}r.value=S,(h=l.store)==null||h.updateTableScrollY()};Be(()=>t.value,()=>{v(!0)}),Be(()=>u.value,()=>{v()}),Be(()=>c.value,()=>{v()});const p=d=>{t.value=d,v()},g=(d,f)=>{l.store.assertRowKey();const h=e.rowKey.value,y=$t(d,h),C=y&&r.value[y];if(y&&C&&"expanded"in C){const w=C.expanded;f=typeof f=="undefined"?!C.expanded:f,r.value[y].expanded=f,w!==f&&l.emit("expand-change",d,f),l.store.updateTableScrollY()}},b=d=>{l.store.assertRowKey();const f=e.rowKey.value,h=$t(d,f),y=r.value[h];o.value&&y&&"loaded"in y&&!y.loaded?m(d,h,y):g(d,void 0)},m=(d,f,h)=>{const{load:y}=l.props;y&&!r.value[f].loaded&&(r.value[f].loading=!0,y(d,h,C=>{if(!Array.isArray(C))throw new TypeError("[ElTable] data must be an array");r.value[f].loading=!1,r.value[f].loaded=!0,r.value[f].expanded=!0,C.length&&(i.value[f]=C),l.emit("expand-change",d,!0)}))};return{loadData:m,loadOrToggle:b,toggleTreeExpansion:g,updateTreeExpandKeys:p,updateTreeData:v,normalize:_,states:{expandRowKeys:t,treeData:r,indent:n,lazy:o,lazyTreeNodeMap:i,lazyColumnIdentifier:s,childrenColumnName:a}}}const IO=(e,t)=>{const r=t.sortingColumn;return!r||typeof r.sortable=="string"?e:xO(e,t.sortProp,t.sortOrder,r.sortMethod,r.sortBy)},bl=e=>{const t=[];return e.forEach(r=>{r.children?t.push.apply(t,bl(r.children)):t.push(r)}),t};function MO(){var e;const t=ot(),{size:r}=Ui((e=t.proxy)==null?void 0:e.$props),n=X(null),o=X([]),i=X([]),s=X(!1),a=X([]),l=X([]),u=X([]),c=X([]),_=X([]),v=X([]),p=X([]),g=X([]),b=X(0),m=X(0),d=X(0),f=X(!1),h=X([]),y=X(!1),C=X(!1),w=X(null),S=X({}),E=X(null),k=X(null),x=X(null),A=X(null),L=X(null);Be(o,()=>t.state&&P(!1),{deep:!0});const T=()=>{if(!n.value)throw new Error("[ElTable] prop row-key is required")},H=()=>{c.value=a.value.filter(Ke=>Ke.fixed===!0||Ke.fixed==="left"),_.value=a.value.filter(Ke=>Ke.fixed==="right"),c.value.length>0&&a.value[0]&&a.value[0].type==="selection"&&!a.value[0].fixed&&(a.value[0].fixed=!0,c.value.unshift(a.value[0]));const ye=a.value.filter(Ke=>!Ke.fixed);l.value=[].concat(c.value).concat(ye).concat(_.value);const xe=bl(ye),Re=bl(c.value),Me=bl(_.value);b.value=xe.length,m.value=Re.length,d.value=Me.length,u.value=[].concat(Re).concat(xe).concat(Me),s.value=c.value.length>0||_.value.length>0},P=(ye,xe=!1)=>{ye&&H(),xe?t.state.doLayout():t.state.debouncedUpdateLayout()},R=ye=>h.value.includes(ye),I=()=>{f.value=!1,h.value.length&&(h.value=[],t.emit("selection-change",[]))},M=()=>{let ye;if(n.value){ye=[];const xe=Li(h.value,n.value),Re=Li(o.value,n.value);for(const Me in xe)qe(xe,Me)&&!Re[Me]&&ye.push(xe[Me].row)}else ye=h.value.filter(xe=>!o.value.includes(xe));if(ye.length){const xe=h.value.filter(Re=>!ye.includes(Re));h.value=xe,t.emit("selection-change",xe.slice())}},$=()=>(h.value||[]).slice(),V=(ye,xe=void 0,Re=!0)=>{if(yl(h.value,ye,xe)){const Ke=(h.value||[]).slice();Re&&t.emit("select",Ke,ye),t.emit("selection-change",Ke)}},U=()=>{var ye,xe;const Re=C.value?!f.value:!(f.value||h.value.length);f.value=Re;let Me=!1,Ke=0;const pt=(xe=(ye=t==null?void 0:t.store)==null?void 0:ye.states)==null?void 0:xe.rowKey.value;o.value.forEach((vt,Ht)=>{const st=Ht+Ke;w.value?w.value.call(null,vt,st)&&yl(h.value,vt,Re)&&(Me=!0):yl(h.value,vt,Re)&&(Me=!0),Ke+=te($t(vt,pt))}),Me&&t.emit("selection-change",h.value?h.value.slice():[]),t.emit("select-all",h.value)},Y=()=>{const ye=Li(h.value,n.value);o.value.forEach(xe=>{const Re=$t(xe,n.value),Me=ye[Re];Me&&(h.value[Me.index]=xe)})},Z=()=>{var ye,xe,Re;if(((ye=o.value)==null?void 0:ye.length)===0){f.value=!1;return}let Me;n.value&&(Me=Li(h.value,n.value));const Ke=function(st){return Me?!!Me[$t(st,n.value)]:h.value.includes(st)};let pt=!0,vt=0,Ht=0;for(let st=0,At=(o.value||[]).length;st<At;st++){const Sr=(Re=(xe=t==null?void 0:t.store)==null?void 0:xe.states)==null?void 0:Re.rowKey.value,kn=st+Ht,Mr=o.value[st],Tn=w.value&&w.value.call(null,Mr,kn);if(Ke(Mr))vt++;else if(!w.value||Tn){pt=!1;break}Ht+=te($t(Mr,Sr))}vt===0&&(pt=!1),f.value=pt},te=ye=>{var xe;if(!t||!t.store)return 0;const{treeData:Re}=t.store.states;let Me=0;const Ke=(xe=Re.value[ye])==null?void 0:xe.children;return Ke&&(Me+=Ke.length,Ke.forEach(pt=>{Me+=te(pt)})),Me},B=(ye,xe)=>{Array.isArray(ye)||(ye=[ye]);const Re={};return ye.forEach(Me=>{S.value[Me.id]=xe,Re[Me.columnKey||Me.id]=xe}),Re},z=(ye,xe,Re)=>{k.value&&k.value!==ye&&(k.value.order=null),k.value=ye,x.value=xe,A.value=Re},O=()=>{let ye=N(i);Object.keys(S.value).forEach(xe=>{const Re=S.value[xe];if(!Re||Re.length===0)return;const Me=H_({columns:u.value},xe);Me&&Me.filterMethod&&(ye=ye.filter(Ke=>Re.some(pt=>Me.filterMethod.call(null,pt,Ke,Me))))}),E.value=ye},D=()=>{o.value=IO(E.value,{sortingColumn:k.value,sortProp:x.value,sortOrder:A.value})},F=(ye=void 0)=>{ye&&ye.filter||O(),D()},ue=ye=>{const{tableHeaderRef:xe}=t.refs;if(!xe)return;const Re=Object.assign({},xe.filterPanels),Me=Object.keys(Re);if(!!Me.length)if(typeof ye=="string"&&(ye=[ye]),Array.isArray(ye)){const Ke=ye.map(pt=>EO({columns:u.value},pt));Me.forEach(pt=>{const vt=Ke.find(Ht=>Ht.id===pt);vt&&(vt.filteredValue=[])}),t.store.commit("filterChange",{column:Ke,values:[],silent:!0,multi:!0})}else Me.forEach(Ke=>{const pt=u.value.find(vt=>vt.id===Ke);pt&&(pt.filteredValue=[])}),S.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},fe=()=>{!k.value||(z(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:ge,toggleRowExpansion:j,updateExpandRows:q,states:ie,isRowExpanded:ee}=RO({data:o,rowKey:n}),{updateTreeExpandKeys:ae,toggleTreeExpansion:pe,updateTreeData:be,loadOrToggle:he,states:_e}=OO({data:o,rowKey:n}),{updateCurrentRowData:ce,updateCurrentRow:re,setCurrentRowKey:ve,states:Ae}=BO({data:o,rowKey:n});return{assertRowKey:T,updateColumns:H,scheduleLayout:P,isSelected:R,clearSelection:I,cleanSelection:M,getSelectionRows:$,toggleRowSelection:V,_toggleAllSelection:U,toggleAllSelection:null,updateSelectionByRowKey:Y,updateAllSelected:Z,updateFilters:B,updateCurrentRow:re,updateSort:z,execFilter:O,execSort:D,execQuery:F,clearFilter:ue,clearSort:fe,toggleRowExpansion:j,setExpandRowKeysAdapter:ye=>{ge(ye),ae(ye)},setCurrentRowKey:ve,toggleRowExpansionAdapter:(ye,xe)=>{u.value.some(({type:Me})=>Me==="expand")?j(ye,xe):pe(ye,xe)},isRowExpanded:ee,updateExpandRows:q,updateCurrentRowData:ce,loadOrToggle:he,updateTreeData:be,states:Se(Se(Se({tableSize:r,rowKey:n,data:o,_data:i,isComplex:s,_columns:a,originColumns:l,columns:u,fixedColumns:c,rightFixedColumns:_,leafColumns:v,fixedLeafColumns:p,rightFixedLeafColumns:g,leafColumnsLength:b,fixedLeafColumnsLength:m,rightFixedLeafColumnsLength:d,isAllSelected:f,selection:h,reserveSelection:y,selectOnIndeterminate:C,selectable:w,filters:S,filteredData:E,sortingColumn:k,sortProp:x,sortOrder:A,hoverRow:L},ie),_e),Ae)}}function Of(e,t){return e.map(r=>{var n;return r.id===t.id?t:((n=r.children)!=null&&n.length&&(r.children=Of(r.children,t)),r)})}function $_(e){e.forEach(t=>{var r,n;t.no=(r=t.getColumnIndex)==null?void 0:r.call(t),(n=t.children)!=null&&n.length&&$_(t.children)}),e.sort((t,r)=>t.no-r.no)}function PO(){const e=ot(),t=MO(),r=Fe("table"),n={setData(s,a){const l=N(s._data)!==a;s.data.value=a,s._data.value=a,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),N(s.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):l?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(s,a,l){const u=N(s._columns);let c=[];l?(l&&!l.children&&(l.children=[]),l.children.push(a),c=Of(u,l)):(u.push(a),c=u),$_(c),s._columns.value=c,a.type==="selection"&&(s.selectable.value=a.selectable,s.reserveSelection.value=a.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},removeColumn(s,a,l){const u=N(s._columns)||[];if(l)l.children.splice(l.children.findIndex(c=>c.id===a.id),1),l.children.length===0&&delete l.children,s._columns.value=Of(u,l);else{const c=u.indexOf(a);c>-1&&(u.splice(c,1),s._columns.value=u)}e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(s,a){const{prop:l,order:u,init:c}=a;if(l){const _=N(s.columns).find(v=>v.property===l);_&&(_.order=u,e.store.updateSort(_,l,u),e.store.commit("changeSortCondition",{init:c}))}},changeSortCondition(s,a){const{sortingColumn:l,sortProp:u,sortOrder:c}=s;N(c)===null&&(s.sortingColumn.value=null,s.sortProp.value=null);const _={filter:!0};e.store.execQuery(_),(!a||!(a.silent||a.init))&&e.emit("sort-change",{column:N(l),prop:N(u),order:N(c)}),e.store.updateTableScrollY()},filterChange(s,a){const{column:l,values:u,silent:c}=a,_=e.store.updateFilters(l,u);e.store.execQuery(),c||e.emit("filter-change",_),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(s,a){e.store.toggleRowSelection(a),e.store.updateAllSelected()},setHoverRow(s,a){s.hoverRow.value=a},setCurrentRow(s,a){e.store.updateCurrentRow(a)}},o=function(s,...a){const l=e.store.mutations;if(l[s])l[s].apply(e,[e.store.states].concat(a));else throw new Error(`Action not found: ${s}`)},i=function(){Xe(()=>e.layout.updateScrollY.apply(e.layout))};return je(Se({ns:r},t),{mutations:n,commit:o,updateTableScrollY:i})}const Bs={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"}};function DO(e,t){if(!e)throw new Error("Table is required.");const r=PO();return r.toggleAllSelection=qs(r._toggleAllSelection,10),Object.keys(Bs).forEach(n=>{j_(U_(t,n),n,r)}),HO(r,t),r}function HO(e,t){Object.keys(Bs).forEach(r=>{Be(()=>U_(t,r),n=>{j_(n,r,e)})})}function j_(e,t,r){let n=e,o=Bs[t];typeof Bs[t]=="object"&&(o=o.key,n=n||Bs[t].default),r.states[o].value=n}function U_(e,t){if(t.includes(".")){const r=t.split(".");let n=e;return r.forEach(o=>{n=n[o]}),n}else return e[t]}class FO{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=X(null),this.scrollX=X(!1),this.scrollY=X(!1),this.bodyWidth=X(null),this.fixedWidth=X(null),this.rightFixedWidth=X(null),this.tableHeight=X(null),this.headerHeight=X(44),this.appendHeight=X(0),this.footerHeight=X(44),this.viewportHeight=X(null),this.bodyHeight=X(null),this.bodyScrollHeight=X(0),this.fixedBodyHeight=X(null),this.gutterWidth=0;for(const r in t)qe(t,r)&&(yt(this[r])?this[r].value=t[r]:this[r]=t[r]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const r=this.table.refs.bodyWrapper;if(this.table.vnode.el&&r){let n=!0;const o=this.scrollY.value;return this.bodyHeight.value===null?n=!1:n=r.scrollHeight>this.bodyHeight.value,this.scrollY.value=n,o!==n}return!1}setHeight(t,r="height"){if(!dt)return;const n=this.table.vnode.el;if(t=Bf(t),this.height.value=Number(t),!n&&(t||t===0))return Xe(()=>this.setHeight(t,r));typeof t=="number"?(n.style[r]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(n.style[r]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(n=>{n.isColumnGroup?t.push.apply(t,n.columns):t.push(n)}),t}updateElsHeight(){var t,r;if(!this.table.$ready)return Xe(()=>this.updateElsHeight());const{tableWrapper:n,headerWrapper:o,appendWrapper:i,footerWrapper:s,tableHeader:a,tableBody:l}=this.table.refs;if(n&&n.style.display==="none")return;const{tableLayout:u}=this.table.props;if(this.appendHeight.value=i?i.offsetHeight:0,this.showHeader&&!o&&u==="fixed")return;const c=a||null,_=this.headerDisplayNone(c),v=(o==null?void 0:o.offsetHeight)||0,p=this.headerHeight.value=this.showHeader?v:0;if(this.showHeader&&!_&&v>0&&(this.table.store.states.columns.value||[]).length>0&&p<2)return Xe(()=>this.updateElsHeight());const g=this.tableHeight.value=(r=(t=this.table)==null?void 0:t.vnode.el)==null?void 0:r.clientHeight,b=this.footerHeight.value=s?s.offsetHeight:0;this.height.value!==null&&(this.bodyHeight.value===null&&requestAnimationFrame(()=>this.updateElsHeight()),this.bodyHeight.value=g-p-b+(s?1:0),this.bodyScrollHeight.value=l==null?void 0:l.scrollHeight),this.fixedBodyHeight.value=this.scrollX.value?this.bodyHeight.value-this.gutterWidth:this.bodyHeight.value,this.viewportHeight.value=this.scrollX.value?g-this.gutterWidth:g,this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let r=t;for(;r.tagName!=="DIV";){if(getComputedStyle(r).display==="none")return!0;r=r.parentElement}return!1}updateColumnsWidth(){if(!dt)return;const t=this.fit,r=this.table.vnode.el.clientWidth;let n=0;const o=this.getFlattenColumns(),i=o.filter(l=>typeof l.width!="number");if(o.forEach(l=>{typeof l.width=="number"&&l.realWidth&&(l.realWidth=null)}),i.length>0&&t){if(o.forEach(l=>{n+=Number(l.width||l.minWidth||80)}),n<=r){this.scrollX.value=!1;const l=r-n;if(i.length===1)i[0].realWidth=Number(i[0].minWidth||80)+l;else{const u=i.reduce((v,p)=>v+Number(p.minWidth||80),0),c=l/u;let _=0;i.forEach((v,p)=>{if(p===0)return;const g=Math.floor(Number(v.minWidth||80)*c);_+=g,v.realWidth=Number(v.minWidth||80)+g}),i[0].realWidth=Number(i[0].minWidth||80)+l-_}}else this.scrollX.value=!0,i.forEach(l=>{l.realWidth=Number(l.minWidth)});this.bodyWidth.value=Math.max(n,r),this.table.state.resizeState.value.width=this.bodyWidth.value}else o.forEach(l=>{!l.width&&!l.minWidth?l.realWidth=80:l.realWidth=Number(l.width||l.minWidth),n+=l.realWidth}),this.scrollX.value=n>r,this.bodyWidth.value=n;const s=this.store.states.fixedColumns.value;if(s.length>0){let l=0;s.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.fixedWidth.value=l}const a=this.store.states.rightFixedColumns.value;if(a.length>0){let l=0;a.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=l}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const r=this.observers.indexOf(t);r!==-1&&this.observers.splice(r,1)}notifyObservers(t){this.observers.forEach(n=>{var o,i;switch(t){case"columns":(o=n.state)==null||o.onColumnsChange(this);break;case"scrollable":(i=n.state)==null||i.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:NO}=$o,$O=we({name:"ElTableFilterPanel",components:{ElCheckbox:$o,ElCheckboxGroup:NO,ElScrollbar:Ac,ElTooltip:Tc,ElIcon:mt,ArrowDown:_m,ArrowUp:WA},directives:{ClickOutside:N8},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=ot(),{t:r}=Ld(),n=Fe("table-filter"),o=t==null?void 0:t.parent;o.filterPanels.value[e.column.id]||(o.filterPanels.value[e.column.id]=t);const i=X(!1),s=X(null),a=J(()=>e.column&&e.column.filters),l=J({get:()=>{var y;return(((y=e.column)==null?void 0:y.filteredValue)||[])[0]},set:y=>{u.value&&(typeof y!="undefined"&&y!==null?u.value.splice(0,1,y):u.value.splice(0,1))}}),u=J({get(){return e.column?e.column.filteredValue||[]:[]},set(y){e.column&&e.upDataColumn("filteredValue",y)}}),c=J(()=>e.column?e.column.filterMultiple:!0),_=y=>y.value===l.value,v=()=>{i.value=!1},p=y=>{y.stopPropagation(),i.value=!i.value},g=()=>{i.value=!1},b=()=>{f(u.value),v()},m=()=>{u.value=[],f(u.value),v()},d=y=>{l.value=y,f(typeof y!="undefined"&&y!==null?u.value:[]),v()},f=y=>{e.store.commit("filterChange",{column:e.column,values:y}),e.store.updateAllSelected()};Be(i,y=>{e.column&&e.upDataColumn("filterOpened",y)},{immediate:!0});const h=J(()=>{var y,C;return(C=(y=s.value)==null?void 0:y.popperRef)==null?void 0:C.contentRef});return{tooltipVisible:i,multiple:c,filteredValue:u,filterValue:l,filters:a,handleConfirm:b,handleReset:m,handleSelect:d,isActive:_,t:r,ns:n,showFilterPanel:p,hideFilterPanel:g,popperPaneRef:h,tooltip:s}}}),jO={key:0},UO=["disabled"],WO=["label","onClick"];function zO(e,t,r,n,o,i){const s=Oe("el-checkbox"),a=Oe("el-checkbox-group"),l=Oe("el-scrollbar"),u=Oe("arrow-up"),c=Oe("arrow-down"),_=Oe("el-icon"),v=Oe("el-tooltip"),p=ad("click-outside");return K(),Ce(v,{ref:"tooltip",visible:e.tooltipVisible,"onUpdate:visible":t[5]||(t[5]=g=>e.tooltipVisible=g),offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:Q(()=>[e.multiple?(K(),se("div",jO,[W("div",{class:ne(e.ns.e("content"))},[G(l,{"wrap-class":e.ns.e("wrap")},{default:Q(()=>[G(a,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=g=>e.filteredValue=g),class:ne(e.ns.e("checkbox-group"))},{default:Q(()=>[(K(!0),se(Ve,null,Wr(e.filters,g=>(K(),Ce(s,{key:g.value,label:g.value},{default:Q(()=>[Te(me(g.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),W("div",{class:ne(e.ns.e("bottom"))},[W("button",{class:ne({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...g)=>e.handleConfirm&&e.handleConfirm(...g))},me(e.t("el.table.confirmFilter")),11,UO),W("button",{type:"button",onClick:t[2]||(t[2]=(...g)=>e.handleReset&&e.handleReset(...g))},me(e.t("el.table.resetFilter")),1)],2)])):(K(),se("ul",{key:1,class:ne(e.ns.e("list"))},[W("li",{class:ne([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=g=>e.handleSelect(null))},me(e.t("el.table.clearFilter")),3),(K(!0),se(Ve,null,Wr(e.filters,g=>(K(),se("li",{key:g.value,class:ne([e.ns.e("list-item"),e.ns.is("active",e.isActive(g))]),label:g.value,onClick:b=>e.handleSelect(g.value)},me(g.text),11,WO))),128))],2))]),default:Q(()=>[at((K(),se("span",{class:ne([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...g)=>e.showFilterPanel&&e.showFilterPanel(...g))},[G(_,null,{default:Q(()=>[e.column.filterOpened?(K(),Ce(u,{key:0})):(K(),Ce(c,{key:1}))]),_:1})],2)),[[p,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var qO=Ne($O,[["render",zO],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function W_(e){const t=ot();ac(()=>{r.value.addObserver(t)}),ht(()=>{n(r.value),o(r.value)}),ei(()=>{n(r.value),o(r.value)}),Vo(()=>{r.value.removeObserver(t)});const r=J(()=>{const i=e.layout;if(!i)throw new Error("Can not find table layout.");return i}),n=i=>{var s;const a=((s=e.vnode.el)==null?void 0:s.querySelectorAll("colgroup > col"))||[];if(!a.length)return;const l=i.getFlattenColumns(),u={};l.forEach(c=>{u[c.id]=c});for(let c=0,_=a.length;c<_;c++){const v=a[c],p=v.getAttribute("name"),g=u[p];g&&v.setAttribute("width",g.realWidth||g.width)}},o=i=>{var s,a;const l=((s=e.vnode.el)==null?void 0:s.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let c=0,_=l.length;c<_;c++)l[c].setAttribute("width",i.scrollY.value?i.gutterWidth:"0");const u=((a=e.vnode.el)==null?void 0:a.querySelectorAll("th.gutter"))||[];for(let c=0,_=u.length;c<_;c++){const v=u[c];v.style.width=i.scrollY.value?`${i.gutterWidth}px`:"0",v.style.display=i.scrollY.value?"":"none"}};return{tableLayout:r.value,onColumnsChange:n,onScrollableChange:o}}const ln=Symbol("ElTable");function VO(e,t){const r=ot(),n=Ie(ln),o=b=>{b.stopPropagation()},i=(b,m)=>{!m.filters&&m.sortable?g(b,m,!1):m.filterable&&!m.sortable&&o(b),n==null||n.emit("header-click",m,b)},s=(b,m)=>{n==null||n.emit("header-contextmenu",m,b)},a=X(null),l=X(!1),u=X({}),c=(b,m)=>{if(!!dt&&!(m.children&&m.children.length>0)&&a.value&&e.border){l.value=!0;const d=n;t("set-drag-visible",!0);const h=(d==null?void 0:d.vnode.el).getBoundingClientRect().left,y=r.vnode.el.querySelector(`th.${m.id}`),C=y.getBoundingClientRect(),w=C.left-h+30;Vs(y,"noclick"),u.value={startMouseLeft:b.clientX,startLeft:C.right-h,startColumnLeft:C.left-h,tableLeft:h};const S=d==null?void 0:d.refs.resizeProxy;S.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const E=x=>{const A=x.clientX-u.value.startMouseLeft,L=u.value.startLeft+A;S.style.left=`${Math.max(w,L)}px`},k=()=>{if(l.value){const{startColumnLeft:x,startLeft:A}=u.value,T=Number.parseInt(S.style.left,10)-x;m.width=m.realWidth=T,d==null||d.emit("header-dragend",m.width,A-x,m,b),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",l.value=!1,a.value=null,u.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",k),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{Qn(y,"noclick")},0)};document.addEventListener("mousemove",E),document.addEventListener("mouseup",k)}},_=(b,m)=>{if(m.children&&m.children.length>0)return;let d=b.target;for(;d&&d.tagName!=="TH";)d=d.parentNode;if(!(!m||!m.resizable)&&!l.value&&e.border){const f=d.getBoundingClientRect(),h=document.body.style;f.width>12&&f.right-b.pageX<8?(h.cursor="col-resize",xo(d,"is-sortable")&&(d.style.cursor="col-resize"),a.value=m):l.value||(h.cursor="",xo(d,"is-sortable")&&(d.style.cursor="pointer"),a.value=null)}},v=()=>{!dt||(document.body.style.cursor="")},p=({order:b,sortOrders:m})=>{if(b==="")return m[0];const d=m.indexOf(b||null);return m[d>m.length-2?0:d+1]},g=(b,m,d)=>{b.stopPropagation();const f=m.order===d?null:d||p(m);let h=b.target;for(;h&&h.tagName!=="TH";)h=h.parentNode;if(h&&h.tagName==="TH"&&xo(h,"noclick")){Qn(h,"noclick");return}if(!m.sortable)return;const y=e.store.states;let C=y.sortProp.value,w;const S=y.sortingColumn.value;(S!==m||S===m&&S.order===null)&&(S&&(S.order=null),y.sortingColumn.value=m,C=m.property),f?w=m.order=f:w=m.order=null,y.sortProp.value=C,y.sortOrder.value=w,n==null||n.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:s,handleMouseDown:c,handleMouseMove:_,handleMouseOut:v,handleSortClick:g,handleFilterClick:o}}function KO(e){const t=Ie(ln),r=Fe("table");return{getHeaderRowStyle:a=>{const l=t==null?void 0:t.props.headerRowStyle;return typeof l=="function"?l.call(null,{rowIndex:a}):l},getHeaderRowClass:a=>{const l=[],u=t==null?void 0:t.props.headerRowClassName;return typeof u=="string"?l.push(u):typeof u=="function"&&l.push(u.call(null,{rowIndex:a})),l.join(" ")},getHeaderCellStyle:(a,l,u,c)=>{var _;let v=(_=t==null?void 0:t.props.headerCellStyle)!=null?_:{};typeof v=="function"&&(v=v.call(null,{rowIndex:a,columnIndex:l,row:u,column:c}));const p=c.isSubColumn?null:Gd(l,c.fixed,e.store,u);return jo(p,"left"),jo(p,"right"),Object.assign({},v,p)},getHeaderCellClass:(a,l,u,c)=>{const _=c.isSubColumn?[]:Kd(r.b(),l,c.fixed,e.store,u),v=[c.id,c.order,c.headerAlign,c.className,c.labelClassName,..._];c.children||v.push("is-leaf"),c.sortable&&v.push("is-sortable");const p=t==null?void 0:t.props.headerCellClassName;return typeof p=="string"?v.push(p):typeof p=="function"&&v.push(p.call(null,{rowIndex:a,columnIndex:l,row:u,column:c})),v.push(r.e("cell")),v.filter(g=>Boolean(g)).join(" ")}}}const z_=e=>{const t=[];return e.forEach(r=>{r.children?(t.push(r),t.push.apply(t,z_(r.children))):t.push(r)}),t},GO=e=>{let t=1;const r=(i,s)=>{if(s&&(i.level=s.level+1,t<i.level&&(t=i.level)),i.children){let a=0;i.children.forEach(l=>{r(l,i),a+=l.colSpan}),i.colSpan=a}else i.colSpan=1};e.forEach(i=>{i.level=1,r(i,void 0)});const n=[];for(let i=0;i<t;i++)n.push([]);return z_(e).forEach(i=>{i.children?(i.rowSpan=1,i.children.forEach(s=>s.isSubColumn=!0)):i.rowSpan=t-i.level+1,n[i.level-1].push(i)}),n};function YO(e){const t=Ie(ln),r=J(()=>GO(e.store.states.originColumns.value));return{isGroup:J(()=>{const i=r.value.length>1;return i&&t&&(t.state.isGroup.value=!0),i}),toggleAllSelection:i=>{i.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:r}}var XO=we({name:"ElTableHeader",components:{ElCheckbox:$o},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const r=ot(),n=Ie(ln),o=Fe("table"),i=X({}),{onColumnsChange:s,onScrollableChange:a}=W_(n);ht(async()=>{await Xe(),await Xe();const{prop:w,order:S}=e.defaultSort;n==null||n.store.commit("sort",{prop:w,order:S,init:!0})});const{handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:_,handleMouseOut:v,handleSortClick:p,handleFilterClick:g}=VO(e,t),{getHeaderRowStyle:b,getHeaderRowClass:m,getHeaderCellStyle:d,getHeaderCellClass:f}=KO(e),{isGroup:h,toggleAllSelection:y,columnRows:C}=YO(e);return r.state={onColumnsChange:s,onScrollableChange:a},r.filterPanels=i,{ns:o,filterPanels:i,onColumnsChange:s,onScrollableChange:a,columnRows:C,getHeaderRowClass:m,getHeaderRowStyle:b,getHeaderCellClass:f,getHeaderCellStyle:d,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:_,handleMouseOut:v,handleSortClick:p,handleFilterClick:g,isGroup:h,toggleAllSelection:y}},render(){const{ns:e,isGroup:t,columnRows:r,getHeaderCellStyle:n,getHeaderCellClass:o,getHeaderRowClass:i,getHeaderRowStyle:s,handleHeaderClick:a,handleHeaderContextMenu:l,handleMouseDown:u,handleMouseMove:c,handleSortClick:_,handleMouseOut:v,store:p,$parent:g}=this;let b=1;return He("thead",{class:{[e.is("group")]:t}},r.map((m,d)=>He("tr",{class:i(d),key:d,style:s(d)},m.map((f,h)=>(f.rowSpan>b&&(b=f.rowSpan),He("th",{class:o(d,h,m,f),colspan:f.colSpan,key:`${f.id}-thead`,rowspan:f.rowSpan,style:n(d,h,m,f),onClick:y=>a(y,f),onContextmenu:y=>l(y,f),onMousedown:y=>u(y,f),onMousemove:y=>c(y,f),onMouseout:v},[He("div",{class:["cell",f.filteredValue&&f.filteredValue.length>0?"highlight":"",f.labelClassName]},[f.renderHeader?f.renderHeader({column:f,$index:h,store:p,_self:g}):f.label,f.sortable&&He("span",{onClick:y=>_(y,f),class:"caret-wrapper"},[He("i",{onClick:y=>_(y,f,"ascending"),class:"sort-caret ascending"}),He("i",{onClick:y=>_(y,f,"descending"),class:"sort-caret descending"})]),f.filterable&&He(qO,{store:p,placement:f.filterPlacement||"bottom-start",column:f,upDataColumn:(y,C)=>{f[y]=C}})])]))))))}});function QO(e){const t=Ie(ln),r=X(""),n=X(He("div")),o=(v,p,g)=>{var b;const m=t,d=ku(v);let f;const h=(b=m==null?void 0:m.vnode.el)==null?void 0:b.dataset.prefix;d&&(f=M0({columns:e.store.states.columns.value},d,h),f&&(m==null||m.emit(`cell-${g}`,p,f,d,v))),m==null||m.emit(`row-${g}`,p,f,v)},i=(v,p)=>{o(v,p,"dblclick")},s=(v,p)=>{e.store.commit("setCurrentRow",p),o(v,p,"click")},a=(v,p)=>{o(v,p,"contextmenu")},l=qs(v=>{e.store.commit("setHoverRow",v)},30),u=qs(()=>{e.store.commit("setHoverRow",null)},30);return{handleDoubleClick:i,handleClick:s,handleContextMenu:a,handleMouseEnter:l,handleMouseLeave:u,handleCellMouseEnter:(v,p)=>{var g;const b=t,m=ku(v),d=(g=b==null?void 0:b.vnode.el)==null?void 0:g.dataset.prefix;if(m){const w=M0({columns:e.store.states.columns.value},m,d),S=b.hoverState={cell:m,column:w,row:p};b==null||b.emit("cell-mouse-enter",S.row,S.column,S.cell,v)}const f=v.target.querySelector(".cell");if(!(xo(f,`${d}-tooltip`)&&f.childNodes.length))return;const h=document.createRange();h.setStart(f,0),h.setEnd(f,f.childNodes.length);const y=h.getBoundingClientRect().width,C=(Number.parseInt(vn(f,"paddingLeft"),10)||0)+(Number.parseInt(vn(f,"paddingRight"),10)||0);(y+C>f.offsetWidth||f.scrollWidth>f.offsetWidth)&&LO(m,m.innerText||m.textContent,{placement:"top",strategy:"fixed"},p.tooltipEffect)},handleCellMouseLeave:v=>{if(!ku(v))return;const g=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",g==null?void 0:g.row,g==null?void 0:g.column,g==null?void 0:g.cell,v)},tooltipContent:r,tooltipTrigger:n}}function JO(e){const t=Ie(ln),r=Fe("table");return{getRowStyle:(u,c)=>{const _=t==null?void 0:t.props.rowStyle;return typeof _=="function"?_.call(null,{row:u,rowIndex:c}):_||null},getRowClass:(u,c)=>{const _=[r.e("row")];(t==null?void 0:t.props.highlightCurrentRow)&&u===e.store.states.currentRow.value&&_.push("current-row"),e.stripe&&c%2===1&&_.push(r.em("row","striped"));const v=t==null?void 0:t.props.rowClassName;return typeof v=="string"?_.push(v):typeof v=="function"&&_.push(v.call(null,{row:u,rowIndex:c})),_},getCellStyle:(u,c,_,v)=>{const p=t==null?void 0:t.props.cellStyle;let g=p!=null?p:{};typeof p=="function"&&(g=p.call(null,{rowIndex:u,columnIndex:c,row:_,column:v}));const b=v.isSubColumn?null:Gd(c,e==null?void 0:e.fixed,e.store);return jo(b,"left"),jo(b,"right"),Object.assign({},g,b)},getCellClass:(u,c,_,v)=>{const p=v.isSubColumn?[]:Kd(r.b(),c,e==null?void 0:e.fixed,e.store),g=[v.id,v.align,v.className,...p],b=t==null?void 0:t.props.cellClassName;return typeof b=="string"?g.push(b):typeof b=="function"&&g.push(b.call(null,{rowIndex:u,columnIndex:c,row:_,column:v})),g.push(r.e("cell")),g.filter(m=>Boolean(m)).join(" ")},getSpan:(u,c,_,v)=>{let p=1,g=1;const b=t==null?void 0:t.props.spanMethod;if(typeof b=="function"){const m=b({row:u,column:c,rowIndex:_,columnIndex:v});Array.isArray(m)?(p=m[0],g=m[1]):typeof m=="object"&&(p=m.rowspan,g=m.colspan)}return{rowspan:p,colspan:g}},getColspanRealWidth:(u,c,_)=>{if(c<1)return u[_].realWidth;const v=u.map(({realWidth:p,width:g})=>p||g).slice(_,_+c);return Number(v.reduce((p,g)=>Number(p)+Number(g),-1))}}}function ZO(e){const t=Ie(ln),{handleDoubleClick:r,handleClick:n,handleContextMenu:o,handleMouseEnter:i,handleMouseLeave:s,handleCellMouseEnter:a,handleCellMouseLeave:l,tooltipContent:u,tooltipTrigger:c}=QO(e),{getRowStyle:_,getRowClass:v,getCellStyle:p,getCellClass:g,getSpan:b,getColspanRealWidth:m}=JO(e),d=J(()=>e.store.states.columns.value.findIndex(({type:w})=>w==="default")),f=(w,S)=>{const E=t.props.rowKey;return E?$t(w,E):S},h=(w,S,E,k=!1)=>{const{tooltipEffect:x,store:A}=e,{indent:L,columns:T}=A.states,H=v(w,S);let P=!0;return E&&(H.push(`el-table__row--level-${E.level}`),P=E.display),He("tr",{style:[P?null:{display:"none"},_(w,S)],class:H,key:f(w,S),onDblclick:I=>r(I,w),onClick:I=>n(I,w),onContextmenu:I=>o(I,w),onMouseenter:()=>i(S),onMouseleave:s},T.value.map((I,M)=>{const{rowspan:$,colspan:V}=b(w,I,S,M);if(!$||!V)return null;const U=Se({},I);U.realWidth=m(T.value,V,M);const Y={store:e.store,_self:e.context||t,column:U,row:w,$index:S,cellIndex:M,expanded:k};M===d.value&&E&&(Y.treeNode={indent:E.level*L.value,level:E.level},typeof E.expanded=="boolean"&&(Y.treeNode.expanded=E.expanded,"loading"in E&&(Y.treeNode.loading=E.loading),"noLazyChildren"in E&&(Y.treeNode.noLazyChildren=E.noLazyChildren)));const Z=`${S},${M}`,te=U.columnKey||U.rawColumnKey||"",B=y(M,I,Y);return He("td",{style:p(S,M,w,I),class:g(S,M,w,I),key:`${te}${Z}`,rowspan:$,colspan:V,onMouseenter:z=>a(z,je(Se({},w),{tooltipEffect:x})),onMouseleave:l},[B])}))},y=(w,S,E)=>S.renderCell(E);return{wrappedRowRender:(w,S)=>{const E=e.store,{isRowExpanded:k,assertRowKey:x}=E,{treeData:A,lazyTreeNodeMap:L,childrenColumnName:T,rowKey:H}=E.states,P=E.states.columns.value;if(P.some(({type:I})=>I==="expand")){const I=k(w),M=h(w,S,void 0,I),$=t.renderExpanded;return I?$?[[M,He("tr",{key:`expanded-row__${M.key}`},[He("td",{colspan:P.length,class:"el-table__cell el-table__expanded-cell"},[$({row:w,$index:S,store:E,expanded:I})])])]]:(console.error("[Element Error]renderExpanded is required."),M):[[M]]}else if(Object.keys(A.value).length){x();const I=$t(w,H.value);let M=A.value[I],$=null;M&&($={expanded:M.expanded,level:M.level,display:!0},typeof M.lazy=="boolean"&&(typeof M.loaded=="boolean"&&M.loaded&&($.noLazyChildren=!(M.children&&M.children.length)),$.loading=M.loading));const V=[h(w,S,$)];if(M){let U=0;const Y=(te,B)=>{!(te&&te.length&&B)||te.forEach(z=>{const O={display:B.display&&B.expanded,level:B.level+1,expanded:!1,noLazyChildren:!1,loading:!1},D=$t(z,H.value);if(D==null)throw new Error("For nested data item, row-key is required.");if(M=Se({},A.value[D]),M&&(O.expanded=M.expanded,M.level=M.level||O.level,M.display=!!(M.expanded&&O.display),typeof M.lazy=="boolean"&&(typeof M.loaded=="boolean"&&M.loaded&&(O.noLazyChildren=!(M.children&&M.children.length)),O.loading=M.loading)),U++,V.push(h(z,S+U,O)),M){const F=L.value[D]||z[T.value];Y(F,M)}})};M.display=!0;const Z=L.value[I]||w[T.value];Y(Z,M)}return V}else return h(w,S,void 0)},tooltipContent:u,tooltipTrigger:c}}const e6={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var t6=we({name:"ElTableBody",props:e6,setup(e){const t=ot(),r=Ie(ln),n=Fe("table"),{wrappedRowRender:o,tooltipContent:i,tooltipTrigger:s}=ZO(e),{onColumnsChange:a,onScrollableChange:l}=W_(r);return Be(e.store.states.hoverRow,(u,c)=>{if(!e.store.states.isComplex.value||!dt)return;let _=window.requestAnimationFrame;_||(_=v=>window.setTimeout(v,16)),_(()=>{var v;const p=(v=t==null?void 0:t.vnode.el)==null?void 0:v.querySelectorAll(`.${n.e("row")}`),g=p[c],b=p[u];g&&Qn(g,"hover-row"),b&&Vs(b,"hover-row")})}),Vo(()=>{var u;(u=ql)==null||u()}),ei(()=>{var u;(u=ql)==null||u()}),{ns:n,onColumnsChange:a,onScrollableChange:l,wrappedRowRender:o,tooltipContent:i,tooltipTrigger:s}},render(){const{wrappedRowRender:e,store:t}=this,r=t.states.data.value||[];return He("tbody",{},[r.reduce((n,o)=>n.concat(e(o,n.length)),[])])}});function Yd(e){const t=e.tableLayout==="auto";let r=e.columns||[];t&&r.every(o=>o.width===void 0)&&(r=[]);const n=o=>{const i={key:`${e.tableLayout}_${o.id}`,style:{},name:void 0};return t?i.style={width:`${o.width}px`}:i.name=o.id,i};return He("colgroup",{},r.map(o=>He("col",n(o))))}Yd.props=["columns","tableLayout"];function r6(){const e=Ie(ln),t=e==null?void 0:e.store,r=J(()=>t.states.fixedLeafColumnsLength.value),n=J(()=>t.states.rightFixedColumns.value.length),o=J(()=>t.states.columns.value.length),i=J(()=>t.states.fixedColumns.value.length),s=J(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:r,rightFixedLeafCount:n,columnsCount:o,leftFixedCount:i,rightFixedCount:s,columns:t.states.columns}}function n6(e){const{columns:t}=r6(),r=Fe("table");return{getCellClasses:(i,s)=>{const a=i[s],l=[r.e("cell"),a.id,a.align,a.labelClassName,...Kd(r.b(),s,a.fixed,e.store)];return a.className&&l.push(a.className),a.children||l.push(r.is("leaf")),l},getCellStyles:(i,s)=>{const a=Gd(s,i.fixed,e.store);return jo(a,"left"),jo(a,"right"),a},columns:t}}var i6=we({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:r,columns:n}=n6(e);return{ns:Fe("table"),getCellClasses:t,getCellStyles:r,columns:n}},render(){const{columns:e,getCellStyles:t,getCellClasses:r,summaryMethod:n,sumText:o,ns:i}=this,s=this.store.states.data.value;let a=[];return n?a=n({columns:e,data:s}):e.forEach((l,u)=>{if(u===0){a[u]=o;return}const c=s.map(g=>Number(g[l.property])),_=[];let v=!0;c.forEach(g=>{if(!Number.isNaN(+g)){v=!1;const b=`${g}`.split(".")[1];_.push(b?b.length:0)}});const p=Math.max.apply(null,_);v?a[u]="":a[u]=c.reduce((g,b)=>{const m=Number(b);return Number.isNaN(+m)?g:Number.parseFloat((g+b).toFixed(Math.min(p,20)))},0)}),He("table",{class:i.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[Yd({columns:e}),He("tbody",[He("tr",{},[...e.map((l,u)=>He("td",{key:u,colspan:l.colSpan,rowspan:l.rowSpan,class:r(e,u),style:t(l,u)},[He("div",{class:["cell",l.labelClassName]},[a[u]])]))])])])}});function o6(e){return{setCurrentRow:c=>{e.commit("setCurrentRow",c)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(c,_)=>{e.toggleRowSelection(c,_,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:c=>{e.clearFilter(c)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(c,_)=>{e.toggleRowExpansionAdapter(c,_)},clearSort:()=>{e.clearSort()},sort:(c,_)=>{e.commit("sort",{prop:c,order:_})}}}function s6(e,t,r,n){const o=X(!1),i=X(null),s=X(!1),a=M=>{s.value=M},l=X({width:null,height:null}),u=X(!1),c={display:"inline-block",verticalAlign:"middle"},_=X();Bi(()=>{t.setHeight(e.height)}),Bi(()=>{t.setMaxHeight(e.maxHeight)}),Be(()=>[e.currentRowKey,r.states.rowKey],([M,$])=>{!N($)||r.setCurrentRowKey(`${M}`)},{immediate:!0}),Be(()=>e.data,M=>{n.store.commit("setData",M)},{immediate:!0,deep:!0}),Bi(()=>{e.expandRowKeys&&r.setExpandRowKeysAdapter(e.expandRowKeys)});const v=()=>{n.store.commit("setHoverRow",null),n.hoverState&&(n.hoverState=null)},p=(M,$)=>{const{pixelX:V,pixelY:U}=$;Math.abs(V)>=Math.abs(U)&&(n.refs.bodyWrapper.scrollLeft+=$.pixelX/5)},g=J(()=>e.height||e.maxHeight||r.states.fixedColumns.value.length>0||r.states.rightFixedColumns.value.length>0),b=J(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),m=()=>{g.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(y)};ht(async()=>{await Xe(),r.updateColumns(),C(),requestAnimationFrame(m),l.value={width:_.value=n.vnode.el.offsetWidth,height:n.vnode.el.offsetHeight},r.states.columns.value.forEach(M=>{M.filteredValue&&M.filteredValue.length&&n.store.commit("filterChange",{column:M,values:M.filteredValue,silent:!0})}),n.$ready=!0});const d=(M,$)=>{if(!M)return;const V=Array.from(M.classList).filter(U=>!U.startsWith("is-scrolling-"));V.push(t.scrollX.value?$:"is-scrolling-none"),M.className=V.join(" ")},f=M=>{const{tableWrapper:$}=n.refs;d($,M)},h=M=>{const{tableWrapper:$}=n.refs;return!!($&&$.classList.contains(M))},y=function(){if(!n.refs.scrollBarRef)return;if(!t.scrollX.value){const B="is-scrolling-none";h(B)||f(B);return}const M=n.refs.scrollBarRef.wrap$;if(!M)return;const{scrollLeft:$,offsetWidth:V,scrollWidth:U}=M,{headerWrapper:Y,footerWrapper:Z}=n.refs;Y&&(Y.scrollLeft=$),Z&&(Z.scrollLeft=$);const te=U-V-1;$>=te?f("is-scrolling-right"):f($===0?"is-scrolling-left":"is-scrolling-middle")},C=()=>{var M;!n.refs.scrollBarRef||((M=n.refs.scrollBarRef.wrap$)==null||M.addEventListener("scroll",y,{passive:!0}),e.fit?_A(n.vnode.el,S):Di(window,"resize",m))};Yt(()=>{w()});const w=()=>{var M;(M=n.refs.scrollBarRef.wrap$)==null||M.removeEventListener("scroll",y,!0),e.fit?yA(n.vnode.el,S):Hi(window,"resize",m)},S=()=>{if(!n.$ready)return;let M=!1;const $=n.vnode.el,{width:V,height:U}=l.value,Y=_.value=$.offsetWidth;V!==Y&&(M=!0);const Z=$.offsetHeight;(e.height||g.value)&&U!==Z&&(M=!0),M&&(l.value={width:Y,height:Z},m())},E=Cr(),k=J(()=>{const{bodyWidth:M,scrollY:$,gutterWidth:V}=t;return M.value?`${M.value-($.value?V:0)}px`:""}),x=J(()=>e.maxHeight?"fixed":e.tableLayout);function A(M,$,V){const U=Bf(M),Y=e.showHeader?V:0;if(U!==null)return ze(U)?`calc(${U} - ${$}px - ${Y}px)`:U-$-Y}const L=J(()=>{const M=t.headerHeight.value||0,$=t.bodyHeight.value,V=t.footerHeight.value||0;if(e.height)return $||void 0;if(e.maxHeight)return A(e.maxHeight,V,M)}),T=J(()=>{const M=t.headerHeight.value||0,$=t.bodyHeight.value,V=t.footerHeight.value||0;if(e.height)return{height:$?`${$}px`:""};if(e.maxHeight){const U=A(e.maxHeight,V,M);if(U!==null)return{"max-height":`${U}${Mt(U)?"px":""}`}}return{}}),H=J(()=>{if(e.data&&e.data.length)return null;let M="100%";return t.appendHeight.value&&(M=`calc(100% - ${t.appendHeight.value}px)`),{width:_.value?`${_.value}px`:"",height:M}}),P=(M,$)=>{const V=n.refs.bodyWrapper;if(Math.abs($.spinY)>0){const U=V.scrollTop;$.pixelY<0&&U!==0&&M.preventDefault(),$.pixelY>0&&V.scrollHeight-V.clientHeight>U&&M.preventDefault(),V.scrollTop+=Math.ceil($.pixelY/5)}else V.scrollLeft+=Math.ceil($.pixelX/5)},R=J(()=>e.maxHeight?e.showSummary?{bottom:0}:{bottom:t.scrollX.value&&e.data.length?`${t.gutterWidth}px`:""}:e.showSummary?{height:t.tableHeight.value?`${t.tableHeight.value}px`:""}:{height:t.viewportHeight.value?`${t.viewportHeight.value}px`:""}),I=J(()=>{if(e.height)return{height:t.fixedBodyHeight.value?`${t.fixedBodyHeight.value}px`:""};if(e.maxHeight){let M=Bf(e.maxHeight);if(typeof M=="number")return M=t.scrollX.value?M-t.gutterWidth:M,e.showHeader&&(M-=t.headerHeight.value),M-=t.footerHeight.value,{"max-height":`${M}px`}}return{}});return{isHidden:o,renderExpanded:i,setDragVisible:a,isGroup:u,handleMouseLeave:v,handleHeaderFooterMousewheel:p,tableSize:E,bodyHeight:T,height:L,emptyBlockStyle:H,handleFixedMousewheel:P,fixedHeight:R,fixedBodyHeight:I,resizeProxyVisible:s,bodyWidth:k,resizeState:l,doLayout:m,tableBodyStyles:b,tableLayout:x,scrollbarViewStyle:c}}var a6={data:{type:Array,default:()=>[]},size:String,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1}};const l6=()=>{const e=X(),t=(i,s)=>{const a=e.value;a&&a.scrollTo(i,s)},r=(i,s)=>{const a=e.value;a&&Mt(s)&&["Top","Left"].includes(i)&&a[`setScroll${i}`](s)};return{scrollBarRef:e,scrollTo:t,setScrollTop:i=>r("Top",i),setScrollLeft:i=>r("Left",i)}};let c6=1;const u6=we({name:"ElTable",directives:{Mousewheel:K8},components:{TableHeader:XO,TableBody:t6,TableFooter:i6,ElScrollbar:Ac,hColgroup:Yd},props:a6,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t}=Ld(),r=Fe("table"),n=ot();ft(ln,n);const o=DO(n,e);n.store=o;const i=new FO({store:n.store,table:n,fit:e.fit,showHeader:e.showHeader});n.layout=i;const s=J(()=>(o.states.data.value||[]).length===0),{setCurrentRow:a,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:_,toggleAllSelection:v,toggleRowExpansion:p,clearSort:g,sort:b}=o6(o),{isHidden:m,renderExpanded:d,setDragVisible:f,isGroup:h,handleMouseLeave:y,handleHeaderFooterMousewheel:C,tableSize:w,bodyHeight:S,height:E,emptyBlockStyle:k,handleFixedMousewheel:x,fixedHeight:A,fixedBodyHeight:L,resizeProxyVisible:T,bodyWidth:H,resizeState:P,doLayout:R,tableBodyStyles:I,tableLayout:M,scrollbarViewStyle:$}=s6(e,i,o,n),{scrollBarRef:V,scrollTo:U,setScrollLeft:Y,setScrollTop:Z}=l6(),te=qs(R,50),B=`el-table_${c6++}`;n.tableId=B,n.state={isGroup:h,resizeState:P,doLayout:R,debouncedUpdateLayout:te};const z=J(()=>e.sumText||t("el.table.sumText")),O=J(()=>e.emptyText||t("el.table.emptyText"));return{ns:r,layout:i,store:o,handleHeaderFooterMousewheel:C,handleMouseLeave:y,tableId:B,tableSize:w,isHidden:m,isEmpty:s,renderExpanded:d,resizeProxyVisible:T,resizeState:P,isGroup:h,bodyWidth:H,bodyHeight:S,height:E,tableBodyStyles:I,emptyBlockStyle:k,debouncedUpdateLayout:te,handleFixedMousewheel:x,fixedHeight:A,fixedBodyHeight:L,setCurrentRow:a,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:_,toggleAllSelection:v,toggleRowExpansion:p,clearSort:g,doLayout:R,sort:b,t,setDragVisible:f,context:n,computedSumText:z,computedEmptyText:O,tableLayout:M,scrollbarViewStyle:$,scrollBarRef:V,scrollTo:U,setScrollLeft:Y,setScrollTop:Z}}}),f6=["data-prefix"],d6={ref:"hiddenColumns",class:"hidden-columns"};function h6(e,t,r,n,o,i){const s=Oe("hColgroup"),a=Oe("table-header"),l=Oe("table-body"),u=Oe("el-scrollbar"),c=Oe("table-footer"),_=ad("mousewheel");return K(),se("div",{ref:"tableWrapper",class:ne([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:We(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=v=>e.handleMouseLeave())},[W("div",{class:ne(e.ns.e("inner-wrapper"))},[W("div",d6,[Ee(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?at((K(),se("div",{key:0,ref:"headerWrapper",class:ne(e.ns.e("header-wrapper"))},[W("table",{ref:"tableHeader",class:ne(e.ns.e("header")),style:We(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[G(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),G(a,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[_,e.handleHeaderFooterMousewheel]]):ke("v-if",!0),W("div",{ref:"bodyWrapper",style:We(e.bodyHeight),class:ne(e.ns.e("body-wrapper"))},[G(u,{ref:"scrollBarRef",height:e.maxHeight?void 0:e.height,"max-height":e.maxHeight?e.height:void 0,"view-style":e.scrollbarViewStyle,always:e.scrollbarAlwaysOn},{default:Q(()=>[W("table",{ref:"tableBody",class:ne(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:We({width:e.bodyWidth,tableLayout:e.tableLayout})},[G(s,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(K(),Ce(a,{key:0,border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):ke("v-if",!0),G(l,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","row-style","store","stripe"])],6),e.isEmpty?(K(),se("div",{key:0,ref:"emptyBlock",style:We(e.emptyBlockStyle),class:ne(e.ns.e("empty-block"))},[W("span",{class:ne(e.ns.e("empty-text"))},[Ee(e.$slots,"empty",{},()=>[Te(me(e.computedEmptyText),1)])],2)],6)):ke("v-if",!0),e.$slots.append?(K(),se("div",{key:1,ref:"appendWrapper",class:ne(e.ns.e("append-wrapper"))},[Ee(e.$slots,"append")],2)):ke("v-if",!0)]),_:3},8,["height","max-height","view-style","always"])],6),e.border||e.isGroup?(K(),se("div",{key:1,class:ne(e.ns.e("border-left-patch"))},null,2)):ke("v-if",!0)],2),e.showSummary?at((K(),se("div",{key:0,ref:"footerWrapper",class:ne(e.ns.e("footer-wrapper"))},[G(c,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:We(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[Ut,!e.isEmpty],[_,e.handleHeaderFooterMousewheel]]):ke("v-if",!0),at(W("div",{ref:"resizeProxy",class:ne(e.ns.e("column-resize-proxy"))},null,2),[[Ut,e.resizeProxyVisible]])],46,f6)}var p6=Ne(u6,[["render",h6],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const v6={selection:"table-column--selection",expand:"table__expand-column"},g6={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},m6=e=>v6[e]||"",_6={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&e.states.data.value.length===0}return He($o,{disabled:t(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value})},renderCell({row:e,column:t,store:r,$index:n}){return He($o,{disabled:t.selectable?!t.selectable.call(null,e,n):!1,size:r.states.tableSize.value,onChange:()=>{r.commit("rowSelectedChanged",e)},onClick:o=>o.stopPropagation(),modelValue:r.isSelected(e)})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let r=t+1;const n=e.index;return typeof n=="number"?r=t+n:typeof n=="function"&&(r=n(t)),He("div",{},[r])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:r}){const{ns:n}=t,o=[n.e("expand-icon")];return r&&o.push(n.em("expand-icon","expanded")),He("div",{class:o,onClick:function(s){s.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[He(mt,null,{default:()=>[He(Ed)]})]})},sortable:!1,resizable:!1}};function y6({row:e,column:t,$index:r}){var n;const o=t.property,i=o&&fl(e,o).value;return t&&t.formatter?t.formatter(e,t,i,r):((n=i==null?void 0:i.toString)==null?void 0:n.call(i))||""}function b6({row:e,treeNode:t,store:r},n=!1){const{ns:o}=r;if(!t)return n?[He("span",{class:o.e("placeholder")})]:null;const i=[],s=function(a){a.stopPropagation(),r.loadOrToggle(e)};if(t.indent&&i.push(He("span",{class:o.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const a=[o.e("expand-icon"),t.expanded?o.em("expand-icon","expanded"):""];let l=Ed;t.loading&&(l=mc),i.push(He("div",{class:a,onClick:s},{default:()=>[He(mt,{class:{[o.is("loading")]:t.loading}},{default:()=>[He(l)]})]}))}else i.push(He("span",{class:o.e("placeholder")}));return i}function D0(e,t){return e.reduce((r,n)=>(r[n]=n,r),t)}function C6(e,t){const r=ot();return{registerComplexWatchers:()=>{const i=["fixed"],s={realWidth:"width",realMinWidth:"minWidth"},a=D0(i,s);Object.keys(a).forEach(l=>{const u=s[l];qe(t,u)&&Be(()=>t[u],c=>{let _=c;u==="width"&&l==="realWidth"&&(_=Vd(c)),u==="minWidth"&&l==="realMinWidth"&&(_=F_(c)),r.columnConfig.value[u]=_,r.columnConfig.value[l]=_;const v=u==="fixed";e.value.store.scheduleLayout(v)})})},registerNormalWatchers:()=>{const i=["label","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],s={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},a=D0(i,s);Object.keys(a).forEach(l=>{const u=s[l];qe(t,u)&&Be(()=>t[u],c=>{r.columnConfig.value[l]=c})})}}}function w6(e,t,r){const n=ot(),o=X(""),i=X(!1),s=X(),a=X(),l=Fe("table");Bi(()=>{s.value=e.align?`is-${e.align}`:null,s.value}),Bi(()=>{a.value=e.headerAlign?`is-${e.headerAlign}`:s.value,a.value});const u=J(()=>{let h=n.vnode.vParent||n.parent;for(;h&&!h.tableId&&!h.columnId;)h=h.vnode.vParent||h.parent;return h}),c=J(()=>{const{store:h}=n.parent;if(!h)return!1;const{treeData:y}=h.states,C=y.value;return C&&Object.keys(C).length>0}),_=X(Vd(e.width)),v=X(F_(e.minWidth)),p=h=>(_.value&&(h.width=_.value),v.value&&(h.minWidth=v.value),h.minWidth||(h.minWidth=80),h.realWidth=Number(h.width===void 0?h.minWidth:h.width),h),g=h=>{const y=h.type,C=_6[y]||{};Object.keys(C).forEach(S=>{const E=C[S];S!=="className"&&E!==void 0&&(h[S]=E)});const w=m6(y);if(w){const S=`${N(l.namespace)}-${w}`;h.className=h.className?`${h.className} ${S}`:S}return h},b=h=>{Array.isArray(h)?h.forEach(C=>y(C)):y(h);function y(C){var w;((w=C==null?void 0:C.type)==null?void 0:w.name)==="ElTableColumn"&&(C.vParent=n)}};return{columnId:o,realAlign:s,isSubColumn:i,realHeaderAlign:a,columnOrTableParent:u,setColumnWidth:p,setColumnForcedProps:g,setColumnRenders:h=>{e.renderHeader||h.type!=="selection"&&(h.renderHeader=w=>{n.columnConfig.value.label;const S=t.header;return S?S(w):h.label});let y=h.renderCell;const C=c.value;return h.type==="expand"?(h.renderCell=w=>He("div",{class:"cell"},[y(w)]),r.value.renderExpanded=w=>t.default?t.default(w):t.default):(y=y||y6,h.renderCell=w=>{let S=null;if(t.default){const A=t.default(w);S=A.some(L=>L.type!==rr)?A:y(w)}else S=y(w);const E=C&&w.cellIndex===0,k=b6(w,E),x={class:"cell",style:{}};return h.showOverflowTooltip&&(x.class=`${x.class} ${N(l.namespace)}-tooltip`,x.style={width:`${(w.column.realWidth||Number(w.column.width))-1}px`}),b(S),He("div",x,[k,S])}),h},getPropsData:(...h)=>h.reduce((y,C)=>(Array.isArray(C)&&C.forEach(w=>{y[w]=e[w]}),y),{}),getColumnElIndex:(h,y)=>Array.prototype.indexOf.call(h,y)}}var S6={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showTooltipWhenOverflow:Boolean,showOverflowTooltip:Boolean,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let x6=1;var q_=we({name:"ElTableColumn",components:{ElCheckbox:$o},props:S6,setup(e,{slots:t}){const r=ot(),n=X({}),o=J(()=>{let f=r.parent;for(;f&&!f.tableId;)f=f.parent;return f}),{registerNormalWatchers:i,registerComplexWatchers:s}=C6(o,e),{columnId:a,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:c,setColumnWidth:_,setColumnForcedProps:v,setColumnRenders:p,getPropsData:g,getColumnElIndex:b,realAlign:m}=w6(e,t,o),d=c.value;a.value=`${d.tableId||d.columnId}_column_${x6++}`,ac(()=>{l.value=o.value!==d;const f=e.type||"default",h=e.sortable===""?!0:e.sortable,y=je(Se({},g6[f]),{id:a.value,type:f,property:e.prop||e.property,align:m,headerAlign:u,showOverflowTooltip:e.showOverflowTooltip||e.showTooltipWhenOverflow,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:h,index:e.index,rawColumnKey:r.vnode.key});let k=g(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);k=AO(y,k),k=kO(p,_,v)(k),n.value=k,i(),s()}),ht(()=>{var f;const h=c.value,y=l.value?h.vnode.el.children:(f=h.refs.hiddenColumns)==null?void 0:f.children,C=()=>b(y||[],r.vnode.el);n.value.getColumnIndex=C,C()>-1&&o.value.store.commit("insertColumn",n.value,l.value?h.columnConfig.value:null)}),Yt(()=>{o.value.store.commit("removeColumn",n.value,l.value?d.columnConfig.value:null)}),r.columnId=a.value,r.columnConfig=n},render(){var e,t,r;try{const n=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),o=[];if(Array.isArray(n))for(const s of n)((r=s.type)==null?void 0:r.name)==="ElTableColumn"||s.shapeFlag&2?o.push(s):s.type===Ve&&Array.isArray(s.children)&&s.children.forEach(a=>{(a==null?void 0:a.patchFlag)!==1024&&!ze(a==null?void 0:a.children)&&o.push(a)});return He("div",o)}catch{return He("div",[])}}});const E6=Ct(p6,{TableColumn:q_}),A6=Vr(q_),k6=Ge({tabs:{type:De(Array),default:()=>Ad([])}}),T6={name:"ElTabBar"},L6=we(je(Se({},T6),{props:k6,setup(e,{expose:t}){const r=e,n="ElTabBar",o=ot(),i=Ie(Cc);i||qi(n,"<el-tabs><el-tab-bar /></el-tabs>");const s=Fe("tabs"),a=X(),l=X(),u=()=>{let _=0,v=0;const p=["top","bottom"].includes(i.props.tabPosition)?"width":"height",g=p==="width"?"x":"y";return r.tabs.every(b=>{var m,d,f,h;const y=(d=(m=o.parent)==null?void 0:m.refs)==null?void 0:d[`tab-${b.paneName}`];if(!y)return!1;if(!b.active)return!0;v=y[`client${$r(p)}`];const C=g==="x"?"left":"top";_=y.getBoundingClientRect()[C]-((h=(f=y.parentElement)==null?void 0:f.getBoundingClientRect()[C])!=null?h:0);const w=window.getComputedStyle(y);return p==="width"&&(r.tabs.length>1&&(v-=Number.parseFloat(w.paddingLeft)+Number.parseFloat(w.paddingRight)),_+=Number.parseFloat(w.paddingLeft)),!1}),{[p]:`${v}px`,transform:`translate${$r(g)}(${_}px)`}},c=()=>l.value=u();return Be(()=>r.tabs,async()=>{await Xe(),c()},{immediate:!0}),ta(a,()=>c()),t({ref:a,update:c}),(_,v)=>(K(),se("div",{ref_key:"barRef",ref:a,class:ne([N(s).e("active-bar"),N(s).is(N(i).props.tabPosition)]),style:We(l.value)},null,6))}}));var R6=Ne(L6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const B6=Ge({panes:{type:De(Array),default:()=>Ad([])},currentName:{type:[String,Number],default:""},editable:Boolean,onTabClick:{type:De(Function),default:kt},onTabRemove:{type:De(Function),default:kt},type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),H0="ElTabNav",O6=we({name:H0,props:B6,setup(e,{expose:t}){const r=ot(),n=Ie(Cc);n||qi(H0,"<el-tabs><tab-nav /></el-tabs>");const o=Fe("tabs"),i=dA(),s=gA(),a=X(),l=X(),u=X(),c=X(!1),_=X(0),v=X(!1),p=X(!0),g=J(()=>["top","bottom"].includes(n.props.tabPosition)?"width":"height"),b=J(()=>({transform:`translate${g.value==="width"?"X":"Y"}(-${_.value}px)`})),m=()=>{if(!a.value)return;const S=a.value[`offset${$r(g.value)}`],E=_.value;if(!E)return;const k=E>S?E-S:0;_.value=k},d=()=>{if(!a.value||!l.value)return;const S=l.value[`offset${$r(g.value)}`],E=a.value[`offset${$r(g.value)}`],k=_.value;if(S-k<=E)return;const x=S-k>E*2?k+E:S-E;_.value=x},f=()=>{const S=l.value;if(!c.value||!u.value||!a.value||!S)return;const E=u.value.querySelector(".is-active");if(!E)return;const k=a.value,x=["top","bottom"].includes(n.props.tabPosition),A=E.getBoundingClientRect(),L=k.getBoundingClientRect(),T=x?S.offsetWidth-L.width:S.offsetHeight-L.height,H=_.value;let P=H;x?(A.left<L.left&&(P=H-(L.left-A.left)),A.right>L.right&&(P=H+A.right-L.right)):(A.top<L.top&&(P=H-(L.top-A.top)),A.bottom>L.bottom&&(P=H+(A.bottom-L.bottom))),P=Math.max(P,0),_.value=Math.min(P,T)},h=()=>{if(!l.value||!a.value)return;const S=l.value[`offset${$r(g.value)}`],E=a.value[`offset${$r(g.value)}`],k=_.value;if(E<S){const x=_.value;c.value=c.value||{},c.value.prev=x,c.value.next=x+E<S,S-x<E&&(_.value=S-E)}else c.value=!1,k>0&&(_.value=0)},y=S=>{const E=S.code,{up:k,down:x,left:A,right:L}=Ze;if(![k,x,A,L].includes(E))return;const T=Array.from(S.currentTarget.querySelectorAll("[role=tab]")),H=T.indexOf(S.target);let P;E===A||E===k?H===0?P=T.length-1:P=H-1:H<T.length-1?P=H+1:P=0,T[P].focus(),T[P].click(),C()},C=()=>{p.value&&(v.value=!0)},w=()=>v.value=!1;return Be(i,S=>{S==="hidden"?p.value=!1:S==="visible"&&setTimeout(()=>p.value=!0,50)}),Be(s,S=>{S?setTimeout(()=>p.value=!0,50):p.value=!1}),ta(u,h),ht(()=>setTimeout(()=>f(),0)),ei(()=>h()),t({scrollToActiveTab:f,removeFocus:w}),Be(()=>e.panes,()=>r.update(),{flush:"post"}),()=>{const S=c.value?[G("span",{class:[o.e("nav-prev"),o.is("disabled",!c.value.prev)],onClick:m},[G(mt,null,{default:()=>[G(OA,null,null)]})]),G("span",{class:[o.e("nav-next"),o.is("disabled",!c.value.next)],onClick:d},[G(mt,null,{default:()=>[G(Ed,null,null)]})])]:null,E=e.panes.map((k,x)=>{var A,L;const T=k.props.name||k.index||`${x}`,H=k.isClosable||e.editable;k.index=`${x}`;const P=H?G(mt,{class:"is-icon-close",onClick:M=>e.onTabRemove(k,M)},{default:()=>[G(Fi,null,null)]}):null,R=((L=(A=k.slots).label)==null?void 0:L.call(A))||k.props.label,I=k.active?0:-1;return G("div",{ref:`tab-${T}`,class:[o.e("item"),o.is(n.props.tabPosition),o.is("active",k.active),o.is("disabled",k.props.disabled),o.is("closable",H),o.is("focus",v.value)],id:`tab-${T}`,key:`tab-${T}`,"aria-controls":`pane-${T}`,role:"tab","aria-selected":k.active,tabindex:I,onFocus:()=>C(),onBlur:()=>w(),onClick:M=>{w(),e.onTabClick(k,T,M)},onKeydown:M=>{H&&(M.code===Ze.delete||M.code===Ze.backspace)&&e.onTabRemove(k,M)}},[R,P])});return G("div",{ref:u,class:[o.e("nav-wrap"),o.is("scrollable",!!c.value),o.is(n.props.tabPosition)]},[S,G("div",{class:o.e("nav-scroll"),ref:a},[G("div",{class:[o.e("nav"),o.is(n.props.tabPosition),o.is("stretch",e.stretch&&["top","bottom"].includes(n.props.tabPosition))],ref:l,style:b.value,role:"tablist",onKeydown:y},[e.type?null:G(R6,{tabs:[...e.panes]},null),E])])])}}}),I6=Ge({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number],default:""},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:De(Function),default:()=>!0},stretch:Boolean}),Tu=e=>ze(e)||Mt(e),M6={[Tt]:e=>Tu(e),"tab-click":(e,t)=>t instanceof Event,"tab-change":e=>Tu(e),edit:(e,t)=>["remove","add"].includes(t),"tab-remove":e=>Tu(e),"tab-add":()=>!0};var P6=we({name:"ElTabs",props:I6,emits:M6,setup(e,{emit:t,slots:r,expose:n}){const o=Fe("tabs"),i=X(),s=sr({}),a=X(e.modelValue||e.activeName||"0"),l=p=>{a.value=p,t(Tt,p),t("tab-change",p)},u=async p=>{var g,b,m;if(a.value!==p)try{await((g=e.beforeLeave)==null?void 0:g.call(e,p,a.value))!==!1&&(l(p),(m=(b=i.value)==null?void 0:b.removeFocus)==null||m.call(b))}catch{}},c=(p,g,b)=>{p.props.disabled||(u(g),t("tab-click",p,b))},_=(p,g)=>{p.props.disabled||(g.stopPropagation(),t("edit",p.props.name,"remove"),t("tab-remove",p.props.name))},v=()=>{t("edit",void 0,"add"),t("tab-add")};return Be(()=>e.activeName,p=>u(p)),Be(()=>e.modelValue,p=>u(p)),Be(a,async()=>{var p;(p=i.value)==null||p.scrollToActiveTab()}),ft(Cc,{props:e,currentName:a,registerPane:b=>s[b.uid]=b,unregisterPane:b=>delete s[b]}),n({currentName:a}),()=>{const p=e.editable||e.addable?G("span",{class:o.e("new-tab"),tabindex:"0",onClick:v,onKeydown:m=>{m.code===Ze.enter&&v()}},[G(mt,{class:o.is("icon-plus")},{default:()=>[G(N4,null,null)]})]):null,g=G("div",{class:[o.e("header"),o.is(e.tabPosition)]},[p,G(O6,{ref:i,currentName:a.value,editable:e.editable,type:e.type,panes:Object.values(s),stretch:e.stretch,onTabClick:c,onTabRemove:_},null)]),b=G("div",{class:o.e("content")},[Ee(r,"default")]);return G("div",{class:[o.b(),o.m(e.tabPosition),{[o.m("card")]:e.type==="card",[o.m("border-card")]:e.type==="border-card"}]},[...e.tabPosition!=="bottom"?[g,b]:[b,g]])}}});const D6=Ge({label:{type:String,default:""},name:{type:[String,Number],default:""},closable:Boolean,disabled:Boolean,lazy:Boolean}),H6=["id","aria-hidden","aria-labelledby"],F6={name:"ElTabPane"},N6=we(je(Se({},F6),{props:D6,setup(e){const t=e,r="ElTabPane",n=ot(),o=ea(),i=Ie(Cc);i||qi(r,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const s=Fe("tab-pane"),a=X(),l=J(()=>t.closable||i.props.closable),u=Up(()=>i.currentName.value===(t.name||a.value)),c=X(u.value),_=J(()=>t.name||a.value),v=Up(()=>!t.lazy||c.value||u.value);Be(u,g=>{g&&(c.value=!0)});const p=sr({uid:n.uid,slots:o,props:t,paneName:_,active:u,index:a,isClosable:l});return ht(()=>{i.registerPane(p)}),Vo(()=>{i.unregisterPane(p.uid)}),(g,b)=>N(v)?at((K(),se("div",{key:0,id:`pane-${N(_)}`,class:ne(N(s).b()),role:"tabpanel","aria-hidden":!N(u),"aria-labelledby":`tab-${N(_)}`},[Ee(g.$slots,"default")],10,H6)),[[Ut,N(u)]]):ke("v-if",!0)}}));var V_=Ne(N6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const $6=Ct(P6,{TabPane:V_}),j6=Vr(V_);function U6(e){let t;const r=X(!1),n=sr(je(Se({},e),{originalPosition:"",originalOverflow:"",visible:!1}));function o(v){n.text=v}function i(){const v=n.parent;if(!v.vLoadingAddClassList){let p=v.getAttribute("loading-number");p=Number.parseInt(p)-1,p?v.setAttribute("loading-number",p.toString()):(Qn(v,"el-loading-parent--relative"),v.removeAttribute("loading-number")),Qn(v,"el-loading-parent--hidden")}s(),c.unmount()}function s(){var v,p;(p=(v=_.$el)==null?void 0:v.parentNode)==null||p.removeChild(_.$el)}function a(){var v;if(e.beforeClose&&!e.beforeClose())return;const p=n.parent;p.vLoadingAddClassList=void 0,r.value=!0,clearTimeout(t),t=window.setTimeout(()=>{r.value&&(r.value=!1,i())},400),n.visible=!1,(v=e.closed)==null||v.call(e)}function l(){!r.value||(r.value=!1,i())}const c=Lg({name:"ElLoading",setup(){return()=>{const v=n.spinner||n.svg,p=He("svg",Se({class:"circular",viewBox:n.svgViewBox?n.svgViewBox:"25 25 50 50"},v?{innerHTML:v}:{}),[He("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none"})]),g=n.text?He("p",{class:"el-loading-text"},[n.text]):void 0;return He(wr,{name:"el-loading-fade",onAfterLeave:l},{default:Q(()=>[at(G("div",{style:{backgroundColor:n.background||""},class:["el-loading-mask",n.customClass,n.fullscreen?"is-fullscreen":""]},[He("div",{class:"el-loading-spinner"},[p,g])]),[[Ut,n.visible]])])})}}}),_=c.mount(document.createElement("div"));return je(Se({},Ui(n)),{setText:o,remvoeElLoadingChild:s,close:a,handleAfterLeave:l,vm:_,get $el(){return _.$el}})}let Xa;const W6=function(e={}){if(!dt)return;const t=z6(e);if(t.fullscreen&&Xa)return Xa;const r=U6(je(Se({},t),{closed:()=>{var o;(o=t.closed)==null||o.call(t),t.fullscreen&&(Xa=void 0)}}));q6(t,t.parent,r),F0(t,t.parent,r),t.parent.vLoadingAddClassList=()=>F0(t,t.parent,r);let n=t.parent.getAttribute("loading-number");return n?n=`${Number.parseInt(n)+1}`:n="1",t.parent.setAttribute("loading-number",n),t.parent.appendChild(r.$el),Xe(()=>r.visible.value=t.visible),t.fullscreen&&(Xa=r),r},z6=e=>{var t,r,n,o;let i;return ze(e.target)?i=(t=document.querySelector(e.target))!=null?t:document.body:i=e.target||document.body,{parent:i===document.body||e.body?document.body:i,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:i===document.body&&((r=e.fullscreen)!=null?r:!0),lock:(n=e.lock)!=null?n:!1,customClass:e.customClass||"",visible:(o=e.visible)!=null?o:!0,target:i}},q6=async(e,t,r)=>{const{nextZIndex:n}=Gi(),o={};if(e.fullscreen)r.originalPosition.value=vn(document.body,"position"),r.originalOverflow.value=vn(document.body,"overflow"),o.zIndex=n();else if(e.parent===document.body){r.originalPosition.value=vn(document.body,"position"),await Xe();for(const i of["top","left"]){const s=i==="top"?"scrollTop":"scrollLeft";o[i]=`${e.target.getBoundingClientRect()[i]+document.body[s]+document.documentElement[s]-Number.parseInt(vn(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])o[i]=`${e.target.getBoundingClientRect()[i]}px`}else r.originalPosition.value=vn(t,"position");for(const[i,s]of Object.entries(o))r.$el.style[i]=s},F0=(e,t,r)=>{r.originalPosition.value!=="absolute"&&r.originalPosition.value!=="fixed"?Vs(t,"el-loading-parent--relative"):Qn(t,"el-loading-parent--relative"),e.fullscreen&&e.lock?Vs(t,"el-loading-parent--hidden"):Qn(t,"el-loading-parent--hidden")},If=Symbol("ElLoading"),N0=(e,t)=>{var r,n,o,i;const s=t.instance,a=v=>it(t.value)?t.value[v]:void 0,l=v=>{const p=ze(v)&&(s==null?void 0:s[v])||v;return p&&X(p)},u=v=>l(a(v)||e.getAttribute(`element-loading-${Zn(v)}`)),c=(r=a("fullscreen"))!=null?r:t.modifiers.fullscreen,_={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:c,target:(n=a("target"))!=null?n:c?void 0:e,body:(o=a("body"))!=null?o:t.modifiers.body,lock:(i=a("lock"))!=null?i:t.modifiers.lock};e[If]={options:_,instance:W6(_)}},V6=(e,t)=>{for(const r of Object.keys(t))yt(t[r])&&(t[r].value=e[r])},K6={mounted(e,t){t.value&&N0(e,t)},updated(e,t){const r=e[If];t.oldValue!==t.value&&(t.value&&!t.oldValue?N0(e,t):t.value&&t.oldValue?it(t.value)&&V6(t.value,r.options):r==null||r.instance.close())},unmounted(e){var t;(t=e[If])==null||t.instance.close()}},K_=["success","info","warning","error"],G6=Ge({customClass:{type:String,default:""},center:{type:Boolean,default:!1},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:3e3},icon:{type:Ni,default:""},id:{type:String,default:""},message:{type:De([String,Object,Function]),default:""},onClose:{type:De(Function),required:!1},showClose:{type:Boolean,default:!1},type:{type:String,values:K_,default:"info"},offset:{type:Number,default:20},zIndex:{type:Number,default:0},grouping:{type:Boolean,default:!1},repeatNum:{type:Number,default:1}}),Y6={destroy:()=>!0},X6=we({name:"ElMessage",components:Se({ElBadge:h8,ElIcon:mt},yc),props:G6,emits:Y6,setup(e){const t=Fe("message"),r=X(!1),n=X(e.type?e.type==="error"?"danger":e.type:"info");let o;const i=J(()=>{const v=e.type;return{[t.bm("icon",v)]:v&&wn[v]}}),s=J(()=>e.icon||wn[e.type]||""),a=J(()=>({top:`${e.offset}px`,zIndex:e.zIndex}));function l(){e.duration>0&&({stop:o}=Nl(()=>{r.value&&c()},e.duration))}function u(){o==null||o()}function c(){r.value=!1}function _({code:v}){v===Ze.esc?r.value&&c():l()}return ht(()=>{l(),r.value=!0}),Be(()=>e.repeatNum,()=>{u(),l()}),yr(document,"keydown",_),{ns:t,typeClass:i,iconComponent:s,customStyle:a,visible:r,badgeType:n,close:c,clearTimer:u,startTimer:l}}}),Q6=["id"],J6=["innerHTML"];function Z6(e,t,r,n,o,i){const s=Oe("el-badge"),a=Oe("el-icon"),l=Oe("close");return K(),Ce(wr,{name:e.ns.b("fade"),onBeforeLeave:e.onClose,onAfterLeave:t[2]||(t[2]=u=>e.$emit("destroy"))},{default:Q(()=>[at(W("div",{id:e.id,class:ne([e.ns.b(),{[e.ns.m(e.type)]:e.type&&!e.icon},e.ns.is("center",e.center),e.ns.is("closable",e.showClose),e.customClass]),style:We(e.customStyle),role:"alert",onMouseenter:t[0]||(t[0]=(...u)=>e.clearTimer&&e.clearTimer(...u)),onMouseleave:t[1]||(t[1]=(...u)=>e.startTimer&&e.startTimer(...u))},[e.repeatNum>1?(K(),Ce(s,{key:0,value:e.repeatNum,type:e.badgeType,class:ne(e.ns.e("badge"))},null,8,["value","type","class"])):ke("v-if",!0),e.iconComponent?(K(),Ce(a,{key:1,class:ne([e.ns.e("icon"),e.typeClass])},{default:Q(()=>[(K(),Ce(jt(e.iconComponent)))]),_:1},8,["class"])):ke("v-if",!0),Ee(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(K(),se(Ve,{key:1},[ke(" Caution here, message could've been compromised, never use user's input as message "),W("p",{class:ne(e.ns.e("content")),innerHTML:e.message},null,10,J6)],2112)):(K(),se("p",{key:0,class:ne(e.ns.e("content"))},me(e.message),3))]),e.showClose?(K(),Ce(a,{key:2,class:ne(e.ns.e("closeBtn")),onClick:er(e.close,["stop"])},{default:Q(()=>[G(l)]),_:1},8,["class","onClick"])):ke("v-if",!0)],46,Q6),[[Ut,e.visible]])]),_:3},8,["name","onBeforeLeave"])}var eI=Ne(X6,[["render",Z6],["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);const pr=[];let tI=1;const Uo=function(e={},t){if(!dt)return{close:()=>{}};if(Mt(xf.max)&&pr.length>=xf.max)return{close:()=>{}};if(!It(e)&&it(e)&&e.grouping&&!It(e.message)&&pr.length){const _=pr.find(v=>{var p,g,b;return`${(g=(p=v.vm.props)==null?void 0:p.message)!=null?g:""}`==`${(b=e.message)!=null?b:""}`});if(_)return _.vm.component.props.repeatNum+=1,_.vm.component.props.type=(e==null?void 0:e.type)||"info",{close:()=>c.component.proxy.visible=!1}}(ze(e)||It(e))&&(e={message:e});let r=e.offset||20;pr.forEach(({vm:_})=>{var v;r+=(((v=_.el)==null?void 0:v.offsetHeight)||0)+16}),r+=16;const{nextZIndex:n}=Gi(),o=`message_${tI++}`,i=e.onClose,s=je(Se({zIndex:n()},e),{offset:r,id:o,onClose:()=>{rI(o,i)}});let a=document.body;Mo(e.appendTo)?a=e.appendTo:ze(e.appendTo)&&(a=document.querySelector(e.appendTo)),Mo(a)||(a=document.body);const l=document.createElement("div");l.className=`container_${o}`;const u=s.message,c=G(eI,s,Ue(u)?{default:u}:It(u)?{default:()=>u}:null);return c.appContext=t||Uo._context,c.props.onDestroy=()=>{Ro(null,l)},Ro(c,l),pr.push({vm:c}),a.appendChild(l.firstElementChild),{close:()=>c.component.proxy.visible=!1}};K_.forEach(e=>{Uo[e]=(t={},r)=>((ze(t)||It(t))&&(t={message:t}),Uo(je(Se({},t),{type:e}),r))});function rI(e,t){const r=pr.findIndex(({vm:s})=>e===s.component.props.id);if(r===-1)return;const{vm:n}=pr[r];if(!n)return;t==null||t(n);const o=n.el.offsetHeight;pr.splice(r,1);const i=pr.length;if(!(i<1))for(let s=r;s<i;s++){const a=Number.parseInt(pr[s].vm.el.style.top,10)-o-16;pr[s].vm.component.props.offset=a}}function nI(){var e;for(let t=pr.length-1;t>=0;t--){const r=pr[t].vm.component;(e=r==null?void 0:r.proxy)==null||e.close()}}Uo.closeAll=nI;Uo._context=null;const gn=wm(Uo,"$message"),iI=we({name:"ElMessageBox",directives:{TrapFocus:$8},components:Se({ElButton:Ir,ElInput:Xo,ElOverlay:S_,ElIcon:mt},yc),inheritAttrs:!1,props:{buttonSize:{type:String,validator:bc},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{t:r}=Ld(),n=Fe("message-box"),o=X(!1),{nextZIndex:i}=Gi(),s=sr({beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:i()}),a=J(()=>{const k=s.type;return{[n.bm("icon",k)]:k&&wn[k]}}),l=Cr(J(()=>e.buttonSize),{prop:!0,form:!0,formItem:!0}),u=J(()=>s.icon||wn[s.type]||""),c=J(()=>!!s.message),_=X(),v=X(),p=X(),g=X(),b=J(()=>s.confirmButtonClass);Be(()=>s.inputValue,async k=>{await Xe(),e.boxType==="prompt"&&k!==null&&w()},{immediate:!0}),Be(()=>o.value,k=>{k&&((e.boxType==="alert"||e.boxType==="confirm")&&Xe().then(()=>{var x,A,L;(L=(A=(x=g.value)==null?void 0:x.$el)==null?void 0:A.focus)==null||L.call(A)}),s.zIndex=i()),e.boxType==="prompt"&&(k?Xe().then(()=>{p.value&&p.value.$el&&S().focus()}):(s.editorErrorMessage="",s.validateError=!1))});const m=J(()=>e.draggable);Im(_,v,m),ht(async()=>{await Xe(),e.closeOnHashChange&&Di(window,"hashchange",d)}),Yt(()=>{e.closeOnHashChange&&Hi(window,"hashchange",d)});function d(){!o.value||(o.value=!1,Xe(()=>{s.action&&t("action",s.action)}))}const f=()=>{e.closeOnClickModal&&C(s.distinguishCancelAndClose?"close":"cancel")},h=Rd(f),y=k=>{if(s.inputType!=="textarea")return k.preventDefault(),C("confirm")},C=k=>{var x;e.boxType==="prompt"&&k==="confirm"&&!w()||(s.action=k,s.beforeClose?(x=s.beforeClose)==null||x.call(s,k,s,d):d())},w=()=>{if(e.boxType==="prompt"){const k=s.inputPattern;if(k&&!k.test(s.inputValue||""))return s.editorErrorMessage=s.inputErrorMessage||r("el.messagebox.error"),s.validateError=!0,!1;const x=s.inputValidator;if(typeof x=="function"){const A=x(s.inputValue);if(A===!1)return s.editorErrorMessage=s.inputErrorMessage||r("el.messagebox.error"),s.validateError=!0,!1;if(typeof A=="string")return s.editorErrorMessage=A,s.validateError=!0,!1}}return s.editorErrorMessage="",s.validateError=!1,!0},S=()=>{const k=p.value.$refs;return k.input||k.textarea},E=()=>{C("close")};return e.closeOnPressEscape?Pm({handleClose:E},o):b3(o,"keydown",k=>k.code===Ze.esc),e.lockScroll&&Mm(o),Dm(o),je(Se({},Ui(s)),{ns:n,overlayEvent:h,visible:o,hasMessage:c,typeClass:a,btnSize:l,iconComponent:u,confirmButtonClasses:b,rootRef:_,headerRef:v,inputRef:p,confirmRef:g,doClose:d,handleClose:E,handleWrapperClick:f,handleInputEnter:y,handleAction:C,t:r})}}),oI=["aria-label"],sI={key:0},aI=["innerHTML"];function lI(e,t,r,n,o,i){const s=Oe("el-icon"),a=Oe("close"),l=Oe("el-input"),u=Oe("el-button"),c=Oe("el-overlay"),_=ad("trap-focus");return K(),Ce(wr,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=v=>e.$emit("vanish"))},{default:Q(()=>[at(G(c,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:Q(()=>[W("div",{class:ne(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...v)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...v)),onMousedown:t[9]||(t[9]=(...v)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...v)),onMouseup:t[10]||(t[10]=(...v)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...v))},[at((K(),se("div",{ref:"rootRef",role:"dialog","aria-label":e.title||"dialog","aria-modal":"true",class:ne([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:We(e.customStyle),onClick:t[7]||(t[7]=er(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(K(),se("div",{key:0,ref:"headerRef",class:ne(e.ns.e("header"))},[W("div",{class:ne(e.ns.e("title"))},[e.iconComponent&&e.center?(K(),Ce(s,{key:0,class:ne([e.ns.e("status"),e.typeClass])},{default:Q(()=>[(K(),Ce(jt(e.iconComponent)))]),_:1},8,["class"])):ke("v-if",!0),W("span",null,me(e.title),1)],2),e.showClose?(K(),se("button",{key:0,type:"button",class:ne(e.ns.e("headerbtn")),"aria-label":"Close",onClick:t[0]||(t[0]=v=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=tr(er(v=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[G(s,{class:ne(e.ns.e("close"))},{default:Q(()=>[G(a)]),_:1},8,["class"])],34)):ke("v-if",!0)],2)):ke("v-if",!0),W("div",{class:ne(e.ns.e("content"))},[W("div",{class:ne(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(K(),Ce(s,{key:0,class:ne([e.ns.e("status"),e.typeClass])},{default:Q(()=>[(K(),Ce(jt(e.iconComponent)))]),_:1},8,["class"])):ke("v-if",!0),e.hasMessage?(K(),se("div",{key:1,class:ne(e.ns.e("message"))},[Ee(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(K(),se("p",{key:1,innerHTML:e.message},null,8,aI)):(K(),se("p",sI,me(e.message),1))])],2)):ke("v-if",!0)],2),at(W("div",{class:ne(e.ns.e("input"))},[G(l,{ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=v=>e.inputValue=v),type:e.inputType,placeholder:e.inputPlaceholder,class:ne({invalid:e.validateError}),onKeydown:tr(e.handleInputEnter,["enter"])},null,8,["modelValue","type","placeholder","class","onKeydown"]),W("div",{class:ne(e.ns.e("errormsg")),style:We({visibility:e.editorErrorMessage?"visible":"hidden"})},me(e.editorErrorMessage),7)],2),[[Ut,e.showInput]])],2),W("div",{class:ne(e.ns.e("btns"))},[e.showCancelButton?(K(),Ce(u,{key:0,loading:e.cancelButtonLoading,class:ne([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=v=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=tr(er(v=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:Q(()=>[Te(me(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):ke("v-if",!0),at(G(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:ne([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=v=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=tr(er(v=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:Q(()=>[Te(me(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[Ut,e.showConfirmButton]])],2)],14,oI)),[[_]])],34)]),_:3},8,["z-index","overlay-class","mask"]),[[Ut,e.visible]])]),_:3})}var cI=Ne(iI,[["render",lI],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const Qs=new Map,uI=(e,t,r=null)=>{const n=He(cI,e);return n.appContext=r,Ro(n,t),document.body.appendChild(t.firstElementChild),n.component},fI=()=>document.createElement("div"),dI=(e,t)=>{const r=fI();e.onVanish=()=>{Ro(null,r),Qs.delete(o)},e.onAction=i=>{const s=Qs.get(o);let a;e.showInput?a={value:o.inputValue,action:i}:a=i,e.callback?e.callback(a,n.proxy):i==="cancel"||i==="close"?e.distinguishCancelAndClose&&i!=="cancel"?s.reject("close"):s.reject("cancel"):s.resolve(a)};const n=uI(e,r,t),o=n.proxy;for(const i in e)qe(e,i)&&!qe(o.$props,i)&&(o[i]=e[i]);return Be(()=>o.message,(i,s)=>{It(i)?n.slots.default=()=>[i]:It(s)&&!It(i)&&delete n.slots.default},{immediate:!0}),o.visible=!0,o};function Jo(e,t=null){if(!dt)return Promise.reject();let r;return ze(e)||It(e)?e={message:e}:r=e.callback,new Promise((n,o)=>{const i=dI(e,t!=null?t:Jo._context);Qs.set(i,{options:e,callback:r,resolve:n,reject:o})})}const hI=["alert","confirm","prompt"],pI={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};hI.forEach(e=>{Jo[e]=vI(e)});function vI(e){return(t,r,n,o)=>{let i;return it(r)?(n=r,i=""):$l(r)?i="":i=r,Jo(Object.assign(Se({title:i,message:t,type:""},pI[e]),n,{boxType:e}),o)}}Jo.close=()=>{Qs.forEach((e,t)=>{t.doClose()}),Qs.clear()};Jo._context=null;const Fn=Jo;Fn.install=e=>{Fn._context=e._context,e.config.globalProperties.$msgbox=Fn,e.config.globalProperties.$messageBox=Fn,e.config.globalProperties.$alert=Fn.alert,e.config.globalProperties.$confirm=Fn.confirm,e.config.globalProperties.$prompt=Fn.prompt};const Mf=Fn,G_=["success","info","warning","error"],gI=Ge({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:De([String,Object]),default:""},id:{type:String,default:""},message:{type:De([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:De(Function),default:()=>{}},onClose:{type:De(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...G_,""],default:""},zIndex:{type:Number,default:0}}),mI={destroy:()=>!0},_I=we({name:"ElNotification",components:Se({ElIcon:mt},yc),props:gI,emits:mI,setup(e){const t=Fe("notification"),r=X(!1);let n;const o=J(()=>{const p=e.type;return p&&wn[e.type]?t.m(p):""}),i=J(()=>wn[e.type]||e.icon||""),s=J(()=>e.position.endsWith("right")?"right":"left"),a=J(()=>e.position.startsWith("top")?"top":"bottom"),l=J(()=>({[a.value]:`${e.offset}px`,zIndex:e.zIndex}));function u(){e.duration>0&&({stop:n}=Nl(()=>{r.value&&_()},e.duration))}function c(){n==null||n()}function _(){r.value=!1}function v({code:p}){p===Ze.delete||p===Ze.backspace?c():p===Ze.esc?r.value&&_():u()}return ht(()=>{u(),r.value=!0}),yr(document,"keydown",v),{ns:t,horizontalClass:s,typeClass:o,iconComponent:i,positionStyle:l,visible:r,close:_,clearTimer:c,startTimer:u}}}),yI=["id"],bI=["textContent"],CI={key:0},wI=["innerHTML"];function SI(e,t,r,n,o,i){const s=Oe("el-icon"),a=Oe("close");return K(),Ce(wr,{name:e.ns.b("fade"),onBeforeLeave:e.onClose,onAfterLeave:t[3]||(t[3]=l=>e.$emit("destroy"))},{default:Q(()=>[at(W("div",{id:e.id,class:ne([e.ns.b(),e.customClass,e.horizontalClass]),style:We(e.positionStyle),role:"alert",onMouseenter:t[0]||(t[0]=(...l)=>e.clearTimer&&e.clearTimer(...l)),onMouseleave:t[1]||(t[1]=(...l)=>e.startTimer&&e.startTimer(...l)),onClick:t[2]||(t[2]=(...l)=>e.onClick&&e.onClick(...l))},[e.iconComponent?(K(),Ce(s,{key:0,class:ne([e.ns.e("icon"),e.typeClass])},{default:Q(()=>[(K(),Ce(jt(e.iconComponent)))]),_:1},8,["class"])):ke("v-if",!0),W("div",{class:ne(e.ns.e("group"))},[W("h2",{class:ne(e.ns.e("title")),textContent:me(e.title)},null,10,bI),at(W("div",{class:ne(e.ns.e("content")),style:We(e.title?void 0:{margin:0})},[Ee(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(K(),se(Ve,{key:1},[ke(" Caution here, message could've been compromized, nerver use user's input as message "),ke(" eslint-disable-next-line "),W("p",{innerHTML:e.message},null,8,wI)],2112)):(K(),se("p",CI,me(e.message),1))])],6),[[Ut,e.message]]),e.showClose?(K(),Ce(s,{key:0,class:ne(e.ns.e("closeBtn")),onClick:er(e.close,["stop"])},{default:Q(()=>[G(a)]),_:1},8,["class","onClick"])):ke("v-if",!0)],2)],46,yI),[[Ut,e.visible]])]),_:3},8,["name","onBeforeLeave"])}var xI=Ne(_I,[["render",SI],["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const Vl={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Pf=16;let EI=1;const Wo=function(e={},t=null){if(!dt)return{close:()=>{}};(typeof e=="string"||It(e))&&(e={message:e});const r=e.position||"top-right";let n=e.offset||0;Vl[r].forEach(({vm:_})=>{var v;n+=(((v=_.el)==null?void 0:v.offsetHeight)||0)+Pf}),n+=Pf;const{nextZIndex:o}=Gi(),i=`notification_${EI++}`,s=e.onClose,a=je(Se({zIndex:o(),offset:n},e),{id:i,onClose:()=>{AI(i,r,s)}});let l=document.body;Mo(e.appendTo)?l=e.appendTo:ze(e.appendTo)&&(l=document.querySelector(e.appendTo)),Mo(l)||(l=document.body);const u=document.createElement("div"),c=G(xI,a,It(a.message)?{default:()=>a.message}:null);return c.appContext=t!=null?t:Wo._context,c.props.onDestroy=()=>{Ro(null,u)},Ro(c,u),Vl[r].push({vm:c}),l.appendChild(u.firstElementChild),{close:()=>{c.component.proxy.visible=!1}}};G_.forEach(e=>{Wo[e]=(t={})=>((typeof t=="string"||It(t))&&(t={message:t}),Wo(je(Se({},t),{type:e})))});function AI(e,t,r){const n=Vl[t],o=n.findIndex(({vm:u})=>{var c;return((c=u.component)==null?void 0:c.props.id)===e});if(o===-1)return;const{vm:i}=n[o];if(!i)return;r==null||r(i);const s=i.el.offsetHeight,a=t.split("-")[0];n.splice(o,1);const l=n.length;if(!(l<1))for(let u=o;u<l;u++){const{el:c,component:_}=n[u].vm,v=Number.parseInt(c.style[a],10)-s-Pf;_.props.offset=v}}function kI(){for(const e of Object.values(Vl))e.forEach(({vm:t})=>{t.component.proxy.visible=!1})}Wo.closeAll=kI;Wo._context=null;const TI=wm(Wo,"$notify"),an=Object.create(null);an.open="0";an.close="1";an.ping="2";an.pong="3";an.message="4";an.upgrade="5";an.noop="6";const Cl=Object.create(null);Object.keys(an).forEach(e=>{Cl[an[e]]=e});const LI={type:"error",data:"parser error"},RI=typeof Blob=="function"||typeof Blob!="undefined"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",BI=typeof ArrayBuffer=="function",OI=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Y_=({type:e,data:t},r,n)=>RI&&t instanceof Blob?r?n(t):$0(t,n):BI&&(t instanceof ArrayBuffer||OI(t))?r?n(t):$0(new Blob([t]),n):n(an[e]+(t||"")),$0=(e,t)=>{const r=new FileReader;return r.onload=function(){const n=r.result.split(",")[1];t("b"+n)},r.readAsDataURL(e)},j0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vs=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(let e=0;e<j0.length;e++)vs[j0.charCodeAt(e)]=e;const II=e=>{let t=e.length*.75,r=e.length,n,o=0,i,s,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),c=new Uint8Array(u);for(n=0;n<r;n+=4)i=vs[e.charCodeAt(n)],s=vs[e.charCodeAt(n+1)],a=vs[e.charCodeAt(n+2)],l=vs[e.charCodeAt(n+3)],c[o++]=i<<2|s>>4,c[o++]=(s&15)<<4|a>>2,c[o++]=(a&3)<<6|l&63;return u},MI=typeof ArrayBuffer=="function",X_=(e,t)=>{if(typeof e!="string")return{type:"message",data:Q_(e,t)};const r=e.charAt(0);return r==="b"?{type:"message",data:PI(e.substring(1),t)}:Cl[r]?e.length>1?{type:Cl[r],data:e.substring(1)}:{type:Cl[r]}:LI},PI=(e,t)=>{if(MI){const r=II(e);return Q_(r,t)}else return{base64:!0,data:e}},Q_=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}},J_=String.fromCharCode(30),DI=(e,t)=>{const r=e.length,n=new Array(r);let o=0;e.forEach((i,s)=>{Y_(i,!1,a=>{n[s]=a,++o===r&&t(n.join(J_))})})},HI=(e,t)=>{const r=e.split(J_),n=[];for(let o=0;o<r.length;o++){const i=X_(r[o],t);if(n.push(i),i.type==="error")break}return n},Z_=4;function Et(e){if(e)return FI(e)}function FI(e){for(var t in Et.prototype)e[t]=Et.prototype[t];return e}Et.prototype.on=Et.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Et.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};Et.prototype.off=Et.prototype.removeListener=Et.prototype.removeAllListeners=Et.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===t||n.fn===t){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+e],this};Et.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,t)}return this};Et.prototype.emitReserved=Et.prototype.emit;Et.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Et.prototype.hasListeners=function(e){return!!this.listeners(e).length};const zn=(()=>typeof self!="undefined"?self:typeof window!="undefined"?window:Function("return this")())();function ey(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}const NI=setTimeout,$I=clearTimeout;function Bc(e,t){t.useNativeTimers?(e.setTimeoutFn=NI.bind(zn),e.clearTimeoutFn=$I.bind(zn)):(e.setTimeoutFn=setTimeout.bind(zn),e.clearTimeoutFn=clearTimeout.bind(zn))}const jI=1.33;function UI(e){return typeof e=="string"?WI(e):Math.ceil((e.byteLength||e.size)*jI)}function WI(e){let t=0,r=0;for(let n=0,o=e.length;n<o;n++)t=e.charCodeAt(n),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}class zI extends Error{constructor(t,r,n){super(t),this.description=r,this.context=n,this.type="TransportError"}}class ty extends Et{constructor(t){super(),this.writable=!1,Bc(this,t),this.opts=t,this.query=t.query,this.readyState="",this.socket=t.socket}onError(t,r,n){return super.emitReserved("error",new zI(t,r,n)),this}open(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const r=X_(t,this.socket.binaryType);this.onPacket(r)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}}const ry="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Df=64,qI={};let U0=0,Qa=0,W0;function z0(e){let t="";do t=ry[e%Df]+t,e=Math.floor(e/Df);while(e>0);return t}function ny(){const e=z0(+new Date);return e!==W0?(U0=0,W0=e):e+"."+z0(U0++)}for(;Qa<Df;Qa++)qI[ry[Qa]]=Qa;function iy(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function VI(e){let t={},r=e.split("&");for(let n=0,o=r.length;n<o;n++){let i=r[n].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}let oy=!1;try{oy=typeof XMLHttpRequest!="undefined"&&"withCredentials"in new XMLHttpRequest}catch{}const KI=oy;function sy(e){const t=e.xdomain;try{if(typeof XMLHttpRequest!="undefined"&&(!t||KI))return new XMLHttpRequest}catch{}if(!t)try{return new zn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function GI(){}const YI=function(){return new sy({xdomain:!1}).responseType!=null}();class XI extends ty{constructor(t){if(super(t),this.polling=!1,typeof location!="undefined"){const n=location.protocol==="https:";let o=location.port;o||(o=n?"443":"80"),this.xd=typeof location!="undefined"&&t.hostname!==location.hostname||o!==t.port,this.xs=t.secure!==n}const r=t&&t.forceBase64;this.supportsBinary=YI&&!r}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const r=()=>{this.readyState="paused",t()};if(this.polling||!this.writable){let n=0;this.polling&&(n++,this.once("pollComplete",function(){--n||r()})),this.writable||(n++,this.once("drain",function(){--n||r()}))}else r()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const r=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};HI(t,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,DI(t,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.query||{};const r=this.opts.secure?"https":"http";let n="";this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=ny()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.opts.port&&(r==="https"&&Number(this.opts.port)!==443||r==="http"&&Number(this.opts.port)!==80)&&(n=":"+this.opts.port);const o=iy(t),i=this.opts.hostname.indexOf(":")!==-1;return r+"://"+(i?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+(o.length?"?"+o:"")}request(t={}){return Object.assign(t,{xd:this.xd,xs:this.xs},this.opts),new tn(this.uri(),t)}doWrite(t,r){const n=this.request({method:"POST",data:t});n.on("success",r),n.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=t}}class tn extends Et{constructor(t,r){super(),Bc(this,r),this.opts=r,this.method=r.method||"GET",this.uri=t,this.async=r.async!==!1,this.data=r.data!==void 0?r.data:null,this.create()}create(){const t=ey(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;const r=this.xhr=new sy(t);try{r.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let n in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(n)&&r.setRequestHeader(n,this.opts.extraHeaders[n])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(n){this.setTimeoutFn(()=>{this.onError(n)},0);return}typeof document!="undefined"&&(this.index=tn.requestsCount++,tn.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr=="undefined"||this.xhr===null)){if(this.xhr.onreadystatechange=GI,t)try{this.xhr.abort()}catch{}typeof document!="undefined"&&delete tn.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}tn.requestsCount=0;tn.requests={};if(typeof document!="undefined"){if(typeof attachEvent=="function")attachEvent("onunload",q0);else if(typeof addEventListener=="function"){const e="onpagehide"in zn?"pagehide":"unload";addEventListener(e,q0,!1)}}function q0(){for(let e in tn.requests)tn.requests.hasOwnProperty(e)&&tn.requests[e].abort()}const QI=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,r)=>r(t,0))(),Ja=zn.WebSocket||zn.MozWebSocket,V0=!0,JI="arraybuffer",K0=typeof navigator!="undefined"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class ZI extends ty{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),r=this.opts.protocols,n=K0?{}:ey(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=V0&&!K0?r?new Ja(t,r):new Ja(t):new Ja(t,r,n)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType||JI,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let r=0;r<t.length;r++){const n=t[r],o=r===t.length-1;Y_(n,this.supportsBinary,i=>{const s={};try{V0&&this.ws.send(i)}catch{}o&&QI(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws!="undefined"&&(this.ws.close(),this.ws=null)}uri(){let t=this.query||{};const r=this.opts.secure?"wss":"ws";let n="";this.opts.port&&(r==="wss"&&Number(this.opts.port)!==443||r==="ws"&&Number(this.opts.port)!==80)&&(n=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=ny()),this.supportsBinary||(t.b64=1);const o=iy(t),i=this.opts.hostname.indexOf(":")!==-1;return r+"://"+(i?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+(o.length?"?"+o:"")}check(){return!!Ja}}const eM={websocket:ZI,polling:XI},tM=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,rM=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Hf(e){const t=e,r=e.indexOf("["),n=e.indexOf("]");r!=-1&&n!=-1&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let o=tM.exec(e||""),i={},s=14;for(;s--;)i[rM[s]]=o[s]||"";return r!=-1&&n!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=nM(i,i.path),i.queryKey=iM(i,i.query),i}function nM(e,t){const r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return(t.substr(0,1)=="/"||t.length===0)&&n.splice(0,1),t.substr(t.length-1,1)=="/"&&n.splice(n.length-1,1),n}function iM(e,t){const r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,i){o&&(r[o]=i)}),r}class Un extends Et{constructor(t,r={}){super(),t&&typeof t=="object"&&(r=t,t=null),t?(t=Hf(t),r.hostname=t.host,r.secure=t.protocol==="https"||t.protocol==="wss",r.port=t.port,t.query&&(r.query=t.query)):r.host&&(r.hostname=Hf(r.host).host),Bc(this,r),this.secure=r.secure!=null?r.secure:typeof location!="undefined"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location!="undefined"?location.hostname:"localhost"),this.port=r.port||(typeof location!="undefined"&&location.port?location.port:this.secure?"443":"80"),this.transports=r.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},r),this.opts.path=this.opts.path.replace(/\/$/,"")+"/",typeof this.opts.query=="string"&&(this.opts.query=VI(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&addEventListener("beforeunload",()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},!1),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const r=Object.assign({},this.opts.query);r.EIO=Z_,r.transport=t,this.id&&(r.sid=this.id);const n=Object.assign({},this.opts.transportOptions[t],this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new eM[t](n)}open(){let t;if(this.opts.rememberUpgrade&&Un.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",r=>this.onClose("transport close",r))}probe(t){let r=this.createTransport(t),n=!1;Un.priorWebsocketSuccess=!1;const o=()=>{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",_=>{if(!n)if(_.type==="pong"&&_.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;Un.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(c(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const v=new Error("probe error");v.transport=r.name,this.emitReserved("upgradeError",v)}}))};function i(){n||(n=!0,c(),r.close(),r=null)}const s=_=>{const v=new Error("probe error: "+_);v.transport=r.name,i(),this.emitReserved("upgradeError",v)};function a(){s("transport closed")}function l(){s("socket closed")}function u(_){r&&_.name!==r.name&&i()}const c=()=>{r.removeListener("open",o),r.removeListener("error",s),r.removeListener("close",a),this.off("close",l),this.off("upgrading",u)};r.once("open",o),r.once("error",s),r.once("close",a),this.once("close",l),this.once("upgrading",u),r.open()}onOpen(){if(this.readyState="open",Un.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade&&this.transport.pause){let t=0;const r=this.upgrades.length;for(;t<r;t++)this.probe(this.upgrades[t])}}onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const r=new Error("server error");r.code=t.data,this.onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let n=0;n<this.writeBuffer.length;n++){const o=this.writeBuffer[n].data;if(o&&(r+=UI(o)),n>0&&r>this.maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}write(t,r,n){return this.sendPacket("message",t,r,n),this}send(t,r,n){return this.sendPacket("message",t,r,n),this}sendPacket(t,r,n,o){if(typeof r=="function"&&(o=r,r=void 0),typeof n=="function"&&(o=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;const i={type:t,data:r,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}onError(t){Un.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,r){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&removeEventListener("offline",this.offlineEventListener,!1),this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const r=[];let n=0;const o=t.length;for(;n<o;n++)~this.transports.indexOf(t[n])&&r.push(t[n]);return r}}Un.protocol=Z_;function oM(e,t="",r){let n=e;r=r||typeof location!="undefined"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r!="undefined"?e=r.protocol+"//"+e:e="https://"+e),n=Hf(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const i=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port+t,n.href=n.protocol+"://"+i+(r&&r.port===n.port?"":":"+n.port),n}const sM=typeof ArrayBuffer=="function",aM=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,ay=Object.prototype.toString,lM=typeof Blob=="function"||typeof Blob!="undefined"&&ay.call(Blob)==="[object BlobConstructor]",cM=typeof File=="function"||typeof File!="undefined"&&ay.call(File)==="[object FileConstructor]";function Xd(e){return sM&&(e instanceof ArrayBuffer||aM(e))||lM&&e instanceof Blob||cM&&e instanceof File}function wl(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(wl(e[r]))return!0;return!1}if(Xd(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return wl(e.toJSON(),!0);for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&wl(e[r]))return!0;return!1}function uM(e){const t=[],r=e.data,n=e;return n.data=Ff(r,t),n.attachments=t.length,{packet:n,buffers:t}}function Ff(e,t){if(!e)return e;if(Xd(e)){const r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){const r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=Ff(e[n],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){const r={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=Ff(e[n],t));return r}return e}function fM(e,t){return e.data=Nf(e.data,t),e.attachments=void 0,e}function Nf(e,t){if(!e)return e;if(e&&e._placeholder)return t[e.num];if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=Nf(e[r],t);else if(typeof e=="object")for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=Nf(e[r],t));return e}const dM=5;var rt;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(rt||(rt={}));class hM{constructor(t){this.replacer=t}encode(t){return(t.type===rt.EVENT||t.type===rt.ACK)&&wl(t)?(t.type=t.type===rt.EVENT?rt.BINARY_EVENT:rt.BINARY_ACK,this.encodeAsBinary(t)):[this.encodeAsString(t)]}encodeAsString(t){let r=""+t.type;return(t.type===rt.BINARY_EVENT||t.type===rt.BINARY_ACK)&&(r+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(r+=t.nsp+","),t.id!=null&&(r+=t.id),t.data!=null&&(r+=JSON.stringify(t.data,this.replacer)),r}encodeAsBinary(t){const r=uM(t),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}}class Qd extends Et{constructor(t){super(),this.reviver=t}add(t){let r;if(typeof t=="string")r=this.decodeString(t),r.type===rt.BINARY_EVENT||r.type===rt.BINARY_ACK?(this.reconstructor=new pM(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r);else if(Xd(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0;const n={type:Number(t.charAt(0))};if(rt[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===rt.BINARY_EVENT||n.type===rt.BINARY_ACK){const i=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);const s=t.substring(i,r);if(s!=Number(s)||t.charAt(r)!=="-")throw new Error("Illegal attachments");n.attachments=Number(s)}if(t.charAt(r+1)==="/"){const i=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););n.nsp=t.substring(i,r)}else n.nsp="/";const o=t.charAt(r+1);if(o!==""&&Number(o)==o){const i=r+1;for(;++r;){const s=t.charAt(r);if(s==null||Number(s)!=s){--r;break}if(r===t.length)break}n.id=Number(t.substring(i,r+1))}if(t.charAt(++r)){const i=this.tryParse(t.substr(r));if(Qd.isPayloadValid(n.type,i))n.data=i;else throw new Error("invalid payload")}return n}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case rt.CONNECT:return typeof r=="object";case rt.DISCONNECT:return r===void 0;case rt.CONNECT_ERROR:return typeof r=="string"||typeof r=="object";case rt.EVENT:case rt.BINARY_EVENT:return Array.isArray(r)&&r.length>0;case rt.ACK:case rt.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}class pM{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const r=fM(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}var vM=Object.freeze(Object.defineProperty({__proto__:null,protocol:dM,get PacketType(){return rt},Encoder:hM,Decoder:Qd},Symbol.toStringTag,{value:"Module"}));function Fr(e,t,r){return e.on(t,r),function(){e.off(t,r)}}const gM=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class ly extends Et{constructor(t,r,n){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=r,n&&n.auth&&(this.auth=n.auth),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Fr(t,"open",this.onopen.bind(this)),Fr(t,"packet",this.onpacket.bind(this)),Fr(t,"error",this.onerror.bind(this)),Fr(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...r){if(gM.hasOwnProperty(t))throw new Error('"'+t+'" is a reserved event name');r.unshift(t);const n={type:rt.EVENT,data:r};if(n.options={},n.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){const s=this.ids++,a=r.pop();this._registerAckCallback(s,a),n.id=s}const o=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!o||!this.connected)||(this.connected?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(t,r){const n=this.flags.timeout;if(n===void 0){this.acks[t]=r;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let i=0;i<this.sendBuffer.length;i++)this.sendBuffer[i].id===t&&this.sendBuffer.splice(i,1);r.call(this,new Error("operation has timed out"))},n);this.acks[t]=(...i)=>{this.io.clearTimeoutFn(o),r.apply(this,[null,...i])}}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this.packet({type:rt.CONNECT,data:t})}):this.packet({type:rt.CONNECT,data:this.auth})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,r)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case rt.CONNECT:if(t.data&&t.data.sid){const o=t.data.sid;this.onconnect(o)}else this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case rt.EVENT:case rt.BINARY_EVENT:this.onevent(t);break;case rt.ACK:case rt.BINARY_ACK:this.onack(t);break;case rt.DISCONNECT:this.ondisconnect();break;case rt.CONNECT_ERROR:this.destroy();const n=new Error(t.data.message);n.data=t.data.data,this.emitReserved("connect_error",n);break}}onevent(t){const r=t.data||[];t.id!=null&&r.push(this.ack(t.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const r=this._anyListeners.slice();for(const n of r)n.apply(this,t)}super.emit.apply(this,t)}ack(t){const r=this;let n=!1;return function(...o){n||(n=!0,r.packet({type:rt.ACK,id:t,data:o}))}}onack(t){const r=this.acks[t.id];typeof r=="function"&&(r.apply(this,t.data),delete this.acks[t.id])}onconnect(t){this.id=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:rt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const r=this._anyListeners;for(let n=0;n<r.length;n++)if(t===r[n])return r.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const r=this._anyOutgoingListeners;for(let n=0;n<r.length;n++)if(t===r[n])return r.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const r=this._anyOutgoingListeners.slice();for(const n of r)n.apply(this,t.data)}}}function Zo(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Zo.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};Zo.prototype.reset=function(){this.attempts=0};Zo.prototype.setMin=function(e){this.ms=e};Zo.prototype.setMax=function(e){this.max=e};Zo.prototype.setJitter=function(e){this.jitter=e};class $f extends Et{constructor(t,r){var n;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(r=t,t=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,Bc(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((n=r.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new Zo({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=t;const o=r.parser||vM;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var r;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(r=this.backoff)===null||r===void 0||r.setMin(t),this)}randomizationFactor(t){var r;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(r=this.backoff)===null||r===void 0||r.setJitter(t),this)}reconnectionDelayMax(t){var r;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(r=this.backoff)===null||r===void 0||r.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new Un(this.uri,this.opts);const r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const o=Fr(r,"open",function(){n.onopen(),t&&t()}),i=Fr(r,"error",s=>{n.cleanup(),n._readyState="closed",this.emitReserved("error",s),t?t(s):n.maybeReconnectOnOpen()});if(this._timeout!==!1){const s=this._timeout;s===0&&o();const a=this.setTimeoutFn(()=>{o(),r.close(),r.emit("error",new Error("timeout"))},s);this.opts.autoUnref&&a.unref(),this.subs.push(function(){clearTimeout(a)})}return this.subs.push(o),this.subs.push(i),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Fr(t,"ping",this.onping.bind(this)),Fr(t,"data",this.ondata.bind(this)),Fr(t,"error",this.onerror.bind(this)),Fr(t,"close",this.onclose.bind(this)),Fr(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){this.decoder.add(t)}ondecoded(t){this.emitReserved("packet",t)}onerror(t){this.emitReserved("error",t)}socket(t,r){let n=this.nsps[t];return n||(n=new ly(this,t,r),this.nsps[t]=n),n}_destroy(t){const r=Object.keys(this.nsps);for(const n of r)if(this.nsps[n].active)return;this._close()}_packet(t){const r=this.encoder.encode(t);for(let n=0;n<r.length;n++)this.engine.write(r[n],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,r){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const r=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(function(){clearTimeout(n)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const fs={};function Ao(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const r=oM(e,t.path||"/socket.io"),n=r.source,o=r.id,i=r.path,s=fs[o]&&i in fs[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let l;return a?l=new $f(n,t):(fs[o]||(fs[o]=new $f(n,t)),l=fs[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(Ao,{Manager:$f,Socket:ly,io:Ao,connect:Ao});var Jd={exports:{}},cy=function(t,r){return function(){for(var o=new Array(arguments.length),i=0;i<o.length;i++)o[i]=arguments[i];return t.apply(r,o)}},mM=cy,ri=Object.prototype.toString;function Zd(e){return Array.isArray(e)}function jf(e){return typeof e=="undefined"}function _M(e){return e!==null&&!jf(e)&&e.constructor!==null&&!jf(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function uy(e){return ri.call(e)==="[object ArrayBuffer]"}function yM(e){return ri.call(e)==="[object FormData]"}function bM(e){var t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&uy(e.buffer),t}function CM(e){return typeof e=="string"}function wM(e){return typeof e=="number"}function fy(e){return e!==null&&typeof e=="object"}function Sl(e){if(ri.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function SM(e){return ri.call(e)==="[object Date]"}function xM(e){return ri.call(e)==="[object File]"}function EM(e){return ri.call(e)==="[object Blob]"}function dy(e){return ri.call(e)==="[object Function]"}function AM(e){return fy(e)&&dy(e.pipe)}function kM(e){return ri.call(e)==="[object URLSearchParams]"}function TM(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function LM(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function eh(e,t){if(!(e===null||typeof e=="undefined"))if(typeof e!="object"&&(e=[e]),Zd(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function Uf(){var e={};function t(o,i){Sl(e[i])&&Sl(o)?e[i]=Uf(e[i],o):Sl(o)?e[i]=Uf({},o):Zd(o)?e[i]=o.slice():e[i]=o}for(var r=0,n=arguments.length;r<n;r++)eh(arguments[r],t);return e}function RM(e,t,r){return eh(t,function(o,i){r&&typeof o=="function"?e[i]=mM(o,r):e[i]=o}),e}function BM(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var ar={isArray:Zd,isArrayBuffer:uy,isBuffer:_M,isFormData:yM,isArrayBufferView:bM,isString:CM,isNumber:wM,isObject:fy,isPlainObject:Sl,isUndefined:jf,isDate:SM,isFile:xM,isBlob:EM,isFunction:dy,isStream:AM,isURLSearchParams:kM,isStandardBrowserEnv:LM,forEach:eh,merge:Uf,extend:RM,trim:TM,stripBOM:BM},ho=ar;function G0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var hy=function(t,r,n){if(!r)return t;var o;if(n)o=n(r);else if(ho.isURLSearchParams(r))o=r.toString();else{var i=[];ho.forEach(r,function(l,u){l===null||typeof l=="undefined"||(ho.isArray(l)?u=u+"[]":l=[l],ho.forEach(l,function(_){ho.isDate(_)?_=_.toISOString():ho.isObject(_)&&(_=JSON.stringify(_)),i.push(G0(u)+"="+G0(_))}))}),o=i.join("&")}if(o){var s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t},OM=ar;function Oc(){this.handlers=[]}Oc.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};Oc.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Oc.prototype.forEach=function(t){OM.forEach(this.handlers,function(n){n!==null&&t(n)})};var IM=Oc,MM=ar,PM=function(t,r){MM.forEach(t,function(o,i){i!==r&&i.toUpperCase()===r.toUpperCase()&&(t[r]=o,delete t[i])})},py=function(t,r,n,o,i){return t.config=r,n&&(t.code=n),t.request=o,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},vy={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},DM=py,gy=function(t,r,n,o,i){var s=new Error(t);return DM(s,r,n,o,i)},HM=gy,FM=function(t,r,n){var o=n.config.validateStatus;!n.status||!o||o(n.status)?t(n):r(HM("Request failed with status code "+n.status,n.config,null,n.request,n))},Za=ar,NM=Za.isStandardBrowserEnv()?function(){return{write:function(r,n,o,i,s,a){var l=[];l.push(r+"="+encodeURIComponent(n)),Za.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),Za.isString(i)&&l.push("path="+i),Za.isString(s)&&l.push("domain="+s),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(r){var n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),$M=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},jM=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t},UM=$M,WM=jM,zM=function(t,r){return t&&!UM(r)?WM(t,r):r},Lu=ar,qM=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],VM=function(t){var r={},n,o,i;return t&&Lu.forEach(t.split(`
`),function(a){if(i=a.indexOf(":"),n=Lu.trim(a.substr(0,i)).toLowerCase(),o=Lu.trim(a.substr(i+1)),n){if(r[n]&&qM.indexOf(n)>=0)return;n==="set-cookie"?r[n]=(r[n]?r[n]:[]).concat([o]):r[n]=r[n]?r[n]+", "+o:o}}),r},Y0=ar,KM=Y0.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function o(i){var s=i;return t&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(s){var a=Y0.isString(s)?o(s):s;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}();function th(e){this.message=e}th.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};th.prototype.__CANCEL__=!0;var Ic=th,el=ar,GM=FM,YM=NM,XM=hy,QM=zM,JM=VM,ZM=KM,Ru=gy,eP=vy,tP=Ic,X0=function(t){return new Promise(function(n,o){var i=t.data,s=t.headers,a=t.responseType,l;function u(){t.cancelToken&&t.cancelToken.unsubscribe(l),t.signal&&t.signal.removeEventListener("abort",l)}el.isFormData(i)&&delete s["Content-Type"];var c=new XMLHttpRequest;if(t.auth){var _=t.auth.username||"",v=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";s.Authorization="Basic "+btoa(_+":"+v)}var p=QM(t.baseURL,t.url);c.open(t.method.toUpperCase(),XM(p,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function g(){if(!!c){var m="getAllResponseHeaders"in c?JM(c.getAllResponseHeaders()):null,d=!a||a==="text"||a==="json"?c.responseText:c.response,f={data:d,status:c.status,statusText:c.statusText,headers:m,config:t,request:c};GM(function(y){n(y),u()},function(y){o(y),u()},f),c=null}}if("onloadend"in c?c.onloadend=g:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(g)},c.onabort=function(){!c||(o(Ru("Request aborted",t,"ECONNABORTED",c)),c=null)},c.onerror=function(){o(Ru("Network Error",t,null,c)),c=null},c.ontimeout=function(){var d=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",f=t.transitional||eP;t.timeoutErrorMessage&&(d=t.timeoutErrorMessage),o(Ru(d,t,f.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},el.isStandardBrowserEnv()){var b=(t.withCredentials||ZM(p))&&t.xsrfCookieName?YM.read(t.xsrfCookieName):void 0;b&&(s[t.xsrfHeaderName]=b)}"setRequestHeader"in c&&el.forEach(s,function(d,f){typeof i=="undefined"&&f.toLowerCase()==="content-type"?delete s[f]:c.setRequestHeader(f,d)}),el.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),a&&a!=="json"&&(c.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&c.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(l=function(m){!c||(o(!m||m&&m.type?new tP("canceled"):m),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(l),t.signal&&(t.signal.aborted?l():t.signal.addEventListener("abort",l))),i||(i=null),c.send(i)})},Nt=ar,Q0=PM,rP=py,nP=vy,iP={"Content-Type":"application/x-www-form-urlencoded"};function J0(e,t){!Nt.isUndefined(e)&&Nt.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function oP(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=X0),e}function sP(e,t,r){if(Nt.isString(e))try{return(t||JSON.parse)(e),Nt.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var Mc={transitional:nP,adapter:oP(),transformRequest:[function(t,r){return Q0(r,"Accept"),Q0(r,"Content-Type"),Nt.isFormData(t)||Nt.isArrayBuffer(t)||Nt.isBuffer(t)||Nt.isStream(t)||Nt.isFile(t)||Nt.isBlob(t)?t:Nt.isArrayBufferView(t)?t.buffer:Nt.isURLSearchParams(t)?(J0(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Nt.isObject(t)||r&&r["Content-Type"]==="application/json"?(J0(r,"application/json"),sP(t)):t}],transformResponse:[function(t){var r=this.transitional||Mc.transitional,n=r&&r.silentJSONParsing,o=r&&r.forcedJSONParsing,i=!n&&this.responseType==="json";if(i||o&&Nt.isString(t)&&t.length)try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?rP(s,this,"E_JSON_PARSE"):s}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Nt.forEach(["delete","get","head"],function(t){Mc.headers[t]={}});Nt.forEach(["post","put","patch"],function(t){Mc.headers[t]=Nt.merge(iP)});var rh=Mc,aP=ar,lP=rh,cP=function(t,r,n){var o=this||lP;return aP.forEach(n,function(s){t=s.call(o,t,r)}),t},my=function(t){return!!(t&&t.__CANCEL__)},Z0=ar,Bu=cP,uP=my,fP=rh,dP=Ic;function Ou(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new dP("canceled")}var hP=function(t){Ou(t),t.headers=t.headers||{},t.data=Bu.call(t,t.data,t.headers,t.transformRequest),t.headers=Z0.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Z0.forEach(["delete","get","head","post","put","patch","common"],function(o){delete t.headers[o]});var r=t.adapter||fP.adapter;return r(t).then(function(o){return Ou(t),o.data=Bu.call(t,o.data,o.headers,t.transformResponse),o},function(o){return uP(o)||(Ou(t),o&&o.response&&(o.response.data=Bu.call(t,o.response.data,o.response.headers,t.transformResponse))),Promise.reject(o)})},fr=ar,_y=function(t,r){r=r||{};var n={};function o(c,_){return fr.isPlainObject(c)&&fr.isPlainObject(_)?fr.merge(c,_):fr.isPlainObject(_)?fr.merge({},_):fr.isArray(_)?_.slice():_}function i(c){if(fr.isUndefined(r[c])){if(!fr.isUndefined(t[c]))return o(void 0,t[c])}else return o(t[c],r[c])}function s(c){if(!fr.isUndefined(r[c]))return o(void 0,r[c])}function a(c){if(fr.isUndefined(r[c])){if(!fr.isUndefined(t[c]))return o(void 0,t[c])}else return o(void 0,r[c])}function l(c){if(c in r)return o(t[c],r[c]);if(c in t)return o(void 0,t[c])}var u={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return fr.forEach(Object.keys(t).concat(Object.keys(r)),function(_){var v=u[_]||i,p=v(_);fr.isUndefined(p)&&v!==l||(n[_]=p)}),n},yy={version:"0.26.1"},pP=yy.version,nh={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){nh[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var ev={};nh.transitional=function(t,r,n){function o(i,s){return"[Axios v"+pP+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return function(i,s,a){if(t===!1)throw new Error(o(s," has been removed"+(r?" in "+r:"")));return r&&!ev[s]&&(ev[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,s,a):!0}};function vP(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),o=n.length;o-- >0;){var i=n[o],s=t[i];if(s){var a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new TypeError("option "+i+" must be "+l);continue}if(r!==!0)throw Error("Unknown option "+i)}}var gP={assertOptions:vP,validators:nh},by=ar,mP=hy,tv=IM,rv=hP,Pc=_y,Cy=gP,po=Cy.validators;function oa(e){this.defaults=e,this.interceptors={request:new tv,response:new tv}}oa.prototype.request=function(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Pc(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var n=r.transitional;n!==void 0&&Cy.assertOptions(n,{silentJSONParsing:po.transitional(po.boolean),forcedJSONParsing:po.transitional(po.boolean),clarifyTimeoutError:po.transitional(po.boolean)},!1);var o=[],i=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(i=i&&p.synchronous,o.unshift(p.fulfilled,p.rejected))});var s=[];this.interceptors.response.forEach(function(p){s.push(p.fulfilled,p.rejected)});var a;if(!i){var l=[rv,void 0];for(Array.prototype.unshift.apply(l,o),l=l.concat(s),a=Promise.resolve(r);l.length;)a=a.then(l.shift(),l.shift());return a}for(var u=r;o.length;){var c=o.shift(),_=o.shift();try{u=c(u)}catch(v){_(v);break}}try{a=rv(u)}catch(v){return Promise.reject(v)}for(;s.length;)a=a.then(s.shift(),s.shift());return a};oa.prototype.getUri=function(t){return t=Pc(this.defaults,t),mP(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};by.forEach(["delete","get","head","options"],function(t){oa.prototype[t]=function(r,n){return this.request(Pc(n||{},{method:t,url:r,data:(n||{}).data}))}});by.forEach(["post","put","patch"],function(t){oa.prototype[t]=function(r,n,o){return this.request(Pc(o||{},{method:t,url:r,data:n}))}});var _P=oa,yP=Ic;function zo(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(o){t=o});var r=this;this.promise.then(function(n){if(!!r._listeners){var o,i=r._listeners.length;for(o=0;o<i;o++)r._listeners[o](n);r._listeners=null}}),this.promise.then=function(n){var o,i=new Promise(function(s){r.subscribe(s),o=s}).then(n);return i.cancel=function(){r.unsubscribe(o)},i},e(function(o){r.reason||(r.reason=new yP(o),t(r.reason))})}zo.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};zo.prototype.subscribe=function(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]};zo.prototype.unsubscribe=function(t){if(!!this._listeners){var r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}};zo.source=function(){var t,r=new zo(function(o){t=o});return{token:r,cancel:t}};var bP=zo,CP=function(t){return function(n){return t.apply(null,n)}},wP=ar,SP=function(t){return wP.isObject(t)&&t.isAxiosError===!0},nv=ar,xP=cy,xl=_P,EP=_y,AP=rh;function wy(e){var t=new xl(e),r=xP(xl.prototype.request,t);return nv.extend(r,xl.prototype,t),nv.extend(r,t),r.create=function(o){return wy(EP(e,o))},r}var cn=wy(AP);cn.Axios=xl;cn.Cancel=Ic;cn.CancelToken=bP;cn.isCancel=my;cn.VERSION=yy.version;cn.all=function(t){return Promise.all(t)};cn.spread=CP;cn.isAxiosError=SP;Jd.exports=cn;Jd.exports.default=cn;var Dc=Jd.exports;Dc.defaults.timeout=10*1e3;Dc.defaults.withCredentials=!0;Dc.defaults.baseURL="/api/v1";const Ft=Dc.create();Ft.interceptors.request.use(e=>(e.headers.token=localStorage.getItem("token")||"",e),e=>(gn.error({message:"\u8BF7\u6C42\u8D85\u65F6\uFF01"}),Promise.reject(e)));Ft.interceptors.response.use(e=>{if(e.status===200)return e.data},e=>{var r;let{response:t}=e;if(console.dir(e),(r=e==null?void 0:e.message)!=null&&r.includes("timeout")){gn({message:"\u8BF7\u6C42\u8D85\u65F6",type:"error",center:!0});return}switch(t==null?void 0:t.data.status){case 401:gn({message:"\u767B\u5F55\u6001\u5DF2\u5931\u6548",type:"error",center:!0}),qf.push("login");return;case 403:qf.push("login");return}switch(t==null?void 0:t.status){case 404:gn({message:"404 Not Found",type:"error",center:!0});return}return gn({message:(t==null?void 0:t.data.msg)||"\u7F51\u7EDC\u9519\u8BEF",type:"error",center:!0}),Promise.reject(e)});var zr={getOsInfo(e={}){return Ft({url:"/monitor",method:"get",params:e})},getIpInfo(e={}){return Ft({url:"/ip-info",method:"get",params:e})},updateSSH(e){return Ft({url:"/update-ssh",method:"post",data:e})},removeSSH(e){return Ft({url:"/remove-ssh",method:"post",data:{host:e}})},existSSH(e){return Ft({url:"/exist-ssh",method:"post",data:{host:e}})},getCommand(e){return Ft({url:"/command",method:"get",params:{host:e}})},getHostList(){return Ft({url:"/host-list",method:"get"})},saveHost(e){return Ft({url:"/host-save",method:"post",data:e})},updateHost(e){return Ft({url:"/host-save",method:"put",data:e})},removeHost(e){return Ft({url:"/host-remove",method:"post",data:e})},getPubPem(){return Ft({url:"/get-pub-pem",method:"get"})},login(e){return Ft({url:"/login",method:"post",data:e})},getLoginRecord(){return Ft({url:"/get-login-record",method:"get"})},updatePwd(e){return Ft({url:"/pwd",method:"put",data:e})},updateHostSort(e){return Ft({url:"/host-sort",method:"put",data:e})}},lr=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r};const kP={name:"NewServerForm",props:{show:{required:!0,type:Boolean},defaultForm:{required:!1,type:Object,default:()=>{}}},emits:["update:show","update-list"],data(){return{isUpdateHost:!1,hostForm:{name:this.name,host:this.host},oldHost:"",rules:{name:{required:!0,message:"\u8F93\u5165\u4E3B\u673A\u522B\u540D",trigger:"change"},host:{required:!0,message:"\u8F93\u5165IP/\u57DF\u540D",trigger:"change"}}}},computed:{visible:{get(){return this.show},set(e){this.$emit("update:show",e)}},title(){return this.isUpdateHost?"\u4FEE\u6539\u670D\u52A1\u5668":"\u65B0\u589E\u670D\u52A1\u5668"}},watch:{defaultForm(e){let{name:t,host:r}=e;!t&&!r||(this.isUpdateHost=!0,this.oldHost=r,this.hostForm={name:t,host:r})}},methods:{handleSave(){this.$refs["new-host-form"].validate().then(async()=>{if(this.isUpdateHost){let{oldHost:e}=this,{msg:t}=await zr.updateHost(Object.assign({},this.hostForm,{oldHost:e}));this.$message({type:"success",center:!0,message:t})}else{let{msg:e}=await zr.saveHost(this.hostForm);this.$message({type:"success",center:!0,message:e})}this.visible=!1,this.$emit("update-list"),this.hostForm={name:"",host:""}})}}},TP={class:"dialog-footer"},LP=Te("\u5173\u95ED"),RP=Te("\u786E\u8BA4");function BP(e,t,r,n,o,i){const s=Xo,a=Rc,l=Lc,u=Ir,c=Yi;return K(),Ce(c,{modelValue:i.visible,"onUpdate:modelValue":t[3]||(t[3]=_=>i.visible=_),width:"400px",title:i.title,"close-on-click-modal":!1},{footer:Q(()=>[W("span",TP,[G(u,{onClick:t[2]||(t[2]=_=>i.visible=!1)},{default:Q(()=>[LP]),_:1}),G(u,{type:"primary",onClick:i.handleSave},{default:Q(()=>[RP]),_:1},8,["onClick"])])]),default:Q(()=>[G(l,{ref:"new-host-form",model:o.hostForm,rules:o.rules,"hide-required-asterisk":!0,"label-suffix":"\uFF1A","label-width":"90px"},{default:Q(()=>[G(a,{label:"\u4E3B\u673A\u522B\u540D",prop:"name"},{default:Q(()=>[G(s,{modelValue:o.hostForm.name,"onUpdate:modelValue":t[0]||(t[0]=_=>o.hostForm.name=_),modelModifiers:{trim:!0},clearable:"",placeholder:"\u4E3B\u673A\u522B\u540D",autocomplete:"off"},null,8,["modelValue"])]),_:1}),G(a,{label:"IP/\u57DF\u540D",prop:"host"},{default:Q(()=>[G(s,{modelValue:o.hostForm.host,"onUpdate:modelValue":t[1]||(t[1]=_=>o.hostForm.host=_),modelModifiers:{trim:!0},clearable:"",placeholder:"IP/\u57DF\u540D",autocomplete:"off",onKeyup:tr(i.handleSave,["enter"])},null,8,["modelValue","onKeyup"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue","title"])}var Sy=lr(kP,[["render",BP],["__scopeId","data-v-048e5b8a"]]);const OP={name:"HostGroup",props:{show:{required:!0,type:Boolean},defaultForm:{required:!1,type:Object,default:()=>{}}},emits:["update:show","update-list"],data(){return{isUpdateHost:!1,hostForm:{name:this.name,host:this.host},oldHost:"",rules:{name:{required:!0,message:"\u8F93\u5165\u4E3B\u673A\u522B\u540D",trigger:"change"},host:{required:!0,message:"\u8F93\u5165IP/\u57DF\u540D",trigger:"change"}}}},computed:{visible:{get(){return this.show},set(e){this.$emit("update:show",e)}}},watch:{defaultForm(e){let{name:t,host:r}=e;!t&&!r||(this.isUpdateHost=!0,this.oldHost=r,this.hostForm={name:t,host:r})}},methods:{handleSave(){this.$refs["new-host-form"].validate().then(async()=>{if(this.isUpdateHost){let{oldHost:e}=this,{msg:t}=await zr.updateHost(Object.assign({},this.hostForm,{oldHost:e}));this.$message({type:"success",center:!0,message:t})}else{let{msg:e}=await zr.saveHost(this.hostForm);this.$message({type:"success",center:!0,message:e})}this.visible=!1,this.$emit("update-list"),this.hostForm={name:"",host:""}})}}},IP={class:"dialog-footer"},MP=Te("\u5173\u95ED"),PP=Te("\u786E\u8BA4");function DP(e,t,r,n,o,i){const s=Ir,a=Yi;return K(),Ce(a,{modelValue:i.visible,"onUpdate:modelValue":t[1]||(t[1]=l=>i.visible=l),width:"80%",title:"\u5206\u7EC4\u7BA1\u7406","close-on-click-modal":!1},{footer:Q(()=>[W("span",IP,[G(s,{onClick:t[0]||(t[0]=l=>i.visible=!1)},{default:Q(()=>[MP]),_:1}),G(s,{type:"primary",onClick:i.handleSave},{default:Q(()=>[PP]),_:1},8,["onClick"])])]),_:1},8,["modelValue"])}var HP=lr(OP,[["render",DP],["__scopeId","data-v-244e4374"]]);const FP={name:"IconSvg",props:{name:{type:String,default:""}},computed:{href(){return`#${this.name}`}}},NP={class:"icon","aria-hidden":"true"},$P=["xlink:href"];function jP(e,t,r,n,o,i){return K(),se("svg",NP,[W("use",{"xlink:href":i.href},null,8,$P)])}var xy=lr(FP,[["render",jP],["__scopeId","data-v-81152c44"]]),UP="0123456789abcdefghijklmnopqrstuvwxyz";function hn(e){return UP.charAt(e)}function WP(e,t){return e&t}function tl(e,t){return e|t}function iv(e,t){return e^t}function ov(e,t){return e&~t}function zP(e){if(e==0)return-1;var t=0;return(e&65535)==0&&(e>>=16,t+=16),(e&255)==0&&(e>>=8,t+=8),(e&15)==0&&(e>>=4,t+=4),(e&3)==0&&(e>>=2,t+=2),(e&1)==0&&++t,t}function qP(e){for(var t=0;e!=0;)e&=e-1,++t;return t}var bo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ey="=";function Kl(e){var t,r,n="";for(t=0;t+3<=e.length;t+=3)r=parseInt(e.substring(t,t+3),16),n+=bo.charAt(r>>6)+bo.charAt(r&63);for(t+1==e.length?(r=parseInt(e.substring(t,t+1),16),n+=bo.charAt(r<<2)):t+2==e.length&&(r=parseInt(e.substring(t,t+2),16),n+=bo.charAt(r>>2)+bo.charAt((r&3)<<4));(n.length&3)>0;)n+=Ey;return n}function sv(e){var t="",r,n=0,o=0;for(r=0;r<e.length&&e.charAt(r)!=Ey;++r){var i=bo.indexOf(e.charAt(r));i<0||(n==0?(t+=hn(i>>2),o=i&3,n=1):n==1?(t+=hn(o<<2|i>>4),o=i&15,n=2):n==2?(t+=hn(o),t+=hn(i>>2),o=i&3,n=3):(t+=hn(o<<2|i>>4),t+=hn(i&15),n=0))}return n==1&&(t+=hn(o<<2)),t}var vo,VP={decode:function(e){var t;if(vo===void 0){var r="0123456789ABCDEF",n=` \f
\r \xA0\u2028\u2029`;for(vo={},t=0;t<16;++t)vo[r.charAt(t)]=t;for(r=r.toLowerCase(),t=10;t<16;++t)vo[r.charAt(t)]=t;for(t=0;t<n.length;++t)vo[n.charAt(t)]=-1}var o=[],i=0,s=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if(a=="=")break;if(a=vo[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);i|=a,++s>=2?(o[o.length]=i,i=0,s=0):i<<=4}}if(s)throw new Error("Hex encoding incomplete: 4 bits missing");return o}},_i,Wf={decode:function(e){var t;if(_i===void 0){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=`= \f
\r \xA0\u2028\u2029`;for(_i=Object.create(null),t=0;t<64;++t)_i[r.charAt(t)]=t;for(_i["-"]=62,_i._=63,t=0;t<n.length;++t)_i[n.charAt(t)]=-1}var o=[],i=0,s=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if(a=="=")break;if(a=_i[a],a!=-1){if(a===void 0)throw new Error("Illegal character at offset "+t);i|=a,++s>=4?(o[o.length]=i>>16,o[o.length]=i>>8&255,o[o.length]=i&255,i=0,s=0):i<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:o[o.length]=i>>10;break;case 3:o[o.length]=i>>16,o[o.length]=i>>8&255;break}return o},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=Wf.re.exec(e);if(t)if(t[1])e=t[1];else if(t[2])e=t[2];else throw new Error("RegExp out of sync");return Wf.decode(e)}},go=1e13,gs=function(){function e(t){this.buf=[+t||0]}return e.prototype.mulAdd=function(t,r){var n=this.buf,o=n.length,i,s;for(i=0;i<o;++i)s=n[i]*t+r,s<go?r=0:(r=0|s/go,s-=r*go),n[i]=s;r>0&&(n[i]=r)},e.prototype.sub=function(t){var r=this.buf,n=r.length,o,i;for(o=0;o<n;++o)i=r[o]-t,i<0?(i+=go,t=1):t=0,r[o]=i;for(;r[r.length-1]===0;)r.pop()},e.prototype.toString=function(t){if((t||10)!=10)throw new Error("only base 10 is supported");for(var r=this.buf,n=r[r.length-1].toString(),o=r.length-2;o>=0;--o)n+=(go+r[o]).toString().substring(1);return n},e.prototype.valueOf=function(){for(var t=this.buf,r=0,n=t.length-1;n>=0;--n)r=r*go+t[n];return r},e.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},e}(),Ay="\u2026",KP=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,GP=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function ko(e,t){return e.length>t&&(e=e.substring(0,t)+Ay),e}var Iu=function(){function e(t,r){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=r)}return e.prototype.get=function(t){if(t===void 0&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset "+t+" on a stream of length "+this.enc.length);return typeof this.enc=="string"?this.enc.charCodeAt(t):this.enc[t]},e.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(t&15)},e.prototype.hexDump=function(t,r,n){for(var o="",i=t;i<r;++i)if(o+=this.hexByte(this.get(i)),n!==!0)switch(i&15){case 7:o+=" ";break;case 15:o+=`
`;break;default:o+=" "}return o},e.prototype.isASCII=function(t,r){for(var n=t;n<r;++n){var o=this.get(n);if(o<32||o>176)return!1}return!0},e.prototype.parseStringISO=function(t,r){for(var n="",o=t;o<r;++o)n+=String.fromCharCode(this.get(o));return n},e.prototype.parseStringUTF=function(t,r){for(var n="",o=t;o<r;){var i=this.get(o++);i<128?n+=String.fromCharCode(i):i>191&&i<224?n+=String.fromCharCode((i&31)<<6|this.get(o++)&63):n+=String.fromCharCode((i&15)<<12|(this.get(o++)&63)<<6|this.get(o++)&63)}return n},e.prototype.parseStringBMP=function(t,r){for(var n="",o,i,s=t;s<r;)o=this.get(s++),i=this.get(s++),n+=String.fromCharCode(o<<8|i);return n},e.prototype.parseTime=function(t,r,n){var o=this.parseStringISO(t,r),i=(n?KP:GP).exec(o);return i?(n&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),o=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(o+=":"+i[5],i[6]&&(o+=":"+i[6],i[7]&&(o+="."+i[7]))),i[8]&&(o+=" UTC",i[8]!="Z"&&(o+=i[8],i[9]&&(o+=":"+i[9]))),o):"Unrecognized time: "+o},e.prototype.parseInteger=function(t,r){for(var n=this.get(t),o=n>127,i=o?255:0,s,a="";n==i&&++t<r;)n=this.get(t);if(s=r-t,s===0)return o?-1:0;if(s>4){for(a=n,s<<=3;((+a^i)&128)==0;)a=+a<<1,--s;a="("+s+` bit)
`}o&&(n=n-256);for(var l=new gs(n),u=t+1;u<r;++u)l.mulAdd(256,this.get(u));return a+l.toString()},e.prototype.parseBitString=function(t,r,n){for(var o=this.get(t),i=(r-t-1<<3)-o,s="("+i+` bit)
`,a="",l=t+1;l<r;++l){for(var u=this.get(l),c=l==r-1?o:0,_=7;_>=c;--_)a+=u>>_&1?"1":"0";if(a.length>n)return s+ko(a,n)}return s+a},e.prototype.parseOctetString=function(t,r,n){if(this.isASCII(t,r))return ko(this.parseStringISO(t,r),n);var o=r-t,i="("+o+` byte)
`;n/=2,o>n&&(r=t+n);for(var s=t;s<r;++s)i+=this.hexByte(this.get(s));return o>n&&(i+=Ay),i},e.prototype.parseOID=function(t,r,n){for(var o="",i=new gs,s=0,a=t;a<r;++a){var l=this.get(a);if(i.mulAdd(128,l&127),s+=7,!(l&128)){if(o==="")if(i=i.simplify(),i instanceof gs)i.sub(80),o="2."+i.toString();else{var u=i<80?i<40?0:1:2;o=u+"."+(i-u*40)}else o+="."+i.toString();if(o.length>n)return ko(o,n);i=new gs,s=0}}return s>0&&(o+=".incomplete"),o},e}(),YP=function(){function e(t,r,n,o,i){if(!(o instanceof av))throw new Error("Invalid tag value.");this.stream=t,this.header=r,this.length=n,this.tag=o,this.sub=i}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(t){if(this.tag===void 0)return null;t===void 0&&(t=1/0);var r=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+n,t);switch(this.tag.tagNumber){case 1:return this.stream.get(r)===0?"false":"true";case 2:return this.stream.parseInteger(r,r+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(r,r+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(r,r+n,t);case 6:return this.stream.parseOID(r,r+n,t);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return ko(this.stream.parseStringUTF(r,r+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return ko(this.stream.parseStringISO(r,r+n),t);case 30:return ko(this.stream.parseStringBMP(r,r+n),t);case 23:case 24:return this.stream.parseTime(r,r+n,this.tag.tagNumber==23)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(t){t===void 0&&(t="");var r=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(r+="+"),r+=this.length,this.tag.tagConstructed?r+=" (constructed)":this.tag.isUniversal()&&(this.tag.tagNumber==3||this.tag.tagNumber==4)&&this.sub!==null&&(r+=" (encapsulates)"),r+=`
`,this.sub!==null){t+=" ";for(var n=0,o=this.sub.length;n<o;++n)r+=this.sub[n].toPrettyString(t)}return r},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(t){var r=t.get(),n=r&127;if(n==r)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(n===0)return null;r=0;for(var o=0;o<n;++o)r=r*256+t.get();return r},e.prototype.getHexStringValue=function(){var t=this.toHexString(),r=this.header*2,n=this.length*2;return t.substr(r,n)},e.decode=function(t){var r;t instanceof Iu?r=t:r=new Iu(t,0);var n=new Iu(r),o=new av(r),i=e.decodeLength(r),s=r.pos,a=s-n.pos,l=null,u=function(){var _=[];if(i!==null){for(var v=s+i;r.pos<v;)_[_.length]=e.decode(r);if(r.pos!=v)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var p=e.decode(r);if(p.tag.isEOC())break;_[_.length]=p}i=s-r.pos}catch(g){throw new Error("Exception while decoding undefined length content: "+g)}return _};if(o.tagConstructed)l=u();else if(o.isUniversal()&&(o.tagNumber==3||o.tagNumber==4))try{if(o.tagNumber==3&&r.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=u();for(var c=0;c<l.length;++c)if(l[c].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{l=null}if(l===null){if(i===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);r.pos=s+Math.abs(i)}return new e(n,a,i,o,l)},e}(),av=function(){function e(t){var r=t.get();if(this.tagClass=r>>6,this.tagConstructed=(r&32)!==0,this.tagNumber=r&31,this.tagNumber==31){var n=new gs;do r=t.get(),n.mulAdd(128,r&127);while(r&128);this.tagNumber=n.simplify()}}return e.prototype.isUniversal=function(){return this.tagClass===0},e.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},e}(),Kn,XP=0xdeadbeefcafe,lv=(XP&16777215)==15715070,Kt=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],QP=(1<<26)/Kt[Kt.length-1],Ye=function(){function e(t,r,n){t!=null&&(typeof t=="number"?this.fromNumber(t,r,n):r==null&&typeof t!="string"?this.fromString(t,256):this.fromString(t,r))}return e.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var r;if(t==16)r=4;else if(t==8)r=3;else if(t==2)r=1;else if(t==32)r=5;else if(t==4)r=2;else return this.toRadix(t);var n=(1<<r)-1,o,i=!1,s="",a=this.t,l=this.DB-a*this.DB%r;if(a-- >0)for(l<this.DB&&(o=this[a]>>l)>0&&(i=!0,s=hn(o));a>=0;)l<r?(o=(this[a]&(1<<l)-1)<<r-l,o|=this[--a]>>(l+=this.DB-r)):(o=this[a]>>(l-=r)&n,l<=0&&(l+=this.DB,--a)),o>0&&(i=!0),i&&(s+=hn(o));return i?s:"0"},e.prototype.negate=function(){var t=Je();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(t){var r=this.s-t.s;if(r!=0)return r;var n=this.t;if(r=n-t.t,r!=0)return this.s<0?-r:r;for(;--n>=0;)if((r=this[n]-t[n])!=0)return r;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+rl(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var r=Je();return this.abs().divRemTo(t,null,r),this.s<0&&r.compareTo(e.ZERO)>0&&t.subTo(r,r),r},e.prototype.modPowInt=function(t,r){var n;return t<256||r.isEven()?n=new cv(r):n=new uv(r),this.exp(t,n)},e.prototype.clone=function(){var t=Je();return this.copyTo(t),t},e.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var t=this.t,r=[];r[0]=this.s;var n=this.DB-t*this.DB%8,o,i=0;if(t-- >0)for(n<this.DB&&(o=this[t]>>n)!=(this.s&this.DM)>>n&&(r[i++]=o|this.s<<this.DB-n);t>=0;)n<8?(o=(this[t]&(1<<n)-1)<<8-n,o|=this[--t]>>(n+=this.DB-8)):(o=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),(o&128)!=0&&(o|=-256),i==0&&(this.s&128)!=(o&128)&&++i,(i>0||o!=this.s)&&(r[i++]=o);return r},e.prototype.equals=function(t){return this.compareTo(t)==0},e.prototype.min=function(t){return this.compareTo(t)<0?this:t},e.prototype.max=function(t){return this.compareTo(t)>0?this:t},e.prototype.and=function(t){var r=Je();return this.bitwiseTo(t,WP,r),r},e.prototype.or=function(t){var r=Je();return this.bitwiseTo(t,tl,r),r},e.prototype.xor=function(t){var r=Je();return this.bitwiseTo(t,iv,r),r},e.prototype.andNot=function(t){var r=Je();return this.bitwiseTo(t,ov,r),r},e.prototype.not=function(){for(var t=Je(),r=0;r<this.t;++r)t[r]=this.DM&~this[r];return t.t=this.t,t.s=~this.s,t},e.prototype.shiftLeft=function(t){var r=Je();return t<0?this.rShiftTo(-t,r):this.lShiftTo(t,r),r},e.prototype.shiftRight=function(t){var r=Je();return t<0?this.lShiftTo(-t,r):this.rShiftTo(t,r),r},e.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(this[t]!=0)return t*this.DB+zP(this[t]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var t=0,r=this.s&this.DM,n=0;n<this.t;++n)t+=qP(this[n]^r);return t},e.prototype.testBit=function(t){var r=Math.floor(t/this.DB);return r>=this.t?this.s!=0:(this[r]&1<<t%this.DB)!=0},e.prototype.setBit=function(t){return this.changeBit(t,tl)},e.prototype.clearBit=function(t){return this.changeBit(t,ov)},e.prototype.flipBit=function(t){return this.changeBit(t,iv)},e.prototype.add=function(t){var r=Je();return this.addTo(t,r),r},e.prototype.subtract=function(t){var r=Je();return this.subTo(t,r),r},e.prototype.multiply=function(t){var r=Je();return this.multiplyTo(t,r),r},e.prototype.divide=function(t){var r=Je();return this.divRemTo(t,r,null),r},e.prototype.remainder=function(t){var r=Je();return this.divRemTo(t,null,r),r},e.prototype.divideAndRemainder=function(t){var r=Je(),n=Je();return this.divRemTo(t,r,n),[r,n]},e.prototype.modPow=function(t,r){var n=t.bitLength(),o,i=jn(1),s;if(n<=0)return i;n<18?o=1:n<48?o=3:n<144?o=4:n<768?o=5:o=6,n<8?s=new cv(r):r.isEven()?s=new ZP(r):s=new uv(r);var a=[],l=3,u=o-1,c=(1<<o)-1;if(a[1]=s.convert(this),o>1){var _=Je();for(s.sqrTo(a[1],_);l<=c;)a[l]=Je(),s.mulTo(_,a[l-2],a[l]),l+=2}var v=t.t-1,p,g=!0,b=Je(),m;for(n=rl(t[v])-1;v>=0;){for(n>=u?p=t[v]>>n-u&c:(p=(t[v]&(1<<n+1)-1)<<u-n,v>0&&(p|=t[v-1]>>this.DB+n-u)),l=o;(p&1)==0;)p>>=1,--l;if((n-=l)<0&&(n+=this.DB,--v),g)a[p].copyTo(i),g=!1;else{for(;l>1;)s.sqrTo(i,b),s.sqrTo(b,i),l-=2;l>0?s.sqrTo(i,b):(m=i,i=b,b=m),s.mulTo(b,a[p],i)}for(;v>=0&&(t[v]&1<<n)==0;)s.sqrTo(i,b),m=i,i=b,b=m,--n<0&&(n=this.DB-1,--v)}return s.revert(i)},e.prototype.modInverse=function(t){var r=t.isEven();if(this.isEven()&&r||t.signum()==0)return e.ZERO;for(var n=t.clone(),o=this.clone(),i=jn(1),s=jn(0),a=jn(0),l=jn(1);n.signum()!=0;){for(;n.isEven();)n.rShiftTo(1,n),r?((!i.isEven()||!s.isEven())&&(i.addTo(this,i),s.subTo(t,s)),i.rShiftTo(1,i)):s.isEven()||s.subTo(t,s),s.rShiftTo(1,s);for(;o.isEven();)o.rShiftTo(1,o),r?((!a.isEven()||!l.isEven())&&(a.addTo(this,a),l.subTo(t,l)),a.rShiftTo(1,a)):l.isEven()||l.subTo(t,l),l.rShiftTo(1,l);n.compareTo(o)>=0?(n.subTo(o,n),r&&i.subTo(a,i),s.subTo(l,s)):(o.subTo(n,o),r&&a.subTo(i,a),l.subTo(s,l))}if(o.compareTo(e.ONE)!=0)return e.ZERO;if(l.compareTo(t)>=0)return l.subtract(t);if(l.signum()<0)l.addTo(t,l);else return l;return l.signum()<0?l.add(t):l},e.prototype.pow=function(t){return this.exp(t,new JP)},e.prototype.gcd=function(t){var r=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(r.compareTo(n)<0){var o=r;r=n,n=o}var i=r.getLowestSetBit(),s=n.getLowestSetBit();if(s<0)return r;for(i<s&&(s=i),s>0&&(r.rShiftTo(s,r),n.rShiftTo(s,n));r.signum()>0;)(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),r.compareTo(n)>=0?(r.subTo(n,r),r.rShiftTo(1,r)):(n.subTo(r,n),n.rShiftTo(1,n));return s>0&&n.lShiftTo(s,n),n},e.prototype.isProbablePrime=function(t){var r,n=this.abs();if(n.t==1&&n[0]<=Kt[Kt.length-1]){for(r=0;r<Kt.length;++r)if(n[0]==Kt[r])return!0;return!1}if(n.isEven())return!1;for(r=1;r<Kt.length;){for(var o=Kt[r],i=r+1;i<Kt.length&&o<QP;)o*=Kt[i++];for(o=n.modInt(o);r<i;)if(o%Kt[r++]==0)return!1}return n.millerRabin(t)},e.prototype.copyTo=function(t){for(var r=this.t-1;r>=0;--r)t[r]=this[r];t.t=this.t,t.s=this.s},e.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},e.prototype.fromString=function(t,r){var n;if(r==16)n=4;else if(r==8)n=3;else if(r==256)n=8;else if(r==2)n=1;else if(r==32)n=5;else if(r==4)n=2;else{this.fromRadix(t,r);return}this.t=0,this.s=0;for(var o=t.length,i=!1,s=0;--o>=0;){var a=n==8?+t[o]&255:dv(t,o);if(a<0){t.charAt(o)=="-"&&(i=!0);continue}i=!1,s==0?this[this.t++]=a:s+n>this.DB?(this[this.t-1]|=(a&(1<<this.DB-s)-1)<<s,this[this.t++]=a>>this.DB-s):this[this.t-1]|=a<<s,s+=n,s>=this.DB&&(s-=this.DB)}n==8&&(+t[0]&128)!=0&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),i&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},e.prototype.dlShiftTo=function(t,r){var n;for(n=this.t-1;n>=0;--n)r[n+t]=this[n];for(n=t-1;n>=0;--n)r[n]=0;r.t=this.t+t,r.s=this.s},e.prototype.drShiftTo=function(t,r){for(var n=t;n<this.t;++n)r[n-t]=this[n];r.t=Math.max(this.t-t,0),r.s=this.s},e.prototype.lShiftTo=function(t,r){for(var n=t%this.DB,o=this.DB-n,i=(1<<o)-1,s=Math.floor(t/this.DB),a=this.s<<n&this.DM,l=this.t-1;l>=0;--l)r[l+s+1]=this[l]>>o|a,a=(this[l]&i)<<n;for(var l=s-1;l>=0;--l)r[l]=0;r[s]=a,r.t=this.t+s+1,r.s=this.s,r.clamp()},e.prototype.rShiftTo=function(t,r){r.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t){r.t=0;return}var o=t%this.DB,i=this.DB-o,s=(1<<o)-1;r[0]=this[n]>>o;for(var a=n+1;a<this.t;++a)r[a-n-1]|=(this[a]&s)<<i,r[a-n]=this[a]>>o;o>0&&(r[this.t-n-1]|=(this.s&s)<<i),r.t=this.t-n,r.clamp()},e.prototype.subTo=function(t,r){for(var n=0,o=0,i=Math.min(t.t,this.t);n<i;)o+=this[n]-t[n],r[n++]=o&this.DM,o>>=this.DB;if(t.t<this.t){for(o-=t.s;n<this.t;)o+=this[n],r[n++]=o&this.DM,o>>=this.DB;o+=this.s}else{for(o+=this.s;n<t.t;)o-=t[n],r[n++]=o&this.DM,o>>=this.DB;o-=t.s}r.s=o<0?-1:0,o<-1?r[n++]=this.DV+o:o>0&&(r[n++]=o),r.t=n,r.clamp()},e.prototype.multiplyTo=function(t,r){var n=this.abs(),o=t.abs(),i=n.t;for(r.t=i+o.t;--i>=0;)r[i]=0;for(i=0;i<o.t;++i)r[i+n.t]=n.am(0,o[i],r,i,0,n.t);r.s=0,r.clamp(),this.s!=t.s&&e.ZERO.subTo(r,r)},e.prototype.squareTo=function(t){for(var r=this.abs(),n=t.t=2*r.t;--n>=0;)t[n]=0;for(n=0;n<r.t-1;++n){var o=r.am(n,r[n],t,2*n,0,1);(t[n+r.t]+=r.am(n+1,2*r[n],t,2*n+1,o,r.t-n-1))>=r.DV&&(t[n+r.t]-=r.DV,t[n+r.t+1]=1)}t.t>0&&(t[t.t-1]+=r.am(n,r[n],t,2*n,0,1)),t.s=0,t.clamp()},e.prototype.divRemTo=function(t,r,n){var o=t.abs();if(!(o.t<=0)){var i=this.abs();if(i.t<o.t){r!=null&&r.fromInt(0),n!=null&&this.copyTo(n);return}n==null&&(n=Je());var s=Je(),a=this.s,l=t.s,u=this.DB-rl(o[o.t-1]);u>0?(o.lShiftTo(u,s),i.lShiftTo(u,n)):(o.copyTo(s),i.copyTo(n));var c=s.t,_=s[c-1];if(_!=0){var v=_*(1<<this.F1)+(c>1?s[c-2]>>this.F2:0),p=this.FV/v,g=(1<<this.F1)/v,b=1<<this.F2,m=n.t,d=m-c,f=r==null?Je():r;for(s.dlShiftTo(d,f),n.compareTo(f)>=0&&(n[n.t++]=1,n.subTo(f,n)),e.ONE.dlShiftTo(c,f),f.subTo(s,s);s.t<c;)s[s.t++]=0;for(;--d>=0;){var h=n[--m]==_?this.DM:Math.floor(n[m]*p+(n[m-1]+b)*g);if((n[m]+=s.am(0,h,n,d,0,c))<h)for(s.dlShiftTo(d,f),n.subTo(f,n);n[m]<--h;)n.subTo(f,n)}r!=null&&(n.drShiftTo(c,r),a!=l&&e.ZERO.subTo(r,r)),n.t=c,n.clamp(),u>0&&n.rShiftTo(u,n),a<0&&e.ZERO.subTo(n,n)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if((t&1)==0)return 0;var r=t&3;return r=r*(2-(t&15)*r)&15,r=r*(2-(t&255)*r)&255,r=r*(2-((t&65535)*r&65535))&65535,r=r*(2-t*r%this.DV)%this.DV,r>0?this.DV-r:-r},e.prototype.isEven=function(){return(this.t>0?this[0]&1:this.s)==0},e.prototype.exp=function(t,r){if(t>4294967295||t<1)return e.ONE;var n=Je(),o=Je(),i=r.convert(this),s=rl(t)-1;for(i.copyTo(n);--s>=0;)if(r.sqrTo(n,o),(t&1<<s)>0)r.mulTo(o,i,n);else{var a=n;n=o,o=a}return r.revert(n)},e.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},e.prototype.toRadix=function(t){if(t==null&&(t=10),this.signum()==0||t<2||t>36)return"0";var r=this.chunkSize(t),n=Math.pow(t,r),o=jn(n),i=Je(),s=Je(),a="";for(this.divRemTo(o,i,s);i.signum()>0;)a=(n+s.intValue()).toString(t).substr(1)+a,i.divRemTo(o,i,s);return s.intValue().toString(t)+a},e.prototype.fromRadix=function(t,r){this.fromInt(0),r==null&&(r=10);for(var n=this.chunkSize(r),o=Math.pow(r,n),i=!1,s=0,a=0,l=0;l<t.length;++l){var u=dv(t,l);if(u<0){t.charAt(l)=="-"&&this.signum()==0&&(i=!0);continue}a=r*a+u,++s>=n&&(this.dMultiply(o),this.dAddOffset(a,0),s=0,a=0)}s>0&&(this.dMultiply(Math.pow(r,s)),this.dAddOffset(a,0)),i&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,r,n){if(typeof r=="number")if(t<2)this.fromInt(1);else for(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),tl,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(r);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var o=[],i=t&7;o.length=(t>>3)+1,r.nextBytes(o),i>0?o[0]&=(1<<i)-1:o[0]=0,this.fromString(o,256)}},e.prototype.bitwiseTo=function(t,r,n){var o,i,s=Math.min(t.t,this.t);for(o=0;o<s;++o)n[o]=r(this[o],t[o]);if(t.t<this.t){for(i=t.s&this.DM,o=s;o<this.t;++o)n[o]=r(this[o],i);n.t=this.t}else{for(i=this.s&this.DM,o=s;o<t.t;++o)n[o]=r(i,t[o]);n.t=t.t}n.s=r(this.s,t.s),n.clamp()},e.prototype.changeBit=function(t,r){var n=e.ONE.shiftLeft(t);return this.bitwiseTo(n,r,n),n},e.prototype.addTo=function(t,r){for(var n=0,o=0,i=Math.min(t.t,this.t);n<i;)o+=this[n]+t[n],r[n++]=o&this.DM,o>>=this.DB;if(t.t<this.t){for(o+=t.s;n<this.t;)o+=this[n],r[n++]=o&this.DM,o>>=this.DB;o+=this.s}else{for(o+=this.s;n<t.t;)o+=t[n],r[n++]=o&this.DM,o>>=this.DB;o+=t.s}r.s=o<0?-1:0,o>0?r[n++]=o:o<-1&&(r[n++]=this.DV+o),r.t=n,r.clamp()},e.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(t,r){if(t!=0){for(;this.t<=r;)this[this.t++]=0;for(this[r]+=t;this[r]>=this.DV;)this[r]-=this.DV,++r>=this.t&&(this[this.t++]=0),++this[r]}},e.prototype.multiplyLowerTo=function(t,r,n){var o=Math.min(this.t+t.t,r);for(n.s=0,n.t=o;o>0;)n[--o]=0;for(var i=n.t-this.t;o<i;++o)n[o+this.t]=this.am(0,t[o],n,o,0,this.t);for(var i=Math.min(t.t,r);o<i;++o)this.am(0,t[o],n,o,0,r-o);n.clamp()},e.prototype.multiplyUpperTo=function(t,r,n){--r;var o=n.t=this.t+t.t-r;for(n.s=0;--o>=0;)n[o]=0;for(o=Math.max(r-this.t,0);o<t.t;++o)n[this.t+o-r]=this.am(r-o,t[o],n,0,0,this.t+o-r);n.clamp(),n.drShiftTo(1,n)},e.prototype.modInt=function(t){if(t<=0)return 0;var r=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(r==0)n=this[0]%t;else for(var o=this.t-1;o>=0;--o)n=(r*n+this[o])%t;return n},e.prototype.millerRabin=function(t){var r=this.subtract(e.ONE),n=r.getLowestSetBit();if(n<=0)return!1;var o=r.shiftRight(n);t=t+1>>1,t>Kt.length&&(t=Kt.length);for(var i=Je(),s=0;s<t;++s){i.fromInt(Kt[Math.floor(Math.random()*Kt.length)]);var a=i.modPow(o,this);if(a.compareTo(e.ONE)!=0&&a.compareTo(r)!=0){for(var l=1;l++<n&&a.compareTo(r)!=0;)if(a=a.modPowInt(2,this),a.compareTo(e.ONE)==0)return!1;if(a.compareTo(r)!=0)return!1}}return!0},e.prototype.square=function(){var t=Je();return this.squareTo(t),t},e.prototype.gcda=function(t,r){var n=this.s<0?this.negate():this.clone(),o=t.s<0?t.negate():t.clone();if(n.compareTo(o)<0){var i=n;n=o,o=i}var s=n.getLowestSetBit(),a=o.getLowestSetBit();if(a<0){r(n);return}s<a&&(a=s),a>0&&(n.rShiftTo(a,n),o.rShiftTo(a,o));var l=function(){(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),(s=o.getLowestSetBit())>0&&o.rShiftTo(s,o),n.compareTo(o)>=0?(n.subTo(o,n),n.rShiftTo(1,n)):(o.subTo(n,o),o.rShiftTo(1,o)),n.signum()>0?setTimeout(l,0):(a>0&&o.lShiftTo(a,o),setTimeout(function(){r(o)},0))};setTimeout(l,10)},e.prototype.fromNumberAsync=function(t,r,n,o){if(typeof r=="number")if(t<2)this.fromInt(1);else{this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),tl,this),this.isEven()&&this.dAddOffset(1,0);var i=this,s=function(){i.dAddOffset(2,0),i.bitLength()>t&&i.subTo(e.ONE.shiftLeft(t-1),i),i.isProbablePrime(r)?setTimeout(function(){o()},0):setTimeout(s,0)};setTimeout(s,0)}else{var a=[],l=t&7;a.length=(t>>3)+1,r.nextBytes(a),l>0?a[0]&=(1<<l)-1:a[0]=0,this.fromString(a,256)}},e}(),JP=function(){function e(){}return e.prototype.convert=function(t){return t},e.prototype.revert=function(t){return t},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n)},e.prototype.sqrTo=function(t,r){t.squareTo(r)},e}(),cv=function(){function e(t){this.m=t}return e.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},e.prototype.revert=function(t){return t},e.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e}(),uv=function(){function e(t){this.m=t,this.mp=t.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return e.prototype.convert=function(t){var r=Je();return t.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),t.s<0&&r.compareTo(Ye.ZERO)>0&&this.m.subTo(r,r),r},e.prototype.revert=function(t){var r=Je();return t.copyTo(r),this.reduce(r),r},e.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var r=0;r<this.m.t;++r){var n=t[r]&32767,o=n*this.mpl+((n*this.mph+(t[r]>>15)*this.mpl&this.um)<<15)&t.DM;for(n=r+this.m.t,t[n]+=this.m.am(0,o,t,r,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e}(),ZP=function(){function e(t){this.m=t,this.r2=Je(),this.q3=Je(),Ye.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return e.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var r=Je();return t.copyTo(r),this.reduce(r),r},e.prototype.revert=function(t){return t},e.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},e.prototype.mulTo=function(t,r,n){t.multiplyTo(r,n),this.reduce(n)},e.prototype.sqrTo=function(t,r){t.squareTo(r),this.reduce(r)},e}();function Je(){return new Ye(null)}function bt(e,t){return new Ye(e,t)}var fv=typeof navigator!="undefined";fv&&lv&&navigator.appName=="Microsoft Internet Explorer"?(Ye.prototype.am=function(t,r,n,o,i,s){for(var a=r&32767,l=r>>15;--s>=0;){var u=this[t]&32767,c=this[t++]>>15,_=l*u+c*a;u=a*u+((_&32767)<<15)+n[o]+(i&1073741823),i=(u>>>30)+(_>>>15)+l*c+(i>>>30),n[o++]=u&1073741823}return i},Kn=30):fv&&lv&&navigator.appName!="Netscape"?(Ye.prototype.am=function(t,r,n,o,i,s){for(;--s>=0;){var a=r*this[t++]+n[o]+i;i=Math.floor(a/67108864),n[o++]=a&67108863}return i},Kn=26):(Ye.prototype.am=function(t,r,n,o,i,s){for(var a=r&16383,l=r>>14;--s>=0;){var u=this[t]&16383,c=this[t++]>>14,_=l*u+c*a;u=a*u+((_&16383)<<14)+n[o]+i,i=(u>>28)+(_>>14)+l*c,n[o++]=u&268435455}return i},Kn=28);Ye.prototype.DB=Kn;Ye.prototype.DM=(1<<Kn)-1;Ye.prototype.DV=1<<Kn;var ih=52;Ye.prototype.FV=Math.pow(2,ih);Ye.prototype.F1=ih-Kn;Ye.prototype.F2=2*Kn-ih;var Hc=[],es,kr;es="0".charCodeAt(0);for(kr=0;kr<=9;++kr)Hc[es++]=kr;es="a".charCodeAt(0);for(kr=10;kr<36;++kr)Hc[es++]=kr;es="A".charCodeAt(0);for(kr=10;kr<36;++kr)Hc[es++]=kr;function dv(e,t){var r=Hc[e.charCodeAt(t)];return r==null?-1:r}function jn(e){var t=Je();return t.fromInt(e),t}function rl(e){var t=1,r;return(r=e>>>16)!=0&&(e=r,t+=16),(r=e>>8)!=0&&(e=r,t+=8),(r=e>>4)!=0&&(e=r,t+=4),(r=e>>2)!=0&&(e=r,t+=2),(r=e>>1)!=0&&(e=r,t+=1),t}Ye.ZERO=jn(0);Ye.ONE=jn(1);var eD=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(t){var r,n,o;for(r=0;r<256;++r)this.S[r]=r;for(n=0,r=0;r<256;++r)n=n+this.S[r]+t[r%t.length]&255,o=this.S[r],this.S[r]=this.S[n],this.S[n]=o;this.i=0,this.j=0},e.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},e}();function tD(){return new eD}var ky=256,nl,qn=null,Nr;if(qn==null){qn=[],Nr=0;var il=void 0;if(window.crypto&&window.crypto.getRandomValues){var Mu=new Uint32Array(256);for(window.crypto.getRandomValues(Mu),il=0;il<Mu.length;++il)qn[Nr++]=Mu[il]&255}var ol=0,sl=function(e){if(ol=ol||0,ol>=256||Nr>=ky){window.removeEventListener?window.removeEventListener("mousemove",sl,!1):window.detachEvent&&window.detachEvent("onmousemove",sl);return}try{var t=e.x+e.y;qn[Nr++]=t&255,ol+=1}catch{}};window.addEventListener?window.addEventListener("mousemove",sl,!1):window.attachEvent&&window.attachEvent("onmousemove",sl)}function rD(){if(nl==null){for(nl=tD();Nr<ky;){var e=Math.floor(65536*Math.random());qn[Nr++]=e&255}for(nl.init(qn),Nr=0;Nr<qn.length;++Nr)qn[Nr]=0;Nr=0}return nl.next()}var zf=function(){function e(){}return e.prototype.nextBytes=function(t){for(var r=0;r<t.length;++r)t[r]=rD()},e}();function nD(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var r=t-e.length-6,n="",o=0;o<r;o+=2)n+="ff";var i="0001"+n+"00"+e;return bt(i,16)}function iD(e,t){if(t<e.length+11)return console.error("Message too long for RSA"),null;for(var r=[],n=e.length-1;n>=0&&t>0;){var o=e.charCodeAt(n--);o<128?r[--t]=o:o>127&&o<2048?(r[--t]=o&63|128,r[--t]=o>>6|192):(r[--t]=o&63|128,r[--t]=o>>6&63|128,r[--t]=o>>12|224)}r[--t]=0;for(var i=new zf,s=[];t>2;){for(s[0]=0;s[0]==0;)i.nextBytes(s);r[--t]=s[0]}return r[--t]=2,r[--t]=0,new Ye(r)}var oD=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(t){if(this.p==null||this.q==null)return t.modPow(this.d,this.n);for(var r=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);r.compareTo(n)<0;)r=r.add(this.p);return r.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},e.prototype.setPublic=function(t,r){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=bt(t,16),this.e=parseInt(r,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(t){var r=this.n.bitLength()+7>>3,n=iD(t,r);if(n==null)return null;var o=this.doPublic(n);if(o==null)return null;for(var i=o.toString(16),s=i.length,a=0;a<r*2-s;a++)i="0"+i;return i},e.prototype.setPrivate=function(t,r,n){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=bt(t,16),this.e=parseInt(r,16),this.d=bt(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(t,r,n,o,i,s,a,l){t!=null&&r!=null&&t.length>0&&r.length>0?(this.n=bt(t,16),this.e=parseInt(r,16),this.d=bt(n,16),this.p=bt(o,16),this.q=bt(i,16),this.dmp1=bt(s,16),this.dmq1=bt(a,16),this.coeff=bt(l,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(t,r){var n=new zf,o=t>>1;this.e=parseInt(r,16);for(var i=new Ye(r,16);;){for(;this.p=new Ye(t-o,1,n),!(this.p.subtract(Ye.ONE).gcd(i).compareTo(Ye.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new Ye(o,1,n),!(this.q.subtract(Ye.ONE).gcd(i).compareTo(Ye.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var a=this.p.subtract(Ye.ONE),l=this.q.subtract(Ye.ONE),u=a.multiply(l);if(u.gcd(i).compareTo(Ye.ONE)==0){this.n=this.p.multiply(this.q),this.d=i.modInverse(u),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(l),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(t){var r=bt(t,16),n=this.doPrivate(r);return n==null?null:sD(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(t,r,n){var o=new zf,i=t>>1;this.e=parseInt(r,16);var s=new Ye(r,16),a=this,l=function(){var u=function(){if(a.p.compareTo(a.q)<=0){var v=a.p;a.p=a.q,a.q=v}var p=a.p.subtract(Ye.ONE),g=a.q.subtract(Ye.ONE),b=p.multiply(g);b.gcd(s).compareTo(Ye.ONE)==0?(a.n=a.p.multiply(a.q),a.d=s.modInverse(b),a.dmp1=a.d.mod(p),a.dmq1=a.d.mod(g),a.coeff=a.q.modInverse(a.p),setTimeout(function(){n()},0)):setTimeout(l,0)},c=function(){a.q=Je(),a.q.fromNumberAsync(i,1,o,function(){a.q.subtract(Ye.ONE).gcda(s,function(v){v.compareTo(Ye.ONE)==0&&a.q.isProbablePrime(10)?setTimeout(u,0):setTimeout(c,0)})})},_=function(){a.p=Je(),a.p.fromNumberAsync(t-i,1,o,function(){a.p.subtract(Ye.ONE).gcda(s,function(v){v.compareTo(Ye.ONE)==0&&a.p.isProbablePrime(10)?setTimeout(c,0):setTimeout(_,0)})})};setTimeout(_,0)};setTimeout(l,0)},e.prototype.sign=function(t,r,n){var o=aD(n),i=o+r(t).toString(),s=nD(i,this.n.bitLength()/4);if(s==null)return null;var a=this.doPrivate(s);if(a==null)return null;var l=a.toString(16);return(l.length&1)==0?l:"0"+l},e.prototype.verify=function(t,r,n){var o=bt(r,16),i=this.doPublic(o);if(i==null)return null;var s=i.toString(16).replace(/^1f+00/,""),a=lD(s);return a==n(t).toString()},e}();function sD(e,t){for(var r=e.toByteArray(),n=0;n<r.length&&r[n]==0;)++n;if(r.length-n!=t-1||r[n]!=2)return null;for(++n;r[n]!=0;)if(++n>=r.length)return null;for(var o="";++n<r.length;){var i=r[n]&255;i<128?o+=String.fromCharCode(i):i>191&&i<224?(o+=String.fromCharCode((i&31)<<6|r[n+1]&63),++n):(o+=String.fromCharCode((i&15)<<12|(r[n+1]&63)<<6|r[n+2]&63),n+=2)}return o}var El={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function aD(e){return El[e]||""}function lD(e){for(var t in El)if(El.hasOwnProperty(t)){var r=El[t],n=r.length;if(e.substr(0,n)==r)return e.substr(n)}return e}/*!
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 2.9.0
*/var wt={};wt.lang={extend:function(e,t,r){if(!t||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var n=function(){};if(n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),r){var o;for(o in r)e.prototype[o]=r[o];var i=function(){},s=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(i=function(a,l){for(o=0;o<s.length;o=o+1){var u=s[o],c=l[u];typeof c=="function"&&c!=Object.prototype[u]&&(a[u]=c)}})}catch{}i(e.prototype,r)}}};/**
* @fileOverview
* @name asn1-1.0.js
* @author Kenji Urushima kenji.urushima@gmail.com
* @version asn1 1.0.13 (2017-Jun-02)
* @since jsrsasign 2.1
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
*/var de={};(typeof de.asn1=="undefined"||!de.asn1)&&(de.asn1={});de.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if(t.substr(0,1)!="-")t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var r=t.substr(1),n=r.length;n%2==1?n+=1:t.match(/^[0-7]/)||(n+=2);for(var o="",i=0;i<n;i++)o+="f";var s=new Ye(o,16),a=s.xor(e).add(Ye.ONE);t=a.toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=de,r=t.asn1,n=r.DERBoolean,o=r.DERInteger,i=r.DERBitString,s=r.DEROctetString,a=r.DERNull,l=r.DERObjectIdentifier,u=r.DEREnumerated,c=r.DERUTF8String,_=r.DERNumericString,v=r.DERPrintableString,p=r.DERTeletexString,g=r.DERIA5String,b=r.DERUTCTime,m=r.DERGeneralizedTime,d=r.DERSequence,f=r.DERSet,h=r.DERTaggedObject,y=r.ASN1Util.newObject,C=Object.keys(e);if(C.length!=1)throw"key of param shall be only one.";var w=C[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+w+":")==-1)throw"undefined key: "+w;if(w=="bool")return new n(e[w]);if(w=="int")return new o(e[w]);if(w=="bitstr")return new i(e[w]);if(w=="octstr")return new s(e[w]);if(w=="null")return new a(e[w]);if(w=="oid")return new l(e[w]);if(w=="enum")return new u(e[w]);if(w=="utf8str")return new c(e[w]);if(w=="numstr")return new _(e[w]);if(w=="prnstr")return new v(e[w]);if(w=="telstr")return new p(e[w]);if(w=="ia5str")return new g(e[w]);if(w=="utctime")return new b(e[w]);if(w=="gentime")return new m(e[w]);if(w=="seq"){for(var S=e[w],E=[],k=0;k<S.length;k++){var x=y(S[k]);E.push(x)}return new d({array:E})}if(w=="set"){for(var S=e[w],E=[],k=0;k<S.length;k++){var x=y(S[k]);E.push(x)}return new f({array:E})}if(w=="tag"){var A=e[w];if(Object.prototype.toString.call(A)==="[object Array]"&&A.length==3){var L=y(A[2]);return new h({tag:A[0],explicit:A[1],obj:L})}else{var T={};if(A.explicit!==void 0&&(T.explicit=A.explicit),A.tag!==void 0&&(T.tag=A.tag),A.obj===void 0)throw"obj shall be specified for 'tag'.";return T.obj=y(A.obj),new h(T)}}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.getEncodedHex()}};de.asn1.ASN1Util.oidHexToInt=function(e){for(var o="",t=parseInt(e.substr(0,2),16),r=Math.floor(t/40),n=t%40,o=r+"."+n,i="",s=2;s<e.length;s+=2){var a=parseInt(e.substr(s,2),16),l=("00000000"+a.toString(2)).slice(-8);if(i=i+l.substr(1,7),l.substr(0,1)=="0"){var u=new Ye(i,2);o=o+"."+u.toString(10),i=""}}return o};de.asn1.ASN1Util.oidIntToHex=function(e){var t=function(a){var l=a.toString(16);return l.length==1&&(l="0"+l),l},r=function(a){var l="",u=new Ye(a,10),c=u.toString(2),_=7-c.length%7;_==7&&(_=0);for(var v="",p=0;p<_;p++)v+="0";c=v+c;for(var p=0;p<c.length-1;p+=7){var g=c.substr(p,7);p!=c.length-7&&(g="1"+g),l+=t(parseInt(g,2))}return l};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var n="",o=e.split("."),i=parseInt(o[0])*40+parseInt(o[1]);n+=t(i),o.splice(0,2);for(var s=0;s<o.length;s++)n+=r(o[s]);return n};de.asn1.ASN1Object=function(){var e="";this.getLengthHexFromValue=function(){if(typeof this.hV=="undefined"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+e.length+",v="+this.hV;var t=this.hV.length/2,r=t.toString(16);if(r.length%2==1&&(r="0"+r),t<128)return r;var n=r.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var o=128+n;return o.toString(16)+r},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}};de.asn1.DERAbstractString=function(e){de.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e!="undefined"&&(typeof e=="string"?this.setString(e):typeof e.str!="undefined"?this.setString(e.str):typeof e.hex!="undefined"&&this.setStringHex(e.hex))};wt.lang.extend(de.asn1.DERAbstractString,de.asn1.ASN1Object);de.asn1.DERAbstractTime=function(e){de.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){utc=t.getTime()+t.getTimezoneOffset()*6e4;var r=new Date(utc);return r},this.formatDate=function(t,r,n){var o=this.zeroPadding,i=this.localDateToUTC(t),s=String(i.getFullYear());r=="utc"&&(s=s.substr(2,2));var a=o(String(i.getMonth()+1),2),l=o(String(i.getDate()),2),u=o(String(i.getHours()),2),c=o(String(i.getMinutes()),2),_=o(String(i.getSeconds()),2),v=s+a+l+u+c+_;if(n===!0){var p=i.getMilliseconds();if(p!=0){var g=o(String(p),3);g=g.replace(/[0]+$/,""),v=v+"."+g}}return v+"Z"},this.zeroPadding=function(t,r){return t.length>=r?t:new Array(r-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,r,n,o,i,s){var a=new Date(Date.UTC(t,r-1,n,o,i,s,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}};wt.lang.extend(de.asn1.DERAbstractTime,de.asn1.ASN1Object);de.asn1.DERAbstractStructured=function(e){de.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,typeof e!="undefined"&&typeof e.array!="undefined"&&(this.asn1Array=e.array)};wt.lang.extend(de.asn1.DERAbstractStructured,de.asn1.ASN1Object);de.asn1.DERBoolean=function(){de.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"};wt.lang.extend(de.asn1.DERBoolean,de.asn1.ASN1Object);de.asn1.DERInteger=function(e){de.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=de.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new Ye(String(t),10);this.setByBigInteger(r)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e!="undefined"&&(typeof e.bigint!="undefined"?this.setByBigInteger(e.bigint):typeof e.int!="undefined"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex!="undefined"&&this.setValueHex(e.hex))};wt.lang.extend(de.asn1.DERInteger,de.asn1.ASN1Object);de.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj!="undefined"){var t=de.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}de.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(r){this.hTLV=null,this.isModified=!0,this.hV=r},this.setUnusedBitsAndHexValue=function(r,n){if(r<0||7<r)throw"unused bits shall be from 0 to 7: u = "+r;var o="0"+r;this.hTLV=null,this.isModified=!0,this.hV=o+n},this.setByBinaryString=function(r){r=r.replace(/0+$/,"");var n=8-r.length%8;n==8&&(n=0);for(var o=0;o<=n;o++)r+="0";for(var i="",o=0;o<r.length-1;o+=8){var s=r.substr(o,8),a=parseInt(s,2).toString(16);a.length==1&&(a="0"+a),i+=a}this.hTLV=null,this.isModified=!0,this.hV="0"+n+i},this.setByBooleanArray=function(r){for(var n="",o=0;o<r.length;o++)r[o]==!0?n+="1":n+="0";this.setByBinaryString(n)},this.newFalseArray=function(r){for(var n=new Array(r),o=0;o<r;o++)n[o]=!1;return n},this.getFreshValueHex=function(){return this.hV},typeof e!="undefined"&&(typeof e=="string"&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):typeof e.hex!="undefined"?this.setHexValueIncludingUnusedBits(e.hex):typeof e.bin!="undefined"?this.setByBinaryString(e.bin):typeof e.array!="undefined"&&this.setByBooleanArray(e.array))};wt.lang.extend(de.asn1.DERBitString,de.asn1.ASN1Object);de.asn1.DEROctetString=function(e){if(e!==void 0&&typeof e.obj!="undefined"){var t=de.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}de.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"};wt.lang.extend(de.asn1.DEROctetString,de.asn1.DERAbstractString);de.asn1.DERNull=function(){de.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"};wt.lang.extend(de.asn1.DERNull,de.asn1.ASN1Object);de.asn1.DERObjectIdentifier=function(e){var t=function(n){var o=n.toString(16);return o.length==1&&(o="0"+o),o},r=function(n){var o="",i=new Ye(n,10),s=i.toString(2),a=7-s.length%7;a==7&&(a=0);for(var l="",u=0;u<a;u++)l+="0";s=l+s;for(var u=0;u<s.length-1;u+=7){var c=s.substr(u,7);u!=s.length-7&&(c="1"+c),o+=t(parseInt(c,2))}return o};de.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(n){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=n},this.setValueOidString=function(n){if(!n.match(/^[0-9.]+$/))throw"malformed oid string: "+n;var o="",i=n.split("."),s=parseInt(i[0])*40+parseInt(i[1]);o+=t(s),i.splice(0,2);for(var a=0;a<i.length;a++)o+=r(i[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=o},this.setValueName=function(n){var o=de.asn1.x509.OID.name2oid(n);if(o!=="")this.setValueOidString(o);else throw"DERObjectIdentifier oidName undefined: "+n},this.getFreshValueHex=function(){return this.hV},e!==void 0&&(typeof e=="string"?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):e.oid!==void 0?this.setValueOidString(e.oid):e.hex!==void 0?this.setValueHex(e.hex):e.name!==void 0&&this.setValueName(e.name))};wt.lang.extend(de.asn1.DERObjectIdentifier,de.asn1.ASN1Object);de.asn1.DEREnumerated=function(e){de.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=de.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new Ye(String(t),10);this.setByBigInteger(r)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e!="undefined"&&(typeof e.int!="undefined"?this.setByInteger(e.int):typeof e=="number"?this.setByInteger(e):typeof e.hex!="undefined"&&this.setValueHex(e.hex))};wt.lang.extend(de.asn1.DEREnumerated,de.asn1.ASN1Object);de.asn1.DERUTF8String=function(e){de.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"};wt.lang.extend(de.asn1.DERUTF8String,de.asn1.DERAbstractString);de.asn1.DERNumericString=function(e){de.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"};wt.lang.extend(de.asn1.DERNumericString,de.asn1.DERAbstractString);de.asn1.DERPrintableString=function(e){de.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"};wt.lang.extend(de.asn1.DERPrintableString,de.asn1.DERAbstractString);de.asn1.DERTeletexString=function(e){de.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"};wt.lang.extend(de.asn1.DERTeletexString,de.asn1.DERAbstractString);de.asn1.DERIA5String=function(e){de.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"};wt.lang.extend(de.asn1.DERIA5String,de.asn1.DERAbstractString);de.asn1.DERUTCTime=function(e){de.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date=="undefined"&&typeof this.s=="undefined"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{12}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date))};wt.lang.extend(de.asn1.DERUTCTime,de.asn1.DERAbstractTime);de.asn1.DERGeneralizedTime=function(e){de.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},e!==void 0&&(e.str!==void 0?this.setString(e.str):typeof e=="string"&&e.match(/^[0-9]{14}Z$/)?this.setString(e):e.hex!==void 0?this.setStringHex(e.hex):e.date!==void 0&&this.setByDate(e.date),e.millis===!0&&(this.withMillis=!0))};wt.lang.extend(de.asn1.DERGeneralizedTime,de.asn1.DERAbstractTime);de.asn1.DERSequence=function(e){de.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var t="",r=0;r<this.asn1Array.length;r++){var n=this.asn1Array[r];t+=n.getEncodedHex()}return this.hV=t,this.hV}};wt.lang.extend(de.asn1.DERSequence,de.asn1.DERAbstractStructured);de.asn1.DERSet=function(e){de.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,r=0;r<this.asn1Array.length;r++){var n=this.asn1Array[r];t.push(n.getEncodedHex())}return this.sortFlag==!0&&t.sort(),this.hV=t.join(""),this.hV},typeof e!="undefined"&&typeof e.sortflag!="undefined"&&e.sortflag==!1&&(this.sortFlag=!1)};wt.lang.extend(de.asn1.DERSet,de.asn1.DERAbstractStructured);de.asn1.DERTaggedObject=function(e){de.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,r,n){this.hT=r,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,r),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},typeof e!="undefined"&&(typeof e.tag!="undefined"&&(this.hT=e.tag),typeof e.explicit!="undefined"&&(this.isExplicit=e.explicit),typeof e.obj!="undefined"&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))};wt.lang.extend(de.asn1.DERTaggedObject,de.asn1.ASN1Object);var cD=globalThis&&globalThis.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),hv=function(e){cD(t,e);function t(r){var n=e.call(this)||this;return r&&(typeof r=="string"?n.parseKey(r):(t.hasPrivateKeyProperty(r)||t.hasPublicKeyProperty(r))&&n.parsePropertiesFrom(r)),n}return t.prototype.parseKey=function(r){try{var n=0,o=0,i=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,s=i.test(r)?VP.decode(r):Wf.unarmor(r),a=YP.decode(s);if(a.sub.length===3&&(a=a.sub[2].sub[0]),a.sub.length===9){n=a.sub[1].getHexStringValue(),this.n=bt(n,16),o=a.sub[2].getHexStringValue(),this.e=parseInt(o,16);var l=a.sub[3].getHexStringValue();this.d=bt(l,16);var u=a.sub[4].getHexStringValue();this.p=bt(u,16);var c=a.sub[5].getHexStringValue();this.q=bt(c,16);var _=a.sub[6].getHexStringValue();this.dmp1=bt(_,16);var v=a.sub[7].getHexStringValue();this.dmq1=bt(v,16);var p=a.sub[8].getHexStringValue();this.coeff=bt(p,16)}else if(a.sub.length===2){var g=a.sub[1],b=g.sub[0];n=b.sub[0].getHexStringValue(),this.n=bt(n,16),o=b.sub[1].getHexStringValue(),this.e=parseInt(o,16)}else return!1;return!0}catch{return!1}},t.prototype.getPrivateBaseKey=function(){var r={array:[new de.asn1.DERInteger({int:0}),new de.asn1.DERInteger({bigint:this.n}),new de.asn1.DERInteger({int:this.e}),new de.asn1.DERInteger({bigint:this.d}),new de.asn1.DERInteger({bigint:this.p}),new de.asn1.DERInteger({bigint:this.q}),new de.asn1.DERInteger({bigint:this.dmp1}),new de.asn1.DERInteger({bigint:this.dmq1}),new de.asn1.DERInteger({bigint:this.coeff})]},n=new de.asn1.DERSequence(r);return n.getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return Kl(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var r=new de.asn1.DERSequence({array:[new de.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new de.asn1.DERNull]}),n=new de.asn1.DERSequence({array:[new de.asn1.DERInteger({bigint:this.n}),new de.asn1.DERInteger({int:this.e})]}),o=new de.asn1.DERBitString({hex:"00"+n.getEncodedHex()}),i=new de.asn1.DERSequence({array:[r,o]});return i.getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return Kl(this.getPublicBaseKey())},t.wordwrap=function(r,n){if(n=n||64,!r)return r;var o="(.{1,"+n+`})( +|$
?)|(.{1,`+n+"})";return r.match(RegExp(o,"g")).join(`
`)},t.prototype.getPrivateKey=function(){var r=`-----BEGIN RSA PRIVATE KEY-----
`;return r+=t.wordwrap(this.getPrivateBaseKeyB64())+`
`,r+="-----END RSA PRIVATE KEY-----",r},t.prototype.getPublicKey=function(){var r=`-----BEGIN PUBLIC KEY-----
`;return r+=t.wordwrap(this.getPublicBaseKeyB64())+`
`,r+="-----END PUBLIC KEY-----",r},t.hasPublicKeyProperty=function(r){return r=r||{},r.hasOwnProperty("n")&&r.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(r){return r=r||{},r.hasOwnProperty("n")&&r.hasOwnProperty("e")&&r.hasOwnProperty("d")&&r.hasOwnProperty("p")&&r.hasOwnProperty("q")&&r.hasOwnProperty("dmp1")&&r.hasOwnProperty("dmq1")&&r.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(r){this.n=r.n,this.e=r.e,r.hasOwnProperty("d")&&(this.d=r.d,this.p=r.p,this.q=r.q,this.dmp1=r.dmp1,this.dmq1=r.dmq1,this.coeff=r.coeff)},t}(oD);const uD="3.2.1";var fD={version:uD},dD=function(){function e(t){t===void 0&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return e.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new hv(t)},e.prototype.setPrivateKey=function(t){this.setKey(t)},e.prototype.setPublicKey=function(t){this.setKey(t)},e.prototype.decrypt=function(t){try{return this.getKey().decrypt(sv(t))}catch{return!1}},e.prototype.encrypt=function(t){try{return Kl(this.getKey().encrypt(t))}catch{return!1}},e.prototype.sign=function(t,r,n){try{return Kl(this.getKey().sign(t,r,n))}catch{return!1}},e.prototype.verify=function(t,r,n){try{return this.getKey().verify(t,sv(r),n)}catch{return!1}},e.prototype.getKey=function(t){if(!this.key){if(this.key=new hv,t&&{}.toString.call(t)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=fD.version,e}(),Ty={exports:{}},tt={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Qe,function(){var r=r||function(n,o){var i;if(typeof window!="undefined"&&window.crypto&&(i=window.crypto),typeof self!="undefined"&&self.crypto&&(i=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window!="undefined"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof Qe!="undefined"&&Qe.crypto&&(i=Qe.crypto),!i&&typeof F8=="function")try{i=require("crypto")}catch{}var s=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function f(){}return function(h){var y;return f.prototype=h,y=new f,f.prototype=null,y}}(),l={},u=l.lib={},c=u.Base=function(){return{extend:function(f){var h=a(this);return f&&h.mixIn(f),(!h.hasOwnProperty("init")||this.init===h.init)&&(h.init=function(){h.$super.init.apply(this,arguments)}),h.init.prototype=h,h.$super=this,h},create:function(){var f=this.extend();return f.init.apply(f,arguments),f},init:function(){},mixIn:function(f){for(var h in f)f.hasOwnProperty(h)&&(this[h]=f[h]);f.hasOwnProperty("toString")&&(this.toString=f.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),_=u.WordArray=c.extend({init:function(f,h){f=this.words=f||[],h!=o?this.sigBytes=h:this.sigBytes=f.length*4},toString:function(f){return(f||p).stringify(this)},concat:function(f){var h=this.words,y=f.words,C=this.sigBytes,w=f.sigBytes;if(this.clamp(),C%4)for(var S=0;S<w;S++){var E=y[S>>>2]>>>24-S%4*8&255;h[C+S>>>2]|=E<<24-(C+S)%4*8}else for(var k=0;k<w;k+=4)h[C+k>>>2]=y[k>>>2];return this.sigBytes+=w,this},clamp:function(){var f=this.words,h=this.sigBytes;f[h>>>2]&=4294967295<<32-h%4*8,f.length=n.ceil(h/4)},clone:function(){var f=c.clone.call(this);return f.words=this.words.slice(0),f},random:function(f){for(var h=[],y=0;y<f;y+=4)h.push(s());return new _.init(h,f)}}),v=l.enc={},p=v.Hex={stringify:function(f){for(var h=f.words,y=f.sigBytes,C=[],w=0;w<y;w++){var S=h[w>>>2]>>>24-w%4*8&255;C.push((S>>>4).toString(16)),C.push((S&15).toString(16))}return C.join("")},parse:function(f){for(var h=f.length,y=[],C=0;C<h;C+=2)y[C>>>3]|=parseInt(f.substr(C,2),16)<<24-C%8*4;return new _.init(y,h/2)}},g=v.Latin1={stringify:function(f){for(var h=f.words,y=f.sigBytes,C=[],w=0;w<y;w++){var S=h[w>>>2]>>>24-w%4*8&255;C.push(String.fromCharCode(S))}return C.join("")},parse:function(f){for(var h=f.length,y=[],C=0;C<h;C++)y[C>>>2]|=(f.charCodeAt(C)&255)<<24-C%4*8;return new _.init(y,h)}},b=v.Utf8={stringify:function(f){try{return decodeURIComponent(escape(g.stringify(f)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(f){return g.parse(unescape(encodeURIComponent(f)))}},m=u.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new _.init,this._nDataBytes=0},_append:function(f){typeof f=="string"&&(f=b.parse(f)),this._data.concat(f),this._nDataBytes+=f.sigBytes},_process:function(f){var h,y=this._data,C=y.words,w=y.sigBytes,S=this.blockSize,E=S*4,k=w/E;f?k=n.ceil(k):k=n.max((k|0)-this._minBufferSize,0);var x=k*S,A=n.min(x*4,w);if(x){for(var L=0;L<x;L+=S)this._doProcessBlock(C,L);h=C.splice(0,x),y.sigBytes-=A}return new _.init(h,A)},clone:function(){var f=c.clone.call(this);return f._data=this._data.clone(),f},_minBufferSize:0});u.Hasher=m.extend({cfg:c.extend(),init:function(f){this.cfg=this.cfg.extend(f),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(f){return this._append(f),this._process(),this},finalize:function(f){f&&this._append(f);var h=this._doFinalize();return h},blockSize:16,_createHelper:function(f){return function(h,y){return new f.init(y).finalize(h)}},_createHmacHelper:function(f){return function(h,y){return new d.HMAC.init(f,y).finalize(h)}}});var d=l.algo={};return l}(Math);return r})})(tt);var sa={exports:{}};(function(e,t){(function(r,n){e.exports=n(tt.exports)})(Qe,function(r){return function(n){var o=r,i=o.lib,s=i.Base,a=i.WordArray,l=o.x64={};l.Word=s.extend({init:function(u,c){this.high=u,this.low=c}}),l.WordArray=s.extend({init:function(u,c){u=this.words=u||[],c!=n?this.sigBytes=c:this.sigBytes=u.length*8},toX32:function(){for(var u=this.words,c=u.length,_=[],v=0;v<c;v++){var p=u[v];_.push(p.high),_.push(p.low)}return a.create(_,this.sigBytes)},clone:function(){for(var u=s.clone.call(this),c=u.words=this.words.slice(0),_=c.length,v=0;v<_;v++)c[v]=c[v].clone();return u}})}(),r})})(sa);var Ly={exports:{}};(function(e,t){(function(r,n){e.exports=n(tt.exports)})(Qe,function(r){return function(){if(typeof ArrayBuffer=="function"){var n=r,o=n.lib,i=o.WordArray,s=i.init,a=i.init=function(l){if(l instanceof ArrayBuffer&&(l=new Uint8Array(l)),(l instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&l instanceof Uint8ClampedArray||l instanceof Int16Array||l instanceof Uint16Array||l instanceof Int32Array||l instanceof Uint32Array||l instanceof Float32Array||l instanceof Float64Array)&&(l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength)),l instanceof Uint8Array){for(var u=l.byteLength,c=[],_=0;_<u;_++)c[_>>>2]|=l[_]<<24-_%4*8;s.call(this,c,u)}else s.apply(this,arguments)};a.prototype=i}}(),r.lib.WordArray})})(Ly);var Ry={exports:{}};(function(e,t){(function(r,n){e.exports=n(tt.exports)})(Qe,function(r){return function(){var n=r,o=n.lib,i=o.WordArray,s=n.enc;s.Utf16=s.Utf16BE={stringify:function(l){for(var u=l.words,c=l.sigBytes,_=[],v=0;v<c;v+=2){var p=u[v>>>2]>>>16-v%4*8&65535;_.push(String.fromCharCode(p))}return _.join("")},parse:function(l){for(var u=l.length,c=[],_=0;_<u;_++)c[_>>>1]|=l.charCodeAt(_)<<16-_%2*16;return i.create(c,u*2)}},s.Utf16LE={stringify:function(l){for(var u=l.words,c=l.sigBytes,_=[],v=0;v<c;v+=2){var p=a(u[v>>>2]>>>16-v%4*8&65535);_.push(String.fromCharCode(p))}return _.join("")},parse:function(l){for(var u=l.length,c=[],_=0;_<u;_++)c[_>>>1]|=a(l.charCodeAt(_)<<16-_%2*16);return i.create(c,u*2)}};function a(l){return l<<8&4278255360|l>>>8&16711935}}(),r.enc.Utf16})})(Ry);var Xi={exports:{}};(function(e,t){(function(r,n){e.exports=n(tt.exports)})(Qe,function(r){return function(){var n=r,o=n.lib,i=o.WordArray,s=n.enc;s.Base64={stringify:function(l){var u=l.words,c=l.sigBytes,_=this._map;l.clamp();for(var v=[],p=0;p<c;p+=3)for(var g=u[p>>>2]>>>24-p%4*8&255,b=u[p+1>>>2]>>>24-(p+1)%4*8&255,m=u[p+2>>>2]>>>24-(p+2)%4*8&255,d=g<<16|b<<8|m,f=0;f<4&&p+f*.75<c;f++)v.push(_.charAt(d>>>6*(3-f)&63));var h=_.charAt(64);if(h)for(;v.length%4;)v.push(h);return v.join("")},parse:function(l){var u=l.length,c=this._map,_=this._reverseMap;if(!_){_=this._reverseMap=[];for(var v=0;v<c.length;v++)_[c.charCodeAt(v)]=v}var p=c.charAt(64);if(p){var g=l.indexOf(p);g!==-1&&(u=g)}return a(l,u,_)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(l,u,c){for(var _=[],v=0,p=0;p<u;p++)if(p%4){var g=c[l.charCodeAt(p-1)]<<p%4*2,b=c[l.charCodeAt(p)]>>>6-p%4*2,m=g|b;_[v>>>2]|=m<<24-v%4*8,v++}return i.create(_,v)}}(),r.enc.Base64})})(Xi);var By={exports:{}};(function(e,t){(function(r,n){e.exports=n(tt.exports)})(Qe,function(r){return function(){var n=r,o=n.lib,i=o.WordArray,s=n.enc;s.Base64url={stringify:function(l,u=!0){var c=l.words,_=l.sigBytes,v=u?this._safe_map:this._map;l.clamp();for(var p=[],g=0;g<_;g+=3)for(var b=c[g>>>2]>>>24-g%4*8&255,m=c[g+1>>>2]>>>24-(g+1)%4*8&255,d=c[g+2>>>2]>>>24-(g+2)%4*8&255,f=b<<16|m<<8|d,h=0;h<4&&g+h*.75<_;h++)p.push(v.charAt(f>>>6*(3-h)&63));var y=v.charAt(64);if(y)for(;p.length%4;)p.push(y);return p.join("")},parse:function(l,u=!0){var c=l.length,_=u?this._safe_map:this._map,v=this._reverseMap;if(!v){v=this._reverseMap=[];for(var p=0;p<_.length;p++)v[_.charCodeAt(p)]=p}var g=_.charAt(64);if(g){var b=l.indexOf(g);b!==-1&&(c=b)}return a(l,c,v)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function a(l,u,c){for(var _=[],v=0,p=0;p<u;p++)if(p%4){var g=c[l.charCodeAt(p-1)]<<p%4*2,b=c[l.charCodeAt(p)]>>>6-p%4*2,m=g|b;_[v>>>2]|=m<<24-v%4*8,v++}return i.create(_,v)}}(),r.enc.Base64url})})(By);var Qi={exports:{}};(function(e,t){(function(r,n){e.exports=n(tt.exports)})(Qe,function(r){return function(n){var o=r,i=o.lib,s=i.WordArray,a=i.Hasher,l=o.algo,u=[];(function(){for(var b=0;b<64;b++)u[b]=n.abs(n.sin(b+1))*4294967296|0})();var c=l.MD5=a.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(b,m){for(var d=0;d<16;d++){var f=m+d,h=b[f];b[f]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360}var y=this._hash.words,C=b[m+0],w=b[m+1],S=b[m+2],E=b[m+3],k=b[m+4],x=b[m+5],A=b[m+6],L=b[m+7],T=b[m+8],H=b[m+9],P=b[m+10],R=b[m+11],I=b[m+12],M=b[m+13],$=b[m+14],V=b[m+15],U=y[0],Y=y[1],Z=y[2],te=y[3];U=_(U,Y,Z,te,C,7,u[0]),te=_(te,U,Y,Z,w,12,u[1]),Z=_(Z,te,U,Y,S,17,u[2]),Y=_(Y,Z,te,U,E,22,u[3]),U=_(U,Y,Z,te,k,7,u[4]),te=_(te,U,Y,Z,x,12,u[5]),Z=_(Z,te,U,Y,A,17,u[6]),Y=_(Y,Z,te,U,L,22,u[7]),U=_(U,Y,Z,te,T,7,u[8]),te=_(te,U,Y,Z,H,12,u[9]),Z=_(Z,te,U,Y,P,17,u[10]),Y=_(Y,Z,te,U,R,22,u[11]),U=_(U,Y,Z,te,I,7,u[12]),te=_(te,U,Y,Z,M,12,u[13]),Z=_(Z,te,U,Y,$,17,u[14]),Y=_(Y,Z,te,U,V,22,u[15]),U=v(U,Y,Z,te,w,5,u[16]),te=v(te,U,Y,Z,A,9,u[17]),Z=v(Z,te,U,Y,R,14,u[18]),Y=v(Y,Z,te,U,C,20,u[19]),U=v(U,Y,Z,te,x,5,u[20]),te=v(te,U,Y,Z,P,9,u[21]),Z=v(Z,te,U,Y,V,14,u[22]),Y=v(Y,Z,te,U,k,20,u[23]),U=v(U,Y,Z,te,H,5,u[24]),te=v(te,U,Y,Z,$,9,u[25]),Z=v(Z,te,U,Y,E,14,u[26]),Y=v(Y,Z,te,U,T,20,u[27]),U=v(U,Y,Z,te,M,5,u[28]),te=v(te,U,Y,Z,S,9,u[29]),Z=v(Z,te,U,Y,L,14,u[30]),Y=v(Y,Z,te,U,I,20,u[31]),U=p(U,Y,Z,te,x,4,u[32]),te=p(te,U,Y,Z,T,11,u[33]),Z=p(Z,te,U,Y,R,16,u[34]),Y=p(Y,Z,te,U,$,23,u[35]),U=p(U,Y,Z,te,w,4,u[36]),te=p(te,U,Y,Z,k,11,u[37]),Z=p(Z,te,U,Y,L,16,u[38]),Y=p(Y,Z,te,U,P,23,u[39]),U=p(U,Y,Z,te,M,4,u[40]),te=p(te,U,Y,Z,C,11,u[41]),Z=p(Z,te,U,Y,E,16,u[42]),Y=p(Y,Z,te,U,A,23,u[43]),U=p(U,Y,Z,te,H,4,u[44]),te=p(te,U,Y,Z,I,11,u[45]),Z=p(Z,te,U,Y,V,16,u[46]),Y=p(Y,Z,te,U,S,23,u[47]),U=g(U,Y,Z,te,C,6,u[48]),te=g(te,U,Y,Z,L,10,u[49]),Z=g(Z,te,U,Y,$,15,u[50]),Y=g(Y,Z,te,U,x,21,u[51]),U=g(U,Y,Z,te,I,6,u[52]),te=g(te,U,Y,Z,E,10,u[53]),Z=g(Z,te,U,Y,P,15,u[54]),Y=g(Y,Z,te,U,w,21,u[55]),U=g(U,Y,Z,te,T,6,u[56]),te=g(te,U,Y,Z,V,10,u[57]),Z=g(Z,te,U,Y,A,15,u[58]),Y=g(Y,Z,te,U,M,21,u[59]),U=g(U,Y,Z,te,k,6,u[60]),te=g(te,U,Y,Z,R,10,u[61]),Z=g(Z,te,U,Y,S,15,u[62]),Y=g(Y,Z,te,U,H,21,u[63]),y[0]=y[0]+U|0,y[1]=y[1]+Y|0,y[2]=y[2]+Z|0,y[3]=y[3]+te|0},_doFinalize:function(){var b=this._data,m=b.words,d=this._nDataBytes*8,f=b.sigBytes*8;m[f>>>5]|=128<<24-f%32;var h=n.floor(d/4294967296),y=d;m[(f+64>>>9<<4)+15]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,m[(f+64>>>9<<4)+14]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,b.sigBytes=(m.length+1)*4,this._process();for(var C=this._hash,w=C.words,S=0;S<4;S++){var E=w[S];w[S]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360}return C},clone:function(){var b=a.clone.call(this);return b._hash=this._hash.clone(),b}});function _(b,m,d,f,h,y,C){var w=b+(m&d|~m&f)+h+C;return(w<<y|w>>>32-y)+m}function v(b,m,d,f,h,y,C){var w=b+(m&f|d&~f)+h+C;return(w<<y|w>>>32-y)+m}function p(b,m,d,f,h,y,C){var w=b+(m^d^f)+h+C;return(w<<y|w>>>32-y)+m}function g(b,m,d,f,h,y,C){var w=b+(d^(m|~f))+h+C;return(w<<y|w>>>32-y)+m}o.MD5=a._createHelper(c),o.HmacMD5=a._createHmacHelper(c)}(Math),r.MD5})})(Qi);var Fc={exports:{}};(function(e,t){(function(r,n){e.exports=n(tt.exports)})(Qe,function(r){return function(){var n=r,o=n.lib,i=o.WordArray,s=o.Hasher,a=n.algo,l=[],u=a.SHA1=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(c,_){for(var v=this._hash.words,p=v[0],g=v[1],b=v[2],m=v[3],d=v[4],f=0;f<80;f++){if(f<16)l[f]=c[_+f]|0;else{var h=l[f-3]^l[f-8]^l[f-14]^l[f-16];l[f]=h<<1|h>>>31}var y=(p<<5|p>>>27)+d+l[f];f<20?y+=(g&b|~g&m)+1518500249:f<40?y+=(g^b^m)+1859775393:f<60?y+=(g&b|g&m|b&m)-1894007588:y+=(g^b^m)-899497514,d=m,m=b,b=g<<30|g>>>2,g=p,p=y}v[0]=v[0]+p|0,v[1]=v[1]+g|0,v[2]=v[2]+b|0,v[3]=v[3]+m|0,v[4]=v[4]+d|0},_doFinalize:function(){var c=this._data,_=c.words,v=this._nDataBytes*8,p=c.sigBytes*8;return _[p>>>5]|=128<<24-p%32,_[(p+64>>>9<<4)+14]=Math.floor(v/4294967296),_[(p+64>>>9<<4)+15]=v,c.sigBytes=_.length*4,this._process(),this._hash},clone:function(){var c=s.clone.call(this);return c._hash=this._hash.clone(),c}});n.SHA1=s._createHelper(u),n.HmacSHA1=s._createHmacHelper(u)}(),r.SHA1})})(Fc);var oh={exports:{}};(function(e,t){(function(r,n){e.exports=n(tt.exports)})(Qe,function(r){return function(n){var o=r,i=o.lib,s=i.WordArray,a=i.Hasher,l=o.algo,u=[],c=[];(function(){function p(d){for(var f=n.sqrt(d),h=2;h<=f;h++)if(!(d%h))return!1;return!0}function g(d){return(d-(d|0))*4294967296|0}for(var b=2,m=0;m<64;)p(b)&&(m<8&&(u[m]=g(n.pow(b,1/2))),c[m]=g(n.pow(b,1/3)),m++),b++})();var _=[],v=l.SHA256=a.extend({_doReset:function(){this._hash=new s.init(u.slice(0))},_doProcessBlock:function(p,g){for(var b=this._hash.words,m=b[0],d=b[1],f=b[2],h=b[3],y=b[4],C=b[5],w=b[6],S=b[7],E=0;E<64;E++){if(E<16)_[E]=p[g+E]|0;else{var k=_[E-15],x=(k<<25|k>>>7)^(k<<14|k>>>18)^k>>>3,A=_[E-2],L=(A<<15|A>>>17)^(A<<13|A>>>19)^A>>>10;_[E]=x+_[E-7]+L+_[E-16]}var T=y&C^~y&w,H=m&d^m&f^d&f,P=(m<<30|m>>>2)^(m<<19|m>>>13)^(m<<10|m>>>22),R=(y<<26|y>>>6)^(y<<21|y>>>11)^(y<<7|y>>>25),I=S+R+T+c[E]+_[E],M=P+H;S=w,w=C,C=y,y=h+I|0,h=f,f=d,d=m,m=I+M|0}b[0]=b[0]+m|0,b[1]=b[1]+d|0,b[2]=b[2]+f|0,b[3]=b[3]+h|0,b[4]=b[4]+y|0,b[5]=b[5]+C|0,b[6]=b[6]+w|0,b[7]=b[7]+S|0},_doFinalize:function(){var p=this._data,g=p.words,b=this._nDataBytes*8,m=p.sigBytes*8;return g[m>>>5]|=128<<24-m%32,g[(m+64>>>9<<4)+14]=n.floor(b/4294967296),g[(m+64>>>9<<4)+15]=b,p.sigBytes=g.length*4,this._process(),this._hash},clone:function(){var p=a.clone.call(this);return p._hash=this._hash.clone(),p}});o.SHA256=a._createHelper(v),o.HmacSHA256=a._createHmacHelper(v)}(Math),r.SHA256})})(oh);var Oy={exports:{}};(function(e,t){(function(r,n,o){e.exports=n(tt.exports,oh.exports)})(Qe,function(r){return function(){var n=r,o=n.lib,i=o.WordArray,s=n.algo,a=s.SHA256,l=s.SHA224=a.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var u=a._doFinalize.call(this);return u.sigBytes-=4,u}});n.SHA224=a._createHelper(l),n.HmacSHA224=a._createHmacHelper(l)}(),r.SHA224})})(Oy);var sh={exports:{}};(function(e,t){(function(r,n,o){e.exports=n(tt.exports,sa.exports)})(Qe,function(r){return function(){var n=r,o=n.lib,i=o.Hasher,s=n.x64,a=s.Word,l=s.WordArray,u=n.algo;function c(){return a.create.apply(a,arguments)}var _=[c(1116352408,3609767458),c(1899447441,602891725),c(3049323471,3964484399),c(3921009573,2173295548),c(961987163,4081628472),c(1508970993,3053834265),c(2453635748,2937671579),c(2870763221,3664609560),c(3624381080,2734883394),c(310598401,1164996542),c(607225278,1323610764),c(1426881987,3590304994),c(1925078388,4068182383),c(2162078206,991336113),c(2614888103,633803317),c(3248222580,3479774868),c(3835390401,2666613458),c(4022224774,944711139),c(264347078,2341262773),c(604807628,2007800933),c(770255983,1495990901),c(1249150122,1856431235),c(1555081692,3175218132),c(1996064986,2198950837),c(2554220882,3999719339),c(2821834349,766784016),c(2952996808,2566594879),c(3210313671,3203337956),c(3336571891,1034457026),c(3584528711,2466948901),c(113926993,3758326383),c(338241895,168717936),c(666307205,1188179964),c(773529912,1546045734),c(1294757372,1522805485),c(1396182291,2643833823),c(1695183700,2343527390),c(1986661051,1014477480),c(2177026350,1206759142),c(2456956037,344077627),c(2730485921,1290863460),c(2820302411,3158454273),c(3259730800,3505952657),c(3345764771,106217008),c(3516065817,3606008344),c(3600352804,1432725776),c(4094571909,1467031594),c(275423344,851169720),c(430227734,3100823752),c(506948616,1363258195),c(659060556,3750685593),c(883997877,3785050280),c(958139571,3318307427),c(1322822218,3812723403),c(1537002063,2003034995),c(1747873779,3602036899),c(1955562222,1575990012),c(2024104815,1125592928),c(2227730452,2716904306),c(2361852424,442776044),c(2428436474,593698344),c(2756734187,3733110249),c(3204031479,2999351573),c(3329325298,3815920427),c(3391569614,3928383900),c(3515267271,566280711),c(3940187606,3454069534),c(4118630271,4000239992),c(116418474,1914138554),c(174292421,2731055270),c(289380356,3203993006),c(460393269,320620315),c(685471733,587496836),c(852142971,1086792851),c(1017036298,365543100),c(1126000580,2618297676),c(1288033470,3409855158),c(1501505948,4234509866),c(1607167915,987167468),c(1816402316,1246189591)],v=[];(function(){for(var g=0;g<80;g++)v[g]=c()})();var p=u.SHA512=i.extend({_doReset:function(){this._hash=new l.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(g,b){for(var m=this._hash.words,d=m[0],f=m[1],h=m[2],y=m[3],C=m[4],w=m[5],S=m[6],E=m[7],k=d.high,x=d.low,A=f.high,L=f.low,T=h.high,H=h.low,P=y.high,R=y.low,I=C.high,M=C.low,$=w.high,V=w.low,U=S.high,Y=S.low,Z=E.high,te=E.low,B=k,z=x,O=A,D=L,F=T,ue=H,fe=P,ge=R,j=I,q=M,ie=$,ee=V,ae=U,pe=Y,be=Z,he=te,_e=0;_e<80;_e++){var ce,re,ve=v[_e];if(_e<16)re=ve.high=g[b+_e*2]|0,ce=ve.low=g[b+_e*2+1]|0;else{var Ae=v[_e-15],Le=Ae.high,$e=Ae.low,ye=(Le>>>1|$e<<31)^(Le>>>8|$e<<24)^Le>>>7,xe=($e>>>1|Le<<31)^($e>>>8|Le<<24)^($e>>>7|Le<<25),Re=v[_e-2],Me=Re.high,Ke=Re.low,pt=(Me>>>19|Ke<<13)^(Me<<3|Ke>>>29)^Me>>>6,vt=(Ke>>>19|Me<<13)^(Ke<<3|Me>>>29)^(Ke>>>6|Me<<26),Ht=v[_e-7],st=Ht.high,At=Ht.low,Sr=v[_e-16],kn=Sr.high,Mr=Sr.low;ce=xe+At,re=ye+st+(ce>>>0<xe>>>0?1:0),ce=ce+vt,re=re+pt+(ce>>>0<vt>>>0?1:0),ce=ce+Mr,re=re+kn+(ce>>>0<Mr>>>0?1:0),ve.high=re,ve.low=ce}var Tn=j&ie^~j&ae,ii=q&ee^~q&pe,Zi=B&O^B&F^O&F,eo=z&D^z&ue^D&ue,to=(B>>>28|z<<4)^(B<<30|z>>>2)^(B<<25|z>>>7),oi=(z>>>28|B<<4)^(z<<30|B>>>2)^(z<<25|B>>>7),ro=(j>>>14|q<<18)^(j>>>18|q<<14)^(j<<23|q>>>9),no=(q>>>14|j<<18)^(q>>>18|j<<14)^(q<<23|j>>>9),si=_[_e],io=si.high,ai=si.low,Rt=he+no,cr=be+ro+(Rt>>>0<he>>>0?1:0),Rt=Rt+ii,cr=cr+Tn+(Rt>>>0<ii>>>0?1:0),Rt=Rt+ai,cr=cr+io+(Rt>>>0<ai>>>0?1:0),Rt=Rt+ce,cr=cr+re+(Rt>>>0<ce>>>0?1:0),li=oi+eo,oo=to+Zi+(li>>>0<oi>>>0?1:0);be=ae,he=pe,ae=ie,pe=ee,ie=j,ee=q,q=ge+Rt|0,j=fe+cr+(q>>>0<ge>>>0?1:0)|0,fe=F,ge=ue,F=O,ue=D,O=B,D=z,z=Rt+li|0,B=cr+oo+(z>>>0<Rt>>>0?1:0)|0}x=d.low=x+z,d.high=k+B+(x>>>0<z>>>0?1:0),L=f.low=L+D,f.high=A+O+(L>>>0<D>>>0?1:0),H=h.low=H+ue,h.high=T+F+(H>>>0<ue>>>0?1:0),R=y.low=R+ge,y.high=P+fe+(R>>>0<ge>>>0?1:0),M=C.low=M+q,C.high=I+j+(M>>>0<q>>>0?1:0),V=w.low=V+ee,w.high=$+ie+(V>>>0<ee>>>0?1:0),Y=S.low=Y+pe,S.high=U+ae+(Y>>>0<pe>>>0?1:0),te=E.low=te+he,E.high=Z+be+(te>>>0<he>>>0?1:0)},_doFinalize:function(){var g=this._data,b=g.words,m=this._nDataBytes*8,d=g.sigBytes*8;b[d>>>5]|=128<<24-d%32,b[(d+128>>>10<<5)+30]=Math.floor(m/4294967296),b[(d+128>>>10<<5)+31]=m,g.sigBytes=b.length*4,this._process();var f=this._hash.toX32();return f},clone:function(){var g=i.clone.call(this);return g._hash=this._hash.clone(),g},blockSize:1024/32});n.SHA512=i._createHelper(p),n.HmacSHA512=i._createHmacHelper(p)}(),r.SHA512})})(sh);var Iy={exports:{}};(function(e,t){(function(r,n,o){e.exports=n(tt.exports,sa.exports,sh.exports)})(Qe,function(r){return function(){var n=r,o=n.x64,i=o.Word,s=o.WordArray,a=n.algo,l=a.SHA512,u=a.SHA384=l.extend({_doReset:function(){this._hash=new s.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var c=l._doFinalize.call(this);return c.sigBytes-=16,c}});n.SHA384=l._createHelper(u),n.HmacSHA384=l._createHmacHelper(u)}(),r.SHA384})})(Iy);var My={exports:{}};(function(e,t){(function(r,n,o){e.exports=n(tt.exports,sa.exports)})(Qe,function(r){return function(n){var o=r,i=o.lib,s=i.WordArray,a=i.Hasher,l=o.x64,u=l.Word,c=o.algo,_=[],v=[],p=[];(function(){for(var m=1,d=0,f=0;f<24;f++){_[m+5*d]=(f+1)*(f+2)/2%64;var h=d%5,y=(2*m+3*d)%5;m=h,d=y}for(var m=0;m<5;m++)for(var d=0;d<5;d++)v[m+5*d]=d+(2*m+3*d)%5*5;for(var C=1,w=0;w<24;w++){for(var S=0,E=0,k=0;k<7;k++){if(C&1){var x=(1<<k)-1;x<32?E^=1<<x:S^=1<<x-32}C&128?C=C<<1^113:C<<=1}p[w]=u.create(S,E)}})();var g=[];(function(){for(var m=0;m<25;m++)g[m]=u.create()})();var b=c.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var m=this._state=[],d=0;d<25;d++)m[d]=new u.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(m,d){for(var f=this._state,h=this.blockSize/2,y=0;y<h;y++){var C=m[d+2*y],w=m[d+2*y+1];C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360;var S=f[y];S.high^=w,S.low^=C}for(var E=0;E<24;E++){for(var k=0;k<5;k++){for(var x=0,A=0,L=0;L<5;L++){var S=f[k+5*L];x^=S.high,A^=S.low}var T=g[k];T.high=x,T.low=A}for(var k=0;k<5;k++)for(var H=g[(k+4)%5],P=g[(k+1)%5],R=P.high,I=P.low,x=H.high^(R<<1|I>>>31),A=H.low^(I<<1|R>>>31),L=0;L<5;L++){var S=f[k+5*L];S.high^=x,S.low^=A}for(var M=1;M<25;M++){var x,A,S=f[M],$=S.high,V=S.low,U=_[M];U<32?(x=$<<U|V>>>32-U,A=V<<U|$>>>32-U):(x=V<<U-32|$>>>64-U,A=$<<U-32|V>>>64-U);var Y=g[v[M]];Y.high=x,Y.low=A}var Z=g[0],te=f[0];Z.high=te.high,Z.low=te.low;for(var k=0;k<5;k++)for(var L=0;L<5;L++){var M=k+5*L,S=f[M],B=g[M],z=g[(k+1)%5+5*L],O=g[(k+2)%5+5*L];S.high=B.high^~z.high&O.high,S.low=B.low^~z.low&O.low}var S=f[0],D=p[E];S.high^=D.high,S.low^=D.low}},_doFinalize:function(){var m=this._data,d=m.words;this._nDataBytes*8;var f=m.sigBytes*8,h=this.blockSize*32;d[f>>>5]|=1<<24-f%32,d[(n.ceil((f+1)/h)*h>>>5)-1]|=128,m.sigBytes=d.length*4,this._process();for(var y=this._state,C=this.cfg.outputLength/8,w=C/8,S=[],E=0;E<w;E++){var k=y[E],x=k.high,A=k.low;x=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,S.push(A),S.push(x)}return new s.init(S,C)},clone:function(){for(var m=a.clone.call(this),d=m._state=this._state.slice(0),f=0;f<25;f++)d[f]=d[f].clone();return m}});o.SHA3=a._createHelper(b),o.HmacSHA3=a._createHmacHelper(b)}(Math),r.SHA3})})(My);var Py={exports:{}};(function(e,t){(function(r,n){e.exports=n(tt.exports)})(Qe,function(r){/** @preserve
(c) 2012 by Cédric Mesnil. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/return function(n){var o=r,i=o.lib,s=i.WordArray,a=i.Hasher,l=o.algo,u=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),_=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),v=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),p=s.create([0,1518500249,1859775393,2400959708,2840853838]),g=s.create([1352829926,1548603684,1836072691,2053994217,0]),b=l.RIPEMD160=a.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(w,S){for(var E=0;E<16;E++){var k=S+E,x=w[k];w[k]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360}var A=this._hash.words,L=p.words,T=g.words,H=u.words,P=c.words,R=_.words,I=v.words,M,$,V,U,Y,Z,te,B,z,O;Z=M=A[0],te=$=A[1],B=V=A[2],z=U=A[3],O=Y=A[4];for(var D,E=0;E<80;E+=1)D=M+w[S+H[E]]|0,E<16?D+=m($,V,U)+L[0]:E<32?D+=d($,V,U)+L[1]:E<48?D+=f($,V,U)+L[2]:E<64?D+=h($,V,U)+L[3]:D+=y($,V,U)+L[4],D=D|0,D=C(D,R[E]),D=D+Y|0,M=Y,Y=U,U=C(V,10),V=$,$=D,D=Z+w[S+P[E]]|0,E<16?D+=y(te,B,z)+T[0]:E<32?D+=h(te,B,z)+T[1]:E<48?D+=f(te,B,z)+T[2]:E<64?D+=d(te,B,z)+T[3]:D+=m(te,B,z)+T[4],D=D|0,D=C(D,I[E]),D=D+O|0,Z=O,O=z,z=C(B,10),B=te,te=D;D=A[1]+V+z|0,A[1]=A[2]+U+O|0,A[2]=A[3]+Y+Z|0,A[3]=A[4]+M+te|0,A[4]=A[0]+$+B|0,A[0]=D},_doFinalize:function(){var w=this._data,S=w.words,E=this._nDataBytes*8,k=w.sigBytes*8;S[k>>>5]|=128<<24-k%32,S[(k+64>>>9<<4)+14]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,w.sigBytes=(S.length+1)*4,this._process();for(var x=this._hash,A=x.words,L=0;L<5;L++){var T=A[L];A[L]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}return x},clone:function(){var w=a.clone.call(this);return w._hash=this._hash.clone(),w}});function m(w,S,E){return w^S^E}function d(w,S,E){return w&S|~w&E}function f(w,S,E){return(w|~S)^E}function h(w,S,E){return w&E|S&~E}function y(w,S,E){return w^(S|~E)}function C(w,S){return w<<S|w>>>32-S}o.RIPEMD160=a._createHelper(b),o.HmacRIPEMD160=a._createHmacHelper(b)}(),r.RIPEMD160})})(Py);var Nc={exports:{}};(function(e,t){(function(r,n){e.exports=n(tt.exports)})(Qe,function(r){(function(){var n=r,o=n.lib,i=o.Base,s=n.enc,a=s.Utf8,l=n.algo;l.HMAC=i.extend({init:function(u,c){u=this._hasher=new u.init,typeof c=="string"&&(c=a.parse(c));var _=u.blockSize,v=_*4;c.sigBytes>v&&(c=u.finalize(c)),c.clamp();for(var p=this._oKey=c.clone(),g=this._iKey=c.clone(),b=p.words,m=g.words,d=0;d<_;d++)b[d]^=1549556828,m[d]^=909522486;p.sigBytes=g.sigBytes=v,this.reset()},reset:function(){var u=this._hasher;u.reset(),u.update(this._iKey)},update:function(u){return this._hasher.update(u),this},finalize:function(u){var c=this._hasher,_=c.finalize(u);c.reset();var v=c.finalize(this._oKey.clone().concat(_));return v}})})()})})(Nc);var Dy={exports:{}};(function(e,t){(function(r,n,o){e.exports=n(tt.exports,Fc.exports,Nc.exports)})(Qe,function(r){return function(){var n=r,o=n.lib,i=o.Base,s=o.WordArray,a=n.algo,l=a.SHA1,u=a.HMAC,c=a.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:l,iterations:1}),init:function(_){this.cfg=this.cfg.extend(_)},compute:function(_,v){for(var p=this.cfg,g=u.create(p.hasher,_),b=s.create(),m=s.create([1]),d=b.words,f=m.words,h=p.keySize,y=p.iterations;d.length<h;){var C=g.update(v).finalize(m);g.reset();for(var w=C.words,S=w.length,E=C,k=1;k<y;k++){E=g.finalize(E),g.reset();for(var x=E.words,A=0;A<S;A++)w[A]^=x[A]}b.concat(C),f[0]++}return b.sigBytes=h*4,b}});n.PBKDF2=function(_,v,p){return c.create(p).compute(_,v)}}(),r.PBKDF2})})(Dy);var ni={exports:{}};(function(e,t){(function(r,n,o){e.exports=n(tt.exports,Fc.exports,Nc.exports)})(Qe,function(r){return function(){var n=r,o=n.lib,i=o.Base,s=o.WordArray,a=n.algo,l=a.MD5,u=a.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:l,iterations:1}),init:function(c){this.cfg=this.cfg.extend(c)},compute:function(c,_){for(var v,p=this.cfg,g=p.hasher.create(),b=s.create(),m=b.words,d=p.keySize,f=p.iterations;m.length<d;){v&&g.update(v),v=g.update(c).finalize(_),g.reset();for(var h=1;h<f;h++)v=g.finalize(v),g.reset();b.concat(v)}return b.sigBytes=d*4,b}});n.EvpKDF=function(c,_,v){return u.create(v).compute(c,_)}}(),r.EvpKDF})})(ni);var Dt={exports:{}};(function(e,t){(function(r,n,o){e.exports=n(tt.exports,ni.exports)})(Qe,function(r){r.lib.Cipher||function(n){var o=r,i=o.lib,s=i.Base,a=i.WordArray,l=i.BufferedBlockAlgorithm,u=o.enc;u.Utf8;var c=u.Base64,_=o.algo,v=_.EvpKDF,p=i.Cipher=l.extend({cfg:s.extend(),createEncryptor:function(x,A){return this.create(this._ENC_XFORM_MODE,x,A)},createDecryptor:function(x,A){return this.create(this._DEC_XFORM_MODE,x,A)},init:function(x,A,L){this.cfg=this.cfg.extend(L),this._xformMode=x,this._key=A,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(x){return this._append(x),this._process()},finalize:function(x){x&&this._append(x);var A=this._doFinalize();return A},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function x(A){return typeof A=="string"?k:w}return function(A){return{encrypt:function(L,T,H){return x(T).encrypt(A,L,T,H)},decrypt:function(L,T,H){return x(T).decrypt(A,L,T,H)}}}}()});i.StreamCipher=p.extend({_doFinalize:function(){var x=this._process(!0);return x},blockSize:1});var g=o.mode={},b=i.BlockCipherMode=s.extend({createEncryptor:function(x,A){return this.Encryptor.create(x,A)},createDecryptor:function(x,A){return this.Decryptor.create(x,A)},init:function(x,A){this._cipher=x,this._iv=A}}),m=g.CBC=function(){var x=b.extend();x.Encryptor=x.extend({processBlock:function(L,T){var H=this._cipher,P=H.blockSize;A.call(this,L,T,P),H.encryptBlock(L,T),this._prevBlock=L.slice(T,T+P)}}),x.Decryptor=x.extend({processBlock:function(L,T){var H=this._cipher,P=H.blockSize,R=L.slice(T,T+P);H.decryptBlock(L,T),A.call(this,L,T,P),this._prevBlock=R}});function A(L,T,H){var P,R=this._iv;R?(P=R,this._iv=n):P=this._prevBlock;for(var I=0;I<H;I++)L[T+I]^=P[I]}return x}(),d=o.pad={},f=d.Pkcs7={pad:function(x,A){for(var L=A*4,T=L-x.sigBytes%L,H=T<<24|T<<16|T<<8|T,P=[],R=0;R<T;R+=4)P.push(H);var I=a.create(P,T);x.concat(I)},unpad:function(x){var A=x.words[x.sigBytes-1>>>2]&255;x.sigBytes-=A}};i.BlockCipher=p.extend({cfg:p.cfg.extend({mode:m,padding:f}),reset:function(){var x;p.reset.call(this);var A=this.cfg,L=A.iv,T=A.mode;this._xformMode==this._ENC_XFORM_MODE?x=T.createEncryptor:(x=T.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==x?this._mode.init(this,L&&L.words):(this._mode=x.call(T,this,L&&L.words),this._mode.__creator=x)},_doProcessBlock:function(x,A){this._mode.processBlock(x,A)},_doFinalize:function(){var x,A=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(A.pad(this._data,this.blockSize),x=this._process(!0)):(x=this._process(!0),A.unpad(x)),x},blockSize:128/32});var h=i.CipherParams=s.extend({init:function(x){this.mixIn(x)},toString:function(x){return(x||this.formatter).stringify(this)}}),y=o.format={},C=y.OpenSSL={stringify:function(x){var A,L=x.ciphertext,T=x.salt;return T?A=a.create([1398893684,1701076831]).concat(T).concat(L):A=L,A.toString(c)},parse:function(x){var A,L=c.parse(x),T=L.words;return T[0]==1398893684&&T[1]==1701076831&&(A=a.create(T.slice(2,4)),T.splice(0,4),L.sigBytes-=16),h.create({ciphertext:L,salt:A})}},w=i.SerializableCipher=s.extend({cfg:s.extend({format:C}),encrypt:function(x,A,L,T){T=this.cfg.extend(T);var H=x.createEncryptor(L,T),P=H.finalize(A),R=H.cfg;return h.create({ciphertext:P,key:L,iv:R.iv,algorithm:x,mode:R.mode,padding:R.padding,blockSize:x.blockSize,formatter:T.format})},decrypt:function(x,A,L,T){T=this.cfg.extend(T),A=this._parse(A,T.format);var H=x.createDecryptor(L,T).finalize(A.ciphertext);return H},_parse:function(x,A){return typeof x=="string"?A.parse(x,this):x}}),S=o.kdf={},E=S.OpenSSL={execute:function(x,A,L,T){T||(T=a.random(64/8));var H=v.create({keySize:A+L}).compute(x,T),P=a.create(H.words.slice(A),L*4);return H.sigBytes=A*4,h.create({key:H,iv:P,salt:T})}},k=i.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:E}),encrypt:function(x,A,L,T){T=this.cfg.extend(T);var H=T.kdf.execute(L,x.keySize,x.ivSize);T.iv=H.iv;var P=w.encrypt.call(this,x,A,H.key,T);return P.mixIn(H),P},decrypt:function(x,A,L,T){T=this.cfg.extend(T),A=this._parse(A,T.format);var H=T.kdf.execute(L,x.keySize,x.ivSize,A.salt);T.iv=H.iv;var P=w.decrypt.call(this,x,A,H.key,T);return P}})}()})})(Dt);var Hy={exports:{}};(function(e,t){(function(r,n,o){e.exports=n(tt.exports,Dt.exports)})(Qe,function(r){return r.mode.CFB=function(){var n=r.lib.BlockCipherMode.extend();n.Encryptor=n.extend({processBlock:function(i,s){var a=this._cipher,l=a.blockSize;o.call(this,i,s,l,a),this._prevBlock=i.slice(s,s+l)}}),n.Decryptor=n.extend({processBlock:function(i,s){var a=this._cipher,l=a.blockSize,u=i.slice(s,s+l);o.call(this,i,s,l,a),this._prevBlock=u}});function o(i,s,a,l){var u,c=this._iv;c?(u=c.slice(0),this._iv=void 0):u=this._prevBlock,l.encryptBlock(u,0);for(var _=0;_<a;_++)i[s+_]^=u[_]}return n}(),r.mode.CFB})})(Hy);var Fy={exports:{}};(function(e,t){(function(r,n,o){e.exports=n(tt.exports,Dt.exports)})(Qe,function(r){return r.mode.CTR=function(){var n=r.lib.BlockCipherMode.extend(),o=n.Encryptor=n.extend({processBlock:function(i,s){var a=this._cipher,l=a.blockSize,u=this._iv,c=this._counter;u&&(c=this._counter=u.slice(0),this._iv=void 0);var _=c.slice(0);a.encryptBlock(_,0),c[l-1]=c[l-1]+1|0;for(var v=0;v<l;v++)i[s+v]^=_[v]}});return n.Decryptor=o,n}(),r.mode.CTR})})(Fy);var Ny={exports:{}};(function(e,t){(function(r,n,o){e.exports=n(tt.exports,Dt.exports)})(Qe,function(r){/** @preserve
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/return r.mode.CTRGladman=function(){var n=r.lib.BlockCipherMode.extend();function o(a){if((a>>24&255)===255){var l=a>>16&255,u=a>>8&255,c=a&255;l===255?(l=0,u===255?(u=0,c===255?c=0:++c):++u):++l,a=0,a+=l<<16,a+=u<<8,a+=c}else a+=1<<24;return a}function i(a){return(a[0]=o(a[0]))===0&&(a[1]=o(a[1])),a}var s=n.Encryptor=n.extend({processBlock:function(a,l){var u=this._cipher,c=u.blockSize,_=this._iv,v=this._counter;_&&(v=this._counter=_.slice(0),this._iv=void 0),i(v);var p=v.slice(0);u.encryptBlock(p,0);for(var g=0;g<c;g++)a[l+g]^=p[g]}});return n.Decryptor=s,n}(),r.mode.CTRGladman})})(Ny);var $y={exports:{}};(function(e,t){(function(r,n,o){e.exports=n(tt.exports,Dt.exports)})(Qe,function(r){return r.mode.OFB=function(){var n=r.lib.BlockCipherMode.extend(),o=n.Encryptor=n.extend({processBlock:function(i,s){var a=this._cipher,l=a.blockSize,u=this._iv,c=this._keystream;u&&(c=this._keystream=u.slice(0),this._iv=void 0),a.encryptBlock(c,0);for(var _=0;_<l;_++)i[s+_]^=c[_]}});return n.Decryptor=o,n}(),r.mode.OFB})})($y);var jy={exports:{}};(function(e,t){(function(r,n,o){e.exports=n(tt.exports,Dt.exports)})(Qe,function(r){return r.mode.ECB=function(){var n=r.lib.BlockCipherMode.extend();return n.Encryptor=n.extend({processBlock:function(o,i){this._cipher.encryptBlock(o,i)}}),n.Decryptor=n.extend({processBlock:function(o,i){this._cipher.decryptBlock(o,i)}}),n}(),r.mode.ECB})})(jy);var Uy={exports:{}};(function(e,t){(function(r,n,o){e.exports=n(tt.exports,Dt.exports)})(Qe,function(r){return r.pad.AnsiX923={pad:function(n,o){var i=n.sigBytes,s=o*4,a=s-i%s,l=i+a-1;n.clamp(),n.words[l>>>2]|=a<<24-l%4*8,n.sigBytes+=a},unpad:function(n){var o=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=o}},r.pad.Ansix923})})(Uy);var Wy={exports:{}};(function(e,t){(function(r,n,o){e.exports=n(tt.exports,Dt.exports)})(Qe,function(r){return r.pad.Iso10126={pad:function(n,o){var i=o*4,s=i-n.sigBytes%i;n.concat(r.lib.WordArray.random(s-1)).concat(r.lib.WordArray.create([s<<24],1))},unpad:function(n){var o=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=o}},r.pad.Iso10126})})(Wy);var zy={exports:{}};(function(e,t){(function(r,n,o){e.exports=n(tt.exports,Dt.exports)})(Qe,function(r){return r.pad.Iso97971={pad:function(n,o){n.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(n,o)},unpad:function(n){r.pad.ZeroPadding.unpad(n),n.sigBytes--}},r.pad.Iso97971})})(zy);var qy={exports:{}};(function(e,t){(function(r,n,o){e.exports=n(tt.exports,Dt.exports)})(Qe,function(r){return r.pad.ZeroPadding={pad:function(n,o){var i=o*4;n.clamp(),n.sigBytes+=i-(n.sigBytes%i||i)},unpad:function(n){for(var o=n.words,i=n.sigBytes-1,i=n.sigBytes-1;i>=0;i--)if(o[i>>>2]>>>24-i%4*8&255){n.sigBytes=i+1;break}}},r.pad.ZeroPadding})})(qy);var Vy={exports:{}};(function(e,t){(function(r,n,o){e.exports=n(tt.exports,Dt.exports)})(Qe,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})})(Vy);var Ky={exports:{}};(function(e,t){(function(r,n,o){e.exports=n(tt.exports,Dt.exports)})(Qe,function(r){return function(n){var o=r,i=o.lib,s=i.CipherParams,a=o.enc,l=a.Hex,u=o.format;u.Hex={stringify:function(c){return c.ciphertext.toString(l)},parse:function(c){var _=l.parse(c);return s.create({ciphertext:_})}}}(),r.format.Hex})})(Ky);var Gy={exports:{}};(function(e,t){(function(r,n,o){e.exports=n(tt.exports,Xi.exports,Qi.exports,ni.exports,Dt.exports)})(Qe,function(r){return function(){var n=r,o=n.lib,i=o.BlockCipher,s=n.algo,a=[],l=[],u=[],c=[],_=[],v=[],p=[],g=[],b=[],m=[];(function(){for(var h=[],y=0;y<256;y++)y<128?h[y]=y<<1:h[y]=y<<1^283;for(var C=0,w=0,y=0;y<256;y++){var S=w^w<<1^w<<2^w<<3^w<<4;S=S>>>8^S&255^99,a[C]=S,l[S]=C;var E=h[C],k=h[E],x=h[k],A=h[S]*257^S*16843008;u[C]=A<<24|A>>>8,c[C]=A<<16|A>>>16,_[C]=A<<8|A>>>24,v[C]=A;var A=x*16843009^k*65537^E*257^C*16843008;p[S]=A<<24|A>>>8,g[S]=A<<16|A>>>16,b[S]=A<<8|A>>>24,m[S]=A,C?(C=E^h[h[h[x^E]]],w^=h[h[w]]):C=w=1}})();var d=[0,1,2,4,8,16,32,64,128,27,54],f=s.AES=i.extend({_doReset:function(){var h;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var y=this._keyPriorReset=this._key,C=y.words,w=y.sigBytes/4,S=this._nRounds=w+6,E=(S+1)*4,k=this._keySchedule=[],x=0;x<E;x++)x<w?k[x]=C[x]:(h=k[x-1],x%w?w>6&&x%w==4&&(h=a[h>>>24]<<24|a[h>>>16&255]<<16|a[h>>>8&255]<<8|a[h&255]):(h=h<<8|h>>>24,h=a[h>>>24]<<24|a[h>>>16&255]<<16|a[h>>>8&255]<<8|a[h&255],h^=d[x/w|0]<<24),k[x]=k[x-w]^h);for(var A=this._invKeySchedule=[],L=0;L<E;L++){var x=E-L;if(L%4)var h=k[x];else var h=k[x-4];L<4||x<=4?A[L]=h:A[L]=p[a[h>>>24]]^g[a[h>>>16&255]]^b[a[h>>>8&255]]^m[a[h&255]]}}},encryptBlock:function(h,y){this._doCryptBlock(h,y,this._keySchedule,u,c,_,v,a)},decryptBlock:function(h,y){var C=h[y+1];h[y+1]=h[y+3],h[y+3]=C,this._doCryptBlock(h,y,this._invKeySchedule,p,g,b,m,l);var C=h[y+1];h[y+1]=h[y+3],h[y+3]=C},_doCryptBlock:function(h,y,C,w,S,E,k,x){for(var A=this._nRounds,L=h[y]^C[0],T=h[y+1]^C[1],H=h[y+2]^C[2],P=h[y+3]^C[3],R=4,I=1;I<A;I++){var M=w[L>>>24]^S[T>>>16&255]^E[H>>>8&255]^k[P&255]^C[R++],$=w[T>>>24]^S[H>>>16&255]^E[P>>>8&255]^k[L&255]^C[R++],V=w[H>>>24]^S[P>>>16&255]^E[L>>>8&255]^k[T&255]^C[R++],U=w[P>>>24]^S[L>>>16&255]^E[T>>>8&255]^k[H&255]^C[R++];L=M,T=$,H=V,P=U}var M=(x[L>>>24]<<24|x[T>>>16&255]<<16|x[H>>>8&255]<<8|x[P&255])^C[R++],$=(x[T>>>24]<<24|x[H>>>16&255]<<16|x[P>>>8&255]<<8|x[L&255])^C[R++],V=(x[H>>>24]<<24|x[P>>>16&255]<<16|x[L>>>8&255]<<8|x[T&255])^C[R++],U=(x[P>>>24]<<24|x[L>>>16&255]<<16|x[T>>>8&255]<<8|x[H&255])^C[R++];h[y]=M,h[y+1]=$,h[y+2]=V,h[y+3]=U},keySize:256/32});n.AES=i._createHelper(f)}(),r.AES})})(Gy);var Yy={exports:{}};(function(e,t){(function(r,n,o){e.exports=n(tt.exports,Xi.exports,Qi.exports,ni.exports,Dt.exports)})(Qe,function(r){return function(){var n=r,o=n.lib,i=o.WordArray,s=o.BlockCipher,a=n.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],u=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],_=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],v=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],p=a.DES=s.extend({_doReset:function(){for(var d=this._key,f=d.words,h=[],y=0;y<56;y++){var C=l[y]-1;h[y]=f[C>>>5]>>>31-C%32&1}for(var w=this._subKeys=[],S=0;S<16;S++){for(var E=w[S]=[],k=c[S],y=0;y<24;y++)E[y/6|0]|=h[(u[y]-1+k)%28]<<31-y%6,E[4+(y/6|0)]|=h[28+(u[y+24]-1+k)%28]<<31-y%6;E[0]=E[0]<<1|E[0]>>>31;for(var y=1;y<7;y++)E[y]=E[y]>>>(y-1)*4+3;E[7]=E[7]<<5|E[7]>>>27}for(var x=this._invSubKeys=[],y=0;y<16;y++)x[y]=w[15-y]},encryptBlock:function(d,f){this._doCryptBlock(d,f,this._subKeys)},decryptBlock:function(d,f){this._doCryptBlock(d,f,this._invSubKeys)},_doCryptBlock:function(d,f,h){this._lBlock=d[f],this._rBlock=d[f+1],g.call(this,4,252645135),g.call(this,16,65535),b.call(this,2,858993459),b.call(this,8,16711935),g.call(this,1,1431655765);for(var y=0;y<16;y++){for(var C=h[y],w=this._lBlock,S=this._rBlock,E=0,k=0;k<8;k++)E|=_[k][((S^C[k])&v[k])>>>0];this._lBlock=S,this._rBlock=w^E}var x=this._lBlock;this._lBlock=this._rBlock,this._rBlock=x,g.call(this,1,1431655765),b.call(this,8,16711935),b.call(this,2,858993459),g.call(this,16,65535),g.call(this,4,252645135),d[f]=this._lBlock,d[f+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function g(d,f){var h=(this._lBlock>>>d^this._rBlock)&f;this._rBlock^=h,this._lBlock^=h<<d}function b(d,f){var h=(this._rBlock>>>d^this._lBlock)&f;this._lBlock^=h,this._rBlock^=h<<d}n.DES=s._createHelper(p);var m=a.TripleDES=s.extend({_doReset:function(){var d=this._key,f=d.words;if(f.length!==2&&f.length!==4&&f.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var h=f.slice(0,2),y=f.length<4?f.slice(0,2):f.slice(2,4),C=f.length<6?f.slice(0,2):f.slice(4,6);this._des1=p.createEncryptor(i.create(h)),this._des2=p.createEncryptor(i.create(y)),this._des3=p.createEncryptor(i.create(C))},encryptBlock:function(d,f){this._des1.encryptBlock(d,f),this._des2.decryptBlock(d,f),this._des3.encryptBlock(d,f)},decryptBlock:function(d,f){this._des3.decryptBlock(d,f),this._des2.encryptBlock(d,f),this._des1.decryptBlock(d,f)},keySize:192/32,ivSize:64/32,blockSize:64/32});n.TripleDES=s._createHelper(m)}(),r.TripleDES})})(Yy);var Xy={exports:{}};(function(e,t){(function(r,n,o){e.exports=n(tt.exports,Xi.exports,Qi.exports,ni.exports,Dt.exports)})(Qe,function(r){return function(){var n=r,o=n.lib,i=o.StreamCipher,s=n.algo,a=s.RC4=i.extend({_doReset:function(){for(var c=this._key,_=c.words,v=c.sigBytes,p=this._S=[],g=0;g<256;g++)p[g]=g;for(var g=0,b=0;g<256;g++){var m=g%v,d=_[m>>>2]>>>24-m%4*8&255;b=(b+p[g]+d)%256;var f=p[g];p[g]=p[b],p[b]=f}this._i=this._j=0},_doProcessBlock:function(c,_){c[_]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var c=this._S,_=this._i,v=this._j,p=0,g=0;g<4;g++){_=(_+1)%256,v=(v+c[_])%256;var b=c[_];c[_]=c[v],c[v]=b,p|=c[(c[_]+c[v])%256]<<24-g*8}return this._i=_,this._j=v,p}n.RC4=i._createHelper(a);var u=s.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var c=this.cfg.drop;c>0;c--)l.call(this)}});n.RC4Drop=i._createHelper(u)}(),r.RC4})})(Xy);var Qy={exports:{}};(function(e,t){(function(r,n,o){e.exports=n(tt.exports,Xi.exports,Qi.exports,ni.exports,Dt.exports)})(Qe,function(r){return function(){var n=r,o=n.lib,i=o.StreamCipher,s=n.algo,a=[],l=[],u=[],c=s.Rabbit=i.extend({_doReset:function(){for(var v=this._key.words,p=this.cfg.iv,g=0;g<4;g++)v[g]=(v[g]<<8|v[g]>>>24)&16711935|(v[g]<<24|v[g]>>>8)&4278255360;var b=this._X=[v[0],v[3]<<16|v[2]>>>16,v[1],v[0]<<16|v[3]>>>16,v[2],v[1]<<16|v[0]>>>16,v[3],v[2]<<16|v[1]>>>16],m=this._C=[v[2]<<16|v[2]>>>16,v[0]&4294901760|v[1]&65535,v[3]<<16|v[3]>>>16,v[1]&4294901760|v[2]&65535,v[0]<<16|v[0]>>>16,v[2]&4294901760|v[3]&65535,v[1]<<16|v[1]>>>16,v[3]&4294901760|v[0]&65535];this._b=0;for(var g=0;g<4;g++)_.call(this);for(var g=0;g<8;g++)m[g]^=b[g+4&7];if(p){var d=p.words,f=d[0],h=d[1],y=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360,C=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,w=y>>>16|C&4294901760,S=C<<16|y&65535;m[0]^=y,m[1]^=w,m[2]^=C,m[3]^=S,m[4]^=y,m[5]^=w,m[6]^=C,m[7]^=S;for(var g=0;g<4;g++)_.call(this)}},_doProcessBlock:function(v,p){var g=this._X;_.call(this),a[0]=g[0]^g[5]>>>16^g[3]<<16,a[1]=g[2]^g[7]>>>16^g[5]<<16,a[2]=g[4]^g[1]>>>16^g[7]<<16,a[3]=g[6]^g[3]>>>16^g[1]<<16;for(var b=0;b<4;b++)a[b]=(a[b]<<8|a[b]>>>24)&16711935|(a[b]<<24|a[b]>>>8)&4278255360,v[p+b]^=a[b]},blockSize:128/32,ivSize:64/32});function _(){for(var v=this._X,p=this._C,g=0;g<8;g++)l[g]=p[g];p[0]=p[0]+1295307597+this._b|0,p[1]=p[1]+3545052371+(p[0]>>>0<l[0]>>>0?1:0)|0,p[2]=p[2]+886263092+(p[1]>>>0<l[1]>>>0?1:0)|0,p[3]=p[3]+1295307597+(p[2]>>>0<l[2]>>>0?1:0)|0,p[4]=p[4]+3545052371+(p[3]>>>0<l[3]>>>0?1:0)|0,p[5]=p[5]+886263092+(p[4]>>>0<l[4]>>>0?1:0)|0,p[6]=p[6]+1295307597+(p[5]>>>0<l[5]>>>0?1:0)|0,p[7]=p[7]+3545052371+(p[6]>>>0<l[6]>>>0?1:0)|0,this._b=p[7]>>>0<l[7]>>>0?1:0;for(var g=0;g<8;g++){var b=v[g]+p[g],m=b&65535,d=b>>>16,f=((m*m>>>17)+m*d>>>15)+d*d,h=((b&4294901760)*b|0)+((b&65535)*b|0);u[g]=f^h}v[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,v[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,v[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,v[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,v[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,v[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,v[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,v[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}n.Rabbit=i._createHelper(c)}(),r.Rabbit})})(Qy);var Jy={exports:{}};(function(e,t){(function(r,n,o){e.exports=n(tt.exports,Xi.exports,Qi.exports,ni.exports,Dt.exports)})(Qe,function(r){return function(){var n=r,o=n.lib,i=o.StreamCipher,s=n.algo,a=[],l=[],u=[],c=s.RabbitLegacy=i.extend({_doReset:function(){var v=this._key.words,p=this.cfg.iv,g=this._X=[v[0],v[3]<<16|v[2]>>>16,v[1],v[0]<<16|v[3]>>>16,v[2],v[1]<<16|v[0]>>>16,v[3],v[2]<<16|v[1]>>>16],b=this._C=[v[2]<<16|v[2]>>>16,v[0]&4294901760|v[1]&65535,v[3]<<16|v[3]>>>16,v[1]&4294901760|v[2]&65535,v[0]<<16|v[0]>>>16,v[2]&4294901760|v[3]&65535,v[1]<<16|v[1]>>>16,v[3]&4294901760|v[0]&65535];this._b=0;for(var m=0;m<4;m++)_.call(this);for(var m=0;m<8;m++)b[m]^=g[m+4&7];if(p){var d=p.words,f=d[0],h=d[1],y=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360,C=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,w=y>>>16|C&4294901760,S=C<<16|y&65535;b[0]^=y,b[1]^=w,b[2]^=C,b[3]^=S,b[4]^=y,b[5]^=w,b[6]^=C,b[7]^=S;for(var m=0;m<4;m++)_.call(this)}},_doProcessBlock:function(v,p){var g=this._X;_.call(this),a[0]=g[0]^g[5]>>>16^g[3]<<16,a[1]=g[2]^g[7]>>>16^g[5]<<16,a[2]=g[4]^g[1]>>>16^g[7]<<16,a[3]=g[6]^g[3]>>>16^g[1]<<16;for(var b=0;b<4;b++)a[b]=(a[b]<<8|a[b]>>>24)&16711935|(a[b]<<24|a[b]>>>8)&4278255360,v[p+b]^=a[b]},blockSize:128/32,ivSize:64/32});function _(){for(var v=this._X,p=this._C,g=0;g<8;g++)l[g]=p[g];p[0]=p[0]+1295307597+this._b|0,p[1]=p[1]+3545052371+(p[0]>>>0<l[0]>>>0?1:0)|0,p[2]=p[2]+886263092+(p[1]>>>0<l[1]>>>0?1:0)|0,p[3]=p[3]+1295307597+(p[2]>>>0<l[2]>>>0?1:0)|0,p[4]=p[4]+3545052371+(p[3]>>>0<l[3]>>>0?1:0)|0,p[5]=p[5]+886263092+(p[4]>>>0<l[4]>>>0?1:0)|0,p[6]=p[6]+1295307597+(p[5]>>>0<l[5]>>>0?1:0)|0,p[7]=p[7]+3545052371+(p[6]>>>0<l[6]>>>0?1:0)|0,this._b=p[7]>>>0<l[7]>>>0?1:0;for(var g=0;g<8;g++){var b=v[g]+p[g],m=b&65535,d=b>>>16,f=((m*m>>>17)+m*d>>>15)+d*d,h=((b&4294901760)*b|0)+((b&65535)*b|0);u[g]=f^h}v[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,v[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,v[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,v[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,v[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,v[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,v[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,v[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}n.RabbitLegacy=i._createHelper(c)}(),r.RabbitLegacy})})(Jy);(function(e,t){(function(r,n,o){e.exports=n(tt.exports,sa.exports,Ly.exports,Ry.exports,Xi.exports,By.exports,Qi.exports,Fc.exports,oh.exports,Oy.exports,sh.exports,Iy.exports,My.exports,Py.exports,Nc.exports,Dy.exports,ni.exports,Dt.exports,Hy.exports,Fy.exports,Ny.exports,$y.exports,jy.exports,Uy.exports,Wy.exports,zy.exports,qy.exports,Vy.exports,Ky.exports,Gy.exports,Yy.exports,Xy.exports,Qy.exports,Jy.exports)})(Qe,function(r){return r})})(Ty);var hD=Ty.exports;const pD=e=>{e=e||16;let t="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",r=t.length,n="";for(let o=0;o<e;o++)n+=t.charAt(Math.floor(Math.random()*r));return n},Gl=e=>{const t=localStorage.getItem("publicKey");if(!t)return-1;const r=new dD;return r.setPublicKey(t),r.encrypt(e)},pv=(e,t)=>hD.AES.encrypt(e,t).toString(),vD={name:"SSHForm",props:{show:{required:!0,type:Boolean},tempHost:{required:!0,type:String},name:{required:!0,type:String}},emits:["update:show"],data(){return{sshForm:{host:"",port:22,username:"",type:"privateKey",password:"",privateKey:"",command:""},defaultUsers:[{value:"root"},{value:"ubuntu"}],rules:{host:{required:!0,message:"\u9700\u8F93\u5165\u4E3B\u673A",trigger:"change"},port:{required:!0,message:"\u9700\u8F93\u5165\u7AEF\u53E3",trigger:"change"},username:{required:!0,message:"\u9700\u8F93\u5165\u7528\u6237\u540D",trigger:"change"},type:{required:!0},password:{required:!0,message:"\u9700\u8F93\u5165\u5BC6\u7801",trigger:"change"},privateKey:{required:!0,message:"\u9700\u8F93\u5165\u5BC6\u94A5",trigger:"change"},command:{required:!1}}}},computed:{visible:{get(){return this.show},set(e){this.$emit("update:show",e)}}},watch:{tempHost:{handler(e){this.sshForm.host=e}}},methods:{handleClickUploadBtn(){this.$refs.privateKey.click()},handleSelectPrivateKeyFile(e){let t=e.target.files[0],r=new FileReader;r.onload=n=>{this.sshForm.privateKey=n.target.result,this.$refs.privateKey.value=""},r.readAsText(t)},handleSaveSSH(){this.$refs["ssh-form"].validate().then(async()=>{let e=pD(16),t=JSON.parse(JSON.stringify(this.sshForm));t.password&&(t.password=pv(t.password,e)),t.privateKey&&(t.privateKey=pv(t.privateKey,e)),t.randomKey=Gl(e),await zr.updateSSH(t),this.$notification({title:"\u4FDD\u5B58\u6210\u529F",message:`\u4E0B\u6B21\u70B9\u51FB [Web SSH] \u53EF\u76F4\u63A5\u767B\u5F55\u7EC8\u7AEF
\u5982\u65E0\u6CD5\u767B\u5F55\u8BF7 [\u79FB\u9664\u51ED\u8BC1] \u540E\u91CD\u65B0\u6DFB\u52A0`,type:"success"}),this.visible=!1})},userSearch(e,t){let r=e?this.defaultUsers.filter(n=>n.value.includes(e)):this.defaultUsers;t(r)}}},gD={class:"value"},mD=Te("\u5BC6\u94A5"),_D=Te("\u5BC6\u7801"),yD=Te(" \u9009\u62E9\u79C1\u94A5... "),bD={class:"dialog-footer"},CD=Te("\u53D6\u6D88"),wD=Te("\u4FDD\u5B58");function SD(e,t,r,n,o,i){const s=Xo,a=Rc,l=a8,u=OL,c=Ir,_=Lc,v=Yi;return K(),Ce(v,{modelValue:i.visible,"onUpdate:modelValue":t[10]||(t[10]=p=>i.visible=p),title:"SSH\u8FDE\u63A5","close-on-click-modal":!1},{footer:Q(()=>[W("span",bD,[G(c,{onClick:t[9]||(t[9]=p=>i.visible=!1)},{default:Q(()=>[CD]),_:1}),G(c,{type:"primary",onClick:i.handleSaveSSH},{default:Q(()=>[wD]),_:1},8,["onClick"])])]),default:Q(()=>[G(_,{ref:"ssh-form",model:o.sshForm,rules:o.rules,"hide-required-asterisk":!0,"label-suffix":"\uFF1A","label-width":"90px"},{default:Q(()=>[G(a,{label:"\u4E3B\u673A",prop:"host"},{default:Q(()=>[G(s,{modelValue:o.sshForm.host,"onUpdate:modelValue":t[0]||(t[0]=p=>o.sshForm.host=p),modelModifiers:{trim:!0},disabled:"",clearable:"",autocomplete:"off"},null,8,["modelValue"])]),_:1}),G(a,{label:"\u7AEF\u53E3",prop:"port"},{default:Q(()=>[G(s,{modelValue:o.sshForm.port,"onUpdate:modelValue":t[1]||(t[1]=p=>o.sshForm.port=p),modelModifiers:{trim:!0},clearable:"",autocomplete:"off"},null,8,["modelValue"])]),_:1}),G(a,{label:"\u7528\u6237\u540D",prop:"username"},{default:Q(()=>[G(l,{modelValue:o.sshForm.username,"onUpdate:modelValue":t[2]||(t[2]=p=>o.sshForm.username=p),modelModifiers:{trim:!0},"fetch-suggestions":i.userSearch,style:{width:"100%"},clearable:""},{default:Q(({item:p})=>[W("div",gD,me(p.value),1)]),_:1},8,["modelValue","fetch-suggestions"])]),_:1}),G(a,{label:"\u8BA4\u8BC1\u65B9\u5F0F",prop:"type"},{default:Q(()=>[G(u,{modelValue:o.sshForm.type,"onUpdate:modelValue":t[3]||(t[3]=p=>o.sshForm.type=p),modelModifiers:{trim:!0},label:"privateKey"},{default:Q(()=>[mD]),_:1},8,["modelValue"]),G(u,{modelValue:o.sshForm.type,"onUpdate:modelValue":t[4]||(t[4]=p=>o.sshForm.type=p),modelModifiers:{trim:!0},label:"password"},{default:Q(()=>[_D]),_:1},8,["modelValue"])]),_:1}),o.sshForm.type==="password"?(K(),Ce(a,{key:0,prop:"password",label:"\u5BC6\u7801"},{default:Q(()=>[G(s,{modelValue:o.sshForm.password,"onUpdate:modelValue":t[5]||(t[5]=p=>o.sshForm.password=p),modelModifiers:{trim:!0},type:"password",placeholder:"Please input password",autocomplete:"off",clearable:"","show-password":""},null,8,["modelValue"])]),_:1})):ke("",!0),o.sshForm.type==="privateKey"?(K(),Ce(a,{key:1,prop:"privateKey",label:"\u5BC6\u94A5"},{default:Q(()=>[G(c,{type:"primary",size:"small",onClick:i.handleClickUploadBtn},{default:Q(()=>[yD]),_:1},8,["onClick"]),W("input",{ref:"privateKey",type:"file",name:"privateKey",style:{display:"none"},onChange:t[6]||(t[6]=(...p)=>i.handleSelectPrivateKeyFile&&i.handleSelectPrivateKeyFile(...p))},null,544),G(s,{modelValue:o.sshForm.privateKey,"onUpdate:modelValue":t[7]||(t[7]=p=>o.sshForm.privateKey=p),modelModifiers:{trim:!0},type:"textarea",rows:5,clearable:"",autocomplete:"off",style:{"margin-top":"5px"},placeholder:"-----BEGIN RSA PRIVATE KEY-----"},null,8,["modelValue"])]),_:1})):ke("",!0),G(a,{prop:"command",label:"\u6267\u884C\u6307\u4EE4"},{default:Q(()=>[G(s,{modelValue:o.sshForm.command,"onUpdate:modelValue":t[8]||(t[8]=p=>o.sshForm.command=p),type:"textarea",rows:5,clearable:"",autocomplete:"off",placeholder:"\u8FDE\u63A5\u670D\u52A1\u5668\u540E\u81EA\u52A8\u6267\u884C\u7684\u6307\u4EE4(\u4F8B\u5982: sudo -i)"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])}var xD=lr(vD,[["render",SD]]);const ED={name:"HostCard",components:{SSHForm:xD,NewHost:Sy},props:{hostInfo:{required:!0,type:Object},hiddenIp:{required:!0,type:[Number,Boolean]}},emits:["update-list"],data(){return{sshFormVisible:!1,tempHost:"",updateHostFormVisible:!1,updateHostForm:{}}},computed:{hostIp(){var t;let e=((t=this.ipInfo)==null?void 0:t.query)||this.host||"--";try{let r=e.replace(/(?<=\d*\.\d*\.)(\d*)/g,n=>n.replace(/\d/g,"*"));return this.hiddenIp?r:e}catch{return e}},host(){var e;return(e=this.hostInfo)==null?void 0:e.host},name(){var e;return(e=this.hostInfo)==null?void 0:e.name},ipInfo(){var e;return((e=this.hostInfo)==null?void 0:e.ipInfo)||{}},isError(){var e;return!Boolean((e=this.hostInfo)==null?void 0:e.osInfo)},cpuInfo(){var e;return((e=this.hostInfo)==null?void 0:e.cpuInfo)||{}},memInfo(){var e;return((e=this.hostInfo)==null?void 0:e.memInfo)||{}},osInfo(){var e;return((e=this.hostInfo)==null?void 0:e.osInfo)||{}},driveInfo(){var e;return((e=this.hostInfo)==null?void 0:e.driveInfo)||{}},netstatInfo(){var r;let n=((r=this.hostInfo)==null?void 0:r.netstatInfo)||{},{total:e}=n,t=Da(n,["total"]);return{netTotal:e,netCards:t||{}}},openedCount(){var e;return((e=this.hostInfo)==null?void 0:e.openedCount)||0}},mounted(){},methods:{setColor(e){return e=Number(e),e?e<80?"#595959":e>=80&&e<90?"#FF6600":"#FF0000":"#595959"},handleUpdateName(){let{name:e,host:t}=this;this.updateHostFormVisible=!0,this.updateHostForm={name:e,host:t}},async handleSSH(){let{host:e,name:t}=this,{data:r}=await zr.existSSH(e);if(console.log("\u662F\u5426\u5B58\u5728\u51ED\u8BC1:",r),r)return window.open(`/terminal?host=${e}&name=${t}`);if(!e)return gn({message:"\u8BF7\u7B49\u5F85\u83B7\u53D6\u670D\u52A1\u5668ip\u6216\u5237\u65B0\u9875\u9762\u91CD\u8BD5",type:"warning",center:!0});this.tempHost=e,this.sshFormVisible=!0},async handleRemoveSSH(){Mf.confirm("\u786E\u8BA4\u5220\u9664SSH\u51ED\u8BC1?","Warning",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(async()=>{let{host:e}=this,{data:t}=await zr.removeSSH(e);gn({message:t,type:"success",center:!0})})},handleRemoveHost(){Mf.confirm("\u786E\u8BA4\u5220\u9664\u4E3B\u673A?","Warning",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(async()=>{let{host:e}=this,{data:t}=await zr.removeHost({host:e});gn({message:t,type:"success",center:!0}),this.$emit("update-list")})}}},lt=e=>(nc("data-v-2323d69a"),e=e(),ic(),e),AD={class:"host-state"},kD={key:0,class:"offline"},TD={key:1,class:"online"},LD={class:"info"},RD={class:"weizhi field"},BD={class:"field-detail"},OD=lt(()=>W("h2",null,"\u7CFB\u7EDF",-1)),ID=lt(()=>W("span",null,"\u540D\u79F0:",-1)),MD=lt(()=>W("span",null,"\u7C7B\u578B:",-1)),PD=lt(()=>W("span",null,"\u67B6\u6784:",-1)),DD=lt(()=>W("span",null,"\u5E73\u53F0:",-1)),HD=lt(()=>W("span",null,"\u7248\u672C:",-1)),FD=lt(()=>W("span",null,"\u5F00\u673A\u65F6\u957F:",-1)),ND=lt(()=>W("span",null,"\u672C\u5730IP:",-1)),$D=lt(()=>W("span",null,"\u8FDE\u63A5\u6570:",-1)),jD={class:"fields"},UD={class:"weizhi field"},WD={class:"field-detail"},zD=lt(()=>W("h2",null,"\u4F4D\u7F6E\u4FE1\u606F",-1)),qD=lt(()=>W("span",null,"\u8BE6\u7EC6:",-1)),VD=lt(()=>W("span",null,"\u63D0\u4F9B\u5546:",-1)),KD=lt(()=>W("span",null,"\u7EBF\u8DEF:",-1)),GD={class:"fields"},YD={class:"cpu field"},XD={class:"field-detail"},QD=lt(()=>W("h2",null,"CPU",-1)),JD=lt(()=>W("span",null,"\u5229\u7528\u7387:",-1)),ZD=lt(()=>W("span",null,"\u7269\u7406\u6838\u5FC3:",-1)),eH=lt(()=>W("span",null,"\u578B\u53F7:",-1)),tH={class:"fields"},rH={class:"ram field"},nH={class:"field-detail"},iH=lt(()=>W("h2",null,"\u5185\u5B58",-1)),oH=lt(()=>W("span",null,"\u603B\u5927\u5C0F:",-1)),sH=lt(()=>W("span",null,"\u5DF2\u4F7F\u7528:",-1)),aH=lt(()=>W("span",null,"\u5360\u6BD4:",-1)),lH=lt(()=>W("span",null,"\u7A7A\u95F2:",-1)),cH={class:"fields"},uH={class:"yingpan field"},fH={class:"field-detail"},dH=lt(()=>W("h2",null,"\u5B58\u50A8",-1)),hH=lt(()=>W("span",null,"\u603B\u7A7A\u95F4:",-1)),pH=lt(()=>W("span",null,"\u5DF2\u4F7F\u7528:",-1)),vH=lt(()=>W("span",null,"\u5269\u4F59:",-1)),gH=lt(()=>W("span",null,"\u5360\u6BD4:",-1)),mH={class:"fields"},_H={class:"wangluo field"},yH={class:"field-detail"},bH=lt(()=>W("h2",null,"\u7F51\u5361",-1)),CH={class:"fields"},wH={class:"fields terminal"},SH=Te(" Web SSH "),xH=Te("\u79FB\u9664\u4E3B\u673A"),EH=Te("\u79FB\u9664\u51ED\u8BC1");function AH(e,t,r,n,o,i){const s=xy,a=uO,l=fB,u=dB,c=uB,_=Oe("SSHForm"),v=Oe("NewHost"),p=J8;return K(),Ce(p,{shadow:"always",class:"host-card"},{default:Q(()=>{var g,b,m,d,f,h;return[W("div",AD,[i.isError?(K(),se("span",kD,"\u672A\u8FDE\u63A5")):(K(),se("span",TD,"\u5DF2\u8FDE\u63A5"))]),W("div",LD,[W("div",RD,[G(a,{placement:"bottom-start",width:200,trigger:"hover"},{reference:Q(()=>[G(s,{name:"icon-fuwuqi",class:"svg-icon"})]),default:Q(()=>[W("div",BD,[OD,W("h3",null,[ID,Te(" "+me(i.osInfo.hostname),1)]),W("h3",null,[MD,Te(" "+me(i.osInfo.type),1)]),W("h3",null,[PD,Te(" "+me(i.osInfo.arch),1)]),W("h3",null,[DD,Te(" "+me(i.osInfo.platform),1)]),W("h3",null,[HD,Te(" "+me(i.osInfo.release),1)]),W("h3",null,[FD,Te(" "+me(e.$filters.formatTime(i.osInfo.uptime)),1)]),W("h3",null,[ND,Te(" "+me(i.osInfo.ip),1)]),W("h3",null,[$D,Te(" "+me(i.openedCount||0),1)])])]),_:1}),W("div",jD,[W("span",{class:"name",onClick:t[0]||(t[0]=(...y)=>i.handleUpdateName&&i.handleUpdateName(...y))},[Te(me(i.name||"--")+" ",1),G(s,{name:"icon-xiugai",class:"svg-icon",title:"askjfd"})]),W("span",null,me(((g=i.osInfo)==null?void 0:g.type)||"--"),1)])]),W("div",UD,[G(a,{placement:"bottom-start",width:200,trigger:"hover"},{reference:Q(()=>[G(s,{name:"icon-position",class:"svg-icon"})]),default:Q(()=>[W("div",WD,[zD,W("h3",null,[qD,Te(" "+me(i.ipInfo.country||"--")+" "+me(i.ipInfo.regionName)+" "+me(i.ipInfo.city),1)]),W("h3",null,[VD,Te(" "+me(i.ipInfo.isp||"--"),1)]),W("h3",null,[KD,Te(" "+me(i.ipInfo.as||"--"),1)])])]),_:1}),W("div",GD,[W("span",null,me(`${((b=i.ipInfo)==null?void 0:b.country)||"--"} ${((m=i.ipInfo)==null?void 0:m.regionName)||"--"} ${((d=i.ipInfo)==null?void 0:d.city)||"--"}`),1),W("span",null,me(i.hostIp),1)])]),W("div",YD,[G(a,{placement:"bottom-start",width:200,trigger:"hover"},{reference:Q(()=>[G(s,{name:"icon-xingzhuang",class:"svg-icon"})]),default:Q(()=>[W("div",XD,[QD,W("h3",null,[JD,Te(" "+me(i.cpuInfo.cpuUsage)+"%",1)]),W("h3",null,[ZD,Te(" "+me(i.cpuInfo.cpuCount),1)]),W("h3",null,[eH,Te(" "+me(i.cpuInfo.cpuModel),1)])])]),_:1}),W("div",tH,[W("span",{style:We({color:i.setColor(i.cpuInfo.cpuUsage)})},me(i.cpuInfo.cpuUsage||"0")+"%",5),W("span",null,me(i.cpuInfo.cpuCount||"--")+" \u6838\u5FC3",1)])]),W("div",rH,[G(a,{placement:"bottom-start",width:200,trigger:"hover"},{reference:Q(()=>[G(s,{name:"icon-neicun1",class:"svg-icon"})]),default:Q(()=>[W("div",nH,[iH,W("h3",null,[oH,Te(" "+me(e.$filters.toFixed(i.memInfo.totalMemMb/1024))+" GB",1)]),W("h3",null,[sH,Te(" "+me(e.$filters.toFixed(i.memInfo.usedMemMb/1024))+" GB",1)]),W("h3",null,[aH,Te(" "+me(e.$filters.toFixed(i.memInfo.usedMemPercentage))+"%",1)]),W("h3",null,[lH,Te(" "+me(e.$filters.toFixed(i.memInfo.freeMemMb/1024))+" GB",1)])])]),_:1}),W("div",cH,[W("span",{style:We({color:i.setColor(i.memInfo.usedMemPercentage)})},me(e.$filters.toFixed(i.memInfo.usedMemPercentage))+"%",5),W("span",null,me(e.$filters.toFixed(i.memInfo.usedMemMb/1024))+" | "+me(e.$filters.toFixed(i.memInfo.totalMemMb/1024))+" GB",1)])]),W("div",uH,[G(a,{placement:"bottom-start",width:200,trigger:"hover"},{reference:Q(()=>[G(s,{name:"icon-xingzhuang1",class:"svg-icon"})]),default:Q(()=>[W("div",fH,[dH,W("h3",null,[hH,Te(" "+me(i.driveInfo.totalGb||"--")+" GB",1)]),W("h3",null,[pH,Te(" "+me(i.driveInfo.usedGb||"--")+" GB",1)]),W("h3",null,[vH,Te(" "+me(i.driveInfo.freeGb||"--")+" GB",1)]),W("h3",null,[gH,Te(" "+me(i.driveInfo.usedPercentage||"--")+"%",1)])])]),_:1}),W("div",mH,[W("span",{style:We({color:i.setColor(i.driveInfo.usedPercentage)})},me(i.driveInfo.usedPercentage||"--")+"%",5),W("span",null,me(i.driveInfo.usedGb||"--")+" | "+me(i.driveInfo.totalGb||"--")+" GB",1)])]),W("div",_H,[G(a,{placement:"bottom-start",width:200,trigger:"hover"},{reference:Q(()=>[G(s,{name:"icon-wangluo1",class:"svg-icon"})]),default:Q(()=>[W("div",yH,[bH,(K(!0),se(Ve,null,Wr(i.netstatInfo.netCards,(y,C)=>(K(),se("div",{key:C,style:{display:"flex","flex-direction":"column"}},[W("h3",null,[W("span",null,me(C),1),W("div",null,"\u2191 "+me(e.$filters.formatNetSpeed(y==null?void 0:y.outputMb)||0),1),W("div",null,"\u2193 "+me(e.$filters.formatNetSpeed(y==null?void 0:y.inputMb)||0),1)])]))),128))])]),_:1}),W("div",CH,[W("span",null,"\u2191 "+me(e.$filters.formatNetSpeed((f=i.netstatInfo.netTotal)==null?void 0:f.outputMb)||0),1),W("span",null,"\u2193 "+me(e.$filters.formatNetSpeed((h=i.netstatInfo.netTotal)==null?void 0:h.inputMb)||0),1)])]),W("div",wH,[G(c,{class:"web-ssh","split-button":"",type:"primary",trigger:"click",onClick:i.handleSSH},{dropdown:Q(()=>[G(u,null,{default:Q(()=>[G(l,{onClick:i.handleRemoveHost},{default:Q(()=>[xH]),_:1},8,["onClick"]),G(l,{onClick:i.handleRemoveSSH},{default:Q(()=>[EH]),_:1},8,["onClick"])]),_:1})]),default:Q(()=>[SH]),_:1},8,["onClick"])])]),G(_,{show:o.sshFormVisible,"onUpdate:show":t[1]||(t[1]=y=>o.sshFormVisible=y),"temp-host":o.tempHost,name:i.name},null,8,["show","temp-host","name"]),G(v,{show:o.updateHostFormVisible,"onUpdate:show":t[2]||(t[2]=y=>o.updateHostFormVisible=y),"default-form":o.updateHostForm,onUpdateList:t[3]||(t[3]=y=>e.$emit("update-list"))},null,8,["show","default-form"])]}),_:1})}var kH=lr(ED,[["render",AH],["__scopeId","data-v-2323d69a"]]);const TH={name:"UpdatePassword",props:{show:{required:!0,type:Boolean}},emits:["update:show"],data(){return{isUpdateHost:!1,formData:{oldPwd:"",newPwd:"",confirmPwd:""},oldHost:"",rules:{oldPwd:{required:!0,message:"\u8F93\u5165\u65E7\u5BC6\u7801",trigger:"change"},newPwd:{required:!0,message:"\u8F93\u5165\u65B0\u5BC6\u7801",trigger:"change"},confirmPwd:{required:!0,message:"\u8F93\u5165\u786E\u8BA4\u5BC6\u7801",trigger:"change"}}}},computed:{visible:{get(){return this.show},set(e){this.$emit("update:show",e)}}},methods:{handleUpdate(){this.$refs["new-password-form"].validate().then(async()=>{let{oldPwd:e,newPwd:t,confirmPwd:r}=this.formData;if(t!==r)return this.$message.error({center:!0,message:"\u4E24\u6B21\u5BC6\u7801\u8F93\u5165\u4E0D\u4E00\u81F4"});e=Gl(e),t=Gl(t);let{msg:n}=await zr.updatePwd({oldPwd:e,newPwd:t});this.$message({type:"success",center:!0,message:n}),this.visible=!1,this.formData={oldPwd:"",newPwd:"",confirmPwd:""}})}}},LH={class:"dialog-footer"},RH=Te("\u5173\u95ED"),BH=Te("\u786E\u8BA4");function OH(e,t,r,n,o,i){const s=Xo,a=Rc,l=Lc,u=Ir,c=Yi;return K(),Ce(c,{modelValue:i.visible,"onUpdate:modelValue":t[4]||(t[4]=_=>i.visible=_),width:"400px",title:"\u4FEE\u6539\u5BC6\u7801","close-on-click-modal":!1},{footer:Q(()=>[W("span",LH,[G(u,{onClick:t[3]||(t[3]=_=>i.visible=!1)},{default:Q(()=>[RH]),_:1}),G(u,{type:"primary",onClick:i.handleUpdate},{default:Q(()=>[BH]),_:1},8,["onClick"])])]),default:Q(()=>[G(l,{ref:"new-password-form",model:o.formData,rules:o.rules,"hide-required-asterisk":!0,"label-suffix":"\uFF1A","label-width":"90px"},{default:Q(()=>[G(a,{label:"\u65E7\u5BC6\u7801",prop:"oldPwd"},{default:Q(()=>[G(s,{modelValue:o.formData.oldPwd,"onUpdate:modelValue":t[0]||(t[0]=_=>o.formData.oldPwd=_),modelModifiers:{trim:!0},clearable:"",placeholder:"\u65E7\u5BC6\u7801",autocomplete:"off"},null,8,["modelValue"])]),_:1}),G(a,{label:"\u65B0\u5BC6\u7801",prop:"newPwd"},{default:Q(()=>[G(s,{modelValue:o.formData.newPwd,"onUpdate:modelValue":t[1]||(t[1]=_=>o.formData.newPwd=_),modelModifiers:{trim:!0},clearable:"",placeholder:"\u65B0\u5BC6\u7801",autocomplete:"off",onKeyup:tr(i.handleUpdate,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),G(a,{label:"\u786E\u8BA4\u5BC6\u7801",prop:"confirmPwd"},{default:Q(()=>[G(s,{modelValue:o.formData.confirmPwd,"onUpdate:modelValue":t[2]||(t[2]=_=>o.formData.confirmPwd=_),modelModifiers:{trim:!0},clearable:"",placeholder:"\u786E\u8BA4\u5BC6\u7801",autocomplete:"off",onKeyup:tr(i.handleUpdate,["enter"])},null,8,["modelValue","onKeyup"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])}var IH=lr(TH,[["render",OH],["__scopeId","data-v-ec2b7626"]]);const MH={name:"LoginRecord",props:{show:{required:!0,type:Boolean},list:{required:!0,type:Array}},emits:["update:show"],computed:{visible:{get(){return this.show},set(e){this.$emit("update:show",e)}}}},PH=W("span",{style:{"letter-spacing":"2px"}}," \u6E29\u99A8\u63D0\u793A: \u7CFB\u7EDF\u53EA\u4FDD\u5B58\u6700\u8FD110\u6761\u767B\u5F55\u8BB0\u5F55, \u68C0\u6D4B\u5230\u66F4\u6362IP\u540E\u9700\u91CD\u65B0\u767B\u5F55 ",-1),DH={style:{"letter-spacing":"2px"}};function HH(e,t,r,n,o,i){const s=jm,a=A6,l=E6,u=Yi;return K(),Ce(u,{modelValue:i.visible,"onUpdate:modelValue":t[0]||(t[0]=c=>i.visible=c),width:"50%",title:"\u767B\u5F55\u8BB0\u5F55","close-on-click-modal":!1},{default:Q(()=>[G(s,{type:"success",closable:!1},{title:Q(()=>[PH]),_:1}),G(l,{data:r.list},{default:Q(()=>[G(a,{prop:"ip",label:"IP"}),G(a,{prop:"address",label:"\u5730\u70B9","show-overflow-tooltip":""},{default:Q(c=>[W("span",DH,me(c.row.country)+" "+me(c.row.city),1)]),_:1}),G(a,{prop:"date",label:"\u65F6\u95F4"})]),_:1},8,["data"])]),_:1},8,["modelValue"])}var FH=lr(MH,[["render",HH]]);const NH={name:"HostSort",props:{show:{required:!0,type:Boolean},hostList:{required:!0,type:Array}},emits:["update:show","sort-list"],data(){return{targetIndex:0,list:[]}},computed:{visible:{get(){return this.show},set(e){this.$emit("update:show",e)}}},watch:{show(e){(e==null?void 0:e.length)!==0&&(this.list=this.hostList.map(({name:t,host:r})=>({name:t,host:r})))}},methods:{dragstart(e){this.targetIndex=e},dragenter(e,t){if(e.preventDefault(),this.targetIndex!==t){let r=this.list.splice(this.targetIndex,1)[0];this.list.splice(t,0,r),this.targetIndex=t}},dragover(e){e.preventDefault()},handleUpdateSort(){let{list:e}=this;this.$api.updateHostSort({list:e}).then(({msg:t})=>{this.$message({type:"success",center:!0,message:t}),this.$emit("sort-list",e),this.visible=!1})}}},$H=["onDragenter","onDragstart"],jH={class:"dialog-footer"},UH=Te("\u5173\u95ED"),WH=Te("\u786E\u8BA4");function zH(e,t,r,n,o,i){const s=Ir,a=Yi;return K(),Ce(a,{modelValue:i.visible,"onUpdate:modelValue":t[2]||(t[2]=l=>i.visible=l),width:"400px",title:"Host\u6392\u5E8F","close-on-click-modal":!1},{footer:Q(()=>[W("span",jH,[G(s,{onClick:t[1]||(t[1]=l=>i.visible=!1)},{default:Q(()=>[UH]),_:1}),G(s,{type:"primary",onClick:i.handleUpdateSort},{default:Q(()=>[WH]),_:1},8,["onClick"])])]),default:Q(()=>[G(OC,{name:"drag",class:"host-list",tag:"ul"},{default:Q(()=>[(K(!0),se(Ve,null,Wr(o.list,(l,u)=>(K(),se("li",{key:l.host,draggable:!0,class:"host-item",onDragenter:c=>i.dragenter(c,u),onDragover:t[0]||(t[0]=c=>i.dragover(c)),onDragstart:c=>i.dragstart(u)},me(l.name),41,$H))),128))]),_:1})]),_:1},8,["modelValue"])}var qH=lr(NH,[["render",zH],["__scopeId","data-v-f8d45f80"]]),VH="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAiHSURBVHja7J3bUxNXHMczrY8d3/t/2KmddnzraKfTBx2nozitGWVGBm2HeimtddDKoI2U4SYygaGIgMrdFmPkokAiIRchaUJuxNxIAEMMyCXZW5LTp0zDkt1Nwu6yCefhN+PsnhPW89n9/c757dnvTwQAEEHbPYODAAFAANAgAAgAGgSQuRHWmvaI7ACIyA4AwlrTDgHwNfCOlgZk7JuFxOAnDBn7ZoFwtDRAAFwN/PxAOTp52kQeeLKhk6dNxPxAOQTAkkUDihJU99ME08BvA6H7aSIaUJRAAFla7L2tANNfk9MNMuFokuL2hha6Npj+mjz23lYAAWRguPlOF+2gGssHyH0ww/VBuj64+U4XBMAYYJsbkdEjQUq3ojk/FVu3U97NsXV7Aaou0lH1R0aPBAlHcyMEsC3A9lcgygI75cC9/HopujT6c9pxY2n0Z+Tl10uUv6cssBPz/RV7HkB0WXUB1RRraP28q6M6a7Bv7tfTBmpNsSa6rLqw5wDE1+dOYDOlI/Q+u6qTtZgyyxBTZkpH4utzJ/YEAHz2jx6mwYitGsWsz6pWjWJ0+soLWuizf/TkLQDC9aAWefFVgNovn7JG/bIyzt2eX1aGKE9ZKa/jxVcBwvmgNm8ARN8qSlDVWT3lnSf/DMPnpFLen0R7Y3NE/hlGGR9UZ/XRt2OXcxZAfMN1nMnPY6ZbffGwb/+uxaKwbz9mrOhjdIlr3MQH7u4uS1UnY5ogqCkWTLojqClmSnfgFvYmBZwBiHp7biPjR72U/lVx0k7MPykXbsLvSTmiOEm9Hhk/6iU83RLBAYgF1cWY5vwU5R30/HMEt99tzZXMK26rb408/wLhev2wcx+66TmIM+VgTOUDsfDiB7n23iEWXvwAM978mzY+GMpk8Q338V0BgFtr2yLPPiVo/XxIX5jrrw2jIX0hqitRUoJ49imBW2vbeANAzPdXIIpvnbR+nof5PO/xwS8rQxQnHJQ3nOJbZ6b5pQz9vLYI0/44SefnCUeTNN8GfnvGtkkaef45dXzQ/jAZC2qLWAUQWzGcoffzt/r22o4GpvVDbMVwhjUAhKujOiXt15fH9vK2kvim+zj6+tJYtlnc9APunFS69cX392a4ryfZPasuoJPfm7d4hTTSK1kDYGqv96yzsliZdq9XZtLevhg+nPi3aX7jY7YG2B9CPxo2hr5kaicIACUP7Esn60yALauRz0+lc403+11mcl+14331TgfftRy5mvybd4d8SsEC6Hi1NMjm4CcsnWtM1e9Sx9zCTgE0DPuUyb9Z2GTZECwALgY/3SeAqn/31NsdzdBSPVk5BYCvGEAF4PQ9M+ZeRn6BADg2uqeIzm9DABwAuNnvMhfUz8aSj2mda1UQAI8AetSBvuRj13uddgiAJwC/PHK4AQCi0/fMWPJx2UywHQLgAcBZqSUMABA90S0/Sj5e3GILQQA8BeHE8cImy0by8fsTi3IIgEcA/0wHO8nnzP7NcgiAJwAAAFFRi3U1+dydQc80BMAjgH7tchf5/LhlpREC4AkAAEB0odUWTD5/pdPhgwB4BCA3vGsjt+lRB/ryHkCPOtCXiY3Ohpq9QeQTtgEAAEQ3el3W5DbiRjPiCSLH8hpAtpbJTCVdADrnWhW5XcMwfZ5ozwJIxz1kCgAAILo37Jsgt9XR5IngE8AyAG8Q+UTcaEaS297odVlhDOAhBiSMnKg7WWcCz/TvUu5uqxhwm+AsiGUAAADRlU6HL7n9+b9S54mqn3k1EAAHAMYtK43kPm2K7Xki6ah/DALgAAAAQFQ56Jkm97MubP6e3OaBckkGAXAEwOLf/J3c78+nXh1TvIAAWAIAABDdn1iUk/smbwYYnNmeTYUAWAQAABAV/2ULUWVLR4yhFgiAYwAy/bt2qqdAYV1tgAA4BgAAEF3vddrJL/YBACLNm7VqCIAHANoUeSLtm7Uqg2fjNgTAA4BU+0B/63rjNPs3yyEAngB4gsgx8lYWGAN4BAAAEHVPvd0y77/YPrcAAfAIAAAgutwx58tmu3xeAkg3Lc3m3x0zr0jzBgBfL2fYBi/5x6PPOQBcfSGTmJPzCWDWt332w/TyJi+/EUv3CSh96PAm2pc+dHjZiCu9mkAP+VroPkDMu68kM4kBicVUtt8BUNmMe10ybAy1vLKt1i+uoh8K4itJTCU2RYNqwQgu7b7gk7oYU4lNnAEgPI8rU+syXx2Khxf27dkv5cML+zD91aGUX8p7HleyBiC+ahTTiqtmKdeS06Id1to2ujGJpyG9mbFaCqr9gVotZehQmPB0SfJ+4D1dksjQoTCliJP2R/bVUsh6QSiNXhCqEpuErtuflZ8PKEpQkp/fqpPEsV5QpopZuOGaPL4mTN3+jPz8mq0AN9DUMeBbMWurNqj7OGYok9HLPVa35+rg45bqdtr/m+H6YHzTc3DXVRMZVdCHDoWFpNvPrIrV3Ejr5zXnp2IsTMM5CFDdEjrdUFQlNkX9TwWrJxf1Py2j9fPjR71Rb89twQq3gjSVc7HXFwWnnIu9vpj7yrlbpq1rzDUCsH9v/h3fzF53kw3JMexfBm3QmdKR+IaLk2vkST197DKjerqtjveFHG6ra2NWT+d2Os1vYHMy1A+YOOYl3I8rOb8O9+NKZOKYl7Z+gCuP6gdsu/MYKmig6nO6aEBZwv5CSlmCqs/p9mwFjS2+N50aMvpfh+KRnSf64pGFfbj+1yFYQyab9YPsAMBnJV3ZP22SLlhFKc38El0dMXT0cDAT3X7C0y1BRw8HYR2xLFagtJX0Xn1njoVmKBXZY6GZQvTVd2ZYSW+ngZqhliSuLx3Z1kfPVJcM1pLMbCGXRjVV3FbfitvqW2E1Va7z8LCesBACNayoLZBADWvKC+SleE37/5sCanLypQ/c0wMBQADQdtH+GwDm0Y5PPMfRSgAAAABJRU5ErkJggg==";const KH={name:"App",components:{HostCard:kH,HostGroup:HP,NewHost:Sy,UpdatePassword:IH,hostSort:qH,LoginRecord:FH},data(){return{loading:!0,hostListInfo:[],newServerFormVisible:!1,hostGroupVisible:!1,updatePwdVisible:!1,loginRecordVisible:!1,loginRecordList:[],sortHostVisible:!1,hiddenIp:Number(localStorage.getItem("hiddenIp")||0)}},mounted(){this.getHostList()},beforeUnmount(){this.socket.close&&this.socket.close()},methods:{handleLogout(){localStorage.clear("token"),this.$message({type:"success",message:"\u5DF2\u5B89\u5168\u9000\u51FA",center:!0}),this.$router.push("/login")},async getHostList(){try{this.loading=!0;const{data:e}=await zr.getHostList();this.hostListInfo=e,this.connectIo()}catch{this.loading=!1}},connectIo(){let e=Ao(this.$serviceURI,{path:"/clients",forceNew:!0,reconnectionDelay:5e3,reconnectionAttempts:2});this.socket=e,e.on("connect",()=>{this.loading=!1,console.log("clients websocket \u5DF2\u8FDE\u63A5: ",e.id);let t=localStorage.getItem("token");e.emit("init_clients_data",{token:t}),e.on("clients_data",r=>{this.hostListInfo=this.hostListInfo.map(n=>{const{host:o,name:i}=n;return r[o]?Object.assign(n,r[o]):n={host:o,name:i}})}),e.on("token_verify_fail",r=>{this.$notification({title:"\u9274\u6743\u5931\u8D25",message:r,type:"error"}),this.$router.push("/login")})}),e.on("disconnect",()=>{console.error("clients websocket \u8FDE\u63A5\u65AD\u5F00")}),e.on("connect_error",t=>{this.loading=!1,console.error("clients websocket \u8FDE\u63A5\u51FA\u9519: ",t)})},handleUpdateList(){this.socket.close&&this.socket.close(),this.getHostList()},handleSortList(e){this.hostListInfo=e.map(({host:t})=>this.hostListInfo.find(r=>r.host===t))},handleHiddenIP(){this.hiddenIp=this.hiddenIp?0:1,localStorage.setItem("hiddenIp",String(this.hiddenIp))},handleLookupLoginRecord(){this.loginRecordVisible=!0,this.$api.getLoginRecord().then(({data:e})=>{this.loginRecordList=e.map(t=>(t.date=t.date.replace(/T|\.000Z/g," "),t))})}}},Zy=e=>(nc("data-v-36d08f84"),e=e(),ic(),e),GH=Zy(()=>W("div",{class:"logo-wrap"},[W("img",{src:VH,alt:"logo"}),W("h1",null,"EasyNode")],-1)),YH=Te(" \u65B0\u589E\u670D\u52A1\u5668 "),XH=Te(" Host\u6392\u5E8F "),QH=Te(" \u767B\u5F55\u8BB0\u5F55 "),JH=Te(" \u4FEE\u6539\u5BC6\u7801 "),ZH=Te("\u5B89\u5168\u9000\u51FA"),eF={"element-loading-background":"rgba(122, 122, 122, 0.58)"},tF=Zy(()=>W("footer",null,[W("span",null,[Te("Current Release v1.1.0, Powered by "),W("a",{href:"https://github.com/chaos-zhu/easynode",target:"_blank"},"EasyNode")])],-1));function rF(e,t,r,n,o,i){const s=Ir,a=Oe("HostCard"),l=Oe("NewHost"),u=Oe("HostGroup"),c=Oe("UpdatePassword"),_=Oe("LoginRecord"),v=Oe("hostSort"),p=K6;return K(),se(Ve,null,[W("header",null,[GH,W("div",null,[G(s,{type:"primary",onClick:t[0]||(t[0]=g=>o.newServerFormVisible=!0)},{default:Q(()=>[YH]),_:1}),G(s,{type:"primary",onClick:t[1]||(t[1]=g=>o.sortHostVisible=!0)},{default:Q(()=>[XH]),_:1}),G(s,{type:"primary",onClick:i.handleHiddenIP},{default:Q(()=>[Te(me(o.hiddenIp?"\u663E\u793AIP":"\u9690\u85CFIP"),1)]),_:1},8,["onClick"]),G(s,{type:"primary",onClick:i.handleLookupLoginRecord},{default:Q(()=>[QH]),_:1},8,["onClick"]),G(s,{type:"primary",onClick:t[2]||(t[2]=g=>o.updatePwdVisible=!0)},{default:Q(()=>[JH]),_:1}),G(s,{type:"success",plain:"",onClick:i.handleLogout},{default:Q(()=>[ZH]),_:1},8,["onClick"])])]),at((K(),se("section",eF,[(K(!0),se(Ve,null,Wr(o.hostListInfo,(g,b)=>(K(),Ce(a,{key:b,"host-info":g,"hidden-ip":o.hiddenIp,onUpdateList:i.handleUpdateList},null,8,["host-info","hidden-ip","onUpdateList"]))),128))])),[[p,o.loading]]),tF,G(l,{show:o.newServerFormVisible,"onUpdate:show":t[3]||(t[3]=g=>o.newServerFormVisible=g),onUpdateList:i.handleUpdateList},null,8,["show","onUpdateList"]),G(u,{show:o.hostGroupVisible,"onUpdate:show":t[4]||(t[4]=g=>o.hostGroupVisible=g)},null,8,["show"]),G(c,{show:o.updatePwdVisible,"onUpdate:show":t[5]||(t[5]=g=>o.updatePwdVisible=g)},null,8,["show"]),G(_,{show:o.loginRecordVisible,"onUpdate:show":t[6]||(t[6]=g=>o.loginRecordVisible=g),list:o.loginRecordList},null,8,["show","list"]),G(v,{show:o.sortHostVisible,"onUpdate:show":t[7]||(t[7]=g=>o.sortHostVisible=g),"host-list":o.hostListInfo,onSortList:i.handleSortList},null,8,["show","host-list","onSortList"])],64)}var nF=lr(KH,[["render",rF],["__scopeId","data-v-36d08f84"]]);const iF={name:"App",data(){return{visible:!0,notKey:!1,loginForm:{pwd:""},rules:{pwd:{required:!0,message:"\u9700\u8F93\u5165\u5BC6\u7801",trigger:"change"}}}},async created(){let{data:e}=await this.$api.getPubPem();if(!e)return this.notKey=!0;localStorage.setItem("publicKey",e)},methods:{handleLogin(){this.$refs["login-form"].validate().then(()=>{let{loginForm:{pwd:e}}=this;const t=Gl(e);if(t===-1)return this.$message.error({message:"\u516C\u94A5\u52A0\u8F7D\u5931\u8D25",center:!0});this.$api.login({ciphertext:t}).then(({data:r,msg:n})=>{let{token:o}=r;localStorage.setItem("token",o),this.$message.success({message:n||"success",center:!0}),this.$router.push("/")})})}}},oF={key:0,style:{color:"#f56c6c"}},sF={key:1,style:{color:"#409eff"}},aF={key:0},lF={key:1},cF={class:"dialog-footer"},uF=Te("\u767B\u5F55");function fF(e,t,r,n,o,i){const s=jm,a=Xo,l=Rc,u=Lc,c=Ir,_=Yi;return K(),Ce(_,{modelValue:o.visible,"onUpdate:modelValue":t[2]||(t[2]=v=>o.visible=v),width:"30%",top:"30vh","destroy-on-close":"","close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,center:""},{title:Q(()=>[o.notKey?(K(),se("h2",oF," Error ")):(K(),se("h2",sF," LOGIN "))]),footer:Q(()=>[W("span",cF,[G(c,{type:"primary",onClick:i.handleLogin},{default:Q(()=>[uF]),_:1},8,["onClick"])])]),default:Q(()=>[o.notKey?(K(),se("div",aF,[G(s,{title:"Error: \u7528\u4E8E\u52A0\u5BC6\u7684\u516C\u94A5\u83B7\u53D6\u5931\u8D25\uFF0C\u8BF7\u5C1D\u8BD5\u91CD\u65B0\u542F\u52A8\u6216\u90E8\u7F72\u670D\u52A1",type:"error","show-icon":""})])):(K(),se("div",lF,[G(u,{ref:"login-form",model:o.loginForm,rules:o.rules,"hide-required-asterisk":!0,"label-suffix":"\uFF1A","label-width":"90px"},{default:Q(()=>[G(l,{prop:"pwd",label:"\u5BC6\u7801"},{default:Q(()=>[G(a,{modelValue:o.loginForm.pwd,"onUpdate:modelValue":t[0]||(t[0]=v=>o.loginForm.pwd=v),modelModifiers:{trim:!0},type:"password",placeholder:"Please input password",autocomplete:"off","trigger-on-focus":!1,clearable:"","show-password":"",onKeyup:tr(i.handleLogin,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),at(G(l,{prop:"pwd",label:"\u5BC6\u7801"},{default:Q(()=>[G(a,{modelValue:o.loginForm.pwd,"onUpdate:modelValue":t[1]||(t[1]=v=>o.loginForm.pwd=v),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1},512),[[Ut,!1]])]),_:1},8,["model","rules"])]))]),_:1},8,["modelValue"])}var dF=lr(iF,[["render",fF]]),e1={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(self,function(){return(()=>{var r={4567:function(o,i,s){var a,l=this&&this.__extends||(a=function(d,f){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var C in y)Object.prototype.hasOwnProperty.call(y,C)&&(h[C]=y[C])},a(d,f)},function(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function h(){this.constructor=d}a(d,f),d.prototype=f===null?Object.create(f):(h.prototype=f.prototype,new h)});Object.defineProperty(i,"__esModule",{value:!0}),i.AccessibilityManager=void 0;var u=s(9042),c=s(6114),_=s(9924),v=s(3656),p=s(844),g=s(5596),b=s(9631),m=function(d){function f(h,y){var C=d.call(this)||this;C._terminal=h,C._renderService=y,C._liveRegionLineCount=0,C._charsToConsume=[],C._charsToAnnounce="",C._accessibilityTreeRoot=document.createElement("div"),C._accessibilityTreeRoot.classList.add("xterm-accessibility"),C._accessibilityTreeRoot.tabIndex=0,C._rowContainer=document.createElement("div"),C._rowContainer.setAttribute("role","list"),C._rowContainer.classList.add("xterm-accessibility-tree"),C._rowElements=[];for(var w=0;w<C._terminal.rows;w++)C._rowElements[w]=C._createAccessibilityTreeNode(),C._rowContainer.appendChild(C._rowElements[w]);if(C._topBoundaryFocusListener=function(S){return C._onBoundaryFocus(S,0)},C._bottomBoundaryFocusListener=function(S){return C._onBoundaryFocus(S,1)},C._rowElements[0].addEventListener("focus",C._topBoundaryFocusListener),C._rowElements[C._rowElements.length-1].addEventListener("focus",C._bottomBoundaryFocusListener),C._refreshRowsDimensions(),C._accessibilityTreeRoot.appendChild(C._rowContainer),C._renderRowsDebouncer=new _.TimeBasedDebouncer(C._renderRows.bind(C)),C._refreshRows(),C._liveRegion=document.createElement("div"),C._liveRegion.classList.add("live-region"),C._liveRegion.setAttribute("aria-live","assertive"),C._accessibilityTreeRoot.appendChild(C._liveRegion),!C._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return C._terminal.element.insertAdjacentElement("afterbegin",C._accessibilityTreeRoot),C.register(C._renderRowsDebouncer),C.register(C._terminal.onResize(function(S){return C._onResize(S.rows)})),C.register(C._terminal.onRender(function(S){return C._refreshRows(S.start,S.end)})),C.register(C._terminal.onScroll(function(){return C._refreshRows()})),C.register(C._terminal.onA11yChar(function(S){return C._onChar(S)})),C.register(C._terminal.onLineFeed(function(){return C._onChar(`
`)})),C.register(C._terminal.onA11yTab(function(S){return C._onTab(S)})),C.register(C._terminal.onKey(function(S){return C._onKey(S.key)})),C.register(C._terminal.onBlur(function(){return C._clearLiveRegion()})),C.register(C._renderService.onDimensionsChange(function(){return C._refreshRowsDimensions()})),C._screenDprMonitor=new g.ScreenDprMonitor,C.register(C._screenDprMonitor),C._screenDprMonitor.setListener(function(){return C._refreshRowsDimensions()}),C.register((0,v.addDisposableDomListener)(window,"resize",function(){return C._refreshRowsDimensions()})),C}return l(f,d),f.prototype.dispose=function(){d.prototype.dispose.call(this),(0,b.removeElementFromParent)(this._accessibilityTreeRoot),this._rowElements.length=0},f.prototype._onBoundaryFocus=function(h,y){var C=h.target,w=this._rowElements[y===0?1:this._rowElements.length-2];if(C.getAttribute("aria-posinset")!==(y===0?"1":""+this._terminal.buffer.lines.length)&&h.relatedTarget===w){var S,E;if(y===0?(S=C,E=this._rowElements.pop(),this._rowContainer.removeChild(E)):(S=this._rowElements.shift(),E=C,this._rowContainer.removeChild(S)),S.removeEventListener("focus",this._topBoundaryFocusListener),E.removeEventListener("focus",this._bottomBoundaryFocusListener),y===0){var k=this._createAccessibilityTreeNode();this._rowElements.unshift(k),this._rowContainer.insertAdjacentElement("afterbegin",k)}else k=this._createAccessibilityTreeNode(),this._rowElements.push(k),this._rowContainer.appendChild(k);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(y===0?-1:1),this._rowElements[y===0?1:this._rowElements.length-2].focus(),h.preventDefault(),h.stopImmediatePropagation()}},f.prototype._onResize=function(h){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var y=this._rowContainer.children.length;y<this._terminal.rows;y++)this._rowElements[y]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[y]);for(;this._rowElements.length>h;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},f.prototype._createAccessibilityTreeNode=function(){var h=document.createElement("div");return h.setAttribute("role","listitem"),h.tabIndex=-1,this._refreshRowDimensions(h),h},f.prototype._onTab=function(h){for(var y=0;y<h;y++)this._onChar(" ")},f.prototype._onChar=function(h){var y=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==h&&(this._charsToAnnounce+=h):this._charsToAnnounce+=h,h===`
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=u.tooMuchOutput)),c.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){y._accessibilityTreeRoot.appendChild(y._liveRegion)},0))},f.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,c.isMac&&(0,b.removeElementFromParent)(this._liveRegion)},f.prototype._onKey=function(h){this._clearLiveRegion(),this._charsToConsume.push(h)},f.prototype._refreshRows=function(h,y){this._renderRowsDebouncer.refresh(h,y,this._terminal.rows)},f.prototype._renderRows=function(h,y){for(var C=this._terminal.buffer,w=C.lines.length.toString(),S=h;S<=y;S++){var E=C.translateBufferLineToString(C.ydisp+S,!0),k=(C.ydisp+S+1).toString(),x=this._rowElements[S];x&&(E.length===0?x.innerText="\xA0":x.textContent=E,x.setAttribute("aria-posinset",k),x.setAttribute("aria-setsize",w))}this._announceCharacters()},f.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var h=0;h<this._terminal.rows;h++)this._refreshRowDimensions(this._rowElements[h])}},f.prototype._refreshRowDimensions=function(h){h.style.height=this._renderService.dimensions.actualCellHeight+"px"},f.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},f}(p.Disposable);i.AccessibilityManager=m},3614:(o,i)=>{function s(c){return c.replace(/\r?\n/g,"\r")}function a(c,_){return _?"\x1B[200~"+c+"\x1B[201~":c}function l(c,_,v){c=a(c=s(c),v.decPrivateModes.bracketedPasteMode),v.triggerDataEvent(c,!0),_.value=""}function u(c,_,v){var p=v.getBoundingClientRect(),g=c.clientX-p.left-10,b=c.clientY-p.top-10;_.style.width="20px",_.style.height="20px",_.style.left=g+"px",_.style.top=b+"px",_.style.zIndex="1000",_.focus()}Object.defineProperty(i,"__esModule",{value:!0}),i.rightClickHandler=i.moveTextAreaUnderMouseCursor=i.paste=i.handlePasteEvent=i.copyHandler=i.bracketTextForPaste=i.prepareTextForTerminal=void 0,i.prepareTextForTerminal=s,i.bracketTextForPaste=a,i.copyHandler=function(c,_){c.clipboardData&&c.clipboardData.setData("text/plain",_.selectionText),c.preventDefault()},i.handlePasteEvent=function(c,_,v){c.stopPropagation(),c.clipboardData&&l(c.clipboardData.getData("text/plain"),_,v)},i.paste=l,i.moveTextAreaUnderMouseCursor=u,i.rightClickHandler=function(c,_,v,p,g){u(c,_,v),g&&p.rightClickSelect(c),_.value=p.selectionText,_.select()}},4774:(o,i)=>{var s,a,l,u;function c(v){var p=v.toString(16);return p.length<2?"0"+p:p}function _(v,p){return v<p?(p+.05)/(v+.05):(v+.05)/(p+.05)}Object.defineProperty(i,"__esModule",{value:!0}),i.contrastRatio=i.toPaddedHex=i.rgba=i.rgb=i.css=i.color=i.channels=void 0,function(v){v.toCss=function(p,g,b,m){return m!==void 0?"#"+c(p)+c(g)+c(b)+c(m):"#"+c(p)+c(g)+c(b)},v.toRgba=function(p,g,b,m){return m===void 0&&(m=255),(p<<24|g<<16|b<<8|m)>>>0}}(s=i.channels||(i.channels={})),(a=i.color||(i.color={})).blend=function(v,p){var g=(255&p.rgba)/255;if(g===1)return{css:p.css,rgba:p.rgba};var b=p.rgba>>24&255,m=p.rgba>>16&255,d=p.rgba>>8&255,f=v.rgba>>24&255,h=v.rgba>>16&255,y=v.rgba>>8&255,C=f+Math.round((b-f)*g),w=h+Math.round((m-h)*g),S=y+Math.round((d-y)*g);return{css:s.toCss(C,w,S),rgba:s.toRgba(C,w,S)}},a.isOpaque=function(v){return(255&v.rgba)==255},a.ensureContrastRatio=function(v,p,g){var b=u.ensureContrastRatio(v.rgba,p.rgba,g);if(b)return u.toColor(b>>24&255,b>>16&255,b>>8&255)},a.opaque=function(v){var p=(255|v.rgba)>>>0,g=u.toChannels(p),b=g[0],m=g[1],d=g[2];return{css:s.toCss(b,m,d),rgba:p}},a.opacity=function(v,p){var g=Math.round(255*p),b=u.toChannels(v.rgba),m=b[0],d=b[1],f=b[2];return{css:s.toCss(m,d,f,g),rgba:s.toRgba(m,d,f,g)}},a.toColorRGB=function(v){return[v.rgba>>24&255,v.rgba>>16&255,v.rgba>>8&255]},(i.css||(i.css={})).toColor=function(v){switch(v.length){case 7:return{css:v,rgba:(parseInt(v.slice(1),16)<<8|255)>>>0};case 9:return{css:v,rgba:parseInt(v.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(v){function p(g,b,m){var d=g/255,f=b/255,h=m/255;return .2126*(d<=.03928?d/12.92:Math.pow((d+.055)/1.055,2.4))+.7152*(f<=.03928?f/12.92:Math.pow((f+.055)/1.055,2.4))+.0722*(h<=.03928?h/12.92:Math.pow((h+.055)/1.055,2.4))}v.relativeLuminance=function(g){return p(g>>16&255,g>>8&255,255&g)},v.relativeLuminance2=p}(l=i.rgb||(i.rgb={})),function(v){function p(b,m,d){for(var f=b>>24&255,h=b>>16&255,y=b>>8&255,C=m>>24&255,w=m>>16&255,S=m>>8&255,E=_(l.relativeLuminance2(C,S,w),l.relativeLuminance2(f,h,y));E<d&&(C>0||w>0||S>0);)C-=Math.max(0,Math.ceil(.1*C)),w-=Math.max(0,Math.ceil(.1*w)),S-=Math.max(0,Math.ceil(.1*S)),E=_(l.relativeLuminance2(C,S,w),l.relativeLuminance2(f,h,y));return(C<<24|w<<16|S<<8|255)>>>0}function g(b,m,d){for(var f=b>>24&255,h=b>>16&255,y=b>>8&255,C=m>>24&255,w=m>>16&255,S=m>>8&255,E=_(l.relativeLuminance2(C,S,w),l.relativeLuminance2(f,h,y));E<d&&(C<255||w<255||S<255);)C=Math.min(255,C+Math.ceil(.1*(255-C))),w=Math.min(255,w+Math.ceil(.1*(255-w))),S=Math.min(255,S+Math.ceil(.1*(255-S))),E=_(l.relativeLuminance2(C,S,w),l.relativeLuminance2(f,h,y));return(C<<24|w<<16|S<<8|255)>>>0}v.ensureContrastRatio=function(b,m,d){var f=l.relativeLuminance(b>>8),h=l.relativeLuminance(m>>8);if(_(f,h)<d)return h<f?p(b,m,d):g(b,m,d)},v.reduceLuminance=p,v.increaseLuminance=g,v.toChannels=function(b){return[b>>24&255,b>>16&255,b>>8&255,255&b]},v.toColor=function(b,m,d){return{css:s.toCss(b,m,d),rgba:s.toRgba(b,m,d)}}}(u=i.rgba||(i.rgba={})),i.toPaddedHex=c,i.contrastRatio=_},7239:(o,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.ColorContrastCache=void 0;var s=function(){function a(){this._color={},this._rgba={}}return a.prototype.clear=function(){this._color={},this._rgba={}},a.prototype.setCss=function(l,u,c){this._rgba[l]||(this._rgba[l]={}),this._rgba[l][u]=c},a.prototype.getCss=function(l,u){return this._rgba[l]?this._rgba[l][u]:void 0},a.prototype.setColor=function(l,u,c){this._color[l]||(this._color[l]={}),this._color[l][u]=c},a.prototype.getColor=function(l,u){return this._color[l]?this._color[l][u]:void 0},a}();i.ColorContrastCache=s},5680:function(o,i,s){var a=this&&this.__spreadArray||function(m,d,f){if(f||arguments.length===2)for(var h,y=0,C=d.length;y<C;y++)!h&&y in d||(h||(h=Array.prototype.slice.call(d,0,y)),h[y]=d[y]);return m.concat(h||Array.prototype.slice.call(d))};Object.defineProperty(i,"__esModule",{value:!0}),i.ColorManager=i.DEFAULT_ANSI_COLORS=void 0;var l=s(4774),u=s(7239),c=l.css.toColor("#ffffff"),_=l.css.toColor("#000000"),v=l.css.toColor("#ffffff"),p=l.css.toColor("#000000"),g={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};i.DEFAULT_ANSI_COLORS=Object.freeze(function(){for(var m=[l.css.toColor("#2e3436"),l.css.toColor("#cc0000"),l.css.toColor("#4e9a06"),l.css.toColor("#c4a000"),l.css.toColor("#3465a4"),l.css.toColor("#75507b"),l.css.toColor("#06989a"),l.css.toColor("#d3d7cf"),l.css.toColor("#555753"),l.css.toColor("#ef2929"),l.css.toColor("#8ae234"),l.css.toColor("#fce94f"),l.css.toColor("#729fcf"),l.css.toColor("#ad7fa8"),l.css.toColor("#34e2e2"),l.css.toColor("#eeeeec")],d=[0,95,135,175,215,255],f=0;f<216;f++){var h=d[f/36%6|0],y=d[f/6%6|0],C=d[f%6];m.push({css:l.channels.toCss(h,y,C),rgba:l.channels.toRgba(h,y,C)})}for(f=0;f<24;f++){var w=8+10*f;m.push({css:l.channels.toCss(w,w,w),rgba:l.channels.toRgba(w,w,w)})}return m}());var b=function(){function m(d,f){this.allowTransparency=f;var h=d.createElement("canvas");h.width=1,h.height=1;var y=h.getContext("2d");if(!y)throw new Error("Could not get rendering context");this._ctx=y,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new u.ColorContrastCache,this.colors={foreground:c,background:_,cursor:v,cursorAccent:p,selectionTransparent:g,selectionOpaque:l.color.blend(_,g),ansi:i.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache},this._updateRestoreColors()}return m.prototype.onOptionsChange=function(d){d==="minimumContrastRatio"&&this._contrastCache.clear()},m.prototype.setTheme=function(d){d===void 0&&(d={}),this.colors.foreground=this._parseColor(d.foreground,c),this.colors.background=this._parseColor(d.background,_),this.colors.cursor=this._parseColor(d.cursor,v,!0),this.colors.cursorAccent=this._parseColor(d.cursorAccent,p,!0),this.colors.selectionTransparent=this._parseColor(d.selection,g,!0),this.colors.selectionOpaque=l.color.blend(this.colors.background,this.colors.selectionTransparent),l.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=l.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(d.black,i.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(d.red,i.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(d.green,i.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(d.yellow,i.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(d.blue,i.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(d.magenta,i.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(d.cyan,i.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(d.white,i.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(d.brightBlack,i.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(d.brightRed,i.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(d.brightGreen,i.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(d.brightYellow,i.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(d.brightBlue,i.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(d.brightMagenta,i.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(d.brightCyan,i.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(d.brightWhite,i.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear(),this._updateRestoreColors()},m.prototype.restoreColor=function(d){if(d!==void 0)switch(d){case 256:this.colors.foreground=this._restoreColors.foreground;break;case 257:this.colors.background=this._restoreColors.background;break;case 258:this.colors.cursor=this._restoreColors.cursor;break;default:this.colors.ansi[d]=this._restoreColors.ansi[d]}else for(var f=0;f<this._restoreColors.ansi.length;++f)this.colors.ansi[f]=this._restoreColors.ansi[f]},m.prototype._updateRestoreColors=function(){this._restoreColors={foreground:this.colors.foreground,background:this.colors.background,cursor:this.colors.cursor,ansi:a([],this.colors.ansi,!0)}},m.prototype._parseColor=function(d,f,h){if(h===void 0&&(h=this.allowTransparency),d===void 0)return f;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=d,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+d+" is invalid using fallback "+f.css),f;this._ctx.fillRect(0,0,1,1);var y=this._ctx.getImageData(0,0,1,1).data;if(y[3]!==255){if(!h)return console.warn("Color: "+d+" is using transparency, but allowTransparency is false. Using fallback "+f.css+"."),f;var C=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(A){return Number(A)}),w=C[0],S=C[1],E=C[2],k=C[3],x=Math.round(255*k);return{rgba:l.channels.toRgba(w,S,E,x),css:d}}return{css:this._ctx.fillStyle,rgba:l.channels.toRgba(y[0],y[1],y[2],y[3])}},m}();i.ColorManager=b},9631:(o,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.removeElementFromParent=void 0,i.removeElementFromParent=function(){for(var s,a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];for(var u=0,c=a;u<c.length;u++){var _=c[u];(s=_==null?void 0:_.parentElement)===null||s===void 0||s.removeChild(_)}}},3656:(o,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.addDisposableDomListener=void 0,i.addDisposableDomListener=function(s,a,l,u){s.addEventListener(a,l,u);var c=!1;return{dispose:function(){c||(c=!0,s.removeEventListener(a,l,u))}}}},3551:function(o,i,s){var a=this&&this.__decorate||function(p,g,b,m){var d,f=arguments.length,h=f<3?g:m===null?m=Object.getOwnPropertyDescriptor(g,b):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(p,g,b,m);else for(var y=p.length-1;y>=0;y--)(d=p[y])&&(h=(f<3?d(h):f>3?d(g,b,h):d(g,b))||h);return f>3&&h&&Object.defineProperty(g,b,h),h},l=this&&this.__param||function(p,g){return function(b,m){g(b,m,p)}};Object.defineProperty(i,"__esModule",{value:!0}),i.MouseZone=i.Linkifier=void 0;var u=s(8460),c=s(2585),_=function(){function p(g,b,m){this._bufferService=g,this._logService=b,this._unicodeService=m,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new u.EventEmitter,this._onHideLinkUnderline=new u.EventEmitter,this._onLinkTooltip=new u.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(p.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),p.prototype.attachToDom=function(g,b){this._element=g,this._mouseZoneManager=b},p.prototype.linkifyRows=function(g,b){var m=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=g,this._rowsToLinkify.end=b):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,g),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,b)),this._mouseZoneManager.clearAll(g,b),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return m._linkifyRows()},p._timeBeforeLatency))},p.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var g=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var b=g.ydisp+this._rowsToLinkify.start;if(!(b>=g.lines.length)){for(var m=g.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,d=Math.ceil(2e3/this._bufferService.cols),f=this._bufferService.buffer.iterator(!1,b,m,d,d);f.hasNext();)for(var h=f.next(),y=0;y<this._linkMatchers.length;y++)this._doLinkifyRow(h.range.first,h.content,this._linkMatchers[y]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},p.prototype.registerLinkMatcher=function(g,b,m){if(m===void 0&&(m={}),!b)throw new Error("handler must be defined");var d={id:this._nextLinkMatcherId++,regex:g,handler:b,matchIndex:m.matchIndex,validationCallback:m.validationCallback,hoverTooltipCallback:m.tooltipCallback,hoverLeaveCallback:m.leaveCallback,willLinkActivate:m.willLinkActivate,priority:m.priority||0};return this._addLinkMatcherToList(d),d.id},p.prototype._addLinkMatcherToList=function(g){if(this._linkMatchers.length!==0){for(var b=this._linkMatchers.length-1;b>=0;b--)if(g.priority<=this._linkMatchers[b].priority)return void this._linkMatchers.splice(b+1,0,g);this._linkMatchers.splice(0,0,g)}else this._linkMatchers.push(g)},p.prototype.deregisterLinkMatcher=function(g){for(var b=0;b<this._linkMatchers.length;b++)if(this._linkMatchers[b].id===g)return this._linkMatchers.splice(b,1),!0;return!1},p.prototype._doLinkifyRow=function(g,b,m){for(var d,f=this,h=new RegExp(m.regex.source,(m.regex.flags||"")+"g"),y=-1,C=function(){var S=d[typeof m.matchIndex!="number"?0:m.matchIndex];if(!S)return w._logService.debug("match found without corresponding matchIndex",d,m),"break";if(y=b.indexOf(S,y+1),h.lastIndex=y+S.length,y<0)return"break";var E=w._bufferService.buffer.stringIndexToBufferIndex(g,y);if(E[0]<0)return"break";var k=w._bufferService.buffer.lines.get(E[0]);if(!k)return"break";var x=k.getFg(E[1]),A=x?x>>9&511:void 0;m.validationCallback?m.validationCallback(S,function(L){f._rowsTimeoutId||L&&f._addLink(E[1],E[0]-f._bufferService.buffer.ydisp,S,m,A)}):w._addLink(E[1],E[0]-w._bufferService.buffer.ydisp,S,m,A)},w=this;(d=h.exec(b))!==null&&C()!=="break";);},p.prototype._addLink=function(g,b,m,d,f){var h=this;if(this._mouseZoneManager&&this._element){var y=this._unicodeService.getStringCellWidth(m),C=g%this._bufferService.cols,w=b+Math.floor(g/this._bufferService.cols),S=(C+y)%this._bufferService.cols,E=w+Math.floor((C+y)/this._bufferService.cols);S===0&&(S=this._bufferService.cols,E--),this._mouseZoneManager.add(new v(C+1,w+1,S+1,E+1,function(k){if(d.handler)return d.handler(k,m);var x=window.open();x?(x.opener=null,x.location.href=m):console.warn("Opening link blocked as opener could not be cleared")},function(){h._onShowLinkUnderline.fire(h._createLinkHoverEvent(C,w,S,E,f)),h._element.classList.add("xterm-cursor-pointer")},function(k){h._onLinkTooltip.fire(h._createLinkHoverEvent(C,w,S,E,f)),d.hoverTooltipCallback&&d.hoverTooltipCallback(k,m,{start:{x:C,y:w},end:{x:S,y:E}})},function(){h._onHideLinkUnderline.fire(h._createLinkHoverEvent(C,w,S,E,f)),h._element.classList.remove("xterm-cursor-pointer"),d.hoverLeaveCallback&&d.hoverLeaveCallback()},function(k){return!d.willLinkActivate||d.willLinkActivate(k,m)}))}},p.prototype._createLinkHoverEvent=function(g,b,m,d,f){return{x1:g,y1:b,x2:m,y2:d,cols:this._bufferService.cols,fg:f}},p._timeBeforeLatency=200,p=a([l(0,c.IBufferService),l(1,c.ILogService),l(2,c.IUnicodeService)],p)}();i.Linkifier=_;var v=function(p,g,b,m,d,f,h,y,C){this.x1=p,this.y1=g,this.x2=b,this.y2=m,this.clickCallback=d,this.hoverCallback=f,this.tooltipCallback=h,this.leaveCallback=y,this.willLinkActivate=C};i.MouseZone=v},6465:function(o,i,s){var a,l=this&&this.__extends||(a=function(m,d){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var y in h)Object.prototype.hasOwnProperty.call(h,y)&&(f[y]=h[y])},a(m,d)},function(m,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function f(){this.constructor=m}a(m,d),m.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}),u=this&&this.__decorate||function(m,d,f,h){var y,C=arguments.length,w=C<3?d:h===null?h=Object.getOwnPropertyDescriptor(d,f):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(m,d,f,h);else for(var S=m.length-1;S>=0;S--)(y=m[S])&&(w=(C<3?y(w):C>3?y(d,f,w):y(d,f))||w);return C>3&&w&&Object.defineProperty(d,f,w),w},c=this&&this.__param||function(m,d){return function(f,h){d(f,h,m)}};Object.defineProperty(i,"__esModule",{value:!0}),i.Linkifier2=void 0;var _=s(2585),v=s(8460),p=s(844),g=s(3656),b=function(m){function d(f){var h=m.call(this)||this;return h._bufferService=f,h._linkProviders=[],h._linkCacheDisposables=[],h._isMouseOut=!0,h._activeLine=-1,h._onShowLinkUnderline=h.register(new v.EventEmitter),h._onHideLinkUnderline=h.register(new v.EventEmitter),h.register((0,p.getDisposeArrayDisposable)(h._linkCacheDisposables)),h}return l(d,m),Object.defineProperty(d.prototype,"currentLink",{get:function(){return this._currentLink},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),d.prototype.registerLinkProvider=function(f){var h=this;return this._linkProviders.push(f),{dispose:function(){var y=h._linkProviders.indexOf(f);y!==-1&&h._linkProviders.splice(y,1)}}},d.prototype.attachToDom=function(f,h,y){var C=this;this._element=f,this._mouseService=h,this._renderService=y,this.register((0,g.addDisposableDomListener)(this._element,"mouseleave",function(){C._isMouseOut=!0,C._clearCurrentLink()})),this.register((0,g.addDisposableDomListener)(this._element,"mousemove",this._onMouseMove.bind(this))),this.register((0,g.addDisposableDomListener)(this._element,"click",this._onClick.bind(this)))},d.prototype._onMouseMove=function(f){if(this._lastMouseEvent=f,this._element&&this._mouseService){var h=this._positionFromMouseEvent(f,this._element,this._mouseService);if(h){this._isMouseOut=!1;for(var y=f.composedPath(),C=0;C<y.length;C++){var w=y[C];if(w.classList.contains("xterm"))break;if(w.classList.contains("xterm-hover"))return}this._lastBufferCell&&h.x===this._lastBufferCell.x&&h.y===this._lastBufferCell.y||(this._onHover(h),this._lastBufferCell=h)}}},d.prototype._onHover=function(f){if(this._activeLine!==f.y)return this._clearCurrentLink(),void this._askForLink(f,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,f)||(this._clearCurrentLink(),this._askForLink(f,!0))},d.prototype._askForLink=function(f,h){var y,C=this;this._activeProviderReplies&&h||((y=this._activeProviderReplies)===null||y===void 0||y.forEach(function(S){S==null||S.forEach(function(E){E.link.dispose&&E.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=f.y);var w=!1;this._linkProviders.forEach(function(S,E){var k;h?!((k=C._activeProviderReplies)===null||k===void 0)&&k.get(E)&&(w=C._checkLinkProviderResult(E,f,w)):S.provideLinks(f.y,function(x){var A,L;if(!C._isMouseOut){var T=x==null?void 0:x.map(function(H){return{link:H}});(A=C._activeProviderReplies)===null||A===void 0||A.set(E,T),w=C._checkLinkProviderResult(E,f,w),((L=C._activeProviderReplies)===null||L===void 0?void 0:L.size)===C._linkProviders.length&&C._removeIntersectingLinks(f.y,C._activeProviderReplies)}})})},d.prototype._removeIntersectingLinks=function(f,h){for(var y=new Set,C=0;C<h.size;C++){var w=h.get(C);if(w)for(var S=0;S<w.length;S++)for(var E=w[S],k=E.link.range.start.y<f?0:E.link.range.start.x,x=E.link.range.end.y>f?this._bufferService.cols:E.link.range.end.x,A=k;A<=x;A++){if(y.has(A)){w.splice(S--,1);break}y.add(A)}}},d.prototype._checkLinkProviderResult=function(f,h,y){var C,w=this;if(!this._activeProviderReplies)return y;for(var S=this._activeProviderReplies.get(f),E=!1,k=0;k<f;k++)this._activeProviderReplies.has(k)&&!this._activeProviderReplies.get(k)||(E=!0);if(!E&&S){var x=S.find(function(L){return w._linkAtPosition(L.link,h)});x&&(y=!0,this._handleNewLink(x))}if(this._activeProviderReplies.size===this._linkProviders.length&&!y)for(k=0;k<this._activeProviderReplies.size;k++){var A=(C=this._activeProviderReplies.get(k))===null||C===void 0?void 0:C.find(function(L){return w._linkAtPosition(L.link,h)});if(A){y=!0,this._handleNewLink(A);break}}return y},d.prototype._onClick=function(f){if(this._element&&this._mouseService&&this._currentLink){var h=this._positionFromMouseEvent(f,this._element,this._mouseService);h&&this._linkAtPosition(this._currentLink.link,h)&&this._currentLink.link.activate(f,this._currentLink.link.text)}},d.prototype._clearCurrentLink=function(f,h){this._element&&this._currentLink&&this._lastMouseEvent&&(!f||!h||this._currentLink.link.range.start.y>=f&&this._currentLink.link.range.end.y<=h)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,p.disposeArray)(this._linkCacheDisposables))},d.prototype._handleNewLink=function(f){var h=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var y=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);y&&this._linkAtPosition(f.link,y)&&(this._currentLink=f,this._currentLink.state={decorations:{underline:f.link.decorations===void 0||f.link.decorations.underline,pointerCursor:f.link.decorations===void 0||f.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,f.link,this._lastMouseEvent),f.link.decorations={},Object.defineProperties(f.link.decorations,{pointerCursor:{get:function(){var C,w;return(w=(C=h._currentLink)===null||C===void 0?void 0:C.state)===null||w===void 0?void 0:w.decorations.pointerCursor},set:function(C){var w,S;((w=h._currentLink)===null||w===void 0?void 0:w.state)&&h._currentLink.state.decorations.pointerCursor!==C&&(h._currentLink.state.decorations.pointerCursor=C,h._currentLink.state.isHovered&&((S=h._element)===null||S===void 0||S.classList.toggle("xterm-cursor-pointer",C)))}},underline:{get:function(){var C,w;return(w=(C=h._currentLink)===null||C===void 0?void 0:C.state)===null||w===void 0?void 0:w.decorations.underline},set:function(C){var w,S,E;((w=h._currentLink)===null||w===void 0?void 0:w.state)&&((E=(S=h._currentLink)===null||S===void 0?void 0:S.state)===null||E===void 0?void 0:E.decorations.underline)!==C&&(h._currentLink.state.decorations.underline=C,h._currentLink.state.isHovered&&h._fireUnderlineEvent(f.link,C))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(C){var w=C.start===0?0:C.start+1+h._bufferService.buffer.ydisp;h._clearCurrentLink(w,C.end+1+h._bufferService.buffer.ydisp)})))}},d.prototype._linkHover=function(f,h,y){var C;!((C=this._currentLink)===null||C===void 0)&&C.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(h,!0),this._currentLink.state.decorations.pointerCursor&&f.classList.add("xterm-cursor-pointer")),h.hover&&h.hover(y,h.text)},d.prototype._fireUnderlineEvent=function(f,h){var y=f.range,C=this._bufferService.buffer.ydisp,w=this._createLinkUnderlineEvent(y.start.x-1,y.start.y-C-1,y.end.x,y.end.y-C-1,void 0);(h?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(w)},d.prototype._linkLeave=function(f,h,y){var C;!((C=this._currentLink)===null||C===void 0)&&C.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(h,!1),this._currentLink.state.decorations.pointerCursor&&f.classList.remove("xterm-cursor-pointer")),h.leave&&h.leave(y,h.text)},d.prototype._linkAtPosition=function(f,h){var y=f.range.start.y===f.range.end.y,C=f.range.start.y<h.y,w=f.range.end.y>h.y;return(y&&f.range.start.x<=h.x&&f.range.end.x>=h.x||C&&f.range.end.x>=h.x||w&&f.range.start.x<=h.x||C&&w)&&f.range.start.y<=h.y&&f.range.end.y>=h.y},d.prototype._positionFromMouseEvent=function(f,h,y){var C=y.getCoords(f,h,this._bufferService.cols,this._bufferService.rows);if(C)return{x:C[0],y:C[1]+this._bufferService.buffer.ydisp}},d.prototype._createLinkUnderlineEvent=function(f,h,y,C,w){return{x1:f,y1:h,x2:y,y2:C,cols:this._bufferService.cols,fg:w}},u([c(0,_.IBufferService)],d)}(p.Disposable);i.Linkifier2=b},9042:(o,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.tooMuchOutput=i.promptLabel=void 0,i.promptLabel="Terminal input",i.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},6954:function(o,i,s){var a,l=this&&this.__extends||(a=function(m,d){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var y in h)Object.prototype.hasOwnProperty.call(h,y)&&(f[y]=h[y])},a(m,d)},function(m,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function f(){this.constructor=m}a(m,d),m.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}),u=this&&this.__decorate||function(m,d,f,h){var y,C=arguments.length,w=C<3?d:h===null?h=Object.getOwnPropertyDescriptor(d,f):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(m,d,f,h);else for(var S=m.length-1;S>=0;S--)(y=m[S])&&(w=(C<3?y(w):C>3?y(d,f,w):y(d,f))||w);return C>3&&w&&Object.defineProperty(d,f,w),w},c=this&&this.__param||function(m,d){return function(f,h){d(f,h,m)}};Object.defineProperty(i,"__esModule",{value:!0}),i.MouseZoneManager=void 0;var _=s(844),v=s(3656),p=s(4725),g=s(2585),b=function(m){function d(f,h,y,C,w,S){var E=m.call(this)||this;return E._element=f,E._screenElement=h,E._bufferService=y,E._mouseService=C,E._selectionService=w,E._optionsService=S,E._zones=[],E._areZonesActive=!1,E._lastHoverCoords=[void 0,void 0],E._initialSelectionLength=0,E.register((0,v.addDisposableDomListener)(E._element,"mousedown",function(k){return E._onMouseDown(k)})),E._mouseMoveListener=function(k){return E._onMouseMove(k)},E._mouseLeaveListener=function(k){return E._onMouseLeave(k)},E._clickListener=function(k){return E._onClick(k)},E}return l(d,m),d.prototype.dispose=function(){m.prototype.dispose.call(this),this._deactivate()},d.prototype.add=function(f){this._zones.push(f),this._zones.length===1&&this._activate()},d.prototype.clearAll=function(f,h){if(this._zones.length!==0){f&&h||(f=0,h=this._bufferService.rows-1);for(var y=0;y<this._zones.length;y++){var C=this._zones[y];(C.y1>f&&C.y1<=h+1||C.y2>f&&C.y2<=h+1||C.y1<f&&C.y2>h+1)&&(this._currentZone&&this._currentZone===C&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(y--,1))}this._zones.length===0&&this._deactivate()}},d.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},d.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},d.prototype._onMouseMove=function(f){this._lastHoverCoords[0]===f.pageX&&this._lastHoverCoords[1]===f.pageY||(this._onHover(f),this._lastHoverCoords=[f.pageX,f.pageY])},d.prototype._onHover=function(f){var h=this,y=this._findZoneEventAt(f);y!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),y&&(this._currentZone=y,y.hoverCallback&&y.hoverCallback(f),this._tooltipTimeout=window.setTimeout(function(){return h._onTooltip(f)},this._optionsService.rawOptions.linkTooltipHoverDuration)))},d.prototype._onTooltip=function(f){this._tooltipTimeout=void 0;var h=this._findZoneEventAt(f);h==null||h.tooltipCallback(f)},d.prototype._onMouseDown=function(f){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var h=this._findZoneEventAt(f);h!=null&&h.willLinkActivate(f)&&(f.preventDefault(),f.stopImmediatePropagation())}},d.prototype._onMouseLeave=function(f){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},d.prototype._onClick=function(f){var h=this._findZoneEventAt(f),y=this._getSelectionLength();h&&y===this._initialSelectionLength&&(h.clickCallback(f),f.preventDefault(),f.stopImmediatePropagation())},d.prototype._getSelectionLength=function(){var f=this._selectionService.selectionText;return f?f.length:0},d.prototype._findZoneEventAt=function(f){var h=this._mouseService.getCoords(f,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(h)for(var y=h[0],C=h[1],w=0;w<this._zones.length;w++){var S=this._zones[w];if(S.y1===S.y2){if(C===S.y1&&y>=S.x1&&y<S.x2)return S}else if(C===S.y1&&y>=S.x1||C===S.y2&&y<S.x2||C>S.y1&&C<S.y2)return S}},u([c(2,g.IBufferService),c(3,p.IMouseService),c(4,p.ISelectionService),c(5,g.IOptionsService)],d)}(_.Disposable);i.MouseZoneManager=b},6193:(o,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.RenderDebouncer=void 0;var s=function(){function a(l){this._renderCallback=l}return a.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},a.prototype.refresh=function(l,u,c){var _=this;this._rowCount=c,l=l!==void 0?l:0,u=u!==void 0?u:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,l):l,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,u):u,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return _._innerRefresh()}))},a.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var l=Math.max(this._rowStart,0),u=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(l,u)}},a}();i.RenderDebouncer=s},5596:function(o,i,s){var a,l=this&&this.__extends||(a=function(c,_){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,p){v.__proto__=p}||function(v,p){for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(v[g]=p[g])},a(c,_)},function(c,_){if(typeof _!="function"&&_!==null)throw new TypeError("Class extends value "+String(_)+" is not a constructor or null");function v(){this.constructor=c}a(c,_),c.prototype=_===null?Object.create(_):(v.prototype=_.prototype,new v)});Object.defineProperty(i,"__esModule",{value:!0}),i.ScreenDprMonitor=void 0;var u=function(c){function _(){var v=c!==null&&c.apply(this,arguments)||this;return v._currentDevicePixelRatio=window.devicePixelRatio,v}return l(_,c),_.prototype.setListener=function(v){var p=this;this._listener&&this.clearListener(),this._listener=v,this._outerListener=function(){p._listener&&(p._listener(window.devicePixelRatio,p._currentDevicePixelRatio),p._updateDpr())},this._updateDpr()},_.prototype.dispose=function(){c.prototype.dispose.call(this),this.clearListener()},_.prototype._updateDpr=function(){var v;this._outerListener&&((v=this._resolutionMediaMatchList)===null||v===void 0||v.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},_.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},_}(s(844).Disposable);i.ScreenDprMonitor=u},3236:function(o,i,s){var a,l=this&&this.__extends||(a=function(B,z){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,D){O.__proto__=D}||function(O,D){for(var F in D)Object.prototype.hasOwnProperty.call(D,F)&&(O[F]=D[F])},a(B,z)},function(B,z){if(typeof z!="function"&&z!==null)throw new TypeError("Class extends value "+String(z)+" is not a constructor or null");function O(){this.constructor=B}a(B,z),B.prototype=z===null?Object.create(z):(O.prototype=z.prototype,new O)});Object.defineProperty(i,"__esModule",{value:!0}),i.Terminal=void 0;var u=s(2950),c=s(1680),_=s(3614),v=s(2584),p=s(5435),g=s(3525),b=s(3551),m=s(9312),d=s(6114),f=s(3656),h=s(9042),y=s(357),C=s(6954),w=s(4567),S=s(1296),E=s(7399),k=s(8460),x=s(8437),A=s(5680),L=s(3230),T=s(4725),H=s(428),P=s(8934),R=s(6465),I=s(5114),M=s(8969),$=s(4774),V=s(4269),U=s(5941),Y=s(7641),Z=typeof window!="undefined"?window.document:null,te=function(B){function z(O){O===void 0&&(O={});var D=B.call(this,O)||this;return D.browser=d,D._keyDownHandled=!1,D._keyPressHandled=!1,D._unprocessedDeadKey=!1,D._onCursorMove=new k.EventEmitter,D._onKey=new k.EventEmitter,D._onRender=new k.EventEmitter,D._onSelectionChange=new k.EventEmitter,D._onTitleChange=new k.EventEmitter,D._onBell=new k.EventEmitter,D._onFocus=new k.EventEmitter,D._onBlur=new k.EventEmitter,D._onA11yCharEmitter=new k.EventEmitter,D._onA11yTabEmitter=new k.EventEmitter,D._setup(),D.linkifier=D._instantiationService.createInstance(b.Linkifier),D.linkifier2=D.register(D._instantiationService.createInstance(R.Linkifier2)),D.decorationService=D.register(D._instantiationService.createInstance(Y.DecorationService)),D.register(D._inputHandler.onRequestBell(function(){return D.bell()})),D.register(D._inputHandler.onRequestRefreshRows(function(F,ue){return D.refresh(F,ue)})),D.register(D._inputHandler.onRequestSendFocus(function(){return D._reportFocus()})),D.register(D._inputHandler.onRequestReset(function(){return D.reset()})),D.register(D._inputHandler.onRequestWindowsOptionsReport(function(F){return D._reportWindowsOptions(F)})),D.register(D._inputHandler.onColor(function(F){return D._handleColorEvent(F)})),D.register((0,k.forwardEvent)(D._inputHandler.onCursorMove,D._onCursorMove)),D.register((0,k.forwardEvent)(D._inputHandler.onTitleChange,D._onTitleChange)),D.register((0,k.forwardEvent)(D._inputHandler.onA11yChar,D._onA11yCharEmitter)),D.register((0,k.forwardEvent)(D._inputHandler.onA11yTab,D._onA11yTabEmitter)),D.register(D._bufferService.onResize(function(F){return D._afterResize(F.cols,F.rows)})),D}return l(z,B),Object.defineProperty(z.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"onBell",{get:function(){return this._onBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),z.prototype._handleColorEvent=function(O){var D,F;if(this._colorManager){for(var ue=0,fe=O;ue<fe.length;ue++){var ge=fe[ue],j=void 0,q="";switch(ge.index){case 256:j="foreground",q="10";break;case 257:j="background",q="11";break;case 258:j="cursor",q="12";break;default:j="ansi",q="4;"+ge.index}if(j)switch(ge.type){case 0:var ie=$.color.toColorRGB(j==="ansi"?this._colorManager.colors.ansi[ge.index]:this._colorManager.colors[j]);this.coreService.triggerDataEvent(v.C0.ESC+"]"+q+";"+(0,U.toRgbString)(ie)+v.C0.BEL);break;case 1:j==="ansi"?this._colorManager.colors.ansi[ge.index]=$.rgba.toColor.apply($.rgba,ge.color):this._colorManager.colors[j]=$.rgba.toColor.apply($.rgba,ge.color);break;case 2:this._colorManager.restoreColor(ge.index)}}(D=this._renderService)===null||D===void 0||D.setColors(this._colorManager.colors),(F=this.viewport)===null||F===void 0||F.onThemeChange(this._colorManager.colors)}},z.prototype.dispose=function(){var O,D,F;this._isDisposed||(B.prototype.dispose.call(this),(O=this._renderService)===null||O===void 0||O.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(F=(D=this.element)===null||D===void 0?void 0:D.parentNode)===null||F===void 0||F.removeChild(this.element))},z.prototype._setup=function(){B.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(z.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),z.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},z.prototype._updateOptions=function(O){var D,F,ue,fe;switch(B.prototype._updateOptions.call(this,O),O){case"fontFamily":case"fontSize":(D=this._renderService)===null||D===void 0||D.clear(),(F=this._charSizeService)===null||F===void 0||F.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"customGlyphs":case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":(ue=this.viewport)===null||ue===void 0||ue.syncScrollArea();break;case"screenReaderMode":this.optionsService.rawOptions.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new w.AccessibilityManager(this,this._renderService)):((fe=this._accessibilityManager)===null||fe===void 0||fe.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.rawOptions.theme)}},z.prototype._onTextAreaFocus=function(O){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(v.C0.ESC+"[I"),this.updateCursorStyle(O),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},z.prototype.blur=function(){var O;return(O=this.textarea)===null||O===void 0?void 0:O.blur()},z.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(v.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},z.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing&&this._renderService){var O=this.buffer.ybase+this.buffer.y,D=this.buffer.lines.get(O);if(D){var F=Math.min(this.buffer.x,this.cols-1),ue=this._renderService.dimensions.actualCellHeight,fe=D.getWidth(F),ge=this._renderService.dimensions.actualCellWidth*fe,j=this.buffer.y*this._renderService.dimensions.actualCellHeight,q=F*this._renderService.dimensions.actualCellWidth;this.textarea.style.left=q+"px",this.textarea.style.top=j+"px",this.textarea.style.width=ge+"px",this.textarea.style.height=ue+"px",this.textarea.style.lineHeight=ue+"px",this.textarea.style.zIndex="-5"}}},z.prototype._initGlobal=function(){var O=this;this._bindKeys(),this.register((0,f.addDisposableDomListener)(this.element,"copy",function(F){O.hasSelection()&&(0,_.copyHandler)(F,O._selectionService)}));var D=function(F){return(0,_.handlePasteEvent)(F,O.textarea,O.coreService)};this.register((0,f.addDisposableDomListener)(this.textarea,"paste",D)),this.register((0,f.addDisposableDomListener)(this.element,"paste",D)),d.isFirefox?this.register((0,f.addDisposableDomListener)(this.element,"mousedown",function(F){F.button===2&&(0,_.rightClickHandler)(F,O.textarea,O.screenElement,O._selectionService,O.options.rightClickSelectsWord)})):this.register((0,f.addDisposableDomListener)(this.element,"contextmenu",function(F){(0,_.rightClickHandler)(F,O.textarea,O.screenElement,O._selectionService,O.options.rightClickSelectsWord)})),d.isLinux&&this.register((0,f.addDisposableDomListener)(this.element,"auxclick",function(F){F.button===1&&(0,_.moveTextAreaUnderMouseCursor)(F,O.textarea,O.screenElement)}))},z.prototype._bindKeys=function(){var O=this;this.register((0,f.addDisposableDomListener)(this.textarea,"keyup",function(D){return O._keyUp(D)},!0)),this.register((0,f.addDisposableDomListener)(this.textarea,"keydown",function(D){return O._keyDown(D)},!0)),this.register((0,f.addDisposableDomListener)(this.textarea,"keypress",function(D){return O._keyPress(D)},!0)),this.register((0,f.addDisposableDomListener)(this.textarea,"compositionstart",function(){return O._compositionHelper.compositionstart()})),this.register((0,f.addDisposableDomListener)(this.textarea,"compositionupdate",function(D){return O._compositionHelper.compositionupdate(D)})),this.register((0,f.addDisposableDomListener)(this.textarea,"compositionend",function(){return O._compositionHelper.compositionend()})),this.register((0,f.addDisposableDomListener)(this.textarea,"input",function(D){return O._inputEvent(D)},!0)),this.register(this.onRender(function(){return O._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(D){return O._queueLinkification(D.start,D.end)}))},z.prototype.open=function(O){var D=this;if(!O)throw new Error("Terminal requires a parent element.");O.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=O.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),O.appendChild(this.element);var F=Z.createDocumentFragment();this._viewportElement=Z.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),F.appendChild(this._viewportElement),this._viewportScrollArea=Z.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=Z.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=Z.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),F.appendChild(this.screenElement),this.textarea=Z.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",h.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register((0,f.addDisposableDomListener)(this.textarea,"focus",function(ge){return D._onTextAreaFocus(ge)})),this.register((0,f.addDisposableDomListener)(this.textarea,"blur",function(){return D._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var ue=this._instantiationService.createInstance(I.CoreBrowserService,this.textarea);this._instantiationService.setService(T.ICoreBrowserService,ue),this._charSizeService=this._instantiationService.createInstance(H.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(T.ICharSizeService,this._charSizeService),this._theme=this.options.theme||this._theme,this._colorManager=new A.ColorManager(Z,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(ge){return D._colorManager.onOptionsChange(ge)})),this._colorManager.setTheme(this._theme),this._characterJoinerService=this._instantiationService.createInstance(V.CharacterJoinerService),this._instantiationService.setService(T.ICharacterJoinerService,this._characterJoinerService);var fe=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(L.RenderService,fe,this.rows,this.screenElement)),this._instantiationService.setService(T.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(ge){return D._onRender.fire(ge)})),this.onResize(function(ge){return D._renderService.resize(ge.cols,ge.rows)}),this._compositionView=Z.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(u.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(F),this._soundService=this._instantiationService.createInstance(y.SoundService),this._instantiationService.setService(T.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(P.MouseService),this._instantiationService.setService(T.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(c.Viewport,function(ge){return D.scrollLines(ge,!0,1)},this._viewportElement,this._viewportScrollArea,this.element),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return D.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){D._renderService.onCursorMove(),D._syncTextArea()})),this.register(this.onResize(function(){return D._renderService.onResize(D.cols,D.rows)})),this.register(this.onBlur(function(){return D._renderService.onBlur()})),this.register(this.onFocus(function(){return D._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return D.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(m.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(T.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(ge){return D.scrollLines(ge.amount,ge.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return D._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(ge){return D._renderService.onSelectionChanged(ge.start,ge.end,ge.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(ge){D.textarea.value=ge,D.textarea.focus(),D.textarea.select()})),this.register(this._onScroll.event(function(ge){D.viewport.syncScrollArea(),D._selectionService.refresh()})),this.register((0,f.addDisposableDomListener)(this._viewportElement,"scroll",function(){return D._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(C.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return D._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.screenElement,this._mouseService,this._renderService),this.decorationService.attachToDom(this.screenElement,this._renderService,this._bufferService),this.register((0,f.addDisposableDomListener)(this.element,"mousedown",function(ge){return D._selectionService.onMouseDown(ge)})),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new w.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},z.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(g.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(S.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},z.prototype._setTheme=function(O){var D,F,ue;this._theme=O,(D=this._colorManager)===null||D===void 0||D.setTheme(O),(F=this._renderService)===null||F===void 0||F.setColors(this._colorManager.colors),(ue=this.viewport)===null||ue===void 0||ue.onThemeChange(this._colorManager.colors)},z.prototype.bindMouse=function(){var O=this,D=this,F=this.element;function ue(ee){var ae,pe,be=D._mouseService.getRawByteCoords(ee,D.screenElement,D.cols,D.rows);if(!be)return!1;switch(ee.overrideType||ee.type){case"mousemove":pe=32,ee.buttons===void 0?(ae=3,ee.button!==void 0&&(ae=ee.button<3?ee.button:3)):ae=1&ee.buttons?0:4&ee.buttons?1:2&ee.buttons?2:3;break;case"mouseup":pe=0,ae=ee.button<3?ee.button:3;break;case"mousedown":pe=1,ae=ee.button<3?ee.button:3;break;case"wheel":ee.deltaY!==0&&(pe=ee.deltaY<0?0:1),ae=4;break;default:return!1}return!(pe===void 0||ae===void 0||ae>4)&&D.coreMouseService.triggerMouseEvent({col:be.x-33,row:be.y-33,button:ae,action:pe,ctrl:ee.ctrlKey,alt:ee.altKey,shift:ee.shiftKey})}var fe={mouseup:null,wheel:null,mousedrag:null,mousemove:null},ge=function(ee){return ue(ee),ee.buttons||(O._document.removeEventListener("mouseup",fe.mouseup),fe.mousedrag&&O._document.removeEventListener("mousemove",fe.mousedrag)),O.cancel(ee)},j=function(ee){return ue(ee),O.cancel(ee,!0)},q=function(ee){ee.buttons&&ue(ee)},ie=function(ee){ee.buttons||ue(ee)};this.register(this.coreMouseService.onProtocolChange(function(ee){ee?(O.optionsService.rawOptions.logLevel==="debug"&&O._logService.debug("Binding to mouse events:",O.coreMouseService.explainEvents(ee)),O.element.classList.add("enable-mouse-events"),O._selectionService.disable()):(O._logService.debug("Unbinding from mouse events."),O.element.classList.remove("enable-mouse-events"),O._selectionService.enable()),8&ee?fe.mousemove||(F.addEventListener("mousemove",ie),fe.mousemove=ie):(F.removeEventListener("mousemove",fe.mousemove),fe.mousemove=null),16&ee?fe.wheel||(F.addEventListener("wheel",j,{passive:!1}),fe.wheel=j):(F.removeEventListener("wheel",fe.wheel),fe.wheel=null),2&ee?fe.mouseup||(fe.mouseup=ge):(O._document.removeEventListener("mouseup",fe.mouseup),fe.mouseup=null),4&ee?fe.mousedrag||(fe.mousedrag=q):(O._document.removeEventListener("mousemove",fe.mousedrag),fe.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,f.addDisposableDomListener)(F,"mousedown",function(ee){if(ee.preventDefault(),O.focus(),O.coreMouseService.areMouseEventsActive&&!O._selectionService.shouldForceSelection(ee))return ue(ee),fe.mouseup&&O._document.addEventListener("mouseup",fe.mouseup),fe.mousedrag&&O._document.addEventListener("mousemove",fe.mousedrag),O.cancel(ee)})),this.register((0,f.addDisposableDomListener)(F,"wheel",function(ee){if(!fe.wheel){if(!O.buffer.hasScrollback){var ae=O.viewport.getLinesScrolled(ee);if(ae===0)return;for(var pe=v.C0.ESC+(O.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(ee.deltaY<0?"A":"B"),be="",he=0;he<Math.abs(ae);he++)be+=pe;return O.coreService.triggerDataEvent(be,!0),O.cancel(ee,!0)}return O.viewport.onWheel(ee)?O.cancel(ee):void 0}},{passive:!1})),this.register((0,f.addDisposableDomListener)(F,"touchstart",function(ee){if(!O.coreMouseService.areMouseEventsActive)return O.viewport.onTouchStart(ee),O.cancel(ee)},{passive:!0})),this.register((0,f.addDisposableDomListener)(F,"touchmove",function(ee){if(!O.coreMouseService.areMouseEventsActive)return O.viewport.onTouchMove(ee)?void 0:O.cancel(ee)},{passive:!1}))},z.prototype.refresh=function(O,D){var F;(F=this._renderService)===null||F===void 0||F.refreshRows(O,D)},z.prototype._queueLinkification=function(O,D){var F;(F=this.linkifier)===null||F===void 0||F.linkifyRows(O,D)},z.prototype.updateCursorStyle=function(O){var D;!((D=this._selectionService)===null||D===void 0)&&D.shouldColumnSelect(O)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},z.prototype._showCursor=function(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},z.prototype.scrollLines=function(O,D,F){F===void 0&&(F=0),B.prototype.scrollLines.call(this,O,D,F),this.refresh(0,this.rows-1)},z.prototype.paste=function(O){(0,_.paste)(O,this.textarea,this.coreService)},z.prototype.attachCustomKeyEventHandler=function(O){this._customKeyEventHandler=O},z.prototype.registerLinkMatcher=function(O,D,F){var ue=this.linkifier.registerLinkMatcher(O,D,F);return this.refresh(0,this.rows-1),ue},z.prototype.deregisterLinkMatcher=function(O){this.linkifier.deregisterLinkMatcher(O)&&this.refresh(0,this.rows-1)},z.prototype.registerLinkProvider=function(O){return this.linkifier2.registerLinkProvider(O)},z.prototype.registerCharacterJoiner=function(O){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");var D=this._characterJoinerService.register(O);return this.refresh(0,this.rows-1),D},z.prototype.deregisterCharacterJoiner=function(O){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(O)&&this.refresh(0,this.rows-1)},Object.defineProperty(z.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),z.prototype.addMarker=function(O){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+O)},z.prototype.registerDecoration=function(O){return this.decorationService.registerDecoration(O)},z.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},z.prototype.select=function(O,D,F){this._selectionService.setSelection(O,D,F)},z.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},z.prototype.getSelectionPosition=function(){if(this._selectionService&&this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},z.prototype.clearSelection=function(){var O;(O=this._selectionService)===null||O===void 0||O.clearSelection()},z.prototype.selectAll=function(){var O;(O=this._selectionService)===null||O===void 0||O.selectAll()},z.prototype.selectLines=function(O,D){var F;(F=this._selectionService)===null||F===void 0||F.selectLines(O,D)},z.prototype._keyDown=function(O){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(O)===!1)return!1;if(!this._compositionHelper.keydown(O))return this.buffer.ybase!==this.buffer.ydisp&&this._bufferService.scrollToBottom(),!1;O.key!=="Dead"&&O.key!=="AltGraph"||(this._unprocessedDeadKey=!0);var D=(0,E.evaluateKeyboardEvent)(O,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(O),D.type===3||D.type===2){var F=this.rows-1;return this.scrollLines(D.type===2?-F:F),this.cancel(O,!0)}return D.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,O)||(D.cancel&&this.cancel(O,!0),!D.key||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(D.key!==v.C0.ETX&&D.key!==v.C0.CR||(this.textarea.value=""),this._onKey.fire({key:D.key,domEvent:O}),this._showCursor(),this.coreService.triggerDataEvent(D.key,!0),this.optionsService.rawOptions.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(O,!0))))},z.prototype._isThirdLevelShift=function(O,D){var F=O.isMac&&!this.options.macOptionIsMeta&&D.altKey&&!D.ctrlKey&&!D.metaKey||O.isWindows&&D.altKey&&D.ctrlKey&&!D.metaKey||O.isWindows&&D.getModifierState("AltGraph");return D.type==="keypress"?F:F&&(!D.keyCode||D.keyCode>47)},z.prototype._keyUp=function(O){this._customKeyEventHandler&&this._customKeyEventHandler(O)===!1||(function(D){return D.keyCode===16||D.keyCode===17||D.keyCode===18}(O)||this.focus(),this.updateCursorStyle(O),this._keyPressHandled=!1)},z.prototype._keyPress=function(O){var D;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(O)===!1)return!1;if(this.cancel(O),O.charCode)D=O.charCode;else if(O.which===null||O.which===void 0)D=O.keyCode;else{if(O.which===0||O.charCode===0)return!1;D=O.which}return!(!D||(O.altKey||O.ctrlKey||O.metaKey)&&!this._isThirdLevelShift(this.browser,O)||(D=String.fromCharCode(D),this._onKey.fire({key:D,domEvent:O}),this._showCursor(),this.coreService.triggerDataEvent(D,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))},z.prototype._inputEvent=function(O){if(O.data&&O.inputType==="insertText"&&!O.composed&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;var D=O.data;return this.coreService.triggerDataEvent(D,!0),this.cancel(O),!0}return!1},z.prototype.bell=function(){var O;this._soundBell()&&((O=this._soundService)===null||O===void 0||O.playBellSound()),this._onBell.fire()},z.prototype.resize=function(O,D){O!==this.cols||D!==this.rows?B.prototype.resize.call(this,O,D):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},z.prototype._afterResize=function(O,D){var F,ue;(F=this._charSizeService)===null||F===void 0||F.measure(),(ue=this.viewport)===null||ue===void 0||ue.syncScrollArea(!0)},z.prototype.clear=function(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.clearMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var O=1;O<this.rows;O++)this.buffer.lines.push(this.buffer.getBlankLine(x.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire({position:this.buffer.ydisp,source:0})}},z.prototype.reset=function(){var O,D;this.options.rows=this.rows,this.options.cols=this.cols;var F=this._customKeyEventHandler;this._setup(),B.prototype.reset.call(this),(O=this._selectionService)===null||O===void 0||O.reset(),this._customKeyEventHandler=F,this.refresh(0,this.rows-1),(D=this.viewport)===null||D===void 0||D.syncScrollArea()},z.prototype.clearTextureAtlas=function(){var O;(O=this._renderService)===null||O===void 0||O.clearTextureAtlas()},z.prototype._reportFocus=function(){var O;!((O=this.element)===null||O===void 0)&&O.classList.contains("focus")?this.coreService.triggerDataEvent(v.C0.ESC+"[I"):this.coreService.triggerDataEvent(v.C0.ESC+"[O")},z.prototype._reportWindowsOptions=function(O){if(this._renderService)switch(O){case p.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var D=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),F=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this.coreService.triggerDataEvent(v.C0.ESC+"[4;"+F+";"+D+"t");break;case p.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var ue=this._renderService.dimensions.scaledCellWidth.toFixed(0),fe=this._renderService.dimensions.scaledCellHeight.toFixed(0);this.coreService.triggerDataEvent(v.C0.ESC+"[6;"+fe+";"+ue+"t")}},z.prototype.cancel=function(O,D){if(this.options.cancelEvents||D)return O.preventDefault(),O.stopPropagation(),!1},z.prototype._visualBell=function(){return!1},z.prototype._soundBell=function(){return this.options.bellStyle==="sound"},z}(M.CoreTerminal);i.Terminal=te},9924:(o,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.TimeBasedDebouncer=void 0;var s=function(){function a(l,u){u===void 0&&(u=1e3),this._renderCallback=l,this._debounceThresholdMS=u,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}return a.prototype.dispose=function(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)},a.prototype.refresh=function(l,u,c){var _=this;this._rowCount=c,l=l!==void 0?l:0,u=u!==void 0?u:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,l):l,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,u):u;var v=Date.now();if(v-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=v,this._innerRefresh();else if(!this._additionalRefreshRequested){var p=v-this._lastRefreshMs,g=this._debounceThresholdMS-p;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(function(){_._lastRefreshMs=Date.now(),_._innerRefresh(),_._additionalRefreshRequested=!1,_._refreshTimeoutID=void 0},g)}},a.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var l=Math.max(this._rowStart,0),u=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(l,u)}},a}();i.TimeBasedDebouncer=s},1680:function(o,i,s){var a,l=this&&this.__extends||(a=function(m,d){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var y in h)Object.prototype.hasOwnProperty.call(h,y)&&(f[y]=h[y])},a(m,d)},function(m,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function f(){this.constructor=m}a(m,d),m.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}),u=this&&this.__decorate||function(m,d,f,h){var y,C=arguments.length,w=C<3?d:h===null?h=Object.getOwnPropertyDescriptor(d,f):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(m,d,f,h);else for(var S=m.length-1;S>=0;S--)(y=m[S])&&(w=(C<3?y(w):C>3?y(d,f,w):y(d,f))||w);return C>3&&w&&Object.defineProperty(d,f,w),w},c=this&&this.__param||function(m,d){return function(f,h){d(f,h,m)}};Object.defineProperty(i,"__esModule",{value:!0}),i.Viewport=void 0;var _=s(844),v=s(3656),p=s(4725),g=s(2585),b=function(m){function d(f,h,y,C,w,S,E,k){var x=m.call(this)||this;return x._scrollLines=f,x._viewportElement=h,x._scrollArea=y,x._element=C,x._bufferService=w,x._optionsService=S,x._charSizeService=E,x._renderService=k,x.scrollBarWidth=0,x._currentRowHeight=0,x._currentScaledCellHeight=0,x._lastRecordedBufferLength=0,x._lastRecordedViewportHeight=0,x._lastRecordedBufferHeight=0,x._lastTouchY=0,x._lastScrollTop=0,x._lastHadScrollBar=!1,x._wheelPartialScroll=0,x._refreshAnimationFrame=null,x._ignoreNextScrollEvent=!1,x.scrollBarWidth=x._viewportElement.offsetWidth-x._scrollArea.offsetWidth||15,x._lastHadScrollBar=!0,x.register((0,v.addDisposableDomListener)(x._viewportElement,"scroll",x._onScroll.bind(x))),x._activeBuffer=x._bufferService.buffer,x.register(x._bufferService.buffers.onBufferActivate(function(A){return x._activeBuffer=A.activeBuffer})),x._renderDimensions=x._renderService.dimensions,x.register(x._renderService.onDimensionsChange(function(A){return x._renderDimensions=A})),setTimeout(function(){return x.syncScrollArea()},0),x}return l(d,m),d.prototype.onThemeChange=function(f){this._viewportElement.style.backgroundColor=f.background.css},d.prototype._refresh=function(f){var h=this;if(f)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return h._innerRefresh()}))},d.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._currentScaledCellHeight=this._renderService.dimensions.scaledCellHeight,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var f=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==f&&(this._lastRecordedBufferHeight=f,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var h=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==h&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=h),this._optionsService.rawOptions.scrollback===0?this.scrollBarWidth=0:this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this._lastHadScrollBar=this.scrollBarWidth>0;var y=window.getComputedStyle(this._element),C=parseInt(y.paddingLeft)+parseInt(y.paddingRight);this._viewportElement.style.width=(this._renderService.dimensions.actualCellWidth*this._bufferService.cols+this.scrollBarWidth+(this._lastHadScrollBar?C:0)).toString()+"px",this._refreshAnimationFrame=null},d.prototype.syncScrollArea=function(f){if(f===void 0&&(f=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(f);this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.scaledCellHeight===this._currentScaledCellHeight?this._lastHadScrollBar!==this._optionsService.rawOptions.scrollback>0&&this._refresh(f):this._refresh(f)},d.prototype._onScroll=function(f){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent){if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);var h=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(h)}},d.prototype._bubbleScroll=function(f,h){var y=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(h<0&&this._viewportElement.scrollTop!==0||h>0&&y<this._lastRecordedBufferHeight)||(f.cancelable&&f.preventDefault(),!1)},d.prototype.onWheel=function(f){var h=this._getPixelsScrolled(f);return h!==0&&(this._viewportElement.scrollTop+=h,this._bubbleScroll(f,h))},d.prototype._getPixelsScrolled=function(f){if(f.deltaY===0||f.shiftKey)return 0;var h=this._applyScrollModifier(f.deltaY,f);return f.deltaMode===WheelEvent.DOM_DELTA_LINE?h*=this._currentRowHeight:f.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(h*=this._currentRowHeight*this._bufferService.rows),h},d.prototype.getLinesScrolled=function(f){if(f.deltaY===0||f.shiftKey)return 0;var h=this._applyScrollModifier(f.deltaY,f);return f.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(h/=this._currentRowHeight+0,this._wheelPartialScroll+=h,h=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):f.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(h*=this._bufferService.rows),h},d.prototype._applyScrollModifier=function(f,h){var y=this._optionsService.rawOptions.fastScrollModifier;return y==="alt"&&h.altKey||y==="ctrl"&&h.ctrlKey||y==="shift"&&h.shiftKey?f*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:f*this._optionsService.rawOptions.scrollSensitivity},d.prototype.onTouchStart=function(f){this._lastTouchY=f.touches[0].pageY},d.prototype.onTouchMove=function(f){var h=this._lastTouchY-f.touches[0].pageY;return this._lastTouchY=f.touches[0].pageY,h!==0&&(this._viewportElement.scrollTop+=h,this._bubbleScroll(f,h))},u([c(4,g.IBufferService),c(5,g.IOptionsService),c(6,p.ICharSizeService),c(7,p.IRenderService)],d)}(_.Disposable);i.Viewport=b},2950:function(o,i,s){var a=this&&this.__decorate||function(v,p,g,b){var m,d=arguments.length,f=d<3?p:b===null?b=Object.getOwnPropertyDescriptor(p,g):b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(v,p,g,b);else for(var h=v.length-1;h>=0;h--)(m=v[h])&&(f=(d<3?m(f):d>3?m(p,g,f):m(p,g))||f);return d>3&&f&&Object.defineProperty(p,g,f),f},l=this&&this.__param||function(v,p){return function(g,b){p(g,b,v)}};Object.defineProperty(i,"__esModule",{value:!0}),i.CompositionHelper=void 0;var u=s(4725),c=s(2585),_=function(){function v(p,g,b,m,d,f){this._textarea=p,this._compositionView=g,this._bufferService=b,this._optionsService=m,this._coreService=d,this._renderService=f,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}return Object.defineProperty(v.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),v.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")},v.prototype.compositionupdate=function(p){var g=this;this._compositionView.textContent=p.data,this.updateCompositionElements(),setTimeout(function(){g._compositionPosition.end=g._textarea.value.length},0)},v.prototype.compositionend=function(){this._finalizeComposition(!0)},v.prototype.keydown=function(p){if(this._isComposing||this._isSendingComposition){if(p.keyCode===229||p.keyCode===16||p.keyCode===17||p.keyCode===18)return!1;this._finalizeComposition(!1)}return p.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},v.prototype._finalizeComposition=function(p){var g=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,p){var b={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(g._isSendingComposition){g._isSendingComposition=!1;var d;b.start+=g._dataAlreadySent.length,(d=g._isComposing?g._textarea.value.substring(b.start,b.end):g._textarea.value.substring(b.start)).length>0&&g._coreService.triggerDataEvent(d,!0)}},0)}else{this._isSendingComposition=!1;var m=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(m,!0)}},v.prototype._handleAnyTextareaChanges=function(){var p=this,g=this._textarea.value;setTimeout(function(){if(!p._isComposing){var b=p._textarea.value.replace(g,"");b.length>0&&(p._dataAlreadySent=b,p._coreService.triggerDataEvent(b,!0))}},0)},v.prototype.updateCompositionElements=function(p){var g=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var b=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),m=this._renderService.dimensions.actualCellHeight,d=this._bufferService.buffer.y*this._renderService.dimensions.actualCellHeight,f=b*this._renderService.dimensions.actualCellWidth;this._compositionView.style.left=f+"px",this._compositionView.style.top=d+"px",this._compositionView.style.height=m+"px",this._compositionView.style.lineHeight=m+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var h=this._compositionView.getBoundingClientRect();this._textarea.style.left=f+"px",this._textarea.style.top=d+"px",this._textarea.style.width=Math.max(h.width,1)+"px",this._textarea.style.height=Math.max(h.height,1)+"px",this._textarea.style.lineHeight=h.height+"px"}p||setTimeout(function(){return g.updateCompositionElements(!0)},0)}},a([l(2,c.IBufferService),l(3,c.IOptionsService),l(4,c.ICoreService),l(5,u.IRenderService)],v)}();i.CompositionHelper=_},9806:(o,i)=>{function s(a,l){var u=l.getBoundingClientRect();return[a.clientX-u.left,a.clientY-u.top]}Object.defineProperty(i,"__esModule",{value:!0}),i.getRawByteCoords=i.getCoords=i.getCoordsRelativeToElement=void 0,i.getCoordsRelativeToElement=s,i.getCoords=function(a,l,u,c,_,v,p,g){if(_){var b=s(a,l);if(b)return b[0]=Math.ceil((b[0]+(g?v/2:0))/v),b[1]=Math.ceil(b[1]/p),b[0]=Math.min(Math.max(b[0],1),u+(g?1:0)),b[1]=Math.min(Math.max(b[1],1),c),b}},i.getRawByteCoords=function(a){if(a)return{x:a[0]+32,y:a[1]+32}}},9504:(o,i,s)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.moveToCellSequence=void 0;var a=s(2584);function l(g,b,m,d){var f=g-u(m,g),h=b-u(m,b),y=Math.abs(f-h)-function(C,w,S){for(var E=0,k=C-u(S,C),x=w-u(S,w),A=0;A<Math.abs(k-x);A++){var L=c(C,w)==="A"?-1:1,T=S.buffer.lines.get(k+L*A);T!=null&&T.isWrapped&&E++}return E}(g,b,m);return p(y,v(c(g,b),d))}function u(g,b){for(var m=0,d=g.buffer.lines.get(b),f=d==null?void 0:d.isWrapped;f&&b>=0&&b<g.rows;)m++,f=(d=g.buffer.lines.get(--b))==null?void 0:d.isWrapped;return m}function c(g,b){return g>b?"A":"B"}function _(g,b,m,d,f,h){for(var y=g,C=b,w="";y!==m||C!==d;)y+=f?1:-1,f&&y>h.cols-1?(w+=h.buffer.translateBufferLineToString(C,!1,g,y),y=0,g=0,C++):!f&&y<0&&(w+=h.buffer.translateBufferLineToString(C,!1,0,g+1),g=y=h.cols-1,C--);return w+h.buffer.translateBufferLineToString(C,!1,g,y)}function v(g,b){var m=b?"O":"[";return a.C0.ESC+m+g}function p(g,b){g=Math.floor(g);for(var m="",d=0;d<g;d++)m+=b;return m}i.moveToCellSequence=function(g,b,m,d){var f,h=m.buffer.x,y=m.buffer.y;if(!m.buffer.hasScrollback)return function(w,S,E,k,x,A){return l(S,k,x,A).length===0?"":p(_(w,S,w,S-u(x,S),!1,x).length,v("D",A))}(h,y,0,b,m,d)+l(y,b,m,d)+function(w,S,E,k,x,A){var L;L=l(S,k,x,A).length>0?k-u(x,k):S;var T=k,H=function(P,R,I,M,$,V){var U;return U=l(I,M,$,V).length>0?M-u($,M):R,P<I&&U<=M||P>=I&&U<M?"C":"D"}(w,S,E,k,x,A);return p(_(w,L,E,T,H==="C",x).length,v(H,A))}(h,y,g,b,m,d);if(y===b)return f=h>g?"D":"C",p(Math.abs(h-g),v(f,d));f=y>b?"D":"C";var C=Math.abs(y-b);return p(function(w,S){return S.cols-w}(y>b?g:h,m)+(C-1)*m.cols+1+((y>b?h:g)-1),v(f,d))}},4389:function(o,i,s){var a=this&&this.__assign||function(){return a=Object.assign||function(m){for(var d,f=1,h=arguments.length;f<h;f++)for(var y in d=arguments[f])Object.prototype.hasOwnProperty.call(d,y)&&(m[y]=d[y]);return m},a.apply(this,arguments)};Object.defineProperty(i,"__esModule",{value:!0}),i.Terminal=void 0;var l=s(3236),u=s(9042),c=s(7975),_=s(7090),v=s(5741),p=s(8285),g=["cols","rows"],b=function(){function m(d){var f=this;this._core=new l.Terminal(d),this._addonManager=new v.AddonManager,this._publicOptions=a({},this._core.options);var h=function(S){return f._core.options[S]},y=function(S,E){f._checkReadonlyOptions(S),f._core.options[S]=E};for(var C in this._core.options){var w={get:h.bind(this,C),set:y.bind(this,C)};Object.defineProperty(this._publicOptions,C,w)}}return m.prototype._checkReadonlyOptions=function(d){if(g.includes(d))throw new Error('Option "'+d+'" can only be set in the constructor')},m.prototype._checkProposedApi=function(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(m.prototype,"onBell",{get:function(){return this._core.onBell},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new c.ParserApi(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"unicode",{get:function(){return this._checkProposedApi(),new _.UnicodeApi(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"buffer",{get:function(){return this._checkProposedApi(),this._buffer||(this._buffer=new p.BufferNamespaceApi(this._core)),this._buffer},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"modes",{get:function(){var d=this._core.coreService.decPrivateModes,f="none";switch(this._core.coreMouseService.activeProtocol){case"X10":f="x10";break;case"VT200":f="vt200";break;case"DRAG":f="drag";break;case"ANY":f="any"}return{applicationCursorKeysMode:d.applicationCursorKeys,applicationKeypadMode:d.applicationKeypad,bracketedPasteMode:d.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:f,originMode:d.origin,reverseWraparoundMode:d.reverseWraparound,sendFocusMode:d.sendFocus,wraparoundMode:d.wraparound}},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"options",{get:function(){return this._publicOptions},set:function(d){for(var f in d)this._publicOptions[f]=d[f]},enumerable:!1,configurable:!0}),m.prototype.blur=function(){this._core.blur()},m.prototype.focus=function(){this._core.focus()},m.prototype.resize=function(d,f){this._verifyIntegers(d,f),this._core.resize(d,f)},m.prototype.open=function(d){this._core.open(d)},m.prototype.attachCustomKeyEventHandler=function(d){this._core.attachCustomKeyEventHandler(d)},m.prototype.registerLinkMatcher=function(d,f,h){return this._checkProposedApi(),this._core.registerLinkMatcher(d,f,h)},m.prototype.deregisterLinkMatcher=function(d){this._checkProposedApi(),this._core.deregisterLinkMatcher(d)},m.prototype.registerLinkProvider=function(d){return this._checkProposedApi(),this._core.registerLinkProvider(d)},m.prototype.registerCharacterJoiner=function(d){return this._checkProposedApi(),this._core.registerCharacterJoiner(d)},m.prototype.deregisterCharacterJoiner=function(d){this._checkProposedApi(),this._core.deregisterCharacterJoiner(d)},m.prototype.registerMarker=function(d){return d===void 0&&(d=0),this._checkProposedApi(),this._verifyIntegers(d),this._core.addMarker(d)},m.prototype.registerDecoration=function(d){var f,h,y;return this._checkProposedApi(),this._verifyPositiveIntegers((f=d.x)!==null&&f!==void 0?f:0,(h=d.width)!==null&&h!==void 0?h:0,(y=d.height)!==null&&y!==void 0?y:0),this._core.registerDecoration(d)},m.prototype.addMarker=function(d){return this.registerMarker(d)},m.prototype.hasSelection=function(){return this._core.hasSelection()},m.prototype.select=function(d,f,h){this._verifyIntegers(d,f,h),this._core.select(d,f,h)},m.prototype.getSelection=function(){return this._core.getSelection()},m.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},m.prototype.clearSelection=function(){this._core.clearSelection()},m.prototype.selectAll=function(){this._core.selectAll()},m.prototype.selectLines=function(d,f){this._verifyIntegers(d,f),this._core.selectLines(d,f)},m.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},m.prototype.scrollLines=function(d){this._verifyIntegers(d),this._core.scrollLines(d)},m.prototype.scrollPages=function(d){this._verifyIntegers(d),this._core.scrollPages(d)},m.prototype.scrollToTop=function(){this._core.scrollToTop()},m.prototype.scrollToBottom=function(){this._core.scrollToBottom()},m.prototype.scrollToLine=function(d){this._verifyIntegers(d),this._core.scrollToLine(d)},m.prototype.clear=function(){this._core.clear()},m.prototype.write=function(d,f){this._core.write(d,f)},m.prototype.writeUtf8=function(d,f){this._core.write(d,f)},m.prototype.writeln=function(d,f){this._core.write(d),this._core.write(`\r
`,f)},m.prototype.paste=function(d){this._core.paste(d)},m.prototype.getOption=function(d){return this._core.optionsService.getOption(d)},m.prototype.setOption=function(d,f){this._checkReadonlyOptions(d),this._core.optionsService.setOption(d,f)},m.prototype.refresh=function(d,f){this._verifyIntegers(d,f),this._core.refresh(d,f)},m.prototype.reset=function(){this._core.reset()},m.prototype.clearTextureAtlas=function(){this._core.clearTextureAtlas()},m.prototype.loadAddon=function(d){return this._addonManager.loadAddon(this,d)},Object.defineProperty(m,"strings",{get:function(){return u},enumerable:!1,configurable:!0}),m.prototype._verifyIntegers=function(){for(var d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];for(var h=0,y=d;h<y.length;h++){var C=y[h];if(C===1/0||isNaN(C)||C%1!=0)throw new Error("This API only accepts integers")}},m.prototype._verifyPositiveIntegers=function(){for(var d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];for(var h=0,y=d;h<y.length;h++){var C=y[h];if(C&&(C===1/0||isNaN(C)||C%1!=0||C<0))throw new Error("This API only accepts positive integers")}},m}();i.Terminal=b},1546:(o,i,s)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.BaseRenderLayer=void 0;var a=s(643),l=s(8803),u=s(1420),c=s(3734),_=s(1752),v=s(4774),p=s(9631),g=s(8978),b=function(){function m(d,f,h,y,C,w,S,E){this._container=d,this._alpha=y,this._colors=C,this._rendererId=w,this._bufferService=S,this._optionsService=E,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+f+"-layer"),this._canvas.style.zIndex=h.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return m.prototype.dispose=function(){var d;(0,p.removeElementFromParent)(this._canvas),(d=this._charAtlas)===null||d===void 0||d.dispose()},m.prototype._initCanvas=function(){this._ctx=(0,_.throwIfFalsy)(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},m.prototype.onOptionsChanged=function(){},m.prototype.onBlur=function(){},m.prototype.onFocus=function(){},m.prototype.onCursorMove=function(){},m.prototype.onGridChanged=function(d,f){},m.prototype.onSelectionChanged=function(d,f,h){},m.prototype.setColors=function(d){this._refreshCharAtlas(d)},m.prototype._setTransparency=function(d){if(d!==this._alpha){var f=this._canvas;this._alpha=d,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,f),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},m.prototype._refreshCharAtlas=function(d){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=(0,u.acquireCharAtlas)(this._optionsService.rawOptions,this._rendererId,d,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},m.prototype.resize=function(d){this._scaledCellWidth=d.scaledCellWidth,this._scaledCellHeight=d.scaledCellHeight,this._scaledCharWidth=d.scaledCharWidth,this._scaledCharHeight=d.scaledCharHeight,this._scaledCharLeft=d.scaledCharLeft,this._scaledCharTop=d.scaledCharTop,this._canvas.width=d.scaledCanvasWidth,this._canvas.height=d.scaledCanvasHeight,this._canvas.style.width=d.canvasWidth+"px",this._canvas.style.height=d.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},m.prototype.clearTextureAtlas=function(){var d;(d=this._charAtlas)===null||d===void 0||d.clear()},m.prototype._fillCells=function(d,f,h,y){this._ctx.fillRect(d*this._scaledCellWidth,f*this._scaledCellHeight,h*this._scaledCellWidth,y*this._scaledCellHeight)},m.prototype._fillMiddleLineAtCells=function(d,f,h){h===void 0&&(h=1);var y=Math.ceil(.5*this._scaledCellHeight);this._ctx.fillRect(d*this._scaledCellWidth,(f+1)*this._scaledCellHeight-y-window.devicePixelRatio,h*this._scaledCellWidth,window.devicePixelRatio)},m.prototype._fillBottomLineAtCells=function(d,f,h){h===void 0&&(h=1),this._ctx.fillRect(d*this._scaledCellWidth,(f+1)*this._scaledCellHeight-window.devicePixelRatio-1,h*this._scaledCellWidth,window.devicePixelRatio)},m.prototype._fillLeftLineAtCell=function(d,f,h){this._ctx.fillRect(d*this._scaledCellWidth,f*this._scaledCellHeight,window.devicePixelRatio*h,this._scaledCellHeight)},m.prototype._strokeRectAtCell=function(d,f,h,y){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(d*this._scaledCellWidth+window.devicePixelRatio/2,f*this._scaledCellHeight+window.devicePixelRatio/2,h*this._scaledCellWidth-window.devicePixelRatio,y*this._scaledCellHeight-window.devicePixelRatio)},m.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},m.prototype._clearCells=function(d,f,h,y){this._alpha?this._ctx.clearRect(d*this._scaledCellWidth,f*this._scaledCellHeight,h*this._scaledCellWidth,y*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(d*this._scaledCellWidth,f*this._scaledCellHeight,h*this._scaledCellWidth,y*this._scaledCellHeight))},m.prototype._fillCharTrueColor=function(d,f,h){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline=l.TEXT_BASELINE,this._clipRow(h);var y=!1;this._optionsService.rawOptions.customGlyphs!==!1&&(y=(0,g.tryDrawCustomChar)(this._ctx,d.getChars(),f*this._scaledCellWidth,h*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),y||this._ctx.fillText(d.getChars(),f*this._scaledCellWidth+this._scaledCharLeft,h*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight)},m.prototype._drawChars=function(d,f,h){var y,C,w,S=this._getContrastColor(d);S||d.isFgRGB()||d.isBgRGB()?this._drawUncachedChars(d,f,h,S):(d.isInverse()?(C=d.isBgDefault()?l.INVERTED_DEFAULT_COLOR:d.getBgColor(),w=d.isFgDefault()?l.INVERTED_DEFAULT_COLOR:d.getFgColor()):(w=d.isBgDefault()?a.DEFAULT_COLOR:d.getBgColor(),C=d.isFgDefault()?a.DEFAULT_COLOR:d.getFgColor()),C+=this._optionsService.rawOptions.drawBoldTextInBrightColors&&d.isBold()&&C<8?8:0,this._currentGlyphIdentifier.chars=d.getChars()||a.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=d.getCode()||a.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=w,this._currentGlyphIdentifier.fg=C,this._currentGlyphIdentifier.bold=!!d.isBold(),this._currentGlyphIdentifier.dim=!!d.isDim(),this._currentGlyphIdentifier.italic=!!d.isItalic(),!((y=this._charAtlas)===null||y===void 0)&&y.draw(this._ctx,this._currentGlyphIdentifier,f*this._scaledCellWidth+this._scaledCharLeft,h*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(d,f,h))},m.prototype._drawUncachedChars=function(d,f,h,y){if(this._ctx.save(),this._ctx.font=this._getFont(!!d.isBold(),!!d.isItalic()),this._ctx.textBaseline=l.TEXT_BASELINE,d.isInverse())if(y)this._ctx.fillStyle=y.css;else if(d.isBgDefault())this._ctx.fillStyle=v.color.opaque(this._colors.background).css;else if(d.isBgRGB())this._ctx.fillStyle="rgb("+c.AttributeData.toColorRGB(d.getBgColor()).join(",")+")";else{var C=d.getBgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&d.isBold()&&C<8&&(C+=8),this._ctx.fillStyle=this._colors.ansi[C].css}else if(y)this._ctx.fillStyle=y.css;else if(d.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(d.isFgRGB())this._ctx.fillStyle="rgb("+c.AttributeData.toColorRGB(d.getFgColor()).join(",")+")";else{var w=d.getFgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&d.isBold()&&w<8&&(w+=8),this._ctx.fillStyle=this._colors.ansi[w].css}this._clipRow(h),d.isDim()&&(this._ctx.globalAlpha=l.DIM_OPACITY);var S=!1;this._optionsService.rawOptions.customGlyphs!==!1&&(S=(0,g.tryDrawCustomChar)(this._ctx,d.getChars(),f*this._scaledCellWidth,h*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),S||this._ctx.fillText(d.getChars(),f*this._scaledCellWidth+this._scaledCharLeft,h*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight),this._ctx.restore()},m.prototype._clipRow=function(d){this._ctx.beginPath(),this._ctx.rect(0,d*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},m.prototype._getFont=function(d,f){return(f?"italic":"")+" "+(d?this._optionsService.rawOptions.fontWeightBold:this._optionsService.rawOptions.fontWeight)+" "+this._optionsService.rawOptions.fontSize*window.devicePixelRatio+"px "+this._optionsService.rawOptions.fontFamily},m.prototype._getContrastColor=function(d){if(this._optionsService.rawOptions.minimumContrastRatio!==1){var f=this._colors.contrastCache.getColor(d.bg,d.fg);if(f!==void 0)return f||void 0;var h=d.getFgColor(),y=d.getFgColorMode(),C=d.getBgColor(),w=d.getBgColorMode(),S=!!d.isInverse(),E=!!d.isInverse();if(S){var k=h;h=C,C=k;var x=y;y=w,w=x}var A=this._resolveBackgroundRgba(w,C,S),L=this._resolveForegroundRgba(y,h,S,E),T=v.rgba.ensureContrastRatio(A,L,this._optionsService.rawOptions.minimumContrastRatio);if(T){var H={css:v.channels.toCss(T>>24&255,T>>16&255,T>>8&255),rgba:T};return this._colors.contrastCache.setColor(d.bg,d.fg,H),H}this._colors.contrastCache.setColor(d.bg,d.fg,null)}},m.prototype._resolveBackgroundRgba=function(d,f,h){switch(d){case 16777216:case 33554432:return this._colors.ansi[f].rgba;case 50331648:return f<<8;default:return h?this._colors.foreground.rgba:this._colors.background.rgba}},m.prototype._resolveForegroundRgba=function(d,f,h,y){switch(d){case 16777216:case 33554432:return this._optionsService.rawOptions.drawBoldTextInBrightColors&&y&&f<8&&(f+=8),this._colors.ansi[f].rgba;case 50331648:return f<<8;default:return h?this._colors.background.rgba:this._colors.foreground.rgba}},m}();i.BaseRenderLayer=b},2512:function(o,i,s){var a,l=this&&this.__extends||(a=function(f,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,C){y.__proto__=C}||function(y,C){for(var w in C)Object.prototype.hasOwnProperty.call(C,w)&&(y[w]=C[w])},a(f,h)},function(f,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");function y(){this.constructor=f}a(f,h),f.prototype=h===null?Object.create(h):(y.prototype=h.prototype,new y)}),u=this&&this.__decorate||function(f,h,y,C){var w,S=arguments.length,E=S<3?h:C===null?C=Object.getOwnPropertyDescriptor(h,y):C;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(f,h,y,C);else for(var k=f.length-1;k>=0;k--)(w=f[k])&&(E=(S<3?w(E):S>3?w(h,y,E):w(h,y))||E);return S>3&&E&&Object.defineProperty(h,y,E),E},c=this&&this.__param||function(f,h){return function(y,C){h(y,C,f)}};Object.defineProperty(i,"__esModule",{value:!0}),i.CursorRenderLayer=void 0;var _=s(1546),v=s(511),p=s(2585),g=s(4725),b=600,m=function(f){function h(y,C,w,S,E,k,x,A,L){var T=f.call(this,y,"cursor",C,!0,w,S,k,x)||this;return T._onRequestRedraw=E,T._coreService=A,T._coreBrowserService=L,T._cell=new v.CellData,T._state={x:0,y:0,isFocused:!1,style:"",width:0},T._cursorRenderers={bar:T._renderBarCursor.bind(T),block:T._renderBlockCursor.bind(T),underline:T._renderUnderlineCursor.bind(T)},T}return l(h,f),h.prototype.dispose=function(){this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0),f.prototype.dispose.call(this)},h.prototype.resize=function(y){f.prototype.resize.call(this,y),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},h.prototype.reset=function(){var y;this._clearCursor(),(y=this._cursorBlinkStateManager)===null||y===void 0||y.restartBlinkAnimation(),this.onOptionsChanged()},h.prototype.onBlur=function(){var y;(y=this._cursorBlinkStateManager)===null||y===void 0||y.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},h.prototype.onFocus=function(){var y;(y=this._cursorBlinkStateManager)===null||y===void 0||y.resume(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},h.prototype.onOptionsChanged=function(){var y,C=this;this._optionsService.rawOptions.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new d(this._coreBrowserService.isFocused,function(){C._render(!0)})):((y=this._cursorBlinkStateManager)===null||y===void 0||y.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},h.prototype.onCursorMove=function(){var y;(y=this._cursorBlinkStateManager)===null||y===void 0||y.restartBlinkAnimation()},h.prototype.onGridChanged=function(y,C){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},h.prototype._render=function(y){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var C=this._bufferService.buffer.ybase+this._bufferService.buffer.y,w=C-this._bufferService.buffer.ydisp;if(w<0||w>=this._bufferService.rows)this._clearCursor();else{var S=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(C).loadCell(S,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var E=this._optionsService.rawOptions.cursorStyle;return E&&E!=="block"?this._cursorRenderers[E](S,w,this._cell):this._renderBlurCursor(S,w,this._cell),this._ctx.restore(),this._state.x=S,this._state.y=w,this._state.isFocused=!1,this._state.style=E,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===S&&this._state.y===w&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.rawOptions.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.rawOptions.cursorStyle||"block"](S,w,this._cell),this._ctx.restore(),this._state.x=S,this._state.y=w,this._state.isFocused=!1,this._state.style=this._optionsService.rawOptions.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},h.prototype._clearCursor=function(){this._state&&(window.devicePixelRatio<1?this._clearAll():this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},h.prototype._renderBarCursor=function(y,C,w){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(y,C,this._optionsService.rawOptions.cursorWidth),this._ctx.restore()},h.prototype._renderBlockCursor=function(y,C,w){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(y,C,w.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(w,y,C),this._ctx.restore()},h.prototype._renderUnderlineCursor=function(y,C,w){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(y,C),this._ctx.restore()},h.prototype._renderBlurCursor=function(y,C,w){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(y,C,w.getWidth(),1),this._ctx.restore()},u([c(5,p.IBufferService),c(6,p.IOptionsService),c(7,p.ICoreService),c(8,g.ICoreBrowserService)],h)}(_.BaseRenderLayer);i.CursorRenderLayer=m;var d=function(){function f(h,y){this._renderCallback=y,this.isCursorVisible=!0,h&&this._restartInterval()}return Object.defineProperty(f.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),f.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},f.prototype.restartBlinkAnimation=function(){var h=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){h._renderCallback(),h._animationFrame=void 0})))},f.prototype._restartInterval=function(h){var y=this;h===void 0&&(h=b),this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout=window.setTimeout(function(){if(y._animationTimeRestarted){var C=b-(Date.now()-y._animationTimeRestarted);if(y._animationTimeRestarted=void 0,C>0)return void y._restartInterval(C)}y.isCursorVisible=!1,y._animationFrame=window.requestAnimationFrame(function(){y._renderCallback(),y._animationFrame=void 0}),y._blinkInterval=window.setInterval(function(){if(y._animationTimeRestarted){var w=b-(Date.now()-y._animationTimeRestarted);return y._animationTimeRestarted=void 0,void y._restartInterval(w)}y.isCursorVisible=!y.isCursorVisible,y._animationFrame=window.requestAnimationFrame(function(){y._renderCallback(),y._animationFrame=void 0})},b)},h)},f.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},f.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},f}()},8978:(o,i,s)=>{var a,l,u,c,_,v,p,g,b,m,d,f,h,y,C,w,S,E,k,x,A,L,T,H,P,R,I,M,$,V,U,Y,Z,te,B,z,O,D,F,ue,fe,ge,j,q,ie,ee,ae,pe,be,he,_e,ce,re,ve,Ae,Le,$e,ye,xe,Re,Me,Ke,pt,vt,Ht,st,At,Sr,kn,Mr,Tn,ii,Zi,eo,to,oi,ro,no,si,io,ai,Rt,cr,li,oo,aa,la,ca,ua,fa,da,ha,pa,va,ga,ma,_a,ya,ba,Ca,wa,Sa,xa,Ea,Aa,ka,Ta,La,Ra,Ba,Oa,Ia,$c,jc,Uc,Wc,zc,qc,Vc,Kc,Gc,Yc,Xc,Qc,Jc,Zc,eu,tu;Object.defineProperty(i,"__esModule",{value:!0}),i.tryDrawCustomChar=i.boxDrawingDefinitions=i.blockElementDefinitions=void 0;var ah=s(1752);i.blockElementDefinitions={"\u2580":[{x:0,y:0,w:8,h:4}],"\u2581":[{x:0,y:7,w:8,h:1}],"\u2582":[{x:0,y:6,w:8,h:2}],"\u2583":[{x:0,y:5,w:8,h:3}],"\u2584":[{x:0,y:4,w:8,h:4}],"\u2585":[{x:0,y:3,w:8,h:5}],"\u2586":[{x:0,y:2,w:8,h:6}],"\u2587":[{x:0,y:1,w:8,h:7}],"\u2588":[{x:0,y:0,w:8,h:8}],"\u2589":[{x:0,y:0,w:7,h:8}],"\u258A":[{x:0,y:0,w:6,h:8}],"\u258B":[{x:0,y:0,w:5,h:8}],"\u258C":[{x:0,y:0,w:4,h:8}],"\u258D":[{x:0,y:0,w:3,h:8}],"\u258E":[{x:0,y:0,w:2,h:8}],"\u258F":[{x:0,y:0,w:1,h:8}],"\u2590":[{x:4,y:0,w:4,h:8}],"\u2594":[{x:0,y:0,w:9,h:1}],"\u2595":[{x:7,y:0,w:1,h:8}],"\u2596":[{x:0,y:4,w:4,h:4}],"\u2597":[{x:4,y:4,w:4,h:4}],"\u2598":[{x:0,y:0,w:4,h:4}],"\u2599":[{x:0,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\u259A":[{x:0,y:0,w:4,h:4},{x:4,y:4,w:4,h:4}],"\u259B":[{x:0,y:0,w:4,h:8},{x:0,y:0,w:4,h:8}],"\u259C":[{x:0,y:0,w:8,h:4},{x:4,y:0,w:4,h:8}],"\u259D":[{x:4,y:0,w:4,h:4}],"\u259E":[{x:4,y:0,w:4,h:4},{x:0,y:4,w:4,h:4}],"\u259F":[{x:4,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"\u{1FB70}":[{x:1,y:0,w:1,h:8}],"\u{1FB71}":[{x:2,y:0,w:1,h:8}],"\u{1FB72}":[{x:3,y:0,w:1,h:8}],"\u{1FB73}":[{x:4,y:0,w:1,h:8}],"\u{1FB74}":[{x:5,y:0,w:1,h:8}],"\u{1FB75}":[{x:6,y:0,w:1,h:8}],"\u{1FB76}":[{x:0,y:1,w:8,h:1}],"\u{1FB77}":[{x:0,y:2,w:8,h:1}],"\u{1FB78}":[{x:0,y:3,w:8,h:1}],"\u{1FB79}":[{x:0,y:4,w:8,h:1}],"\u{1FB7A}":[{x:0,y:5,w:8,h:1}],"\u{1FB7B}":[{x:0,y:6,w:8,h:1}],"\u{1FB7C}":[{x:0,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\u{1FB7D}":[{x:0,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\u{1FB7E}":[{x:7,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"\u{1FB7F}":[{x:7,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"\u{1FB80}":[{x:0,y:0,w:8,h:1},{x:0,y:7,w:8,h:1}],"\u{1FB81}":[{x:0,y:0,w:8,h:1},{x:0,y:2,w:8,h:1},{x:0,y:4,w:8,h:1},{x:0,y:7,w:8,h:1}],"\u{1FB82}":[{x:0,y:0,w:8,h:2}],"\u{1FB83}":[{x:0,y:0,w:8,h:3}],"\u{1FB84}":[{x:0,y:0,w:8,h:5}],"\u{1FB85}":[{x:0,y:0,w:8,h:6}],"\u{1FB86}":[{x:0,y:0,w:8,h:7}],"\u{1FB87}":[{x:6,y:0,w:2,h:8}],"\u{1FB88}":[{x:5,y:0,w:3,h:8}],"\u{1FB89}":[{x:3,y:0,w:5,h:8}],"\u{1FB8A}":[{x:2,y:0,w:6,h:8}],"\u{1FB8B}":[{x:1,y:0,w:7,h:8}],"\u{1FB95}":[{x:0,y:0,w:2,h:2},{x:4,y:0,w:2,h:2},{x:2,y:2,w:2,h:2},{x:6,y:2,w:2,h:2},{x:0,y:4,w:2,h:2},{x:4,y:4,w:2,h:2},{x:2,y:6,w:2,h:2},{x:6,y:6,w:2,h:2}],"\u{1FB96}":[{x:2,y:0,w:2,h:2},{x:6,y:0,w:2,h:2},{x:0,y:2,w:2,h:2},{x:4,y:2,w:2,h:2},{x:2,y:4,w:2,h:2},{x:6,y:4,w:2,h:2},{x:0,y:6,w:2,h:2},{x:4,y:6,w:2,h:2}],"\u{1FB97}":[{x:0,y:2,w:8,h:2},{x:0,y:6,w:8,h:2}]};var n1={"\u2591":[[1,0,0,0],[0,0,0,0],[0,0,1,0],[0,0,0,0]],"\u2592":[[1,0],[0,0],[0,1],[0,0]],"\u2593":[[0,1],[1,1],[1,0],[1,1]]};i.boxDrawingDefinitions={"\u2500":(a={},a[1]="M0,.5 L1,.5",a),"\u2501":(l={},l[3]="M0,.5 L1,.5",l),"\u2502":(u={},u[1]="M.5,0 L.5,1",u),"\u2503":(c={},c[3]="M.5,0 L.5,1",c),"\u250C":(_={},_[1]="M0.5,1 L.5,.5 L1,.5",_),"\u250F":(v={},v[3]="M0.5,1 L.5,.5 L1,.5",v),"\u2510":(p={},p[1]="M0,.5 L.5,.5 L.5,1",p),"\u2513":(g={},g[3]="M0,.5 L.5,.5 L.5,1",g),"\u2514":(b={},b[1]="M.5,0 L.5,.5 L1,.5",b),"\u2517":(m={},m[3]="M.5,0 L.5,.5 L1,.5",m),"\u2518":(d={},d[1]="M.5,0 L.5,.5 L0,.5",d),"\u251B":(f={},f[3]="M.5,0 L.5,.5 L0,.5",f),"\u251C":(h={},h[1]="M.5,0 L.5,1 M.5,.5 L1,.5",h),"\u2523":(y={},y[3]="M.5,0 L.5,1 M.5,.5 L1,.5",y),"\u2524":(C={},C[1]="M.5,0 L.5,1 M.5,.5 L0,.5",C),"\u252B":(w={},w[3]="M.5,0 L.5,1 M.5,.5 L0,.5",w),"\u252C":(S={},S[1]="M0,.5 L1,.5 M.5,.5 L.5,1",S),"\u2533":(E={},E[3]="M0,.5 L1,.5 M.5,.5 L.5,1",E),"\u2534":(k={},k[1]="M0,.5 L1,.5 M.5,.5 L.5,0",k),"\u253B":(x={},x[3]="M0,.5 L1,.5 M.5,.5 L.5,0",x),"\u253C":(A={},A[1]="M0,.5 L1,.5 M.5,0 L.5,1",A),"\u254B":(L={},L[3]="M0,.5 L1,.5 M.5,0 L.5,1",L),"\u2574":(T={},T[1]="M.5,.5 L0,.5",T),"\u2578":(H={},H[3]="M.5,.5 L0,.5",H),"\u2575":(P={},P[1]="M.5,.5 L.5,0",P),"\u2579":(R={},R[3]="M.5,.5 L.5,0",R),"\u2576":(I={},I[1]="M.5,.5 L1,.5",I),"\u257A":(M={},M[3]="M.5,.5 L1,.5",M),"\u2577":($={},$[1]="M.5,.5 L.5,1",$),"\u257B":(V={},V[3]="M.5,.5 L.5,1",V),"\u2550":(U={},U[1]=function(le,oe){return"M0,"+(.5-oe)+" L1,"+(.5-oe)+" M0,"+(.5+oe)+" L1,"+(.5+oe)},U),"\u2551":(Y={},Y[1]=function(le,oe){return"M"+(.5-le)+",0 L"+(.5-le)+",1 M"+(.5+le)+",0 L"+(.5+le)+",1"},Y),"\u2552":(Z={},Z[1]=function(le,oe){return"M.5,1 L.5,"+(.5-oe)+" L1,"+(.5-oe)+" M.5,"+(.5+oe)+" L1,"+(.5+oe)},Z),"\u2553":(te={},te[1]=function(le,oe){return"M"+(.5-le)+",1 L"+(.5-le)+",.5 L1,.5 M"+(.5+le)+",.5 L"+(.5+le)+",1"},te),"\u2554":(B={},B[1]=function(le,oe){return"M1,"+(.5-oe)+" L"+(.5-le)+","+(.5-oe)+" L"+(.5-le)+",1 M1,"+(.5+oe)+" L"+(.5+le)+","+(.5+oe)+" L"+(.5+le)+",1"},B),"\u2555":(z={},z[1]=function(le,oe){return"M0,"+(.5-oe)+" L.5,"+(.5-oe)+" L.5,1 M0,"+(.5+oe)+" L.5,"+(.5+oe)},z),"\u2556":(O={},O[1]=function(le,oe){return"M"+(.5+le)+",1 L"+(.5+le)+",.5 L0,.5 M"+(.5-le)+",.5 L"+(.5-le)+",1"},O),"\u2557":(D={},D[1]=function(le,oe){return"M0,"+(.5+oe)+" L"+(.5-le)+","+(.5+oe)+" L"+(.5-le)+",1 M0,"+(.5-oe)+" L"+(.5+le)+","+(.5-oe)+" L"+(.5+le)+",1"},D),"\u2558":(F={},F[1]=function(le,oe){return"M.5,0 L.5,"+(.5+oe)+" L1,"+(.5+oe)+" M.5,"+(.5-oe)+" L1,"+(.5-oe)},F),"\u2559":(ue={},ue[1]=function(le,oe){return"M1,.5 L"+(.5-le)+",.5 L"+(.5-le)+",0 M"+(.5+le)+",.5 L"+(.5+le)+",0"},ue),"\u255A":(fe={},fe[1]=function(le,oe){return"M1,"+(.5-oe)+" L"+(.5+le)+","+(.5-oe)+" L"+(.5+le)+",0 M1,"+(.5+oe)+" L"+(.5-le)+","+(.5+oe)+" L"+(.5-le)+",0"},fe),"\u255B":(ge={},ge[1]=function(le,oe){return"M0,"+(.5+oe)+" L.5,"+(.5+oe)+" L.5,0 M0,"+(.5-oe)+" L.5,"+(.5-oe)},ge),"\u255C":(j={},j[1]=function(le,oe){return"M0,.5 L"+(.5+le)+",.5 L"+(.5+le)+",0 M"+(.5-le)+",.5 L"+(.5-le)+",0"},j),"\u255D":(q={},q[1]=function(le,oe){return"M0,"+(.5-oe)+" L"+(.5-le)+","+(.5-oe)+" L"+(.5-le)+",0 M0,"+(.5+oe)+" L"+(.5+le)+","+(.5+oe)+" L"+(.5+le)+",0"},q),"\u255E":(ie={},ie[1]=function(le,oe){return"M.5,0 L.5,1 M.5,"+(.5-oe)+" L1,"+(.5-oe)+" M.5,"+(.5+oe)+" L1,"+(.5+oe)},ie),"\u255F":(ee={},ee[1]=function(le,oe){return"M"+(.5-le)+",0 L"+(.5-le)+",1 M"+(.5+le)+",0 L"+(.5+le)+",1 M"+(.5+le)+",.5 L1,.5"},ee),"\u2560":(ae={},ae[1]=function(le,oe){return"M"+(.5-le)+",0 L"+(.5-le)+",1 M1,"+(.5+oe)+" L"+(.5+le)+","+(.5+oe)+" L"+(.5+le)+",1 M1,"+(.5-oe)+" L"+(.5+le)+","+(.5-oe)+" L"+(.5+le)+",0"},ae),"\u2561":(pe={},pe[1]=function(le,oe){return"M.5,0 L.5,1 M0,"+(.5-oe)+" L.5,"+(.5-oe)+" M0,"+(.5+oe)+" L.5,"+(.5+oe)},pe),"\u2562":(be={},be[1]=function(le,oe){return"M0,.5 L"+(.5-le)+",.5 M"+(.5-le)+",0 L"+(.5-le)+",1 M"+(.5+le)+",0 L"+(.5+le)+",1"},be),"\u2563":(he={},he[1]=function(le,oe){return"M"+(.5+le)+",0 L"+(.5+le)+",1 M0,"+(.5+oe)+" L"+(.5-le)+","+(.5+oe)+" L"+(.5-le)+",1 M0,"+(.5-oe)+" L"+(.5-le)+","+(.5-oe)+" L"+(.5-le)+",0"},he),"\u2564":(_e={},_e[1]=function(le,oe){return"M0,"+(.5-oe)+" L1,"+(.5-oe)+" M0,"+(.5+oe)+" L1,"+(.5+oe)+" M.5,"+(.5+oe)+" L.5,1"},_e),"\u2565":(ce={},ce[1]=function(le,oe){return"M0,.5 L1,.5 M"+(.5-le)+",.5 L"+(.5-le)+",1 M"+(.5+le)+",.5 L"+(.5+le)+",1"},ce),"\u2566":(re={},re[1]=function(le,oe){return"M0,"+(.5-oe)+" L1,"+(.5-oe)+" M0,"+(.5+oe)+" L"+(.5-le)+","+(.5+oe)+" L"+(.5-le)+",1 M1,"+(.5+oe)+" L"+(.5+le)+","+(.5+oe)+" L"+(.5+le)+",1"},re),"\u2567":(ve={},ve[1]=function(le,oe){return"M.5,0 L.5,"+(.5-oe)+" M0,"+(.5-oe)+" L1,"+(.5-oe)+" M0,"+(.5+oe)+" L1,"+(.5+oe)},ve),"\u2568":(Ae={},Ae[1]=function(le,oe){return"M0,.5 L1,.5 M"+(.5-le)+",.5 L"+(.5-le)+",0 M"+(.5+le)+",.5 L"+(.5+le)+",0"},Ae),"\u2569":(Le={},Le[1]=function(le,oe){return"M0,"+(.5+oe)+" L1,"+(.5+oe)+" M0,"+(.5-oe)+" L"+(.5-le)+","+(.5-oe)+" L"+(.5-le)+",0 M1,"+(.5-oe)+" L"+(.5+le)+","+(.5-oe)+" L"+(.5+le)+",0"},Le),"\u256A":($e={},$e[1]=function(le,oe){return"M.5,0 L.5,1 M0,"+(.5-oe)+" L1,"+(.5-oe)+" M0,"+(.5+oe)+" L1,"+(.5+oe)},$e),"\u256B":(ye={},ye[1]=function(le,oe){return"M0,.5 L1,.5 M"+(.5-le)+",0 L"+(.5-le)+",1 M"+(.5+le)+",0 L"+(.5+le)+",1"},ye),"\u256C":(xe={},xe[1]=function(le,oe){return"M0,"+(.5+oe)+" L"+(.5-le)+","+(.5+oe)+" L"+(.5-le)+",1 M1,"+(.5+oe)+" L"+(.5+le)+","+(.5+oe)+" L"+(.5+le)+",1 M0,"+(.5-oe)+" L"+(.5-le)+","+(.5-oe)+" L"+(.5-le)+",0 M1,"+(.5-oe)+" L"+(.5+le)+","+(.5-oe)+" L"+(.5+le)+",0"},xe),"\u2571":(Re={},Re[1]="M1,0 L0,1",Re),"\u2572":(Me={},Me[1]="M0,0 L1,1",Me),"\u2573":(Ke={},Ke[1]="M1,0 L0,1 M0,0 L1,1",Ke),"\u257C":(pt={},pt[1]="M.5,.5 L0,.5",pt[3]="M.5,.5 L1,.5",pt),"\u257D":(vt={},vt[1]="M.5,.5 L.5,0",vt[3]="M.5,.5 L.5,1",vt),"\u257E":(Ht={},Ht[1]="M.5,.5 L1,.5",Ht[3]="M.5,.5 L0,.5",Ht),"\u257F":(st={},st[1]="M.5,.5 L.5,1",st[3]="M.5,.5 L.5,0",st),"\u250D":(At={},At[1]="M.5,.5 L.5,1",At[3]="M.5,.5 L1,.5",At),"\u250E":(Sr={},Sr[1]="M.5,.5 L1,.5",Sr[3]="M.5,.5 L.5,1",Sr),"\u2511":(kn={},kn[1]="M.5,.5 L.5,1",kn[3]="M.5,.5 L0,.5",kn),"\u2512":(Mr={},Mr[1]="M.5,.5 L0,.5",Mr[3]="M.5,.5 L.5,1",Mr),"\u2515":(Tn={},Tn[1]="M.5,.5 L.5,0",Tn[3]="M.5,.5 L1,.5",Tn),"\u2516":(ii={},ii[1]="M.5,.5 L1,.5",ii[3]="M.5,.5 L.5,0",ii),"\u2519":(Zi={},Zi[1]="M.5,.5 L.5,0",Zi[3]="M.5,.5 L0,.5",Zi),"\u251A":(eo={},eo[1]="M.5,.5 L0,.5",eo[3]="M.5,.5 L.5,0",eo),"\u251D":(to={},to[1]="M.5,0 L.5,1",to[3]="M.5,.5 L1,.5",to),"\u251E":(oi={},oi[1]="M0.5,1 L.5,.5 L1,.5",oi[3]="M.5,.5 L.5,0",oi),"\u251F":(ro={},ro[1]="M.5,0 L.5,.5 L1,.5",ro[3]="M.5,.5 L.5,1",ro),"\u2520":(no={},no[1]="M.5,.5 L1,.5",no[3]="M.5,0 L.5,1",no),"\u2521":(si={},si[1]="M.5,.5 L.5,1",si[3]="M.5,0 L.5,.5 L1,.5",si),"\u2522":(io={},io[1]="M.5,.5 L.5,0",io[3]="M0.5,1 L.5,.5 L1,.5",io),"\u2525":(ai={},ai[1]="M.5,0 L.5,1",ai[3]="M.5,.5 L0,.5",ai),"\u2526":(Rt={},Rt[1]="M0,.5 L.5,.5 L.5,1",Rt[3]="M.5,.5 L.5,0",Rt),"\u2527":(cr={},cr[1]="M.5,0 L.5,.5 L0,.5",cr[3]="M.5,.5 L.5,1",cr),"\u2528":(li={},li[1]="M.5,.5 L0,.5",li[3]="M.5,0 L.5,1",li),"\u2529":(oo={},oo[1]="M.5,.5 L.5,1",oo[3]="M.5,0 L.5,.5 L0,.5",oo),"\u252A":(aa={},aa[1]="M.5,.5 L.5,0",aa[3]="M0,.5 L.5,.5 L.5,1",aa),"\u252D":(la={},la[1]="M0.5,1 L.5,.5 L1,.5",la[3]="M.5,.5 L0,.5",la),"\u252E":(ca={},ca[1]="M0,.5 L.5,.5 L.5,1",ca[3]="M.5,.5 L1,.5",ca),"\u252F":(ua={},ua[1]="M.5,.5 L.5,1",ua[3]="M0,.5 L1,.5",ua),"\u2530":(fa={},fa[1]="M0,.5 L1,.5",fa[3]="M.5,.5 L.5,1",fa),"\u2531":(da={},da[1]="M.5,.5 L1,.5",da[3]="M0,.5 L.5,.5 L.5,1",da),"\u2532":(ha={},ha[1]="M.5,.5 L0,.5",ha[3]="M0.5,1 L.5,.5 L1,.5",ha),"\u2535":(pa={},pa[1]="M.5,0 L.5,.5 L1,.5",pa[3]="M.5,.5 L0,.5",pa),"\u2536":(va={},va[1]="M.5,0 L.5,.5 L0,.5",va[3]="M.5,.5 L1,.5",va),"\u2537":(ga={},ga[1]="M.5,.5 L.5,0",ga[3]="M0,.5 L1,.5",ga),"\u2538":(ma={},ma[1]="M0,.5 L1,.5",ma[3]="M.5,.5 L.5,0",ma),"\u2539":(_a={},_a[1]="M.5,.5 L1,.5",_a[3]="M.5,0 L.5,.5 L0,.5",_a),"\u253A":(ya={},ya[1]="M.5,.5 L0,.5",ya[3]="M.5,0 L.5,.5 L1,.5",ya),"\u253D":(ba={},ba[1]="M.5,0 L.5,1 M.5,.5 L1,.5",ba[3]="M.5,.5 L0,.5",ba),"\u253E":(Ca={},Ca[1]="M.5,0 L.5,1 M.5,.5 L0,.5",Ca[3]="M.5,.5 L1,.5",Ca),"\u253F":(wa={},wa[1]="M.5,0 L.5,1",wa[3]="M0,.5 L1,.5",wa),"\u2540":(Sa={},Sa[1]="M0,.5 L1,.5 M.5,.5 L.5,1",Sa[3]="M.5,.5 L.5,0",Sa),"\u2541":(xa={},xa[1]="M.5,.5 L.5,0 M0,.5 L1,.5",xa[3]="M.5,.5 L.5,1",xa),"\u2542":(Ea={},Ea[1]="M0,.5 L1,.5",Ea[3]="M.5,0 L.5,1",Ea),"\u2543":(Aa={},Aa[1]="M0.5,1 L.5,.5 L1,.5",Aa[3]="M.5,0 L.5,.5 L0,.5",Aa),"\u2544":(ka={},ka[1]="M0,.5 L.5,.5 L.5,1",ka[3]="M.5,0 L.5,.5 L1,.5",ka),"\u2545":(Ta={},Ta[1]="M.5,0 L.5,.5 L1,.5",Ta[3]="M0,.5 L.5,.5 L.5,1",Ta),"\u2546":(La={},La[1]="M.5,0 L.5,.5 L0,.5",La[3]="M0.5,1 L.5,.5 L1,.5",La),"\u2547":(Ra={},Ra[1]="M.5,.5 L.5,1",Ra[3]="M.5,.5 L.5,0 M0,.5 L1,.5",Ra),"\u2548":(Ba={},Ba[1]="M.5,.5 L.5,0",Ba[3]="M0,.5 L1,.5 M.5,.5 L.5,1",Ba),"\u2549":(Oa={},Oa[1]="M.5,.5 L1,.5",Oa[3]="M.5,0 L.5,1 M.5,.5 L0,.5",Oa),"\u254A":(Ia={},Ia[1]="M.5,.5 L0,.5",Ia[3]="M.5,0 L.5,1 M.5,.5 L1,.5",Ia),"\u254C":($c={},$c[1]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",$c),"\u254D":(jc={},jc[3]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",jc),"\u2504":(Uc={},Uc[1]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",Uc),"\u2505":(Wc={},Wc[3]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",Wc),"\u2508":(zc={},zc[1]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",zc),"\u2509":(qc={},qc[3]="M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5",qc),"\u254E":(Vc={},Vc[1]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",Vc),"\u254F":(Kc={},Kc[3]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",Kc),"\u2506":(Gc={},Gc[1]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",Gc),"\u2507":(Yc={},Yc[3]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",Yc),"\u250A":(Xc={},Xc[1]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",Xc),"\u250B":(Qc={},Qc[3]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",Qc),"\u256D":(Jc={},Jc[1]="C.5,1,.5,.5,1,.5",Jc),"\u256E":(Zc={},Zc[1]="C.5,1,.5,.5,0,.5",Zc),"\u256F":(eu={},eu[1]="C.5,0,.5,.5,0,.5",eu),"\u2570":(tu={},tu[1]="C.5,0,.5,.5,1,.5",tu)},i.tryDrawCustomChar=function(le,oe,Gr,ts,rs,Bt){var Yr=i.blockElementDefinitions[oe];if(Yr)return function(Qt,Qr,is,os,so,ao){for(var xr=0;xr<Qr.length;xr++){var ur=Qr[xr],St=so/8,un=ao/8;Qt.fillRect(is+ur.x*St,os+ur.y*un,ur.w*St,ur.h*un)}}(le,Yr,Gr,ts,rs,Bt),!0;var Xr=n1[oe];if(Xr)return function(Qt,Qr,is,os,so,ao){var xr,ur=lh.get(Qr);ur||(ur=new Map,lh.set(Qr,ur));var St=Qt.fillStyle;if(typeof St!="string")throw new Error('Unexpected fillStyle type "'+St+'"');var un=ur.get(St);if(!un){var Pr=Qr[0].length,ci=Qr.length,ui=document.createElement("canvas");ui.width=Pr,ui.height=ci;var Ma=(0,ah.throwIfFalsy)(ui.getContext("2d")),Ln=new ImageData(Pr,ci),lo=void 0,fi=void 0,ru=void 0,nu=void 0;if(St.startsWith("#"))lo=parseInt(St.substr(1,2),16),fi=parseInt(St.substr(3,2),16),ru=parseInt(St.substr(5,2),16),nu=St.length>7&&parseInt(St.substr(7,2),16)||1;else{if(!St.startsWith("rgba"))throw new Error('Unexpected fillStyle color format "'+St+'" when drawing pattern glyph');lo=(xr=St.substring(5,St.length-1).split(",").map(function(s1){return parseFloat(s1)}))[0],fi=xr[1],ru=xr[2],nu=xr[3]}for(var di=0;di<ci;di++)for(var hi=0;hi<Pr;hi++)Ln.data[4*(di*Pr+hi)]=lo,Ln.data[4*(di*Pr+hi)+1]=fi,Ln.data[4*(di*Pr+hi)+2]=ru,Ln.data[4*(di*Pr+hi)+3]=Qr[di][hi]*(255*nu);Ma.putImageData(Ln,0,0),un=(0,ah.throwIfFalsy)(Qt.createPattern(ui,null)),ur.set(St,un)}Qt.fillStyle=un,Qt.fillRect(is,os,so,ao)}(le,Xr,Gr,ts,rs,Bt),!0;var ns=i.boxDrawingDefinitions[oe];return!!ns&&(function(Qt,Qr,is,os,so,ao){Qt.strokeStyle=Qt.fillStyle;for(var xr=0,ur=Object.entries(Qr);xr<ur.length;xr++){var St=ur[xr],un=St[0],Pr=St[1];Qt.beginPath(),Qt.lineWidth=window.devicePixelRatio*Number.parseInt(un);for(var ci=0,ui=(typeof Pr=="function"?Pr(.15,.15/ao*so):Pr).split(" ");ci<ui.length;ci++){var Ma=ui[ci],Ln=Ma[0],lo=i1[Ln];if(lo){var fi=Ma.substring(1).split(",");fi[0]&&fi[1]&&lo(Qt,o1(fi,so,ao,is,os))}else console.error('Could not find drawing instructions for "'+Ln+'"')}Qt.stroke(),Qt.closePath()}}(le,ns,Gr,ts,rs,Bt),!0)};var lh=new Map;function ch(le,oe,Gr){return Gr===void 0&&(Gr=0),Math.max(Math.min(le,oe),Gr)}var i1={C:function(le,oe){return le.bezierCurveTo(oe[0],oe[1],oe[2],oe[3],oe[4],oe[5])},L:function(le,oe){return le.lineTo(oe[0],oe[1])},M:function(le,oe){return le.moveTo(oe[0],oe[1])}};function o1(le,oe,Gr,ts,rs){var Bt=le.map(function(ns){return parseFloat(ns)||parseInt(ns)});if(Bt.length<2)throw new Error("Too few arguments for instruction");for(var Yr=0;Yr<Bt.length;Yr+=2)Bt[Yr]*=oe,Bt[Yr]!==0&&(Bt[Yr]=ch(Math.round(Bt[Yr]+.5)-.5,oe,0)),Bt[Yr]+=ts;for(var Xr=1;Xr<Bt.length;Xr+=2)Bt[Xr]*=Gr,Bt[Xr]!==0&&(Bt[Xr]=ch(Math.round(Bt[Xr]+.5)-.5,Gr,0)),Bt[Xr]+=rs;return Bt}},3700:(o,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.GridCache=void 0;var s=function(){function a(){this.cache=[]}return a.prototype.resize=function(l,u){for(var c=0;c<l;c++){this.cache.length<=c&&this.cache.push([]);for(var _=this.cache[c].length;_<u;_++)this.cache[c].push(void 0);this.cache[c].length=u}this.cache.length=l},a.prototype.clear=function(){for(var l=0;l<this.cache.length;l++)for(var u=0;u<this.cache[l].length;u++)this.cache[l][u]=void 0},a}();i.GridCache=s},5098:function(o,i,s){var a,l=this&&this.__extends||(a=function(m,d){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var y in h)Object.prototype.hasOwnProperty.call(h,y)&&(f[y]=h[y])},a(m,d)},function(m,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function f(){this.constructor=m}a(m,d),m.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}),u=this&&this.__decorate||function(m,d,f,h){var y,C=arguments.length,w=C<3?d:h===null?h=Object.getOwnPropertyDescriptor(d,f):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(m,d,f,h);else for(var S=m.length-1;S>=0;S--)(y=m[S])&&(w=(C<3?y(w):C>3?y(d,f,w):y(d,f))||w);return C>3&&w&&Object.defineProperty(d,f,w),w},c=this&&this.__param||function(m,d){return function(f,h){d(f,h,m)}};Object.defineProperty(i,"__esModule",{value:!0}),i.LinkRenderLayer=void 0;var _=s(1546),v=s(8803),p=s(2040),g=s(2585),b=function(m){function d(f,h,y,C,w,S,E,k){var x=m.call(this,f,"link",h,!0,y,C,E,k)||this;return w.onShowLinkUnderline(function(A){return x._onShowLinkUnderline(A)}),w.onHideLinkUnderline(function(A){return x._onHideLinkUnderline(A)}),S.onShowLinkUnderline(function(A){return x._onShowLinkUnderline(A)}),S.onHideLinkUnderline(function(A){return x._onHideLinkUnderline(A)}),x}return l(d,m),d.prototype.resize=function(f){m.prototype.resize.call(this,f),this._state=void 0},d.prototype.reset=function(){this._clearCurrentLink()},d.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var f=this._state.y2-this._state.y1-1;f>0&&this._clearCells(0,this._state.y1+1,this._state.cols,f),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},d.prototype._onShowLinkUnderline=function(f){if(f.fg===v.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:f.fg&&(0,p.is256Color)(f.fg)?this._ctx.fillStyle=this._colors.ansi[f.fg].css:this._ctx.fillStyle=this._colors.foreground.css,f.y1===f.y2)this._fillBottomLineAtCells(f.x1,f.y1,f.x2-f.x1);else{this._fillBottomLineAtCells(f.x1,f.y1,f.cols-f.x1);for(var h=f.y1+1;h<f.y2;h++)this._fillBottomLineAtCells(0,h,f.cols);this._fillBottomLineAtCells(0,f.y2,f.x2)}this._state=f},d.prototype._onHideLinkUnderline=function(f){this._clearCurrentLink()},u([c(6,g.IBufferService),c(7,g.IOptionsService)],d)}(_.BaseRenderLayer);i.LinkRenderLayer=b},3525:function(o,i,s){var a,l=this&&this.__extends||(a=function(w,S){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,k){E.__proto__=k}||function(E,k){for(var x in k)Object.prototype.hasOwnProperty.call(k,x)&&(E[x]=k[x])},a(w,S)},function(w,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function E(){this.constructor=w}a(w,S),w.prototype=S===null?Object.create(S):(E.prototype=S.prototype,new E)}),u=this&&this.__decorate||function(w,S,E,k){var x,A=arguments.length,L=A<3?S:k===null?k=Object.getOwnPropertyDescriptor(S,E):k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(w,S,E,k);else for(var T=w.length-1;T>=0;T--)(x=w[T])&&(L=(A<3?x(L):A>3?x(S,E,L):x(S,E))||L);return A>3&&L&&Object.defineProperty(S,E,L),L},c=this&&this.__param||function(w,S){return function(E,k){S(E,k,w)}};Object.defineProperty(i,"__esModule",{value:!0}),i.Renderer=void 0;var _=s(9596),v=s(4149),p=s(2512),g=s(5098),b=s(844),m=s(4725),d=s(2585),f=s(1420),h=s(8460),y=1,C=function(w){function S(E,k,x,A,L,T,H,P){var R=w.call(this)||this;R._colors=E,R._screenElement=k,R._bufferService=T,R._charSizeService=H,R._optionsService=P,R._id=y++,R._onRequestRedraw=new h.EventEmitter;var I=R._optionsService.rawOptions.allowTransparency;return R._renderLayers=[L.createInstance(_.TextRenderLayer,R._screenElement,0,R._colors,I,R._id),L.createInstance(v.SelectionRenderLayer,R._screenElement,1,R._colors,R._id),L.createInstance(g.LinkRenderLayer,R._screenElement,2,R._colors,R._id,x,A),L.createInstance(p.CursorRenderLayer,R._screenElement,3,R._colors,R._id,R._onRequestRedraw)],R.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},R._devicePixelRatio=window.devicePixelRatio,R._updateDimensions(),R.onOptionsChanged(),R}return l(S,w),Object.defineProperty(S.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),S.prototype.dispose=function(){for(var E=0,k=this._renderLayers;E<k.length;E++)k[E].dispose();w.prototype.dispose.call(this),(0,f.removeTerminalFromCache)(this._id)},S.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},S.prototype.setColors=function(E){this._colors=E;for(var k=0,x=this._renderLayers;k<x.length;k++){var A=x[k];A.setColors(this._colors),A.reset()}},S.prototype.onResize=function(E,k){this._updateDimensions();for(var x=0,A=this._renderLayers;x<A.length;x++)A[x].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},S.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},S.prototype.onBlur=function(){this._runOperation(function(E){return E.onBlur()})},S.prototype.onFocus=function(){this._runOperation(function(E){return E.onFocus()})},S.prototype.onSelectionChanged=function(E,k,x){x===void 0&&(x=!1),this._runOperation(function(A){return A.onSelectionChanged(E,k,x)})},S.prototype.onCursorMove=function(){this._runOperation(function(E){return E.onCursorMove()})},S.prototype.onOptionsChanged=function(){this._runOperation(function(E){return E.onOptionsChanged()})},S.prototype.clear=function(){this._runOperation(function(E){return E.reset()})},S.prototype._runOperation=function(E){for(var k=0,x=this._renderLayers;k<x.length;k++)E(x[k])},S.prototype.renderRows=function(E,k){for(var x=0,A=this._renderLayers;x<A.length;x++)A[x].onGridChanged(E,k)},S.prototype.clearTextureAtlas=function(){for(var E=0,k=this._renderLayers;E<k.length;E++)k[E].clearTextureAtlas()},S.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharTop=this._optionsService.rawOptions.lineHeight===1?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.rawOptions.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},u([c(4,d.IInstantiationService),c(5,d.IBufferService),c(6,m.ICharSizeService),c(7,d.IOptionsService)],S)}(b.Disposable);i.Renderer=C},1752:(o,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.throwIfFalsy=void 0,i.throwIfFalsy=function(s){if(!s)throw new Error("value must not be falsy");return s}},4149:function(o,i,s){var a,l=this&&this.__extends||(a=function(g,b){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,d){m.__proto__=d}||function(m,d){for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(m[f]=d[f])},a(g,b)},function(g,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function m(){this.constructor=g}a(g,b),g.prototype=b===null?Object.create(b):(m.prototype=b.prototype,new m)}),u=this&&this.__decorate||function(g,b,m,d){var f,h=arguments.length,y=h<3?b:d===null?d=Object.getOwnPropertyDescriptor(b,m):d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(g,b,m,d);else for(var C=g.length-1;C>=0;C--)(f=g[C])&&(y=(h<3?f(y):h>3?f(b,m,y):f(b,m))||y);return h>3&&y&&Object.defineProperty(b,m,y),y},c=this&&this.__param||function(g,b){return function(m,d){b(m,d,g)}};Object.defineProperty(i,"__esModule",{value:!0}),i.SelectionRenderLayer=void 0;var _=s(1546),v=s(2585),p=function(g){function b(m,d,f,h,y,C){var w=g.call(this,m,"selection",d,!0,f,h,y,C)||this;return w._clearState(),w}return l(b,g),b.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},b.prototype.resize=function(m){g.prototype.resize.call(this,m),this._clearState()},b.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},b.prototype.onSelectionChanged=function(m,d,f){if(this._didStateChange(m,d,f,this._bufferService.buffer.ydisp))if(this._clearAll(),m&&d){var h=m[1]-this._bufferService.buffer.ydisp,y=d[1]-this._bufferService.buffer.ydisp,C=Math.max(h,0),w=Math.min(y,this._bufferService.rows-1);if(C>=this._bufferService.rows||w<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=this._colors.selectionTransparent.css,f){var S=m[0],E=d[0]-S,k=w-C+1;this._fillCells(S,C,E,k)}else{S=h===C?m[0]:0;var x=C===y?d[0]:this._bufferService.cols;this._fillCells(S,C,x-S,1);var A=Math.max(w-C-1,0);if(this._fillCells(0,C+1,this._bufferService.cols,A),C!==w){var L=y===w?d[0]:this._bufferService.cols;this._fillCells(0,w,L,1)}}this._state.start=[m[0],m[1]],this._state.end=[d[0],d[1]],this._state.columnSelectMode=f,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},b.prototype._didStateChange=function(m,d,f,h){return!this._areCoordinatesEqual(m,this._state.start)||!this._areCoordinatesEqual(d,this._state.end)||f!==this._state.columnSelectMode||h!==this._state.ydisp},b.prototype._areCoordinatesEqual=function(m,d){return!(!m||!d)&&m[0]===d[0]&&m[1]===d[1]},u([c(4,v.IBufferService),c(5,v.IOptionsService)],b)}(_.BaseRenderLayer);i.SelectionRenderLayer=p},9596:function(o,i,s){var a,l=this&&this.__extends||(a=function(y,C){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,S){w.__proto__=S}||function(w,S){for(var E in S)Object.prototype.hasOwnProperty.call(S,E)&&(w[E]=S[E])},a(y,C)},function(y,C){if(typeof C!="function"&&C!==null)throw new TypeError("Class extends value "+String(C)+" is not a constructor or null");function w(){this.constructor=y}a(y,C),y.prototype=C===null?Object.create(C):(w.prototype=C.prototype,new w)}),u=this&&this.__decorate||function(y,C,w,S){var E,k=arguments.length,x=k<3?C:S===null?S=Object.getOwnPropertyDescriptor(C,w):S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(y,C,w,S);else for(var A=y.length-1;A>=0;A--)(E=y[A])&&(x=(k<3?E(x):k>3?E(C,w,x):E(C,w))||x);return k>3&&x&&Object.defineProperty(C,w,x),x},c=this&&this.__param||function(y,C){return function(w,S){C(w,S,y)}};Object.defineProperty(i,"__esModule",{value:!0}),i.TextRenderLayer=void 0;var _=s(3700),v=s(1546),p=s(3734),g=s(643),b=s(511),m=s(2585),d=s(4725),f=s(4269),h=function(y){function C(w,S,E,k,x,A,L,T){var H=y.call(this,w,"text",S,k,E,x,A,L)||this;return H._characterJoinerService=T,H._characterWidth=0,H._characterFont="",H._characterOverlapCache={},H._workCell=new b.CellData,H._state=new _.GridCache,H}return l(C,y),C.prototype.resize=function(w){y.prototype.resize.call(this,w);var S=this._getFont(!1,!1);this._characterWidth===w.scaledCharWidth&&this._characterFont===S||(this._characterWidth=w.scaledCharWidth,this._characterFont=S,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},C.prototype.reset=function(){this._state.clear(),this._clearAll()},C.prototype._forEachCell=function(w,S,E){for(var k=w;k<=S;k++)for(var x=k+this._bufferService.buffer.ydisp,A=this._bufferService.buffer.lines.get(x),L=this._characterJoinerService.getJoinedCharacters(x),T=0;T<this._bufferService.cols;T++){A.loadCell(T,this._workCell);var H=this._workCell,P=!1,R=T;if(H.getWidth()!==0){if(L.length>0&&T===L[0][0]){P=!0;var I=L.shift();H=new f.JoinedCellData(this._workCell,A.translateToString(!0,I[0],I[1]),I[1]-I[0]),R=I[1]-1}!P&&this._isOverlapping(H)&&R<A.length-1&&A.getCodePoint(R+1)===g.NULL_CELL_CODE&&(H.content&=-12582913,H.content|=2<<22),E(H,T,k),T=R}}},C.prototype._drawBackground=function(w,S){var E=this,k=this._ctx,x=this._bufferService.cols,A=0,L=0,T=null;k.save(),this._forEachCell(w,S,function(H,P,R){var I=null;H.isInverse()?I=H.isFgDefault()?E._colors.foreground.css:H.isFgRGB()?"rgb("+p.AttributeData.toColorRGB(H.getFgColor()).join(",")+")":E._colors.ansi[H.getFgColor()].css:H.isBgRGB()?I="rgb("+p.AttributeData.toColorRGB(H.getBgColor()).join(",")+")":H.isBgPalette()&&(I=E._colors.ansi[H.getBgColor()].css),T===null&&(A=P,L=R),R!==L?(k.fillStyle=T||"",E._fillCells(A,L,x-A,1),A=P,L=R):T!==I&&(k.fillStyle=T||"",E._fillCells(A,L,P-A,1),A=P,L=R),T=I}),T!==null&&(k.fillStyle=T,this._fillCells(A,L,x-A,1)),k.restore()},C.prototype._drawForeground=function(w,S){var E=this;this._forEachCell(w,S,function(k,x,A){if(!k.isInvisible()&&(E._drawChars(k,x,A),k.isUnderline()||k.isStrikethrough())){if(E._ctx.save(),k.isInverse())if(k.isBgDefault())E._ctx.fillStyle=E._colors.background.css;else if(k.isBgRGB())E._ctx.fillStyle="rgb("+p.AttributeData.toColorRGB(k.getBgColor()).join(",")+")";else{var L=k.getBgColor();E._optionsService.rawOptions.drawBoldTextInBrightColors&&k.isBold()&&L<8&&(L+=8),E._ctx.fillStyle=E._colors.ansi[L].css}else if(k.isFgDefault())E._ctx.fillStyle=E._colors.foreground.css;else if(k.isFgRGB())E._ctx.fillStyle="rgb("+p.AttributeData.toColorRGB(k.getFgColor()).join(",")+")";else{var T=k.getFgColor();E._optionsService.rawOptions.drawBoldTextInBrightColors&&k.isBold()&&T<8&&(T+=8),E._ctx.fillStyle=E._colors.ansi[T].css}k.isStrikethrough()&&E._fillMiddleLineAtCells(x,A,k.getWidth()),k.isUnderline()&&E._fillBottomLineAtCells(x,A,k.getWidth()),E._ctx.restore()}})},C.prototype.onGridChanged=function(w,S){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,w,this._bufferService.cols,S-w+1),this._drawBackground(w,S),this._drawForeground(w,S))},C.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.rawOptions.allowTransparency)},C.prototype._isOverlapping=function(w){if(w.getWidth()!==1||w.getCode()<256)return!1;var S=w.getChars();if(this._characterOverlapCache.hasOwnProperty(S))return this._characterOverlapCache[S];this._ctx.save(),this._ctx.font=this._characterFont;var E=Math.floor(this._ctx.measureText(S).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[S]=E,E},u([c(5,m.IBufferService),c(6,m.IOptionsService),c(7,d.ICharacterJoinerService)],C)}(v.BaseRenderLayer);i.TextRenderLayer=h},9616:(o,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.BaseCharAtlas=void 0;var s=function(){function a(){this._didWarmUp=!1}return a.prototype.dispose=function(){},a.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},a.prototype._doWarmUp=function(){},a.prototype.clear=function(){},a.prototype.beginFrame=function(){},a}();i.BaseCharAtlas=s},1420:(o,i,s)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.removeTerminalFromCache=i.acquireCharAtlas=void 0;var a=s(2040),l=s(1906),u=[];i.acquireCharAtlas=function(c,_,v,p,g){for(var b=(0,a.generateConfig)(p,g,c,v),m=0;m<u.length;m++){var d=(f=u[m]).ownedBy.indexOf(_);if(d>=0){if((0,a.configEquals)(f.config,b))return f.atlas;f.ownedBy.length===1?(f.atlas.dispose(),u.splice(m,1)):f.ownedBy.splice(d,1);break}}for(m=0;m<u.length;m++){var f=u[m];if((0,a.configEquals)(f.config,b))return f.ownedBy.push(_),f.atlas}var h={atlas:new l.DynamicCharAtlas(document,b),config:b,ownedBy:[_]};return u.push(h),h.atlas},i.removeTerminalFromCache=function(c){for(var _=0;_<u.length;_++){var v=u[_].ownedBy.indexOf(c);if(v!==-1){u[_].ownedBy.length===1?(u[_].atlas.dispose(),u.splice(_,1)):u[_].ownedBy.splice(v,1);break}}}},2040:function(o,i,s){var a=this&&this.__spreadArray||function(u,c,_){if(_||arguments.length===2)for(var v,p=0,g=c.length;p<g;p++)!v&&p in c||(v||(v=Array.prototype.slice.call(c,0,p)),v[p]=c[p]);return u.concat(v||Array.prototype.slice.call(c))};Object.defineProperty(i,"__esModule",{value:!0}),i.is256Color=i.configEquals=i.generateConfig=void 0;var l=s(643);i.generateConfig=function(u,c,_,v){var p={foreground:v.foreground,background:v.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:a([],v.ansi,!0)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:u,scaledCharHeight:c,fontFamily:_.fontFamily,fontSize:_.fontSize,fontWeight:_.fontWeight,fontWeightBold:_.fontWeightBold,allowTransparency:_.allowTransparency,colors:p}},i.configEquals=function(u,c){for(var _=0;_<u.colors.ansi.length;_++)if(u.colors.ansi[_].rgba!==c.colors.ansi[_].rgba)return!1;return u.devicePixelRatio===c.devicePixelRatio&&u.fontFamily===c.fontFamily&&u.fontSize===c.fontSize&&u.fontWeight===c.fontWeight&&u.fontWeightBold===c.fontWeightBold&&u.allowTransparency===c.allowTransparency&&u.scaledCharWidth===c.scaledCharWidth&&u.scaledCharHeight===c.scaledCharHeight&&u.colors.foreground===c.colors.foreground&&u.colors.background===c.colors.background},i.is256Color=function(u){return u<l.DEFAULT_COLOR}},8803:(o,i,s)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.CHAR_ATLAS_CELL_SPACING=i.TEXT_BASELINE=i.DIM_OPACITY=i.INVERTED_DEFAULT_COLOR=void 0;var a=s(6114);i.INVERTED_DEFAULT_COLOR=257,i.DIM_OPACITY=.5,i.TEXT_BASELINE=a.isFirefox||a.isLegacyEdge?"bottom":"ideographic",i.CHAR_ATLAS_CELL_SPACING=1},1906:function(o,i,s){var a,l=this&&this.__extends||(a=function(S,E){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,x){k.__proto__=x}||function(k,x){for(var A in x)Object.prototype.hasOwnProperty.call(x,A)&&(k[A]=x[A])},a(S,E)},function(S,E){if(typeof E!="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function k(){this.constructor=S}a(S,E),S.prototype=E===null?Object.create(E):(k.prototype=E.prototype,new k)});Object.defineProperty(i,"__esModule",{value:!0}),i.NoneCharAtlas=i.DynamicCharAtlas=i.getGlyphCacheKey=void 0;var u=s(8803),c=s(9616),_=s(5680),v=s(7001),p=s(6114),g=s(1752),b=s(4774),m=1024,d=1024,f={css:"rgba(0, 0, 0, 0)",rgba:0};function h(S){return S.code<<21|S.bg<<12|S.fg<<3|(S.bold?0:4)+(S.dim?0:2)+(S.italic?0:1)}i.getGlyphCacheKey=h;var y=function(S){function E(k,x){var A=S.call(this)||this;A._config=x,A._drawToCacheCount=0,A._glyphsWaitingOnBitmap=[],A._bitmapCommitTimeout=null,A._bitmap=null,A._cacheCanvas=k.createElement("canvas"),A._cacheCanvas.width=m,A._cacheCanvas.height=d,A._cacheCtx=(0,g.throwIfFalsy)(A._cacheCanvas.getContext("2d",{alpha:!0}));var L=k.createElement("canvas");L.width=A._config.scaledCharWidth,L.height=A._config.scaledCharHeight,A._tmpCtx=(0,g.throwIfFalsy)(L.getContext("2d",{alpha:A._config.allowTransparency})),A._width=Math.floor(m/A._config.scaledCharWidth),A._height=Math.floor(d/A._config.scaledCharHeight);var T=A._width*A._height;return A._cacheMap=new v.LRUMap(T),A._cacheMap.prealloc(T),A}return l(E,S),E.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},E.prototype.beginFrame=function(){this._drawToCacheCount=0},E.prototype.clear=function(){if(this._cacheMap.size>0){var k=this._width*this._height;this._cacheMap=new v.LRUMap(k),this._cacheMap.prealloc(k)}this._cacheCtx.clearRect(0,0,m,d),this._tmpCtx.clearRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight)},E.prototype.draw=function(k,x,A,L){if(x.code===32)return!0;if(!this._canCache(x))return!1;var T=h(x),H=this._cacheMap.get(T);if(H!=null)return this._drawFromCache(k,H,A,L),!0;if(this._drawToCacheCount<100){var P;P=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var R=this._drawToCache(x,P);return this._cacheMap.set(T,R),this._drawFromCache(k,R,A,L),!0}return!1},E.prototype._canCache=function(k){return k.code<256},E.prototype._toCoordinateX=function(k){return k%this._width*this._config.scaledCharWidth},E.prototype._toCoordinateY=function(k){return Math.floor(k/this._width)*this._config.scaledCharHeight},E.prototype._drawFromCache=function(k,x,A,L){if(!x.isEmpty){var T=this._toCoordinateX(x.index),H=this._toCoordinateY(x.index);k.drawImage(x.inBitmap?this._bitmap:this._cacheCanvas,T,H,this._config.scaledCharWidth,this._config.scaledCharHeight,A,L,this._config.scaledCharWidth,this._config.scaledCharHeight)}},E.prototype._getColorFromAnsiIndex=function(k){return k<this._config.colors.ansi.length?this._config.colors.ansi[k]:_.DEFAULT_ANSI_COLORS[k]},E.prototype._getBackgroundColor=function(k){return this._config.allowTransparency?f:k.bg===u.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:k.bg<256?this._getColorFromAnsiIndex(k.bg):this._config.colors.background},E.prototype._getForegroundColor=function(k){return k.fg===u.INVERTED_DEFAULT_COLOR?b.color.opaque(this._config.colors.background):k.fg<256?this._getColorFromAnsiIndex(k.fg):this._config.colors.foreground},E.prototype._drawToCache=function(k,x){this._drawToCacheCount++,this._tmpCtx.save();var A=this._getBackgroundColor(k);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=A.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var L=k.bold?this._config.fontWeightBold:this._config.fontWeight,T=k.italic?"italic":"";this._tmpCtx.font=T+" "+L+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline=u.TEXT_BASELINE,this._tmpCtx.fillStyle=this._getForegroundColor(k).css,k.dim&&(this._tmpCtx.globalAlpha=u.DIM_OPACITY),this._tmpCtx.fillText(k.chars,0,this._config.scaledCharHeight);var H=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),P=!1;if(this._config.allowTransparency||(P=w(H,A)),P&&k.chars==="_"&&!this._config.allowTransparency)for(var R=1;R<=5&&(this._tmpCtx.fillText(k.chars,0,this._config.scaledCharHeight-R),P=w(H=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),A));R++);this._tmpCtx.restore();var I=this._toCoordinateX(x),M=this._toCoordinateY(x);this._cacheCtx.putImageData(H,I,M);var $={index:x,isEmpty:P,inBitmap:!1};return this._addGlyphToBitmap($),$},E.prototype._addGlyphToBitmap=function(k){var x=this;!("createImageBitmap"in window)||p.isFirefox||p.isSafari||(this._glyphsWaitingOnBitmap.push(k),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return x._generateBitmap()},100)))},E.prototype._generateBitmap=function(){var k=this,x=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(A){k._bitmap=A;for(var L=0;L<x.length;L++)x[L].inBitmap=!0}),this._bitmapCommitTimeout=null},E}(c.BaseCharAtlas);i.DynamicCharAtlas=y;var C=function(S){function E(k,x){return S.call(this)||this}return l(E,S),E.prototype.draw=function(k,x,A,L){return!1},E}(c.BaseCharAtlas);function w(S,E){for(var k=!0,x=E.rgba>>>24,A=E.rgba>>>16&255,L=E.rgba>>>8&255,T=0;T<S.data.length;T+=4)S.data[T]===x&&S.data[T+1]===A&&S.data[T+2]===L?S.data[T+3]=0:k=!1;return k}i.NoneCharAtlas=C},7001:(o,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.LRUMap=void 0;var s=function(){function a(l){this.capacity=l,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return a.prototype._unlinkNode=function(l){var u=l.prev,c=l.next;l===this._head&&(this._head=c),l===this._tail&&(this._tail=u),u!==null&&(u.next=c),c!==null&&(c.prev=u)},a.prototype._appendNode=function(l){var u=this._tail;u!==null&&(u.next=l),l.prev=u,l.next=null,this._tail=l,this._head===null&&(this._head=l)},a.prototype.prealloc=function(l){for(var u=this._nodePool,c=0;c<l;c++)u.push({prev:null,next:null,key:null,value:null})},a.prototype.get=function(l){var u=this._map[l];return u!==void 0?(this._unlinkNode(u),this._appendNode(u),u.value):null},a.prototype.peekValue=function(l){var u=this._map[l];return u!==void 0?u.value:null},a.prototype.peek=function(){var l=this._head;return l===null?null:l.value},a.prototype.set=function(l,u){var c=this._map[l];if(c!==void 0)c=this._map[l],this._unlinkNode(c),c.value=u;else if(this.size>=this.capacity)c=this._head,this._unlinkNode(c),delete this._map[c.key],c.key=l,c.value=u,this._map[l]=c;else{var _=this._nodePool;_.length>0?((c=_.pop()).key=l,c.value=u):c={prev:null,next:null,key:l,value:u},this._map[l]=c,this.size++}this._appendNode(c)},a}();i.LRUMap=s},1296:function(o,i,s){var a,l=this&&this.__extends||(a=function(k,x){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,L){A.__proto__=L}||function(A,L){for(var T in L)Object.prototype.hasOwnProperty.call(L,T)&&(A[T]=L[T])},a(k,x)},function(k,x){if(typeof x!="function"&&x!==null)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");function A(){this.constructor=k}a(k,x),k.prototype=x===null?Object.create(x):(A.prototype=x.prototype,new A)}),u=this&&this.__decorate||function(k,x,A,L){var T,H=arguments.length,P=H<3?x:L===null?L=Object.getOwnPropertyDescriptor(x,A):L;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")P=Reflect.decorate(k,x,A,L);else for(var R=k.length-1;R>=0;R--)(T=k[R])&&(P=(H<3?T(P):H>3?T(x,A,P):T(x,A))||P);return H>3&&P&&Object.defineProperty(x,A,P),P},c=this&&this.__param||function(k,x){return function(A,L){x(A,L,k)}};Object.defineProperty(i,"__esModule",{value:!0}),i.DomRenderer=void 0;var _=s(3787),v=s(8803),p=s(844),g=s(4725),b=s(2585),m=s(8460),d=s(4774),f=s(9631),h="xterm-dom-renderer-owner-",y="xterm-fg-",C="xterm-bg-",w="xterm-focus",S=1,E=function(k){function x(A,L,T,H,P,R,I,M,$,V){var U=k.call(this)||this;return U._colors=A,U._element=L,U._screenElement=T,U._viewportElement=H,U._linkifier=P,U._linkifier2=R,U._charSizeService=M,U._optionsService=$,U._bufferService=V,U._terminalClass=S++,U._rowElements=[],U._rowContainer=document.createElement("div"),U._rowContainer.classList.add("xterm-rows"),U._rowContainer.style.lineHeight="normal",U._rowContainer.setAttribute("aria-hidden","true"),U._refreshRowElements(U._bufferService.cols,U._bufferService.rows),U._selectionContainer=document.createElement("div"),U._selectionContainer.classList.add("xterm-selection"),U._selectionContainer.setAttribute("aria-hidden","true"),U.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},U._updateDimensions(),U._injectCss(),U._rowFactory=I.createInstance(_.DomRendererRowFactory,document,U._colors),U._element.classList.add(h+U._terminalClass),U._screenElement.appendChild(U._rowContainer),U._screenElement.appendChild(U._selectionContainer),U._linkifier.onShowLinkUnderline(function(Y){return U._onLinkHover(Y)}),U._linkifier.onHideLinkUnderline(function(Y){return U._onLinkLeave(Y)}),U._linkifier2.onShowLinkUnderline(function(Y){return U._onLinkHover(Y)}),U._linkifier2.onHideLinkUnderline(function(Y){return U._onLinkLeave(Y)}),U}return l(x,k),Object.defineProperty(x.prototype,"onRequestRedraw",{get:function(){return new m.EventEmitter().event},enumerable:!1,configurable:!0}),x.prototype.dispose=function(){this._element.classList.remove(h+this._terminalClass),(0,f.removeElementFromParent)(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),k.prototype.dispose.call(this)},x.prototype._updateDimensions=function(){this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.rawOptions.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(var A=0,L=this._rowElements;A<L.length;A++){var T=L[A];T.style.width=this.dimensions.canvasWidth+"px",T.style.height=this.dimensions.actualCellHeight+"px",T.style.lineHeight=this.dimensions.actualCellHeight+"px",T.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var H=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.textContent=H,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},x.prototype.setColors=function(A){this._colors=A,this._injectCss()},x.prototype._injectCss=function(){var A=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var L=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.rawOptions.fontFamily+"; font-size: "+this._optionsService.rawOptions.fontSize+"px;}";L+=this._terminalSelector+" span:not(."+_.BOLD_CLASS+") { font-weight: "+this._optionsService.rawOptions.fontWeight+";}"+this._terminalSelector+" span."+_.BOLD_CLASS+" { font-weight: "+this._optionsService.rawOptions.fontWeightBold+";}"+this._terminalSelector+" span."+_.ITALIC_CLASS+" { font-style: italic;}",L+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",L+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",L+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+_.CURSOR_CLASS+"."+_.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+_.CURSOR_CLASS+"."+_.CURSOR_BLINK_CLASS+":not(."+_.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+_.CURSOR_CLASS+"."+_.CURSOR_BLINK_CLASS+"."+_.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+_.CURSOR_CLASS+"."+_.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+_.CURSOR_CLASS+"."+_.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.rawOptions.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+_.CURSOR_CLASS+"."+_.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",L+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionTransparent.css+";}",this._colors.ansi.forEach(function(T,H){L+=A._terminalSelector+" ."+y+H+" { color: "+T.css+"; }"+A._terminalSelector+" ."+C+H+" { background-color: "+T.css+"; }"}),L+=this._terminalSelector+" ."+y+v.INVERTED_DEFAULT_COLOR+" { color: "+d.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" ."+C+v.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.textContent=L},x.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},x.prototype._refreshRowElements=function(A,L){for(var T=this._rowElements.length;T<=L;T++){var H=document.createElement("div");this._rowContainer.appendChild(H),this._rowElements.push(H)}for(;this._rowElements.length>L;)this._rowContainer.removeChild(this._rowElements.pop())},x.prototype.onResize=function(A,L){this._refreshRowElements(A,L),this._updateDimensions()},x.prototype.onCharSizeChanged=function(){this._updateDimensions()},x.prototype.onBlur=function(){this._rowContainer.classList.remove(w)},x.prototype.onFocus=function(){this._rowContainer.classList.add(w)},x.prototype.onSelectionChanged=function(A,L,T){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(A&&L){var H=A[1]-this._bufferService.buffer.ydisp,P=L[1]-this._bufferService.buffer.ydisp,R=Math.max(H,0),I=Math.min(P,this._bufferService.rows-1);if(!(R>=this._bufferService.rows||I<0)){var M=document.createDocumentFragment();if(T)M.appendChild(this._createSelectionElement(R,A[0],L[0],I-R+1));else{var $=H===R?A[0]:0,V=R===P?L[0]:this._bufferService.cols;M.appendChild(this._createSelectionElement(R,$,V));var U=I-R-1;if(M.appendChild(this._createSelectionElement(R+1,0,this._bufferService.cols,U)),R!==I){var Y=P===I?L[0]:this._bufferService.cols;M.appendChild(this._createSelectionElement(I,0,Y))}}this._selectionContainer.appendChild(M)}}},x.prototype._createSelectionElement=function(A,L,T,H){H===void 0&&(H=1);var P=document.createElement("div");return P.style.height=H*this.dimensions.actualCellHeight+"px",P.style.top=A*this.dimensions.actualCellHeight+"px",P.style.left=L*this.dimensions.actualCellWidth+"px",P.style.width=this.dimensions.actualCellWidth*(T-L)+"px",P},x.prototype.onCursorMove=function(){},x.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},x.prototype.clear=function(){for(var A=0,L=this._rowElements;A<L.length;A++)L[A].innerText=""},x.prototype.renderRows=function(A,L){for(var T=this._bufferService.buffer.ybase+this._bufferService.buffer.y,H=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),P=this._optionsService.rawOptions.cursorBlink,R=A;R<=L;R++){var I=this._rowElements[R];I.innerText="";var M=R+this._bufferService.buffer.ydisp,$=this._bufferService.buffer.lines.get(M),V=this._optionsService.rawOptions.cursorStyle;I.appendChild(this._rowFactory.createRow($,M,M===T,V,H,P,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(x.prototype,"_terminalSelector",{get:function(){return"."+h+this._terminalClass},enumerable:!1,configurable:!0}),x.prototype._onLinkHover=function(A){this._setCellUnderline(A.x1,A.x2,A.y1,A.y2,A.cols,!0)},x.prototype._onLinkLeave=function(A){this._setCellUnderline(A.x1,A.x2,A.y1,A.y2,A.cols,!1)},x.prototype._setCellUnderline=function(A,L,T,H,P,R){for(;A!==L||T!==H;){var I=this._rowElements[T];if(!I)return;var M=I.children[A];M&&(M.style.textDecoration=R?"underline":"none"),++A>=P&&(A=0,T++)}},u([c(6,b.IInstantiationService),c(7,g.ICharSizeService),c(8,b.IOptionsService),c(9,b.IBufferService)],x)}(p.Disposable);i.DomRenderer=E},3787:function(o,i,s){var a=this&&this.__decorate||function(f,h,y,C){var w,S=arguments.length,E=S<3?h:C===null?C=Object.getOwnPropertyDescriptor(h,y):C;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(f,h,y,C);else for(var k=f.length-1;k>=0;k--)(w=f[k])&&(E=(S<3?w(E):S>3?w(h,y,E):w(h,y))||E);return S>3&&E&&Object.defineProperty(h,y,E),E},l=this&&this.__param||function(f,h){return function(y,C){h(y,C,f)}};Object.defineProperty(i,"__esModule",{value:!0}),i.DomRendererRowFactory=i.CURSOR_STYLE_UNDERLINE_CLASS=i.CURSOR_STYLE_BAR_CLASS=i.CURSOR_STYLE_BLOCK_CLASS=i.CURSOR_BLINK_CLASS=i.CURSOR_CLASS=i.STRIKETHROUGH_CLASS=i.UNDERLINE_CLASS=i.ITALIC_CLASS=i.DIM_CLASS=i.BOLD_CLASS=void 0;var u=s(8803),c=s(643),_=s(511),v=s(2585),p=s(4774),g=s(4725),b=s(4269);i.BOLD_CLASS="xterm-bold",i.DIM_CLASS="xterm-dim",i.ITALIC_CLASS="xterm-italic",i.UNDERLINE_CLASS="xterm-underline",i.STRIKETHROUGH_CLASS="xterm-strikethrough",i.CURSOR_CLASS="xterm-cursor",i.CURSOR_BLINK_CLASS="xterm-cursor-blink",i.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",i.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",i.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var m=function(){function f(h,y,C,w,S){this._document=h,this._colors=y,this._characterJoinerService=C,this._optionsService=w,this._coreService=S,this._workCell=new _.CellData}return f.prototype.setColors=function(h){this._colors=h},f.prototype.createRow=function(h,y,C,w,S,E,k,x){for(var A=this._document.createDocumentFragment(),L=this._characterJoinerService.getJoinedCharacters(y),T=0,H=Math.min(h.length,x)-1;H>=0;H--)if(h.loadCell(H,this._workCell).getCode()!==c.NULL_CELL_CODE||C&&H===S){T=H+1;break}for(H=0;H<T;H++){h.loadCell(H,this._workCell);var P=this._workCell.getWidth();if(P!==0){var R=!1,I=H,M=this._workCell;if(L.length>0&&H===L[0][0]){R=!0;var $=L.shift();M=new b.JoinedCellData(this._workCell,h.translateToString(!0,$[0],$[1]),$[1]-$[0]),I=$[1]-1,P=M.getWidth()}var V=this._document.createElement("span");if(P>1&&(V.style.width=k*P+"px"),R&&(V.style.display="inline",S>=H&&S<=I&&(S=H)),!this._coreService.isCursorHidden&&C&&H===S)switch(V.classList.add(i.CURSOR_CLASS),E&&V.classList.add(i.CURSOR_BLINK_CLASS),w){case"bar":V.classList.add(i.CURSOR_STYLE_BAR_CLASS);break;case"underline":V.classList.add(i.CURSOR_STYLE_UNDERLINE_CLASS);break;default:V.classList.add(i.CURSOR_STYLE_BLOCK_CLASS)}M.isBold()&&V.classList.add(i.BOLD_CLASS),M.isItalic()&&V.classList.add(i.ITALIC_CLASS),M.isDim()&&V.classList.add(i.DIM_CLASS),M.isUnderline()&&V.classList.add(i.UNDERLINE_CLASS),M.isInvisible()?V.textContent=c.WHITESPACE_CELL_CHAR:V.textContent=M.getChars()||c.WHITESPACE_CELL_CHAR,M.isStrikethrough()&&V.classList.add(i.STRIKETHROUGH_CLASS);var U=M.getFgColor(),Y=M.getFgColorMode(),Z=M.getBgColor(),te=M.getBgColorMode(),B=!!M.isInverse();if(B){var z=U;U=Z,Z=z;var O=Y;Y=te,te=O}switch(Y){case 16777216:case 33554432:M.isBold()&&U<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(U+=8),this._applyMinimumContrast(V,this._colors.background,this._colors.ansi[U])||V.classList.add("xterm-fg-"+U);break;case 50331648:var D=p.rgba.toColor(U>>16&255,U>>8&255,255&U);this._applyMinimumContrast(V,this._colors.background,D)||this._addStyle(V,"color:#"+d(U.toString(16),"0",6));break;default:this._applyMinimumContrast(V,this._colors.background,this._colors.foreground)||B&&V.classList.add("xterm-fg-"+u.INVERTED_DEFAULT_COLOR)}switch(te){case 16777216:case 33554432:V.classList.add("xterm-bg-"+Z);break;case 50331648:this._addStyle(V,"background-color:#"+d(Z.toString(16),"0",6));break;default:B&&V.classList.add("xterm-bg-"+u.INVERTED_DEFAULT_COLOR)}A.appendChild(V),H=I}}return A},f.prototype._applyMinimumContrast=function(h,y,C){if(this._optionsService.rawOptions.minimumContrastRatio===1)return!1;var w=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return w===void 0&&(w=p.color.ensureContrastRatio(y,C,this._optionsService.rawOptions.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,w!=null?w:null)),!!w&&(this._addStyle(h,"color:"+w.css),!0)},f.prototype._addStyle=function(h,y){h.setAttribute("style",""+(h.getAttribute("style")||"")+y+";")},a([l(2,g.ICharacterJoinerService),l(3,v.IOptionsService),l(4,v.ICoreService)],f)}();function d(f,h,y){for(;f.length<y;)f=h+f;return f}i.DomRendererRowFactory=m},456:(o,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.SelectionModel=void 0;var s=function(){function a(l){this._bufferService=l,this.isSelectAllActive=!1,this.selectionStartLength=0}return a.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(a.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var l=this.selectionStart[0]+this.selectionStartLength;return l>this._bufferService.cols?l%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(l/this._bufferService.cols)-1]:[l%this._bufferService.cols,this.selectionStart[1]+Math.floor(l/this._bufferService.cols)]:[l,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!1,configurable:!0}),a.prototype.areSelectionValuesReversed=function(){var l=this.selectionStart,u=this.selectionEnd;return!(!l||!u)&&(l[1]>u[1]||l[1]===u[1]&&l[0]>u[0])},a.prototype.onTrim=function(l){return this.selectionStart&&(this.selectionStart[1]-=l),this.selectionEnd&&(this.selectionEnd[1]-=l),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},a}();i.SelectionModel=s},428:function(o,i,s){var a=this&&this.__decorate||function(p,g,b,m){var d,f=arguments.length,h=f<3?g:m===null?m=Object.getOwnPropertyDescriptor(g,b):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(p,g,b,m);else for(var y=p.length-1;y>=0;y--)(d=p[y])&&(h=(f<3?d(h):f>3?d(g,b,h):d(g,b))||h);return f>3&&h&&Object.defineProperty(g,b,h),h},l=this&&this.__param||function(p,g){return function(b,m){g(b,m,p)}};Object.defineProperty(i,"__esModule",{value:!0}),i.CharSizeService=void 0;var u=s(2585),c=s(8460),_=function(){function p(g,b,m){this._optionsService=m,this.width=0,this.height=0,this._onCharSizeChange=new c.EventEmitter,this._measureStrategy=new v(g,b,this._optionsService)}return Object.defineProperty(p.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),p.prototype.measure=function(){var g=this._measureStrategy.measure();g.width===this.width&&g.height===this.height||(this.width=g.width,this.height=g.height,this._onCharSizeChange.fire())},a([l(2,u.IOptionsService)],p)}();i.CharSizeService=_;var v=function(){function p(g,b,m){this._document=g,this._parentElement=b,this._optionsService=m,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return p.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var g=this._measureElement.getBoundingClientRect();return g.width!==0&&g.height!==0&&(this._result.width=g.width,this._result.height=Math.ceil(g.height)),this._result},p}()},4269:function(o,i,s){var a,l=this&&this.__extends||(a=function(d,f){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var C in y)Object.prototype.hasOwnProperty.call(y,C)&&(h[C]=y[C])},a(d,f)},function(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function h(){this.constructor=d}a(d,f),d.prototype=f===null?Object.create(f):(h.prototype=f.prototype,new h)}),u=this&&this.__decorate||function(d,f,h,y){var C,w=arguments.length,S=w<3?f:y===null?y=Object.getOwnPropertyDescriptor(f,h):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(d,f,h,y);else for(var E=d.length-1;E>=0;E--)(C=d[E])&&(S=(w<3?C(S):w>3?C(f,h,S):C(f,h))||S);return w>3&&S&&Object.defineProperty(f,h,S),S},c=this&&this.__param||function(d,f){return function(h,y){f(h,y,d)}};Object.defineProperty(i,"__esModule",{value:!0}),i.CharacterJoinerService=i.JoinedCellData=void 0;var _=s(3734),v=s(643),p=s(511),g=s(2585),b=function(d){function f(h,y,C){var w=d.call(this)||this;return w.content=0,w.combinedData="",w.fg=h.fg,w.bg=h.bg,w.combinedData=y,w._width=C,w}return l(f,d),f.prototype.isCombined=function(){return 2097152},f.prototype.getWidth=function(){return this._width},f.prototype.getChars=function(){return this.combinedData},f.prototype.getCode=function(){return 2097151},f.prototype.setFromCharData=function(h){throw new Error("not implemented")},f.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},f}(_.AttributeData);i.JoinedCellData=b;var m=function(){function d(f){this._bufferService=f,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new p.CellData}return d.prototype.register=function(f){var h={id:this._nextCharacterJoinerId++,handler:f};return this._characterJoiners.push(h),h.id},d.prototype.deregister=function(f){for(var h=0;h<this._characterJoiners.length;h++)if(this._characterJoiners[h].id===f)return this._characterJoiners.splice(h,1),!0;return!1},d.prototype.getJoinedCharacters=function(f){if(this._characterJoiners.length===0)return[];var h=this._bufferService.buffer.lines.get(f);if(!h||h.length===0)return[];for(var y=[],C=h.translateToString(!0),w=0,S=0,E=0,k=h.getFg(0),x=h.getBg(0),A=0;A<h.getTrimmedLength();A++)if(h.loadCell(A,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==k||this._workCell.bg!==x){if(A-w>1)for(var L=this._getJoinedRanges(C,E,S,h,w),T=0;T<L.length;T++)y.push(L[T]);w=A,E=S,k=this._workCell.fg,x=this._workCell.bg}S+=this._workCell.getChars().length||v.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-w>1)for(L=this._getJoinedRanges(C,E,S,h,w),T=0;T<L.length;T++)y.push(L[T]);return y},d.prototype._getJoinedRanges=function(f,h,y,C,w){var S=f.substring(h,y),E=[];try{E=this._characterJoiners[0].handler(S)}catch(L){console.error(L)}for(var k=1;k<this._characterJoiners.length;k++)try{for(var x=this._characterJoiners[k].handler(S),A=0;A<x.length;A++)d._mergeRanges(E,x[A])}catch(L){console.error(L)}return this._stringRangesToCellRanges(E,C,w),E},d.prototype._stringRangesToCellRanges=function(f,h,y){var C=0,w=!1,S=0,E=f[C];if(E){for(var k=y;k<this._bufferService.cols;k++){var x=h.getWidth(k),A=h.getString(k).length||v.WHITESPACE_CELL_CHAR.length;if(x!==0){if(!w&&E[0]<=S&&(E[0]=k,w=!0),E[1]<=S){if(E[1]=k,!(E=f[++C]))break;E[0]<=S?(E[0]=k,w=!0):w=!1}S+=A}}E&&(E[1]=this._bufferService.cols)}},d._mergeRanges=function(f,h){for(var y=!1,C=0;C<f.length;C++){var w=f[C];if(y){if(h[1]<=w[0])return f[C-1][1]=h[1],f;if(h[1]<=w[1])return f[C-1][1]=Math.max(h[1],w[1]),f.splice(C,1),f;f.splice(C,1),C--}else{if(h[1]<=w[0])return f.splice(C,0,h),f;if(h[1]<=w[1])return w[0]=Math.min(h[0],w[0]),f;h[0]<w[1]&&(w[0]=Math.min(h[0],w[0]),y=!0)}}return y?f[f.length-1][1]=h[1]:f.push(h),f},d=u([c(0,g.IBufferService)],d)}();i.CharacterJoinerService=m},5114:(o,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.CoreBrowserService=void 0;var s=function(){function a(l){this._textarea=l}return Object.defineProperty(a.prototype,"isFocused",{get:function(){return(this._textarea.getRootNode?this._textarea.getRootNode():document).activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),a}();i.CoreBrowserService=s},7641:function(o,i,s){var a,l=this&&this.__extends||(a=function(m,d){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var y in h)Object.prototype.hasOwnProperty.call(h,y)&&(f[y]=h[y])},a(m,d)},function(m,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function f(){this.constructor=m}a(m,d),m.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}),u=this&&this.__decorate||function(m,d,f,h){var y,C=arguments.length,w=C<3?d:h===null?h=Object.getOwnPropertyDescriptor(d,f):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(m,d,f,h);else for(var S=m.length-1;S>=0;S--)(y=m[S])&&(w=(C<3?y(w):C>3?y(d,f,w):y(d,f))||w);return C>3&&w&&Object.defineProperty(d,f,w),w},c=this&&this.__param||function(m,d){return function(f,h){d(f,h,m)}};Object.defineProperty(i,"__esModule",{value:!0}),i.Decoration=i.DecorationService=void 0;var _=s(8460),v=s(844),p=s(2585),g=function(m){function d(f){var h=m.call(this)||this;return h._instantiationService=f,h._decorations=[],h}return l(d,m),d.prototype.attachToDom=function(f,h){var y=this;this._renderService=h,this._screenElement=f,this._container=document.createElement("div"),this._container.classList.add("xterm-decoration-container"),f.appendChild(this._container),this.register(this._renderService.onRenderedBufferChange(function(){return y.refresh()})),this.register(this._renderService.onDimensionsChange(function(){return y.refresh(!0)}))},d.prototype.registerDecoration=function(f){var h=this;if(!f.marker.isDisposed&&this._container){var y=this._instantiationService.createInstance(b,f,this._container);return this._decorations.push(y),y.onDispose(function(){return h._decorations.splice(h._decorations.indexOf(y),1)}),this._queueRefresh(),y}},d.prototype._queueRefresh=function(){var f=this;this._animationFrame===void 0&&(this._animationFrame=window.requestAnimationFrame(function(){f.refresh(),f._animationFrame=void 0}))},d.prototype.refresh=function(f){if(this._renderService)for(var h=0,y=this._decorations;h<y.length;h++)y[h].render(this._renderService,f)},d.prototype.dispose=function(){for(var f=0,h=this._decorations;f<h.length;f++)h[f].dispose();this._screenElement&&this._container&&this._screenElement.contains(this._container)&&this._screenElement.removeChild(this._container)},u([c(0,p.IInstantiationService)],d)}(v.Disposable);i.DecorationService=g;var b=function(m){function d(f,h,y){var C,w=m.call(this)||this;return w._container=h,w._bufferService=y,w.isDisposed=!1,w._onDispose=new _.EventEmitter,w._onRender=new _.EventEmitter,w.x=(C=f.x)!==null&&C!==void 0?C:0,w._marker=f.marker,w._marker.onDispose(function(){return w.dispose()}),w.anchor=f.anchor||"left",w.width=f.width||1,w.height=f.height||1,w}return l(d,m),Object.defineProperty(d.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"marker",{get:function(){return this._marker},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),d.prototype.render=function(f,h){this._element&&!h||this._createElement(f,h),this._container&&this._element&&!this._container.contains(this._element)&&this._container.append(this._element),this._refreshStyle(f),this._element&&this._onRender.fire(this._element)},d.prototype._createElement=function(f,h){h&&this._element&&this._container.contains(this._element)&&this._container.removeChild(this._element),this._element=document.createElement("div"),this._element.classList.add("xterm-decoration"),this._element.style.width=this.width*f.dimensions.actualCellWidth+"px",this._element.style.height=this.height*f.dimensions.actualCellHeight+"px",this._element.style.top=(this.marker.line-this._bufferService.buffers.active.ydisp)*f.dimensions.actualCellHeight+"px",this._element.style.lineHeight=f.dimensions.actualCellHeight+"px",this.x&&this.x>this._bufferService.cols&&(this._element.style.display="none"),this.anchor==="right"?this._element.style.right=this.x?this.x*f.dimensions.actualCellWidth+"px":"":this._element.style.left=this.x?this.x*f.dimensions.actualCellWidth+"px":""},d.prototype._refreshStyle=function(f){if(this._element){var h=this.marker.line-this._bufferService.buffers.active.ydisp;h<0||h>this._bufferService.rows?this._element.style.display="none":(this._element.style.top=h*f.dimensions.actualCellHeight+"px",this._element.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?"none":"block")}},d.prototype.dispose=function(){this.isDisposed||(this._element&&this._container.contains(this._element)&&this._container.removeChild(this._element),this.isDisposed=!0,this._onDispose.fire())},u([c(2,p.IBufferService)],d)}(v.Disposable);i.Decoration=b},8934:function(o,i,s){var a=this&&this.__decorate||function(v,p,g,b){var m,d=arguments.length,f=d<3?p:b===null?b=Object.getOwnPropertyDescriptor(p,g):b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(v,p,g,b);else for(var h=v.length-1;h>=0;h--)(m=v[h])&&(f=(d<3?m(f):d>3?m(p,g,f):m(p,g))||f);return d>3&&f&&Object.defineProperty(p,g,f),f},l=this&&this.__param||function(v,p){return function(g,b){p(g,b,v)}};Object.defineProperty(i,"__esModule",{value:!0}),i.MouseService=void 0;var u=s(4725),c=s(9806),_=function(){function v(p,g){this._renderService=p,this._charSizeService=g}return v.prototype.getCoords=function(p,g,b,m,d){return(0,c.getCoords)(p,g,b,m,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,d)},v.prototype.getRawByteCoords=function(p,g,b,m){var d=this.getCoords(p,g,b,m);return(0,c.getRawByteCoords)(d)},a([l(0,u.IRenderService),l(1,u.ICharSizeService)],v)}();i.MouseService=_},3230:function(o,i,s){var a,l=this&&this.__extends||(a=function(h,y){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,w){C.__proto__=w}||function(C,w){for(var S in w)Object.prototype.hasOwnProperty.call(w,S)&&(C[S]=w[S])},a(h,y)},function(h,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function C(){this.constructor=h}a(h,y),h.prototype=y===null?Object.create(y):(C.prototype=y.prototype,new C)}),u=this&&this.__decorate||function(h,y,C,w){var S,E=arguments.length,k=E<3?y:w===null?w=Object.getOwnPropertyDescriptor(y,C):w;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(h,y,C,w);else for(var x=h.length-1;x>=0;x--)(S=h[x])&&(k=(E<3?S(k):E>3?S(y,C,k):S(y,C))||k);return E>3&&k&&Object.defineProperty(y,C,k),k},c=this&&this.__param||function(h,y){return function(C,w){y(C,w,h)}};Object.defineProperty(i,"__esModule",{value:!0}),i.RenderService=void 0;var _=s(6193),v=s(8460),p=s(844),g=s(5596),b=s(3656),m=s(2585),d=s(4725),f=function(h){function y(C,w,S,E,k,x){var A=h.call(this)||this;if(A._renderer=C,A._rowCount=w,A._charSizeService=k,A._isPaused=!1,A._needsFullRefresh=!1,A._isNextRenderRedrawOnly=!0,A._needsSelectionRefresh=!1,A._canvasWidth=0,A._canvasHeight=0,A._selectionState={start:void 0,end:void 0,columnSelectMode:!1},A._onDimensionsChange=new v.EventEmitter,A._onRender=new v.EventEmitter,A._onRefreshRequest=new v.EventEmitter,A.register({dispose:function(){return A._renderer.dispose()}}),A._renderDebouncer=new _.RenderDebouncer(function(T,H){return A._renderRows(T,H)}),A.register(A._renderDebouncer),A._screenDprMonitor=new g.ScreenDprMonitor,A._screenDprMonitor.setListener(function(){return A.onDevicePixelRatioChange()}),A.register(A._screenDprMonitor),A.register(x.onResize(function(){return A._fullRefresh()})),A.register(x.buffers.onBufferActivate(function(){var T;return(T=A._renderer)===null||T===void 0?void 0:T.clear()})),A.register(E.onOptionChange(function(){return A._renderer.onOptionsChanged()})),A.register(A._charSizeService.onCharSizeChange(function(){return A.onCharSizeChanged()})),A._renderer.onRequestRedraw(function(T){return A.refreshRows(T.start,T.end,!0)}),A.register((0,b.addDisposableDomListener)(window,"resize",function(){return A.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var L=new IntersectionObserver(function(T){return A._onIntersectionChange(T[T.length-1])},{threshold:0});L.observe(S),A.register({dispose:function(){return L.disconnect()}})}return A}return l(y,h),Object.defineProperty(y.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),y.prototype._onIntersectionChange=function(C){this._isPaused=C.isIntersecting===void 0?C.intersectionRatio===0:!C.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},y.prototype.refreshRows=function(C,w,S){S===void 0&&(S=!1),this._isPaused?this._needsFullRefresh=!0:(S||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(C,w,this._rowCount))},y.prototype._renderRows=function(C,w){this._renderer.renderRows(C,w),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:C,end:w}),this._isNextRenderRedrawOnly=!0},y.prototype.resize=function(C,w){this._rowCount=w,this._fireOnCanvasResize()},y.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},y.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},y.prototype.dispose=function(){h.prototype.dispose.call(this)},y.prototype.setRenderer=function(C){var w=this;this._renderer.dispose(),this._renderer=C,this._renderer.onRequestRedraw(function(S){return w.refreshRows(S.start,S.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},y.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},y.prototype.clearTextureAtlas=function(){var C,w;(w=(C=this._renderer)===null||C===void 0?void 0:C.clearTextureAtlas)===null||w===void 0||w.call(C),this._fullRefresh()},y.prototype.setColors=function(C){this._renderer.setColors(C),this._fullRefresh()},y.prototype.onDevicePixelRatioChange=function(){this._charSizeService.measure(),this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},y.prototype.onResize=function(C,w){this._renderer.onResize(C,w),this._fullRefresh()},y.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},y.prototype.onBlur=function(){this._renderer.onBlur()},y.prototype.onFocus=function(){this._renderer.onFocus()},y.prototype.onSelectionChanged=function(C,w,S){this._selectionState.start=C,this._selectionState.end=w,this._selectionState.columnSelectMode=S,this._renderer.onSelectionChanged(C,w,S)},y.prototype.onCursorMove=function(){this._renderer.onCursorMove()},y.prototype.clear=function(){this._renderer.clear()},u([c(3,m.IOptionsService),c(4,d.ICharSizeService),c(5,m.IBufferService)],y)}(p.Disposable);i.RenderService=f},9312:function(o,i,s){var a,l=this&&this.__extends||(a=function(E,k){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,A){x.__proto__=A}||function(x,A){for(var L in A)Object.prototype.hasOwnProperty.call(A,L)&&(x[L]=A[L])},a(E,k)},function(E,k){if(typeof k!="function"&&k!==null)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");function x(){this.constructor=E}a(E,k),E.prototype=k===null?Object.create(k):(x.prototype=k.prototype,new x)}),u=this&&this.__decorate||function(E,k,x,A){var L,T=arguments.length,H=T<3?k:A===null?A=Object.getOwnPropertyDescriptor(k,x):A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")H=Reflect.decorate(E,k,x,A);else for(var P=E.length-1;P>=0;P--)(L=E[P])&&(H=(T<3?L(H):T>3?L(k,x,H):L(k,x))||H);return T>3&&H&&Object.defineProperty(k,x,H),H},c=this&&this.__param||function(E,k){return function(x,A){k(x,A,E)}};Object.defineProperty(i,"__esModule",{value:!0}),i.SelectionService=void 0;var _=s(6114),v=s(456),p=s(511),g=s(8460),b=s(4725),m=s(2585),d=s(9806),f=s(9504),h=s(844),y=s(4841),C=String.fromCharCode(160),w=new RegExp(C,"g"),S=function(E){function k(x,A,L,T,H,P,R,I){var M=E.call(this)||this;return M._element=x,M._screenElement=A,M._linkifier=L,M._bufferService=T,M._coreService=H,M._mouseService=P,M._optionsService=R,M._renderService=I,M._dragScrollAmount=0,M._enabled=!0,M._workCell=new p.CellData,M._mouseDownTimeStamp=0,M._oldHasSelection=!1,M._oldSelectionStart=void 0,M._oldSelectionEnd=void 0,M._onLinuxMouseSelection=M.register(new g.EventEmitter),M._onRedrawRequest=M.register(new g.EventEmitter),M._onSelectionChange=M.register(new g.EventEmitter),M._onRequestScrollLines=M.register(new g.EventEmitter),M._mouseMoveListener=function($){return M._onMouseMove($)},M._mouseUpListener=function($){return M._onMouseUp($)},M._coreService.onUserInput(function(){M.hasSelection&&M.clearSelection()}),M._trimListener=M._bufferService.buffer.lines.onTrim(function($){return M._onTrim($)}),M.register(M._bufferService.buffers.onBufferActivate(function($){return M._onBufferActivate($)})),M.enable(),M._model=new v.SelectionModel(M._bufferService),M._activeSelectionMode=0,M}return l(k,E),Object.defineProperty(k.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),k.prototype.dispose=function(){this._removeMouseDownListeners()},k.prototype.reset=function(){this.clearSelection()},k.prototype.disable=function(){this.clearSelection(),this._enabled=!1},k.prototype.enable=function(){this._enabled=!0},Object.defineProperty(k.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"hasSelection",{get:function(){var x=this._model.finalSelectionStart,A=this._model.finalSelectionEnd;return!(!x||!A||x[0]===A[0]&&x[1]===A[1])},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"selectionText",{get:function(){var x=this._model.finalSelectionStart,A=this._model.finalSelectionEnd;if(!x||!A)return"";var L=this._bufferService.buffer,T=[];if(this._activeSelectionMode===3){if(x[0]===A[0])return"";for(var H=x[1];H<=A[1];H++){var P=L.translateBufferLineToString(H,!0,x[0],A[0]);T.push(P)}}else{var R=x[1]===A[1]?A[0]:void 0;for(T.push(L.translateBufferLineToString(x[1],!0,x[0],R)),H=x[1]+1;H<=A[1]-1;H++){var I=L.lines.get(H);P=L.translateBufferLineToString(H,!0),I!=null&&I.isWrapped?T[T.length-1]+=P:T.push(P)}x[1]!==A[1]&&(I=L.lines.get(A[1]),P=L.translateBufferLineToString(A[1],!0,0,A[0]),I&&I.isWrapped?T[T.length-1]+=P:T.push(P))}return T.map(function(M){return M.replace(w," ")}).join(_.isWindows?`\r
`:`
`)},enumerable:!1,configurable:!0}),k.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},k.prototype.refresh=function(x){var A=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return A._refresh()})),_.isLinux&&x&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},k.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},k.prototype._isClickInSelection=function(x){var A=this._getMouseBufferCoords(x),L=this._model.finalSelectionStart,T=this._model.finalSelectionEnd;return!!(L&&T&&A)&&this._areCoordsInSelection(A,L,T)},k.prototype._areCoordsInSelection=function(x,A,L){return x[1]>A[1]&&x[1]<L[1]||A[1]===L[1]&&x[1]===A[1]&&x[0]>=A[0]&&x[0]<L[0]||A[1]<L[1]&&x[1]===L[1]&&x[0]<L[0]||A[1]<L[1]&&x[1]===A[1]&&x[0]>=A[0]},k.prototype._selectWordAtCursor=function(x,A){var L,T,H=(T=(L=this._linkifier.currentLink)===null||L===void 0?void 0:L.link)===null||T===void 0?void 0:T.range;if(H)return this._model.selectionStart=[H.start.x-1,H.start.y-1],this._model.selectionStartLength=(0,y.getRangeLength)(H,this._bufferService.cols),this._model.selectionEnd=void 0,!0;var P=this._getMouseBufferCoords(x);return!!P&&(this._selectWordAt(P,A),this._model.selectionEnd=void 0,!0)},k.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},k.prototype.selectLines=function(x,A){this._model.clearSelection(),x=Math.max(x,0),A=Math.min(A,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,x],this._model.selectionEnd=[this._bufferService.cols,A],this.refresh(),this._onSelectionChange.fire()},k.prototype._onTrim=function(x){this._model.onTrim(x)&&this.refresh()},k.prototype._getMouseBufferCoords=function(x){var A=this._mouseService.getCoords(x,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(A)return A[0]--,A[1]--,A[1]+=this._bufferService.buffer.ydisp,A},k.prototype._getMouseEventScrollAmount=function(x){var A=(0,d.getCoordsRelativeToElement)(x,this._screenElement)[1],L=this._renderService.dimensions.canvasHeight;return A>=0&&A<=L?0:(A>L&&(A-=L),A=Math.min(Math.max(A,-50),50),(A/=50)/Math.abs(A)+Math.round(14*A))},k.prototype.shouldForceSelection=function(x){return _.isMac?x.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:x.shiftKey},k.prototype.onMouseDown=function(x){if(this._mouseDownTimeStamp=x.timeStamp,(x.button!==2||!this.hasSelection)&&x.button===0){if(!this._enabled){if(!this.shouldForceSelection(x))return;x.stopPropagation()}x.preventDefault(),this._dragScrollAmount=0,this._enabled&&x.shiftKey?this._onIncrementalClick(x):x.detail===1?this._onSingleClick(x):x.detail===2?this._onDoubleClick(x):x.detail===3&&this._onTripleClick(x),this._addMouseDownListeners(),this.refresh(!0)}},k.prototype._addMouseDownListeners=function(){var x=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return x._dragScroll()},50)},k.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},k.prototype._onIncrementalClick=function(x){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(x))},k.prototype._onSingleClick=function(x){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(x)?3:0,this._model.selectionStart=this._getMouseBufferCoords(x),this._model.selectionStart){this._model.selectionEnd=void 0;var A=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);A&&A.length!==this._model.selectionStart[0]&&A.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},k.prototype._onDoubleClick=function(x){this._selectWordAtCursor(x,!0)&&(this._activeSelectionMode=1)},k.prototype._onTripleClick=function(x){var A=this._getMouseBufferCoords(x);A&&(this._activeSelectionMode=2,this._selectLineAt(A[1]))},k.prototype.shouldColumnSelect=function(x){return x.altKey&&!(_.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)},k.prototype._onMouseMove=function(x){if(x.stopImmediatePropagation(),this._model.selectionStart){var A=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(x),this._model.selectionEnd){this._activeSelectionMode===2?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:this._activeSelectionMode===1&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(x),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var L=this._bufferService.buffer;if(this._model.selectionEnd[1]<L.lines.length){var T=L.lines.get(this._model.selectionEnd[1]);T&&T.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}A&&A[0]===this._model.selectionEnd[0]&&A[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},k.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var x=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(x.ydisp+this._bufferService.rows,x.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=x.ydisp),this.refresh()}},k.prototype._onMouseUp=function(x){var A=x.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&A<500&&x.altKey&&this._optionsService.getOption("altClickMovesCursor")){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var L=this._mouseService.getCoords(x,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(L&&L[0]!==void 0&&L[1]!==void 0){var T=(0,f.moveToCellSequence)(L[0]-1,L[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(T,!0)}}}else this._fireEventIfSelectionChanged()},k.prototype._fireEventIfSelectionChanged=function(){var x=this._model.finalSelectionStart,A=this._model.finalSelectionEnd,L=!(!x||!A||x[0]===A[0]&&x[1]===A[1]);L?x&&A&&(this._oldSelectionStart&&this._oldSelectionEnd&&x[0]===this._oldSelectionStart[0]&&x[1]===this._oldSelectionStart[1]&&A[0]===this._oldSelectionEnd[0]&&A[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(x,A,L)):this._oldHasSelection&&this._fireOnSelectionChange(x,A,L)},k.prototype._fireOnSelectionChange=function(x,A,L){this._oldSelectionStart=x,this._oldSelectionEnd=A,this._oldHasSelection=L,this._onSelectionChange.fire()},k.prototype._onBufferActivate=function(x){var A=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=x.activeBuffer.lines.onTrim(function(L){return A._onTrim(L)})},k.prototype._convertViewportColToCharacterIndex=function(x,A){for(var L=A[0],T=0;A[0]>=T;T++){var H=x.loadCell(T,this._workCell).getChars().length;this._workCell.getWidth()===0?L--:H>1&&A[0]!==T&&(L+=H-1)}return L},k.prototype.setSelection=function(x,A,L){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[x,A],this._model.selectionStartLength=L,this.refresh()},k.prototype.rightClickSelect=function(x){this._isClickInSelection(x)||(this._selectWordAtCursor(x,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())},k.prototype._getWordAt=function(x,A,L,T){if(L===void 0&&(L=!0),T===void 0&&(T=!0),!(x[0]>=this._bufferService.cols)){var H=this._bufferService.buffer,P=H.lines.get(x[1]);if(P){var R=H.translateBufferLineToString(x[1],!1),I=this._convertViewportColToCharacterIndex(P,x),M=I,$=x[0]-I,V=0,U=0,Y=0,Z=0;if(R.charAt(I)===" "){for(;I>0&&R.charAt(I-1)===" ";)I--;for(;M<R.length&&R.charAt(M+1)===" ";)M++}else{var te=x[0],B=x[0];P.getWidth(te)===0&&(V++,te--),P.getWidth(B)===2&&(U++,B++);var z=P.getString(B).length;for(z>1&&(Z+=z-1,M+=z-1);te>0&&I>0&&!this._isCharWordSeparator(P.loadCell(te-1,this._workCell));){P.loadCell(te-1,this._workCell);var O=this._workCell.getChars().length;this._workCell.getWidth()===0?(V++,te--):O>1&&(Y+=O-1,I-=O-1),I--,te--}for(;B<P.length&&M+1<R.length&&!this._isCharWordSeparator(P.loadCell(B+1,this._workCell));){P.loadCell(B+1,this._workCell);var D=this._workCell.getChars().length;this._workCell.getWidth()===2?(U++,B++):D>1&&(Z+=D-1,M+=D-1),M++,B++}}M++;var F=I+$-V+Y,ue=Math.min(this._bufferService.cols,M-I+V+U-Y-Z);if(A||R.slice(I,M).trim()!==""){if(L&&F===0&&P.getCodePoint(0)!==32){var fe=H.lines.get(x[1]-1);if(fe&&P.isWrapped&&fe.getCodePoint(this._bufferService.cols-1)!==32){var ge=this._getWordAt([this._bufferService.cols-1,x[1]-1],!1,!0,!1);if(ge){var j=this._bufferService.cols-ge.start;F-=j,ue+=j}}}if(T&&F+ue===this._bufferService.cols&&P.getCodePoint(this._bufferService.cols-1)!==32){var q=H.lines.get(x[1]+1);if((q==null?void 0:q.isWrapped)&&q.getCodePoint(0)!==32){var ie=this._getWordAt([0,x[1]+1],!1,!1,!0);ie&&(ue+=ie.length)}}return{start:F,length:ue}}}}},k.prototype._selectWordAt=function(x,A){var L=this._getWordAt(x,A);if(L){for(;L.start<0;)L.start+=this._bufferService.cols,x[1]--;this._model.selectionStart=[L.start,x[1]],this._model.selectionStartLength=L.length}},k.prototype._selectToWordAt=function(x){var A=this._getWordAt(x,!0);if(A){for(var L=x[1];A.start<0;)A.start+=this._bufferService.cols,L--;if(!this._model.areSelectionValuesReversed())for(;A.start+A.length>this._bufferService.cols;)A.length-=this._bufferService.cols,L++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?A.start:A.start+A.length,L]}},k.prototype._isCharWordSeparator=function(x){return x.getWidth()!==0&&this._optionsService.rawOptions.wordSeparator.indexOf(x.getChars())>=0},k.prototype._selectLineAt=function(x){var A=this._bufferService.buffer.getWrappedRangeForLine(x);this._model.selectionStart=[0,A.first],this._model.selectionEnd=[this._bufferService.cols,A.last],this._model.selectionStartLength=0},u([c(3,m.IBufferService),c(4,m.ICoreService),c(5,b.IMouseService),c(6,m.IOptionsService),c(7,b.IRenderService)],k)}(h.Disposable);i.SelectionService=S},4725:(o,i,s)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.IDecorationService=i.ICharacterJoinerService=i.ISoundService=i.ISelectionService=i.IRenderService=i.IMouseService=i.ICoreBrowserService=i.ICharSizeService=void 0;var a=s(8343);i.ICharSizeService=(0,a.createDecorator)("CharSizeService"),i.ICoreBrowserService=(0,a.createDecorator)("CoreBrowserService"),i.IMouseService=(0,a.createDecorator)("MouseService"),i.IRenderService=(0,a.createDecorator)("RenderService"),i.ISelectionService=(0,a.createDecorator)("SelectionService"),i.ISoundService=(0,a.createDecorator)("SoundService"),i.ICharacterJoinerService=(0,a.createDecorator)("CharacterJoinerService"),i.IDecorationService=(0,a.createDecorator)("DecorationService")},357:function(o,i,s){var a=this&&this.__decorate||function(_,v,p,g){var b,m=arguments.length,d=m<3?v:g===null?g=Object.getOwnPropertyDescriptor(v,p):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(_,v,p,g);else for(var f=_.length-1;f>=0;f--)(b=_[f])&&(d=(m<3?b(d):m>3?b(v,p,d):b(v,p))||d);return m>3&&d&&Object.defineProperty(v,p,d),d},l=this&&this.__param||function(_,v){return function(p,g){v(p,g,_)}};Object.defineProperty(i,"__esModule",{value:!0}),i.SoundService=void 0;var u=s(2585),c=function(){function _(v){this._optionsService=v}return Object.defineProperty(_,"audioContext",{get:function(){if(!_._audioContext){var v=window.AudioContext||window.webkitAudioContext;if(!v)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;_._audioContext=new v}return _._audioContext},enumerable:!1,configurable:!0}),_.prototype.playBellSound=function(){var v=_.audioContext;if(v){var p=v.createBufferSource();v.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.rawOptions.bellSound)),function(g){p.buffer=g,p.connect(v.destination),p.start(0)})}},_.prototype._base64ToArrayBuffer=function(v){for(var p=window.atob(v),g=p.length,b=new Uint8Array(g),m=0;m<g;m++)b[m]=p.charCodeAt(m);return b.buffer},_.prototype._removeMimeType=function(v){return v.split(",")[1]},_=a([l(0,u.IOptionsService)],_)}();i.SoundService=c},6349:(o,i,s)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.CircularList=void 0;var a=s(8460),l=function(){function u(c){this._maxLength=c,this.onDeleteEmitter=new a.EventEmitter,this.onInsertEmitter=new a.EventEmitter,this.onTrimEmitter=new a.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(u.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"maxLength",{get:function(){return this._maxLength},set:function(c){if(this._maxLength!==c){for(var _=new Array(c),v=0;v<Math.min(c,this.length);v++)_[v]=this._array[this._getCyclicIndex(v)];this._array=_,this._maxLength=c,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"length",{get:function(){return this._length},set:function(c){if(c>this._length)for(var _=this._length;_<c;_++)this._array[_]=void 0;this._length=c},enumerable:!1,configurable:!0}),u.prototype.get=function(c){return this._array[this._getCyclicIndex(c)]},u.prototype.set=function(c,_){this._array[this._getCyclicIndex(c)]=_},u.prototype.push=function(c){this._array[this._getCyclicIndex(this._length)]=c,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},u.prototype.recycle=function(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]},Object.defineProperty(u.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),u.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},u.prototype.splice=function(c,_){for(var v=[],p=2;p<arguments.length;p++)v[p-2]=arguments[p];if(_){for(var g=c;g<this._length-_;g++)this._array[this._getCyclicIndex(g)]=this._array[this._getCyclicIndex(g+_)];this._length-=_,this.onDeleteEmitter.fire({index:c,amount:_})}for(g=this._length-1;g>=c;g--)this._array[this._getCyclicIndex(g+v.length)]=this._array[this._getCyclicIndex(g)];for(g=0;g<v.length;g++)this._array[this._getCyclicIndex(c+g)]=v[g];if(v.length&&this.onInsertEmitter.fire({index:c,amount:v.length}),this._length+v.length>this._maxLength){var b=this._length+v.length-this._maxLength;this._startIndex+=b,this._length=this._maxLength,this.onTrimEmitter.fire(b)}else this._length+=v.length},u.prototype.trimStart=function(c){c>this._length&&(c=this._length),this._startIndex+=c,this._length-=c,this.onTrimEmitter.fire(c)},u.prototype.shiftElements=function(c,_,v){if(!(_<=0)){if(c<0||c>=this._length)throw new Error("start argument out of range");if(c+v<0)throw new Error("Cannot shift elements in list beyond index 0");if(v>0){for(var p=_-1;p>=0;p--)this.set(c+p+v,this.get(c+p));var g=c+_+v-this._length;if(g>0)for(this._length+=g;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(p=0;p<_;p++)this.set(c+p+v,this.get(c+p))}},u.prototype._getCyclicIndex=function(c){return(this._startIndex+c)%this._maxLength},u}();i.CircularList=l},1439:(o,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.clone=void 0,i.clone=function s(a,l){if(l===void 0&&(l=5),typeof a!="object")return a;var u=Array.isArray(a)?[]:{};for(var c in a)u[c]=l<=1?a[c]:a[c]&&s(a[c],l-1);return u}},8969:function(o,i,s){var a,l=this&&this.__extends||(a=function(x,A){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,T){L.__proto__=T}||function(L,T){for(var H in T)Object.prototype.hasOwnProperty.call(T,H)&&(L[H]=T[H])},a(x,A)},function(x,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function L(){this.constructor=x}a(x,A),x.prototype=A===null?Object.create(A):(L.prototype=A.prototype,new L)});Object.defineProperty(i,"__esModule",{value:!0}),i.CoreTerminal=void 0;var u=s(844),c=s(2585),_=s(4348),v=s(7866),p=s(744),g=s(7302),b=s(6975),m=s(8460),d=s(1753),f=s(3730),h=s(1480),y=s(7994),C=s(9282),w=s(5435),S=s(5981),E=!1,k=function(x){function A(L){var T=x.call(this)||this;return T._onBinary=new m.EventEmitter,T._onData=new m.EventEmitter,T._onLineFeed=new m.EventEmitter,T._onResize=new m.EventEmitter,T._onScroll=new m.EventEmitter,T._instantiationService=new _.InstantiationService,T.optionsService=new g.OptionsService(L),T._instantiationService.setService(c.IOptionsService,T.optionsService),T._bufferService=T.register(T._instantiationService.createInstance(p.BufferService)),T._instantiationService.setService(c.IBufferService,T._bufferService),T._logService=T._instantiationService.createInstance(v.LogService),T._instantiationService.setService(c.ILogService,T._logService),T.coreService=T.register(T._instantiationService.createInstance(b.CoreService,function(){return T.scrollToBottom()})),T._instantiationService.setService(c.ICoreService,T.coreService),T.coreMouseService=T._instantiationService.createInstance(d.CoreMouseService),T._instantiationService.setService(c.ICoreMouseService,T.coreMouseService),T._dirtyRowService=T._instantiationService.createInstance(f.DirtyRowService),T._instantiationService.setService(c.IDirtyRowService,T._dirtyRowService),T.unicodeService=T._instantiationService.createInstance(h.UnicodeService),T._instantiationService.setService(c.IUnicodeService,T.unicodeService),T._charsetService=T._instantiationService.createInstance(y.CharsetService),T._instantiationService.setService(c.ICharsetService,T._charsetService),T._inputHandler=new w.InputHandler(T._bufferService,T._charsetService,T.coreService,T._dirtyRowService,T._logService,T.optionsService,T.coreMouseService,T.unicodeService),T.register((0,m.forwardEvent)(T._inputHandler.onLineFeed,T._onLineFeed)),T.register(T._inputHandler),T.register((0,m.forwardEvent)(T._bufferService.onResize,T._onResize)),T.register((0,m.forwardEvent)(T.coreService.onData,T._onData)),T.register((0,m.forwardEvent)(T.coreService.onBinary,T._onBinary)),T.register(T.optionsService.onOptionChange(function(H){return T._updateOptions(H)})),T.register(T._bufferService.onScroll(function(H){T._onScroll.fire({position:T._bufferService.buffer.ydisp,source:0}),T._dirtyRowService.markRangeDirty(T._bufferService.buffer.scrollTop,T._bufferService.buffer.scrollBottom)})),T.register(T._inputHandler.onScroll(function(H){T._onScroll.fire({position:T._bufferService.buffer.ydisp,source:0}),T._dirtyRowService.markRangeDirty(T._bufferService.buffer.scrollTop,T._bufferService.buffer.scrollBottom)})),T._writeBuffer=new S.WriteBuffer(function(H,P){return T._inputHandler.parse(H,P)}),T}return l(A,x),Object.defineProperty(A.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"onScroll",{get:function(){var L=this;return this._onScrollApi||(this._onScrollApi=new m.EventEmitter,this.register(this._onScroll.event(function(T){var H;(H=L._onScrollApi)===null||H===void 0||H.fire(T.position)}))),this._onScrollApi.event},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"options",{get:function(){return this.optionsService.options},set:function(L){for(var T in L)this.optionsService.options[T]=L[T]},enumerable:!1,configurable:!0}),A.prototype.dispose=function(){var L;this._isDisposed||(x.prototype.dispose.call(this),(L=this._windowsMode)===null||L===void 0||L.dispose(),this._windowsMode=void 0)},A.prototype.write=function(L,T){this._writeBuffer.write(L,T)},A.prototype.writeSync=function(L,T){this._logService.logLevel<=c.LogLevelEnum.WARN&&!E&&(this._logService.warn("writeSync is unreliable and will be removed soon."),E=!0),this._writeBuffer.writeSync(L,T)},A.prototype.resize=function(L,T){isNaN(L)||isNaN(T)||(L=Math.max(L,p.MINIMUM_COLS),T=Math.max(T,p.MINIMUM_ROWS),this._bufferService.resize(L,T))},A.prototype.scroll=function(L,T){T===void 0&&(T=!1),this._bufferService.scroll(L,T)},A.prototype.scrollLines=function(L,T,H){this._bufferService.scrollLines(L,T,H)},A.prototype.scrollPages=function(L){this._bufferService.scrollPages(L)},A.prototype.scrollToTop=function(){this._bufferService.scrollToTop()},A.prototype.scrollToBottom=function(){this._bufferService.scrollToBottom()},A.prototype.scrollToLine=function(L){this._bufferService.scrollToLine(L)},A.prototype.registerEscHandler=function(L,T){return this._inputHandler.registerEscHandler(L,T)},A.prototype.registerDcsHandler=function(L,T){return this._inputHandler.registerDcsHandler(L,T)},A.prototype.registerCsiHandler=function(L,T){return this._inputHandler.registerCsiHandler(L,T)},A.prototype.registerOscHandler=function(L,T){return this._inputHandler.registerOscHandler(L,T)},A.prototype._setup=function(){this.optionsService.rawOptions.windowsMode&&this._enableWindowsMode()},A.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()},A.prototype._updateOptions=function(L){var T;switch(L){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.rawOptions.windowsMode?this._enableWindowsMode():((T=this._windowsMode)===null||T===void 0||T.dispose(),this._windowsMode=void 0)}},A.prototype._enableWindowsMode=function(){var L=this;if(!this._windowsMode){var T=[];T.push(this.onLineFeed(C.updateWindowsModeWrappedState.bind(null,this._bufferService))),T.push(this.registerCsiHandler({final:"H"},function(){return(0,C.updateWindowsModeWrappedState)(L._bufferService),!1})),this._windowsMode={dispose:function(){for(var H=0,P=T;H<P.length;H++)P[H].dispose()}}}},A}(u.Disposable);i.CoreTerminal=k},8460:(o,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.forwardEvent=i.EventEmitter=void 0;var s=function(){function a(){this._listeners=[],this._disposed=!1}return Object.defineProperty(a.prototype,"event",{get:function(){var l=this;return this._event||(this._event=function(u){return l._listeners.push(u),{dispose:function(){if(!l._disposed){for(var c=0;c<l._listeners.length;c++)if(l._listeners[c]===u)return void l._listeners.splice(c,1)}}}}),this._event},enumerable:!1,configurable:!0}),a.prototype.fire=function(l,u){for(var c=[],_=0;_<this._listeners.length;_++)c.push(this._listeners[_]);for(_=0;_<c.length;_++)c[_].call(void 0,l,u)},a.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},a}();i.EventEmitter=s,i.forwardEvent=function(a,l){return a(function(u){return l.fire(u)})}},5435:function(o,i,s){var a,l=this&&this.__extends||(a=function(H,P){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,I){R.__proto__=I}||function(R,I){for(var M in I)Object.prototype.hasOwnProperty.call(I,M)&&(R[M]=I[M])},a(H,P)},function(H,P){if(typeof P!="function"&&P!==null)throw new TypeError("Class extends value "+String(P)+" is not a constructor or null");function R(){this.constructor=H}a(H,P),H.prototype=P===null?Object.create(P):(R.prototype=P.prototype,new R)});Object.defineProperty(i,"__esModule",{value:!0}),i.InputHandler=i.WindowsOptionsReportType=void 0;var u,c=s(2584),_=s(7116),v=s(2015),p=s(844),g=s(8273),b=s(482),m=s(8437),d=s(8460),f=s(643),h=s(511),y=s(3734),C=s(2585),w=s(6242),S=s(6351),E=s(5941),k={"(":0,")":1,"*":2,"+":3,"-":1,".":2},x=131072;function A(H,P){if(H>24)return P.setWinLines||!1;switch(H){case 1:return!!P.restoreWin;case 2:return!!P.minimizeWin;case 3:return!!P.setWinPosition;case 4:return!!P.setWinSizePixels;case 5:return!!P.raiseWin;case 6:return!!P.lowerWin;case 7:return!!P.refreshWin;case 8:return!!P.setWinSizeChars;case 9:return!!P.maximizeWin;case 10:return!!P.fullscreenWin;case 11:return!!P.getWinState;case 13:return!!P.getWinPosition;case 14:return!!P.getWinSizePixels;case 15:return!!P.getScreenSizePixels;case 16:return!!P.getCellSizePixels;case 18:return!!P.getWinSizeChars;case 19:return!!P.getScreenSizeChars;case 20:return!!P.getIconTitle;case 21:return!!P.getWinTitle;case 22:return!!P.pushTitle;case 23:return!!P.popTitle;case 24:return!!P.setWinLines}return!1}(function(H){H[H.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",H[H.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(u=i.WindowsOptionsReportType||(i.WindowsOptionsReportType={}));var L=function(){function H(P,R,I,M){this._bufferService=P,this._coreService=R,this._logService=I,this._optionsService=M,this._data=new Uint32Array(0)}return H.prototype.hook=function(P){this._data=new Uint32Array(0)},H.prototype.put=function(P,R,I){this._data=(0,g.concat)(this._data,P.subarray(R,I))},H.prototype.unhook=function(P){if(!P)return this._data=new Uint32Array(0),!0;var R=(0,b.utf32ToString)(this._data);switch(this._data=new Uint32Array(0),R){case'"q':this._coreService.triggerDataEvent(c.C0.ESC+'P1$r0"q'+c.C0.ESC+"\\");break;case'"p':this._coreService.triggerDataEvent(c.C0.ESC+'P1$r61;1"p'+c.C0.ESC+"\\");break;case"r":var I=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";this._coreService.triggerDataEvent(c.C0.ESC+"P1$r"+I+c.C0.ESC+"\\");break;case"m":this._coreService.triggerDataEvent(c.C0.ESC+"P1$r0m"+c.C0.ESC+"\\");break;case" q":var M={block:2,underline:4,bar:6}[this._optionsService.rawOptions.cursorStyle];M-=this._optionsService.rawOptions.cursorBlink?1:0,this._coreService.triggerDataEvent(c.C0.ESC+"P1$r"+M+" q"+c.C0.ESC+"\\");break;default:this._logService.debug("Unknown DCS $q %s",R),this._coreService.triggerDataEvent(c.C0.ESC+"P0$r"+c.C0.ESC+"\\")}return!0},H}(),T=function(H){function P(R,I,M,$,V,U,Y,Z,te){te===void 0&&(te=new v.EscapeSequenceParser);var B=H.call(this)||this;B._bufferService=R,B._charsetService=I,B._coreService=M,B._dirtyRowService=$,B._logService=V,B._optionsService=U,B._coreMouseService=Y,B._unicodeService=Z,B._parser=te,B._parseBuffer=new Uint32Array(4096),B._stringDecoder=new b.StringToUtf32,B._utf8Decoder=new b.Utf8ToUtf32,B._workCell=new h.CellData,B._windowTitle="",B._iconName="",B._windowTitleStack=[],B._iconNameStack=[],B._curAttrData=m.DEFAULT_ATTR_DATA.clone(),B._eraseAttrDataInternal=m.DEFAULT_ATTR_DATA.clone(),B._onRequestBell=new d.EventEmitter,B._onRequestRefreshRows=new d.EventEmitter,B._onRequestReset=new d.EventEmitter,B._onRequestSendFocus=new d.EventEmitter,B._onRequestSyncScrollBar=new d.EventEmitter,B._onRequestWindowsOptionsReport=new d.EventEmitter,B._onA11yChar=new d.EventEmitter,B._onA11yTab=new d.EventEmitter,B._onCursorMove=new d.EventEmitter,B._onLineFeed=new d.EventEmitter,B._onScroll=new d.EventEmitter,B._onTitleChange=new d.EventEmitter,B._onColor=new d.EventEmitter,B._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},B._specialColors=[256,257,258],B.register(B._parser),B._activeBuffer=B._bufferService.buffer,B.register(B._bufferService.buffers.onBufferActivate(function(F){return B._activeBuffer=F.activeBuffer})),B._parser.setCsiHandlerFallback(function(F,ue){B._logService.debug("Unknown CSI code: ",{identifier:B._parser.identToString(F),params:ue.toArray()})}),B._parser.setEscHandlerFallback(function(F){B._logService.debug("Unknown ESC code: ",{identifier:B._parser.identToString(F)})}),B._parser.setExecuteHandlerFallback(function(F){B._logService.debug("Unknown EXECUTE code: ",{code:F})}),B._parser.setOscHandlerFallback(function(F,ue,fe){B._logService.debug("Unknown OSC code: ",{identifier:F,action:ue,data:fe})}),B._parser.setDcsHandlerFallback(function(F,ue,fe){ue==="HOOK"&&(fe=fe.toArray()),B._logService.debug("Unknown DCS code: ",{identifier:B._parser.identToString(F),action:ue,payload:fe})}),B._parser.setPrintHandler(function(F,ue,fe){return B.print(F,ue,fe)}),B._parser.registerCsiHandler({final:"@"},function(F){return B.insertChars(F)}),B._parser.registerCsiHandler({intermediates:" ",final:"@"},function(F){return B.scrollLeft(F)}),B._parser.registerCsiHandler({final:"A"},function(F){return B.cursorUp(F)}),B._parser.registerCsiHandler({intermediates:" ",final:"A"},function(F){return B.scrollRight(F)}),B._parser.registerCsiHandler({final:"B"},function(F){return B.cursorDown(F)}),B._parser.registerCsiHandler({final:"C"},function(F){return B.cursorForward(F)}),B._parser.registerCsiHandler({final:"D"},function(F){return B.cursorBackward(F)}),B._parser.registerCsiHandler({final:"E"},function(F){return B.cursorNextLine(F)}),B._parser.registerCsiHandler({final:"F"},function(F){return B.cursorPrecedingLine(F)}),B._parser.registerCsiHandler({final:"G"},function(F){return B.cursorCharAbsolute(F)}),B._parser.registerCsiHandler({final:"H"},function(F){return B.cursorPosition(F)}),B._parser.registerCsiHandler({final:"I"},function(F){return B.cursorForwardTab(F)}),B._parser.registerCsiHandler({final:"J"},function(F){return B.eraseInDisplay(F)}),B._parser.registerCsiHandler({prefix:"?",final:"J"},function(F){return B.eraseInDisplay(F)}),B._parser.registerCsiHandler({final:"K"},function(F){return B.eraseInLine(F)}),B._parser.registerCsiHandler({prefix:"?",final:"K"},function(F){return B.eraseInLine(F)}),B._parser.registerCsiHandler({final:"L"},function(F){return B.insertLines(F)}),B._parser.registerCsiHandler({final:"M"},function(F){return B.deleteLines(F)}),B._parser.registerCsiHandler({final:"P"},function(F){return B.deleteChars(F)}),B._parser.registerCsiHandler({final:"S"},function(F){return B.scrollUp(F)}),B._parser.registerCsiHandler({final:"T"},function(F){return B.scrollDown(F)}),B._parser.registerCsiHandler({final:"X"},function(F){return B.eraseChars(F)}),B._parser.registerCsiHandler({final:"Z"},function(F){return B.cursorBackwardTab(F)}),B._parser.registerCsiHandler({final:"`"},function(F){return B.charPosAbsolute(F)}),B._parser.registerCsiHandler({final:"a"},function(F){return B.hPositionRelative(F)}),B._parser.registerCsiHandler({final:"b"},function(F){return B.repeatPrecedingCharacter(F)}),B._parser.registerCsiHandler({final:"c"},function(F){return B.sendDeviceAttributesPrimary(F)}),B._parser.registerCsiHandler({prefix:">",final:"c"},function(F){return B.sendDeviceAttributesSecondary(F)}),B._parser.registerCsiHandler({final:"d"},function(F){return B.linePosAbsolute(F)}),B._parser.registerCsiHandler({final:"e"},function(F){return B.vPositionRelative(F)}),B._parser.registerCsiHandler({final:"f"},function(F){return B.hVPosition(F)}),B._parser.registerCsiHandler({final:"g"},function(F){return B.tabClear(F)}),B._parser.registerCsiHandler({final:"h"},function(F){return B.setMode(F)}),B._parser.registerCsiHandler({prefix:"?",final:"h"},function(F){return B.setModePrivate(F)}),B._parser.registerCsiHandler({final:"l"},function(F){return B.resetMode(F)}),B._parser.registerCsiHandler({prefix:"?",final:"l"},function(F){return B.resetModePrivate(F)}),B._parser.registerCsiHandler({final:"m"},function(F){return B.charAttributes(F)}),B._parser.registerCsiHandler({final:"n"},function(F){return B.deviceStatus(F)}),B._parser.registerCsiHandler({prefix:"?",final:"n"},function(F){return B.deviceStatusPrivate(F)}),B._parser.registerCsiHandler({intermediates:"!",final:"p"},function(F){return B.softReset(F)}),B._parser.registerCsiHandler({intermediates:" ",final:"q"},function(F){return B.setCursorStyle(F)}),B._parser.registerCsiHandler({final:"r"},function(F){return B.setScrollRegion(F)}),B._parser.registerCsiHandler({final:"s"},function(F){return B.saveCursor(F)}),B._parser.registerCsiHandler({final:"t"},function(F){return B.windowOptions(F)}),B._parser.registerCsiHandler({final:"u"},function(F){return B.restoreCursor(F)}),B._parser.registerCsiHandler({intermediates:"'",final:"}"},function(F){return B.insertColumns(F)}),B._parser.registerCsiHandler({intermediates:"'",final:"~"},function(F){return B.deleteColumns(F)}),B._parser.setExecuteHandler(c.C0.BEL,function(){return B.bell()}),B._parser.setExecuteHandler(c.C0.LF,function(){return B.lineFeed()}),B._parser.setExecuteHandler(c.C0.VT,function(){return B.lineFeed()}),B._parser.setExecuteHandler(c.C0.FF,function(){return B.lineFeed()}),B._parser.setExecuteHandler(c.C0.CR,function(){return B.carriageReturn()}),B._parser.setExecuteHandler(c.C0.BS,function(){return B.backspace()}),B._parser.setExecuteHandler(c.C0.HT,function(){return B.tab()}),B._parser.setExecuteHandler(c.C0.SO,function(){return B.shiftOut()}),B._parser.setExecuteHandler(c.C0.SI,function(){return B.shiftIn()}),B._parser.setExecuteHandler(c.C1.IND,function(){return B.index()}),B._parser.setExecuteHandler(c.C1.NEL,function(){return B.nextLine()}),B._parser.setExecuteHandler(c.C1.HTS,function(){return B.tabSet()}),B._parser.registerOscHandler(0,new w.OscHandler(function(F){return B.setTitle(F),B.setIconName(F),!0})),B._parser.registerOscHandler(1,new w.OscHandler(function(F){return B.setIconName(F)})),B._parser.registerOscHandler(2,new w.OscHandler(function(F){return B.setTitle(F)})),B._parser.registerOscHandler(4,new w.OscHandler(function(F){return B.setOrReportIndexedColor(F)})),B._parser.registerOscHandler(10,new w.OscHandler(function(F){return B.setOrReportFgColor(F)})),B._parser.registerOscHandler(11,new w.OscHandler(function(F){return B.setOrReportBgColor(F)})),B._parser.registerOscHandler(12,new w.OscHandler(function(F){return B.setOrReportCursorColor(F)})),B._parser.registerOscHandler(104,new w.OscHandler(function(F){return B.restoreIndexedColor(F)})),B._parser.registerOscHandler(110,new w.OscHandler(function(F){return B.restoreFgColor(F)})),B._parser.registerOscHandler(111,new w.OscHandler(function(F){return B.restoreBgColor(F)})),B._parser.registerOscHandler(112,new w.OscHandler(function(F){return B.restoreCursorColor(F)})),B._parser.registerEscHandler({final:"7"},function(){return B.saveCursor()}),B._parser.registerEscHandler({final:"8"},function(){return B.restoreCursor()}),B._parser.registerEscHandler({final:"D"},function(){return B.index()}),B._parser.registerEscHandler({final:"E"},function(){return B.nextLine()}),B._parser.registerEscHandler({final:"H"},function(){return B.tabSet()}),B._parser.registerEscHandler({final:"M"},function(){return B.reverseIndex()}),B._parser.registerEscHandler({final:"="},function(){return B.keypadApplicationMode()}),B._parser.registerEscHandler({final:">"},function(){return B.keypadNumericMode()}),B._parser.registerEscHandler({final:"c"},function(){return B.fullReset()}),B._parser.registerEscHandler({final:"n"},function(){return B.setgLevel(2)}),B._parser.registerEscHandler({final:"o"},function(){return B.setgLevel(3)}),B._parser.registerEscHandler({final:"|"},function(){return B.setgLevel(3)}),B._parser.registerEscHandler({final:"}"},function(){return B.setgLevel(2)}),B._parser.registerEscHandler({final:"~"},function(){return B.setgLevel(1)}),B._parser.registerEscHandler({intermediates:"%",final:"@"},function(){return B.selectDefaultCharset()}),B._parser.registerEscHandler({intermediates:"%",final:"G"},function(){return B.selectDefaultCharset()});var z=function(F){O._parser.registerEscHandler({intermediates:"(",final:F},function(){return B.selectCharset("("+F)}),O._parser.registerEscHandler({intermediates:")",final:F},function(){return B.selectCharset(")"+F)}),O._parser.registerEscHandler({intermediates:"*",final:F},function(){return B.selectCharset("*"+F)}),O._parser.registerEscHandler({intermediates:"+",final:F},function(){return B.selectCharset("+"+F)}),O._parser.registerEscHandler({intermediates:"-",final:F},function(){return B.selectCharset("-"+F)}),O._parser.registerEscHandler({intermediates:".",final:F},function(){return B.selectCharset("."+F)}),O._parser.registerEscHandler({intermediates:"/",final:F},function(){return B.selectCharset("/"+F)})},O=this;for(var D in _.CHARSETS)z(D);return B._parser.registerEscHandler({intermediates:"#",final:"8"},function(){return B.screenAlignmentPattern()}),B._parser.setErrorHandler(function(F){return B._logService.error("Parsing error: ",F),F}),B._parser.registerDcsHandler({intermediates:"$",final:"q"},new L(B._bufferService,B._coreService,B._logService,B._optionsService)),B}return l(P,H),Object.defineProperty(P.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onRequestSendFocus",{get:function(){return this._onRequestSendFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onColor",{get:function(){return this._onColor.event},enumerable:!1,configurable:!0}),P.prototype.dispose=function(){H.prototype.dispose.call(this)},P.prototype._preserveStack=function(R,I,M,$){this._parseStack.paused=!0,this._parseStack.cursorStartX=R,this._parseStack.cursorStartY=I,this._parseStack.decodedLength=M,this._parseStack.position=$},P.prototype._logSlowResolvingAsync=function(R){this._logService.logLevel<=C.LogLevelEnum.WARN&&Promise.race([R,new Promise(function(I,M){return setTimeout(function(){return M("#SLOW_TIMEOUT")},5e3)})]).catch(function(I){if(I!=="#SLOW_TIMEOUT")throw I;console.warn("async parser handler taking longer than 5000 ms")})},P.prototype.parse=function(R,I){var M,$=this._activeBuffer.x,V=this._activeBuffer.y,U=0,Y=this._parseStack.paused;if(Y){if(M=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,I))return this._logSlowResolvingAsync(M),M;$=this._parseStack.cursorStartX,V=this._parseStack.cursorStartY,this._parseStack.paused=!1,R.length>x&&(U=this._parseStack.position+x)}if(this._logService.logLevel<=C.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+(typeof R=="string"?' "'+R+'"':' "'+Array.prototype.map.call(R,function(z){return String.fromCharCode(z)}).join("")+'"'),typeof R=="string"?R.split("").map(function(z){return z.charCodeAt(0)}):R),this._parseBuffer.length<R.length&&this._parseBuffer.length<x&&(this._parseBuffer=new Uint32Array(Math.min(R.length,x))),Y||this._dirtyRowService.clearRange(),R.length>x)for(var Z=U;Z<R.length;Z+=x){var te=Z+x<R.length?Z+x:R.length,B=typeof R=="string"?this._stringDecoder.decode(R.substring(Z,te),this._parseBuffer):this._utf8Decoder.decode(R.subarray(Z,te),this._parseBuffer);if(M=this._parser.parse(this._parseBuffer,B))return this._preserveStack($,V,B,Z),this._logSlowResolvingAsync(M),M}else if(!Y&&(B=typeof R=="string"?this._stringDecoder.decode(R,this._parseBuffer):this._utf8Decoder.decode(R,this._parseBuffer),M=this._parser.parse(this._parseBuffer,B)))return this._preserveStack($,V,B,0),this._logSlowResolvingAsync(M),M;this._activeBuffer.x===$&&this._activeBuffer.y===V||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},P.prototype.print=function(R,I,M){var $,V,U=this._charsetService.charset,Y=this._optionsService.rawOptions.screenReaderMode,Z=this._bufferService.cols,te=this._coreService.decPrivateModes.wraparound,B=this._coreService.modes.insertMode,z=this._curAttrData,O=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowService.markDirty(this._activeBuffer.y),this._activeBuffer.x&&M-I>0&&O.getWidth(this._activeBuffer.x-1)===2&&O.setCellFromCodePoint(this._activeBuffer.x-1,0,1,z.fg,z.bg,z.extended);for(var D=I;D<M;++D){if($=R[D],V=this._unicodeService.wcwidth($),$<127&&U){var F=U[String.fromCharCode($)];F&&($=F.charCodeAt(0))}if(Y&&this._onA11yChar.fire((0,b.stringFromCodePoint)($)),V||!this._activeBuffer.x){if(this._activeBuffer.x+V-1>=Z){if(te){for(;this._activeBuffer.x<Z;)O.setCellFromCodePoint(this._activeBuffer.x++,0,1,z.fg,z.bg,z.extended);this._activeBuffer.x=0,this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),O=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=Z-1,V===2)continue}if(B&&(O.insertCells(this._activeBuffer.x,V,this._activeBuffer.getNullCell(z),z),O.getWidth(Z-1)===2&&O.setCellFromCodePoint(Z-1,f.NULL_CELL_CODE,f.NULL_CELL_WIDTH,z.fg,z.bg,z.extended)),O.setCellFromCodePoint(this._activeBuffer.x++,$,V,z.fg,z.bg,z.extended),V>0)for(;--V;)O.setCellFromCodePoint(this._activeBuffer.x++,0,0,z.fg,z.bg,z.extended)}else O.getWidth(this._activeBuffer.x-1)?O.addCodepointToCell(this._activeBuffer.x-1,$):O.addCodepointToCell(this._activeBuffer.x-2,$)}M-I>0&&(O.loadCell(this._activeBuffer.x-1,this._workCell),this._workCell.getWidth()===2||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),this._activeBuffer.x<Z&&M-I>0&&O.getWidth(this._activeBuffer.x)===0&&!O.hasContent(this._activeBuffer.x)&&O.setCellFromCodePoint(this._activeBuffer.x,0,1,z.fg,z.bg,z.extended),this._dirtyRowService.markDirty(this._activeBuffer.y)},P.prototype.registerCsiHandler=function(R,I){var M=this;return R.final!=="t"||R.prefix||R.intermediates?this._parser.registerCsiHandler(R,I):this._parser.registerCsiHandler(R,function($){return!A($.params[0],M._optionsService.rawOptions.windowOptions)||I($)})},P.prototype.registerDcsHandler=function(R,I){return this._parser.registerDcsHandler(R,new S.DcsHandler(I))},P.prototype.registerEscHandler=function(R,I){return this._parser.registerEscHandler(R,I)},P.prototype.registerOscHandler=function(R,I){return this._parser.registerOscHandler(R,new w.OscHandler(I))},P.prototype.bell=function(){return this._onRequestBell.fire(),!0},P.prototype.lineFeed=function(){return this._dirtyRowService.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowService.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0},P.prototype.carriageReturn=function(){return this._activeBuffer.x=0,!0},P.prototype.backspace=function(){var R;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(this._activeBuffer.x===0&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&((R=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))===null||R===void 0?void 0:R.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;var I=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);I.hasWidth(this._activeBuffer.x)&&!I.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0},P.prototype.tab=function(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;var R=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-R),!0},P.prototype.shiftOut=function(){return this._charsetService.setgLevel(1),!0},P.prototype.shiftIn=function(){return this._charsetService.setgLevel(0),!0},P.prototype._restrictCursor=function(R){R===void 0&&(R=this._bufferService.cols-1),this._activeBuffer.x=Math.min(R,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowService.markDirty(this._activeBuffer.y)},P.prototype._setCursor=function(R,I){this._dirtyRowService.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=R,this._activeBuffer.y=this._activeBuffer.scrollTop+I):(this._activeBuffer.x=R,this._activeBuffer.y=I),this._restrictCursor(),this._dirtyRowService.markDirty(this._activeBuffer.y)},P.prototype._moveCursor=function(R,I){this._restrictCursor(),this._setCursor(this._activeBuffer.x+R,this._activeBuffer.y+I)},P.prototype.cursorUp=function(R){var I=this._activeBuffer.y-this._activeBuffer.scrollTop;return I>=0?this._moveCursor(0,-Math.min(I,R.params[0]||1)):this._moveCursor(0,-(R.params[0]||1)),!0},P.prototype.cursorDown=function(R){var I=this._activeBuffer.scrollBottom-this._activeBuffer.y;return I>=0?this._moveCursor(0,Math.min(I,R.params[0]||1)):this._moveCursor(0,R.params[0]||1),!0},P.prototype.cursorForward=function(R){return this._moveCursor(R.params[0]||1,0),!0},P.prototype.cursorBackward=function(R){return this._moveCursor(-(R.params[0]||1),0),!0},P.prototype.cursorNextLine=function(R){return this.cursorDown(R),this._activeBuffer.x=0,!0},P.prototype.cursorPrecedingLine=function(R){return this.cursorUp(R),this._activeBuffer.x=0,!0},P.prototype.cursorCharAbsolute=function(R){return this._setCursor((R.params[0]||1)-1,this._activeBuffer.y),!0},P.prototype.cursorPosition=function(R){return this._setCursor(R.length>=2?(R.params[1]||1)-1:0,(R.params[0]||1)-1),!0},P.prototype.charPosAbsolute=function(R){return this._setCursor((R.params[0]||1)-1,this._activeBuffer.y),!0},P.prototype.hPositionRelative=function(R){return this._moveCursor(R.params[0]||1,0),!0},P.prototype.linePosAbsolute=function(R){return this._setCursor(this._activeBuffer.x,(R.params[0]||1)-1),!0},P.prototype.vPositionRelative=function(R){return this._moveCursor(0,R.params[0]||1),!0},P.prototype.hVPosition=function(R){return this.cursorPosition(R),!0},P.prototype.tabClear=function(R){var I=R.params[0];return I===0?delete this._activeBuffer.tabs[this._activeBuffer.x]:I===3&&(this._activeBuffer.tabs={}),!0},P.prototype.cursorForwardTab=function(R){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var I=R.params[0]||1;I--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0},P.prototype.cursorBackwardTab=function(R){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var I=R.params[0]||1;I--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0},P.prototype._eraseInBufferLine=function(R,I,M,$){$===void 0&&($=!1);var V=this._activeBuffer.lines.get(this._activeBuffer.ybase+R);V.replaceCells(I,M,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),$&&(V.isWrapped=!1)},P.prototype._resetBufferLine=function(R){var I=this._activeBuffer.lines.get(this._activeBuffer.ybase+R);I.fill(this._activeBuffer.getNullCell(this._eraseAttrData())),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+R),I.isWrapped=!1},P.prototype.eraseInDisplay=function(R){var I;switch(this._restrictCursor(this._bufferService.cols),R.params[0]){case 0:for(I=this._activeBuffer.y,this._dirtyRowService.markDirty(I),this._eraseInBufferLine(I++,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0);I<this._bufferService.rows;I++)this._resetBufferLine(I);this._dirtyRowService.markDirty(I);break;case 1:for(I=this._activeBuffer.y,this._dirtyRowService.markDirty(I),this._eraseInBufferLine(I,0,this._activeBuffer.x+1,!0),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get(I+1).isWrapped=!1);I--;)this._resetBufferLine(I);this._dirtyRowService.markDirty(0);break;case 2:for(I=this._bufferService.rows,this._dirtyRowService.markDirty(I-1);I--;)this._resetBufferLine(I);this._dirtyRowService.markDirty(0);break;case 3:var M=this._activeBuffer.lines.length-this._bufferService.rows;M>0&&(this._activeBuffer.lines.trimStart(M),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-M,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-M,0),this._onScroll.fire(0))}return!0},P.prototype.eraseInLine=function(R){switch(this._restrictCursor(this._bufferService.cols),R.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0)}return this._dirtyRowService.markDirty(this._activeBuffer.y),!0},P.prototype.insertLines=function(R){this._restrictCursor();var I=R.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var M=this._activeBuffer.ybase+this._activeBuffer.y,$=this._bufferService.rows-1-this._activeBuffer.scrollBottom,V=this._bufferService.rows-1+this._activeBuffer.ybase-$+1;I--;)this._activeBuffer.lines.splice(V-1,1),this._activeBuffer.lines.splice(M,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0},P.prototype.deleteLines=function(R){this._restrictCursor();var I=R.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;var M,$=this._activeBuffer.ybase+this._activeBuffer.y;for(M=this._bufferService.rows-1-this._activeBuffer.scrollBottom,M=this._bufferService.rows-1+this._activeBuffer.ybase-M;I--;)this._activeBuffer.lines.splice($,1),this._activeBuffer.lines.splice(M,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0},P.prototype.insertChars=function(R){this._restrictCursor();var I=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return I&&(I.insertCells(this._activeBuffer.x,R.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},P.prototype.deleteChars=function(R){this._restrictCursor();var I=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return I&&(I.deleteCells(this._activeBuffer.x,R.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},P.prototype.scrollUp=function(R){for(var I=R.params[0]||1;I--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},P.prototype.scrollDown=function(R){for(var I=R.params[0]||1;I--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,0,this._activeBuffer.getBlankLine(m.DEFAULT_ATTR_DATA));return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},P.prototype.scrollLeft=function(R){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var I=R.params[0]||1,M=this._activeBuffer.scrollTop;M<=this._activeBuffer.scrollBottom;++M){var $=this._activeBuffer.lines.get(this._activeBuffer.ybase+M);$.deleteCells(0,I,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),$.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},P.prototype.scrollRight=function(R){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var I=R.params[0]||1,M=this._activeBuffer.scrollTop;M<=this._activeBuffer.scrollBottom;++M){var $=this._activeBuffer.lines.get(this._activeBuffer.ybase+M);$.insertCells(0,I,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),$.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},P.prototype.insertColumns=function(R){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var I=R.params[0]||1,M=this._activeBuffer.scrollTop;M<=this._activeBuffer.scrollBottom;++M){var $=this._activeBuffer.lines.get(this._activeBuffer.ybase+M);$.insertCells(this._activeBuffer.x,I,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),$.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},P.prototype.deleteColumns=function(R){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;for(var I=R.params[0]||1,M=this._activeBuffer.scrollTop;M<=this._activeBuffer.scrollBottom;++M){var $=this._activeBuffer.lines.get(this._activeBuffer.ybase+M);$.deleteCells(this._activeBuffer.x,I,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),$.isWrapped=!1}return this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0},P.prototype.eraseChars=function(R){this._restrictCursor();var I=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return I&&(I.replaceCells(this._activeBuffer.x,this._activeBuffer.x+(R.params[0]||1),this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._activeBuffer.y)),!0},P.prototype.repeatPrecedingCharacter=function(R){if(!this._parser.precedingCodepoint)return!0;for(var I=R.params[0]||1,M=new Uint32Array(I),$=0;$<I;++$)M[$]=this._parser.precedingCodepoint;return this.print(M,0,M.length),!0},P.prototype.sendDeviceAttributesPrimary=function(R){return R.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(c.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(c.C0.ESC+"[?6c")),!0},P.prototype.sendDeviceAttributesSecondary=function(R){return R.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(c.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(c.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(R.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(c.C0.ESC+"[>83;40003;0c")),!0},P.prototype._is=function(R){return(this._optionsService.rawOptions.termName+"").indexOf(R)===0},P.prototype.setMode=function(R){for(var I=0;I<R.length;I++)R.params[I]===4&&(this._coreService.modes.insertMode=!0);return!0},P.prototype.setModePrivate=function(R){for(var I=0;I<R.length;I++)switch(R.params[I]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,_.DEFAULT_CHARSET),this._charsetService.setgCharset(1,_.DEFAULT_CHARSET),this._charsetService.setgCharset(2,_.DEFAULT_CHARSET),this._charsetService.setgCharset(3,_.DEFAULT_CHARSET);break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0,this._onRequestSendFocus.fire();break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}return!0},P.prototype.resetMode=function(R){for(var I=0;I<R.length;I++)R.params[I]===4&&(this._coreService.modes.insertMode=!1);return!0},P.prototype.resetModePrivate=function(R){for(var I=0;I<R.length;I++)switch(R.params[I]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),R.params[I]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}return!0},P.prototype._updateAttrColor=function(R,I,M,$,V){return I===2?(R|=50331648,R&=-16777216,R|=y.AttributeData.fromColorRGB([M,$,V])):I===5&&(R&=-50331904,R|=33554432|255&M),R},P.prototype._extractColor=function(R,I,M){var $=[0,0,-1,0,0,0],V=0,U=0;do{if($[U+V]=R.params[I+U],R.hasSubParams(I+U)){var Y=R.getSubParams(I+U),Z=0;do $[1]===5&&(V=1),$[U+Z+1+V]=Y[Z];while(++Z<Y.length&&Z+U+1+V<$.length);break}if($[1]===5&&U+V>=2||$[1]===2&&U+V>=5)break;$[1]&&(V=1)}while(++U+I<R.length&&U+V<$.length);for(Z=2;Z<$.length;++Z)$[Z]===-1&&($[Z]=0);switch($[0]){case 38:M.fg=this._updateAttrColor(M.fg,$[1],$[3],$[4],$[5]);break;case 48:M.bg=this._updateAttrColor(M.bg,$[1],$[3],$[4],$[5]);break;case 58:M.extended=M.extended.clone(),M.extended.underlineColor=this._updateAttrColor(M.extended.underlineColor,$[1],$[3],$[4],$[5])}return U},P.prototype._processUnderline=function(R,I){I.extended=I.extended.clone(),(!~R||R>5)&&(R=1),I.extended.underlineStyle=R,I.fg|=268435456,R===0&&(I.fg&=-268435457),I.updateExtended()},P.prototype.charAttributes=function(R){if(R.length===1&&R.params[0]===0)return this._curAttrData.fg=m.DEFAULT_ATTR_DATA.fg,this._curAttrData.bg=m.DEFAULT_ATTR_DATA.bg,!0;for(var I,M=R.length,$=this._curAttrData,V=0;V<M;V++)(I=R.params[V])>=30&&I<=37?($.fg&=-50331904,$.fg|=16777216|I-30):I>=40&&I<=47?($.bg&=-50331904,$.bg|=16777216|I-40):I>=90&&I<=97?($.fg&=-50331904,$.fg|=16777224|I-90):I>=100&&I<=107?($.bg&=-50331904,$.bg|=16777224|I-100):I===0?($.fg=m.DEFAULT_ATTR_DATA.fg,$.bg=m.DEFAULT_ATTR_DATA.bg):I===1?$.fg|=134217728:I===3?$.bg|=67108864:I===4?($.fg|=268435456,this._processUnderline(R.hasSubParams(V)?R.getSubParams(V)[0]:1,$)):I===5?$.fg|=536870912:I===7?$.fg|=67108864:I===8?$.fg|=1073741824:I===9?$.fg|=2147483648:I===2?$.bg|=134217728:I===21?this._processUnderline(2,$):I===22?($.fg&=-134217729,$.bg&=-134217729):I===23?$.bg&=-67108865:I===24?$.fg&=-268435457:I===25?$.fg&=-536870913:I===27?$.fg&=-67108865:I===28?$.fg&=-1073741825:I===29?$.fg&=2147483647:I===39?($.fg&=-67108864,$.fg|=16777215&m.DEFAULT_ATTR_DATA.fg):I===49?($.bg&=-67108864,$.bg|=16777215&m.DEFAULT_ATTR_DATA.bg):I===38||I===48||I===58?V+=this._extractColor(R,V,$):I===59?($.extended=$.extended.clone(),$.extended.underlineColor=-1,$.updateExtended()):I===100?($.fg&=-67108864,$.fg|=16777215&m.DEFAULT_ATTR_DATA.fg,$.bg&=-67108864,$.bg|=16777215&m.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",I);return!0},P.prototype.deviceStatus=function(R){switch(R.params[0]){case 5:this._coreService.triggerDataEvent(c.C0.ESC+"[0n");break;case 6:var I=this._activeBuffer.y+1,M=this._activeBuffer.x+1;this._coreService.triggerDataEvent(c.C0.ESC+"["+I+";"+M+"R")}return!0},P.prototype.deviceStatusPrivate=function(R){if(R.params[0]===6){var I=this._activeBuffer.y+1,M=this._activeBuffer.x+1;this._coreService.triggerDataEvent(c.C0.ESC+"[?"+I+";"+M+"R")}return!0},P.prototype.softReset=function(R){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=m.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0},P.prototype.setCursorStyle=function(R){var I=R.params[0]||1;switch(I){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var M=I%2==1;return this._optionsService.options.cursorBlink=M,!0},P.prototype.setScrollRegion=function(R){var I,M=R.params[0]||1;return(R.length<2||(I=R.params[1])>this._bufferService.rows||I===0)&&(I=this._bufferService.rows),I>M&&(this._activeBuffer.scrollTop=M-1,this._activeBuffer.scrollBottom=I-1,this._setCursor(0,0)),!0},P.prototype.windowOptions=function(R){if(!A(R.params[0],this._optionsService.rawOptions.windowOptions))return!0;var I=R.length>1?R.params[1]:0;switch(R.params[0]){case 14:I!==2&&this._onRequestWindowsOptionsReport.fire(u.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(u.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(c.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:I!==0&&I!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),I!==0&&I!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:I!==0&&I!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),I!==0&&I!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0},P.prototype.saveCursor=function(R){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0},P.prototype.restoreCursor=function(R){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0},P.prototype.setTitle=function(R){return this._windowTitle=R,this._onTitleChange.fire(R),!0},P.prototype.setIconName=function(R){return this._iconName=R,!0},P.prototype.setOrReportIndexedColor=function(R){for(var I=[],M=R.split(";");M.length>1;){var $=M.shift(),V=M.shift();if(/^\d+$/.exec($)){var U=parseInt($);if(0<=U&&U<256)if(V==="?")I.push({type:0,index:U});else{var Y=(0,E.parseColor)(V);Y&&I.push({type:1,index:U,color:Y})}}}return I.length&&this._onColor.fire(I),!0},P.prototype._setOrReportSpecialColor=function(R,I){for(var M=R.split(";"),$=0;$<M.length&&!(I>=this._specialColors.length);++$,++I)if(M[$]==="?")this._onColor.fire([{type:0,index:this._specialColors[I]}]);else{var V=(0,E.parseColor)(M[$]);V&&this._onColor.fire([{type:1,index:this._specialColors[I],color:V}])}return!0},P.prototype.setOrReportFgColor=function(R){return this._setOrReportSpecialColor(R,0)},P.prototype.setOrReportBgColor=function(R){return this._setOrReportSpecialColor(R,1)},P.prototype.setOrReportCursorColor=function(R){return this._setOrReportSpecialColor(R,2)},P.prototype.restoreIndexedColor=function(R){if(!R)return this._onColor.fire([{type:2}]),!0;for(var I=[],M=R.split(";"),$=0;$<M.length;++$)if(/^\d+$/.exec(M[$])){var V=parseInt(M[$]);0<=V&&V<256&&I.push({type:2,index:V})}return I.length&&this._onColor.fire(I),!0},P.prototype.restoreFgColor=function(R){return this._onColor.fire([{type:2,index:256}]),!0},P.prototype.restoreBgColor=function(R){return this._onColor.fire([{type:2,index:257}]),!0},P.prototype.restoreCursorColor=function(R){return this._onColor.fire([{type:2,index:258}]),!0},P.prototype.nextLine=function(){return this._activeBuffer.x=0,this.index(),!0},P.prototype.keypadApplicationMode=function(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0},P.prototype.keypadNumericMode=function(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0},P.prototype.selectDefaultCharset=function(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,_.DEFAULT_CHARSET),!0},P.prototype.selectCharset=function(R){return R.length!==2?(this.selectDefaultCharset(),!0):(R[0]==="/"||this._charsetService.setgCharset(k[R[0]],_.CHARSETS[R[1]]||_.DEFAULT_CHARSET),!0)},P.prototype.index=function(){return this._restrictCursor(),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0},P.prototype.tabSet=function(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0},P.prototype.reverseIndex=function(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){var R=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,R,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0},P.prototype.fullReset=function(){return this._parser.reset(),this._onRequestReset.fire(),!0},P.prototype.reset=function(){this._curAttrData=m.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=m.DEFAULT_ATTR_DATA.clone()},P.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},P.prototype.setgLevel=function(R){return this._charsetService.setgLevel(R),!0},P.prototype.screenAlignmentPattern=function(){var R=new h.CellData;R.content=1<<22|"E".charCodeAt(0),R.fg=this._curAttrData.fg,R.bg=this._curAttrData.bg,this._setCursor(0,0);for(var I=0;I<this._bufferService.rows;++I){var M=this._activeBuffer.ybase+this._activeBuffer.y+I,$=this._activeBuffer.lines.get(M);$&&($.fill(R),$.isWrapped=!1)}return this._dirtyRowService.markAllDirty(),this._setCursor(0,0),!0},P}(p.Disposable);i.InputHandler=T},844:(o,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.getDisposeArrayDisposable=i.disposeArray=i.Disposable=void 0;var s=function(){function l(){this._disposables=[],this._isDisposed=!1}return l.prototype.dispose=function(){this._isDisposed=!0;for(var u=0,c=this._disposables;u<c.length;u++)c[u].dispose();this._disposables.length=0},l.prototype.register=function(u){return this._disposables.push(u),u},l.prototype.unregister=function(u){var c=this._disposables.indexOf(u);c!==-1&&this._disposables.splice(c,1)},l}();function a(l){for(var u=0,c=l;u<c.length;u++)c[u].dispose();l.length=0}i.Disposable=s,i.disposeArray=a,i.getDisposeArrayDisposable=function(l){return{dispose:function(){return a(l)}}}},6114:(o,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.isLinux=i.isWindows=i.isIphone=i.isIpad=i.isMac=i.isSafari=i.isLegacyEdge=i.isFirefox=void 0;var s=typeof navigator=="undefined",a=s?"node":navigator.userAgent,l=s?"node":navigator.platform;i.isFirefox=a.includes("Firefox"),i.isLegacyEdge=a.includes("Edge"),i.isSafari=/^((?!chrome|android).)*safari/i.test(a),i.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(l),i.isIpad=l==="iPad",i.isIphone=l==="iPhone",i.isWindows=["Windows","Win16","Win32","WinCE"].includes(l),i.isLinux=l.indexOf("Linux")>=0},8273:(o,i)=>{function s(a,l,u,c){if(u===void 0&&(u=0),c===void 0&&(c=a.length),u>=a.length)return a;u=(a.length+u)%a.length,c=c>=a.length?a.length:(a.length+c)%a.length;for(var _=u;_<c;++_)a[_]=l;return a}Object.defineProperty(i,"__esModule",{value:!0}),i.concat=i.fillFallback=i.fill=void 0,i.fill=function(a,l,u,c){return a.fill?a.fill(l,u,c):s(a,l,u,c)},i.fillFallback=s,i.concat=function(a,l){var u=new a.constructor(a.length+l.length);return u.set(a),u.set(l,a.length),u}},9282:(o,i,s)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.updateWindowsModeWrappedState=void 0;var a=s(643);i.updateWindowsModeWrappedState=function(l){var u=l.buffer.lines.get(l.buffer.ybase+l.buffer.y-1),c=u==null?void 0:u.get(l.cols-1),_=l.buffer.lines.get(l.buffer.ybase+l.buffer.y);_&&c&&(_.isWrapped=c[a.CHAR_DATA_CODE_INDEX]!==a.NULL_CELL_CODE&&c[a.CHAR_DATA_CODE_INDEX]!==a.WHITESPACE_CELL_CODE)}},3734:(o,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.ExtendedAttrs=i.AttributeData=void 0;var s=function(){function l(){this.fg=0,this.bg=0,this.extended=new a}return l.toColorRGB=function(u){return[u>>>16&255,u>>>8&255,255&u]},l.fromColorRGB=function(u){return(255&u[0])<<16|(255&u[1])<<8|255&u[2]},l.prototype.clone=function(){var u=new l;return u.fg=this.fg,u.bg=this.bg,u.extended=this.extended.clone(),u},l.prototype.isInverse=function(){return 67108864&this.fg},l.prototype.isBold=function(){return 134217728&this.fg},l.prototype.isUnderline=function(){return 268435456&this.fg},l.prototype.isBlink=function(){return 536870912&this.fg},l.prototype.isInvisible=function(){return 1073741824&this.fg},l.prototype.isItalic=function(){return 67108864&this.bg},l.prototype.isDim=function(){return 134217728&this.bg},l.prototype.isStrikethrough=function(){return 2147483648&this.fg},l.prototype.getFgColorMode=function(){return 50331648&this.fg},l.prototype.getBgColorMode=function(){return 50331648&this.bg},l.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},l.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},l.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},l.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},l.prototype.isFgDefault=function(){return(50331648&this.fg)==0},l.prototype.isBgDefault=function(){return(50331648&this.bg)==0},l.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},l.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},l.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},l.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},l.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},l.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},l.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},l.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},l.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},l.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},l.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},l}();i.AttributeData=s;var a=function(){function l(u,c){u===void 0&&(u=0),c===void 0&&(c=-1),this.underlineStyle=u,this.underlineColor=c}return l.prototype.clone=function(){return new l(this.underlineStyle,this.underlineColor)},l.prototype.isEmpty=function(){return this.underlineStyle===0},l}();i.ExtendedAttrs=a},9092:(o,i,s)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.BufferStringIterator=i.Buffer=i.MAX_BUFFER_SIZE=void 0;var a=s(6349),l=s(8437),u=s(511),c=s(643),_=s(4634),v=s(4863),p=s(7116),g=s(3734);i.MAX_BUFFER_SIZE=4294967295;var b=function(){function d(f,h,y){this._hasScrollback=f,this._optionsService=h,this._bufferService=y,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=l.DEFAULT_ATTR_DATA.clone(),this.savedCharset=p.DEFAULT_CHARSET,this.markers=[],this._nullCell=u.CellData.fromCharData([0,c.NULL_CELL_CHAR,c.NULL_CELL_WIDTH,c.NULL_CELL_CODE]),this._whitespaceCell=u.CellData.fromCharData([0,c.WHITESPACE_CELL_CHAR,c.WHITESPACE_CELL_WIDTH,c.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new a.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return d.prototype.getNullCell=function(f){return f?(this._nullCell.fg=f.fg,this._nullCell.bg=f.bg,this._nullCell.extended=f.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new g.ExtendedAttrs),this._nullCell},d.prototype.getWhitespaceCell=function(f){return f?(this._whitespaceCell.fg=f.fg,this._whitespaceCell.bg=f.bg,this._whitespaceCell.extended=f.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new g.ExtendedAttrs),this._whitespaceCell},d.prototype.getBlankLine=function(f,h){return new l.BufferLine(this._bufferService.cols,this.getNullCell(f),h)},Object.defineProperty(d.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isCursorInViewport",{get:function(){var f=this.ybase+this.y-this.ydisp;return f>=0&&f<this._rows},enumerable:!1,configurable:!0}),d.prototype._getCorrectBufferLength=function(f){if(!this._hasScrollback)return f;var h=f+this._optionsService.rawOptions.scrollback;return h>i.MAX_BUFFER_SIZE?i.MAX_BUFFER_SIZE:h},d.prototype.fillViewportRows=function(f){if(this.lines.length===0){f===void 0&&(f=l.DEFAULT_ATTR_DATA);for(var h=this._rows;h--;)this.lines.push(this.getBlankLine(f))}},d.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new a.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},d.prototype.resize=function(f,h){var y=this.getNullCell(l.DEFAULT_ATTR_DATA),C=this._getCorrectBufferLength(h);if(C>this.lines.maxLength&&(this.lines.maxLength=C),this.lines.length>0){if(this._cols<f)for(var w=0;w<this.lines.length;w++)this.lines.get(w).resize(f,y);var S=0;if(this._rows<h)for(var E=this._rows;E<h;E++)this.lines.length<h+this.ybase&&(this._optionsService.rawOptions.windowsMode?this.lines.push(new l.BufferLine(f,y)):this.ybase>0&&this.lines.length<=this.ybase+this.y+S+1?(this.ybase--,S++,this.ydisp>0&&this.ydisp--):this.lines.push(new l.BufferLine(f,y)));else for(E=this._rows;E>h;E--)this.lines.length>h+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(C<this.lines.maxLength){var k=this.lines.length-C;k>0&&(this.lines.trimStart(k),this.ybase=Math.max(this.ybase-k,0),this.ydisp=Math.max(this.ydisp-k,0),this.savedY=Math.max(this.savedY-k,0)),this.lines.maxLength=C}this.x=Math.min(this.x,f-1),this.y=Math.min(this.y,h-1),S&&(this.y+=S),this.savedX=Math.min(this.savedX,f-1),this.scrollTop=0}if(this.scrollBottom=h-1,this._isReflowEnabled&&(this._reflow(f,h),this._cols>f))for(w=0;w<this.lines.length;w++)this.lines.get(w).resize(f,y);this._cols=f,this._rows=h},Object.defineProperty(d.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.rawOptions.windowsMode},enumerable:!1,configurable:!0}),d.prototype._reflow=function(f,h){this._cols!==f&&(f>this._cols?this._reflowLarger(f,h):this._reflowSmaller(f,h))},d.prototype._reflowLarger=function(f,h){var y=(0,_.reflowLargerGetLinesToRemove)(this.lines,this._cols,f,this.ybase+this.y,this.getNullCell(l.DEFAULT_ATTR_DATA));if(y.length>0){var C=(0,_.reflowLargerCreateNewLayout)(this.lines,y);(0,_.reflowLargerApplyNewLayout)(this.lines,C.layout),this._reflowLargerAdjustViewport(f,h,C.countRemoved)}},d.prototype._reflowLargerAdjustViewport=function(f,h,y){for(var C=this.getNullCell(l.DEFAULT_ATTR_DATA),w=y;w-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<h&&this.lines.push(new l.BufferLine(f,C))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-y,0)},d.prototype._reflowSmaller=function(f,h){for(var y=this.getNullCell(l.DEFAULT_ATTR_DATA),C=[],w=0,S=this.lines.length-1;S>=0;S--){var E=this.lines.get(S);if(!(!E||!E.isWrapped&&E.getTrimmedLength()<=f)){for(var k=[E];E.isWrapped&&S>0;)E=this.lines.get(--S),k.unshift(E);var x=this.ybase+this.y;if(!(x>=S&&x<S+k.length)){var A,L=k[k.length-1].getTrimmedLength(),T=(0,_.reflowSmallerGetNewLineLengths)(k,this._cols,f),H=T.length-k.length;A=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+H):Math.max(0,this.lines.length-this.lines.maxLength+H);for(var P=[],R=0;R<H;R++){var I=this.getBlankLine(l.DEFAULT_ATTR_DATA,!0);P.push(I)}P.length>0&&(C.push({start:S+k.length+w,newLines:P}),w+=P.length),k.push.apply(k,P);var M=T.length-1,$=T[M];$===0&&($=T[--M]);for(var V=k.length-H-1,U=L;V>=0;){var Y=Math.min(U,$);if(k[M]===void 0)break;if(k[M].copyCellsFrom(k[V],U-Y,$-Y,Y,!0),($-=Y)==0&&($=T[--M]),(U-=Y)==0){V--;var Z=Math.max(V,0);U=(0,_.getWrappedLineTrimmedLength)(k,Z,this._cols)}}for(R=0;R<k.length;R++)T[R]<f&&k[R].setCell(T[R],y);for(var te=H-A;te-- >0;)this.ybase===0?this.y<h-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+w)-h&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+H,this.ybase+h-1)}}}if(C.length>0){var B=[],z=[];for(R=0;R<this.lines.length;R++)z.push(this.lines.get(R));var O=this.lines.length,D=O-1,F=0,ue=C[F];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+w);var fe=0;for(R=Math.min(this.lines.maxLength-1,O+w-1);R>=0;R--)if(ue&&ue.start>D+fe){for(var ge=ue.newLines.length-1;ge>=0;ge--)this.lines.set(R--,ue.newLines[ge]);R++,B.push({index:D+1,amount:ue.newLines.length}),fe+=ue.newLines.length,ue=C[++F]}else this.lines.set(R,z[D--]);var j=0;for(R=B.length-1;R>=0;R--)B[R].index+=j,this.lines.onInsertEmitter.fire(B[R]),j+=B[R].amount;var q=Math.max(0,O+w-this.lines.maxLength);q>0&&this.lines.onTrimEmitter.fire(q)}},d.prototype.stringIndexToBufferIndex=function(f,h,y){for(y===void 0&&(y=!1);h;){var C=this.lines.get(f);if(!C)return[-1,-1];for(var w=y?C.getTrimmedLength():C.length,S=0;S<w;++S)if(C.get(S)[c.CHAR_DATA_WIDTH_INDEX]&&(h-=C.get(S)[c.CHAR_DATA_CHAR_INDEX].length||1),h<0)return[f,S];f++}return[f,0]},d.prototype.translateBufferLineToString=function(f,h,y,C){y===void 0&&(y=0);var w=this.lines.get(f);return w?w.translateToString(h,y,C):""},d.prototype.getWrappedRangeForLine=function(f){for(var h=f,y=f;h>0&&this.lines.get(h).isWrapped;)h--;for(;y+1<this.lines.length&&this.lines.get(y+1).isWrapped;)y++;return{first:h,last:y}},d.prototype.setupTabStops=function(f){for(f!=null?this.tabs[f]||(f=this.prevStop(f)):(this.tabs={},f=0);f<this._cols;f+=this._optionsService.rawOptions.tabStopWidth)this.tabs[f]=!0},d.prototype.prevStop=function(f){for(f==null&&(f=this.x);!this.tabs[--f]&&f>0;);return f>=this._cols?this._cols-1:f<0?0:f},d.prototype.nextStop=function(f){for(f==null&&(f=this.x);!this.tabs[++f]&&f<this._cols;);return f>=this._cols?this._cols-1:f<0?0:f},d.prototype.clearMarkers=function(f){if(this._isClearing=!0,f!==void 0)for(var h=0;h<this.markers.length;h++)this.markers[h].line===f&&(this.markers[h].dispose(),this.markers.splice(h--,1));else{for(var y=0,C=this.markers;y<C.length;y++)C[y].dispose();this.markers=[]}this._isClearing=!1},d.prototype.addMarker=function(f){var h=this,y=new v.Marker(f);return this.markers.push(y),y.register(this.lines.onTrim(function(C){y.line-=C,y.line<0&&y.dispose()})),y.register(this.lines.onInsert(function(C){y.line>=C.index&&(y.line+=C.amount)})),y.register(this.lines.onDelete(function(C){y.line>=C.index&&y.line<C.index+C.amount&&y.dispose(),y.line>C.index&&(y.line-=C.amount)})),y.register(y.onDispose(function(){return h._removeMarker(y)})),y},d.prototype._removeMarker=function(f){this._isClearing||this.markers.splice(this.markers.indexOf(f),1)},d.prototype.iterator=function(f,h,y,C,w){return new m(this,f,h,y,C,w)},d}();i.Buffer=b;var m=function(){function d(f,h,y,C,w,S){y===void 0&&(y=0),C===void 0&&(C=f.lines.length),w===void 0&&(w=0),S===void 0&&(S=0),this._buffer=f,this._trimRight=h,this._startIndex=y,this._endIndex=C,this._startOverscan=w,this._endOverscan=S,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return d.prototype.hasNext=function(){return this._current<this._endIndex},d.prototype.next=function(){var f=this._buffer.getWrappedRangeForLine(this._current);f.first<this._startIndex-this._startOverscan&&(f.first=this._startIndex-this._startOverscan),f.last>this._endIndex+this._endOverscan&&(f.last=this._endIndex+this._endOverscan),f.first=Math.max(f.first,0),f.last=Math.min(f.last,this._buffer.lines.length);for(var h="",y=f.first;y<=f.last;++y)h+=this._buffer.translateBufferLineToString(y,this._trimRight);return this._current=f.last+1,{range:f,content:h}},d}();i.BufferStringIterator=m},8437:(o,i,s)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.BufferLine=i.DEFAULT_ATTR_DATA=void 0;var a=s(482),l=s(643),u=s(511),c=s(3734);i.DEFAULT_ATTR_DATA=Object.freeze(new c.AttributeData);var _=function(){function v(p,g,b){b===void 0&&(b=!1),this.isWrapped=b,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*p);for(var m=g||u.CellData.fromCharData([0,l.NULL_CELL_CHAR,l.NULL_CELL_WIDTH,l.NULL_CELL_CODE]),d=0;d<p;++d)this.setCell(d,m);this.length=p}return v.prototype.get=function(p){var g=this._data[3*p+0],b=2097151&g;return[this._data[3*p+1],2097152&g?this._combined[p]:b?(0,a.stringFromCodePoint)(b):"",g>>22,2097152&g?this._combined[p].charCodeAt(this._combined[p].length-1):b]},v.prototype.set=function(p,g){this._data[3*p+1]=g[l.CHAR_DATA_ATTR_INDEX],g[l.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[p]=g[1],this._data[3*p+0]=2097152|p|g[l.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*p+0]=g[l.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|g[l.CHAR_DATA_WIDTH_INDEX]<<22},v.prototype.getWidth=function(p){return this._data[3*p+0]>>22},v.prototype.hasWidth=function(p){return 12582912&this._data[3*p+0]},v.prototype.getFg=function(p){return this._data[3*p+1]},v.prototype.getBg=function(p){return this._data[3*p+2]},v.prototype.hasContent=function(p){return 4194303&this._data[3*p+0]},v.prototype.getCodePoint=function(p){var g=this._data[3*p+0];return 2097152&g?this._combined[p].charCodeAt(this._combined[p].length-1):2097151&g},v.prototype.isCombined=function(p){return 2097152&this._data[3*p+0]},v.prototype.getString=function(p){var g=this._data[3*p+0];return 2097152&g?this._combined[p]:2097151&g?(0,a.stringFromCodePoint)(2097151&g):""},v.prototype.loadCell=function(p,g){var b=3*p;return g.content=this._data[b+0],g.fg=this._data[b+1],g.bg=this._data[b+2],2097152&g.content&&(g.combinedData=this._combined[p]),268435456&g.bg&&(g.extended=this._extendedAttrs[p]),g},v.prototype.setCell=function(p,g){2097152&g.content&&(this._combined[p]=g.combinedData),268435456&g.bg&&(this._extendedAttrs[p]=g.extended),this._data[3*p+0]=g.content,this._data[3*p+1]=g.fg,this._data[3*p+2]=g.bg},v.prototype.setCellFromCodePoint=function(p,g,b,m,d,f){268435456&d&&(this._extendedAttrs[p]=f),this._data[3*p+0]=g|b<<22,this._data[3*p+1]=m,this._data[3*p+2]=d},v.prototype.addCodepointToCell=function(p,g){var b=this._data[3*p+0];2097152&b?this._combined[p]+=(0,a.stringFromCodePoint)(g):(2097151&b?(this._combined[p]=(0,a.stringFromCodePoint)(2097151&b)+(0,a.stringFromCodePoint)(g),b&=-2097152,b|=2097152):b=g|1<<22,this._data[3*p+0]=b)},v.prototype.insertCells=function(p,g,b,m){if((p%=this.length)&&this.getWidth(p-1)===2&&this.setCellFromCodePoint(p-1,0,1,(m==null?void 0:m.fg)||0,(m==null?void 0:m.bg)||0,(m==null?void 0:m.extended)||new c.ExtendedAttrs),g<this.length-p){for(var d=new u.CellData,f=this.length-p-g-1;f>=0;--f)this.setCell(p+g+f,this.loadCell(p+f,d));for(f=0;f<g;++f)this.setCell(p+f,b)}else for(f=p;f<this.length;++f)this.setCell(f,b);this.getWidth(this.length-1)===2&&this.setCellFromCodePoint(this.length-1,0,1,(m==null?void 0:m.fg)||0,(m==null?void 0:m.bg)||0,(m==null?void 0:m.extended)||new c.ExtendedAttrs)},v.prototype.deleteCells=function(p,g,b,m){if(p%=this.length,g<this.length-p){for(var d=new u.CellData,f=0;f<this.length-p-g;++f)this.setCell(p+f,this.loadCell(p+g+f,d));for(f=this.length-g;f<this.length;++f)this.setCell(f,b)}else for(f=p;f<this.length;++f)this.setCell(f,b);p&&this.getWidth(p-1)===2&&this.setCellFromCodePoint(p-1,0,1,(m==null?void 0:m.fg)||0,(m==null?void 0:m.bg)||0,(m==null?void 0:m.extended)||new c.ExtendedAttrs),this.getWidth(p)!==0||this.hasContent(p)||this.setCellFromCodePoint(p,0,1,(m==null?void 0:m.fg)||0,(m==null?void 0:m.bg)||0,(m==null?void 0:m.extended)||new c.ExtendedAttrs)},v.prototype.replaceCells=function(p,g,b,m){for(p&&this.getWidth(p-1)===2&&this.setCellFromCodePoint(p-1,0,1,(m==null?void 0:m.fg)||0,(m==null?void 0:m.bg)||0,(m==null?void 0:m.extended)||new c.ExtendedAttrs),g<this.length&&this.getWidth(g-1)===2&&this.setCellFromCodePoint(g,0,1,(m==null?void 0:m.fg)||0,(m==null?void 0:m.bg)||0,(m==null?void 0:m.extended)||new c.ExtendedAttrs);p<g&&p<this.length;)this.setCell(p++,b)},v.prototype.resize=function(p,g){if(p!==this.length){if(p>this.length){var b=new Uint32Array(3*p);this.length&&(3*p<this._data.length?b.set(this._data.subarray(0,3*p)):b.set(this._data)),this._data=b;for(var m=this.length;m<p;++m)this.setCell(m,g)}else if(p){(b=new Uint32Array(3*p)).set(this._data.subarray(0,3*p)),this._data=b;var d=Object.keys(this._combined);for(m=0;m<d.length;m++){var f=parseInt(d[m],10);f>=p&&delete this._combined[f]}}else this._data=new Uint32Array(0),this._combined={};this.length=p}},v.prototype.fill=function(p){this._combined={},this._extendedAttrs={};for(var g=0;g<this.length;++g)this.setCell(g,p)},v.prototype.copyFrom=function(p){for(var g in this.length!==p.length?this._data=new Uint32Array(p._data):this._data.set(p._data),this.length=p.length,this._combined={},p._combined)this._combined[g]=p._combined[g];for(var g in this._extendedAttrs={},p._extendedAttrs)this._extendedAttrs[g]=p._extendedAttrs[g];this.isWrapped=p.isWrapped},v.prototype.clone=function(){var p=new v(0);for(var g in p._data=new Uint32Array(this._data),p.length=this.length,this._combined)p._combined[g]=this._combined[g];for(var g in this._extendedAttrs)p._extendedAttrs[g]=this._extendedAttrs[g];return p.isWrapped=this.isWrapped,p},v.prototype.getTrimmedLength=function(){for(var p=this.length-1;p>=0;--p)if(4194303&this._data[3*p+0])return p+(this._data[3*p+0]>>22);return 0},v.prototype.copyCellsFrom=function(p,g,b,m,d){var f=p._data;if(d)for(var h=m-1;h>=0;h--)for(var y=0;y<3;y++)this._data[3*(b+h)+y]=f[3*(g+h)+y];else for(h=0;h<m;h++)for(y=0;y<3;y++)this._data[3*(b+h)+y]=f[3*(g+h)+y];var C=Object.keys(p._combined);for(y=0;y<C.length;y++){var w=parseInt(C[y],10);w>=g&&(this._combined[w-g+b]=p._combined[w])}},v.prototype.translateToString=function(p,g,b){p===void 0&&(p=!1),g===void 0&&(g=0),b===void 0&&(b=this.length),p&&(b=Math.min(b,this.getTrimmedLength()));for(var m="";g<b;){var d=this._data[3*g+0],f=2097151&d;m+=2097152&d?this._combined[g]:f?(0,a.stringFromCodePoint)(f):l.WHITESPACE_CELL_CHAR,g+=d>>22||1}return m},v}();i.BufferLine=_},4841:(o,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.getRangeLength=void 0,i.getRangeLength=function(s,a){if(s.start.y>s.end.y)throw new Error("Buffer range end ("+s.end.x+", "+s.end.y+") cannot be before start ("+s.start.x+", "+s.start.y+")");return a*(s.end.y-s.start.y)+(s.end.x-s.start.x+1)}},4634:(o,i)=>{function s(a,l,u){if(l===a.length-1)return a[l].getTrimmedLength();var c=!a[l].hasContent(u-1)&&a[l].getWidth(u-1)===1,_=a[l+1].getWidth(0)===2;return c&&_?u-1:u}Object.defineProperty(i,"__esModule",{value:!0}),i.getWrappedLineTrimmedLength=i.reflowSmallerGetNewLineLengths=i.reflowLargerApplyNewLayout=i.reflowLargerCreateNewLayout=i.reflowLargerGetLinesToRemove=void 0,i.reflowLargerGetLinesToRemove=function(a,l,u,c,_){for(var v=[],p=0;p<a.length-1;p++){var g=p,b=a.get(++g);if(b.isWrapped){for(var m=[a.get(p)];g<a.length&&b.isWrapped;)m.push(b),b=a.get(++g);if(c>=p&&c<g)p+=m.length-1;else{for(var d=0,f=s(m,d,l),h=1,y=0;h<m.length;){var C=s(m,h,l),w=C-y,S=u-f,E=Math.min(w,S);m[d].copyCellsFrom(m[h],y,f,E,!1),(f+=E)===u&&(d++,f=0),(y+=E)===C&&(h++,y=0),f===0&&d!==0&&m[d-1].getWidth(u-1)===2&&(m[d].copyCellsFrom(m[d-1],u-1,f++,1,!1),m[d-1].setCell(u-1,_))}m[d].replaceCells(f,u,_);for(var k=0,x=m.length-1;x>0&&(x>d||m[x].getTrimmedLength()===0);x--)k++;k>0&&(v.push(p+m.length-k),v.push(k)),p+=m.length-1}}}return v},i.reflowLargerCreateNewLayout=function(a,l){for(var u=[],c=0,_=l[c],v=0,p=0;p<a.length;p++)if(_===p){var g=l[++c];a.onDeleteEmitter.fire({index:p-v,amount:g}),p+=g-1,v+=g,_=l[++c]}else u.push(p);return{layout:u,countRemoved:v}},i.reflowLargerApplyNewLayout=function(a,l){for(var u=[],c=0;c<l.length;c++)u.push(a.get(l[c]));for(c=0;c<u.length;c++)a.set(c,u[c]);a.length=l.length},i.reflowSmallerGetNewLineLengths=function(a,l,u){for(var c=[],_=a.map(function(f,h){return s(a,h,l)}).reduce(function(f,h){return f+h}),v=0,p=0,g=0;g<_;){if(_-g<u){c.push(_-g);break}v+=u;var b=s(a,p,l);v>b&&(v-=b,p++);var m=a[p].getWidth(v-1)===2;m&&v--;var d=m?u-1:u;c.push(d),g+=d}return c},i.getWrappedLineTrimmedLength=s},5295:function(o,i,s){var a,l=this&&this.__extends||(a=function(v,p){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var m in b)Object.prototype.hasOwnProperty.call(b,m)&&(g[m]=b[m])},a(v,p)},function(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");function g(){this.constructor=v}a(v,p),v.prototype=p===null?Object.create(p):(g.prototype=p.prototype,new g)});Object.defineProperty(i,"__esModule",{value:!0}),i.BufferSet=void 0;var u=s(9092),c=s(8460),_=function(v){function p(g,b){var m=v.call(this)||this;return m._optionsService=g,m._bufferService=b,m._onBufferActivate=m.register(new c.EventEmitter),m.reset(),m}return l(p,v),Object.defineProperty(p.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),p.prototype.reset=function(){this._normal=new u.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new u.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()},Object.defineProperty(p.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),p.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},p.prototype.activateAltBuffer=function(g){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(g),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},p.prototype.resize=function(g,b){this._normal.resize(g,b),this._alt.resize(g,b)},p.prototype.setupTabStops=function(g){this._normal.setupTabStops(g),this._alt.setupTabStops(g)},p}(s(844).Disposable);i.BufferSet=_},511:function(o,i,s){var a,l=this&&this.__extends||(a=function(p,g){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,m){b.__proto__=m}||function(b,m){for(var d in m)Object.prototype.hasOwnProperty.call(m,d)&&(b[d]=m[d])},a(p,g)},function(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");function b(){this.constructor=p}a(p,g),p.prototype=g===null?Object.create(g):(b.prototype=g.prototype,new b)});Object.defineProperty(i,"__esModule",{value:!0}),i.CellData=void 0;var u=s(482),c=s(643),_=s(3734),v=function(p){function g(){var b=p!==null&&p.apply(this,arguments)||this;return b.content=0,b.fg=0,b.bg=0,b.extended=new _.ExtendedAttrs,b.combinedData="",b}return l(g,p),g.fromCharData=function(b){var m=new g;return m.setFromCharData(b),m},g.prototype.isCombined=function(){return 2097152&this.content},g.prototype.getWidth=function(){return this.content>>22},g.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,u.stringFromCodePoint)(2097151&this.content):""},g.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},g.prototype.setFromCharData=function(b){this.fg=b[c.CHAR_DATA_ATTR_INDEX],this.bg=0;var m=!1;if(b[c.CHAR_DATA_CHAR_INDEX].length>2)m=!0;else if(b[c.CHAR_DATA_CHAR_INDEX].length===2){var d=b[c.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=d&&d<=56319){var f=b[c.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=f&&f<=57343?this.content=1024*(d-55296)+f-56320+65536|b[c.CHAR_DATA_WIDTH_INDEX]<<22:m=!0}else m=!0}else this.content=b[c.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|b[c.CHAR_DATA_WIDTH_INDEX]<<22;m&&(this.combinedData=b[c.CHAR_DATA_CHAR_INDEX],this.content=2097152|b[c.CHAR_DATA_WIDTH_INDEX]<<22)},g.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},g}(_.AttributeData);i.CellData=v},643:(o,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.WHITESPACE_CELL_CODE=i.WHITESPACE_CELL_WIDTH=i.WHITESPACE_CELL_CHAR=i.NULL_CELL_CODE=i.NULL_CELL_WIDTH=i.NULL_CELL_CHAR=i.CHAR_DATA_CODE_INDEX=i.CHAR_DATA_WIDTH_INDEX=i.CHAR_DATA_CHAR_INDEX=i.CHAR_DATA_ATTR_INDEX=i.DEFAULT_ATTR=i.DEFAULT_COLOR=void 0,i.DEFAULT_COLOR=256,i.DEFAULT_ATTR=256|i.DEFAULT_COLOR<<9,i.CHAR_DATA_ATTR_INDEX=0,i.CHAR_DATA_CHAR_INDEX=1,i.CHAR_DATA_WIDTH_INDEX=2,i.CHAR_DATA_CODE_INDEX=3,i.NULL_CELL_CHAR="",i.NULL_CELL_WIDTH=1,i.NULL_CELL_CODE=0,i.WHITESPACE_CELL_CHAR=" ",i.WHITESPACE_CELL_WIDTH=1,i.WHITESPACE_CELL_CODE=32},4863:function(o,i,s){var a,l=this&&this.__extends||(a=function(_,v){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var b in g)Object.prototype.hasOwnProperty.call(g,b)&&(p[b]=g[b])},a(_,v)},function(_,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function p(){this.constructor=_}a(_,v),_.prototype=v===null?Object.create(v):(p.prototype=v.prototype,new p)});Object.defineProperty(i,"__esModule",{value:!0}),i.Marker=void 0;var u=s(8460),c=function(_){function v(p){var g=_.call(this)||this;return g.line=p,g._id=v._nextId++,g.isDisposed=!1,g._onDispose=new u.EventEmitter,g}return l(v,_),Object.defineProperty(v.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),v.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),_.prototype.dispose.call(this))},v._nextId=1,v}(s(844).Disposable);i.Marker=c},7116:(o,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.DEFAULT_CHARSET=i.CHARSETS=void 0,i.CHARSETS={},i.DEFAULT_CHARSET=i.CHARSETS.B,i.CHARSETS[0]={"`":"\u25C6",a:"\u2592",b:"\u2409",c:"\u240C",d:"\u240D",e:"\u240A",f:"\xB0",g:"\xB1",h:"\u2424",i:"\u240B",j:"\u2518",k:"\u2510",l:"\u250C",m:"\u2514",n:"\u253C",o:"\u23BA",p:"\u23BB",q:"\u2500",r:"\u23BC",s:"\u23BD",t:"\u251C",u:"\u2524",v:"\u2534",w:"\u252C",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03C0","|":"\u2260","}":"\xA3","~":"\xB7"},i.CHARSETS.A={"#":"\xA3"},i.CHARSETS.B=void 0,i.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},i.CHARSETS.C=i.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},i.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},i.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},i.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},i.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},i.CHARSETS.E=i.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},i.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},i.CHARSETS.H=i.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},i.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},2584:(o,i)=>{var s,a;Object.defineProperty(i,"__esModule",{value:!0}),i.C1=i.C0=void 0,(a=i.C0||(i.C0={})).NUL="\0",a.SOH="",a.STX="",a.ETX="",a.EOT="",a.ENQ="",a.ACK="",a.BEL="\x07",a.BS="\b",a.HT=" ",a.LF=`
`,a.VT="\v",a.FF="\f",a.CR="\r",a.SO="",a.SI="",a.DLE="",a.DC1="",a.DC2="",a.DC3="",a.DC4="",a.NAK="",a.SYN="",a.ETB="",a.CAN="",a.EM="",a.SUB="",a.ESC="\x1B",a.FS="",a.GS="",a.RS="",a.US="",a.SP=" ",a.DEL="\x7F",(s=i.C1||(i.C1={})).PAD="\x80",s.HOP="\x81",s.BPH="\x82",s.NBH="\x83",s.IND="\x84",s.NEL="\x85",s.SSA="\x86",s.ESA="\x87",s.HTS="\x88",s.HTJ="\x89",s.VTS="\x8A",s.PLD="\x8B",s.PLU="\x8C",s.RI="\x8D",s.SS2="\x8E",s.SS3="\x8F",s.DCS="\x90",s.PU1="\x91",s.PU2="\x92",s.STS="\x93",s.CCH="\x94",s.MW="\x95",s.SPA="\x96",s.EPA="\x97",s.SOS="\x98",s.SGCI="\x99",s.SCI="\x9A",s.CSI="\x9B",s.ST="\x9C",s.OSC="\x9D",s.PM="\x9E",s.APC="\x9F"},7399:(o,i,s)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.evaluateKeyboardEvent=void 0;var a=s(2584),l={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};i.evaluateKeyboardEvent=function(u,c,_,v){var p={type:0,cancel:!1,key:void 0},g=(u.shiftKey?1:0)|(u.altKey?2:0)|(u.ctrlKey?4:0)|(u.metaKey?8:0);switch(u.keyCode){case 0:u.key==="UIKeyInputUpArrow"?p.key=c?a.C0.ESC+"OA":a.C0.ESC+"[A":u.key==="UIKeyInputLeftArrow"?p.key=c?a.C0.ESC+"OD":a.C0.ESC+"[D":u.key==="UIKeyInputRightArrow"?p.key=c?a.C0.ESC+"OC":a.C0.ESC+"[C":u.key==="UIKeyInputDownArrow"&&(p.key=c?a.C0.ESC+"OB":a.C0.ESC+"[B");break;case 8:if(u.shiftKey){p.key=a.C0.BS;break}if(u.altKey){p.key=a.C0.ESC+a.C0.DEL;break}p.key=a.C0.DEL;break;case 9:if(u.shiftKey){p.key=a.C0.ESC+"[Z";break}p.key=a.C0.HT,p.cancel=!0;break;case 13:p.key=u.altKey?a.C0.ESC+a.C0.CR:a.C0.CR,p.cancel=!0;break;case 27:p.key=a.C0.ESC,u.altKey&&(p.key=a.C0.ESC+a.C0.ESC),p.cancel=!0;break;case 37:if(u.metaKey)break;g?(p.key=a.C0.ESC+"[1;"+(g+1)+"D",p.key===a.C0.ESC+"[1;3D"&&(p.key=a.C0.ESC+(_?"b":"[1;5D"))):p.key=c?a.C0.ESC+"OD":a.C0.ESC+"[D";break;case 39:if(u.metaKey)break;g?(p.key=a.C0.ESC+"[1;"+(g+1)+"C",p.key===a.C0.ESC+"[1;3C"&&(p.key=a.C0.ESC+(_?"f":"[1;5C"))):p.key=c?a.C0.ESC+"OC":a.C0.ESC+"[C";break;case 38:if(u.metaKey)break;g?(p.key=a.C0.ESC+"[1;"+(g+1)+"A",_||p.key!==a.C0.ESC+"[1;3A"||(p.key=a.C0.ESC+"[1;5A")):p.key=c?a.C0.ESC+"OA":a.C0.ESC+"[A";break;case 40:if(u.metaKey)break;g?(p.key=a.C0.ESC+"[1;"+(g+1)+"B",_||p.key!==a.C0.ESC+"[1;3B"||(p.key=a.C0.ESC+"[1;5B")):p.key=c?a.C0.ESC+"OB":a.C0.ESC+"[B";break;case 45:u.shiftKey||u.ctrlKey||(p.key=a.C0.ESC+"[2~");break;case 46:p.key=g?a.C0.ESC+"[3;"+(g+1)+"~":a.C0.ESC+"[3~";break;case 36:p.key=g?a.C0.ESC+"[1;"+(g+1)+"H":c?a.C0.ESC+"OH":a.C0.ESC+"[H";break;case 35:p.key=g?a.C0.ESC+"[1;"+(g+1)+"F":c?a.C0.ESC+"OF":a.C0.ESC+"[F";break;case 33:u.shiftKey?p.type=2:p.key=a.C0.ESC+"[5~";break;case 34:u.shiftKey?p.type=3:p.key=a.C0.ESC+"[6~";break;case 112:p.key=g?a.C0.ESC+"[1;"+(g+1)+"P":a.C0.ESC+"OP";break;case 113:p.key=g?a.C0.ESC+"[1;"+(g+1)+"Q":a.C0.ESC+"OQ";break;case 114:p.key=g?a.C0.ESC+"[1;"+(g+1)+"R":a.C0.ESC+"OR";break;case 115:p.key=g?a.C0.ESC+"[1;"+(g+1)+"S":a.C0.ESC+"OS";break;case 116:p.key=g?a.C0.ESC+"[15;"+(g+1)+"~":a.C0.ESC+"[15~";break;case 117:p.key=g?a.C0.ESC+"[17;"+(g+1)+"~":a.C0.ESC+"[17~";break;case 118:p.key=g?a.C0.ESC+"[18;"+(g+1)+"~":a.C0.ESC+"[18~";break;case 119:p.key=g?a.C0.ESC+"[19;"+(g+1)+"~":a.C0.ESC+"[19~";break;case 120:p.key=g?a.C0.ESC+"[20;"+(g+1)+"~":a.C0.ESC+"[20~";break;case 121:p.key=g?a.C0.ESC+"[21;"+(g+1)+"~":a.C0.ESC+"[21~";break;case 122:p.key=g?a.C0.ESC+"[23;"+(g+1)+"~":a.C0.ESC+"[23~";break;case 123:p.key=g?a.C0.ESC+"[24;"+(g+1)+"~":a.C0.ESC+"[24~";break;default:if(!u.ctrlKey||u.shiftKey||u.altKey||u.metaKey)if(_&&!v||!u.altKey||u.metaKey)!_||u.altKey||u.ctrlKey||u.shiftKey||!u.metaKey?u.key&&!u.ctrlKey&&!u.altKey&&!u.metaKey&&u.keyCode>=48&&u.key.length===1?p.key=u.key:u.key&&u.ctrlKey&&u.key==="_"&&(p.key=a.C0.US):u.keyCode===65&&(p.type=1);else{var b=l[u.keyCode],m=b==null?void 0:b[u.shiftKey?1:0];if(m)p.key=a.C0.ESC+m;else if(u.keyCode>=65&&u.keyCode<=90){var d=u.ctrlKey?u.keyCode-64:u.keyCode+32;p.key=a.C0.ESC+String.fromCharCode(d)}}else u.keyCode>=65&&u.keyCode<=90?p.key=String.fromCharCode(u.keyCode-64):u.keyCode===32?p.key=a.C0.NUL:u.keyCode>=51&&u.keyCode<=55?p.key=String.fromCharCode(u.keyCode-51+27):u.keyCode===56?p.key=a.C0.DEL:u.keyCode===219?p.key=a.C0.ESC:u.keyCode===220?p.key=a.C0.FS:u.keyCode===221&&(p.key=a.C0.GS)}return p}},482:(o,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.Utf8ToUtf32=i.StringToUtf32=i.utf32ToString=i.stringFromCodePoint=void 0,i.stringFromCodePoint=function(l){return l>65535?(l-=65536,String.fromCharCode(55296+(l>>10))+String.fromCharCode(l%1024+56320)):String.fromCharCode(l)},i.utf32ToString=function(l,u,c){u===void 0&&(u=0),c===void 0&&(c=l.length);for(var _="",v=u;v<c;++v){var p=l[v];p>65535?(p-=65536,_+=String.fromCharCode(55296+(p>>10))+String.fromCharCode(p%1024+56320)):_+=String.fromCharCode(p)}return _};var s=function(){function l(){this._interim=0}return l.prototype.clear=function(){this._interim=0},l.prototype.decode=function(u,c){var _=u.length;if(!_)return 0;var v=0,p=0;this._interim&&(56320<=(m=u.charCodeAt(p++))&&m<=57343?c[v++]=1024*(this._interim-55296)+m-56320+65536:(c[v++]=this._interim,c[v++]=m),this._interim=0);for(var g=p;g<_;++g){var b=u.charCodeAt(g);if(55296<=b&&b<=56319){if(++g>=_)return this._interim=b,v;var m;56320<=(m=u.charCodeAt(g))&&m<=57343?c[v++]=1024*(b-55296)+m-56320+65536:(c[v++]=b,c[v++]=m)}else b!==65279&&(c[v++]=b)}return v},l}();i.StringToUtf32=s;var a=function(){function l(){this.interim=new Uint8Array(3)}return l.prototype.clear=function(){this.interim.fill(0)},l.prototype.decode=function(u,c){var _=u.length;if(!_)return 0;var v,p,g,b,m=0,d=0,f=0;if(this.interim[0]){var h=!1,y=this.interim[0];y&=(224&y)==192?31:(240&y)==224?15:7;for(var C=0,w=void 0;(w=63&this.interim[++C])&&C<4;)y<<=6,y|=w;for(var S=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,E=S-C;f<E;){if(f>=_)return 0;if((192&(w=u[f++]))!=128){f--,h=!0;break}this.interim[C++]=w,y<<=6,y|=63&w}h||(S===2?y<128?f--:c[m++]=y:S===3?y<2048||y>=55296&&y<=57343||y===65279||(c[m++]=y):y<65536||y>1114111||(c[m++]=y)),this.interim.fill(0)}for(var k=_-4,x=f;x<_;){for(;!(!(x<k)||128&(v=u[x])||128&(p=u[x+1])||128&(g=u[x+2])||128&(b=u[x+3]));)c[m++]=v,c[m++]=p,c[m++]=g,c[m++]=b,x+=4;if((v=u[x++])<128)c[m++]=v;else if((224&v)==192){if(x>=_)return this.interim[0]=v,m;if((192&(p=u[x++]))!=128){x--;continue}if((d=(31&v)<<6|63&p)<128){x--;continue}c[m++]=d}else if((240&v)==224){if(x>=_)return this.interim[0]=v,m;if((192&(p=u[x++]))!=128){x--;continue}if(x>=_)return this.interim[0]=v,this.interim[1]=p,m;if((192&(g=u[x++]))!=128){x--;continue}if((d=(15&v)<<12|(63&p)<<6|63&g)<2048||d>=55296&&d<=57343||d===65279)continue;c[m++]=d}else if((248&v)==240){if(x>=_)return this.interim[0]=v,m;if((192&(p=u[x++]))!=128){x--;continue}if(x>=_)return this.interim[0]=v,this.interim[1]=p,m;if((192&(g=u[x++]))!=128){x--;continue}if(x>=_)return this.interim[0]=v,this.interim[1]=p,this.interim[2]=g,m;if((192&(b=u[x++]))!=128){x--;continue}if((d=(7&v)<<18|(63&p)<<12|(63&g)<<6|63&b)<65536||d>1114111)continue;c[m++]=d}}return m},l}();i.Utf8ToUtf32=a},225:(o,i,s)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.UnicodeV6=void 0;var a,l=s(8273),u=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],c=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],_=function(){function v(){if(this.version="6",!a){a=new Uint8Array(65536),(0,l.fill)(a,1),a[0]=0,(0,l.fill)(a,0,1,32),(0,l.fill)(a,0,127,160),(0,l.fill)(a,2,4352,4448),a[9001]=2,a[9002]=2,(0,l.fill)(a,2,11904,42192),a[12351]=1,(0,l.fill)(a,2,44032,55204),(0,l.fill)(a,2,63744,64256),(0,l.fill)(a,2,65040,65050),(0,l.fill)(a,2,65072,65136),(0,l.fill)(a,2,65280,65377),(0,l.fill)(a,2,65504,65511);for(var p=0;p<u.length;++p)(0,l.fill)(a,0,u[p][0],u[p][1]+1)}}return v.prototype.wcwidth=function(p){return p<32?0:p<127?1:p<65536?a[p]:function(g,b){var m,d=0,f=b.length-1;if(g<b[0][0]||g>b[f][1])return!1;for(;f>=d;)if(g>b[m=d+f>>1][1])d=m+1;else{if(!(g<b[m][0]))return!0;f=m-1}return!1}(p,c)?0:p>=131072&&p<=196605||p>=196608&&p<=262141?2:1},v}();i.UnicodeV6=_},5981:(o,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.WriteBuffer=void 0;var s=typeof queueMicrotask=="undefined"?function(l){Promise.resolve().then(l)}:queueMicrotask,a=function(){function l(u){this._action=u,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0}return l.prototype.writeSync=function(u,c){if(c!==void 0&&this._syncCalls>c)this._syncCalls=0;else if(this._pendingData+=u.length,this._writeBuffer.push(u),this._callbacks.push(void 0),this._syncCalls++,!this._isSyncWriting){var _;for(this._isSyncWriting=!0;_=this._writeBuffer.shift();){this._action(_);var v=this._callbacks.shift();v&&v()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}},l.prototype.write=function(u,c){var _=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return _._innerWrite()})),this._pendingData+=u.length,this._writeBuffer.push(u),this._callbacks.push(c)},l.prototype._innerWrite=function(u,c){var _=this;u===void 0&&(u=0),c===void 0&&(c=!0);for(var v=u||Date.now();this._writeBuffer.length>this._bufferOffset;){var p=this._writeBuffer[this._bufferOffset],g=this._action(p,c);if(g)return void g.catch(function(m){return s(function(){throw m}),Promise.resolve(!1)}).then(function(m){return Date.now()-v>=12?setTimeout(function(){return _._innerWrite(0,m)}):_._innerWrite(v,m)});var b=this._callbacks[this._bufferOffset];if(b&&b(),this._bufferOffset++,this._pendingData-=p.length,Date.now()-v>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return _._innerWrite()})):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0)},l}();i.WriteBuffer=a},5941:(o,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.toRgbString=i.parseColor=void 0;var s=/^([\da-f]{1})\/([\da-f]{1})\/([\da-f]{1})$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,a=/^[\da-f]+$/;function l(u,c){var _=u.toString(16),v=_.length<2?"0"+_:_;switch(c){case 4:return _[0];case 8:return v;case 12:return(v+v).slice(0,3);default:return v+v}}i.parseColor=function(u){if(u){var c=u.toLowerCase();if(c.indexOf("rgb:")===0){c=c.slice(4);var _=s.exec(c);if(_){var v=_[1]?15:_[4]?255:_[7]?4095:65535;return[Math.round(parseInt(_[1]||_[4]||_[7]||_[10],16)/v*255),Math.round(parseInt(_[2]||_[5]||_[8]||_[11],16)/v*255),Math.round(parseInt(_[3]||_[6]||_[9]||_[12],16)/v*255)]}}else if(c.indexOf("#")===0&&(c=c.slice(1),a.exec(c)&&[3,6,9,12].includes(c.length))){for(var p=c.length/3,g=[0,0,0],b=0;b<3;++b){var m=parseInt(c.slice(p*b,p*b+p),16);g[b]=p===1?m<<4:p===2?m:p===3?m>>4:m>>8}return g}}},i.toRgbString=function(u,c){c===void 0&&(c=16);var _=u[0],v=u[1],p=u[2];return"rgb:"+l(_,c)+"/"+l(v,c)+"/"+l(p,c)}},5770:(o,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.PAYLOAD_LIMIT=void 0,i.PAYLOAD_LIMIT=1e7},6351:(o,i,s)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.DcsHandler=i.DcsParser=void 0;var a=s(482),l=s(8742),u=s(5770),c=[],_=function(){function g(){this._handlers=Object.create(null),this._active=c,this._ident=0,this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return g.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=c},g.prototype.registerHandler=function(b,m){this._handlers[b]===void 0&&(this._handlers[b]=[]);var d=this._handlers[b];return d.push(m),{dispose:function(){var f=d.indexOf(m);f!==-1&&d.splice(f,1)}}},g.prototype.clearHandler=function(b){this._handlers[b]&&delete this._handlers[b]},g.prototype.setHandlerFallback=function(b){this._handlerFb=b},g.prototype.reset=function(){if(this._active.length)for(var b=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;b>=0;--b)this._active[b].unhook(!1);this._stack.paused=!1,this._active=c,this._ident=0},g.prototype.hook=function(b,m){if(this.reset(),this._ident=b,this._active=this._handlers[b]||c,this._active.length)for(var d=this._active.length-1;d>=0;d--)this._active[d].hook(m);else this._handlerFb(this._ident,"HOOK",m)},g.prototype.put=function(b,m,d){if(this._active.length)for(var f=this._active.length-1;f>=0;f--)this._active[f].put(b,m,d);else this._handlerFb(this._ident,"PUT",(0,a.utf32ToString)(b,m,d))},g.prototype.unhook=function(b,m){if(m===void 0&&(m=!0),this._active.length){var d=!1,f=this._active.length-1,h=!1;if(this._stack.paused&&(f=this._stack.loopPosition-1,d=m,h=this._stack.fallThrough,this._stack.paused=!1),!h&&d===!1){for(;f>=0&&(d=this._active[f].unhook(b))!==!0;f--)if(d instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=f,this._stack.fallThrough=!1,d;f--}for(;f>=0;f--)if((d=this._active[f].unhook(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=f,this._stack.fallThrough=!0,d}else this._handlerFb(this._ident,"UNHOOK",b);this._active=c,this._ident=0},g}();i.DcsParser=_;var v=new l.Params;v.addParam(0);var p=function(){function g(b){this._handler=b,this._data="",this._params=v,this._hitLimit=!1}return g.prototype.hook=function(b){this._params=b.length>1||b.params[0]?b.clone():v,this._data="",this._hitLimit=!1},g.prototype.put=function(b,m,d){this._hitLimit||(this._data+=(0,a.utf32ToString)(b,m,d),this._data.length>u.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},g.prototype.unhook=function(b){var m=this,d=!1;if(this._hitLimit)d=!1;else if(b&&(d=this._handler(this._data,this._params))instanceof Promise)return d.then(function(f){return m._params=v,m._data="",m._hitLimit=!1,f});return this._params=v,this._data="",this._hitLimit=!1,d},g}();i.DcsHandler=p},2015:function(o,i,s){var a,l=this&&this.__extends||(a=function(d,f){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var C in y)Object.prototype.hasOwnProperty.call(y,C)&&(h[C]=y[C])},a(d,f)},function(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function h(){this.constructor=d}a(d,f),d.prototype=f===null?Object.create(f):(h.prototype=f.prototype,new h)});Object.defineProperty(i,"__esModule",{value:!0}),i.EscapeSequenceParser=i.VT500_TRANSITION_TABLE=i.TransitionTable=void 0;var u=s(844),c=s(8273),_=s(8742),v=s(6242),p=s(6351),g=function(){function d(f){this.table=new Uint8Array(f)}return d.prototype.setDefault=function(f,h){(0,c.fill)(this.table,f<<4|h)},d.prototype.add=function(f,h,y,C){this.table[h<<8|f]=y<<4|C},d.prototype.addMany=function(f,h,y,C){for(var w=0;w<f.length;w++)this.table[h<<8|f[w]]=y<<4|C},d}();i.TransitionTable=g;var b=160;i.VT500_TRANSITION_TABLE=function(){var d=new g(4095),f=Array.apply(null,Array(256)).map(function(E,k){return k}),h=function(E,k){return f.slice(E,k)},y=h(32,127),C=h(0,24);C.push(25),C.push.apply(C,h(28,32));var w,S=h(0,14);for(w in d.setDefault(1,0),d.addMany(y,0,2,0),S)d.addMany([24,26,153,154],w,3,0),d.addMany(h(128,144),w,3,0),d.addMany(h(144,152),w,3,0),d.add(156,w,0,0),d.add(27,w,11,1),d.add(157,w,4,8),d.addMany([152,158,159],w,0,7),d.add(155,w,11,3),d.add(144,w,11,9);return d.addMany(C,0,3,0),d.addMany(C,1,3,1),d.add(127,1,0,1),d.addMany(C,8,0,8),d.addMany(C,3,3,3),d.add(127,3,0,3),d.addMany(C,4,3,4),d.add(127,4,0,4),d.addMany(C,6,3,6),d.addMany(C,5,3,5),d.add(127,5,0,5),d.addMany(C,2,3,2),d.add(127,2,0,2),d.add(93,1,4,8),d.addMany(y,8,5,8),d.add(127,8,5,8),d.addMany([156,27,24,26,7],8,6,0),d.addMany(h(28,32),8,0,8),d.addMany([88,94,95],1,0,7),d.addMany(y,7,0,7),d.addMany(C,7,0,7),d.add(156,7,0,0),d.add(127,7,0,7),d.add(91,1,11,3),d.addMany(h(64,127),3,7,0),d.addMany(h(48,60),3,8,4),d.addMany([60,61,62,63],3,9,4),d.addMany(h(48,60),4,8,4),d.addMany(h(64,127),4,7,0),d.addMany([60,61,62,63],4,0,6),d.addMany(h(32,64),6,0,6),d.add(127,6,0,6),d.addMany(h(64,127),6,0,0),d.addMany(h(32,48),3,9,5),d.addMany(h(32,48),5,9,5),d.addMany(h(48,64),5,0,6),d.addMany(h(64,127),5,7,0),d.addMany(h(32,48),4,9,5),d.addMany(h(32,48),1,9,2),d.addMany(h(32,48),2,9,2),d.addMany(h(48,127),2,10,0),d.addMany(h(48,80),1,10,0),d.addMany(h(81,88),1,10,0),d.addMany([89,90,92],1,10,0),d.addMany(h(96,127),1,10,0),d.add(80,1,11,9),d.addMany(C,9,0,9),d.add(127,9,0,9),d.addMany(h(28,32),9,0,9),d.addMany(h(32,48),9,9,12),d.addMany(h(48,60),9,8,10),d.addMany([60,61,62,63],9,9,10),d.addMany(C,11,0,11),d.addMany(h(32,128),11,0,11),d.addMany(h(28,32),11,0,11),d.addMany(C,10,0,10),d.add(127,10,0,10),d.addMany(h(28,32),10,0,10),d.addMany(h(48,60),10,8,10),d.addMany([60,61,62,63],10,0,11),d.addMany(h(32,48),10,9,12),d.addMany(C,12,0,12),d.add(127,12,0,12),d.addMany(h(28,32),12,0,12),d.addMany(h(32,48),12,9,12),d.addMany(h(48,64),12,0,11),d.addMany(h(64,127),12,12,13),d.addMany(h(64,127),10,12,13),d.addMany(h(64,127),9,12,13),d.addMany(C,13,13,13),d.addMany(y,13,13,13),d.add(127,13,0,13),d.addMany([27,156,24,26],13,14,0),d.add(b,0,2,0),d.add(b,8,5,8),d.add(b,6,0,6),d.add(b,11,0,11),d.add(b,13,13,13),d}();var m=function(d){function f(h){h===void 0&&(h=i.VT500_TRANSITION_TABLE);var y=d.call(this)||this;return y._transitions=h,y._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},y.initialState=0,y.currentState=y.initialState,y._params=new _.Params,y._params.addParam(0),y._collect=0,y.precedingCodepoint=0,y._printHandlerFb=function(C,w,S){},y._executeHandlerFb=function(C){},y._csiHandlerFb=function(C,w){},y._escHandlerFb=function(C){},y._errorHandlerFb=function(C){return C},y._printHandler=y._printHandlerFb,y._executeHandlers=Object.create(null),y._csiHandlers=Object.create(null),y._escHandlers=Object.create(null),y._oscParser=new v.OscParser,y._dcsParser=new p.DcsParser,y._errorHandler=y._errorHandlerFb,y.registerEscHandler({final:"\\"},function(){return!0}),y}return l(f,d),f.prototype._identifier=function(h,y){y===void 0&&(y=[64,126]);var C=0;if(h.prefix){if(h.prefix.length>1)throw new Error("only one byte as prefix supported");if((C=h.prefix.charCodeAt(0))&&60>C||C>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(h.intermediates){if(h.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var w=0;w<h.intermediates.length;++w){var S=h.intermediates.charCodeAt(w);if(32>S||S>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");C<<=8,C|=S}}if(h.final.length!==1)throw new Error("final must be a single byte");var E=h.final.charCodeAt(0);if(y[0]>E||E>y[1])throw new Error("final must be in range "+y[0]+" .. "+y[1]);return(C<<=8)|E},f.prototype.identToString=function(h){for(var y=[];h;)y.push(String.fromCharCode(255&h)),h>>=8;return y.reverse().join("")},f.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},f.prototype.setPrintHandler=function(h){this._printHandler=h},f.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},f.prototype.registerEscHandler=function(h,y){var C=this._identifier(h,[48,126]);this._escHandlers[C]===void 0&&(this._escHandlers[C]=[]);var w=this._escHandlers[C];return w.push(y),{dispose:function(){var S=w.indexOf(y);S!==-1&&w.splice(S,1)}}},f.prototype.clearEscHandler=function(h){this._escHandlers[this._identifier(h,[48,126])]&&delete this._escHandlers[this._identifier(h,[48,126])]},f.prototype.setEscHandlerFallback=function(h){this._escHandlerFb=h},f.prototype.setExecuteHandler=function(h,y){this._executeHandlers[h.charCodeAt(0)]=y},f.prototype.clearExecuteHandler=function(h){this._executeHandlers[h.charCodeAt(0)]&&delete this._executeHandlers[h.charCodeAt(0)]},f.prototype.setExecuteHandlerFallback=function(h){this._executeHandlerFb=h},f.prototype.registerCsiHandler=function(h,y){var C=this._identifier(h);this._csiHandlers[C]===void 0&&(this._csiHandlers[C]=[]);var w=this._csiHandlers[C];return w.push(y),{dispose:function(){var S=w.indexOf(y);S!==-1&&w.splice(S,1)}}},f.prototype.clearCsiHandler=function(h){this._csiHandlers[this._identifier(h)]&&delete this._csiHandlers[this._identifier(h)]},f.prototype.setCsiHandlerFallback=function(h){this._csiHandlerFb=h},f.prototype.registerDcsHandler=function(h,y){return this._dcsParser.registerHandler(this._identifier(h),y)},f.prototype.clearDcsHandler=function(h){this._dcsParser.clearHandler(this._identifier(h))},f.prototype.setDcsHandlerFallback=function(h){this._dcsParser.setHandlerFallback(h)},f.prototype.registerOscHandler=function(h,y){return this._oscParser.registerHandler(h,y)},f.prototype.clearOscHandler=function(h){this._oscParser.clearHandler(h)},f.prototype.setOscHandlerFallback=function(h){this._oscParser.setHandlerFallback(h)},f.prototype.setErrorHandler=function(h){this._errorHandler=h},f.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},f.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,this._parseStack.state!==0&&(this._parseStack.state=2,this._parseStack.handlers=[])},f.prototype._preserveStack=function(h,y,C,w,S){this._parseStack.state=h,this._parseStack.handlers=y,this._parseStack.handlerPos=C,this._parseStack.transition=w,this._parseStack.chunkPos=S},f.prototype.parse=function(h,y,C){var w,S=0,E=0,k=0;if(this._parseStack.state)if(this._parseStack.state===2)this._parseStack.state=0,k=this._parseStack.chunkPos+1;else{if(C===void 0||this._parseStack.state===1)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");var x=this._parseStack.handlers,A=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(C===!1&&A>-1){for(;A>=0&&(w=x[A](this._params))!==!0;A--)if(w instanceof Promise)return this._parseStack.handlerPos=A,w}this._parseStack.handlers=[];break;case 4:if(C===!1&&A>-1){for(;A>=0&&(w=x[A]())!==!0;A--)if(w instanceof Promise)return this._parseStack.handlerPos=A,w}this._parseStack.handlers=[];break;case 6:if(S=h[this._parseStack.chunkPos],w=this._dcsParser.unhook(S!==24&&S!==26,C))return w;S===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(S=h[this._parseStack.chunkPos],w=this._oscParser.end(S!==24&&S!==26,C))return w;S===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,k=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(var L=k;L<y;++L){switch(S=h[L],(E=this._transitions.table[this.currentState<<8|(S<160?S:b)])>>4){case 2:for(var T=L+1;;++T){if(T>=y||(S=h[T])<32||S>126&&S<b){this._printHandler(h,L,T),L=T-1;break}if(++T>=y||(S=h[T])<32||S>126&&S<b){this._printHandler(h,L,T),L=T-1;break}if(++T>=y||(S=h[T])<32||S>126&&S<b){this._printHandler(h,L,T),L=T-1;break}if(++T>=y||(S=h[T])<32||S>126&&S<b){this._printHandler(h,L,T),L=T-1;break}}break;case 3:this._executeHandlers[S]?this._executeHandlers[S]():this._executeHandlerFb(S),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:L,code:S,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:for(var H=(x=this._csiHandlers[this._collect<<8|S])?x.length-1:-1;H>=0&&(w=x[H](this._params))!==!0;H--)if(w instanceof Promise)return this._preserveStack(3,x,H,E,L),w;H<0&&this._csiHandlerFb(this._collect<<8|S,this._params),this.precedingCodepoint=0;break;case 8:do switch(S){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(S-48)}while(++L<y&&(S=h[L])>47&&S<60);L--;break;case 9:this._collect<<=8,this._collect|=S;break;case 10:for(var P=this._escHandlers[this._collect<<8|S],R=P?P.length-1:-1;R>=0&&(w=P[R]())!==!0;R--)if(w instanceof Promise)return this._preserveStack(4,P,R,E,L),w;R<0&&this._escHandlerFb(this._collect<<8|S),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|S,this._params);break;case 13:for(var I=L+1;;++I)if(I>=y||(S=h[I])===24||S===26||S===27||S>127&&S<b){this._dcsParser.put(h,L,I),L=I-1;break}break;case 14:if(w=this._dcsParser.unhook(S!==24&&S!==26))return this._preserveStack(6,[],0,E,L),w;S===27&&(E|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0;break;case 4:this._oscParser.start();break;case 5:for(var M=L+1;;M++)if(M>=y||(S=h[M])<32||S>127&&S<b){this._oscParser.put(h,L,M),L=M-1;break}break;case 6:if(w=this._oscParser.end(S!==24&&S!==26))return this._preserveStack(5,[],0,E,L),w;S===27&&(E|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0}this.currentState=15&E}},f}(u.Disposable);i.EscapeSequenceParser=m},6242:(o,i,s)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.OscHandler=i.OscParser=void 0;var a=s(5770),l=s(482),u=[],c=function(){function v(){this._state=0,this._active=u,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return v.prototype.registerHandler=function(p,g){this._handlers[p]===void 0&&(this._handlers[p]=[]);var b=this._handlers[p];return b.push(g),{dispose:function(){var m=b.indexOf(g);m!==-1&&b.splice(m,1)}}},v.prototype.clearHandler=function(p){this._handlers[p]&&delete this._handlers[p]},v.prototype.setHandlerFallback=function(p){this._handlerFb=p},v.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=u},v.prototype.reset=function(){if(this._state===2)for(var p=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;p>=0;--p)this._active[p].end(!1);this._stack.paused=!1,this._active=u,this._id=-1,this._state=0},v.prototype._start=function(){if(this._active=this._handlers[this._id]||u,this._active.length)for(var p=this._active.length-1;p>=0;p--)this._active[p].start();else this._handlerFb(this._id,"START")},v.prototype._put=function(p,g,b){if(this._active.length)for(var m=this._active.length-1;m>=0;m--)this._active[m].put(p,g,b);else this._handlerFb(this._id,"PUT",(0,l.utf32ToString)(p,g,b))},v.prototype.start=function(){this.reset(),this._state=1},v.prototype.put=function(p,g,b){if(this._state!==3){if(this._state===1)for(;g<b;){var m=p[g++];if(m===59){this._state=2,this._start();break}if(m<48||57<m)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+m-48}this._state===2&&b-g>0&&this._put(p,g,b)}},v.prototype.end=function(p,g){if(g===void 0&&(g=!0),this._state!==0){if(this._state!==3)if(this._state===1&&this._start(),this._active.length){var b=!1,m=this._active.length-1,d=!1;if(this._stack.paused&&(m=this._stack.loopPosition-1,b=g,d=this._stack.fallThrough,this._stack.paused=!1),!d&&b===!1){for(;m>=0&&(b=this._active[m].end(p))!==!0;m--)if(b instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=m,this._stack.fallThrough=!1,b;m--}for(;m>=0;m--)if((b=this._active[m].end(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=m,this._stack.fallThrough=!0,b}else this._handlerFb(this._id,"END",p);this._active=u,this._id=-1,this._state=0}},v}();i.OscParser=c;var _=function(){function v(p){this._handler=p,this._data="",this._hitLimit=!1}return v.prototype.start=function(){this._data="",this._hitLimit=!1},v.prototype.put=function(p,g,b){this._hitLimit||(this._data+=(0,l.utf32ToString)(p,g,b),this._data.length>a.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},v.prototype.end=function(p){var g=this,b=!1;if(this._hitLimit)b=!1;else if(p&&(b=this._handler(this._data))instanceof Promise)return b.then(function(m){return g._data="",g._hitLimit=!1,m});return this._data="",this._hitLimit=!1,b},v}();i.OscHandler=_},8742:(o,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.Params=void 0;var s=2147483647,a=function(){function l(u,c){if(u===void 0&&(u=32),c===void 0&&(c=32),this.maxLength=u,this.maxSubParamsLength=c,c>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(u),this.length=0,this._subParams=new Int32Array(c),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(u),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return l.fromArray=function(u){var c=new l;if(!u.length)return c;for(var _=Array.isArray(u[0])?1:0;_<u.length;++_){var v=u[_];if(Array.isArray(v))for(var p=0;p<v.length;++p)c.addSubParam(v[p]);else c.addParam(v)}return c},l.prototype.clone=function(){var u=new l(this.maxLength,this.maxSubParamsLength);return u.params.set(this.params),u.length=this.length,u._subParams.set(this._subParams),u._subParamsLength=this._subParamsLength,u._subParamsIdx.set(this._subParamsIdx),u._rejectDigits=this._rejectDigits,u._rejectSubDigits=this._rejectSubDigits,u._digitIsSub=this._digitIsSub,u},l.prototype.toArray=function(){for(var u=[],c=0;c<this.length;++c){u.push(this.params[c]);var _=this._subParamsIdx[c]>>8,v=255&this._subParamsIdx[c];v-_>0&&u.push(Array.prototype.slice.call(this._subParams,_,v))}return u},l.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},l.prototype.addParam=function(u){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(u<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=u>s?s:u}},l.prototype.addSubParam=function(u){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(u<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=u>s?s:u,this._subParamsIdx[this.length-1]++}},l.prototype.hasSubParams=function(u){return(255&this._subParamsIdx[u])-(this._subParamsIdx[u]>>8)>0},l.prototype.getSubParams=function(u){var c=this._subParamsIdx[u]>>8,_=255&this._subParamsIdx[u];return _-c>0?this._subParams.subarray(c,_):null},l.prototype.getSubParamsAll=function(){for(var u={},c=0;c<this.length;++c){var _=this._subParamsIdx[c]>>8,v=255&this._subParamsIdx[c];v-_>0&&(u[c]=this._subParams.slice(_,v))}return u},l.prototype.addDigit=function(u){var c;if(!(this._rejectDigits||!(c=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var _=this._digitIsSub?this._subParams:this.params,v=_[c-1];_[c-1]=~v?Math.min(10*v+u,s):u}},l}();i.Params=a},5741:(o,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.AddonManager=void 0;var s=function(){function a(){this._addons=[]}return a.prototype.dispose=function(){for(var l=this._addons.length-1;l>=0;l--)this._addons[l].instance.dispose()},a.prototype.loadAddon=function(l,u){var c=this,_={instance:u,dispose:u.dispose,isDisposed:!1};this._addons.push(_),u.dispose=function(){return c._wrappedAddonDispose(_)},u.activate(l)},a.prototype._wrappedAddonDispose=function(l){if(!l.isDisposed){for(var u=-1,c=0;c<this._addons.length;c++)if(this._addons[c]===l){u=c;break}if(u===-1)throw new Error("Could not dispose an addon that has not been loaded");l.isDisposed=!0,l.dispose.apply(l.instance),this._addons.splice(u,1)}},a}();i.AddonManager=s},8771:(o,i,s)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.BufferApiView=void 0;var a=s(3785),l=s(511),u=function(){function c(_,v){this._buffer=_,this.type=v}return c.prototype.init=function(_){return this._buffer=_,this},Object.defineProperty(c.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),c.prototype.getLine=function(_){var v=this._buffer.lines.get(_);if(v)return new a.BufferLineApiView(v)},c.prototype.getNullCell=function(){return new l.CellData},c}();i.BufferApiView=u},3785:(o,i,s)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.BufferLineApiView=void 0;var a=s(511),l=function(){function u(c){this._line=c}return Object.defineProperty(u.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),u.prototype.getCell=function(c,_){if(!(c<0||c>=this._line.length))return _?(this._line.loadCell(c,_),_):this._line.loadCell(c,new a.CellData)},u.prototype.translateToString=function(c,_,v){return this._line.translateToString(c,_,v)},u}();i.BufferLineApiView=l},8285:(o,i,s)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.BufferNamespaceApi=void 0;var a=s(8771),l=s(8460),u=function(){function c(_){var v=this;this._core=_,this._onBufferChange=new l.EventEmitter,this._normal=new a.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new a.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(function(){return v._onBufferChange.fire(v.active)})}return Object.defineProperty(c.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"active",{get:function(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"normal",{get:function(){return this._normal.init(this._core.buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"alternate",{get:function(){return this._alternate.init(this._core.buffers.alt)},enumerable:!1,configurable:!0}),c}();i.BufferNamespaceApi=u},7975:(o,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.ParserApi=void 0;var s=function(){function a(l){this._core=l}return a.prototype.registerCsiHandler=function(l,u){return this._core.registerCsiHandler(l,function(c){return u(c.toArray())})},a.prototype.addCsiHandler=function(l,u){return this.registerCsiHandler(l,u)},a.prototype.registerDcsHandler=function(l,u){return this._core.registerDcsHandler(l,function(c,_){return u(c,_.toArray())})},a.prototype.addDcsHandler=function(l,u){return this.registerDcsHandler(l,u)},a.prototype.registerEscHandler=function(l,u){return this._core.registerEscHandler(l,u)},a.prototype.addEscHandler=function(l,u){return this.registerEscHandler(l,u)},a.prototype.registerOscHandler=function(l,u){return this._core.registerOscHandler(l,u)},a.prototype.addOscHandler=function(l,u){return this.registerOscHandler(l,u)},a}();i.ParserApi=s},7090:(o,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.UnicodeApi=void 0;var s=function(){function a(l){this._core=l}return a.prototype.register=function(l){this._core.unicodeService.register(l)},Object.defineProperty(a.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(l){this._core.unicodeService.activeVersion=l},enumerable:!1,configurable:!0}),a}();i.UnicodeApi=s},744:function(o,i,s){var a,l=this&&this.__extends||(a=function(m,d){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var y in h)Object.prototype.hasOwnProperty.call(h,y)&&(f[y]=h[y])},a(m,d)},function(m,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function f(){this.constructor=m}a(m,d),m.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}),u=this&&this.__decorate||function(m,d,f,h){var y,C=arguments.length,w=C<3?d:h===null?h=Object.getOwnPropertyDescriptor(d,f):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(m,d,f,h);else for(var S=m.length-1;S>=0;S--)(y=m[S])&&(w=(C<3?y(w):C>3?y(d,f,w):y(d,f))||w);return C>3&&w&&Object.defineProperty(d,f,w),w},c=this&&this.__param||function(m,d){return function(f,h){d(f,h,m)}};Object.defineProperty(i,"__esModule",{value:!0}),i.BufferService=i.MINIMUM_ROWS=i.MINIMUM_COLS=void 0;var _=s(2585),v=s(5295),p=s(8460),g=s(844);i.MINIMUM_COLS=2,i.MINIMUM_ROWS=1;var b=function(m){function d(f){var h=m.call(this)||this;return h._optionsService=f,h.isUserScrolling=!1,h._onResize=new p.EventEmitter,h._onScroll=new p.EventEmitter,h.cols=Math.max(f.rawOptions.cols||0,i.MINIMUM_COLS),h.rows=Math.max(f.rawOptions.rows||0,i.MINIMUM_ROWS),h.buffers=new v.BufferSet(f,h),h}return l(d,m),Object.defineProperty(d.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),d.prototype.dispose=function(){m.prototype.dispose.call(this),this.buffers.dispose()},d.prototype.resize=function(f,h){this.cols=f,this.rows=h,this.buffers.resize(f,h),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:f,rows:h})},d.prototype.reset=function(){this.buffers.reset(),this.isUserScrolling=!1},d.prototype.scroll=function(f,h){h===void 0&&(h=!1);var y,C=this.buffer;(y=this._cachedBlankLine)&&y.length===this.cols&&y.getFg(0)===f.fg&&y.getBg(0)===f.bg||(y=C.getBlankLine(f,h),this._cachedBlankLine=y),y.isWrapped=h;var w=C.ybase+C.scrollTop,S=C.ybase+C.scrollBottom;if(C.scrollTop===0){var E=C.lines.isFull;S===C.lines.length-1?E?C.lines.recycle().copyFrom(y):C.lines.push(y.clone()):C.lines.splice(S+1,0,y.clone()),E?this.isUserScrolling&&(C.ydisp=Math.max(C.ydisp-1,0)):(C.ybase++,this.isUserScrolling||C.ydisp++)}else{var k=S-w+1;C.lines.shiftElements(w+1,k-1,-1),C.lines.set(S,y.clone())}this.isUserScrolling||(C.ydisp=C.ybase),this._onScroll.fire(C.ydisp)},d.prototype.scrollLines=function(f,h,y){var C=this.buffer;if(f<0){if(C.ydisp===0)return;this.isUserScrolling=!0}else f+C.ydisp>=C.ybase&&(this.isUserScrolling=!1);var w=C.ydisp;C.ydisp=Math.max(Math.min(C.ydisp+f,C.ybase),0),w!==C.ydisp&&(h||this._onScroll.fire(C.ydisp))},d.prototype.scrollPages=function(f){this.scrollLines(f*(this.rows-1))},d.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},d.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},d.prototype.scrollToLine=function(f){var h=f-this.buffer.ydisp;h!==0&&this.scrollLines(h)},u([c(0,_.IOptionsService)],d)}(g.Disposable);i.BufferService=b},7994:(o,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.CharsetService=void 0;var s=function(){function a(){this.glevel=0,this._charsets=[]}return a.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},a.prototype.setgLevel=function(l){this.glevel=l,this.charset=this._charsets[l]},a.prototype.setgCharset=function(l,u){this._charsets[l]=u,this.glevel===l&&(this.charset=u)},a}();i.CharsetService=s},1753:function(o,i,s){var a=this&&this.__decorate||function(m,d,f,h){var y,C=arguments.length,w=C<3?d:h===null?h=Object.getOwnPropertyDescriptor(d,f):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(m,d,f,h);else for(var S=m.length-1;S>=0;S--)(y=m[S])&&(w=(C<3?y(w):C>3?y(d,f,w):y(d,f))||w);return C>3&&w&&Object.defineProperty(d,f,w),w},l=this&&this.__param||function(m,d){return function(f,h){d(f,h,m)}};Object.defineProperty(i,"__esModule",{value:!0}),i.CoreMouseService=void 0;var u=s(2585),c=s(8460),_={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(m){return m.button!==4&&m.action===1&&(m.ctrl=!1,m.alt=!1,m.shift=!1,!0)}},VT200:{events:19,restrict:function(m){return m.action!==32}},DRAG:{events:23,restrict:function(m){return m.action!==32||m.button!==3}},ANY:{events:31,restrict:function(m){return!0}}};function v(m,d){var f=(m.ctrl?16:0)|(m.shift?4:0)|(m.alt?8:0);return m.button===4?(f|=64,f|=m.action):(f|=3&m.button,4&m.button&&(f|=64),8&m.button&&(f|=128),m.action===32?f|=32:m.action!==0||d||(f|=3)),f}var p=String.fromCharCode,g={DEFAULT:function(m){var d=[v(m,!1)+32,m.col+32,m.row+32];return d[0]>255||d[1]>255||d[2]>255?"":"\x1B[M"+p(d[0])+p(d[1])+p(d[2])},SGR:function(m){var d=m.action===0&&m.button!==4?"m":"M";return"\x1B[<"+v(m,!0)+";"+m.col+";"+m.row+d}},b=function(){function m(d,f){this._bufferService=d,this._coreService=f,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new c.EventEmitter,this._lastEvent=null;for(var h=0,y=Object.keys(_);h<y.length;h++){var C=y[h];this.addProtocol(C,_[C])}for(var w=0,S=Object.keys(g);w<S.length;w++){var E=S[w];this.addEncoding(E,g[E])}this.reset()}return m.prototype.addProtocol=function(d,f){this._protocols[d]=f},m.prototype.addEncoding=function(d,f){this._encodings[d]=f},Object.defineProperty(m.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(d){if(!this._protocols[d])throw new Error('unknown protocol "'+d+'"');this._activeProtocol=d,this._onProtocolChange.fire(this._protocols[d].events)},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"areMouseEventsActive",{get:function(){return this._protocols[this._activeProtocol].events!==0},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(d){if(!this._encodings[d])throw new Error('unknown encoding "'+d+'"');this._activeEncoding=d},enumerable:!1,configurable:!0}),m.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(m.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),m.prototype.triggerMouseEvent=function(d){if(d.col<0||d.col>=this._bufferService.cols||d.row<0||d.row>=this._bufferService.rows||d.button===4&&d.action===32||d.button===3&&d.action!==32||d.button!==4&&(d.action===2||d.action===3)||(d.col++,d.row++,d.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,d))||!this._protocols[this._activeProtocol].restrict(d))return!1;var f=this._encodings[this._activeEncoding](d);return f&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(f):this._coreService.triggerDataEvent(f,!0)),this._lastEvent=d,!0},m.prototype.explainEvents=function(d){return{down:!!(1&d),up:!!(2&d),drag:!!(4&d),move:!!(8&d),wheel:!!(16&d)}},m.prototype._compareEvents=function(d,f){return d.col===f.col&&d.row===f.row&&d.button===f.button&&d.action===f.action&&d.ctrl===f.ctrl&&d.alt===f.alt&&d.shift===f.shift},a([l(0,u.IBufferService),l(1,u.ICoreService)],m)}();i.CoreMouseService=b},6975:function(o,i,s){var a,l=this&&this.__extends||(a=function(f,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,C){y.__proto__=C}||function(y,C){for(var w in C)Object.prototype.hasOwnProperty.call(C,w)&&(y[w]=C[w])},a(f,h)},function(f,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");function y(){this.constructor=f}a(f,h),f.prototype=h===null?Object.create(h):(y.prototype=h.prototype,new y)}),u=this&&this.__decorate||function(f,h,y,C){var w,S=arguments.length,E=S<3?h:C===null?C=Object.getOwnPropertyDescriptor(h,y):C;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(f,h,y,C);else for(var k=f.length-1;k>=0;k--)(w=f[k])&&(E=(S<3?w(E):S>3?w(h,y,E):w(h,y))||E);return S>3&&E&&Object.defineProperty(h,y,E),E},c=this&&this.__param||function(f,h){return function(y,C){h(y,C,f)}};Object.defineProperty(i,"__esModule",{value:!0}),i.CoreService=void 0;var _=s(2585),v=s(8460),p=s(1439),g=s(844),b=Object.freeze({insertMode:!1}),m=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),d=function(f){function h(y,C,w,S){var E=f.call(this)||this;return E._bufferService=C,E._logService=w,E._optionsService=S,E.isCursorInitialized=!1,E.isCursorHidden=!1,E._onData=E.register(new v.EventEmitter),E._onUserInput=E.register(new v.EventEmitter),E._onBinary=E.register(new v.EventEmitter),E._scrollToBottom=y,E.register({dispose:function(){return E._scrollToBottom=void 0}}),E.modes=(0,p.clone)(b),E.decPrivateModes=(0,p.clone)(m),E}return l(h,f),Object.defineProperty(h.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),h.prototype.reset=function(){this.modes=(0,p.clone)(b),this.decPrivateModes=(0,p.clone)(m)},h.prototype.triggerDataEvent=function(y,C){if(C===void 0&&(C=!1),!this._optionsService.rawOptions.disableStdin){var w=this._bufferService.buffer;w.ybase!==w.ydisp&&this._scrollToBottom(),C&&this._onUserInput.fire(),this._logService.debug('sending data "'+y+'"',function(){return y.split("").map(function(S){return S.charCodeAt(0)})}),this._onData.fire(y)}},h.prototype.triggerBinaryEvent=function(y){this._optionsService.rawOptions.disableStdin||(this._logService.debug('sending binary "'+y+'"',function(){return y.split("").map(function(C){return C.charCodeAt(0)})}),this._onBinary.fire(y))},u([c(1,_.IBufferService),c(2,_.ILogService),c(3,_.IOptionsService)],h)}(g.Disposable);i.CoreService=d},3730:function(o,i,s){var a=this&&this.__decorate||function(_,v,p,g){var b,m=arguments.length,d=m<3?v:g===null?g=Object.getOwnPropertyDescriptor(v,p):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(_,v,p,g);else for(var f=_.length-1;f>=0;f--)(b=_[f])&&(d=(m<3?b(d):m>3?b(v,p,d):b(v,p))||d);return m>3&&d&&Object.defineProperty(v,p,d),d},l=this&&this.__param||function(_,v){return function(p,g){v(p,g,_)}};Object.defineProperty(i,"__esModule",{value:!0}),i.DirtyRowService=void 0;var u=s(2585),c=function(){function _(v){this._bufferService=v,this.clearRange()}return Object.defineProperty(_.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),_.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},_.prototype.markDirty=function(v){v<this._start?this._start=v:v>this._end&&(this._end=v)},_.prototype.markRangeDirty=function(v,p){if(v>p){var g=v;v=p,p=g}v<this._start&&(this._start=v),p>this._end&&(this._end=p)},_.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},a([l(0,u.IBufferService)],_)}();i.DirtyRowService=c},4348:function(o,i,s){var a=this&&this.__spreadArray||function(v,p,g){if(g||arguments.length===2)for(var b,m=0,d=p.length;m<d;m++)!b&&m in p||(b||(b=Array.prototype.slice.call(p,0,m)),b[m]=p[m]);return v.concat(b||Array.prototype.slice.call(p))};Object.defineProperty(i,"__esModule",{value:!0}),i.InstantiationService=i.ServiceCollection=void 0;var l=s(2585),u=s(8343),c=function(){function v(){for(var p=[],g=0;g<arguments.length;g++)p[g]=arguments[g];this._entries=new Map;for(var b=0,m=p;b<m.length;b++){var d=m[b],f=d[0],h=d[1];this.set(f,h)}}return v.prototype.set=function(p,g){var b=this._entries.get(p);return this._entries.set(p,g),b},v.prototype.forEach=function(p){this._entries.forEach(function(g,b){return p(b,g)})},v.prototype.has=function(p){return this._entries.has(p)},v.prototype.get=function(p){return this._entries.get(p)},v}();i.ServiceCollection=c;var _=function(){function v(){this._services=new c,this._services.set(l.IInstantiationService,this)}return v.prototype.setService=function(p,g){this._services.set(p,g)},v.prototype.getService=function(p){return this._services.get(p)},v.prototype.createInstance=function(p){for(var g=[],b=1;b<arguments.length;b++)g[b-1]=arguments[b];for(var m=(0,u.getServiceDependencies)(p).sort(function(S,E){return S.index-E.index}),d=[],f=0,h=m;f<h.length;f++){var y=h[f],C=this._services.get(y.id);if(!C)throw new Error("[createInstance] "+p.name+" depends on UNKNOWN service "+y.id+".");d.push(C)}var w=m.length>0?m[0].index:g.length;if(g.length!==w)throw new Error("[createInstance] First service dependency of "+p.name+" at position "+(w+1)+" conflicts with "+g.length+" static arguments");return new(p.bind.apply(p,a([void 0],a(a([],g,!0),d,!0),!1)))},v}();i.InstantiationService=_},7866:function(o,i,s){var a=this&&this.__decorate||function(p,g,b,m){var d,f=arguments.length,h=f<3?g:m===null?m=Object.getOwnPropertyDescriptor(g,b):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(p,g,b,m);else for(var y=p.length-1;y>=0;y--)(d=p[y])&&(h=(f<3?d(h):f>3?d(g,b,h):d(g,b))||h);return f>3&&h&&Object.defineProperty(g,b,h),h},l=this&&this.__param||function(p,g){return function(b,m){g(b,m,p)}},u=this&&this.__spreadArray||function(p,g,b){if(b||arguments.length===2)for(var m,d=0,f=g.length;d<f;d++)!m&&d in g||(m||(m=Array.prototype.slice.call(g,0,d)),m[d]=g[d]);return p.concat(m||Array.prototype.slice.call(g))};Object.defineProperty(i,"__esModule",{value:!0}),i.LogService=void 0;var c=s(2585),_={debug:c.LogLevelEnum.DEBUG,info:c.LogLevelEnum.INFO,warn:c.LogLevelEnum.WARN,error:c.LogLevelEnum.ERROR,off:c.LogLevelEnum.OFF},v=function(){function p(g){var b=this;this._optionsService=g,this.logLevel=c.LogLevelEnum.OFF,this._updateLogLevel(),this._optionsService.onOptionChange(function(m){m==="logLevel"&&b._updateLogLevel()})}return p.prototype._updateLogLevel=function(){this.logLevel=_[this._optionsService.rawOptions.logLevel]},p.prototype._evalLazyOptionalParams=function(g){for(var b=0;b<g.length;b++)typeof g[b]=="function"&&(g[b]=g[b]())},p.prototype._log=function(g,b,m){this._evalLazyOptionalParams(m),g.call.apply(g,u([console,"xterm.js: "+b],m,!1))},p.prototype.debug=function(g){for(var b=[],m=1;m<arguments.length;m++)b[m-1]=arguments[m];this.logLevel<=c.LogLevelEnum.DEBUG&&this._log(console.log,g,b)},p.prototype.info=function(g){for(var b=[],m=1;m<arguments.length;m++)b[m-1]=arguments[m];this.logLevel<=c.LogLevelEnum.INFO&&this._log(console.info,g,b)},p.prototype.warn=function(g){for(var b=[],m=1;m<arguments.length;m++)b[m-1]=arguments[m];this.logLevel<=c.LogLevelEnum.WARN&&this._log(console.warn,g,b)},p.prototype.error=function(g){for(var b=[],m=1;m<arguments.length;m++)b[m-1]=arguments[m];this.logLevel<=c.LogLevelEnum.ERROR&&this._log(console.error,g,b)},a([l(0,c.IOptionsService)],p)}();i.LogService=v},7302:function(o,i,s){var a=this&&this.__assign||function(){return a=Object.assign||function(v){for(var p,g=1,b=arguments.length;g<b;g++)for(var m in p=arguments[g])Object.prototype.hasOwnProperty.call(p,m)&&(v[m]=p[m]);return v},a.apply(this,arguments)};Object.defineProperty(i,"__esModule",{value:!0}),i.OptionsService=i.DEFAULT_OPTIONS=i.DEFAULT_BELL_SOUND=void 0;var l=s(8460),u=s(6114);i.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",i.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,customGlyphs:!0,bellSound:i.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:u.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1};var c=["normal","bold","100","200","300","400","500","600","700","800","900"],_=function(){function v(p){this._onOptionChange=new l.EventEmitter;var g=a({},i.DEFAULT_OPTIONS);for(var b in p)if(b in g)try{var m=p[b];g[b]=this._sanitizeAndValidateOption(b,m)}catch(d){console.error(d)}this.rawOptions=g,this.options=a({},g),this._setupOptions()}return Object.defineProperty(v.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),v.prototype._setupOptions=function(){var p=this,g=function(f){if(!(f in i.DEFAULT_OPTIONS))throw new Error('No option with key "'+f+'"');return p.rawOptions[f]},b=function(f,h){if(!(f in i.DEFAULT_OPTIONS))throw new Error('No option with key "'+f+'"');h=p._sanitizeAndValidateOption(f,h),p.rawOptions[f]!==h&&(p.rawOptions[f]=h,p._onOptionChange.fire(f))};for(var m in this.rawOptions){var d={get:g.bind(this,m),set:b.bind(this,m)};Object.defineProperty(this.options,m,d)}},v.prototype.setOption=function(p,g){this.options[p]=g},v.prototype._sanitizeAndValidateOption=function(p,g){switch(p){case"bellStyle":case"cursorStyle":case"rendererType":case"wordSeparator":g||(g=i.DEFAULT_OPTIONS[p]);break;case"fontWeight":case"fontWeightBold":if(typeof g=="number"&&1<=g&&g<=1e3)break;g=c.includes(g)?g:i.DEFAULT_OPTIONS[p];break;case"cursorWidth":g=Math.floor(g);case"lineHeight":case"tabStopWidth":if(g<1)throw new Error(p+" cannot be less than 1, value: "+g);break;case"minimumContrastRatio":g=Math.max(1,Math.min(21,Math.round(10*g)/10));break;case"scrollback":if((g=Math.min(g,4294967295))<0)throw new Error(p+" cannot be less than 0, value: "+g);break;case"fastScrollSensitivity":case"scrollSensitivity":if(g<=0)throw new Error(p+" cannot be less than or equal to 0, value: "+g);case"rows":case"cols":if(!g&&g!==0)throw new Error(p+" must be numeric, value: "+g)}return g},v.prototype.getOption=function(p){return this.options[p]},v}();i.OptionsService=_},8343:(o,i)=>{function s(a,l,u){l.di$target===l?l.di$dependencies.push({id:a,index:u}):(l.di$dependencies=[{id:a,index:u}],l.di$target=l)}Object.defineProperty(i,"__esModule",{value:!0}),i.createDecorator=i.getServiceDependencies=i.serviceRegistry=void 0,i.serviceRegistry=new Map,i.getServiceDependencies=function(a){return a.di$dependencies||[]},i.createDecorator=function(a){if(i.serviceRegistry.has(a))return i.serviceRegistry.get(a);var l=function(u,c,_){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");s(l,u,_)};return l.toString=function(){return a},i.serviceRegistry.set(a,l),l}},2585:(o,i,s)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.IUnicodeService=i.IOptionsService=i.ILogService=i.LogLevelEnum=i.IInstantiationService=i.IDirtyRowService=i.ICharsetService=i.ICoreService=i.ICoreMouseService=i.IBufferService=void 0;var a,l=s(8343);i.IBufferService=(0,l.createDecorator)("BufferService"),i.ICoreMouseService=(0,l.createDecorator)("CoreMouseService"),i.ICoreService=(0,l.createDecorator)("CoreService"),i.ICharsetService=(0,l.createDecorator)("CharsetService"),i.IDirtyRowService=(0,l.createDecorator)("DirtyRowService"),i.IInstantiationService=(0,l.createDecorator)("InstantiationService"),(a=i.LogLevelEnum||(i.LogLevelEnum={}))[a.DEBUG=0]="DEBUG",a[a.INFO=1]="INFO",a[a.WARN=2]="WARN",a[a.ERROR=3]="ERROR",a[a.OFF=4]="OFF",i.ILogService=(0,l.createDecorator)("LogService"),i.IOptionsService=(0,l.createDecorator)("OptionsService"),i.IUnicodeService=(0,l.createDecorator)("UnicodeService")},1480:(o,i,s)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.UnicodeService=void 0;var a=s(8460),l=s(225),u=function(){function c(){this._providers=Object.create(null),this._active="",this._onChange=new a.EventEmitter;var _=new l.UnicodeV6;this.register(_),this._active=_.version,this._activeProvider=_}return Object.defineProperty(c.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"activeVersion",{get:function(){return this._active},set:function(_){if(!this._providers[_])throw new Error('unknown Unicode version "'+_+'"');this._active=_,this._activeProvider=this._providers[_],this._onChange.fire(_)},enumerable:!1,configurable:!0}),c.prototype.register=function(_){this._providers[_.version]=_},c.prototype.wcwidth=function(_){return this._activeProvider.wcwidth(_)},c.prototype.getStringCellWidth=function(_){for(var v=0,p=_.length,g=0;g<p;++g){var b=_.charCodeAt(g);if(55296<=b&&b<=56319){if(++g>=p)return v+this.wcwidth(b);var m=_.charCodeAt(g);56320<=m&&m<=57343?b=1024*(b-55296)+m-56320+65536:v+=this.wcwidth(m)}v+=this.wcwidth(b)}return v},c}();i.UnicodeService=u}},n={};return function o(i){var s=n[i];if(s!==void 0)return s.exports;var a=n[i]={exports:{}};return r[i].call(a.exports,a,a.exports,o),a.exports}(4389)})()})})(e1);var t1={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(self,function(){return(()=>{var r={775:(o,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.FitAddon=void 0;var s=function(){function a(){}return a.prototype.activate=function(l){this._terminal=l},a.prototype.dispose=function(){},a.prototype.fit=function(){var l=this.proposeDimensions();if(l&&this._terminal){var u=this._terminal._core;this._terminal.rows===l.rows&&this._terminal.cols===l.cols||(u._renderService.clear(),this._terminal.resize(l.cols,l.rows))}},a.prototype.proposeDimensions=function(){if(this._terminal&&this._terminal.element&&this._terminal.element.parentElement){var l=this._terminal._core;if(l._renderService.dimensions.actualCellWidth!==0&&l._renderService.dimensions.actualCellHeight!==0){var u=window.getComputedStyle(this._terminal.element.parentElement),c=parseInt(u.getPropertyValue("height")),_=Math.max(0,parseInt(u.getPropertyValue("width"))),v=window.getComputedStyle(this._terminal.element),p=c-(parseInt(v.getPropertyValue("padding-top"))+parseInt(v.getPropertyValue("padding-bottom"))),g=_-(parseInt(v.getPropertyValue("padding-right"))+parseInt(v.getPropertyValue("padding-left")))-l.viewport.scrollBarWidth;return{cols:Math.max(2,Math.floor(g/l._renderService.dimensions.actualCellWidth)),rows:Math.max(1,Math.floor(p/l._renderService.dimensions.actualCellHeight))}}}},a}();i.FitAddon=s}},n={};return function o(i){if(n[i])return n[i].exports;var s=n[i]={exports:{}};return r[i](s,s.exports,o),s.exports}(775)})()})})(t1);const{io:hF}=Ao,pF={name:"Terminal",props:{token:{required:!0,type:String},host:{required:!0,type:String}},data(){return{socket:null,term:null,command:"",timer:null,fitAddon:null,isManual:!1}},async mounted(){this.createLocalTerminal(),await this.getCommand(),this.connectIO()},beforeUnmount(){var e;this.isManual=!0,(e=this.socket)==null||e.close(),window.removeEventListener("resize",this.handleResize)},methods:{async getCommand(){let{data:e}=await this.$api.getCommand(this.host);e&&(this.command=e)},connectIO(){let{host:e,token:t}=this;this.socket=hF(this.$serviceURI,{path:"/terminal",forceNew:!0,reconnectionAttempts:1}),this.socket.on("connect",()=>{console.log("/terminal socket\u5DF2\u8FDE\u63A5\uFF1A",this.socket.id),this.socket.emit("create",{host:e,token:t}),this.socket.on("connect_success",()=>{this.onData(),this.socket.on("connect_terminal",()=>{this.onResize(),this.command&&this.socket.emit("input",this.command+`
`)})}),this.socket.on("create_fail",r=>{console.error(r),this.$notification({title:"\u521B\u5EFA\u5931\u8D25",message:r,type:"error"})}),this.socket.on("token_verify_fail",()=>{this.$notification({title:"Error",message:"token\u6821\u9A8C\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55",type:"error"}),this.$router.push("/login")}),this.socket.on("connect_fail",r=>{console.error(r),this.$notification({title:"\u8FDE\u63A5\u5931\u8D25",message:r,type:"error"})})}),this.socket.on("disconnect",()=>{console.warn("terminal websocket \u8FDE\u63A5\u65AD\u5F00"),this.isManual||this.reConnect()}),this.socket.on("connect_error",r=>{console.error("terminal websocket \u8FDE\u63A5\u9519\u8BEF\uFF1A",r),this.$notification({title:"\u8FDE\u63A5\u5931\u8D25",message:"\u8BF7\u68C0\u67E5socket\u670D\u52A1\u662F\u5426\u6B63\u5E38",type:"error"})})},reConnect(){this.socket.close&&this.socket.close(),this.$messageBox.alert("<strong>\u7EC8\u7AEF\u8FDE\u63A5\u65AD\u5F00</strong>","Error",{dangerouslyUseHTMLString:!0,confirmButtonText:"\u91CD\u65B0\u8FDE\u63A5"}).then(()=>{this.term&&this.term.dispose(),this.connectIO()})},createLocalTerminal(){let e=new e1.exports.Terminal({rendererType:"dom",bellStyle:"sound",convertEol:!0,cursorBlink:!0,disableStdin:!1,fontSize:18,theme:{foreground:"#ECECEC",background:"#000000",cursor:"help",lineHeight:20}});this.term=e,e.open(this.$refs.terminal),e.writeln("\x1B[1;32mWelcome to EasyNode terminal\x1B[0m."),e.writeln("\x1B[1;32mAn experimental Web-SSH Terminal\x1B[0m."),e.focus(),this.onSelectionChange()},onResize(){this.fitAddon=new t1.exports.FitAddon,this.term.loadAddon(this.fitAddon),this.fitAddon.fit();let{rows:e,cols:t}=this.term;this.socket.emit("resize",{rows:e,cols:t}),window.addEventListener("resize",this.handleResize)},handleResize(){this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{var o,i;let e=[],t=Array.from(document.getElementsByClassName("el-tab-pane"));t.forEach((s,a)=>{e[a]=s.style.display,s.style.display="block"}),(o=this.fitAddon)==null||o.fit(),t.forEach((s,a)=>{s.style.display=e[a]});let{rows:r,cols:n}=this.term;(i=this.socket)==null||i.emit("resize",{rows:r,cols:n})},200)},onSelectionChange(){this.term.onSelectionChange(()=>{let e=this.term.getSelection();if(!e)return;const t=new Blob([e],{type:"text/plain"}),r=new ClipboardItem({"text/plain":t});navigator.clipboard.write([r]),this.$message.success("copy success")})},onData(){this.socket.on("output",e=>{this.term.write(e)}),this.term.onData(e=>{if(e.codePointAt()===22)return this.handlePaste();this.socket.emit("input",e)})},handleClear(){this.term.clear()},async handlePaste(){let e=await navigator.clipboard.readText();this.socket.emit("input",e),this.term.focus()},focusTab(){this.term.blur(),setTimeout(()=>{this.term.focus()},200)}}},vF=Te(" \u6E05\u7A7A "),gF=Te(" \u7C98\u8D34 "),mF={ref:"terminal",class:"terminal-container"};function _F(e,t,r,n,o,i){const s=Ir;return K(),se(Ve,null,[W("header",null,[G(s,{type:"primary",onClick:i.handleClear},{default:Q(()=>[vF]),_:1},8,["onClick"]),G(s,{type:"primary",onClick:i.handlePaste},{default:Q(()=>[gF]),_:1},8,["onClick"])]),W("div",mF,null,512)],64)}var yF=lr(pF,[["render",_F],["__scopeId","data-v-dab5061c"]]),bF="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAK8AAAA3CAYAAAB6pxpbAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAA7kSURBVHja7J15fBNlGsd/cyW96X2FtmnlbC0FuW8ox7IgyrWL4ILL6nZZ1xUPkEsOQQS1iKggiyKyAoJrhcqKiBzK4QrlVEqhLW1o6U3TkzbJXPtHmjZJkzYtbaq77/NfZjLvvJ35zjO/5/e8/YSSZRkk2iZkvoqTK9JipcobsXLNnQhZEjhyVVoeFOdZSXt2TaW9o69SHlF5dr9H4G0DaPVaV8PVle9Kd88NB9CNXJE2i3RQjKiIXb6Y6Tz5EIG3jUMsPjXUcGHhR4BMoG1HiCkPdabLkI8ng3WXCLxtEEL23tl82qZVJNs6SU6wHheUow4MoxTeegLvfYRUfq2b/od5hwi4zg3as2uycvjeKQTe+4jaoyMvQqh5iFwJ50sIRa/VzzOdJx0m8LZG5xZ8O9ZwedkWknU7DmDXiSndCbytCP3ZuZ9LFWnTyZXoOHiVw/b8hsDbGslwuP9NknU7NrjohbMIvC0Mma/idN/GXyPwdmywYY+uIfC2FF5diZfuxMQKciU6NpjA4VsJvC2FV6911R3/TQ25Eh0Mb9CozQReAi+Bl8BLgsBL4CVB4CXw/s/Du+v7/CeOXC2d2tpBOrmx2tUzol4I6qQoJ/A2DtqvPxRxq0G5BDaMwVeCT30dYv5Ru8e5jNgPyiOq4ZjqLOhOzex4aFQToYhZDLBu9duE3GTwP7/aYfB+fB/wYvWMKB8Cr+PwAoBUdhX6lGcBoYbAS+D9dcELyQDh1i7wGdsJvG0MbzKRDe0MLwC5Jh+GKy9DKv+ZwNsW8Eb4u2D51EjGw4WRSFnQvvBCliAWHIXhygoCL4H3VwavqXhL2wzxzpcE3l8SvCdTy0aeSNVOKigzqGoMonv9jeHoWj9PrmhUtM/RSX38D9s7vrJW4I5fK3v4h/TykaVVfJCOl1wBgKIguSmY6mBvRWF8jO9Xo2N8vjc/LueuLui1g5rXK2sFbwBgaEqYP06VOLSb94+2znM2vXzQtm/zFoqSzAKAlytbvmyKenG4v0tRe8Nrr3hrKbx0wCCwYdNA+8SBUnQCKMa4Q9RD1hVCLDoFQbMPsq646fl6x4KNnA3afwAozhMABUgGSFWZEDT7AaBF8LKRfwDTeTJoNxXAKOv1vqwvhXj3HISMD5qdk1PhLSjT+751OGdlnlavBvBoE19NDvFW5i58OHxViI9Sa77jsqYqduvRO4vu6cU5zZzO5hhvfHl72ZXbVetMnwd26bRwwW/DNtoa4O3DOS+ev1WZaPo84AGvhc9NDN/ojMxrvJk8hOw94G9uaTG8lEsguNjlYPwHNgBr961RCiHjQwg5n9sGovMj4Hr8DZTC1/YAoh5i8WkwAUOahZf2jgUX/QJo7xjjA9DEnPibWxu9eToM3lX/ylqfUVizpIkC0ALoB8M8Vi2bol5j+pxdUqvakKxZV1UrPuHoGJGBrhuXPqp+yTTv0zfKh24/nndGlIxNGH9PbvuKaZGLArwUlebHlVQavNZ+kf3m3So+oS5LI2GMatjwHt5n2wteuSbP+Jnm7BZvjsBLeURC0WsVaO/oJgGxBlDI3g0+fZslDAFDwMUub/ohq9PpoCiL81nDS3lEQtFnHWjPro5JMb4Kws0tEHKSnOc2KDm69vmJ4Wt6hXuk2XgFT6+DIWlq/4A90wYEHjCBue3bvEW5pboFZo7FTnPHYu/Zwtn/vnR3j2m/yle5+cnRoe/0CHXPMsmJz34snncyVTtBljG1TkoceHxY8PaJvf2PmL6z9ovsN/O0+gVNQWkNucpXuXnFtMhFXq4s317wSqUpAK0A7RNnPjLEguMwXF7qMLyK3mvBhIwHKNriwRA0+yDc+RKUSxC4qDlggsdYZEpbOls5aDto3z4W85EqMyBkfQIx/wjYiBlgI/8Ayk3V6G+0hlfRZz2YkDENgIt6iIXHwd/6GLKuCKx6Flj17y0yvFSVCcOlxZDv5TjH51VyNJ6fGB5tDi8AZBTWqH/MqBh5RVPdLyLAJevZCWGbzPefSC0bueNk3nemzrT1OIn/vr3kUnbVetP3/xyvGmWtawFg41c5S/K1elVvtceFgV06fd8txE1jvv/DE3kJJ1LL/tGUHLCWF/ExPn95Kl61vT0LNqk0BULuQXAxi0FxXpYZ6MY7EHIPNgsvEzq+0fFSVQYMl5dDrs621J3qWWC7JYBiPRq+q70M/Y8JxrFCxoJ7cKnVWFkwXF5iMRbtHQtF71dBuYXahZcJGAKu1ypQyjowZQGCZj/4tLct4QudAC5mUcM5JQP4jA8g3Pq4Y+FtLn7Kqe656XDOdT0v2Rwn6Vzx9KTzxfXCLKiTYutT8arNMZ3d01tynpv5NVFvHNKsrTVIs21Jh4Jyve/apOzE8hphHgC4Kui9L01Wr+ge6pbV3vDqzz1tM3NKFWnQn5sPlyE7m4SXe3AJ2LCpDceKOvA3t0LQfGpzHop+m8AEDrPMvtfWQyw4Bq7bX8FGzWmQMbIIQfMp+LTNjcZpdF4reLmeC8CqZ9Xrb/PzNOJn6CegO/VoUDRFp2C4+GLHyQZ7UVJp8Lqedy/uQlbV0Ot3qmNNQNmCt6BM77s+WbPepENNc+IYSq/yVeb2UXuej4vwPG+daW3Fyn9lrc+s098UBTw5WjUqvi6LW78BugS7bVjzu6il7W2VmeClPCKh7JsIyj3c7ATGTMUEDG4SXuXgHaB9ejXsr82H4dJSSBXXbc6jEaCSAfytnRAyPgQX+zLYMLMSQqiBIfV1iHmNjSA2ai64rgkNzoEVvIo+r4EJGdeqWkmquAH92Tmth7etrLI8rd7/RKp20oWsqkF3qwxBsgzanvNgK4PnluqC3jmSu7QJxyKZoiCp/V2zxvXyTR4V7XPa1tiHr9ydsOdM4dcmQHtHeC5/6ZGI1wDgtYOalddyq18xgf34sODfmjSzM+AFAPaBP4Lr8pQFDLKuCJAEC31pDW9LrTSm8yNQRL/YoH1lCUJOEvjUNxrBK+uKYbi62qjNW+jzKgduBe3Xv3Ueegu87HaD96Pv8p88fk07yVRM3Y/8SC+oUR9MKZmdeqc6jhdlpT2QVb5KzQsTw9dYW27W0sDLld21bIp6cR28r1fWCk+Yb7fl7bYnvGDdoOybaHXDZUCWLQsxZ8Jr0IL/6VWIxaedC29NLvQpzzlUtLULvJ+fK55+IKX4cXNwOYZCZKArHghyRa9wD+h4CduO5cGe5rUXF7Iq4765qp2WXnCvhy2QrS03Wz5uXYYFAOw5UwhTRm7K221XeI03AlzsUvv+qi3ZMPB90H79nC8bIn4PrsczAONqWzb03QgmaIRDWfwX1WGr1on0ugPZibfv6p43bXso0hPPjA+Di6Ihi1y9XY23D+dAL7QMXvPQlOhCdp8pmH/9zr2V9iw3U6TcqnzovW9yL/KikdQeoe6QZBnpBUYGGZrC/HGqwfY6cO0NLwBwMS+BDZ9ukW2bglfRawWYzpPN7KgWFmxm2ZXt+hS4B+YBtKLZgq3ReZsp2CDWgr/xHoTbn/2y4S2qMHiv/jyrrKJGqN82b1QoxsVaZpT9/ylC8oUSu7JBW827Xr1dPeD8rYrh2cW6LlP6B+ydEOfXaOX2ucyKfluO3kkR6qC0tzzT2vOlKQoy5Pqs25y36wx4jcb+BtCeUQ7B28hqaqlVZjaHRvaWHavMXiPDwiqzZbuVpkB/caHdtcttBm9L3AZTTIjzOzB3RMiu8hpBuTYpO7GgXP+Mmc2FhDEq9FC5o6pWwMGUEhy/poUpC1rDa93xqtu/b1r/gL2jY3y/Mj1UN/LvRe04mf+sCci6B2/T8qmRC209ePv/U/RY8oWST+3M/49zR4TsckiXtRO8RsgeA9f9aYtXcpNNin5v1WVTymaTgnZXg434HZjg+MZNCqv/5Gg8lgy5Oht85s4WNymUA94F7T+wYSxZgqS9CCFrN8SSH8AEDAGjngnGty9kvgJSxQ1IpechFp50eJ1DmyxGt7751o0BR4KigIQxqhEjexodg6M/acd+crpgvqlL50iLmKGppHmjQt+Nt9HMsOX5msIRb9dZ8NoDssn2cAvasCY9y2fvhpDxgeU87TQgbFyBRsWkNbwOt5otfLKmF+c7Bd7KWoF789DtdbeKarvZcgYoCgd6hrr/7OPBac/eLH/bXmfru+tlw/95uuBpnUF6rLnzuyjofXOHh2y1Z5eZwtwaM4Uj3q4z4TXe+JdBuQQ4ZCNRHpFQRC8E7de3+YU5umLwGdsh5ibbP3f0i5a+sxW4Uvl1UJwHKPcIu/A2jPVC3VhNr7uQhWqIms/Ap7/fKtkw9T7hPWD92j10sWTysWtlE00eL8dQ+ogA16xp/QN291Z7ptYVUYvrXAP4e3JF1gtn7ulF+syN8rFnbpaPLSw3BNcYRI86v7h+WeXInj5HR8f4HHFXNq/RrT1fR71dZ8JrLHqeA6ueCVCsw1YY7dcXbPgM0L4P2V4SWXgS/K2dzepOyiUQbNc/gwkcZnQ/KNq4hLG2oH4M6+6f3SWRrBu4qDmgA0cal0SyrnUgy8Z56Usgll6CkL2nkU53CN7/p399t16E46i3ez/wkmif+L+D99Uvsl+5ntdgrTnq7RJ4CbwdFvf0Ir3nTGHC92ll403NE4amkuaPVSUO7d68t0vgJfA6PZbty0zUlOi6WDsTANA12G3DKy0o1Ai8BF6nxoZkzcs/5VSvtd7u68HtWPxIxPIwP8e1LoGXwOvU2HWqYN6xn7WTRElmKQpSJ1e2vE+k5/mZg4N2ONJNI/ASeP+ngsBL4P31wmsoc9UdG38F5DcpOhbe4NEE3tYE+TWgjg+ua8JfCbytgnfATfJD2R0biv6bBxJ4WxF8+ranhcwdW8iV6LBIdxl3/EECb2t0r67IW3fi4XNEOnRUsTbyPUXfxL8TeFudfd9/Rsj86O8E4A7IumO/6U0pfGsJvPcR+tOzDkpVmT0JwM4DV9HvrT8xgcPPAgCB934BPjXzS6k6qzsB2Ang9lk/nwkZe9K0gcDbdgXcAgJw+0BLcV7likHbZtKeXTXmOwi8bVXE6e+6i3lfzxBuf/aEXFuoIlekDQqz4NFfs2FT99IBg8/b2v/fAQBFcvEWfMLu0gAAAABJRU5ErkJggg==",CF="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAC59JREFUeF7tnWusXFUZhr81rVRrNMaYGFR69iCCVENnpsSAklgv8YJiouAPKdGEqokIRqRnD/WC9VpmnyJGEBMUEg3oDwUTL3iJSk0QiOHMTIkWQWT2KSoxMcZorLa2s8zBmhTsOTOz59t7vr3Xc/6etd71refdTyA5nT1O+IEABFYk4GADAQisTABBeDogsAoBBOHxgACC8AxAIBsB/guSjRu7AiGAIIEUzTWzEUCQbNzYFQgBBAmkaK6ZjQCCZOPGrkAIIEggRXPNbAQQJBs3dgVCAEECKZprZiOAINm4sSsQAggSSNFcMxsBBMnGjV2BEChEkN6uaEsgPLlmgQSaO9I9eR9XjCBJ5PO+CPnhEWjGae7Pb+4HLNfWQ5Dwnt4CbowgBUDmiPISQJDydsfkBRBAkAIgc0R5CSBIebtj8gIIIEgBkDmivAQQpLzdMXkBBBCkAMgcUV4CCFLe7pi8AAIIUgBkjigvAQQpb3dMXgABBCkAMkeUlwCClLc7Ji+AAIIUAJkjyksAQcrbHZMXQKA6gvCBqQIel/COqMwHpsKrjhtXhUAhH5iqCizuER4BBAmvc248AQEEmQAWS8MjgCDhdc6NJyCAIBPAYml4BBAkvM658QQEEGQCWCwNjwCChNc5N56AAIJMAIul4RFAkPA658YTEECQCWDlvbTbOel5y2e02o/+Me+zyB+PAIKMx6mQVb2kftfyQc14cE4hB3LISAIIMhJRMQt6Sf0WEb/1v6e5W5vx4KJiTuaU1QggiIHno9epf1qc/8gTRvHuM8324KMGxgt6BASZcf17F+a2Db37yvHGqDn/7k3zSzfNeMSgj0eQGda/t7PhNUNX+8lqI9T88LWb2vt/OsMxgz4aQWZU/33JSS9cI2t+KSLPHjHCX47IkZedGT/6uxmNGvSxCDKj+rtJtOhEWuMc70W6rTjdPM5a1ugSQBBdnmOldTvRbc7J28ZafHSR93J7q52eP8ke1k5PAEGmZzhRQj+p7/bir5ho09HFTtw1jXiwPcte9mQjgCDZuGXa1e/UL/XOX5dp8/8k8e6yRntw/TQZ7B2fAIKMz2qqlYvJyW+uyfC7U4Uc3TyU2nmb40e+p5FFxuoEEKSAJ6S7e8NGGdbucyJP0zjOi/xTasMzW9v379PII2NlAgiS89NxxxdOWXfivw53RWSj8lH7Hnvq2ta5H3j4oHIucccQQJCcH4deEn1fRM7N6Zg7mnH6ppyyiV3+V3FQyI9Ab6H+RfH+kvxOWG7Q3dCcH7w/1zMCDkeQnMrvderz4nySU/wTY72Lm+3BQiFnBXYIguRQeHd3/QI39N/MIXrFSF9zb29tH3yryDNDOAtBlFvuXzPX9EO3KL7g/3114l3Nb25csdRTvlLQcQiiWP+9O0955rr1h/siUleMnSRqcPDA2sZZOx/+2ySbWLsyAQRRfDp6SfQzEXmVYmSWqDubcfrqLBvZ8/8EEETpqegn0U1e5GKluKlinMjNjTjdNlUImx8ngCAKD0J/of4x7/0nFaLUIpxzVzXmB59SCww0CEGmLL7Xmdsqzt0yZUw+272/qNleujWf8DBSEWSKnhc70Vk1J/dMEZH71qGXsze303tzP6iiByBIxmIf3H3qcw74Q/eLlxMzRhSzzclj690JZ5y2/aE/F3NgtU5BkIx99pLobhE5O+P2orfd04zTlxd9aBXOQ5AMLfaS6Osi8o4MW2e55RvNOL1wlgOU8WwEmbC1bif6rHOyY8JtJpZ7L7ta7fTDJoYpyRAIMkFR/WTuYi+u1C9yc+K3NeKlmye4dtBLEWTM+rtJ9EonsmfM5aaXeZEtrTj9uekhjQyHIGMU0f/cC57vD6/9lYg8a4zlZVjyV7f28EsbH/r9H8ow7CxnRJAx6PeSaPlfyDbGWFqmJf1mnDbLNPAsZkWQEdT7SXS7F3nrLMrJ+0wn8u1GnE70Aru8Z7KWjyCrNDLNS96sFb3SPLyMbvWmEGQFPt0kep8TuaEsD/o0c3qRS1px+qVpMqq6F0GO02w/qb/Oi/9RVUs/3r2cuNc34sGPQ7rzOHdFkCdRuv/aDScf+Xdt+YVs68YBWKE1B9c8ZbjxjMv3P1KhO019FQR5EsJ+Ej3gRV48NdkSBjiR3zTi9PQSjp7byAhyDNpuEv3AibwhN9olCPYiP2zF6RtLMGohIyLIUcz9hbnrvHeXFkLd+CHO+esb80uXGR+zkPEQRER6C9EHxcu1hRAvyyFOLm/Op58vy7h5zRm8IItX18+r1fx38gJc5tzh0L1l85UDla9sKCuHoAVZ7MydXnOOrxBY5ekder9xc3vpgbI+4NPOHawgv9658YRD6w88JCJz00Ks+P6lEw6sP/UlO/cdqvg9j3u9YAUx8pK3sjxzwb6MLkhBep25G8W595Tl6TQxp/dfbraX3mtilgKHCE6QbidqOydXF8i4Mkd5L1e22mmnMhca4yJBCbI3mTt/KI6vCBjjwVhpSU38BZvipdumiCjV1mAE6SXR8gee+GoAncez2YzT5bfYV/4nCEHu6pz2jKe7g78VkedWvtFiLvinf/h1Lzqn/eDfizludqcEIUivE/1CnPDiNM3nzMvdzXb6Cs1Ii1mVF6SXRF8VkXdahF+Bmb7WjNN3VeAeK16h0oJ0k+gqJ/KJKhc467t5kY+34tTUVz9oMqmsIL2FuQvFO179r/m0rJTl/Nbm/NLy61gr91NZQWbRVC+J7hSRLbM4+5gz9zTjdNZfAzdjBHrHI4geS0EQRZhGohBEsQgEUYRpJApBFItAEEWYRqIQRLEIBFGEaSQKQRSLQBBFmEaiEESxCARRhGkkCkEUi0AQRZhGohBEsQgEUYRpJApBFItAEEWYRqIQRLEIBFGEaSQKQRSLQBBFmEaiEESxCARRhGkkCkEUi0AQRZhGohBEsQgEUYRpJApBFItAEEWYRqIQRLEIBFGEaSQKQRSLQBBFmEaiEESxCARRhGkkCkEUi0AQRZhGohBEsQgEUYRpJApBFItAEEWYRqIQRLEIBFGEaSQKQRSLQBBFmEaiEESxCARRhGkkCkEUi0AQRZhGohBEsQgEUYRpJApBFItAEEWYRqIQRLEIBFGEaSQKQRSLQBBFmEaiEESxCARRhGkkCkEUi0AQRZhGohBEsQgEUYRpJApBFIvo7Ypm/eU5j9+muSPdo3itoKMQJOj6ufwoAggyihC/D5oAggRdP5cfRQBBRhHi90ETQJCg6+fyowggyChC/D5oAggSdP1cfhQBBBlFaILf83eQCWCVZCmCKBbFX9IVYRqJQhDFIhBEEaaRKARRLAJBFGEaiUIQxSIQRBGmkSgEUSwCQRRhGolCEMUiEEQRppEoBFEsAkEUYRqJQhDFIhBEEaaRKARRLAJBFGEaiUIQxSIQRBGmkSgEUSwCQRRhGolCEMUiEEQRppEoBFEsAkEUYRqJQhDFIhBEEaaRKARRLAJBFGEaiUIQxSIQRBGmkSgEUSyCD0wpwjQShSBGimAMmwQQxGYvTGWEAIIYKYIxbBJAEJu9MJURAghipAjGsEkAQWz2wlRGCCCIkSIYwyYBBFHshb+DKMI0EoUgikXwl3RFmEaiEESxCARRhGkkCkEUi0AQRZhGohBEsQgEUYRpJApBFItAEEWYRqIQRLEIBFGEaSQKQRSLQBBFmEaiEESxCARRhGkkCkEUi0AQRZhGohBEsQgEUYRpJApBFItAEEWYRqIQRLEIBFGEaSQKQRSLQBBFmEaiEESxCARRhGkkCkEUi0AQRZhGohBEsQgEUYRpJApBFIvgA1OKMI1EIYiRIhjDJgEEsdkLUxkhgCBGimAMmwQQxGYvTGWEAIIYKYIxbBJAEJu9MJURAghipAjGsEkAQWz2wlRGCCCIkSIYwyYBBLHZC1MZIYAgRopgDJsEEMRmL0xlhACCGCmCMWwSQBCbvTCVEQIIYqQIxrBJAEFs9sJURgj8B9tBHvbNZCIvAAAAAElFTkSuQmCC",wF="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAC6NJREFUeF7tnU2MW1cZhr8zE1JUdQFkVdhUCLVAKBGQltieuZ5BQMOmBUQQ0CJoILaTVqIgWhZtWdB0QUG0SG1iO0BBlB8RBKQbKCBmfGdshyaASgl/QogNdBVggSoaMnOQo0lpQjLxvf7une/e88w257znfM97HyUzzthO+IIABC5KwMEGAhC4OAEE4emAwDoEEITHAwIIwjMAgXQE+BskHTd2BUIAQQIpmjHTEUCQdNzYFQgBBAmkaMZMRwBB0nFjVyAEECSQohkzHQEESceNXYEQQJBAimbMdAQQJB03dgVCAEECKZox0xFAkHTc2BUIAQRRLLq1sGNOMS51VHv+6GLqzWw8hwCCKD4QzbiyIOI2WBK/2ImG84pjBR2FIIr1I4giTCNRCKJYBIIowjQShSCKRSCIIkwjUQiiWASCKMI0EoUgikUgiCJMI1EIolgEgijCNBKFIIpFIIgiTCNRCKJYBIIowjQShSCKRSCIIkwjUQiiWASCKMI0EoUgikUgiCJMI1EIolgEgijCNBKFIIpFIIgiTCNRCKJYBIIowjQShSCKRSCIIkwjUQiiWAS/MKUI00gUghgpgmvYJIAgNnvhVkYIIIiRIriGTQIIYrMXbmWEAIIYKYJr2CSAIDZ74VZGCCCIkSK4hk0CCKLYC6+DKMI0EoUgikXwSroiTCNRCKJYBIIowjQShSCKRSCIIkwjUQiiWASCKMI0EoUgikUgiCJMI1EIolgEgijCNBKFIIpFIIgiTCNRCKJYBIIowjQShSCKRSCIIkwjUQiiWASCKMI0EoUgikUgiCJMI1EIolgEgijCNBKFIIpFIIgiTCNRCKJYBIIowjQShSCKRSCIIkwjUQiiWASCKMI0EoUgikXwC1OKMI1EIYiRIriGTQIIYrMXbmWEAIIYKYJr2CSAIDZ74VZGCCCIkSK4hk0CCGKzF25lhACCGCmCa9gkgCCKvfA6iCJMI1EIolgEr6QrwjQShSCKRSCIIkwjUQiiWASCKMI0EoUgikUgiCJMI1EIolgEgijCNBKFIIpFIIgiTCNRCKJYBIIowjQShSCKRSCIIkwjUQiiWASCKMI0EoUgikUgiCJMI1EIolgEgijCNBKFIIpFIIgiTCNRCKJYBIIowjQShSCKRSCIIkwjUQiiWASCKMI0EoUgikUgiCJMI1EIolgEgijCNBKFIIpFIIgiTCNRCKJYBIIowjQShSCKRSCIIkwjUQiiWASCKMI0EoUgikUgiCJMI1EIolgEgijCNBKFIIpFIIgiTCNRCKJYBIIowjQShSCKRSCIIkwjUQiiWASCKMI0EoUgikUgiCJMI1EIolgEgijCNBKFIIpFIIgiTCNRCKJYBIIowjQShSCKRSCIIkwjUQiiWASCKMI0ElVaQRq9ygecc98wwrnU1/De39ytD79ZxiFLK8iorFZcudeL+0wZi7MykxP/6XY0vM/KfbTvUWpB1iT5qhf3IW1w5Ik48V9rR8MPl5lF6QUZlddcqi6Jl5kyF5n7bE6WO7OD2dzPzfnAIATZtzB3xcr0qT+KyJU58y3rcc9Mr2y++sD84r/KOuDZuYIQZDTsR+M3v35app8qe6F5zLciK9u+FP3813mctdFnBCPIme9HFivv8lPuexsNvcjnu1X/7vbc8PtFniHJ3YMS5Mz3I73KJ8W5zyWBxNo1At7f2akPPx8Sj+AEOSNJXDko4lohFT35rL7diYZ7J88pVkKQgqz9ZOvH4uVtxaprg27r5Ced2cHbN+j0DT02WEEax9/0IvfsZb8XkVduaAP2D/+zv/y5V3e3/+I/9q+qf8NgBRmh3LM0c/WUX/2DPtbyJK66qWsOzS6PfkQe5FfQgpz5yVZcucGL+1GQ7V9iaCd+ZzsaPhEym+AFGZXf6FVuc849HPKDcP7s3vvbu/XhI6EzQZC1J6ARV77gxH089AdiNL8X/2A3Gn4CFqP/b8bX8wQaveoR5+TGkJF4L49364ObQmbwwtkR5LwnoRlXfyMiWwN9QE50osHrAp39gmMjyHlYWgs7rvLTU78TkRcH9qD8262svqY9f/Qvgc297rgIcgE8raWZOe9XF0J6UJybmm/PLi+GNPM4syLIRSg1l6q3ipevjAOx8Guc7O7MDh4t/BwZDIAg60BtLFX3Oy93Z8DdTKR3cn93dnCPmQsZuwiCXKKQVlz9lhd5n7HeVK7jRL7djgbvVwkraQiCjFFss1c9Jk62j7G0OEu8HO/UB9cV58Ibc1MEGYN7I5690snKCRF56RjLi7DkH16mt3ajpWeKcNmNvCOCjEl/T69SnXKuP+Zy08tWva8dqg8Hpi9p5HIIkqCIVq92s3f+sQRbzC113t3Srvd5Q70xm0GQMUGdXdZaqt7tvexPuM3Ecufknvbs4H4TlynIJRAkRVHNuDp6feTWFFs3csujnWiweyMvUMSzESRla8242hORKOX2vLfFnWhQz/vQMpyHIClbvO2n1285fdmmp8TLK1JG5LPNyV83PXd62yNvffJkPgeW6xQEmaDP5kJtu0z7YxNEZL91xV3Xme8fz/6gcp6AIBP22oyr7xGRwxPGZLV9VycafDer8BByEUSh5UZcu9OJf0AhSi3Ci7urG/V5g7wJiSLIhADPbm/E1QNOxMQbq3mRg91osE9ptKBjEESx/mZcHb07yg2KkWminuhEg51pNrLn/wkgiOJTse/E3BWnT576lRN5lWLs2FFe5E+btmx+w4Gt5f9YgrGhTLgQQSYEeP72Rq9yrXNu9DELebP13vtt3frwaeWRgo7Lu8QgYO/p1W6ccv5InsOuenfToXr/8TzPDOEsBMmo5Wav8jFx7qGM4s+N9f6OTn34xVzOCuwQBMmw8GZce1DE35HhEaN/yT3Uifq84V1GkBEkI7BnY5tx9QciktUbsR3pRIN3ZjxC0PEIknH9u068dvPLTr5k9F89rlU+6um/b/nn9sNbf3tKOZe4FxBAkBweh73LtWtWV/0vReRypeOenZpybzw40+ejG5SAXiwGQTIG/Pw/tRYqO2Xa/VDluBX/js78kI9sUIG5fgiC5AD5f9+P1Foi/uBkR7q9najfniyD3eMSQJBxSSmta8TVzzqRu9LEeZEHutHgU2n2sicdAQRJx22iXa249h0vfleSECfucDvqvzfJHtZOTgBBJmeYKqEVV5/0ImO9cZsTOdaOBtenOohNExFAkInwpd/cGu64yp+aOi5Otqyb4uWk27y6vV3hYwnS006/E0HSs5t4Z2O5Nu9W/c/WC/JT7i3dmX5QH8UwMVjFAARRhJkmqrVU2e29+/KF9jrnP9KeHYbxEQxp4OWwB0FygHypI5q96n3i5NyPIPCyv1Mf3Hupvfx5tgQQJFu+Y6c34+rXReSWtQ2PdaLBB8fezMLMCCBIZmiTBzfj2vJoVyfqzyTfzY4sCCBIFlRTZt6+XHv5aOvDM/2/pYxgmzIBBFEGSly5CCBIufpkGmUCCKIMlLhyEUCQcvXJNMoEEEQZKHHlIoAg5eqTaZQJIIgyUOLKRQBBytUn0ygTQBBloMSViwCClKtPplEmgCDKQIkrF4FcBGkt7JgrFzamsUCgPX90Met75CJIM676rAchPzwCnWiQ+fOb+QGj2hAkvIc3j4kRJA/KnFFYAghS2Oq4eB4EECQPypxRWAIIUtjquHgeBBAkD8qcUVgCCFLY6rh4HgQQJA/KnFFYAghS2Oq4eB4EECQPypxRWAIIUtjquHgeBBAkD8qcUVgCCFLY6rh4HgQQJA/KnFFYAghS2Oq4eB4ESiMIvzCVx+MS3hml+YWp8Kpj4rIQyOUXpsoCiznCI4Ag4XXOxAkIIEgCWCwNjwCChNc5EycggCAJYLE0PAIIEl7nTJyAAIIkgMXS8AggSHidM3ECAgiSABZLwyOAIOF1zsQJCCBIAlgsDY8AgoTXORMnIIAgCWCxNDwCCBJe50ycgACCJIDF0vAI/BdYl2P2p3F5PwAAAABJRU5ErkJggg==";const SF={name:"InfoSide",props:{token:{required:!0,type:String},host:{required:!0,type:String}},data(){return{name:"",clientPort:22022,hostData:null,activeNames:["0","1","2","3","4"]}},computed:{ipInfo(){var e;return((e=this.hostData)==null?void 0:e.ipInfo)||{}},isError(){var e;return!Boolean((e=this.hostData)==null?void 0:e.osInfo)},cpuInfo(){var e;return((e=this.hostData)==null?void 0:e.cpuInfo)||{}},memInfo(){var e;return((e=this.hostData)==null?void 0:e.memInfo)||{}},osInfo(){var e;return((e=this.hostData)==null?void 0:e.osInfo)||{}},driveInfo(){var e;return((e=this.hostData)==null?void 0:e.driveInfo)||{}},netstatInfo(){var r;let n=((r=this.hostData)==null?void 0:r.netstatInfo)||{},{total:e}=n,t=Da(n,["total"]);return{netTotal:e,netCards:t||{}}},openedCount(){var e;return((e=this.hostData)==null?void 0:e.openedCount)||0},cpuUsage(){var e;return Number((e=this.cpuInfo)==null?void 0:e.cpuUsage)||0},usedMemPercentage(){var e;return Number((e=this.memInfo)==null?void 0:e.usedMemPercentage)||0},usedPercentage(){var e;return Number((e=this.driveInfo)==null?void 0:e.usedPercentage)||0},output(){var t;let e=Number((t=this.netstatInfo.netTotal)==null?void 0:t.outputMb)||0;return e>=1?`${e.toFixed(2)} MB/s`:`${(e*1024).toFixed(1)} KB/s`},input(){var t;let e=Number((t=this.netstatInfo.netTotal)==null?void 0:t.inputMb)||0;return e>=1?`${e.toFixed(2)} MB/s`:`${(e*1024).toFixed(1)} KB/s`}},created(){if(this.name=this.$route.query.name||"",!this.host||!this.name)return this.$message.error("\u53C2\u6570\u9519\u8BEF");this.connectIO()},methods:{connectIO(){let{host:e,token:t}=this;this.socket=Ao(this.$serviceURI,{path:"/host-status",forceNew:!0,timeout:5e3,reconnectionDelay:3e3,reconnectionAttempts:100}),this.socket.on("connect",()=>{console.log("/host-status socket\u5DF2\u8FDE\u63A5\uFF1A",this.socket.id),this.socket.emit("init_host_data",{token:t,host:e}),this.socket.on("host_data",r=>{if(!r)return this.hostData=null;this.hostData=r})}),this.socket.on("connect_error",r=>{console.error("host status websocket \u8FDE\u63A5\u9519\u8BEF\uFF1A",r),this.$notification({title:"\u8FDE\u63A5\u5BA2\u6237\u7AEF\u5931\u8D25(\u91CD\u8FDE\u4E2D...)",message:"\u8BF7\u68C0\u67E5\u5BA2\u6237\u7AEF\u670D\u52A1\u662F\u5426\u6B63\u5E38",type:"error"})}),this.socket.on("disconnect",()=>{this.hostData=null,this.$notification({title:"\u5BA2\u6237\u7AEF\u8FDE\u63A5\u4E3B\u52A8\u65AD\u5F00(\u91CD\u8FDE\u4E2D...)",message:"\u8BF7\u68C0\u67E5\u5BA2\u6237\u7AEF\u670D\u52A1\u662F\u5426\u6B63\u5E38",type:"error"})})},async handleCopy(){await navigator.clipboard.writeText(this.host),this.$message.success({message:"success",center:!0})},handleColor(e){if(e<65)return"#8AE234";if(e<85)return"#FFD700";if(e<90)return"#FFFF33";if(e<=100)return"#FF3333"}}},Xt=e=>(nc("data-v-e8ce6f8c"),e=e(),ic(),e),xF={class:"info-container"},EF=Xt(()=>W("header",null,[W("a",{href:"/"},[W("img",{src:bF,alt:"logo"})])],-1)),AF=Te("POSITION"),kF=Xt(()=>W("div",{class:"item-title"}," IP ",-1)),TF={style:{"margin-right":"10px"}},LF=Te("\u590D\u5236"),RF=Xt(()=>W("div",{class:"item-title"}," \u4F4D\u7F6E ",-1)),BF={size:"small"},OF=Te("INDICATOR"),IF=Xt(()=>W("div",{class:"item-title"}," CPU ",-1)),MF=Xt(()=>W("div",{class:"item-title"}," \u5185\u5B58 ",-1)),PF={class:"position-right"},DF=Xt(()=>W("div",{class:"item-title"}," \u786C\u76D8 ",-1)),HF={class:"position-right"},FF=Xt(()=>W("div",{class:"item-title"}," \u7F51\u7EDC ",-1)),NF={class:"netstat-info"},$F={class:"wrap"},jF=Xt(()=>W("img",{src:CF,alt:""},null,-1)),UF={class:"upload"},WF={class:"wrap"},zF=Xt(()=>W("img",{src:wF,alt:""},null,-1)),qF={class:"download"},VF=Te("INFORMATION"),KF=Xt(()=>W("div",{class:"item-title"}," \u540D\u79F0 ",-1)),GF={size:"small"},YF=Xt(()=>W("div",{class:"item-title"}," \u6838\u5FC3 ",-1)),XF={size:"small"},QF=Xt(()=>W("div",{class:"item-title"}," \u578B\u53F7 ",-1)),JF={size:"small"},ZF=Xt(()=>W("div",{class:"item-title"}," \u7C7B\u578B ",-1)),eN={size:"small"},tN=Xt(()=>W("div",{class:"item-title"}," \u5728\u7EBF ",-1)),rN={size:"small"},nN=Xt(()=>W("div",{class:"item-title"}," \u672C\u5730 ",-1)),iN={size:"small"},oN=Te("FEATURE(comingSoon)");function sN(e,t,r,n,o,i){const s=dR,a=FL,l=KL,u=VL,c=bO;return K(),se("div",xF,[EF,G(s,{class:"first-divider","content-position":"center"},{default:Q(()=>[AF]),_:1}),G(u,{class:"margin-top",column:1,size:"small",border:""},{default:Q(()=>[G(l,null,{label:Q(()=>[kF]),default:Q(()=>[W("span",TF,me(r.host),1),G(a,{size:"small",style:{cursor:"pointer"},onClick:i.handleCopy},{default:Q(()=>[LF]),_:1},8,["onClick"])]),_:1}),G(l,null,{label:Q(()=>[RF]),default:Q(()=>[W("div",BF,me(i.ipInfo.country||"--")+" "+me(i.ipInfo.regionName)+" "+me(i.ipInfo.city),1)]),_:1})]),_:1}),G(s,{"content-position":"center"},{default:Q(()=>[OF]),_:1}),G(u,{class:"margin-top",column:1,size:"small",border:""},{default:Q(()=>[G(l,null,{label:Q(()=>[IF]),default:Q(()=>[G(c,{"text-inside":!0,"stroke-width":18,percentage:i.cpuUsage,color:i.handleColor(i.cpuUsage)},null,8,["percentage","color"])]),_:1}),G(l,null,{label:Q(()=>[MF]),default:Q(()=>[G(c,{"text-inside":!0,"stroke-width":18,percentage:i.usedMemPercentage,color:i.handleColor(i.usedMemPercentage)},null,8,["percentage","color"]),W("div",PF,me(e.$filters.toFixed(i.memInfo.usedMemMb/1024))+"/"+me(e.$filters.toFixed(i.memInfo.totalMemMb/1024))+"G ",1)]),_:1}),G(l,null,{label:Q(()=>[DF]),default:Q(()=>[G(c,{"text-inside":!0,"stroke-width":18,percentage:i.usedPercentage,color:i.handleColor(i.usedPercentage)},null,8,["percentage","color"]),W("div",HF,me(i.driveInfo.usedGb||"--")+"/"+me(i.driveInfo.totalGb||"--")+"G ",1)]),_:1}),G(l,null,{label:Q(()=>[FF]),default:Q(()=>[W("div",NF,[W("div",$F,[jF,W("span",UF,me(i.output||0),1)]),W("div",WF,[zF,W("span",qF,me(i.input||0),1)])])]),_:1})]),_:1}),G(s,{"content-position":"center"},{default:Q(()=>[VF]),_:1}),G(u,{class:"margin-top",column:1,size:"small",border:""},{default:Q(()=>[G(l,null,{label:Q(()=>[KF]),default:Q(()=>[W("div",GF,me(i.osInfo.hostname),1)]),_:1}),G(l,null,{label:Q(()=>[YF]),default:Q(()=>[W("div",XF,me(i.cpuInfo.cpuCount),1)]),_:1}),G(l,null,{label:Q(()=>[QF]),default:Q(()=>[W("div",JF,me(i.cpuInfo.cpuModel),1)]),_:1}),G(l,null,{label:Q(()=>[ZF]),default:Q(()=>[W("div",eN,me(i.osInfo.type)+" "+me(i.osInfo.release)+" "+me(i.osInfo.arch),1)]),_:1}),G(l,null,{label:Q(()=>[tN]),default:Q(()=>[W("div",rN,me(e.$filters.formatTime(i.osInfo.uptime)),1)]),_:1}),G(l,null,{label:Q(()=>[nN]),default:Q(()=>[W("div",iN,me(i.osInfo.ip),1)]),_:1})]),_:1}),G(s,{"content-position":"center"},{default:Q(()=>[oN]),_:1})])}var aN=lr(SF,[["render",sN],["__scopeId","data-v-e8ce6f8c"]]);const lN={name:"Terminals",components:{TerminalTab:yF,InfoSide:aN},data(){return{name:"",host:"",token:localStorage.getItem("token"),activeTab:"",terminalTabs:[],isFullScreen:!1,timer:null}},computed:{closable(){return this.terminalTabs.length>1}},created(){if(!this.token)return this.$router.push("login");let{host:e,name:t}=this.$route.query;this.name=t,this.host=e,document.title=`${document.title}-${t}`;let r=Date.now().toString();this.terminalTabs.push({title:t,key:r}),this.activeTab=r,this.registryDbClick()},methods:{tabAdd(){this.timer&&clearTimeout(this.timer),this.timer=setTimeout(()=>{let{name:e}=this,t=e,r=Date.now().toString();this.terminalTabs.push({title:t,key:r}),this.activeTab=r,this.registryDbClick()},200)},removeTab(e){let t=this.terminalTabs.findIndex(({key:r})=>e===r);this.terminalTabs.splice(t,1),e===this.activeTab&&(this.activeTab=this.terminalTabs[0].key)},tabChange(e){this.$refs[e][0].focusTab()},handleFullScreen(){this.isFullScreen?document.exitFullscreen():document.getElementsByClassName("terminals")[0].requestFullscreen(),this.isFullScreen=!this.isFullScreen},registryDbClick(){this.$nextTick(()=>{Array.from(document.getElementsByClassName("el-tabs__item")).forEach(t=>{t.removeEventListener("dblclick",this.handleDblclick),t.addEventListener("dblclick",this.handleDblclick)})})},handleDblclick(e){if(this.terminalTabs.length>1){let t=e.target.id.substring(4);this.removeTab(t)}}}},cN=e=>(nc("data-v-09769cd9"),e=e(),ic(),e),uN={class:"container"},fN={class:"left_system-info"},dN={class:"terminals"},hN=cN(()=>W("div",{class:"sftp"},null,-1));function pN(e,t,r,n,o,i){const s=Oe("InfoSide"),a=Ir,l=Oe("TerminalTab"),u=j6,c=$6;return K(),se("div",uN,[W("div",fN,[G(s,{token:o.token,host:o.host},null,8,["token","host"])]),W("section",null,[W("div",dN,[G(a,{class:"full-screen-button",type:"success",onClick:i.handleFullScreen},{default:Q(()=>[Te(me(o.isFullScreen?"\u9000\u51FA\u5168\u5C4F":"\u5168\u5C4F"),1)]),_:1},8,["onClick"]),G(c,{modelValue:o.activeTab,"onUpdate:modelValue":t[0]||(t[0]=_=>o.activeTab=_),type:"border-card",addable:"","tab-position":"top",onTabRemove:i.removeTab,onTabChange:i.tabChange,onTabAdd:i.tabAdd},{default:Q(()=>[(K(!0),se(Ve,null,Wr(o.terminalTabs,_=>(K(),Ce(u,{key:_.key,label:_.title,name:_.key,closable:i.closable},{default:Q(()=>[G(l,{ref_for:!0,ref:_.key,token:o.token,host:o.host},null,8,["token","host"])]),_:2},1032,["label","name","closable"]))),128))]),_:1},8,["modelValue","onTabRemove","onTabChange","onTabAdd"])]),hN])])}var vN=lr(lN,[["render",pN],["__scopeId","data-v-09769cd9"]]);const gN=[{path:"/",component:nF},{path:"/login",component:dF},{path:"/terminal",component:vN}];var qf=zw({history:sw(),routes:gN}),mN={toFixed(e,t=1){return e=Number(e),isNaN(e)?"--":e.toFixed(t)},formatTime(e=0){let t=Math.floor(e/60/60/24),r=Math.floor(e/60/60%24),n=Math.floor(e/60%60);return`${t}\u5929${r}\u65F6${n}\u5206`},formatNetSpeed(e){return e=Number(e)||0,e>=1?`${e.toFixed(2)} MB/s`:`${(e*1024).toFixed(1)} KB/s`}},_N=e=>{e.config.globalProperties.$ELEMENT={size:"default"},e.config.globalProperties.$message=gn,e.config.globalProperties.$messageBox=Mf,e.config.globalProperties.$notification=TI};const yN={name:"App"};function bN(e,t,r,n,o,i){const s=Oe("router-view");return K(),Ce(s)}var CN=lr(yN,[["render",bN]]);const Ji=Lg(CN);_N(Ji);Ji.use(qf);Ji.component("SvgIcon",xy);Ji.config.globalProperties.$api=zr;Ji.config.globalProperties.$filters=mN;const r1=location.origin;Ji.config.globalProperties.$serviceURI=r1;console.warn("ISDEV: ",!1);console.warn("serviceURI: ",r1);Ji.mount("#app")});export default wN();