var jm=Object.defineProperty,Um=Object.defineProperties;var qm=Object.getOwnPropertyDescriptors;var ta=Object.getOwnPropertySymbols;var Gf=Object.prototype.hasOwnProperty,Yf=Object.prototype.propertyIsEnumerable;var Kf=(e,t,r)=>t in e?jm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Se=(e,t)=>{for(var r in t||(t={}))Gf.call(t,r)&&Kf(e,r,t[r]);if(ta)for(var r of ta(t))Yf.call(t,r)&&Kf(e,r,t[r]);return e},Pe=(e,t)=>Um(e,qm(t));var oc=(e,t)=>{var r={};for(var n in e)Gf.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ta)for(var n of ta(e))t.indexOf(n)<0&&Yf.call(e,n)&&(r[n]=e[n]);return r};var Wm=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var K4=Wm((Xt,Zt)=>{const Vm=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)}};Vm();function Iu(e,t){const r=Object.create(null),n=e.split(",");for(let o=0;o!!r[o.toLowerCase()]:o=>!!r[o]}const zm="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Km=Iu(zm);function Ip(e){return!!e||e===""}function Qe(e){if(Le(e)){const t={};for(let r=0;r{if(r){const n=r.split(Ym);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ae(e){let t="";if(De(e))t=e;else if(Le(e))for(let r=0;rDe(e)?e:e==null?"":Le(e)||Ke(e)&&(e.toString===Np||!xe(e.toString))?JSON.stringify(e,Dp,2):String(e),Dp=(e,t)=>t&&t.__v_isRef?Dp(e,t.value):ki(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,o])=>(r[`${n} =>`]=o,r),{})}:Fp(t)?{[`Set(${t.size})`]:[...t.values()]}:Ke(t)&&!Le(t)&&!$p(t)?String(t):t,rt={},Ri=[],St=()=>{},Qm=()=>!1,e0=/^on[^a-z]/,rl=e=>e0.test(e),Du=e=>e.startsWith("onUpdate:"),yt=Object.assign,Fu=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},t0=Object.prototype.hasOwnProperty,Ne=(e,t)=>t0.call(e,t),Le=Array.isArray,ki=e=>es(e)==="[object Map]",Fp=e=>es(e)==="[object Set]",Jf=e=>es(e)==="[object Date]",xe=e=>typeof e=="function",De=e=>typeof e=="string",Po=e=>typeof e=="symbol",Ke=e=>e!==null&&typeof e=="object",Hp=e=>Ke(e)&&xe(e.then)&&xe(e.catch),Np=Object.prototype.toString,es=e=>Np.call(e),r0=e=>es(e).slice(8,-1),$p=e=>es(e)==="[object Object]",Hu=e=>De(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ta=Iu(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),nl=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},n0=/-(\w)/g,Sr=nl(e=>e.replace(n0,(t,r)=>r?r.toUpperCase():"")),i0=/\B([A-Z])/g,Rn=nl(e=>e.replace(i0,"-$1").toLowerCase()),il=nl(e=>e.charAt(0).toUpperCase()+e.slice(1)),sc=nl(e=>e?`on${il(e)}`:""),Io=(e,t)=>!Object.is(e,t),Aa=(e,t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},jp=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Xf;const o0=()=>Xf||(Xf=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let Kt;class s0{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&Kt&&(this.parent=Kt,this.index=(Kt.scopes||(Kt.scopes=[])).push(this)-1)}run(t){if(this.active){const r=Kt;try{return Kt=this,t()}finally{Kt=r}}}on(){Kt=this}off(){Kt=this.parent}stop(t){if(this.active){let r,n;for(r=0,n=this.effects.length;r{const t=new Set(e);return t.w=0,t.n=0,t},qp=e=>(e.w&An)>0,Wp=e=>(e.n&An)>0,c0=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let r=0;for(let n=0;n{(h==="length"||h>=n)&&a.push(l)});else switch(r!==void 0&&a.push(s.get(r)),t){case"add":Le(e)?Hu(r)&&a.push(s.get("length")):(a.push(s.get(ri)),ki(e)&&a.push(s.get(Hc)));break;case"delete":Le(e)||(a.push(s.get(ri)),ki(e)&&a.push(s.get(Hc)));break;case"set":ki(e)&&a.push(s.get(ri));break}if(a.length===1)a[0]&&Nc(a[0]);else{const l=[];for(const h of a)h&&l.push(...h);Nc(Nu(l))}}function Nc(e,t){const r=Le(e)?e:[...e];for(const n of r)n.computed&&Qf(n);for(const n of r)n.computed||Qf(n)}function Qf(e,t){(e!==yr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const f0=Iu("__proto__,__v_isRef,__isVue"),Kp=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Po)),h0=ju(),d0=ju(!1,!0),p0=ju(!0),eh=v0();function v0(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=Ve(this);for(let i=0,s=this.length;i{e[t]=function(...r){ci();const n=Ve(this)[t].apply(this,r);return ui(),n}}),e}function ju(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?k0:Zp:t?Xp:Jp).get(n))return n;const s=Le(n);if(!e&&s&&Ne(eh,o))return Reflect.get(eh,o,i);const a=Reflect.get(n,o,i);return(Po(o)?Kp.has(o):f0(o))||(e||er(n,"get",o),t)?a:ot(a)?s&&Hu(o)?a:a.value:Ke(a)?e?sl(a):fr(a):a}}const g0=Gp(),_0=Gp(!0);function Gp(e=!1){return function(r,n,o,i){let s=r[n];if(Do(s)&&ot(s)&&!ot(o))return!1;if(!e&&!Do(o)&&($c(o)||(o=Ve(o),s=Ve(s)),!Le(r)&&ot(s)&&!ot(o)))return s.value=o,!0;const a=Le(r)&&Hu(n)?Number(n)e,ol=e=>Reflect.getPrototypeOf(e);function ra(e,t,r=!1,n=!1){e=e.__v_raw;const o=Ve(e),i=Ve(t);r||(t!==i&&er(o,"get",t),er(o,"get",i));const{has:s}=ol(o),a=n?Uu:r?Vu:Fo;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 na(e,t=!1){const r=this.__v_raw,n=Ve(r),o=Ve(e);return t||(e!==o&&er(n,"has",e),er(n,"has",o)),e===o?r.has(e):r.has(e)||r.has(o)}function ia(e,t=!1){return e=e.__v_raw,!t&&er(Ve(e),"iterate",ri),Reflect.get(e,"size",e)}function th(e){e=Ve(e);const t=Ve(this);return ol(t).has.call(t,e)||(t.add(e),Zr(t,"add",e,e)),this}function rh(e,t){t=Ve(t);const r=Ve(this),{has:n,get:o}=ol(r);let i=n.call(r,e);i||(e=Ve(e),i=n.call(r,e));const s=o.call(r,e);return r.set(e,t),i?Io(t,s)&&Zr(r,"set",e,t):Zr(r,"add",e,t),this}function nh(e){const t=Ve(this),{has:r,get:n}=ol(t);let o=r.call(t,e);o||(e=Ve(e),o=r.call(t,e)),n&&n.call(t,e);const i=t.delete(e);return o&&Zr(t,"delete",e,void 0),i}function ih(){const e=Ve(this),t=e.size!==0,r=e.clear();return t&&Zr(e,"clear",void 0,void 0),r}function oa(e,t){return function(n,o){const i=this,s=i.__v_raw,a=Ve(s),l=t?Uu:e?Vu:Fo;return!e&&er(a,"iterate",ri),s.forEach((h,f)=>n.call(o,l(h),l(f),i))}}function sa(e,t,r){return function(...n){const o=this.__v_raw,i=Ve(o),s=ki(i),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,h=o[e](...n),f=r?Uu:t?Vu:Fo;return!t&&er(i,"iterate",l?Hc:ri),{next(){const{value:m,done:g}=h.next();return g?{value:m,done:g}:{value:a?[f(m[0]),f(m[1])]:f(m),done:g}},[Symbol.iterator](){return this}}}}function ln(e){return function(...t){return e==="delete"?!1:this}}function C0(){const e={get(i){return ra(this,i)},get size(){return ia(this)},has:na,add:th,set:rh,delete:nh,clear:ih,forEach:oa(!1,!1)},t={get(i){return ra(this,i,!1,!0)},get size(){return ia(this)},has:na,add:th,set:rh,delete:nh,clear:ih,forEach:oa(!1,!0)},r={get(i){return ra(this,i,!0)},get size(){return ia(this,!0)},has(i){return na.call(this,i,!0)},add:ln("add"),set:ln("set"),delete:ln("delete"),clear:ln("clear"),forEach:oa(!0,!1)},n={get(i){return ra(this,i,!0,!0)},get size(){return ia(this,!0)},has(i){return na.call(this,i,!0)},add:ln("add"),set:ln("set"),delete:ln("delete"),clear:ln("clear"),forEach:oa(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=sa(i,!1,!1),r[i]=sa(i,!0,!1),t[i]=sa(i,!1,!0),n[i]=sa(i,!0,!0)}),[e,r,t,n]}const[E0,T0,A0,L0]=C0();function qu(e,t){const r=t?e?L0:A0:e?T0:E0;return(n,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?n:Reflect.get(Ne(r,o)&&o in n?r:n,o,i)}const O0={get:qu(!1,!1)},x0={get:qu(!1,!0)},R0={get:qu(!0,!1)},Jp=new WeakMap,Xp=new WeakMap,Zp=new WeakMap,k0=new WeakMap;function M0(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function B0(e){return e.__v_skip||!Object.isExtensible(e)?0:M0(r0(e))}function fr(e){return Do(e)?e:Wu(e,!1,Yp,O0,Jp)}function P0(e){return Wu(e,!1,w0,x0,Xp)}function sl(e){return Wu(e,!0,S0,R0,Zp)}function Wu(e,t,r,n,o){if(!Ke(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const s=B0(e);if(s===0)return e;const a=new Proxy(e,s===2?n:r);return o.set(e,a),a}function Mi(e){return Do(e)?Mi(e.__v_raw):!!(e&&e.__v_isReactive)}function Do(e){return!!(e&&e.__v_isReadonly)}function $c(e){return!!(e&&e.__v_isShallow)}function Qp(e){return Mi(e)||Do(e)}function Ve(e){const t=e&&e.__v_raw;return t?Ve(t):e}function ev(e){return $a(e,"__v_skip",!0),e}const Fo=e=>Ke(e)?fr(e):e,Vu=e=>Ke(e)?sl(e):e;function tv(e){Cn&&yr&&(e=Ve(e),zp(e.dep||(e.dep=Nu())))}function rv(e,t){e=Ve(e),e.dep&&Nc(e.dep)}function ot(e){return!!(e&&e.__v_isRef===!0)}function oe(e){return nv(e,!1)}function La(e){return nv(e,!0)}function nv(e,t){return ot(e)?e:new I0(e,t)}class I0{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:Ve(t),this._value=r?t:Fo(t)}get value(){return tv(this),this._value}set value(t){t=this.__v_isShallow?t:Ve(t),Io(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:Fo(t),rv(this))}}function F(e){return ot(e)?e.value:e}const D0={get:(e,t,r)=>F(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const o=e[t];return ot(o)&&!ot(r)?(o.value=r,!0):Reflect.set(e,t,r,n)}};function iv(e){return Mi(e)?e:new Proxy(e,D0)}function ts(e){const t=Le(e)?new Array(e.length):{};for(const r in e)t[r]=Bt(e,r);return t}class F0{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 Bt(e,t,r){const n=e[t];return ot(n)?n:new F0(e,t,r)}class H0{constructor(t,r,n,o){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new $u(t,()=>{this._dirty||(this._dirty=!0,rv(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const t=Ve(this);return tv(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function N0(e,t,r=!1){let n,o;const i=xe(e);return i?(n=e,o=St):(n=e.get,o=e.set),new H0(n,o,i||!o,r)}const bo=[];function $0(e,...t){ci();const r=bo.length?bo[bo.length-1].component:null,n=r&&r.appContext.config.warnHandler,o=j0();if(n)Yr(n,r,11,[e+t.join(""),r&&r.proxy,o.map(({vnode:i})=>`at <${Nv(r,i.type)}>`).join(` `),o]);else{const i=[`[Vue warn]: ${e}`,...t];o.length&&i.push(` `,...U0(o)),console.warn(...i)}ui()}function j0(){let e=bo[bo.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 U0(e){const t=[];return e.forEach((r,n)=>{t.push(...n===0?[]:[` `],...q0(r))}),t}function q0({vnode:e,recurseCount:t}){const r=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,o=` at <${Nv(e.component,e.type,n)}`,i=">"+r;return e.props?[o,...W0(e.props),i]:[o+i]}function W0(e){const t=[],r=Object.keys(e);return r.slice(0,3).forEach(n=>{t.push(...ov(n,e[n]))}),r.length>3&&t.push(" ..."),t}function ov(e,t,r){return De(t)?(t=JSON.stringify(t),r?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?r?t:[`${e}=${t}`]:ot(t)?(t=ov(e,Ve(t.value),!0),r?t:[`${e}=Ref<`,t,">"]):xe(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Ve(t),r?t:[`${e}=`,t])}function Yr(e,t,r,n){let o;try{o=n?e(...n):e()}catch(i){al(i,t,r)}return o}function sr(e,t,r,n){if(xe(e)){const i=Yr(e,t,r,n);return i&&Hp(i)&&i.catch(s=>{al(s,t,r)}),i}const o=[];for(let i=0;i>>1;Ho(Yt[n])Gr&&Yt.splice(t,1)}function cv(e,t,r,n){Le(e)?r.push(...e):(!t||!t.includes(e,e.allowRecurse?n+1:n))&&r.push(e),lv()}function G0(e){cv(e,go,So,Ai)}function Y0(e){cv(e,dn,wo,Li)}function ll(e,t=null){if(So.length){for(Uc=t,go=[...new Set(So)],So.length=0,Ai=0;AiHo(r)-Ho(n)),Li=0;Lie.id==null?1/0:e.id;function fv(e){jc=!1,ja=!0,ll(e),Yt.sort((r,n)=>Ho(r)-Ho(n));const t=St;try{for(Gr=0;Grp.trim())),m&&(o=r.map(jp))}let a,l=n[a=sc(t)]||n[a=sc(Sr(t))];!l&&i&&(l=n[a=sc(Rn(t))]),l&&sr(l,e,6,o);const h=n[a+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,sr(h,e,6,o)}}function hv(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(!xe(e)){const l=h=>{const f=hv(h,t,!0);f&&(a=!0,yt(s,f))};!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):(Le(i)?i.forEach(l=>s[l]=null):yt(s,i),n.set(e,s),s)}function cl(e,t){return!e||!rl(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ne(e,t[0].toLowerCase()+t.slice(1))||Ne(e,Rn(t))||Ne(e,t))}let Tt=null,ul=null;function Ua(e){const t=Tt;return Tt=e,ul=e&&e.type.__scopeId||null,t}function dv(e){ul=e}function pv(){ul=null}function J(e,t=Tt,r){if(!t||e._n)return e;const n=(...o)=>{n._d&&gh(-1);const i=Ua(t),s=e(...o);return Ua(i),n._d&&gh(1),s};return n._n=!0,n._c=!0,n._d=!0,n}function ac(e){const{type:t,vnode:r,proxy:n,withProxy:o,props:i,propsOptions:[s],slots:a,attrs:l,emit:h,render:f,renderCache:m,data:g,setupState:p,ctx:_,inheritAttrs:b}=e;let v,c;const u=Ua(e);try{if(r.shapeFlag&4){const y=o||n;v=Mr(f.call(y,y,m,i,p,g,_)),c=l}else{const y=t;v=Mr(y.length>1?y(i,{attrs:l,slots:a,emit:h}):y(i,null)),c=t.props?l:X0(l)}}catch(y){To.length=0,al(y,e,1),v=Q(Qt)}let d=v;if(c&&b!==!1){const y=Object.keys(c),{shapeFlag:S}=d;y.length&&S&7&&(s&&y.some(Du)&&(c=Z0(c,s)),d=Qr(d,c))}return r.dirs&&(d=Qr(d),d.dirs=d.dirs?d.dirs.concat(r.dirs):r.dirs),r.transition&&(d.transition=r.transition),v=d,Ua(u),v}const X0=e=>{let t;for(const r in e)(r==="class"||r==="style"||rl(r))&&((t||(t={}))[r]=e[r]);return t},Z0=(e,t)=>{const r={};for(const n in e)(!Du(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function Q0(e,t,r){const{props:n,children:o,component:i}=e,{props:s,children:a,patchFlag:l}=t,h=i.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?oh(n,s,h):!!s;if(l&8){const f=t.dynamicProps;for(let m=0;me.__isSuspense;function ry(e,t){t&&t.pendingBranch?Le(e)?t.effects.push(...e):t.effects.push(e):Y0(e)}function st(e,t){if(mt){let r=mt.provides;const n=mt.parent&&mt.parent.provides;n===r&&(r=mt.provides=Object.create(n)),r[e]=t}}function ke(e,t,r=!1){const n=mt||Tt;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&&xe(t)?t.call(n.proxy):t}}function ny(e,t){return Ku(e,null,t)}const sh={};function Ie(e,t,r){return Ku(e,t,r)}function Ku(e,t,{immediate:r,deep:n,flush:o,onTrack:i,onTrigger:s}=rt){const a=mt;let l,h=!1,f=!1;if(ot(e)?(l=()=>e.value,h=$c(e)):Mi(e)?(l=()=>e,n=!0):Le(e)?(f=!0,h=e.some(c=>Mi(c)||$c(c)),l=()=>e.map(c=>{if(ot(c))return c.value;if(Mi(c))return Zn(c);if(xe(c))return Yr(c,a,2)})):xe(e)?t?l=()=>Yr(e,a,2):l=()=>{if(!(a&&a.isUnmounted))return m&&m(),sr(e,a,3,[g])}:l=St,t&&n){const c=l;l=()=>Zn(c())}let m,g=c=>{m=v.onStop=()=>{Yr(c,a,4)}};if(Uo)return g=St,t?r&&sr(t,a,3,[l(),f?[]:void 0,g]):l(),St;let p=f?[]:sh;const _=()=>{if(!!v.active)if(t){const c=v.run();(n||h||(f?c.some((u,d)=>Io(u,p[d])):Io(c,p)))&&(m&&m(),sr(t,a,3,[c,p===sh?void 0:p,g]),p=c)}else v.run()};_.allowRecurse=!!t;let b;o==="sync"?b=_:o==="post"?b=()=>It(_,a&&a.suspense):b=()=>G0(_);const v=new $u(l,b);return t?r?_():p=v.run():o==="post"?It(v.run.bind(v),a&&a.suspense):v.run(),()=>{v.stop(),a&&a.scope&&Fu(a.scope.effects,v)}}function iy(e,t,r){const n=this.proxy,o=De(e)?e.includes(".")?vv(n,e):()=>n[e]:e.bind(n,n);let i;xe(t)?i=t:(i=t.handler,r=t);const s=mt;Ii(this);const a=Ku(o,i.bind(n),r);return s?Ii(s):ni(),a}function vv(e,t){const r=t.split(".");return()=>{let n=e;for(let o=0;o{Zn(r,t)});else if($p(e))for(const r in e)Zn(e[r],t);return e}function gv(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return lt(()=>{e.isMounted=!0}),tr(()=>{e.isUnmounting=!0}),e}const nr=[Function,Array],oy={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:nr,onEnter:nr,onAfterEnter:nr,onEnterCancelled:nr,onBeforeLeave:nr,onLeave:nr,onAfterLeave:nr,onLeaveCancelled:nr,onBeforeAppear:nr,onAppear:nr,onAfterAppear:nr,onAppearCancelled:nr},setup(e,{slots:t}){const r=hr(),n=gv();let o;return()=>{const i=t.default&&Gu(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const b of i)if(b.type!==Qt){s=b;break}}const a=Ve(e),{mode:l}=a;if(n.isLeaving)return lc(s);const h=ah(s);if(!h)return lc(s);const f=No(h,a,n,r);$o(h,f);const m=r.subTree,g=m&&ah(m);let p=!1;const{getTransitionKey:_}=h.type;if(_){const b=_();o===void 0?o=b:b!==o&&(o=b,p=!0)}if(g&&g.type!==Qt&&(!Yn(h,g)||p)){const b=No(g,a,n,r);if($o(g,b),l==="out-in")return n.isLeaving=!0,b.afterLeave=()=>{n.isLeaving=!1,r.update()},lc(s);l==="in-out"&&h.type!==Qt&&(b.delayLeave=(v,c,u)=>{const d=mv(n,g);d[String(g.key)]=g,v._leaveCb=()=>{c(),v._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=u})}return s}}},_v=oy;function mv(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 No(e,t,r,n){const{appear:o,mode:i,persisted:s=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:h,onEnterCancelled:f,onBeforeLeave:m,onLeave:g,onAfterLeave:p,onLeaveCancelled:_,onBeforeAppear:b,onAppear:v,onAfterAppear:c,onAppearCancelled:u}=t,d=String(e.key),y=mv(r,e),S=(T,L)=>{T&&sr(T,n,9,L)},w=(T,L)=>{const E=L[1];S(T,L),Le(T)?T.every(A=>A.length<=1)&&E():T.length<=1&&E()},C={mode:i,persisted:s,beforeEnter(T){let L=a;if(!r.isMounted)if(o)L=b||a;else return;T._leaveCb&&T._leaveCb(!0);const E=y[d];E&&Yn(e,E)&&E.el._leaveCb&&E.el._leaveCb(),S(L,[T])},enter(T){let L=l,E=h,A=f;if(!r.isMounted)if(o)L=v||l,E=c||h,A=u||f;else return;let M=!1;const O=T._enterCb=$=>{M||(M=!0,$?S(A,[T]):S(E,[T]),C.delayedLeave&&C.delayedLeave(),T._enterCb=void 0)};L?w(L,[T,O]):O()},leave(T,L){const E=String(e.key);if(T._enterCb&&T._enterCb(!0),r.isUnmounting)return L();S(m,[T]);let A=!1;const M=T._leaveCb=O=>{A||(A=!0,L(),O?S(_,[T]):S(p,[T]),T._leaveCb=void 0,y[E]===e&&delete y[E])};y[E]=e,g?w(g,[T,M]):M()},clone(T){return No(T,t,r,n)}};return C}function lc(e){if(fl(e))return e=Qr(e),e.children=null,e}function ah(e){return fl(e)?e.children?e.children[0]:void 0:e}function $o(e,t){e.shapeFlag&6&&e.component?$o(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 Gu(e,t=!1,r){let n=[],o=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader,fl=e=>e.type.__isKeepAlive;function sy(e,t){yv(e,"a",t)}function ay(e,t){yv(e,"da",t)}function yv(e,t,r=mt){const n=e.__wdc||(e.__wdc=()=>{let o=r;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(hl(t,n,r),r){let o=r.parent;for(;o&&o.parent;)fl(o.parent.vnode)&&ly(n,t,r,o),o=o.parent}}function ly(e,t,r,n){const o=hl(t,e,n,!0);Yu(()=>{Fu(n[t],o)},r)}function hl(e,t,r=mt,n=!1){if(r){const o=r[e]||(r[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(r.isUnmounted)return;ci(),Ii(r);const a=sr(t,r,e,s);return ni(),ui(),a});return n?o.unshift(i):o.push(i),i}}const nn=e=>(t,r=mt)=>(!Uo||e==="sp")&&hl(e,t,r),bv=nn("bm"),lt=nn("m"),cy=nn("bu"),rs=nn("u"),tr=nn("bum"),Yu=nn("um"),uy=nn("sp"),fy=nn("rtg"),hy=nn("rtc");function dy(e,t=mt){hl("ec",e,t)}function ht(e,t){const r=Tt;if(r===null)return e;const n=vl(r)||r.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;it(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;aAt(t)?!(t.type===Qt||t.type===Ye&&!wv(t.children)):!0)?e:null}const qc=e=>e?Iv(e)?vl(e)||e.proxy:qc(e.parent):null,qa=yt(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=>qc(e.parent),$root:e=>qc(e.root),$emit:e=>e.emit,$options:e=>Ev(e),$forceUpdate:e=>e.f||(e.f=()=>av(e.update)),$nextTick:e=>e.n||(e.n=Ze.bind(e.proxy)),$watch:e=>iy.bind(e)}),gy={get({_:e},t){const{ctx:r,setupState:n,data:o,props:i,accessCache:s,type:a,appContext:l}=e;let h;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!==rt&&Ne(n,t))return s[t]=1,n[t];if(o!==rt&&Ne(o,t))return s[t]=2,o[t];if((h=e.propsOptions[0])&&Ne(h,t))return s[t]=3,i[t];if(r!==rt&&Ne(r,t))return s[t]=4,r[t];Wc&&(s[t]=0)}}const f=qa[t];let m,g;if(f)return t==="$attrs"&&er(e,"get",t),f(e);if((m=a.__cssModules)&&(m=m[t]))return m;if(r!==rt&&Ne(r,t))return s[t]=4,r[t];if(g=l.config.globalProperties,Ne(g,t))return g[t]},set({_:e},t,r){const{data:n,setupState:o,ctx:i}=e;return o!==rt&&Ne(o,t)?(o[t]=r,!0):n!==rt&&Ne(n,t)?(n[t]=r,!0):Ne(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!==rt&&Ne(e,s)||t!==rt&&Ne(t,s)||(a=i[0])&&Ne(a,s)||Ne(n,s)||Ne(qa,s)||Ne(o.config.globalProperties,s)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:Ne(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};let Wc=!0;function _y(e){const t=Ev(e),r=e.proxy,n=e.ctx;Wc=!1,t.beforeCreate&&ch(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:s,watch:a,provide:l,inject:h,created:f,beforeMount:m,mounted:g,beforeUpdate:p,updated:_,activated:b,deactivated:v,beforeDestroy:c,beforeUnmount:u,destroyed:d,unmounted:y,render:S,renderTracked:w,renderTriggered:C,errorCaptured:T,serverPrefetch:L,expose:E,inheritAttrs:A,components:M,directives:O,filters:$}=t;if(h&&my(h,n,null,e.appContext.config.unwrapInjectedRef),s)for(const B in s){const N=s[B];xe(N)&&(n[B]=N.bind(r))}if(o){const B=o.call(r,r);Ke(B)&&(e.data=fr(B))}if(Wc=!0,i)for(const B in i){const N=i[B],U=xe(N)?N.bind(r,r):xe(N.get)?N.get.bind(r,r):St,z=!xe(N)&&xe(N.set)?N.set.bind(r):St,X=te({get:U,set:z});Object.defineProperty(n,B,{enumerable:!0,configurable:!0,get:()=>X.value,set:ge=>X.value=ge})}if(a)for(const B in a)Cv(a[B],n,r,B);if(l){const B=xe(l)?l.call(r):l;Reflect.ownKeys(B).forEach(N=>{st(N,B[N])})}f&&ch(f,e,"c");function R(B,N){Le(N)?N.forEach(U=>B(U.bind(r))):N&&B(N.bind(r))}if(R(bv,m),R(lt,g),R(cy,p),R(rs,_),R(sy,b),R(ay,v),R(dy,T),R(hy,w),R(fy,C),R(tr,u),R(Yu,y),R(uy,L),Le(E))if(E.length){const B=e.exposed||(e.exposed={});E.forEach(N=>{Object.defineProperty(B,N,{get:()=>r[N],set:U=>r[N]=U})})}else e.exposed||(e.exposed={});S&&e.render===St&&(e.render=S),A!=null&&(e.inheritAttrs=A),M&&(e.components=M),O&&(e.directives=O)}function my(e,t,r=St,n=!1){Le(e)&&(e=Vc(e));for(const o in e){const i=e[o];let s;Ke(i)?"default"in i?s=ke(i.from||o,i.default,!0):s=ke(i.from||o):s=ke(i),ot(s)&&n?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:a=>s.value=a}):t[o]=s}}function ch(e,t,r){sr(Le(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function Cv(e,t,r,n){const o=n.includes(".")?vv(r,n):()=>r[n];if(De(e)){const i=t[e];xe(i)&&Ie(o,i)}else if(xe(e))Ie(o,e.bind(r));else if(Ke(e))if(Le(e))e.forEach(i=>Cv(i,t,r,n));else{const i=xe(e.handler)?e.handler.bind(r):t[e.handler];xe(i)&&Ie(o,i,e)}}function Ev(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(h=>Wa(l,h,s,!0)),Wa(l,t,s)),i.set(t,l),l}function Wa(e,t,r,n=!1){const{mixins:o,extends:i}=t;i&&Wa(e,i,r,!0),o&&o.forEach(s=>Wa(e,s,r,!0));for(const s in t)if(!(n&&s==="expose")){const a=yy[s]||r&&r[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const yy={data:uh,props:zn,emits:zn,methods:zn,computed:zn,beforeCreate:xt,created:xt,beforeMount:xt,mounted:xt,beforeUpdate:xt,updated:xt,beforeDestroy:xt,beforeUnmount:xt,destroyed:xt,unmounted:xt,activated:xt,deactivated:xt,errorCaptured:xt,serverPrefetch:xt,components:zn,directives:zn,watch:Sy,provide:uh,inject:by};function uh(e,t){return t?e?function(){return yt(xe(e)?e.call(this,this):e,xe(t)?t.call(this,this):t)}:t:e}function by(e,t){return zn(Vc(e),Vc(t))}function Vc(e){if(Le(e)){const t={};for(let r=0;r0)&&!(s&16)){if(s&8){const f=e.vnode.dynamicProps;for(let m=0;m{l=!0;const[g,p]=Av(m,t,!0);yt(s,g),p&&a.push(...p)};!r&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!i&&!l)return n.set(e,Ri),Ri;if(Le(i))for(let f=0;f-1,p[1]=b<0||_-1||Ne(p,"default"))&&a.push(m)}}}const h=[s,a];return n.set(e,h),h}function fh(e){return e[0]!=="$"}function hh(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function dh(e,t){return hh(e)===hh(t)}function ph(e,t){return Le(t)?t.findIndex(r=>dh(r,e)):xe(t)&&dh(t,e)?0:-1}const Lv=e=>e[0]==="_"||e==="$stable",Qu=e=>Le(e)?e.map(Mr):[Mr(e)],Ey=(e,t,r)=>{if(t._n)return t;const n=J((...o)=>Qu(t(...o)),r);return n._c=!1,n},Ov=(e,t,r)=>{const n=e._ctx;for(const o in e){if(Lv(o))continue;const i=e[o];if(xe(i))t[o]=Ey(o,i,n);else if(i!=null){const s=Qu(i);t[o]=()=>s}}},xv=(e,t)=>{const r=Qu(t);e.slots.default=()=>r},Ty=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=Ve(t),$a(t,"_",r)):Ov(t,e.slots={})}else e.slots={},t&&xv(e,t);$a(e.slots,pl,1)},Ay=(e,t,r)=>{const{vnode:n,slots:o}=e;let i=!0,s=rt;if(n.shapeFlag&32){const a=t._;a?r&&a===1?i=!1:(yt(o,t),!r&&a===1&&delete o._):(i=!t.$stable,Ov(t,o)),s=t}else t&&(xv(e,t),s={default:1});if(i)for(const a in o)!Lv(a)&&!(a in s)&&delete o[a]};function Rv(){return{app:null,config:{isNativeTag:Qm,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 Ly=0;function Oy(e,t){return function(n,o=null){xe(n)||(n=Object.assign({},n)),o!=null&&!Ke(o)&&(o=null);const i=Rv(),s=new Set;let a=!1;const l=i.app={_uid:Ly++,_component:n,_props:o,_container:null,_context:i,_instance:null,version:zy,get config(){return i.config},set config(h){},use(h,...f){return s.has(h)||(h&&xe(h.install)?(s.add(h),h.install(l,...f)):xe(h)&&(s.add(h),h(l,...f))),l},mixin(h){return i.mixins.includes(h)||i.mixins.push(h),l},component(h,f){return f?(i.components[h]=f,l):i.components[h]},directive(h,f){return f?(i.directives[h]=f,l):i.directives[h]},mount(h,f,m){if(!a){const g=Q(n,o);return g.appContext=i,f&&t?t(g,h):e(g,h,m),a=!0,l._container=h,h.__vue_app__=l,vl(g.component)||g.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(h,f){return i.provides[h]=f,l}};return l}}function Kc(e,t,r,n,o=!1){if(Le(e)){e.forEach((g,p)=>Kc(g,t&&(Le(t)?t[p]:t),r,n,o));return}if(Co(n)&&!o)return;const i=n.shapeFlag&4?vl(n.component)||n.component.proxy:n.el,s=o?null:i,{i:a,r:l}=e,h=t&&t.r,f=a.refs===rt?a.refs={}:a.refs,m=a.setupState;if(h!=null&&h!==l&&(De(h)?(f[h]=null,Ne(m,h)&&(m[h]=null)):ot(h)&&(h.value=null)),xe(l))Yr(l,a,12,[s,f]);else{const g=De(l),p=ot(l);if(g||p){const _=()=>{if(e.f){const b=g?f[l]:l.value;o?Le(b)&&Fu(b,i):Le(b)?b.includes(i)||b.push(i):g?(f[l]=[i],Ne(m,l)&&(m[l]=f[l])):(l.value=[i],e.k&&(f[e.k]=l.value))}else g?(f[l]=s,Ne(m,l)&&(m[l]=s)):ot(l)&&(l.value=s,e.k&&(f[e.k]=s))};s?(_.id=-1,It(_,r)):_()}}}const It=ry;function xy(e){return Ry(e)}function Ry(e,t){const r=o0();r.__VUE__=!0;const{insert:n,remove:o,patchProp:i,createElement:s,createText:a,createComment:l,setText:h,setElementText:f,parentNode:m,nextSibling:g,setScopeId:p=St,cloneNode:_,insertStaticContent:b}=e,v=(H,j,K,W=null,re=null,fe=null,pe=!1,ce=null,de=!!j.dynamicChildren)=>{if(H===j)return;H&&!Yn(H,j)&&(W=P(H),_e(H,re,fe,!0),H=null),j.patchFlag===-2&&(de=!1,j.dynamicChildren=null);const{type:se,ref:G,shapeFlag:ue}=j;switch(se){case ns:c(H,j,K,W);break;case Qt:u(H,j,K,W);break;case cc:H==null&&d(j,K,W,pe);break;case Ye:O(H,j,K,W,re,fe,pe,ce,de);break;default:ue&1?w(H,j,K,W,re,fe,pe,ce,de):ue&6?$(H,j,K,W,re,fe,pe,ce,de):(ue&64||ue&128)&&se.process(H,j,K,W,re,fe,pe,ce,de,le)}G!=null&&re&&Kc(G,H&&H.ref,fe,j||H,!j)},c=(H,j,K,W)=>{if(H==null)n(j.el=a(j.children),K,W);else{const re=j.el=H.el;j.children!==H.children&&h(re,j.children)}},u=(H,j,K,W)=>{H==null?n(j.el=l(j.children||""),K,W):j.el=H.el},d=(H,j,K,W)=>{[H.el,H.anchor]=b(H.children,j,K,W,H.el,H.anchor)},y=({el:H,anchor:j},K,W)=>{let re;for(;H&&H!==j;)re=g(H),n(H,K,W),H=re;n(j,K,W)},S=({el:H,anchor:j})=>{let K;for(;H&&H!==j;)K=g(H),o(H),H=K;o(j)},w=(H,j,K,W,re,fe,pe,ce,de)=>{pe=pe||j.type==="svg",H==null?C(j,K,W,re,fe,pe,ce,de):E(H,j,re,fe,pe,ce,de)},C=(H,j,K,W,re,fe,pe,ce)=>{let de,se;const{type:G,props:ue,shapeFlag:ye,transition:Ce,patchFlag:Me,dirs:je}=H;if(H.el&&_!==void 0&&Me===-1)de=H.el=_(H.el);else{if(de=H.el=s(H.type,fe,ue&&ue.is,ue),ye&8?f(de,H.children):ye&16&&L(H.children,de,null,W,re,fe&&G!=="foreignObject",pe,ce),je&&jn(H,null,W,"created"),ue){for(const Xe in ue)Xe!=="value"&&!Ta(Xe)&&i(de,Xe,null,ue[Xe],fe,H.children,W,re,k);"value"in ue&&i(de,"value",null,ue.value),(se=ue.onVnodeBeforeMount)&&kr(se,W,H)}T(de,H,H.scopeId,pe,W)}je&&jn(H,null,W,"beforeMount");const Ge=(!re||re&&!re.pendingBranch)&&Ce&&!Ce.persisted;Ge&&Ce.beforeEnter(de),n(de,j,K),((se=ue&&ue.onVnodeMounted)||Ge||je)&&It(()=>{se&&kr(se,W,H),Ge&&Ce.enter(de),je&&jn(H,null,W,"mounted")},re)},T=(H,j,K,W,re)=>{if(K&&p(H,K),W)for(let fe=0;fe{for(let se=de;se{const ce=j.el=H.el;let{patchFlag:de,dynamicChildren:se,dirs:G}=j;de|=H.patchFlag&16;const ue=H.props||rt,ye=j.props||rt;let Ce;K&&Un(K,!1),(Ce=ye.onVnodeBeforeUpdate)&&kr(Ce,K,j,H),G&&jn(j,H,K,"beforeUpdate"),K&&Un(K,!0);const Me=re&&j.type!=="foreignObject";if(se?A(H.dynamicChildren,se,ce,K,W,Me,fe):pe||U(H,j,ce,null,K,W,Me,fe,!1),de>0){if(de&16)M(ce,j,ue,ye,K,W,re);else if(de&2&&ue.class!==ye.class&&i(ce,"class",null,ye.class,re),de&4&&i(ce,"style",ue.style,ye.style,re),de&8){const je=j.dynamicProps;for(let Ge=0;Ge{Ce&&kr(Ce,K,j,H),G&&jn(j,H,K,"updated")},W)},A=(H,j,K,W,re,fe,pe)=>{for(let ce=0;ce{if(K!==W){for(const ce in W){if(Ta(ce))continue;const de=W[ce],se=K[ce];de!==se&&ce!=="value"&&i(H,ce,se,de,pe,j.children,re,fe,k)}if(K!==rt)for(const ce in K)!Ta(ce)&&!(ce in W)&&i(H,ce,K[ce],null,pe,j.children,re,fe,k);"value"in W&&i(H,"value",K.value,W.value)}},O=(H,j,K,W,re,fe,pe,ce,de)=>{const se=j.el=H?H.el:a(""),G=j.anchor=H?H.anchor:a("");let{patchFlag:ue,dynamicChildren:ye,slotScopeIds:Ce}=j;Ce&&(ce=ce?ce.concat(Ce):Ce),H==null?(n(se,K,W),n(G,K,W),L(j.children,K,G,re,fe,pe,ce,de)):ue>0&&ue&64&&ye&&H.dynamicChildren?(A(H.dynamicChildren,ye,K,re,fe,pe,ce),(j.key!=null||re&&j===re.subTree)&&ef(H,j,!0)):U(H,j,K,G,re,fe,pe,ce,de)},$=(H,j,K,W,re,fe,pe,ce,de)=>{j.slotScopeIds=ce,H==null?j.shapeFlag&512?re.ctx.activate(j,K,W,pe,de):D(j,K,W,re,fe,pe,de):R(H,j,de)},D=(H,j,K,W,re,fe,pe)=>{const ce=H.component=Ny(H,W,re);if(fl(H)&&(ce.ctx.renderer=le),$y(ce),ce.asyncDep){if(re&&re.registerDep(ce,B),!H.el){const de=ce.subTree=Q(Qt);u(null,de,j,K)}return}B(ce,H,j,K,re,fe,pe)},R=(H,j,K)=>{const W=j.component=H.component;if(Q0(H,j,K))if(W.asyncDep&&!W.asyncResolved){N(W,j,K);return}else W.next=j,K0(W.update),W.update();else j.el=H.el,W.vnode=j},B=(H,j,K,W,re,fe,pe)=>{const ce=()=>{if(H.isMounted){let{next:G,bu:ue,u:ye,parent:Ce,vnode:Me}=H,je=G,Ge;Un(H,!1),G?(G.el=Me.el,N(H,G,pe)):G=Me,ue&&Aa(ue),(Ge=G.props&&G.props.onVnodeBeforeUpdate)&&kr(Ge,Ce,G,Me),Un(H,!0);const Xe=ac(H),Lt=H.subTree;H.subTree=Xe,v(Lt,Xe,m(Lt.el),P(Lt),H,re,fe),G.el=Xe.el,je===null&&ey(H,Xe.el),ye&&It(ye,re),(Ge=G.props&&G.props.onVnodeUpdated)&&It(()=>kr(Ge,Ce,G,Me),re)}else{let G;const{el:ue,props:ye}=j,{bm:Ce,m:Me,parent:je}=H,Ge=Co(j);if(Un(H,!1),Ce&&Aa(Ce),!Ge&&(G=ye&&ye.onVnodeBeforeMount)&&kr(G,je,j),Un(H,!0),ue&&he){const Xe=()=>{H.subTree=ac(H),he(ue,H.subTree,H,re,null)};Ge?j.type.__asyncLoader().then(()=>!H.isUnmounted&&Xe()):Xe()}else{const Xe=H.subTree=ac(H);v(null,Xe,K,W,H,re,fe),j.el=Xe.el}if(Me&&It(Me,re),!Ge&&(G=ye&&ye.onVnodeMounted)){const Xe=j;It(()=>kr(G,je,Xe),re)}(j.shapeFlag&256||je&&Co(je.vnode)&&je.vnode.shapeFlag&256)&&H.a&&It(H.a,re),H.isMounted=!0,j=K=W=null}},de=H.effect=new $u(ce,()=>av(se),H.scope),se=H.update=()=>de.run();se.id=H.uid,Un(H,!0),se()},N=(H,j,K)=>{j.component=H;const W=H.vnode.props;H.vnode=j,H.next=null,Cy(H,j.props,W,K),Ay(H,j.children,K),ci(),ll(void 0,H.update),ui()},U=(H,j,K,W,re,fe,pe,ce,de=!1)=>{const se=H&&H.children,G=H?H.shapeFlag:0,ue=j.children,{patchFlag:ye,shapeFlag:Ce}=j;if(ye>0){if(ye&128){X(se,ue,K,W,re,fe,pe,ce,de);return}else if(ye&256){z(se,ue,K,W,re,fe,pe,ce,de);return}}Ce&8?(G&16&&k(se,re,fe),ue!==se&&f(K,ue)):G&16?Ce&16?X(se,ue,K,W,re,fe,pe,ce,de):k(se,re,fe,!0):(G&8&&f(K,""),Ce&16&&L(ue,K,W,re,fe,pe,ce,de))},z=(H,j,K,W,re,fe,pe,ce,de)=>{H=H||Ri,j=j||Ri;const se=H.length,G=j.length,ue=Math.min(se,G);let ye;for(ye=0;yeG?k(H,re,fe,!0,!1,ue):L(j,K,W,re,fe,pe,ce,de,ue)},X=(H,j,K,W,re,fe,pe,ce,de)=>{let se=0;const G=j.length;let ue=H.length-1,ye=G-1;for(;se<=ue&&se<=ye;){const Ce=H[se],Me=j[se]=de?gn(j[se]):Mr(j[se]);if(Yn(Ce,Me))v(Ce,Me,K,null,re,fe,pe,ce,de);else break;se++}for(;se<=ue&&se<=ye;){const Ce=H[ue],Me=j[ye]=de?gn(j[ye]):Mr(j[ye]);if(Yn(Ce,Me))v(Ce,Me,K,null,re,fe,pe,ce,de);else break;ue--,ye--}if(se>ue){if(se<=ye){const Ce=ye+1,Me=Ceye)for(;se<=ue;)_e(H[se],re,fe,!0),se++;else{const Ce=se,Me=se,je=new Map;for(se=Me;se<=ye;se++){const gt=j[se]=de?gn(j[se]):Mr(j[se]);gt.key!=null&&je.set(gt.key,se)}let Ge,Xe=0;const Lt=ye-Me+1;let Tr=!1,Bn=0;const Ar=new Array(Lt);for(se=0;se=Lt){_e(gt,re,fe,!0);continue}let Ot;if(gt.key!=null)Ot=je.get(gt.key);else for(Ge=Me;Ge<=ye;Ge++)if(Ar[Ge-Me]===0&&Yn(gt,j[Ge])){Ot=Ge;break}Ot===void 0?_e(gt,re,fe,!0):(Ar[Ot-Me]=se+1,Ot>=Bn?Bn=Ot:Tr=!0,v(gt,j[Ot],K,null,re,fe,pe,ce,de),Xe++)}const Pn=Tr?ky(Ar):Ri;for(Ge=Pn.length-1,se=Lt-1;se>=0;se--){const gt=Me+se,Ot=j[gt],In=gt+1{const{el:fe,type:pe,transition:ce,children:de,shapeFlag:se}=H;if(se&6){ge(H.component.subTree,j,K,W);return}if(se&128){H.suspense.move(j,K,W);return}if(se&64){pe.move(H,j,K,le);return}if(pe===Ye){n(fe,j,K);for(let ue=0;uece.enter(fe),re);else{const{leave:ue,delayLeave:ye,afterLeave:Ce}=ce,Me=()=>n(fe,j,K),je=()=>{ue(fe,()=>{Me(),Ce&&Ce()})};ye?ye(fe,Me,je):je()}else n(fe,j,K)},_e=(H,j,K,W=!1,re=!1)=>{const{type:fe,props:pe,ref:ce,children:de,dynamicChildren:se,shapeFlag:G,patchFlag:ue,dirs:ye}=H;if(ce!=null&&Kc(ce,null,K,H,!0),G&256){j.ctx.deactivate(H);return}const Ce=G&1&&ye,Me=!Co(H);let je;if(Me&&(je=pe&&pe.onVnodeBeforeUnmount)&&kr(je,j,H),G&6)q(H.component,K,W);else{if(G&128){H.suspense.unmount(K,W);return}Ce&&jn(H,null,j,"beforeUnmount"),G&64?H.type.remove(H,j,K,re,le,W):se&&(fe!==Ye||ue>0&&ue&64)?k(se,j,K,!1,!0):(fe===Ye&&ue&384||!re&&G&16)&&k(de,j,K),W&&Oe(H)}(Me&&(je=pe&&pe.onVnodeUnmounted)||Ce)&&It(()=>{je&&kr(je,j,H),Ce&&jn(H,null,j,"unmounted")},K)},Oe=H=>{const{type:j,el:K,anchor:W,transition:re}=H;if(j===Ye){x(K,W);return}if(j===cc){S(H);return}const fe=()=>{o(K),re&&!re.persisted&&re.afterLeave&&re.afterLeave()};if(H.shapeFlag&1&&re&&!re.persisted){const{leave:pe,delayLeave:ce}=re,de=()=>pe(K,fe);ce?ce(H.el,fe,de):de()}else fe()},x=(H,j)=>{let K;for(;H!==j;)K=g(H),o(H),H=K;o(j)},q=(H,j,K)=>{const{bum:W,scope:re,update:fe,subTree:pe,um:ce}=H;W&&Aa(W),re.stop(),fe&&(fe.active=!1,_e(pe,H,j,K)),ce&&It(ce,j),It(()=>{H.isUnmounted=!0},j),j&&j.pendingBranch&&!j.isUnmounted&&H.asyncDep&&!H.asyncResolved&&H.suspenseId===j.pendingId&&(j.deps--,j.deps===0&&j.resolve())},k=(H,j,K,W=!1,re=!1,fe=0)=>{for(let pe=fe;peH.shapeFlag&6?P(H.component.subTree):H.shapeFlag&128?H.suspense.next():g(H.anchor||H.el),I=(H,j,K)=>{H==null?j._vnode&&_e(j._vnode,null,null,!0):v(j._vnode||null,H,j,null,null,null,K),uv(),j._vnode=H},le={p:v,um:_e,m:ge,r:Oe,mt:D,mc:L,pc:U,pbc:A,n:P,o:e};let ie,he;return t&&([ie,he]=t(le)),{render:I,hydrate:ie,createApp:Oy(I,ie)}}function Un({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function ef(e,t,r=!1){const n=e.children,o=t.children;if(Le(n)&&Le(o))for(let i=0;i>1,e[r[a]]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 My=e=>e.__isTeleport,Eo=e=>e&&(e.disabled||e.disabled===""),vh=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,Gc=(e,t)=>{const r=e&&e.to;return De(r)?t?t(r):null:r},By={__isTeleport:!0,process(e,t,r,n,o,i,s,a,l,h){const{mc:f,pc:m,pbc:g,o:{insert:p,querySelector:_,createText:b,createComment:v}}=h,c=Eo(t.props);let{shapeFlag:u,children:d,dynamicChildren:y}=t;if(e==null){const S=t.el=b(""),w=t.anchor=b("");p(S,r,n),p(w,r,n);const C=t.target=Gc(t.props,_),T=t.targetAnchor=b("");C&&(p(T,C),s=s||vh(C));const L=(E,A)=>{u&16&&f(d,E,A,o,i,s,a,l)};c?L(r,w):C&&L(C,T)}else{t.el=e.el;const S=t.anchor=e.anchor,w=t.target=e.target,C=t.targetAnchor=e.targetAnchor,T=Eo(e.props),L=T?r:w,E=T?S:C;if(s=s||vh(w),y?(g(e.dynamicChildren,y,L,o,i,s,a),ef(e,t,!0)):l||m(e,t,L,E,o,i,s,a,!1),c)T||aa(t,r,S,h,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const A=t.target=Gc(t.props,_);A&&aa(t,A,null,h,0)}else T&&aa(t,w,C,h,1)}},remove(e,t,r,n,{um:o,o:{remove:i}},s){const{shapeFlag:a,children:l,anchor:h,targetAnchor:f,target:m,props:g}=e;if(m&&i(f),(s||!Eo(g))&&(i(h),a&16))for(let p=0;p0?br||Ri:null,Iy(),jo>0&&br&&br.push(e),e}function ve(e,t,r,n,o,i){return Mv(V(e,t,r,n,o,i,!0))}function be(e,t,r,n,o){return Mv(Q(e,t,r,n,o,!0))}function At(e){return e?e.__v_isVNode===!0:!1}function Yn(e,t){return e.type===t.type&&e.key===t.key}const pl="__vInternal",Bv=({key:e})=>e!=null?e:null,Oa=({ref:e,ref_key:t,ref_for:r})=>e!=null?De(e)||ot(e)||xe(e)?{i:Tt,r:e,k:t,f:!!r}:e:null;function V(e,t=null,r=null,n=0,o=null,i=e===Ye?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Bv(t),ref:t&&Oa(t),scopeId:ul,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?(tf(l,r),i&128&&e.normalize(l)):r&&(l.shapeFlag|=De(r)?8:16),jo>0&&!s&&br&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&br.push(l),l}const Q=Dy;function Dy(e,t=null,r=null,n=0,o=null,i=!1){if((!e||e===Sv)&&(e=Qt),At(e)){const a=Qr(e,t,!0);return r&&tf(a,r),jo>0&&!i&&br&&(a.shapeFlag&6?br[br.indexOf(e)]=a:br.push(a)),a.patchFlag|=-2,a}if(Vy(e)&&(e=e.__vccOpts),t){t=Pv(t);let{class:a,style:l}=t;a&&!De(a)&&(t.class=ae(a)),Ke(l)&&(Qp(l)&&!Le(l)&&(l=yt({},l)),t.style=Qe(l))}const s=De(e)?1:ty(e)?128:My(e)?64:Ke(e)?4:xe(e)?2:0;return V(e,t,r,n,o,s,i,!0)}function Pv(e){return e?Qp(e)||pl in e?yt({},e):e:null}function Qr(e,t,r=!1){const{props:n,ref:o,patchFlag:i,children:s}=e,a=t?jt(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Bv(a),ref:t&&t.ref?r&&o?Le(o)?o.concat(Oa(t)):[o,Oa(t)]:Oa(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!==Ye?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&&Qr(e.ssContent),ssFallback:e.ssFallback&&Qr(e.ssFallback),el:e.el,anchor:e.anchor}}function Ee(e=" ",t=0){return Q(ns,null,e,t)}function Te(e="",t=!1){return t?(Y(),be(Qt,null,e)):Q(Qt,null,e)}function Mr(e){return e==null||typeof e=="boolean"?Q(Qt):Le(e)?Q(Ye,null,e.slice()):typeof e=="object"?gn(e):Q(ns,null,String(e))}function gn(e){return e.el===null||e.memo?e:Qr(e)}function tf(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(Le(t))r=16;else if(typeof t=="object")if(n&65){const o=t.default;o&&(o._c&&(o._d=!1),tf(e,o()),o._c&&(o._d=!0));return}else{r=32;const o=t._;!o&&!(pl in t)?t._ctx=Tt:o===3&&Tt&&(Tt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else xe(t)?(t={default:t,_ctx:Tt},r=32):(t=String(t),n&64?(r=16,t=[Ee(t)]):r=8);e.children=t,e.shapeFlag|=r}function jt(...e){const t={};for(let r=0;rmt||Tt,Ii=e=>{mt=e,e.scope.on()},ni=()=>{mt&&mt.scope.off(),mt=null};function Iv(e){return e.vnode.shapeFlag&4}let Uo=!1;function $y(e,t=!1){Uo=t;const{props:r,children:n}=e.vnode,o=Iv(e);wy(e,r,o,t),Ty(e,n);const i=o?jy(e,t):void 0;return Uo=!1,i}function jy(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=ev(new Proxy(e.ctx,gy));const{setup:n}=r;if(n){const o=e.setupContext=n.length>1?Fv(e):null;Ii(e),ci();const i=Yr(n,e,0,[e.props,o]);if(ui(),ni(),Hp(i)){if(i.then(ni,ni),t)return i.then(s=>{_h(e,s,t)}).catch(s=>{al(s,e,0)});e.asyncDep=i}else _h(e,i,t)}else Dv(e,t)}function _h(e,t,r){xe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ke(t)&&(e.setupState=iv(t)),Dv(e,r)}let mh;function Dv(e,t,r){const n=e.type;if(!e.render){if(!t&&mh&&!n.render){const o=n.template;if(o){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:a,compilerOptions:l}=n,h=yt(yt({isCustomElement:i,delimiters:a},s),l);n.render=mh(o,h)}}e.render=n.render||St}Ii(e),ci(),_y(e),ui(),ni()}function Uy(e){return new Proxy(e.attrs,{get(t,r){return er(e,"get","$attrs"),t[r]}})}function Fv(e){const t=n=>{e.exposed=n||{}};let r;return{get attrs(){return r||(r=Uy(e))},slots:e.slots,emit:e.emit,expose:t}}function vl(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(iv(ev(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in qa)return qa[r](e)}}))}const qy=/(?:^|[-_])(\w)/g,Wy=e=>e.replace(qy,t=>t.toUpperCase()).replace(/[-_]/g,"");function Hv(e){return xe(e)&&e.displayName||e.name}function Nv(e,t,r=!1){let n=Hv(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?Wy(n):r?"App":"Anonymous"}function Vy(e){return xe(e)&&"__vccOpts"in e}const te=(e,t)=>N0(e,t,Uo);function gl(){return jv().slots}function $v(){return jv().attrs}function jv(){const e=hr();return e.setupContext||(e.setupContext=Fv(e))}function Br(e,t,r){const n=arguments.length;return n===2?Ke(t)&&!Le(t)?At(t)?Q(e,null,[t]):Q(e,t):Q(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&At(r)&&(r=[r]),Q(e,t,r))}const zy="3.2.34",Ky="http://www.w3.org/2000/svg",Jn=typeof document!="undefined"?document:null,yh=Jn&&Jn.createElement("template"),Gy={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?Jn.createElementNS(Ky,e):Jn.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&o.setAttribute("multiple",n.multiple),o},createText:e=>Jn.createTextNode(e),createComment:e=>Jn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Jn.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{yh.innerHTML=n?`${e}`:e;const a=yh.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 Yy(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 Jy(e,t,r){const n=e.style,o=De(r);if(r&&!o){for(const i in r)Yc(n,i,r[i]);if(t&&!De(t))for(const i in t)r[i]==null&&Yc(n,i,"")}else{const i=n.display;o?t!==r&&(n.cssText=r):t&&e.removeAttribute("style"),"_vod"in e&&(n.display=i)}}const bh=/\s*!important$/;function Yc(e,t,r){if(Le(r))r.forEach(n=>Yc(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=Xy(e,t);bh.test(r)?e.setProperty(Rn(n),r.replace(bh,""),"important"):e[n]=r}}const Sh=["Webkit","Moz","ms"],uc={};function Xy(e,t){const r=uc[t];if(r)return r;let n=Sr(t);if(n!=="filter"&&n in e)return uc[t]=n;n=il(n);for(let o=0;o{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 Jc=0;const tb=Promise.resolve(),rb=()=>{Jc=0},nb=()=>Jc||(tb.then(rb),Jc=Uv());function qv(e,t,r,n){e.addEventListener(t,r,n)}function ib(e,t,r,n){e.removeEventListener(t,r,n)}function ob(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]=sb(t);if(n){const h=i[t]=ab(n,o);qv(e,a,h,l)}else s&&(ib(e,a,s,l),i[t]=void 0)}}const Ch=/(?:Once|Passive|Capture)$/;function sb(e){let t;if(Ch.test(e)){t={};let r;for(;r=e.match(Ch);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[Rn(e.slice(2)),t]}function ab(e,t){const r=n=>{const o=n.timeStamp||Uv();(eb||o>=r.attached-1)&&sr(lb(n,r.value),t,5,[n])};return r.value=e,r.attached=nb(),r}function lb(e,t){if(Le(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 Eh=/^on[a-z]/,cb=(e,t,r,n,o=!1,i,s,a,l)=>{t==="class"?Yy(e,n,o):t==="style"?Jy(e,r,n):rl(t)?Du(t)||ob(e,t,r,n,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ub(e,t,n,o))?Qy(e,t,n,i,s,a,l):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Zy(e,t,n,o))};function ub(e,t,r,n){return n?!!(t==="innerHTML"||t==="textContent"||t in e&&Eh.test(t)&&xe(r)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Eh.test(t)&&De(r)?!1:t in e}const cn="transition",lo="animation",dr=(e,{slots:t})=>Br(_v,Vv(e),t);dr.displayName="Transition";const Wv={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},fb=dr.props=yt({},_v.props,Wv),qn=(e,t=[])=>{Le(e)?e.forEach(r=>r(...t)):e&&e(...t)},Th=e=>e?Le(e)?e.some(t=>t.length>1):e.length>1:!1;function Vv(e){const t={};for(const O in e)O in Wv||(t[O]=e[O]);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:h=s,appearToClass:f=a,leaveFromClass:m=`${r}-leave-from`,leaveActiveClass:g=`${r}-leave-active`,leaveToClass:p=`${r}-leave-to`}=e,_=hb(o),b=_&&_[0],v=_&&_[1],{onBeforeEnter:c,onEnter:u,onEnterCancelled:d,onLeave:y,onLeaveCancelled:S,onBeforeAppear:w=c,onAppear:C=u,onAppearCancelled:T=d}=t,L=(O,$,D)=>{pn(O,$?f:a),pn(O,$?h:s),D&&D()};let E=!1;const A=(O,$)=>{E=!1,pn(O,m),pn(O,p),pn(O,g),$&&$()},M=O=>($,D)=>{const R=O?C:u,B=()=>L($,O,D);qn(R,[$,B]),Ah(()=>{pn($,O?l:i),zr($,O?f:a),Th(R)||Lh($,n,b,B)})};return yt(t,{onBeforeEnter(O){qn(c,[O]),zr(O,i),zr(O,s)},onBeforeAppear(O){qn(w,[O]),zr(O,l),zr(O,h)},onEnter:M(!1),onAppear:M(!0),onLeave(O,$){E=!0;const D=()=>A(O,$);zr(O,m),Kv(),zr(O,g),Ah(()=>{!E||(pn(O,m),zr(O,p),Th(y)||Lh(O,n,v,D))}),qn(y,[O,D])},onEnterCancelled(O){L(O,!1),qn(d,[O])},onAppearCancelled(O){L(O,!0),qn(T,[O])},onLeaveCancelled(O){A(O),qn(S,[O])}})}function hb(e){if(e==null)return null;if(Ke(e))return[fc(e.enter),fc(e.leave)];{const t=fc(e);return[t,t]}}function fc(e){return jp(e)}function zr(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e._vtc||(e._vtc=new Set)).add(t)}function pn(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 Ah(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let db=0;function Lh(e,t,r,n){const o=e._endId=++db,i=()=>{o===e._endId&&n()};if(r)return setTimeout(i,r);const{type:s,timeout:a,propCount:l}=zv(e,t);if(!s)return n();const h=s+"end";let f=0;const m=()=>{e.removeEventListener(h,g),i()},g=p=>{p.target===e&&++f>=l&&m()};setTimeout(()=>{f(r[_]||"").split(", "),o=n(cn+"Delay"),i=n(cn+"Duration"),s=Oh(o,i),a=n(lo+"Delay"),l=n(lo+"Duration"),h=Oh(a,l);let f=null,m=0,g=0;t===cn?s>0&&(f=cn,m=s,g=i.length):t===lo?h>0&&(f=lo,m=h,g=l.length):(m=Math.max(s,h),f=m>0?s>h?cn:lo:null,g=f?f===cn?i.length:l.length:0);const p=f===cn&&/\b(transform|all)(,|$)/.test(r[cn+"Property"]);return{type:f,timeout:m,propCount:g,hasTransform:p}}function Oh(e,t){for(;e.lengthxh(r)+xh(e[n])))}function xh(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Kv(){return document.body.offsetHeight}const Gv=new WeakMap,Yv=new WeakMap,pb={name:"TransitionGroup",props:yt({},fb,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=hr(),n=gv();let o,i;return rs(()=>{if(!o.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!yb(o[0].el,r.vnode.el,s))return;o.forEach(gb),o.forEach(_b);const a=o.filter(mb);Kv(),a.forEach(l=>{const h=l.el,f=h.style;zr(h,s),f.transform=f.webkitTransform=f.transitionDuration="";const m=h._moveCb=g=>{g&&g.target!==h||(!g||/transform$/.test(g.propertyName))&&(h.removeEventListener("transitionend",m),h._moveCb=null,pn(h,s))};h.addEventListener("transitionend",m)})}),()=>{const s=Ve(e),a=Vv(s);let l=s.tag||Ye;o=i,i=t.default?Gu(t.default()):[];for(let h=0;h{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}=zv(n);return o.removeChild(n),i}const Rh=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Le(t)?r=>Aa(t,r):t},Jv={created(e,{value:t},r){e.checked=Na(t,r.props.value),e._assign=Rh(r),qv(e,"change",()=>{e._assign(bb(e))})},beforeUpdate(e,{value:t,oldValue:r},n){e._assign=Rh(n),t!==r&&(e.checked=Na(t,n.props.value))}};function bb(e){return"_value"in e?e._value:e.value}const Sb=["ctrl","shift","alt","meta"],wb={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)=>Sb.some(r=>e[`${r}Key`]&&!t.includes(r))},Dt=(e,t)=>(r,...n)=>{for(let o=0;or=>{if(!("key"in r))return;const n=Rn(r.key);if(t.some(o=>o===n||Cb[o]===n))return e(r)},Ht={beforeMount(e,{value:t},{transition:r}){e._vod=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):co(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),co(e,!0),n.enter(e)):n.leave(e,()=>{co(e,!1)}):co(e,t))},beforeUnmount(e,{value:t}){co(e,t)}};function co(e,t){e.style.display=t?e._vod:"none"}const Eb=yt({patchProp:cb},Gy);let kh;function Xv(){return kh||(kh=xy(Eb))}const Di=(...e)=>{Xv().render(...e)},Zv=(...e)=>{const t=Xv().createApp(...e),{mount:r}=t;return t.mount=n=>{const o=Tb(n);if(!o)return;const i=t._component;!xe(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 Tb(e){return De(e)?document.querySelector(e):e}/*! * vue-router v4.0.15 * (c) 2022 Eduardo San Martin Morote * @license MIT */const Qv=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Gi=e=>Qv?Symbol(e):"_vr_"+e,Ab=Gi("rvlm"),Mh=Gi("rvd"),rf=Gi("r"),eg=Gi("rl"),Xc=Gi("rvl"),Oi=typeof window!="undefined";function Lb(e){return e.__esModule||Qv&&e[Symbol.toStringTag]==="Module"}const tt=Object.assign;function hc(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 Ao=()=>{},Ob=/\/$/,xb=e=>e.replace(Ob,"");function dc(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=Bb(n!=null?n:t,r),{fullPath:n+(i&&"?")+i+s,path:n,query:o,hash:s}}function Rb(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function Bh(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function kb(e,t,r){const n=t.matched.length-1,o=r.matched.length-1;return n>-1&&n===o&&Fi(t.matched[n],r.matched[o])&&tg(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Fi(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function tg(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!Mb(e[r],t[r]))return!1;return!0}function Mb(e,t){return Array.isArray(e)?Ph(e,t):Array.isArray(t)?Ph(t,e):e===t}function Ph(e,t){return Array.isArray(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function Bb(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({left:window.pageXOffset,top:window.pageYOffset});function Hb(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=Fb(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 Ih(e,t){return(history.state?history.state.position-t:-1)+e}const Zc=new Map;function Nb(e,t){Zc.set(e,t)}function $b(e){const t=Zc.get(e);return Zc.delete(e),t}let jb=()=>location.protocol+"//"+location.host;function rg(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),Bh(l,"")}return Bh(r,e)+n+o}function Ub(e,t,r,n){let o=[],i=[],s=null;const a=({state:g})=>{const p=rg(e,location),_=r.value,b=t.value;let v=0;if(g){if(r.value=p,t.value=g,s&&s===_){s=null;return}v=b?g.position-b.position:0}else n(p);o.forEach(c=>{c(r.value,_,{delta:v,type:qo.pop,direction:v?v>0?Lo.forward:Lo.back:Lo.unknown})})};function l(){s=r.value}function h(g){o.push(g);const p=()=>{const _=o.indexOf(g);_>-1&&o.splice(_,1)};return i.push(p),p}function f(){const{history:g}=window;!g.state||g.replaceState(tt({},g.state,{scroll:_l()}),"")}function m(){for(const g of i)g();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",f),{pauseListeners:l,listen:h,destroy:m}}function Dh(e,t,r,n=!1,o=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:o?_l():null}}function qb(e){const{history:t,location:r}=window,n={value:rg(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,h,f){const m=e.indexOf("#"),g=m>-1?(r.host&&document.querySelector("base")?e:e.slice(m))+l:jb()+e+l;try{t[f?"replaceState":"pushState"](h,"",g),o.value=h}catch(p){console.error(p),r[f?"replace":"assign"](g)}}function s(l,h){const f=tt({},t.state,Dh(o.value.back,l,o.value.forward,!0),h,{position:o.value.position});i(l,f,!0),n.value=l}function a(l,h){const f=tt({},o.value,t.state,{forward:l,scroll:_l()});i(f.current,f,!0);const m=tt({},Dh(n.value,l,null),{position:f.position+1},h);i(l,m,!1),n.value=l}return{location:n,state:o,push:a,replace:s}}function Wb(e){e=Pb(e);const t=qb(e),r=Ub(e,t.state,t.location,t.replace);function n(i,s=!0){s||r.pauseListeners(),history.go(i)}const o=tt({location:"",base:e,go:n,createHref:Db.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 Vb(e){return typeof e=="string"||e&&typeof e=="object"}function ng(e){return typeof e=="string"||typeof e=="symbol"}const un={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ig=Gi("nf");var Fh;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Fh||(Fh={}));function Hi(e,t){return tt(new Error,{type:e,[ig]:!0},t)}function fn(e,t){return e instanceof Error&&ig in e&&(t==null||!!(e.type&t))}const Hh="[^/]+?",zb={sensitive:!1,strict:!1,start:!0,end:!0},Kb=/[.+*?^${}()[\]/\\]/g;function Gb(e,t){const r=tt({},zb,t),n=[];let o=r.start?"^":"";const i=[];for(const h of e){const f=h.length?[]:[90];r.strict&&!h.length&&(o+="/");for(let m=0;m1&&(f.endsWith("/")?f=f.slice(0,-1):m=!0);else throw new Error(`Missing required param "${_}"`);f+=u}}return f}return{re:s,score:n,keys:i,parse:a,stringify:l}}function Yb(e,t){let r=0;for(;rt.length?t.length===1&&t[0]===40+40?1:-1:0}function Jb(e,t){let r=0;const n=e.score,o=t.score;for(;r1&&(l==="*"||l==="+")&&t(`A repeatable param (${h}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:h,regexp:f,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),h="")}function g(){h+=l}for(;a{s(u)}:Ao}function s(f){if(ng(f)){const m=n.get(f);m&&(n.delete(f),r.splice(r.indexOf(m),1),m.children.forEach(s),m.alias.forEach(s))}else{const m=r.indexOf(f);m>-1&&(r.splice(m,1),f.record.name&&n.delete(f.record.name),f.children.forEach(s),f.alias.forEach(s))}}function a(){return r}function l(f){let m=0;for(;m=0&&(f.record.path!==r[m].record.path||!og(f,r[m]));)m++;r.splice(m,0,f),f.record.name&&!Nh(f)&&n.set(f.record.name,f)}function h(f,m){let g,p={},_,b;if("name"in f&&f.name){if(g=n.get(f.name),!g)throw Hi(1,{location:f});b=g.record.name,p=tt(r1(m.params,g.keys.filter(u=>!u.optional).map(u=>u.name)),f.params),_=g.stringify(p)}else if("path"in f)_=f.path,g=r.find(u=>u.re.test(_)),g&&(p=g.parse(_),b=g.record.name);else{if(g=m.name?n.get(m.name):r.find(u=>u.re.test(m.path)),!g)throw Hi(1,{location:f,currentLocation:m});b=g.record.name,p=tt({},m.params,f.params),_=g.stringify(p)}const v=[];let c=g;for(;c;)v.unshift(c.record),c=c.parent;return{name:b,path:_,params:p,matched:v,meta:o1(v)}}return e.forEach(f=>i(f)),{addRoute:i,resolve:h,removeRoute:s,getRoutes:a,getRecordMatcher:o}}function r1(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function n1(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:i1(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}function i1(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 Nh(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function o1(e){return e.reduce((t,r)=>tt(t,r.meta),{})}function $h(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function og(e,t){return t.children.some(r=>r===e||og(e,r))}const sg=/#/g,s1=/&/g,a1=/\//g,l1=/=/g,c1=/\?/g,ag=/\+/g,u1=/%5B/g,f1=/%5D/g,lg=/%5E/g,h1=/%60/g,cg=/%7B/g,d1=/%7C/g,ug=/%7D/g,p1=/%20/g;function nf(e){return encodeURI(""+e).replace(d1,"|").replace(u1,"[").replace(f1,"]")}function v1(e){return nf(e).replace(cg,"{").replace(ug,"}").replace(lg,"^")}function Qc(e){return nf(e).replace(ag,"%2B").replace(p1,"+").replace(sg,"%23").replace(s1,"%26").replace(h1,"`").replace(cg,"{").replace(ug,"}").replace(lg,"^")}function g1(e){return Qc(e).replace(l1,"%3D")}function _1(e){return nf(e).replace(sg,"%23").replace(c1,"%3F")}function m1(e){return e==null?"":_1(e).replace(a1,"%2F")}function Va(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function y1(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;oi&&Qc(i)):[n&&Qc(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+r,i!=null&&(t+="="+i))})}return t}function b1(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 uo(){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=m=>{m===!1?a(Hi(4,{from:r,to:t})):m instanceof Error?a(m):Vb(m)?a(Hi(2,{from:t,to:m})):(i&&n.enterCallbacks[o]===i&&typeof m=="function"&&i.push(m),s())},h=e.call(n&&n.instances[o],t,r,l);let f=Promise.resolve(h);e.length<3&&(f=f.then(l)),f.catch(m=>a(m))})}function pc(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(S1(a)){const h=(a.__vccOpts||a)[t];h&&o.push(_n(h,r,n,i,s))}else{let l=a();o.push(()=>l.then(h=>{if(!h)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${i.path}"`));const f=Lb(h)?h.default:h;i.components[s]=f;const g=(f.__vccOpts||f)[t];return g&&_n(g,r,n,i,s)()}))}}return o}function S1(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Uh(e){const t=ke(rf),r=ke(eg),n=te(()=>t.resolve(F(e.to))),o=te(()=>{const{matched:l}=n.value,{length:h}=l,f=l[h-1],m=r.matched;if(!f||!m.length)return-1;const g=m.findIndex(Fi.bind(null,f));if(g>-1)return g;const p=qh(l[h-2]);return h>1&&qh(f)===p&&m[m.length-1].path!==p?m.findIndex(Fi.bind(null,l[h-2])):g}),i=te(()=>o.value>-1&&T1(r.params,n.value.params)),s=te(()=>o.value>-1&&o.value===r.matched.length-1&&tg(r.params,n.value.params));function a(l={}){return E1(l)?t[F(e.replace)?"replace":"push"](F(e.to)).catch(Ao):Promise.resolve()}return{route:n,href:te(()=>n.value.href),isActive:i,isExactActive:s,navigate:a}}const w1=Ae({name:"RouterLink",props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Uh,setup(e,{slots:t}){const r=fr(Uh(e)),{options:n}=ke(rf),o=te(()=>({[Wh(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[Wh(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const i=t.default&&t.default(r);return e.custom?i:Br("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:o.value},i)}}}),C1=w1;function E1(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 T1(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 qh(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Wh=(e,t,r)=>e!=null?e:t!=null?t:r,A1=Ae({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=ke(Xc),o=te(()=>e.route||n.value),i=ke(Mh,0),s=te(()=>o.value.matched[i]);st(Mh,i+1),st(Ab,s),st(Xc,o);const a=oe();return Ie(()=>[a.value,s.value,e.name],([l,h,f],[m,g,p])=>{h&&(h.instances[f]=l,g&&g!==h&&l&&l===m&&(h.leaveGuards.size||(h.leaveGuards=g.leaveGuards),h.updateGuards.size||(h.updateGuards=g.updateGuards))),l&&h&&(!g||!Fi(h,g)||!m)&&(h.enterCallbacks[f]||[]).forEach(_=>_(l))},{flush:"post"}),()=>{const l=o.value,h=s.value,f=h&&h.components[e.name],m=e.name;if(!f)return Vh(r.default,{Component:f,route:l});const g=h.props[e.name],p=g?g===!0?l.params:typeof g=="function"?g(l):g:null,b=Br(f,tt({},p,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(h.instances[m]=null)},ref:a}));return Vh(r.default,{Component:b,route:l})||b}}});function Vh(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const L1=A1;function O1(e){const t=t1(e.routes,e),r=e.parseQuery||y1,n=e.stringifyQuery||jh,o=e.history,i=uo(),s=uo(),a=uo(),l=La(un);let h=un;Oi&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=hc.bind(null,x=>""+x),m=hc.bind(null,m1),g=hc.bind(null,Va);function p(x,q){let k,P;return ng(x)?(k=t.getRecordMatcher(x),P=q):P=x,t.addRoute(P,k)}function _(x){const q=t.getRecordMatcher(x);q&&t.removeRoute(q)}function b(){return t.getRoutes().map(x=>x.record)}function v(x){return!!t.getRecordMatcher(x)}function c(x,q){if(q=tt({},q||l.value),typeof x=="string"){const he=dc(r,x,q.path),H=t.resolve({path:he.path},q),j=o.createHref(he.fullPath);return tt(he,H,{params:g(H.params),hash:Va(he.hash),redirectedFrom:void 0,href:j})}let k;if("path"in x)k=tt({},x,{path:dc(r,x.path,q.path).path});else{const he=tt({},x.params);for(const H in he)he[H]==null&&delete he[H];k=tt({},x,{params:m(x.params)}),q.params=m(q.params)}const P=t.resolve(k,q),I=x.hash||"";P.params=f(g(P.params));const le=Rb(n,tt({},x,{hash:v1(I),path:P.path})),ie=o.createHref(le);return tt({fullPath:le,hash:I,query:n===jh?b1(x.query):x.query||{}},P,{redirectedFrom:void 0,href:ie})}function u(x){return typeof x=="string"?dc(r,x,l.value.path):tt({},x)}function d(x,q){if(h!==x)return Hi(8,{from:q,to:x})}function y(x){return C(x)}function S(x){return y(tt(u(x),{replace:!0}))}function w(x){const q=x.matched[x.matched.length-1];if(q&&q.redirect){const{redirect:k}=q;let P=typeof k=="function"?k(x):k;return typeof P=="string"&&(P=P.includes("?")||P.includes("#")?P=u(P):{path:P},P.params={}),tt({query:x.query,hash:x.hash,params:x.params},P)}}function C(x,q){const k=h=c(x),P=l.value,I=x.state,le=x.force,ie=x.replace===!0,he=w(k);if(he)return C(tt(u(he),{state:I,force:le,replace:ie}),q||k);const H=k;H.redirectedFrom=q;let j;return!le&&kb(n,P,k)&&(j=Hi(16,{to:H,from:P}),z(P,P,!0,!1)),(j?Promise.resolve(j):L(H,P)).catch(K=>fn(K)?fn(K,2)?K:U(K):B(K,H,P)).then(K=>{if(K){if(fn(K,2))return C(tt(u(K.to),{state:I,force:le,replace:ie}),q||H)}else K=A(H,P,!0,ie,I);return E(H,P,K),K})}function T(x,q){const k=d(x,q);return k?Promise.reject(k):Promise.resolve()}function L(x,q){let k;const[P,I,le]=x1(x,q);k=pc(P.reverse(),"beforeRouteLeave",x,q);for(const he of P)he.leaveGuards.forEach(H=>{k.push(_n(H,x,q))});const ie=T.bind(null,x,q);return k.push(ie),yi(k).then(()=>{k=[];for(const he of i.list())k.push(_n(he,x,q));return k.push(ie),yi(k)}).then(()=>{k=pc(I,"beforeRouteUpdate",x,q);for(const he of I)he.updateGuards.forEach(H=>{k.push(_n(H,x,q))});return k.push(ie),yi(k)}).then(()=>{k=[];for(const he of x.matched)if(he.beforeEnter&&!q.matched.includes(he))if(Array.isArray(he.beforeEnter))for(const H of he.beforeEnter)k.push(_n(H,x,q));else k.push(_n(he.beforeEnter,x,q));return k.push(ie),yi(k)}).then(()=>(x.matched.forEach(he=>he.enterCallbacks={}),k=pc(le,"beforeRouteEnter",x,q),k.push(ie),yi(k))).then(()=>{k=[];for(const he of s.list())k.push(_n(he,x,q));return k.push(ie),yi(k)}).catch(he=>fn(he,8)?he:Promise.reject(he))}function E(x,q,k){for(const P of a.list())P(x,q,k)}function A(x,q,k,P,I){const le=d(x,q);if(le)return le;const ie=q===un,he=Oi?history.state:{};k&&(P||ie?o.replace(x.fullPath,tt({scroll:ie&&he&&he.scroll},I)):o.push(x.fullPath,I)),l.value=x,z(x,q,k,ie),U()}let M;function O(){M||(M=o.listen((x,q,k)=>{const P=c(x),I=w(P);if(I){C(tt(I,{replace:!0}),P).catch(Ao);return}h=P;const le=l.value;Oi&&Nb(Ih(le.fullPath,k.delta),_l()),L(P,le).catch(ie=>fn(ie,12)?ie:fn(ie,2)?(C(ie.to,P).then(he=>{fn(he,20)&&!k.delta&&k.type===qo.pop&&o.go(-1,!1)}).catch(Ao),Promise.reject()):(k.delta&&o.go(-k.delta,!1),B(ie,P,le))).then(ie=>{ie=ie||A(P,le,!1),ie&&(k.delta?o.go(-k.delta,!1):k.type===qo.pop&&fn(ie,20)&&o.go(-1,!1)),E(P,le,ie)}).catch(Ao)}))}let $=uo(),D=uo(),R;function B(x,q,k){U(x);const P=D.list();return P.length?P.forEach(I=>I(x,q,k)):console.error(x),Promise.reject(x)}function N(){return R&&l.value!==un?Promise.resolve():new Promise((x,q)=>{$.add([x,q])})}function U(x){return R||(R=!x,O(),$.list().forEach(([q,k])=>x?k(x):q()),$.reset()),x}function z(x,q,k,P){const{scrollBehavior:I}=e;if(!Oi||!I)return Promise.resolve();const le=!k&&$b(Ih(x.fullPath,0))||(P||!k)&&history.state&&history.state.scroll||null;return Ze().then(()=>I(x,q,le)).then(ie=>ie&&Hb(ie)).catch(ie=>B(ie,x,q))}const X=x=>o.go(x);let ge;const _e=new Set;return{currentRoute:l,addRoute:p,removeRoute:_,hasRoute:v,getRoutes:b,resolve:c,options:e,push:y,replace:S,go:X,back:()=>X(-1),forward:()=>X(1),beforeEach:i.add,beforeResolve:s.add,afterEach:a.add,onError:D.add,isReady:N,install(x){const q=this;x.component("RouterLink",C1),x.component("RouterView",L1),x.config.globalProperties.$router=q,Object.defineProperty(x.config.globalProperties,"$route",{enumerable:!0,get:()=>F(l)}),Oi&&!ge&&l.value===un&&(ge=!0,y(o.location).catch(I=>{}));const k={};for(const I in un)k[I]=te(()=>l.value[I]);x.provide(rf,q),x.provide(eg,fr(k)),x.provide(Xc,l);const P=x.unmount;_e.add(x),x.unmount=function(){_e.delete(x),_e.size<1&&(h=un,M&&M(),M=null,l.value=un,ge=!1,R=!1),P()}}}}function yi(e){return e.reduce((t,r)=>t.then(()=>r()),Promise.resolve())}function x1(e,t){const r=[],n=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;sFi(h,a))?n.push(a):r.push(a));const l=e.matched[s];l&&(t.matched.find(h=>Fi(h,l))||o.push(l))}return[r,n,o]}var R1=typeof global=="object"&&global&&global.Object===Object&&global,fg=R1,k1=typeof self=="object"&&self&&self.Object===Object&&self,M1=fg||k1||Function("return this")(),wr=M1,B1=wr.Symbol,Fr=B1,hg=Object.prototype,P1=hg.hasOwnProperty,I1=hg.toString,fo=Fr?Fr.toStringTag:void 0;function D1(e){var t=P1.call(e,fo),r=e[fo];try{e[fo]=void 0;var n=!0}catch{}var o=I1.call(e);return n&&(t?e[fo]=r:delete e[fo]),o}var F1=Object.prototype,H1=F1.toString;function N1(e){return H1.call(e)}var $1="[object Null]",j1="[object Undefined]",zh=Fr?Fr.toStringTag:void 0;function Yi(e){return e==null?e===void 0?j1:$1:zh&&zh in Object(e)?D1(e):N1(e)}function Ln(e){return e!=null&&typeof e=="object"}var U1="[object Symbol]";function ml(e){return typeof e=="symbol"||Ln(e)&&Yi(e)==U1}function q1(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r-1&&e%1==0&&e-1&&e%1==0&&e<=LS}function mg(e){return e!=null&&_g(e.length)&&!pg(e)}var OS=Object.prototype;function af(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||OS;return e===r}function xS(e,t){for(var r=-1,n=Array(e);++r-1}function Vw(e,t){var r=this.__data__,n=bl(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function on(e){var t=-1,r=e==null?0:e.length;for(this.clear();++ta))return!1;var h=i.get(e),f=i.get(t);if(h&&f)return h==t&&f==e;var m=-1,g=!0,p=r&r2?new Ga:void 0;for(i.set(e,t),i.set(t,e);++m=t||C<0||m&&T>=i}function c(){var w=mc();if(v(w))return u(w);a=setTimeout(c,b(w))}function u(w){return a=void 0,g&&n?p(w):(n=o=void 0,s)}function d(){a!==void 0&&clearTimeout(a),h=0,n=l=o=a=void 0}function y(){return a===void 0?s:u(mc())}function S(){var w=mc(),C=v(w);if(n=arguments,o=this,l=w,C){if(a===void 0)return _(l);if(m)return clearTimeout(a),a=setTimeout(c,t),p(l)}return a===void 0&&(a=setTimeout(c,t)),s}return S.cancel=d,S.flush=y,S}function Ng(e){for(var t=-1,r=e==null?0:e.length,n={};++tgetComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,Sd=e=>Array.from(e.querySelectorAll(I2)).filter(t=>F2(t)&&D2(t)),F2=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}},wl=(e,t,r,n=!1)=>{e&&t&&r&&(e==null||e.addEventListener(t,r,n))},Cl=(e,t,r,n=!1)=>{e&&t&&r&&(e==null||e.removeEventListener(t,r,n))},ft=(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)},wd=e=>t=>t.pointerType==="mouse"?e(t):void 0;function El(e){return l0()?(Up(e),!0):!1}var Cd;const pt=typeof window!="undefined",On=e=>typeof e=="boolean",Mt=e=>typeof e=="number",H2=e=>typeof e=="string",yc=()=>{};pt&&((Cd=window==null?void 0:window.navigator)==null?void 0:Cd.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function N2(e,t){function r(...n){e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})}return r}function $2(e,t={}){let r,n;return i=>{const s=F(e),a=F(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 j2(e,t=200,r={}){return N2($2(t,r),e)}function U2(e,t=200,r={}){if(t<=0)return e;const n=oe(e.value),o=j2(()=>{n.value=e.value},t,r);return Ie(e,()=>o()),n}function Ya(e,t,r={}){const{immediate:n=!0}=r,o=oe(!1);let i=null;function s(){i&&(clearTimeout(i),i=null)}function a(){o.value=!1,s()}function l(...h){s(),o.value=!0,i=setTimeout(()=>{o.value=!1,i=null,e(...h)},F(t))}return n&&(o.value=!0,pt&&l()),El(a),{isPending:o,start:l,stop:a}}function ii(e){var t;const r=F(e);return(t=r==null?void 0:r.$el)!=null?t:r}const pf=pt?window:void 0;function Pr(...e){let t,r,n,o;if(H2(e[0])?([r,n,o]=e,t=pf):[t,r,n,o]=e,!t)return yc;let i=yc;const s=Ie(()=>ii(t),l=>{i(),l&&(l.addEventListener(r,n,o),i=()=>{l.removeEventListener(r,n,o),i=yc})},{immediate:!0,flush:"post"}),a=()=>{s(),i()};return El(a),a}function $g(e,t,r={}){const{window:n=pf,ignore:o,capture:i=!0}=r;if(!n)return;const s=oe(!0);let a;const l=m=>{n.clearTimeout(a);const g=ii(e),p=m.composedPath();!g||g===m.target||p.includes(g)||!s.value||o&&o.length>0&&o.some(_=>{const b=ii(_);return b&&(m.target===b||p.includes(b))})||t(m)},h=[Pr(n,"click",l,{passive:!0,capture:i}),Pr(n,"pointerdown",m=>{const g=ii(e);s.value=!!g&&!m.composedPath().includes(g)},{passive:!0}),Pr(n,"pointerup",m=>{a=n.setTimeout(()=>l(m),50)},{passive:!0})];return()=>h.forEach(m=>m())}const su=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},au="__vueuse_ssr_handlers__";su[au]=su[au]||{};su[au];var Ed=Object.getOwnPropertySymbols,q2=Object.prototype.hasOwnProperty,W2=Object.prototype.propertyIsEnumerable,V2=(e,t)=>{var r={};for(var n in e)q2.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ed)for(var n of Ed(e))t.indexOf(n)<0&&W2.call(e,n)&&(r[n]=e[n]);return r};function vf(e,t,r={}){const n=r,{window:o=pf}=n,i=V2(n,["window"]);let s;const a=o&&"ResizeObserver"in o,l=()=>{s&&(s.disconnect(),s=void 0)},h=Ie(()=>ii(e),m=>{l(),a&&o&&m&&(s=new ResizeObserver(t),s.observe(m,i))},{immediate:!0,flush:"post"}),f=()=>{l(),h()};return El(f),{isSupported:a,stop:f}}const Ja=e=>e===void 0,Ko=e=>typeof Element=="undefined"?!1:e instanceof Element,lu=e=>Object.keys(e),bc=(e,t,r)=>({get value(){return Lg(e,t,r)},set value(n){P2(e,t,n)}});class z2 extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Tl(e,t){throw new z2(`[${e}] ${t}`)}const jg=(e="")=>e.split(" ").filter(t=>!!t.trim()),Td=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},cu=(e,t)=>{!e||!t.trim()||e.classList.add(...jg(t))},Go=(e,t)=>{!e||!t.trim()||e.classList.remove(...jg(t))},Xn=(e,t)=>{var r;if(!pt||!e||!t)return"";Sr(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 xn(e,t="px"){if(!e)return"";if(De(e))return e;if(Mt(e))return`${e}${t}`}let ca;const K2=()=>{var e;if(!pt)return 0;if(ca!==void 0)return ca;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),ca=r-o,ca};var Cr=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r};const G2=Ae({name:"ArrowDown"}),Y2={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},J2=V("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),X2=[J2];function Z2(e,t,r,n,o,i){return Y(),ve("svg",Y2,X2)}var Q2=Cr(G2,[["render",Z2]]);const e5=Ae({name:"CircleCheck"}),t5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},r5=V("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),n5=V("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),i5=[r5,n5];function o5(e,t,r,n,o,i){return Y(),ve("svg",t5,i5)}var s5=Cr(e5,[["render",o5]]);const a5=Ae({name:"CircleCloseFilled"}),l5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},c5=V("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),u5=[c5];function f5(e,t,r,n,o,i){return Y(),ve("svg",l5,u5)}var Ug=Cr(a5,[["render",f5]]);const h5=Ae({name:"CircleClose"}),d5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},p5=V("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),v5=V("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),g5=[p5,v5];function _5(e,t,r,n,o,i){return Y(),ve("svg",d5,g5)}var qg=Cr(h5,[["render",_5]]);const m5=Ae({name:"Close"}),y5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},b5=V("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),S5=[b5];function w5(e,t,r,n,o,i){return Y(),ve("svg",y5,S5)}var Wg=Cr(m5,[["render",w5]]);const C5=Ae({name:"Hide"}),E5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},T5=V("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),A5=V("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),L5=[T5,A5];function O5(e,t,r,n,o,i){return Y(),ve("svg",E5,L5)}var x5=Cr(C5,[["render",O5]]);const R5=Ae({name:"InfoFilled"}),k5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},M5=V("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),B5=[M5];function P5(e,t,r,n,o,i){return Y(),ve("svg",k5,B5)}var Vg=Cr(R5,[["render",P5]]);const I5=Ae({name:"Loading"}),D5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},F5=V("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),H5=[F5];function N5(e,t,r,n,o,i){return Y(),ve("svg",D5,H5)}var gf=Cr(I5,[["render",N5]]);const $5=Ae({name:"SuccessFilled"}),j5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},U5=V("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),q5=[U5];function W5(e,t,r,n,o,i){return Y(),ve("svg",j5,q5)}var zg=Cr($5,[["render",W5]]);const V5=Ae({name:"View"}),z5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},K5=V("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),G5=[K5];function Y5(e,t,r,n,o,i){return Y(),ve("svg",z5,G5)}var J5=Cr(V5,[["render",Y5]]);const X5=Ae({name:"WarningFilled"}),Z5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Q5=V("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),eT=[Q5];function tT(e,t,r,n,o,i){return Y(),ve("svg",Z5,eT)}var Kg=Cr(X5,[["render",tT]]);const uu=Symbol(),Ad="__elPropsReservedKey";function Al(e,t){if(!Ke(e)||!!e[Ad])return e;const{values:r,required:n,default:o,type:i,validator:s}=e,a=r||s?h=>{let f=!1,m=[];if(r&&(m=Array.from(r),Ne(e,"default")&&m.push(o),f||(f=m.includes(h))),s&&(f||(f=s(h))),!f&&m.length>0){const g=[...new Set(m)].map(p=>JSON.stringify(p)).join(", ");$0(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${g}], got value ${JSON.stringify(h)}.`)}return f}:void 0,l={type:Ke(i)&&Object.getOwnPropertySymbols(i).includes(uu)?i[uu]:i,required:!!n,validator:a,[Ad]:!0};return Ne(e,"default")&&(l.default=o),l}const qe=e=>Ng(Object.entries(e).map(([t,r])=>[t,Al(r,t)])),Re=e=>({[uu]:e}),ai=Re([String,Object,Function]),rT={Close:Wg},Ll={Close:Wg,SuccessFilled:zg,InfoFilled:Vg,WarningFilled:Kg,CircleCloseFilled:Ug},tn={success:zg,warning:Kg,error:Ug,info:Vg},nT={validating:gf,success:s5,error:qg},Ut=(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},Gg=(e,t)=>(e.install=r=>{e._context=r._context,r.config.globalProperties[t]=e},e),Ji=e=>(e.install=St,e),Yg=(...e)=>t=>{e.forEach(r=>{xe(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"},ar="update:modelValue",is=["","default","small","large"],iT=e=>["",...is].includes(e);var Ra=(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))(Ra||{});const oT=e=>/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e),Jg=()=>Math.floor(Math.random()*1e4),sT=e=>e,aT=["class","style"],lT=/^on[A-Z]/,Xg=(e={})=>{const{excludeListeners:t=!1,excludeKeys:r=[]}=e,n=r.concat(aT),o=hr();return te(o?()=>{var i;return Ng(Object.entries((i=o.proxy)==null?void 0:i.$attrs).filter(([s])=>!n.includes(s)&&!(t&&lT.test(s))))}:()=>({}))},Zg=Symbol("buttonGroupContextKey"),Qg=Symbol(),e_=Symbol("dialogInjectionKey"),Xi=Symbol("formContextKey"),li=Symbol("formItemContextKey"),t_=Symbol("radioGroupKey"),r_=Symbol("scrollbarContextKey"),_f=Symbol("popper"),n_=Symbol("popperContent"),i_=e=>{const t=hr();return te(()=>{var r,n;return(n=(r=t.proxy)==null?void 0:r.$props[e])!=null?n:void 0})},Xa=oe();function di(e,t=void 0){const r=hr()?ke(Qg,Xa):Xa;return e?te(()=>{var n,o;return(o=(n=r.value)==null?void 0:n[e])!=null?o:t}):r}const cT=(e,t,r=!1)=>{var n;const o=!!hr(),i=o?di():void 0,s=(n=t==null?void 0:t.provide)!=null?n:o?st:void 0;if(!s)return;const a=te(()=>{const l=F(e);return i!=null&&i.value?uT(i.value,l):l});return s(Qg,a),(r||!Xa.value)&&(Xa.value=a.value),a},uT=(e,t)=>{var r;const n=[...new Set([...lu(e),...lu(t)])],o={};for(const i of n)o[i]=(r=t[i])!=null?r:e[i];return o},Ol=Al({type:String,values:is,required:!1}),pi=(e,t={})=>{const r=oe(void 0),n=t.prop?r:i_("size"),o=t.global?r:di("size"),i=t.form?{size:void 0}:ke(Xi,void 0),s=t.formItem?{size:void 0}:ke(li,void 0);return te(()=>n.value||F(e)||(s==null?void 0:s.size)||(i==null?void 0:i.size)||o.value||"")},xl=e=>{const t=i_("disabled"),r=ke(Xi,void 0);return te(()=>t.value||F(e)||(r==null?void 0:r.disabled)||!1)},o_=(e,t,r)=>{let n={offsetX:0,offsetY:0};const o=a=>{const l=a.clientX,h=a.clientY,{offsetX:f,offsetY:m}=n,g=e.value.getBoundingClientRect(),p=g.left,_=g.top,b=g.width,v=g.height,c=document.documentElement.clientWidth,u=document.documentElement.clientHeight,d=-p+f,y=-_+m,S=c-p-b+f,w=u-_-v+m,C=L=>{const E=Math.min(Math.max(f+L.clientX-l,d),S),A=Math.min(Math.max(m+L.clientY-h,y),w);n={offsetX:E,offsetY:A},e.value.style.transform=`translate(${xn(E)}, ${xn(A)})`},T=()=>{document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",T)};document.addEventListener("mousemove",C),document.addEventListener("mouseup",T)},i=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",o)},s=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",o)};lt(()=>{ny(()=>{r.value?i():s()})}),tr(()=>{s()})},fT={prefix:Math.floor(Math.random()*1e4),current:0},hT=Symbol("elIdInjection"),Rl=e=>{const t=ke(hT,fT);return te(()=>F(e)||`el-id-${t.prefix}-${t.current++}`)},mf=()=>{const e=ke(Xi,void 0),t=ke(li,void 0);return{form:e,formItem:t}},s_=(e,{formItemContext:t,disableIdGeneration:r,disableIdManagement:n})=>{r||(r=oe(!1)),n||(n=oe(!1));const o=oe();let i;const s=te(()=>{var a;return!!(!e.label&&t&&t.inputIds&&((a=t.inputIds)==null?void 0:a.length)<=1)});return lt(()=>{i=Ie([Bt(e,"id"),r],([a,l])=>{const h=a!=null?a:l?void 0:Rl().value;h!==o.value&&(t!=null&&t.removeInputId&&(o.value&&t.removeInputId(o.value),!(n!=null&&n.value)&&!l&&h&&t.addInputId(h)),o.value=h)},{immediate:!0})}),Yu(()=>{i&&i(),t!=null&&t.removeInputId&&o.value&&t.removeInputId(o.value)}),{isLabeledByFormItem:s,inputId:o}};var dT={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 pT=e=>(t,r)=>vT(t,r,F(e)),vT=(e,t,r)=>Lg(r,e,e).replace(/\{(\w+)\}/g,(n,o)=>{var i;return`${(i=t==null?void 0:t[o])!=null?i:`{${o}}`}`}),gT=e=>{const t=te(()=>F(e).name),r=ot(e)?e:oe(e);return{lang:t,locale:r,t:pT(e)}},_T=()=>{const e=di("locale");return gT(te(()=>e.value||dT))},a_=e=>{if(ot(e)||Tl("[useLockscreen]","You need to pass a ref param to this function"),!pt||Td(document.body,"el-popup-parent--hidden"))return;let t=0,r=!1,n="0",o=0;const i=()=>{Go(document.body,"el-popup-parent--hidden"),r&&(document.body.style.paddingRight=n)};Ie(e,s=>{if(!s){i();return}r=!Td(document.body,"el-popup-parent--hidden"),r&&(n=document.body.style.paddingRight,o=Number.parseInt(Xn(document.body,"paddingRight"),10)),t=K2();const a=document.documentElement.clientHeight0&&(a||l==="scroll")&&r&&(document.body.style.paddingRight=`${o+t}px`),cu(document.body,"el-popup-parent--hidden")}),Up(()=>i())},Bi=[],mT=e=>{Bi.length!==0&&e.code===ze.esc&&(e.stopPropagation(),Bi[Bi.length-1].handleClose())},l_=(e,t)=>{Ie(t,r=>{r?Bi.push(e):Bi.splice(Bi.indexOf(e),1)})};pt&&Pr(document,"keydown",mT);const yT=Al({type:Re(Boolean),default:null}),bT=Al({type:Re(Function)}),ST=e=>{const t={[e]:yT,[`onUpdate:${e}`]:bT},r=[`update:${e}`];return{useModelToggle:({indicator:o,shouldHideWhenRouteChanges:i,shouldProceed:s,onShow:a,onHide:l})=>{const h=hr(),f=h.props,{emit:m}=h,g=`update:${e}`,p=te(()=>xe(f[`onUpdate:${e}`])),_=te(()=>f[e]===null),b=()=>{o.value!==!0&&(o.value=!0,xe(a)&&a())},v=()=>{o.value!==!1&&(o.value=!1,xe(l)&&l())},c=()=>{if(f.disabled===!0||xe(s)&&!s())return;const S=p.value&&pt;S&&m(g,!0),(_.value||!S)&&b()},u=()=>{if(f.disabled===!0||!pt)return;const S=p.value&&pt;S&&m(g,!1),(_.value||!S)&&v()},d=S=>{!On(S)||(f.disabled&&S?p.value&&m(g,!1):o.value!==S&&(S?b():v()))},y=()=>{o.value?u():c()};return Ie(()=>f[e],d),i&&h.appContext.config.globalProperties.$route!==void 0&&Ie(()=>Se({},h.proxy.$route),()=>{i.value&&o.value&&u()}),lt(()=>{d(f[e])}),{hide:u,show:c,toggle:y}},useModelToggleProps:t,useModelToggleEmits:r}},wT=(e,t,r)=>{const n=i=>{r(i)&&i.stopImmediatePropagation()};let o;Ie(()=>e.value,i=>{i?o=Pr(document,t,n,!0):o==null||o()},{immediate:!0})},c_=(e,t)=>{let r;Ie(()=>e.value,n=>{var o,i;n?(r=document.activeElement,ot(t)&&((i=(o=t.value).focus)==null||i.call(o))):r.focus()})},yf=e=>{if(!e)return{onClick:St,onMousedown:St,onMouseup:St};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 CT(){let e;const t=(n,o)=>{r(),e=window.setTimeout(n,o)},r=()=>window.clearTimeout(e);return El(()=>r()),{registerTimeout:t,cancelTimeout:r}}const ET=e=>{const t=r=>{const n=r;n.key===ze.esc&&(e==null||e(n))};lt(()=>{wl(document,"keydown",t)}),tr(()=>{Cl(document,"keydown",t)})};let Ld;const u_=`el-popper-container-${Jg()}`,f_=`#${u_}`,TT=()=>{const e=document.createElement("div");return e.id=u_,document.body.appendChild(e),e},AT=()=>{bv(()=>{!pt||(!Ld||!document.body.querySelector(f_))&&(Ld=TT())})},LT=qe({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),OT=({showAfter:e,hideAfter:t,open:r,close:n})=>{const{registerTimeout:o}=CT();return{onOpen:()=>{o(()=>{r()},F(e))},onClose:()=>{o(()=>{n()},F(t))}}},h_=Symbol("elForwardRef"),xT=e=>{st(h_,{setForwardRef:r=>{e.value=r}})},RT=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),d_="el",kT="is-",Wn=(e,t,r,n,o)=>{let i=`${e}-${t}`;return r&&(i+=`-${r}`),n&&(i+=`__${n}`),o&&(i+=`--${o}`),i},Je=e=>{const t=di("namespace"),r=te(()=>t.value||d_);return{namespace:r,b:(b="")=>Wn(F(r),e,b,"",""),e:b=>b?Wn(F(r),e,"",b,""):"",m:b=>b?Wn(F(r),e,"","",b):"",be:(b,v)=>b&&v?Wn(F(r),e,b,v,""):"",em:(b,v)=>b&&v?Wn(F(r),e,"",b,v):"",bm:(b,v)=>b&&v?Wn(F(r),e,b,"",v):"",bem:(b,v,c)=>b&&v&&c?Wn(F(r),e,b,v,c):"",is:(b,...v)=>{const c=v.length>=1?v[0]:!0;return b&&c?`${kT}${b}`:""},cssVar:b=>{const v={};for(const c in b)v[`--${r.value}-${c}`]=b[c];return v},cssVarName:b=>`--${r.value}-${b}`,cssVarBlock:b=>{const v={};for(const c in b)v[`--${r.value}-${e}-${c}`]=b[c];return v},cssVarBlockName:b=>`--${r.value}-${e}-${b}`}},Od=oe(0),Zi=()=>{const e=di("zIndex",2e3),t=te(()=>e.value+Od.value);return{initialZIndex:e,currentZIndex:t,nextZIndex:()=>(Od.value++,t.value)}};function MT(e){const t=oe();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 h=i[a-1],f=o.indexOf(h,a-1);f!==-1&&(l=f+1)}e.value.setSelectionRange(l,l)}return[r,n]}var He=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r};const BT=qe({size:{type:Re([Number,String])},color:{type:String}}),PT={name:"ElIcon",inheritAttrs:!1},IT=Ae(Pe(Se({},PT),{props:BT,setup(e){const t=e,r=Je("icon"),n=te(()=>!t.size&&!t.color?{}:{fontSize:Ja(t.size)?void 0:xn(t.size),"--color":t.color});return(o,i)=>(Y(),ve("i",jt({class:F(r).b(),style:F(n)},o.$attrs),[we(o.$slots,"default")],16))}}));var DT=He(IT,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const Et=Ut(DT),FT=["light","dark"],HT=qe({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:lu(tn),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:FT,default:"light"}}),NT={close:e=>e instanceof MouseEvent},$T={name:"ElAlert"},jT=Ae(Pe(Se({},$T),{props:HT,emits:NT,setup(e,{emit:t}){const r=e,{Close:n}=Ll,o=gl(),i=Je("alert"),s=oe(!0),a=te(()=>tn[r.type]||tn.info),l=te(()=>r.description||{[i.is("big")]:o.default}),h=te(()=>r.description||{[i.is("bold")]:o.default}),f=m=>{s.value=!1,t("close",m)};return(m,g)=>(Y(),be(dr,{name:F(i).b("fade")},{default:J(()=>[ht(V("div",{class:ae([F(i).b(),F(i).m(m.type),F(i).is("center",m.center),F(i).is(m.effect)]),role:"alert"},[m.showIcon&&F(a)?(Y(),be(F(Et),{key:0,class:ae([F(i).e("icon"),F(l)])},{default:J(()=>[(Y(),be(kt(F(a))))]),_:1},8,["class"])):Te("v-if",!0),V("div",{class:ae(F(i).e("content"))},[m.title||m.$slots.title?(Y(),ve("span",{key:0,class:ae([F(i).e("title"),F(h)])},[we(m.$slots,"title",{},()=>[Ee(me(m.title),1)])],2)):Te("v-if",!0),m.$slots.default||m.description?(Y(),ve("p",{key:1,class:ae(F(i).e("description"))},[we(m.$slots,"default",{},()=>[Ee(me(m.description),1)])],2)):Te("v-if",!0),m.closable?(Y(),ve(Ye,{key:2},[m.closeText?(Y(),ve("div",{key:0,class:ae([F(i).e("close-btn"),F(i).is("customed")]),onClick:f},me(m.closeText),3)):(Y(),be(F(Et),{key:1,class:ae(F(i).e("close-btn")),onClick:f},{default:J(()=>[Q(F(n))]),_:1},8,["class"]))],2112)):Te("v-if",!0)],2)],2),[[Ht,s.value]])]),_:3},8,["name"]))}}));var UT=He(jT,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const qT=Ut(UT);let vr;const WT=` height:0 !important; visibility:hidden !important; overflow:hidden !important; position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important; `,VT=["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 zT(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:VT.map(s=>`${s}:${t.getPropertyValue(s)}`).join(";"),paddingSize:n,borderSize:o,boxSizing:r}}function xd(e,t=1,r){var n;vr||(vr=document.createElement("textarea"),document.body.appendChild(vr));const{paddingSize:o,borderSize:i,boxSizing:s,contextStyle:a}=zT(e);vr.setAttribute("style",`${a};${WT}`),vr.value=e.value||e.placeholder||"";let l=vr.scrollHeight;const h={};s==="border-box"?l=l+i:s==="content-box"&&(l=l-o),vr.value="";const f=vr.scrollHeight-o;if(Mt(t)){let m=f*t;s==="border-box"&&(m=m+o+i),l=Math.max(m,l),h.minHeight=`${m}px`}if(Mt(r)){let m=f*r;s==="border-box"&&(m=m+o+i),l=Math.min(m,l)}return h.height=`${l}px`,(n=vr.parentNode)==null||n.removeChild(vr),vr=void 0,h}const KT=qe({id:{type:String,default:void 0},size:Ol,disabled:Boolean,modelValue:{type:Re([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Re([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:ai,default:""},prefixIcon:{type:ai,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Re([Object,Array,String]),default:()=>sT({})}}),GT={[ar]:e=>De(e),input:e=>De(e),change:e=>De(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},YT=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder"],JT=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder"],XT={name:"ElInput",inheritAttrs:!1},ZT=Ae(Pe(Se({},XT),{props:KT,emits:GT,setup(e,{expose:t,emit:r}){const n=e,o={suffix:"append",prefix:"prepend"},i=hr(),s=$v(),a=gl(),l=Xg(),{form:h,formItem:f}=mf(),{inputId:m}=s_(n,{formItemContext:f}),g=pi(),p=xl(),_=Je("input"),b=Je("textarea"),v=La(),c=La(),u=oe(!1),d=oe(!1),y=oe(!1),S=oe(!1),w=oe(),C=La(n.inputStyle),T=te(()=>v.value||c.value),L=te(()=>{var G;return(G=h==null?void 0:h.statusIcon)!=null?G:!1}),E=te(()=>(f==null?void 0:f.validateState)||""),A=te(()=>nT[E.value]),M=te(()=>S.value?J5:x5),O=te(()=>[s.style,n.inputStyle]),$=te(()=>[n.inputStyle,C.value,{resize:n.resize}]),D=te(()=>M2(n.modelValue)?"":String(n.modelValue)),R=te(()=>n.clearable&&!p.value&&!n.readonly&&!!D.value&&(u.value||d.value)),B=te(()=>n.showPassword&&!p.value&&!n.readonly&&(!!D.value||u.value)),N=te(()=>n.showWordLimit&&!!l.value.maxlength&&(n.type==="text"||n.type==="textarea")&&!p.value&&!n.readonly&&!n.showPassword),U=te(()=>Array.from(D.value).length),z=te(()=>!!N.value&&U.value>Number(l.value.maxlength)),X=te(()=>!!a.suffix||!!n.suffixIcon||R.value||n.showPassword||N.value||!!E.value&&L.value),[ge,_e]=MT(v);vf(c,G=>{if(!N.value||n.resize!=="both")return;const ue=G[0],{width:ye}=ue.contentRect;w.value={right:`calc(100% - ${ye+15+6}px)`}});const Oe=()=>{const{type:G,autosize:ue}=n;if(!(!pt||G!=="textarea"))if(ue){const ye=Ke(ue)?ue.minRows:void 0,Ce=Ke(ue)?ue.maxRows:void 0;C.value=Se({},xd(c.value,ye,Ce))}else C.value={minHeight:xd(c.value).minHeight}},x=()=>{const G=T.value;!G||G.value===D.value||(G.value=D.value)},q=G=>{const{el:ue}=i.vnode;if(!ue)return;const Ce=Array.from(ue.querySelectorAll(`.${_.e(G)}`)).find(je=>je.parentNode===ue);if(!Ce)return;const Me=o[G];a[Me]?Ce.style.transform=`translateX(${G==="suffix"?"-":""}${ue.querySelector(`.${_.be("group",Me)}`).offsetWidth}px)`:Ce.removeAttribute("style")},k=()=>{q("prefix"),q("suffix")},P=async G=>{ge();let{value:ue}=G.target;n.formatter&&(ue=n.parser?n.parser(ue):ue,ue=n.formatter(ue)),!y.value&&ue!==D.value&&(r(ar,ue),r("input",ue),await Ze(),x(),_e())},I=G=>{r("change",G.target.value)},le=G=>{r("compositionstart",G),y.value=!0},ie=G=>{var ue;r("compositionupdate",G);const ye=(ue=G.target)==null?void 0:ue.value,Ce=ye[ye.length-1]||"";y.value=!oT(Ce)},he=G=>{r("compositionend",G),y.value&&(y.value=!1,P(G))},H=()=>{S.value=!S.value,j()},j=async()=>{var G;await Ze(),(G=T.value)==null||G.focus()},K=()=>{var G;return(G=T.value)==null?void 0:G.blur()},W=G=>{u.value=!0,r("focus",G)},re=G=>{var ue;u.value=!1,r("blur",G),n.validateEvent&&((ue=f==null?void 0:f.validate)==null||ue.call(f,"blur").catch(ye=>void 0))},fe=G=>{d.value=!1,r("mouseleave",G)},pe=G=>{d.value=!0,r("mouseenter",G)},ce=G=>{r("keydown",G)},de=()=>{var G;(G=T.value)==null||G.select()},se=()=>{r(ar,""),r("change",""),r("clear"),r("input","")};return Ie(()=>n.modelValue,()=>{var G;Ze(()=>Oe()),n.validateEvent&&((G=f==null?void 0:f.validate)==null||G.call(f,"change").catch(ue=>void 0))}),Ie(D,()=>x()),Ie(()=>n.type,async()=>{await Ze(),x(),Oe(),k()}),lt(async()=>{!n.formatter&&n.parser,x(),k(),await Ze(),Oe()}),rs(async()=>{await Ze(),k()}),t({input:v,textarea:c,ref:T,textareaStyle:$,autosize:Bt(n,"autosize"),focus:j,blur:K,select:de,clear:se,resizeTextarea:Oe}),(G,ue)=>ht((Y(),ve("div",{class:ae([G.type==="textarea"?F(b).b():F(_).b(),F(_).m(F(g)),F(_).is("disabled",F(p)),F(_).is("exceed",F(z)),{[F(_).b("group")]:G.$slots.prepend||G.$slots.append,[F(_).bm("group","append")]:G.$slots.append,[F(_).bm("group","prepend")]:G.$slots.prepend,[F(_).m("prefix")]:G.$slots.prefix||G.prefixIcon,[F(_).m("suffix")]:G.$slots.suffix||G.suffixIcon||G.clearable||G.showPassword,[F(_).bm("suffix","password-clear")]:F(R)&&F(B)},G.$attrs.class]),style:Qe(F(O)),onMouseenter:pe,onMouseleave:fe},[Te(" input "),G.type!=="textarea"?(Y(),ve(Ye,{key:0},[Te(" prepend slot "),G.$slots.prepend?(Y(),ve("div",{key:0,class:ae(F(_).be("group","prepend"))},[we(G.$slots,"prepend")],2)):Te("v-if",!0),V("div",{class:ae([F(_).e("wrapper"),F(_).is("focus",u.value)])},[Te(" prefix slot "),G.$slots.prefix||G.prefixIcon?(Y(),ve("span",{key:0,class:ae(F(_).e("prefix"))},[V("span",{class:ae(F(_).e("prefix-inner"))},[we(G.$slots,"prefix"),G.prefixIcon?(Y(),be(F(Et),{key:0,class:ae(F(_).e("icon"))},{default:J(()=>[(Y(),be(kt(G.prefixIcon)))]),_:1},8,["class"])):Te("v-if",!0)],2)],2)):Te("v-if",!0),V("input",jt({id:F(m),ref_key:"input",ref:v,class:F(_).e("inner")},F(l),{type:G.showPassword?S.value?"text":"password":G.type,disabled:F(p),formatter:G.formatter,parser:G.parser,readonly:G.readonly,autocomplete:G.autocomplete,tabindex:G.tabindex,"aria-label":G.label,placeholder:G.placeholder,style:G.inputStyle,onCompositionstart:le,onCompositionupdate:ie,onCompositionend:he,onInput:P,onFocus:W,onBlur:re,onChange:I,onKeydown:ce}),null,16,YT),Te(" suffix slot "),F(X)?(Y(),ve("span",{key:1,class:ae(F(_).e("suffix"))},[V("span",{class:ae(F(_).e("suffix-inner"))},[!F(R)||!F(B)||!F(N)?(Y(),ve(Ye,{key:0},[we(G.$slots,"suffix"),G.suffixIcon?(Y(),be(F(Et),{key:0,class:ae(F(_).e("icon"))},{default:J(()=>[(Y(),be(kt(G.suffixIcon)))]),_:1},8,["class"])):Te("v-if",!0)],64)):Te("v-if",!0),F(R)?(Y(),be(F(Et),{key:1,class:ae([F(_).e("icon"),F(_).e("clear")]),onMousedown:ue[0]||(ue[0]=Dt(()=>{},["prevent"])),onClick:se},{default:J(()=>[Q(F(qg))]),_:1},8,["class"])):Te("v-if",!0),F(B)?(Y(),be(F(Et),{key:2,class:ae([F(_).e("icon"),F(_).e("password")]),onClick:H},{default:J(()=>[(Y(),be(kt(F(M))))]),_:1},8,["class"])):Te("v-if",!0),F(N)?(Y(),ve("span",{key:3,class:ae(F(_).e("count"))},[V("span",{class:ae(F(_).e("count-inner"))},me(F(U))+" / "+me(F(l).maxlength),3)],2)):Te("v-if",!0),F(E)&&F(A)&&F(L)?(Y(),be(F(Et),{key:4,class:ae([F(_).e("icon"),F(_).e("validateIcon"),F(_).is("loading",F(E)==="validating")])},{default:J(()=>[(Y(),be(kt(F(A))))]),_:1},8,["class"])):Te("v-if",!0)],2)],2)):Te("v-if",!0)],2),Te(" append slot "),G.$slots.append?(Y(),ve("div",{key:1,class:ae(F(_).be("group","append"))},[we(G.$slots,"append")],2)):Te("v-if",!0)],64)):(Y(),ve(Ye,{key:1},[Te(" textarea "),V("textarea",jt({id:F(m),ref_key:"textarea",ref:c,class:F(b).e("inner")},F(l),{tabindex:G.tabindex,disabled:F(p),readonly:G.readonly,autocomplete:G.autocomplete,style:F($),"aria-label":G.label,placeholder:G.placeholder,onCompositionstart:le,onCompositionupdate:ie,onCompositionend:he,onInput:P,onFocus:W,onBlur:re,onChange:I,onKeydown:ce}),null,16,JT),F(N)?(Y(),ve("span",{key:0,style:Qe(w.value),class:ae(F(_).e("count"))},me(F(U))+" / "+me(F(l).maxlength),7)):Te("v-if",!0)],64))],38)),[[Ht,G.type!=="hidden"]])}}));var QT=He(ZT,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const Qi=Ut(QT),eA={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"}},tA=({move:e,size:t,bar:r})=>({[r.size]:t,transform:`translate${r.axis}(${e}%)`}),rA=qe({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),Rd="Thumb",nA=Ae({name:Rd,props:rA,setup(e){const t=ke(r_),r=Je("scrollbar");t||Tl(Rd,"can not inject scrollbar context");const n=oe(),o=oe(),i=oe({}),s=oe(!1);let a=!1,l=!1,h=pt?document.onselectstart:null;const f=te(()=>eA[e.vertical?"vertical":"horizontal"]),m=te(()=>tA({size:e.size,move:e.move,bar:f.value})),g=te(()=>n.value[f.value.offset]**2/t.wrapElement[f.value.scrollSize]/e.ratio/o.value[f.value.offset]),p=S=>{var w;if(S.stopPropagation(),S.ctrlKey||[1,2].includes(S.button))return;(w=window.getSelection())==null||w.removeAllRanges(),b(S);const C=S.currentTarget;!C||(i.value[f.value.axis]=C[f.value.offset]-(S[f.value.client]-C.getBoundingClientRect()[f.value.direction]))},_=S=>{if(!o.value||!n.value||!t.wrapElement)return;const w=Math.abs(S.target.getBoundingClientRect()[f.value.direction]-S[f.value.client]),C=o.value[f.value.offset]/2,T=(w-C)*100*g.value/n.value[f.value.offset];t.wrapElement[f.value.scroll]=T*t.wrapElement[f.value.scrollSize]/100},b=S=>{S.stopImmediatePropagation(),a=!0,document.addEventListener("mousemove",v),document.addEventListener("mouseup",c),h=document.onselectstart,document.onselectstart=()=>!1},v=S=>{if(!n.value||!o.value||a===!1)return;const w=i.value[f.value.axis];if(!w)return;const C=(n.value.getBoundingClientRect()[f.value.direction]-S[f.value.client])*-1,T=o.value[f.value.offset]-w,L=(C-T)*100*g.value/n.value[f.value.offset];t.wrapElement[f.value.scroll]=L*t.wrapElement[f.value.scrollSize]/100},c=()=>{a=!1,i.value[f.value.axis]=0,document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",c),y(),l&&(s.value=!1)},u=()=>{l=!1,s.value=!!e.size},d=()=>{l=!0,s.value=a};tr(()=>{y(),document.removeEventListener("mouseup",c)});const y=()=>{document.onselectstart!==h&&(document.onselectstart=h)};return Pr(Bt(t,"scrollbarElement"),"mousemove",u),Pr(Bt(t,"scrollbarElement"),"mouseleave",d),{ns:r,instance:n,thumb:o,bar:f,thumbStyle:m,visible:s,clickTrackHandler:_,clickThumbHandler:p}}});function iA(e,t,r,n,o,i){return Y(),be(dr,{name:e.ns.b("fade")},{default:J(()=>[ht(V("div",{ref:"instance",class:ae([e.ns.e("bar"),e.ns.is(e.bar.key)]),onMousedown:t[1]||(t[1]=(...s)=>e.clickTrackHandler&&e.clickTrackHandler(...s))},[V("div",{ref:"thumb",class:ae(e.ns.e("thumb")),style:Qe(e.thumbStyle),onMousedown:t[0]||(t[0]=(...s)=>e.clickThumbHandler&&e.clickThumbHandler(...s))},null,38)],34),[[Ht,e.always||e.visible]])]),_:1},8,["name"])}var oA=He(nA,[["render",iA],["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const sA=qe({always:{type:Boolean,default:!0},width:{type:String,default:""},height:{type:String,default:""},ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),aA=Ae({components:{Thumb:oA},props:sA,setup(e){const t=oe(0),r=oe(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 lA(e,t,r,n,o,i){const s=Be("thumb");return Y(),ve(Ye,null,[Q(s,{move:e.moveX,ratio:e.ratioX,size:e.width,always:e.always},null,8,["move","ratio","size","always"]),Q(s,{move:e.moveY,ratio:e.ratioY,size:e.height,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64)}var cA=He(aA,[["render",lA],["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const uA=qe({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:Re([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}}),fA={scroll:({scrollTop:e,scrollLeft:t})=>Mt(e)&&Mt(t)},hA=Ae({name:"ElScrollbar",components:{Bar:cA},props:uA,emits:fA,setup(e,{emit:t}){const r=Je("scrollbar");let n,o;const i=oe(),s=oe(),a=oe(),l=oe("0"),h=oe("0"),f=oe(),m=oe(0),g=oe(0),p=oe(1),_=oe(1),b=4,v=te(()=>{const w={};return e.height&&(w.height=xn(e.height)),e.maxHeight&&(w.maxHeight=xn(e.maxHeight)),[e.wrapStyle,w]}),c=()=>{var w;s.value&&((w=f.value)==null||w.handleScroll(s.value),t("scroll",{scrollTop:s.value.scrollTop,scrollLeft:s.value.scrollLeft}))};function u(w,C){Ke(w)?s.value.scrollTo(w):Mt(w)&&Mt(C)&&s.value.scrollTo(w,C)}const d=w=>{!Mt(w)||(s.value.scrollTop=w)},y=w=>{!Mt(w)||(s.value.scrollLeft=w)},S=()=>{if(!s.value)return;const w=s.value.offsetHeight-b,C=s.value.offsetWidth-b,T=w**2/s.value.scrollHeight,L=C**2/s.value.scrollWidth,E=Math.max(T,e.minSize),A=Math.max(L,e.minSize);p.value=T/(w-T)/(E/(w-E)),_.value=L/(C-L)/(A/(C-A)),h.value=E+be.noresize,w=>{w?(n==null||n(),o==null||o()):({stop:n}=vf(a,S),o=Pr("resize",S))},{immediate:!0}),Ie(()=>[e.maxHeight,e.height],()=>{e.native||Ze(()=>{var w;S(),s.value&&((w=f.value)==null||w.handleScroll(s.value))})}),st(r_,fr({scrollbarElement:i,wrapElement:s})),lt(()=>{e.native||Ze(()=>S())}),rs(()=>S()),{ns:r,scrollbar$:i,wrap$:s,resize$:a,barRef:f,moveX:m,moveY:g,ratioX:_,ratioY:p,sizeWidth:l,sizeHeight:h,style:v,update:S,handleScroll:c,scrollTo:u,setScrollTop:d,setScrollLeft:y}}});function dA(e,t,r,n,o,i){const s=Be("bar");return Y(),ve("div",{ref:"scrollbar$",class:ae(e.ns.b())},[V("div",{ref:"wrap$",class:ae([e.wrapClass,e.ns.e("wrap"),{[e.ns.em("wrap","hidden-default")]:!e.native}]),style:Qe(e.style),onScroll:t[0]||(t[0]=(...a)=>e.handleScroll&&e.handleScroll(...a))},[(Y(),be(kt(e.tag),{ref:"resize$",class:ae([e.ns.e("view"),e.viewClass]),style:Qe(e.viewStyle)},{default:J(()=>[we(e.$slots,"default")]),_:3},8,["class","style"]))],38),e.native?Te("v-if",!0):(Y(),be(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 pA=He(hA,[["render",dA],["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const p_=Ut(pA),vA={name:"ElPopperRoot",inheritAttrs:!1},gA=Ae(Pe(Se({},vA),{setup(e,{expose:t}){const r=oe(),n=oe(),o=oe(),i=oe(),s={triggerRef:r,popperInstanceRef:n,contentRef:o,referenceRef:i};return t(s),st(_f,s),(a,l)=>we(a.$slots,"default")}}));var _A=He(gA,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const v_=qe({arrowOffset:{type:Number,default:5}}),mA={name:"ElPopperArrow",inheritAttrs:!1},yA=Ae(Pe(Se({},mA),{props:v_,setup(e,{expose:t}){const r=e,n=Je("popper"),{arrowOffset:o,arrowRef:i}=ke(n_,void 0);return Ie(()=>r.arrowOffset,s=>{o.value=s}),tr(()=>{i.value=void 0}),t({arrowRef:i}),(s,a)=>(Y(),ve("span",{ref_key:"arrowRef",ref:i,class:ae(F(n).e("arrow")),"data-popper-arrow":""},null,2))}}));var bA=He(yA,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const SA="ElOnlyChild",wA=Ae({name:SA,setup(e,{slots:t,attrs:r}){var n;const o=ke(h_),i=RT((n=o==null?void 0:o.setForwardRef)!=null?n:St);return()=>{var s;const a=(s=t.default)==null?void 0:s.call(t,r);if(!a||a.length>1)return null;const l=g_(a);return l?ht(Qr(l,r),[[i]]):null}}});function g_(e){if(!e)return null;const t=e;for(const r of t){if(Ke(r))switch(r.type){case Qt:continue;case ns:return Sc(r);case"svg":return Sc(r);case Ye:return g_(r.children);default:return r}return Sc(r)}return null}function Sc(e){return Q("span",{class:"el-only-child__content"},[e])}const __=qe({virtualRef:{type:Re(Object)},virtualTriggering:Boolean,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,onBlur:Function,onContextmenu:Function,id:String,open:Boolean}),CA={name:"ElPopperTrigger",inheritAttrs:!1},EA=Ae(Pe(Se({},CA),{props:__,setup(e,{expose:t}){const r=e,{triggerRef:n}=ke(_f,void 0);return xT(n),lt(()=>{Ie(()=>r.virtualRef,o=>{o&&(n.value=ii(o))},{immediate:!0}),Ie(()=>n.value,(o,i)=>{Ko(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?Te("v-if",!0):(Y(),be(F(wA),jt({key:0},o.$attrs,{"aria-describedby":o.open?o.id:void 0}),{default:J(()=>[we(o.$slots,"default")]),_:3},16,["aria-describedby"]))}}));var TA=He(EA,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]),Nt="top",cr="bottom",ur="right",$t="left",bf="auto",os=[Nt,cr,ur,$t],$i="start",Yo="end",AA="clippingParents",m_="viewport",ho="popper",LA="reference",kd=os.reduce(function(e,t){return e.concat([t+"-"+$i,t+"-"+Yo])},[]),Sf=[].concat(os,[bf]).reduce(function(e,t){return e.concat([t,t+"-"+$i,t+"-"+Yo])},[]),OA="beforeRead",xA="read",RA="afterRead",kA="beforeMain",MA="main",BA="afterMain",PA="beforeWrite",IA="write",DA="afterWrite",FA=[OA,xA,RA,kA,MA,BA,PA,IA,DA];function Nr(e){return e?(e.nodeName||"").toLowerCase():null}function Er(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ji(e){var t=Er(e).Element;return e instanceof t||e instanceof Element}function lr(e){var t=Er(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function wf(e){if(typeof ShadowRoot=="undefined")return!1;var t=Er(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function HA(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)||!Nr(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 NA(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,h){return l[h]="",l},{});!lr(o)||!Nr(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}var y_={name:"applyStyles",enabled:!0,phase:"write",fn:HA,effect:NA,requires:["computeStyles"]};function Ir(e){return e.split("-")[0]}var oi=Math.max,Za=Math.min,Ui=Math.round;function qi(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=Ui(r.width)/s||1),i>0&&(o=Ui(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 Cf(e){var t=qi(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 b_(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&wf(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function rn(e){return Er(e).getComputedStyle(e)}function $A(e){return["table","td","th"].indexOf(Nr(e))>=0}function kn(e){return((ji(e)?e.ownerDocument:e.document)||window.document).documentElement}function kl(e){return Nr(e)==="html"?e:e.assignedSlot||e.parentNode||(wf(e)?e.host:null)||kn(e)}function Md(e){return!lr(e)||rn(e).position==="fixed"?null:e.offsetParent}function jA(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&lr(e)){var n=rn(e);if(n.position==="fixed")return null}var o=kl(e);for(wf(o)&&(o=o.host);lr(o)&&["html","body"].indexOf(Nr(o))<0;){var i=rn(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 ss(e){for(var t=Er(e),r=Md(e);r&&$A(r)&&rn(r).position==="static";)r=Md(r);return r&&(Nr(r)==="html"||Nr(r)==="body"&&rn(r).position==="static")?t:r||jA(e)||t}function Ef(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function xo(e,t,r){return oi(e,Za(t,r))}function UA(e,t,r){var n=xo(e,t,r);return n>r?r:n}function S_(){return{top:0,right:0,bottom:0,left:0}}function w_(e){return Object.assign({},S_(),e)}function C_(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var qA=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,w_(typeof e!="number"?e:C_(e,os))};function WA(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,s=r.modifiersData.popperOffsets,a=Ir(r.placement),l=Ef(a),h=[$t,ur].indexOf(a)>=0,f=h?"height":"width";if(!(!i||!s)){var m=qA(o.padding,r),g=Cf(i),p=l==="y"?Nt:$t,_=l==="y"?cr:ur,b=r.rects.reference[f]+r.rects.reference[l]-s[l]-r.rects.popper[f],v=s[l]-r.rects.reference[l],c=ss(i),u=c?l==="y"?c.clientHeight||0:c.clientWidth||0:0,d=b/2-v/2,y=m[p],S=u-g[f]-m[_],w=u/2-g[f]/2+d,C=xo(y,w,S),T=l;r.modifiersData[n]=(t={},t[T]=C,t.centerOffset=C-w,t)}}function VA(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)||!b_(t.elements.popper,o)||(t.elements.arrow=o))}var zA={name:"arrow",enabled:!0,phase:"main",fn:WA,effect:VA,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Wi(e){return e.split("-")[1]}var KA={top:"auto",right:"auto",bottom:"auto",left:"auto"};function GA(e){var t=e.x,r=e.y,n=window,o=n.devicePixelRatio||1;return{x:Ui(t*o)/o||0,y:Ui(r*o)/o||0}}function Bd(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,h=e.adaptive,f=e.roundOffsets,m=e.isFixed,g=s.x,p=g===void 0?0:g,_=s.y,b=_===void 0?0:_,v=typeof f=="function"?f({x:p,y:b}):{x:p,y:b};p=v.x,b=v.y;var c=s.hasOwnProperty("x"),u=s.hasOwnProperty("y"),d=$t,y=Nt,S=window;if(h){var w=ss(r),C="clientHeight",T="clientWidth";if(w===Er(r)&&(w=kn(r),rn(w).position!=="static"&&a==="absolute"&&(C="scrollHeight",T="scrollWidth")),w=w,o===Nt||(o===$t||o===ur)&&i===Yo){y=cr;var L=m&&w===S&&S.visualViewport?S.visualViewport.height:w[C];b-=L-n.height,b*=l?1:-1}if(o===$t||(o===Nt||o===cr)&&i===Yo){d=ur;var E=m&&w===S&&S.visualViewport?S.visualViewport.width:w[T];p-=E-n.width,p*=l?1:-1}}var A=Object.assign({position:a},h&&KA),M=f===!0?GA({x:p,y:b}):{x:p,y:b};if(p=M.x,b=M.y,l){var O;return Object.assign({},A,(O={},O[y]=u?"0":"",O[d]=c?"0":"",O.transform=(S.devicePixelRatio||1)<=1?"translate("+p+"px, "+b+"px)":"translate3d("+p+"px, "+b+"px, 0)",O))}return Object.assign({},A,(t={},t[y]=u?b+"px":"",t[d]=c?p+"px":"",t.transform="",t))}function YA(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,h={placement:Ir(t.placement),variation:Wi(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,Bd(Object.assign({},h,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Bd(Object.assign({},h,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var E_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:YA,data:{}},ua={passive:!0};function JA(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=Er(t.elements.popper),h=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&h.forEach(function(f){f.addEventListener("scroll",r.update,ua)}),a&&l.addEventListener("resize",r.update,ua),function(){i&&h.forEach(function(f){f.removeEventListener("scroll",r.update,ua)}),a&&l.removeEventListener("resize",r.update,ua)}}var T_={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:JA,data:{}},XA={left:"right",right:"left",bottom:"top",top:"bottom"};function ka(e){return e.replace(/left|right|bottom|top/g,function(t){return XA[t]})}var ZA={start:"end",end:"start"};function Pd(e){return e.replace(/start|end/g,function(t){return ZA[t]})}function Tf(e){var t=Er(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Af(e){return qi(kn(e)).left+Tf(e).scrollLeft}function QA(e){var t=Er(e),r=kn(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+Af(e),y:a}}function eL(e){var t,r=kn(e),n=Tf(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=oi(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=oi(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+Af(e),l=-n.scrollTop;return rn(o||r).direction==="rtl"&&(a+=oi(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function Lf(e){var t=rn(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function A_(e){return["html","body","#document"].indexOf(Nr(e))>=0?e.ownerDocument.body:lr(e)&&Lf(e)?e:A_(kl(e))}function Ro(e,t){var r;t===void 0&&(t=[]);var n=A_(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=Er(n),s=o?[i].concat(i.visualViewport||[],Lf(n)?n:[]):n,a=t.concat(s);return o?a:a.concat(Ro(kl(s)))}function fu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function tL(e){var t=qi(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 Id(e,t){return t===m_?fu(QA(e)):ji(t)?tL(t):fu(eL(kn(e)))}function rL(e){var t=Ro(kl(e)),r=["absolute","fixed"].indexOf(rn(e).position)>=0,n=r&&lr(e)?ss(e):e;return ji(n)?t.filter(function(o){return ji(o)&&b_(o,n)&&Nr(o)!=="body"}):[]}function nL(e,t,r){var n=t==="clippingParents"?rL(e):[].concat(t),o=[].concat(n,[r]),i=o[0],s=o.reduce(function(a,l){var h=Id(e,l);return a.top=oi(h.top,a.top),a.right=Za(h.right,a.right),a.bottom=Za(h.bottom,a.bottom),a.left=oi(h.left,a.left),a},Id(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 L_(e){var t=e.reference,r=e.element,n=e.placement,o=n?Ir(n):null,i=n?Wi(n):null,s=t.x+t.width/2-r.width/2,a=t.y+t.height/2-r.height/2,l;switch(o){case Nt:l={x:s,y:t.y-r.height};break;case cr:l={x:s,y:t.y+t.height};break;case ur:l={x:t.x+t.width,y:a};break;case $t:l={x:t.x-r.width,y:a};break;default:l={x:t.x,y:t.y}}var h=o?Ef(o):null;if(h!=null){var f=h==="y"?"height":"width";switch(i){case $i:l[h]=l[h]-(t[f]/2-r[f]/2);break;case Yo:l[h]=l[h]+(t[f]/2-r[f]/2);break}}return l}function Jo(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?AA:i,a=r.rootBoundary,l=a===void 0?m_:a,h=r.elementContext,f=h===void 0?ho:h,m=r.altBoundary,g=m===void 0?!1:m,p=r.padding,_=p===void 0?0:p,b=w_(typeof _!="number"?_:C_(_,os)),v=f===ho?LA:ho,c=e.rects.popper,u=e.elements[g?v:f],d=nL(ji(u)?u:u.contextElement||kn(e.elements.popper),s,l),y=qi(e.elements.reference),S=L_({reference:y,element:c,strategy:"absolute",placement:o}),w=fu(Object.assign({},c,S)),C=f===ho?w:y,T={top:d.top-C.top+b.top,bottom:C.bottom-d.bottom+b.bottom,left:d.left-C.left+b.left,right:C.right-d.right+b.right},L=e.modifiersData.offset;if(f===ho&&L){var E=L[o];Object.keys(T).forEach(function(A){var M=[ur,cr].indexOf(A)>=0?1:-1,O=[Nt,cr].indexOf(A)>=0?"y":"x";T[A]+=E[O]*M})}return T}function iL(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,h=l===void 0?Sf:l,f=Wi(n),m=f?a?kd:kd.filter(function(_){return Wi(_)===f}):os,g=m.filter(function(_){return h.indexOf(_)>=0});g.length===0&&(g=m);var p=g.reduce(function(_,b){return _[b]=Jo(e,{placement:b,boundary:o,rootBoundary:i,padding:s})[Ir(b)],_},{});return Object.keys(p).sort(function(_,b){return p[_]-p[b]})}function oL(e){if(Ir(e)===bf)return[];var t=ka(e);return[Pd(e),t,Pd(t)]}function sL(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,h=r.padding,f=r.boundary,m=r.rootBoundary,g=r.altBoundary,p=r.flipVariations,_=p===void 0?!0:p,b=r.allowedAutoPlacements,v=t.options.placement,c=Ir(v),u=c===v,d=l||(u||!_?[ka(v)]:oL(v)),y=[v].concat(d).reduce(function(Oe,x){return Oe.concat(Ir(x)===bf?iL(t,{placement:x,boundary:f,rootBoundary:m,padding:h,flipVariations:_,allowedAutoPlacements:b}):x)},[]),S=t.rects.reference,w=t.rects.popper,C=new Map,T=!0,L=y[0],E=0;E=0,D=$?"width":"height",R=Jo(t,{placement:A,boundary:f,rootBoundary:m,altBoundary:g,padding:h}),B=$?O?ur:$t:O?cr:Nt;S[D]>w[D]&&(B=ka(B));var N=ka(B),U=[];if(i&&U.push(R[M]<=0),a&&U.push(R[B]<=0,R[N]<=0),U.every(function(Oe){return Oe})){L=A,T=!1;break}C.set(A,U)}if(T)for(var z=_?3:1,X=function(Oe){var x=y.find(function(q){var k=C.get(q);if(k)return k.slice(0,Oe).every(function(P){return P})});if(x)return L=x,"break"},ge=z;ge>0;ge--){var _e=X(ge);if(_e==="break")break}t.placement!==L&&(t.modifiersData[n]._skip=!0,t.placement=L,t.reset=!0)}}var aL={name:"flip",enabled:!0,phase:"main",fn:sL,requiresIfExists:["offset"],data:{_skip:!1}};function Dd(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 Fd(e){return[Nt,ur,cr,$t].some(function(t){return e[t]>=0})}function lL(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Jo(t,{elementContext:"reference"}),a=Jo(t,{altBoundary:!0}),l=Dd(s,n),h=Dd(a,o,i),f=Fd(l),m=Fd(h);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:h,isReferenceHidden:f,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":m})}var cL={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:lL};function uL(e,t,r){var n=Ir(e),o=[$t,Nt].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,[$t,ur].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function fL(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,s=Sf.reduce(function(f,m){return f[m]=uL(m,t.rects,i),f},{}),a=s[t.placement],l=a.x,h=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=h),t.modifiersData[n]=s}var hL={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:fL};function dL(e){var t=e.state,r=e.name;t.modifiersData[r]=L_({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var O_={name:"popperOffsets",enabled:!0,phase:"read",fn:dL,data:{}};function pL(e){return e==="x"?"y":"x"}function vL(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,h=r.rootBoundary,f=r.altBoundary,m=r.padding,g=r.tether,p=g===void 0?!0:g,_=r.tetherOffset,b=_===void 0?0:_,v=Jo(t,{boundary:l,rootBoundary:h,padding:m,altBoundary:f}),c=Ir(t.placement),u=Wi(t.placement),d=!u,y=Ef(c),S=pL(y),w=t.modifiersData.popperOffsets,C=t.rects.reference,T=t.rects.popper,L=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,E=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(w){if(i){var O,$=y==="y"?Nt:$t,D=y==="y"?cr:ur,R=y==="y"?"height":"width",B=w[y],N=B+v[$],U=B-v[D],z=p?-T[R]/2:0,X=u===$i?C[R]:T[R],ge=u===$i?-T[R]:-C[R],_e=t.elements.arrow,Oe=p&&_e?Cf(_e):{width:0,height:0},x=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:S_(),q=x[$],k=x[D],P=xo(0,C[R],Oe[R]),I=d?C[R]/2-z-P-q-E.mainAxis:X-P-q-E.mainAxis,le=d?-C[R]/2+z+P+k+E.mainAxis:ge+P+k+E.mainAxis,ie=t.elements.arrow&&ss(t.elements.arrow),he=ie?y==="y"?ie.clientTop||0:ie.clientLeft||0:0,H=(O=A==null?void 0:A[y])!=null?O:0,j=B+I-H-he,K=B+le-H,W=xo(p?Za(N,j):N,B,p?oi(U,K):U);w[y]=W,M[y]=W-B}if(a){var re,fe=y==="x"?Nt:$t,pe=y==="x"?cr:ur,ce=w[S],de=S==="y"?"height":"width",se=ce+v[fe],G=ce-v[pe],ue=[Nt,$t].indexOf(c)!==-1,ye=(re=A==null?void 0:A[S])!=null?re:0,Ce=ue?se:ce-C[de]-T[de]-ye+E.altAxis,Me=ue?ce+C[de]+T[de]-ye-E.altAxis:G,je=p&&ue?UA(Ce,ce,Me):xo(p?Ce:se,ce,p?Me:G);w[S]=je,M[S]=je-ce}t.modifiersData[n]=M}}var gL={name:"preventOverflow",enabled:!0,phase:"main",fn:vL,requiresIfExists:["offset"]};function _L(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function mL(e){return e===Er(e)||!lr(e)?Tf(e):_L(e)}function yL(e){var t=e.getBoundingClientRect(),r=Ui(t.width)/e.offsetWidth||1,n=Ui(t.height)/e.offsetHeight||1;return r!==1||n!==1}function bL(e,t,r){r===void 0&&(r=!1);var n=lr(t),o=lr(t)&&yL(t),i=kn(t),s=qi(e,o),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Nr(t)!=="body"||Lf(i))&&(a=mL(t)),lr(t)?(l=qi(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Af(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function SL(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 wL(e){var t=SL(e);return FA.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function CL(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function EL(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 Hd={placement:"bottom",modifiers:[],strategy:"absolute"};function Nd(){for(var e=arguments.length,t=new Array(e),r=0;r[]},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Sf,default:"bottom"},popperOptions:{type:Re(Object),default:()=>({})},strategy:{type:String,values:OL,default:"absolute"}}),x_=qe(Pe(Se({},xL),{style:{type:Re([String,Array,Object])},className:{type:Re([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,popperClass:{type:Re([String,Array,Object])},popperStyle:{type:Re([String,Array,Object])},referenceEl:{type:Re(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},zIndex:Number})),$d=(e,t)=>{const{placement:r,strategy:n,popperOptions:o}=e,i=Pe(Se({placement:r,strategy:n},o),{modifiers:kL(e)});return ML(i,t),BL(i,o==null?void 0:o.modifiers),i},RL=e=>{if(!!pt)return ii(e)};function kL(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 ML(e,{arrowEl:t,arrowOffset:r}){e.modifiers.push({name:"arrow",options:{element:t,padding:r!=null?r:5}})}function BL(e,t){t&&(e.modifiers=[...e.modifiers,...t!=null?t:[]])}const PL={name:"ElPopperContent"},IL=Ae(Pe(Se({},PL),{props:x_,emits:["mouseenter","mouseleave"],setup(e,{expose:t}){const r=e,{popperInstanceRef:n,contentRef:o,triggerRef:i}=ke(_f,void 0),s=ke(li,void 0),{nextZIndex:a}=Zi(),l=Je("popper"),h=oe(),f=oe(),m=oe();st(n_,{arrowRef:f,arrowOffset:m}),st(li,Pe(Se({},s),{addInputId:()=>{},removeInputId:()=>{}}));const g=oe(r.zIndex||a()),p=te(()=>RL(r.referenceEl)||F(i)),_=te(()=>[{zIndex:F(g)},r.popperStyle]),b=te(()=>[l.b(),l.is("pure",r.pure),l.is(r.effect),r.popperClass]),v=({referenceEl:d,popperContentEl:y,arrowEl:S})=>{const w=$d(r,{arrowEl:S,arrowOffset:F(m)});return LL(d,y,w)},c=(d=!0)=>{var y;(y=F(n))==null||y.update(),d&&(g.value=r.zIndex||a())},u=()=>{var d,y;const S={name:"eventListeners",enabled:r.visible};(y=(d=F(n))==null?void 0:d.setOptions)==null||y.call(d,w=>Pe(Se({},w),{modifiers:[...w.modifiers||[],S]})),c(!1)};return lt(()=>{let d;Ie(p,y=>{var S;d==null||d();const w=F(n);if((S=w==null?void 0:w.destroy)==null||S.call(w),y){const C=F(h);o.value=C,n.value=v({referenceEl:y,popperContentEl:C,arrowEl:F(f)}),d=Ie(()=>y.getBoundingClientRect(),()=>c(),{immediate:!0})}else n.value=void 0},{immediate:!0}),Ie(()=>r.visible,u,{immediate:!0}),Ie(()=>$d(r,{arrowEl:F(f),arrowOffset:F(m)}),y=>{var S;return(S=n.value)==null?void 0:S.setOptions(y)})}),t({popperContentRef:h,popperInstanceRef:n,updatePopper:c,contentStyle:_}),(d,y)=>(Y(),ve("div",{ref_key:"popperContentRef",ref:h,style:Qe(F(_)),class:ae(F(b)),role:"tooltip",onMouseenter:y[0]||(y[0]=S=>d.$emit("mouseenter",S)),onMouseleave:y[1]||(y[1]=S=>d.$emit("mouseleave",S))},[we(d.$slots,"default")],38))}}));var DL=He(IL,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const FL=Ut(_A),HL=Ae({name:"ElVisuallyHidden",props:{style:{type:[String,Object,Array]}},setup(e){return{computedStyle:te(()=>[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 NL(e,t,r,n,o,i){return Y(),ve("span",jt(e.$attrs,{style:e.computedStyle}),[we(e.$slots,"default")],16)}var $L=He(HL,[["render",NL],["__file","/home/runner/work/element-plus/element-plus/packages/components/visual-hidden/src/visual-hidden.vue"]]);const ir=qe(Pe(Se(Se({},LT),x_),{appendTo:{type:Re([String,Object]),default:f_},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Re(Boolean),default:null},transition:{type:String,default:"el-fade-in-linear"},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}})),Xo=qe(Pe(Se({},__),{disabled:Boolean,trigger:{type:Re([String,Array]),default:"hover"}})),jL=qe({openDelay:{type:Number},visibleArrow:{type:Boolean,default:void 0},hideAfter:{type:Number,default:200},showArrow:{type:Boolean,default:!0}}),xf=Symbol("elTooltip"),UL=Ae({name:"ElTooltipContent",components:{ElPopperContent:DL,ElVisuallyHidden:$L},inheritAttrs:!1,props:ir,setup(e){const t=oe(null),r=oe(!1),n=oe(!1),o=oe(!1),i=oe(!1),{controlled:s,id:a,open:l,trigger:h,onClose:f,onOpen:m,onShow:g,onHide:p,onBeforeShow:_,onBeforeHide:b}=ke(xf,void 0),v=te(()=>e.persistent);tr(()=>{i.value=!0});const c=te(()=>F(v)?!0:F(l)),u=te(()=>e.disabled?!1:F(l)),d=te(()=>{var O;return(O=e.style)!=null?O:{}}),y=te(()=>!F(l));ET(f);const S=()=>{p()},w=()=>{if(F(s))return!0},C=ft(w,()=>{e.enterable&&F(h)==="hover"&&m()}),T=ft(w,()=>{F(h)==="hover"&&f()}),L=()=>{var O,$;($=(O=t.value)==null?void 0:O.updatePopper)==null||$.call(O),_==null||_()},E=()=>{b==null||b()},A=()=>{g()};let M;return Ie(()=>F(l),O=>{O?M=$g(te(()=>{var $;return($=t.value)==null?void 0:$.popperContentRef}),()=>{if(F(s))return;F(h)!=="hover"&&f()}):M==null||M()},{flush:"post"}),{ariaHidden:y,entering:n,leaving:o,id:a,intermediateOpen:r,contentStyle:d,contentRef:t,destroyed:i,shouldRender:c,shouldShow:u,open:l,onAfterShow:A,onBeforeEnter:L,onBeforeLeave:E,onContentEnter:C,onContentLeave:T,onTransitionLeave:S}}});function qL(e,t,r,n,o,i){const s=Be("el-visually-hidden"),a=Be("el-popper-content");return Y(),be(kv,{disabled:!e.teleported,to:e.appendTo},[Q(dr,{name:e.transition,onAfterLeave:e.onTransitionLeave,onBeforeEnter:e.onBeforeEnter,onAfterEnter:e.onAfterShow,onBeforeLeave:e.onBeforeLeave},{default:J(()=>[e.shouldRender?ht((Y(),be(a,jt({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:J(()=>[Te(" Workaround bug #6378 "),e.destroyed?Te("v-if",!0):(Y(),ve(Ye,{key:0},[we(e.$slots,"default"),Q(s,{id:e.id,role:"tooltip"},{default:J(()=>[Ee(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"])),[[Ht,e.shouldShow]]):Te("v-if",!0)]),_:3},8,["name","onAfterLeave","onBeforeEnter","onAfterEnter","onBeforeLeave"])],8,["disabled","to"])}var WL=He(UL,[["render",qL],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const VL=(e,t)=>Le(e)?e.includes(t):e===t,bi=(e,t,r)=>n=>{VL(F(e),t)&&r(n)},zL=Ae({name:"ElTooltipTrigger",components:{ElPopperTrigger:TA},props:Xo,setup(e){const t=Je("tooltip"),{controlled:r,id:n,open:o,onOpen:i,onClose:s,onToggle:a}=ke(xf,void 0),l=oe(null),h=()=>{if(F(r)||e.disabled)return!0},f=Bt(e,"trigger"),m=ft(h,bi(f,"hover",i)),g=ft(h,bi(f,"hover",s)),p=ft(h,bi(f,"click",u=>{u.button===0&&a(u)})),_=ft(h,bi(f,"focus",i)),b=ft(h,bi(f,"focus",s)),v=ft(h,bi(f,"contextmenu",u=>{u.preventDefault(),a(u)})),c=ft(h,u=>{const{code:d}=u;(d===ze.enter||d===ze.space)&&a(u)});return{onBlur:b,onContextMenu:v,onFocus:_,onMouseenter:m,onMouseleave:g,onClick:p,onKeydown:c,open:o,id:n,triggerRef:l,ns:t}}});function KL(e,t,r,n,o,i){const s=Be("el-popper-trigger");return Y(),be(s,{id:e.id,"virtual-ref":e.virtualRef,open:e.open,"virtual-triggering":e.virtualTriggering,class:ae(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:J(()=>[we(e.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"])}var GL=He(zL,[["render",KL],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const{useModelToggleProps:YL,useModelToggle:JL,useModelToggleEmits:XL}=ST("visible"),ZL=Ae({name:"ElTooltip",components:{ElPopper:FL,ElPopperArrow:bA,ElTooltipContent:WL,ElTooltipTrigger:GL},props:Se(Se(Se(Se(Se({},YL),ir),Xo),v_),jL),emits:[...XL,"before-show","before-hide","show","hide"],setup(e,{emit:t}){AT();const r=te(()=>(Ja(e.openDelay),e.openDelay||e.showAfter)),n=te(()=>(Ja(e.visibleArrow),On(e.visibleArrow)?e.visibleArrow:e.showArrow)),o=Rl(),i=oe(null),s=()=>{var p;const _=F(i);_&&((p=_.popperInstanceRef)==null||p.update())},a=oe(!1),{show:l,hide:h}=JL({indicator:a}),{onOpen:f,onClose:m}=OT({showAfter:r,hideAfter:Bt(e,"hideAfter"),open:l,close:h}),g=te(()=>On(e.visible));return st(xf,{controlled:g,id:o,open:sl(a),trigger:Bt(e,"trigger"),onOpen:f,onClose:m,onToggle:()=>{F(a)?m():f()},onShow:()=>{t("show")},onHide:()=>{t("hide")},onBeforeShow:()=>{t("before-show")},onBeforeHide:()=>{t("before-hide")},updatePopper:s}),Ie(()=>e.disabled,p=>{p&&a.value&&(a.value=!1)}),{compatShowAfter:r,compatShowArrow:n,popperRef:i,open:a,hide:h,updatePopper:s,onOpen:f,onClose:m}}}),QL=["innerHTML"],eO={key:1};function tO(e,t,r,n,o,i){const s=Be("el-tooltip-trigger"),a=Be("el-popper-arrow"),l=Be("el-tooltip-content"),h=Be("el-popper");return Y(),be(h,{ref:"popperRef"},{default:J(()=>[Q(s,{disabled:e.disabled,trigger:e.trigger,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:J(()=>[e.$slots.default?we(e.$slots,"default",{key:0}):Te("v-if",!0)]),_:3},8,["disabled","trigger","virtual-ref","virtual-triggering"]),Q(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:J(()=>[we(e.$slots,"content",{},()=>[e.rawContent?(Y(),ve("span",{key:0,innerHTML:e.content},null,8,QL)):(Y(),ve("span",eO,me(e.content),1))]),e.compatShowArrow?(Y(),be(a,{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):Te("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 rO=He(ZL,[["render",tO],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Rf=Ut(rO),nO=qe({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:Re(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:Re([Function,Array]),default:St},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:ir.teleported,highlightFirstItem:{type:Boolean,default:!1}}),iO={[ar]:e=>De(e),input:e=>De(e),change:e=>De(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>Ke(e)},oO=["aria-expanded","aria-owns"],sO={key:0},aO=["id","aria-selected","onClick"],lO={name:"ElAutocomplete",inheritAttrs:!1},cO=Ae(Pe(Se({},lO),{props:nO,emits:iO,setup(e,{expose:t,emit:r}){const n=e,o="ElAutocomplete",i=Je("autocomplete");let s=!1;const a=Xg(),l=$v(),h=oe([]),f=oe(-1),m=oe(""),g=oe(!1),p=oe(!1),_=oe(!1),b=oe(),v=oe(),c=oe(),u=oe(),d=te(()=>i.b(String(Jg()))),y=te(()=>l.style),S=te(()=>(Le(h.value)&&h.value.length>0||_.value)&&g.value),w=te(()=>!n.hideLoading&&_.value),C=()=>{Ze(()=>{S.value&&(m.value=`${b.value.$el.offsetWidth}px`)})},L=R2(async z=>{if(p.value)return;_.value=!0;const X=ge=>{_.value=!1,!p.value&&(Le(ge)?(h.value=ge,f.value=n.highlightFirstItem?0:-1):Tl(o,"autocomplete suggestions must be an array"))};if(Le(n.fetchSuggestions))X(n.fetchSuggestions);else{const ge=await n.fetchSuggestions(z,X);Le(ge)&&X(ge)}},n.debounce),E=z=>{const X=Boolean(z);if(r("input",z),r(ar,z),p.value=!1,g.value||(g.value=s&&X),!n.triggerOnFocus&&!z){p.value=!0,h.value=[];return}s&&X&&(s=!1),L(z)},A=z=>{r("change",z)},M=z=>{g.value=!0,r("focus",z),n.triggerOnFocus&&L(String(n.modelValue))},O=z=>{r("blur",z)},$=()=>{g.value=!1,s=!0,r(ar,""),r("clear")},D=()=>{S.value&&f.value>=0&&f.value{h.value=[],f.value=-1}))},R=()=>{g.value=!1},B=()=>{var z;(z=b.value)==null||z.focus()},N=z=>{r("input",z[n.valueKey]),r(ar,z[n.valueKey]),r("select",z),Ze(()=>{h.value=[],f.value=-1})},U=z=>{if(!S.value||_.value)return;if(z<0){f.value=-1;return}z>=h.value.length&&(z=h.value.length-1);const X=v.value.querySelector(`.${i.be("suggestion","wrap")}`),_e=X.querySelectorAll(`.${i.be("suggestion","list")} li`)[z],Oe=X.scrollTop,{offsetTop:x,scrollHeight:q}=_e;x+q>Oe+X.clientHeight&&(X.scrollTop+=q),x{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",`${d.value}-item-${f.value}`)}),t({highlightedIndex:f,activated:g,loading:_,inputRef:b,popperRef:c,suggestions:h,handleSelect:N,handleKeyEnter:D,focus:B,close:R,highlight:U}),(z,X)=>(Y(),be(F(Rf),{ref_key:"popperRef",ref:c,visible:F(S),"onUpdate:visible":X[2]||(X[2]=ge=>ot(S)?S.value=ge:null),placement:z.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[F(i).e("popper"),z.popperClass],teleported:z.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${F(i).namespace.value}-zoom-in-top`,persistent:"",onBeforeShow:C},{content:J(()=>[V("div",{ref_key:"regionRef",ref:v,class:ae([F(i).b("suggestion"),F(i).is("loading",F(w))]),style:Qe({minWidth:m.value,outline:"none"}),role:"region"},[Q(F(p_),{id:F(d),tag:"ul","wrap-class":F(i).be("suggestion","wrap"),"view-class":F(i).be("suggestion","list"),role:"listbox"},{default:J(()=>[F(w)?(Y(),ve("li",sO,[Q(F(Et),{class:ae(F(i).is("loading"))},{default:J(()=>[Q(F(gf))]),_:1},8,["class"])])):(Y(!0),ve(Ye,{key:1},dl(h.value,(ge,_e)=>(Y(),ve("li",{id:`${F(d)}-item-${_e}`,key:_e,class:ae({highlighted:f.value===_e}),role:"option","aria-selected":f.value===_e,onClick:Oe=>N(ge)},[we(z.$slots,"default",{item:ge},()=>[Ee(me(ge[z.valueKey]),1)])],10,aO))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:J(()=>[V("div",{ref_key:"listboxRef",ref:u,class:ae([F(i).b(),z.$attrs.class]),style:Qe(F(y)),role:"combobox","aria-haspopup":"listbox","aria-expanded":F(S),"aria-owns":F(d)},[Q(F(Qi),jt({ref_key:"inputRef",ref:b},F(a),{"model-value":z.modelValue,onInput:E,onChange:A,onFocus:M,onBlur:O,onClear:$,onKeydown:[X[0]||(X[0]=Ft(Dt(ge=>U(f.value-1),["prevent"]),["up"])),X[1]||(X[1]=Ft(Dt(ge=>U(f.value+1),["prevent"]),["down"])),Ft(D,["enter"]),Ft(R,["tab"])]}),Zu({_:2},[z.$slots.prepend?{name:"prepend",fn:J(()=>[we(z.$slots,"prepend")])}:void 0,z.$slots.append?{name:"append",fn:J(()=>[we(z.$slots,"append")])}:void 0,z.$slots.prefix?{name:"prefix",fn:J(()=>[we(z.$slots,"prefix")])}:void 0,z.$slots.suffix?{name:"suffix",fn:J(()=>[we(z.$slots,"suffix")])}:void 0]),1040,["model-value","onKeydown"])],14,oO)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}}));var uO=He(cO,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const fO=Ut(uO),hO=qe({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"}}),dO=["textContent"],pO={name:"ElBadge"},vO=Ae(Pe(Se({},pO),{props:hO,setup(e,{expose:t}){const r=e,n=Je("badge"),o=te(()=>r.isDot?"":Mt(r.value)&&Mt(r.max)?r.max(Y(),ve("div",{class:ae(F(n).b())},[we(i.$slots,"default"),Q(dr,{name:`${F(n).namespace.value}-zoom-in-center`},{default:J(()=>[ht(V("sup",{class:ae([F(n).e("content"),F(n).em("content",i.type),F(n).is("fixed",!!i.$slots.default),F(n).is("dot",i.isDot)]),textContent:me(F(o))},null,10,dO),[[Ht,!i.hidden&&(F(o)||F(o)==="0"||i.isDot)]])]),_:1},8,["name"])],2))}}));var gO=He(vO,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const _O=Ut(gO),mO=["default","primary","success","warning","info","danger",""],yO=["button","submit","reset"],hu=qe({size:Ol,disabled:Boolean,type:{type:String,values:mO,default:""},icon:{type:ai,default:""},nativeType:{type:String,values:yO,default:"button"},loading:Boolean,loadingIcon:{type:ai,default:()=>gf},plain:Boolean,text:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),bO={click:e=>e instanceof MouseEvent};function wt(e,t){SO(e)&&(e="100%");var r=wO(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 fa(e){return Math.min(1,Math.max(0,e))}function SO(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function wO(e){return typeof e=="string"&&e.indexOf("%")!==-1}function R_(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ha(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Qn(e){return e.length===1?"0"+e:String(e)}function CO(e,t,r){return{r:wt(e,255)*255,g:wt(t,255)*255,b:wt(r,255)*255}}function jd(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+(t1&&(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 EO(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=wc(a,s,e+1/3),o=wc(a,s,e),i=wc(a,s,e-1/3)}return{r:n*255,g:o*255,b:i*255}}function Ud(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>16,g:(e&65280)>>8,b:e&255}}var du={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 xO(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=MO(e)),typeof e=="object"&&(Vr(e.r)&&Vr(e.g)&&Vr(e.b)?(t=CO(e.r,e.g,e.b),s=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Vr(e.h)&&Vr(e.s)&&Vr(e.v)?(n=ha(e.s),o=ha(e.v),t=TO(e.h,n,o),s=!0,a="hsv"):Vr(e.h)&&Vr(e.s)&&Vr(e.l)&&(n=ha(e.s),i=ha(e.l),t=EO(e.h,n,i),s=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=R_(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 RO="[-\\+]?\\d+%?",kO="[-\\+]?\\d*\\.\\d+%?",bn="(?:".concat(kO,")|(?:").concat(RO,")"),Cc="[\\s|\\(]+(".concat(bn,")[,|\\s]+(").concat(bn,")[,|\\s]+(").concat(bn,")\\s*\\)?"),Ec="[\\s|\\(]+(".concat(bn,")[,|\\s]+(").concat(bn,")[,|\\s]+(").concat(bn,")[,|\\s]+(").concat(bn,")\\s*\\)?"),gr={CSS_UNIT:new RegExp(bn),rgb:new RegExp("rgb"+Cc),rgba:new RegExp("rgba"+Ec),hsl:new RegExp("hsl"+Cc),hsla:new RegExp("hsla"+Ec),hsv:new RegExp("hsv"+Cc),hsva:new RegExp("hsva"+Ec),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 MO(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(du[e])e=du[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=gr.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=gr.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=gr.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=gr.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=gr.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=gr.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=gr.hex8.exec(e),r?{r:zt(r[1]),g:zt(r[2]),b:zt(r[3]),a:Wd(r[4]),format:t?"name":"hex8"}:(r=gr.hex6.exec(e),r?{r:zt(r[1]),g:zt(r[2]),b:zt(r[3]),format:t?"name":"hex"}:(r=gr.hex4.exec(e),r?{r:zt(r[1]+r[1]),g:zt(r[2]+r[2]),b:zt(r[3]+r[3]),a:Wd(r[4]+r[4]),format:t?"name":"hex8"}:(r=gr.hex3.exec(e),r?{r:zt(r[1]+r[1]),g:zt(r[2]+r[2]),b:zt(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Vr(e){return Boolean(gr.CSS_UNIT.exec(String(e)))}var BO=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=OO(t)),this.originalInput=t;var o=xO(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=R_(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var t=Ud(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=Ud(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=jd(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=jd(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),qd(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),AO(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="#"+qd(this.r,this.g,this.b,!1),r=0,n=Object.entries(du);r=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=fa(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=fa(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=fa(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=fa(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{let n={};const o=e.color;if(o){const i=new BO(o),s=e.dark?i.tint(20).toString():hn(i,20);if(e.plain)n=r.cssVarBlock({"bg-color":e.dark?hn(i,90):i.tint(90).toString(),"text-color":o,"border-color":e.dark?hn(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?hn(i,90):i.tint(90).toString(),n[r.cssVarBlockName("disabled-text-color")]=e.dark?hn(i,50):i.tint(50).toString(),n[r.cssVarBlockName("disabled-border-color")]=e.dark?hn(i,80):i.tint(80).toString());else{const a=e.dark?hn(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 h=e.dark?hn(i,50):i.tint(50).toString();n[r.cssVarBlockName("disabled-bg-color")]=h,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")]=h}}}return n})}const IO=["aria-disabled","disabled","autofocus","type"],DO={name:"ElButton"},FO=Ae(Pe(Se({},DO),{props:hu,emits:bO,setup(e,{expose:t,emit:r}){const n=e,o=gl(),i=ke(Zg,void 0),s=di("button"),a=Je("button"),{form:l}=mf(),h=pi(te(()=>i==null?void 0:i.size)),f=xl(),m=oe(),g=te(()=>n.type||(i==null?void 0:i.type)||""),p=te(()=>{var c,u,d;return(d=(u=n.autoInsertSpace)!=null?u:(c=s.value)==null?void 0:c.autoInsertSpace)!=null?d:!1}),_=te(()=>{var c;const u=(c=o.default)==null?void 0:c.call(o);if(p.value&&(u==null?void 0:u.length)===1){const d=u[0];if((d==null?void 0:d.type)===ns){const y=d.children;return/^\p{Unified_Ideograph}{2}$/u.test(y.trim())}}return!1}),b=PO(n),v=c=>{n.nativeType==="reset"&&(l==null||l.resetFields()),r("click",c)};return t({ref:m,size:h,type:g,disabled:f,shouldAddSpace:_}),(c,u)=>(Y(),ve("button",{ref_key:"_ref",ref:m,class:ae([F(a).b(),F(a).m(F(g)),F(a).m(F(h)),F(a).is("disabled",F(f)),F(a).is("loading",c.loading),F(a).is("plain",c.plain),F(a).is("round",c.round),F(a).is("circle",c.circle),F(a).is("text",c.text),F(a).is("has-bg",c.bg)]),"aria-disabled":F(f)||c.loading,disabled:F(f)||c.loading,autofocus:c.autofocus,type:c.nativeType,style:Qe(F(b)),onClick:v},[c.loading?(Y(),ve(Ye,{key:0},[c.$slots.loading?we(c.$slots,"loading",{key:0}):(Y(),be(F(Et),{key:1,class:ae(F(a).is("loading"))},{default:J(()=>[(Y(),be(kt(c.loadingIcon)))]),_:1},8,["class"]))],2112)):c.icon||c.$slots.icon?(Y(),be(F(Et),{key:1},{default:J(()=>[c.icon?(Y(),be(kt(c.icon),{key:0})):we(c.$slots,"icon",{key:1})]),_:3})):Te("v-if",!0),c.$slots.default?(Y(),ve("span",{key:2,class:ae({[F(a).em("text","expand")]:F(_)})},[we(c.$slots,"default")],2)):Te("v-if",!0)],14,IO))}}));var HO=He(FO,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const NO={size:hu.size,type:hu.type},$O={name:"ElButtonGroup"},jO=Ae(Pe(Se({},$O),{props:NO,setup(e){const t=e;st(Zg,fr({size:Bt(t,"size"),type:Bt(t,"type")}));const r=Je("button");return(n,o)=>(Y(),ve("div",{class:ae(`${F(r).b("group")}`)},[we(n.$slots,"default")],2))}}));var k_=He(jO,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const jr=Ut(HO,{ButtonGroup:k_});Ji(k_);const pu="_trap-focus-children",ei=[],Vd=e=>{if(ei.length===0)return;const t=ei[ei.length-1][pu];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())}},UO={beforeMount(e){e[pu]=Sd(e),ei.push(e),ei.length<=1&&wl(document,"keydown",Vd)},updated(e){Ze(()=>{e[pu]=Sd(e)})},unmounted(){ei.shift(),ei.length===0&&Cl(document,"keydown",Vd)}},qO=qe({header:{type:String,default:""},bodyStyle:{type:Re([String,Object,Array]),default:""},shadow:{type:String,default:"always"}}),WO={name:"ElCard"},VO=Ae(Pe(Se({},WO),{props:qO,setup(e){const t=Je("card");return(r,n)=>(Y(),ve("div",{class:ae([F(t).b(),F(t).is(`${r.shadow}-shadow`)])},[r.$slots.header||r.header?(Y(),ve("div",{key:0,class:ae(F(t).e("header"))},[we(r.$slots,"header",{},()=>[Ee(me(r.header),1)])],2)):Te("v-if",!0),V("div",{class:ae(F(t).e("body")),style:Qe(r.bodyStyle)},[we(r.$slots,"default")],6)],2))}}));var zO=He(VO,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const KO=Ut(zO),M_=qe({size:Ol,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),GO=qe(Pe(Se({},M_),{modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean})),B_={[ar]:e=>De(e)||Mt(e)||On(e),change:e=>De(e)||Mt(e)||On(e)},P_=(e,t)=>{const r=oe(),n=ke(t_,void 0),o=te(()=>!!n),i=te({get(){return o.value?n.modelValue:e.modelValue},set(f){o.value?n.changeEvent(f):t(ar,f),r.value.checked=e.modelValue===e.label}}),s=pi(te(()=>n==null?void 0:n.size)),a=xl(te(()=>n==null?void 0:n.disabled)),l=oe(!1),h=te(()=>a.value||o.value&&i.value!==e.label?-1:0);return{radioRef:r,isGroup:o,radioGroup:n,focus:l,size:s,disabled:a,tabIndex:h,modelValue:i}},YO=Ae({name:"ElRadio",props:GO,emits:B_,setup(e,{emit:t}){const r=Je("radio"),{radioRef:n,isGroup:o,focus:i,size:s,disabled:a,tabIndex:l,modelValue:h}=P_(e,t);function f(){Ze(()=>t("change",h.value))}return{ns:r,focus:i,isGroup:o,modelValue:h,tabIndex:l,size:s,disabled:a,radioRef:n,handleChange:f}}}),JO=["value","name","disabled"];function XO(e,t,r,n,o,i){return Y(),ve("label",{class:ae([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]=Ft(Dt(s=>e.modelValue=e.disabled?e.modelValue:e.label,["stop","prevent"]),["space"]))},[V("span",{class:ae([e.ns.e("input"),e.ns.is("disabled",e.disabled),e.ns.is("checked",e.modelValue===e.label)])},[V("span",{class:ae(e.ns.e("inner"))},null,2),ht(V("input",{ref:"radioRef","onUpdate:modelValue":t[0]||(t[0]=s=>e.modelValue=s),class:ae(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,JO),[[Jv,e.modelValue]])],2),V("span",{class:ae(e.ns.e("label")),onKeydown:t[4]||(t[4]=Dt(()=>{},["stop"]))},[we(e.$slots,"default",{},()=>[Ee(me(e.label),1)])],34)],34)}var ZO=He(YO,[["render",XO],["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const QO=qe(Pe(Se({},M_),{name:{type:String,default:""}})),ex=Ae({name:"ElRadioButton",props:QO,setup(e,{emit:t}){const r=Je("radio"),{radioRef:n,isGroup:o,focus:i,size:s,disabled:a,tabIndex:l,modelValue:h,radioGroup:f}=P_(e,t),m=te(()=>({backgroundColor:(f==null?void 0:f.fill)||"",borderColor:(f==null?void 0:f.fill)||"",boxShadow:f!=null&&f.fill?`-1px 0 0 0 ${f.fill}`:"",color:(f==null?void 0:f.textColor)||""}));return{ns:r,isGroup:o,size:s,disabled:a,tabIndex:l,modelValue:h,focus:i,activeStyle:m,radioRef:n}}}),tx=["aria-checked","aria-disabled","tabindex"],rx=["value","name","disabled"];function nx(e,t,r,n,o,i){return Y(),ve("label",{class:ae([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]=Ft(Dt(s=>e.modelValue=e.disabled?e.modelValue:e.label,["stop","prevent"]),["space"]))},[ht(V("input",{ref:"radioRef","onUpdate:modelValue":t[0]||(t[0]=s=>e.modelValue=s),class:ae(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,rx),[[Jv,e.modelValue]]),V("span",{class:ae(e.ns.be("button","inner")),style:Qe(e.modelValue===e.label?e.activeStyle:{}),onKeydown:t[3]||(t[3]=Dt(()=>{},["stop"]))},[we(e.$slots,"default",{},()=>[Ee(me(e.label),1)])],38)],42,tx)}var I_=He(ex,[["render",nx],["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const ix=qe({id:{type:String,default:void 0},size:Ol,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""}}),ox=B_,sx=Ae({name:"ElRadioGroup",props:ix,emits:ox,setup(e,t){const r=Je("radio"),n=oe(),{formItem:o}=mf(),{inputId:i,isLabeledByFormItem:s}=s_(e,{formItemContext:o}),a=h=>{t.emit(ar,h),Ze(()=>t.emit("change",h))},l=h=>{if(!n.value)return;const f=h.target,m=f.nodeName==="INPUT"?"[type=radio]":"[role=radio]",g=n.value.querySelectorAll(m),p=g.length,_=Array.from(g).indexOf(f),b=n.value.querySelectorAll("[role=radio]");let v=null;switch(h.code){case ze.left:case ze.up:h.stopPropagation(),h.preventDefault(),v=_===0?p-1:_-1;break;case ze.right:case ze.down:h.stopPropagation(),h.preventDefault(),v=_===p-1?0:_+1;break}v!==null&&(b[v].click(),b[v].focus())};return lt(()=>{const h=n.value.querySelectorAll("[type=radio]"),f=h[0];!Array.from(h).some(m=>m.checked)&&f&&(f.tabIndex=0)}),st(t_,fr(Pe(Se({},ts(e)),{changeEvent:a}))),Ie(()=>e.modelValue,()=>o==null?void 0:o.validate("change").catch(h=>void 0)),{ns:r,radioGroupRef:n,formItem:o,groupId:i,isLabeledByFormItem:s,handleKeydown:l}}}),ax=["id","aria-label","aria-labelledby"];function lx(e,t,r,n,o,i){return Y(),ve("div",{id:e.groupId,ref:"radioGroupRef",class:ae(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))},[we(e.$slots,"default")],42,ax)}var D_=He(sx,[["render",lx],["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const cx=Ut(ZO,{RadioButton:I_,RadioGroup:D_});Ji(D_);Ji(I_);const vu={},ux=qe({a11y:{type:Boolean,default:!0},locale:{type:Re(Object)},size:{type:String,values:is,default:""},button:{type:Re(Object)},experimentalFeatures:{type:Re(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Re(Object)},zIndex:{type:Number},namespace:{type:String,default:"el"}});Ae({name:"ElConfigProvider",props:ux,setup(e,{slots:t}){Ie(()=>e.message,n=>{Object.assign(vu,n!=null?n:{})},{immediate:!0,deep:!0});const r=cT(e);return()=>we(t,"default",{config:r==null?void 0:r.value})}});const fx=qe({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:Re([String,Array,Object])},zIndex:{type:Re([String,Number])}}),hx={click:e=>e instanceof MouseEvent};var dx=Ae({name:"ElOverlay",props:fx,emits:hx,setup(e,{slots:t,emit:r}){const n=Je("overlay"),o=l=>{r("click",l)},{onClick:i,onMousedown:s,onMouseup:a}=yf(e.customMaskEvent?void 0:o);return()=>e.mask?Q("div",{class:[n.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:s,onMouseup:a},[we(t,"default")],Ra.STYLE|Ra.CLASS|Ra.PROPS,["onClick","onMouseup","onMousedown"]):Br("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[we(t,"default")])}});const F_=dx,H_=qe({center:{type:Boolean,default:!1},closeIcon:{type:ai,default:""},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),px={close:()=>!0},vx=["aria-label"],gx={name:"ElDialogContent"},_x=Ae(Pe(Se({},gx),{props:H_,emits:px,setup(e){const{Close:t}=rT,{dialogRef:r,headerRef:n,ns:o,style:i}=ke(e_);return(s,a)=>(Y(),ve("div",{ref_key:"dialogRef",ref:r,class:ae([F(o).b(),F(o).is("fullscreen",s.fullscreen),F(o).is("draggable",s.draggable),{[F(o).m("center")]:s.center},s.customClass]),"aria-modal":"true",role:"dialog","aria-label":s.title||"dialog",style:Qe(F(i)),onClick:a[1]||(a[1]=Dt(()=>{},["stop"]))},[V("div",{ref_key:"headerRef",ref:n,class:ae(F(o).e("header"))},[we(s.$slots,"title",{},()=>[V("span",{class:ae(F(o).e("title"))},me(s.title),3)])],2),V("div",{class:ae(F(o).e("body"))},[we(s.$slots,"default")],2),s.$slots.footer?(Y(),ve("div",{key:0,class:ae(F(o).e("footer"))},[we(s.$slots,"footer")],2)):Te("v-if",!0),s.showClose?(Y(),ve("button",{key:1,"aria-label":"close",class:ae(F(o).e("headerbtn")),type:"button",onClick:a[0]||(a[0]=l=>s.$emit("close"))},[Q(F(Et),{class:ae(F(o).e("close"))},{default:J(()=>[(Y(),be(kt(s.closeIcon||F(t))))]),_:1},8,["class"])],2)):Te("v-if",!0)],14,vx))}}));var mx=He(_x,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const yx=qe(Pe(Se({},H_),{appendToBody:{type:Boolean,default:!1},beforeClose:{type:Re(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}})),bx={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[ar]:e=>On(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},Sx=(e,t)=>{const n=hr().emit,{nextZIndex:o}=Zi();let i="";const s=oe(!1),a=oe(!1),l=oe(!1),h=oe(e.zIndex||o());let f,m;const g=te(()=>Mt(e.width)?`${e.width}px`:e.width),p=di("namespace",d_),_=te(()=>{const T={},L=`--${p.value}-dialog`;return e.fullscreen||(e.top&&(T[`${L}-margin-top`]=e.top),e.width&&(T[`${L}-width`]=g.value)),T});function b(){n("opened")}function v(){n("closed"),n(ar,!1),e.destroyOnClose&&(l.value=!1)}function c(){n("close")}function u(){m==null||m(),f==null||f(),e.openDelay&&e.openDelay>0?{stop:f}=Ya(()=>w(),e.openDelay):w()}function d(){f==null||f(),m==null||m(),e.closeDelay&&e.closeDelay>0?{stop:m}=Ya(()=>C(),e.closeDelay):C()}function y(){function T(L){L||(a.value=!0,s.value=!1)}e.beforeClose?e.beforeClose(T):d()}function S(){e.closeOnClickModal&&y()}function w(){!pt||(s.value=!0)}function C(){s.value=!1}return e.lockScroll&&a_(s),e.closeOnPressEscape&&l_({handleClose:y},s),c_(s),Ie(()=>e.modelValue,T=>{T?(a.value=!1,u(),l.value=!0,n("open"),h.value=e.zIndex?h.value++:o(),Ze(()=>{t.value&&(t.value.scrollTop=0)})):s.value&&d()}),Ie(()=>e.fullscreen,T=>{!t.value||(T?(i=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=i)}),lt(()=>{e.modelValue&&(s.value=!0,l.value=!0,u())}),{afterEnter:b,afterLeave:v,beforeLeave:c,handleClose:y,onModalClick:S,close:d,doClose:C,closed:a,style:_,rendered:l,visible:s,zIndex:h}},wx={name:"ElDialog"},Cx=Ae(Pe(Se({},wx),{props:yx,emits:bx,setup(e,{expose:t}){const r=e,n=Je("dialog"),o=oe(),i=oe(),{visible:s,style:a,rendered:l,zIndex:h,afterEnter:f,afterLeave:m,beforeLeave:g,handleClose:p,onModalClick:_}=Sx(r,o);st(e_,{dialogRef:o,headerRef:i,ns:n,rendered:l,style:a});const b=yf(_),v=te(()=>r.draggable&&!r.fullscreen);return o_(o,i,v),t({visible:s}),(c,u)=>(Y(),be(kv,{to:"body",disabled:!c.appendToBody},[Q(dr,{name:"dialog-fade",onAfterEnter:F(f),onAfterLeave:F(m),onBeforeLeave:F(g)},{default:J(()=>[ht(Q(F(F_),{"custom-mask-event":"",mask:c.modal,"overlay-class":c.modalClass,"z-index":F(h)},{default:J(()=>[V("div",{class:ae(`${F(n).namespace.value}-overlay-dialog`),onClick:u[0]||(u[0]=(...d)=>F(b).onClick&&F(b).onClick(...d)),onMousedown:u[1]||(u[1]=(...d)=>F(b).onMousedown&&F(b).onMousedown(...d)),onMouseup:u[2]||(u[2]=(...d)=>F(b).onMouseup&&F(b).onMouseup(...d))},[F(l)?(Y(),be(mx,{key:0,"custom-class":c.customClass,center:c.center,"close-icon":c.closeIcon,draggable:F(v),fullscreen:c.fullscreen,"show-close":c.showClose,style:Qe(F(a)),title:c.title,onClose:F(p)},Zu({title:J(()=>[we(c.$slots,"title")]),default:J(()=>[we(c.$slots,"default")]),_:2},[c.$slots.footer?{name:"footer",fn:J(()=>[we(c.$slots,"footer")])}:void 0]),1032,["custom-class","center","close-icon","draggable","fullscreen","show-close","style","title","onClose"])):Te("v-if",!0)],34)]),_:3},8,["mask","overlay-class","z-index"]),[[Ht,F(s)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}}));var Ex=He(Cx,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const as=Ut(Ex),N_=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},zd=(e,t)=>{for(const r of e)if(!Tx(r,t))return r},Tx=(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},Ax=e=>{const t=N_(e),r=zd(t,e),n=zd(t.reverse(),e);return[r,n]},Lx=e=>e instanceof HTMLInputElement&&"select"in e,Gn=(e,t)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Lx(e)&&t&&e.select()}};function Kd(e,t){const r=[...e],n=e.indexOf(t);return n!==-1&&r.splice(n,1),r}const Ox=()=>{let e=[];return{push:n=>{const o=e[0];o&&n!==o&&o.pause(),e=Kd(e,n),e.unshift(n)},remove:n=>{var o,i;e=Kd(e,n),(i=(o=e[0])==null?void 0:o.resume)==null||i.call(o)}}},xx=(e,t=!1)=>{const r=document.activeElement;for(const n of e)if(Gn(n,t),document.activeElement!==r)return},Gd=Ox(),Tc="focus-trap.focus-on-mount",Ac="focus-trap.focus-on-unmount",Yd={cancelable:!0,bubbles:!1},Jd="mountOnFocus",Xd="unmountOnFocus",$_=Symbol("elFocusTrap"),Rx=Ae({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean},emits:[Jd,Xd],setup(e,{emit:t}){const r=oe(),n=oe(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:_,altKey:b,ctrlKey:v,metaKey:c,currentTarget:u,shiftKey:d}=p,{loop:y}=e,S=_===ze.tab&&!b&&!v&&!c,w=document.activeElement;if(S&&w){const C=u,[T,L]=Ax(C);T&&L?!d&&w===L?(p.preventDefault(),y&&Gn(T,!0)):d&&w===T&&(p.preventDefault(),y&&Gn(L,!0)):w===C&&p.preventDefault()}};st($_,{focusTrapRef:n,onKeydown:a});const l=p=>{t(Jd,p)},h=p=>t(Xd,p),f=p=>{const _=F(n);if(s.paused||!_)return;const b=p.target;b&&_.contains(b)?i=b:Gn(i,!0)},m=p=>{const _=F(n);s.paused||!_||_.contains(p.relatedTarget)||Gn(i,!0)},g=()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",m)};return lt(()=>{const p=F(n);if(p){Gd.push(s);const _=document.activeElement;if(o=_,!p.contains(_)){const v=new Event(Tc,Yd);p.addEventListener(Tc,l),p.dispatchEvent(v),v.defaultPrevented||Ze(()=>{xx(N_(p),!0),document.activeElement===_&&Gn(p)})}}Ie(()=>e.trapped,_=>{_?(document.addEventListener("focusin",f),document.addEventListener("focusout",m)):g()},{immediate:!0})}),tr(()=>{g();const p=F(n);if(p){p.removeEventListener(Tc,l);const _=new Event(Ac,Yd);p.addEventListener(Ac,h),p.dispatchEvent(_),_.defaultPrevented||Gn(o!=null?o:document.body,!0),p.removeEventListener(Ac,l),Gd.remove(s)}}),{focusTrapRef:r,forwardRef:n,onKeydown:a}}});function kx(e,t,r,n,o,i){return we(e.$slots,"default")}var Mx=He(Rx,[["render",kx],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const Bx=Ae({inheritAttrs:!1});function Px(e,t,r,n,o,i){return we(e.$slots,"default")}var Ix=He(Bx,[["render",Px],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const Dx=Ae({name:"ElCollectionItem",inheritAttrs:!1});function Fx(e,t,r,n,o,i){return we(e.$slots,"default")}var Hx=He(Dx,[["render",Fx],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const j_="data-el-collection-item",U_=e=>{const t=`El${e}Collection`,r=`${t}Item`,n=Symbol(t),o=Symbol(r),i=Pe(Se({},Ix),{name:t,setup(){const a=oe(null),l=new Map;st(n,{itemMap:l,getItems:()=>{const f=F(a);if(!f)return[];const m=Array.from(f.querySelectorAll(`[${j_}]`));return[...l.values()].sort((_,b)=>m.indexOf(_.ref)-m.indexOf(b.ref))},collectionRef:a})}}),s=Pe(Se({},Hx),{name:r,setup(a,{attrs:l}){const h=oe(null),f=ke(n,void 0);st(o,{collectionItemRef:h}),lt(()=>{const m=F(h);m&&f.itemMap.set(m,Se({ref:m},l))}),tr(()=>{const m=F(h);f.itemMap.delete(m)})}});return{COLLECTION_INJECTION_KEY:n,COLLECTION_ITEM_INJECTION_KEY:o,ElCollection:i,ElCollectionItem:s}},Nx=qe({style:{type:Re([String,Array,Object])},currentTabId:{type:Re(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:Re(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:$x,ElCollectionItem:jx,COLLECTION_INJECTION_KEY:kf,COLLECTION_ITEM_INJECTION_KEY:Ux}=U_("RovingFocusGroup"),Mf=Symbol("elRovingFocusGroup"),q_=Symbol("elRovingFocusGroupItem"),qx={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},Wx=(e,t)=>{if(t!=="rtl")return e;switch(e){case ze.right:return ze.left;case ze.left:return ze.right;default:return e}},Vx=(e,t,r)=>{const n=Wx(e.key,r);if(!(t==="vertical"&&[ze.left,ze.right].includes(n))&&!(t==="horizontal"&&[ze.up,ze.down].includes(n)))return qx[n]},zx=(e,t)=>e.map((r,n)=>e[(n+t)%e.length]),Bf=e=>{const{activeElement:t}=document;for(const r of e)if(r===t||(r.focus(),t!==document.activeElement))return},Zd="currentTabIdChange",Lc="rovingFocusGroup.entryFocus",Kx={bubbles:!1,cancelable:!0},Gx=Ae({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:Nx,emits:[Zd,"entryFocus"],setup(e,{emit:t}){var r;const n=oe((r=e.currentTabId||e.defaultCurrentTabId)!=null?r:null),o=oe(!1),i=oe(!1),s=oe(null),{getItems:a}=ke(kf,void 0),l=te(()=>[{outline:"none"},e.style]),h=b=>{t(Zd,b)},f=()=>{o.value=!0},m=ft(b=>{var v;(v=e.onMousedown)==null||v.call(e,b)},()=>{i.value=!0}),g=ft(b=>{var v;(v=e.onFocus)==null||v.call(e,b)},b=>{const v=!F(i),{target:c,currentTarget:u}=b;if(c===u&&v&&!F(o)){const d=new Event(Lc,Kx);if(u==null||u.dispatchEvent(d),!d.defaultPrevented){const y=a().filter(L=>L.focusable),S=y.find(L=>L.active),w=y.find(L=>L.id===F(n)),T=[S,w,...y].filter(Boolean).map(L=>L.ref);Bf(T)}}i.value=!1}),p=ft(b=>{var v;(v=e.onBlur)==null||v.call(e,b)},()=>{o.value=!1}),_=(...b)=>{t("entryFocus",...b)};st(Mf,{currentTabbedId:sl(n),loop:Bt(e,"loop"),tabIndex:te(()=>F(o)?-1:0),rovingFocusGroupRef:s,rovingFocusGroupRootStyle:l,orientation:Bt(e,"orientation"),dir:Bt(e,"dir"),onItemFocus:h,onItemShiftTab:f,onBlur:p,onFocus:g,onMousedown:m}),Ie(()=>e.currentTabId,b=>{n.value=b!=null?b:null}),lt(()=>{const b=F(s);wl(b,Lc,_)}),tr(()=>{const b=F(s);Cl(b,Lc,_)})}});function Yx(e,t,r,n,o,i){return we(e.$slots,"default")}var Jx=He(Gx,[["render",Yx],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const Xx=Ae({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:$x,ElRovingFocusGroupImpl:Jx}});function Zx(e,t,r,n,o,i){const s=Be("el-roving-focus-group-impl"),a=Be("el-focus-group-collection");return Y(),be(a,null,{default:J(()=>[Q(s,Xm(Pv(e.$attrs)),{default:J(()=>[we(e.$slots,"default")]),_:3},16)]),_:3})}var Qx=He(Xx,[["render",Zx],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const eR=Ae({components:{ElRovingFocusCollectionItem:jx},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}=ke(Mf,void 0),{getItems:s}=ke(kf,void 0),a=Rl(),l=oe(null),h=ft(p=>{t("mousedown",p)},p=>{e.focusable?o(F(a)):p.preventDefault()}),f=ft(p=>{t("focus",p)},()=>{o(F(a))}),m=ft(p=>{t("keydown",p)},p=>{const{key:_,shiftKey:b,target:v,currentTarget:c}=p;if(_===ze.tab&&b){i();return}if(v!==c)return;const u=Vx(p);if(u){p.preventDefault();let y=s().filter(S=>S.focusable).map(S=>S.ref);switch(u){case"last":{y.reverse();break}case"prev":case"next":{u==="prev"&&y.reverse();const S=y.indexOf(c);y=n.value?zx(y,S+1):y.slice(S+1);break}}Ze(()=>{Bf(y)})}}),g=te(()=>r.value===F(a));return st(q_,{rovingFocusGroupItemRef:l,tabIndex:te(()=>F(g)?0:-1),handleMousedown:h,handleFocus:f,handleKeydown:m}),{id:a,handleKeydown:m,handleFocus:f,handleMousedown:h}}});function tR(e,t,r,n,o,i){const s=Be("el-roving-focus-collection-item");return Y(),be(s,{id:e.id,focusable:e.focusable,active:e.active},{default:J(()=>[we(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var rR=He(eR,[["render",tR],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const Ma=qe({trigger:Xo.trigger,effect:Pe(Se({},ir.effect),{default:"light"}),type:{type:Re(String)},placement:{type:Re(String),default:"bottom"},popperOptions:{type:Re(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:Re([Number,String]),default:0},maxHeight:{type:Re([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},buttonProps:{type:Re(Object)}}),W_=qe({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:ai}}),nR=qe({onKeydown:{type:Re(Function)}}),iR=[ze.down,ze.pageDown,ze.home],V_=[ze.up,ze.pageUp,ze.end],oR=[...iR,...V_],{ElCollection:sR,ElCollectionItem:aR,COLLECTION_INJECTION_KEY:lR,COLLECTION_ITEM_INJECTION_KEY:cR}=U_("Dropdown"),Pf=Symbol("elDropdown"),{ButtonGroup:uR}=jr,fR=Ae({name:"ElDropdown",components:{ElButton:jr,ElFocusTrap:Mx,ElButtonGroup:uR,ElScrollbar:p_,ElDropdownCollection:sR,ElTooltip:Rf,ElRovingFocusGroup:Qx,ElIcon:Et,ArrowDown:Q2},props:Ma,emits:["visible-change","click","command"],setup(e,{emit:t}){const r=hr(),n=Je("dropdown"),o=oe(),i=oe(),s=oe(null),a=oe(null),l=oe(null),h=oe(null),f=oe(!1),m=te(()=>({maxHeight:xn(e.maxHeight)})),g=te(()=>[n.m(v.value)]);function p(){_()}function _(){var T;(T=s.value)==null||T.onClose()}function b(){var T;(T=s.value)==null||T.onOpen()}const v=pi();function c(...T){t("command",...T)}function u(){}function d(){const T=F(a);T==null||T.focus(),h.value=null}function y(T){h.value=T}function S(T){f.value||(T.preventDefault(),T.stopImmediatePropagation())}return st(Pf,{contentRef:a,isUsingKeyboard:f,onItemEnter:u,onItemLeave:d}),st("elDropdown",{instance:r,dropdownSize:v,handleClick:p,commandHandler:c,trigger:Bt(e,"trigger"),hideOnClick:Bt(e,"hideOnClick")}),{ns:n,scrollbar:l,wrapStyle:m,dropdownTriggerKls:g,dropdownSize:v,currentTabId:h,handleCurrentTabIdChange:y,handlerMainButtonClick:T=>{t("click",T)},handleEntryFocus:S,handleClose:_,handleOpen:b,onMountOnFocus:T=>{var L,E;T.preventDefault(),(E=(L=a.value)==null?void 0:L.focus)==null||E.call(L,{preventScroll:!0})},popperRef:s,triggeringElementRef:o,referenceElementRef:i}}});function hR(e,t,r,n,o,i){var s;const a=Be("el-dropdown-collection"),l=Be("el-roving-focus-group"),h=Be("el-focus-trap"),f=Be("el-scrollbar"),m=Be("el-tooltip"),g=Be("el-button"),p=Be("arrow-down"),_=Be("el-icon"),b=Be("el-button-group");return Y(),ve("div",{class:ae([e.ns.b(),e.ns.is("disabled",e.disabled)])},[Q(m,{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]=v=>e.$emit("visible-change",!0)),onHide:t[1]||(t[1]=v=>e.$emit("visible-change",!1))},Zu({content:J(()=>[Q(f,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:J(()=>[Q(h,{trapped:"",onMountOnFocus:e.onMountOnFocus},{default:J(()=>[Q(l,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:J(()=>[Q(a,null,{default:J(()=>[we(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:J(()=>[V("div",{class:ae(e.dropdownTriggerKls)},[we(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?(Y(),be(b,{key:0},{default:J(()=>[Q(g,jt({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,onClick:e.handlerMainButtonClick}),{default:J(()=>[we(e.$slots,"default")]),_:3},16,["size","type","disabled","onClick"]),Q(g,jt({ref:"triggeringElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled}),{default:J(()=>[Q(_,{class:ae(e.ns.e("icon"))},{default:J(()=>[Q(p)]),_:1},8,["class"])]),_:1},16,["size","type","class","disabled"])]),_:3})):Te("v-if",!0)],2)}var dR=He(fR,[["render",hR],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const pR=Ae({name:"DropdownItemImpl",components:{ElIcon:Et},props:W_,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const r=Je("dropdown"),{collectionItemRef:n}=ke(cR,void 0),{collectionItemRef:o}=ke(Ux,void 0),{rovingFocusGroupItemRef:i,tabIndex:s,handleFocus:a,handleKeydown:l,handleMousedown:h}=ke(q_,void 0),f=Yg(n,o,i),m=ft(g=>{const{code:p}=g;if(p===ze.enter||p===ze.space)return g.preventDefault(),g.stopImmediatePropagation(),t("clickimpl",g),!0},l);return{ns:r,itemRef:f,dataset:{[j_]:""},tabIndex:s,handleFocus:a,handleKeydown:m,handleMousedown:h}}}),vR=["aria-disabled","tabindex"];function gR(e,t,r,n,o,i){const s=Be("el-icon");return Y(),ve(Ye,null,[e.divided?(Y(),ve("li",jt({key:0,class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):Te("v-if",!0),V("li",jt({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?(Y(),be(s,{key:0},{default:J(()=>[(Y(),be(kt(e.icon)))]),_:1})):Te("v-if",!0),we(e.$slots,"default")],16,vR)],64)}var _R=He(pR,[["render",gR],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const z_=()=>{const e=ke("elDropdown",{}),t=te(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},mR=Ae({name:"ElDropdownItem",components:{ElDropdownCollectionItem:aR,ElRovingFocusItem:rR,ElDropdownItemImpl:_R},inheritAttrs:!1,props:W_,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:r}){const{elDropdown:n}=z_(),o=hr(),i=oe(null),s=te(()=>{var p,_;return(_=(p=F(i))==null?void 0:p.textContent)!=null?_:""}),{onItemEnter:a,onItemLeave:l}=ke(Pf,void 0),h=ft(p=>(t("pointermove",p),p.defaultPrevented),wd(p=>{var _;e.disabled?l(p):(a(p),p.defaultPrevented||(_=p.currentTarget)==null||_.focus())})),f=ft(p=>(t("pointerleave",p),p.defaultPrevented),wd(p=>{l(p)})),m=ft(p=>(t("click",p),p.defaultPrevented),p=>{var _,b,v;if(e.disabled){p.stopImmediatePropagation();return}(_=n==null?void 0:n.hideOnClick)!=null&&_.value&&((b=n.handleClick)==null||b.call(n)),(v=n.commandHandler)==null||v.call(n,e.command,o,p)}),g=te(()=>Se(Se({},e),r));return{handleClick:m,handlePointerMove:h,handlePointerLeave:f,textContent:s,propsAndAttrs:g}}});function yR(e,t,r,n,o,i){var s;const a=Be("el-dropdown-item-impl"),l=Be("el-roving-focus-item"),h=Be("el-dropdown-collection-item");return Y(),be(h,{disabled:e.disabled,"text-value":(s=e.textValue)!=null?s:e.textContent},{default:J(()=>[Q(l,{focusable:!e.disabled},{default:J(()=>[Q(a,jt(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:J(()=>[we(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var K_=He(mR,[["render",yR],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const bR=Ae({name:"ElDropdownMenu",props:nR,setup(e){const t=Je("dropdown"),{_elDropdownSize:r}=z_(),n=r.value,{focusTrapRef:o,onKeydown:i}=ke($_,void 0),{contentRef:s}=ke(Pf,void 0),{collectionRef:a,getItems:l}=ke(lR,void 0),{rovingFocusGroupRef:h,rovingFocusGroupRootStyle:f,tabIndex:m,onBlur:g,onFocus:p,onMousedown:_}=ke(Mf,void 0),{collectionRef:b}=ke(kf,void 0),v=te(()=>[t.b("menu"),t.bm("menu",n==null?void 0:n.value)]),c=Yg(s,a,o,h,b),u=ft(y=>{var S;(S=e.onKeydown)==null||S.call(e,y)},y=>{const{currentTarget:S,code:w,target:C}=y;if(S.contains(C),ze.tab===w&&y.stopImmediatePropagation(),y.preventDefault(),C!==F(s)||!oR.includes(w))return;const L=l().filter(E=>!E.disabled).map(E=>E.ref);V_.includes(w)&&L.reverse(),Bf(L)});return{size:n,rovingFocusGroupRootStyle:f,tabIndex:m,dropdownKls:v,dropdownListWrapperRef:c,handleKeydown:y=>{u(y),i(y)},onBlur:g,onFocus:p,onMousedown:_}}});function SR(e,t,r,n,o,i){return Y(),ve("ul",{ref:e.dropdownListWrapperRef,class:ae(e.dropdownKls),style:Qe(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))},[we(e.$slots,"default")],38)}var G_=He(bR,[["render",SR],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const wR=Ut(dR,{DropdownItem:K_,DropdownMenu:G_}),CR=Ji(K_),ER=Ji(G_),TR=qe({model:Object,rules:{type:Re(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:is},disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean}),AR={validate:(e,t,r)=>(Le(e)||De(e))&&On(t)&&De(r)};function LR(){const e=oe([]),t=te(()=>{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 da=(e,t)=>{const r=tu(t);return r.length>0?e.filter(n=>n.prop&&r.includes(n.prop)):e},OR={name:"ElForm"},xR=Ae(Pe(Se({},OR),{props:TR,emits:AR,setup(e,{expose:t,emit:r}){const n=e,o=[],i=pi(),s=Je("form"),a=te(()=>{const{labelPosition:u,inline:d}=n;return[s.b(),s.m(i.value||"default"),{[s.m(`label-${u}`)]:u,[s.m("inline")]:d}]}),l=u=>{o.push(u)},h=u=>{u.prop&&o.splice(o.indexOf(u),1)},f=(u=[])=>{!n.model||da(o,u).forEach(d=>d.resetField())},m=(u=[])=>{da(o,u).forEach(d=>d.clearValidate())},g=te(()=>!!n.model),p=u=>{if(o.length===0)return[];const d=da(o,u);return d.length?d:[]},_=async u=>v(void 0,u),b=async(u=[])=>{if(!g.value)return!1;const d=p(u);if(d.length===0)return!0;let y={};for(const S of d)try{await S.validate("")}catch(w){y=Se(Se({},y),w)}return Object.keys(y).length===0?!0:Promise.reject(y)},v=async(u=[],d)=>{const y=!xe(d);try{const S=await b(u);return S===!0&&(d==null||d(S)),S}catch(S){const w=S;return n.scrollToError&&c(Object.keys(w)[0]),d==null||d(!1,w),y&&Promise.reject(w)}},c=u=>{var d;const y=da(o,u)[0];y&&((d=y.$el)==null||d.scrollIntoView())};return Ie(()=>n.rules,()=>{n.validateOnRuleChange&&_()},{deep:!0}),st(Xi,fr(Se(Pe(Se({},ts(n)),{emit:r,resetFields:f,clearValidate:m,validateField:v,addField:l,removeField:h}),LR()))),t({validate:_,validateField:v,resetFields:f,clearValidate:m,scrollToField:c}),(u,d)=>(Y(),ve("form",{class:ae(F(a))},[we(u.$slots,"default")],2))}}));var RR=He(xR,[["__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;t1?t-1:0),n=1;n=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 DR(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function vt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||DR(t)&&typeof e=="string"&&!e)}function FR(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 Qd(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()\[\]\\.,;:\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},_o={integer:function(t){return _o.number(t)&&parseInt(t,10)===t},float:function(t){return _o.number(t)&&!_o.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"&&!_o.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Oc.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Oc.url)},hex:function(t){return typeof t=="string"&&!!t.match(Oc.hex)}},qR=function(t,r,n,o,i){if(t.required&&r===void 0){Y_(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?_o[a](r)||o.push(Jt(i.messages.types[a],t.fullField,t.type)):a&&typeof r!==t.type&&o.push(Jt(i.messages.types[a],t.fullField,t.type))},WR=function(t,r,n,o,i){var s=typeof t.len=="number",a=typeof t.min=="number",l=typeof t.max=="number",h=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=r,m=null,g=typeof r=="number",p=typeof r=="string",_=Array.isArray(r);if(g?m="number":p?m="string":_&&(m="array"),!m)return!1;_&&(f=r.length),p&&(f=r.replace(h,"_").length),s?f!==t.len&&o.push(Jt(i.messages[m].len,t.fullField,t.len)):a&&!l&&ft.max?o.push(Jt(i.messages[m].max,t.fullField,t.max)):a&&l&&(ft.max)&&o.push(Jt(i.messages[m].range,t.fullField,t.min,t.max))},Si="enum",VR=function(t,r,n,o,i){t[Si]=Array.isArray(t[Si])?t[Si]:[],t[Si].indexOf(r)===-1&&o.push(Jt(i.messages[Si],t.fullField,t[Si].join(", ")))},zR=function(t,r,n,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||o.push(Jt(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(Jt(i.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},Ue={required:Y_,whitespace:UR,type:qR,range:WR,enum:VR,pattern:zR},KR=function(t,r,n,o,i){var s=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(vt(r,"string")&&!t.required)return n();Ue.required(t,r,o,s,i,"string"),vt(r,"string")||(Ue.type(t,r,o,s,i),Ue.range(t,r,o,s,i),Ue.pattern(t,r,o,s,i),t.whitespace===!0&&Ue.whitespace(t,r,o,s,i))}n(s)},GR=function(t,r,n,o,i){var s=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(vt(r)&&!t.required)return n();Ue.required(t,r,o,s,i),r!==void 0&&Ue.type(t,r,o,s,i)}n(s)},YR=function(t,r,n,o,i){var s=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(r===""&&(r=void 0),vt(r)&&!t.required)return n();Ue.required(t,r,o,s,i),r!==void 0&&(Ue.type(t,r,o,s,i),Ue.range(t,r,o,s,i))}n(s)},JR=function(t,r,n,o,i){var s=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(vt(r)&&!t.required)return n();Ue.required(t,r,o,s,i),r!==void 0&&Ue.type(t,r,o,s,i)}n(s)},XR=function(t,r,n,o,i){var s=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(vt(r)&&!t.required)return n();Ue.required(t,r,o,s,i),vt(r)||Ue.type(t,r,o,s,i)}n(s)},ZR=function(t,r,n,o,i){var s=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(vt(r)&&!t.required)return n();Ue.required(t,r,o,s,i),r!==void 0&&(Ue.type(t,r,o,s,i),Ue.range(t,r,o,s,i))}n(s)},QR=function(t,r,n,o,i){var s=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(vt(r)&&!t.required)return n();Ue.required(t,r,o,s,i),r!==void 0&&(Ue.type(t,r,o,s,i),Ue.range(t,r,o,s,i))}n(s)},ek=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();Ue.required(t,r,o,s,i,"array"),r!=null&&(Ue.type(t,r,o,s,i),Ue.range(t,r,o,s,i))}n(s)},tk=function(t,r,n,o,i){var s=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(vt(r)&&!t.required)return n();Ue.required(t,r,o,s,i),r!==void 0&&Ue.type(t,r,o,s,i)}n(s)},rk="enum",nk=function(t,r,n,o,i){var s=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(vt(r)&&!t.required)return n();Ue.required(t,r,o,s,i),r!==void 0&&Ue[rk](t,r,o,s,i)}n(s)},ik=function(t,r,n,o,i){var s=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(vt(r,"string")&&!t.required)return n();Ue.required(t,r,o,s,i),vt(r,"string")||Ue.pattern(t,r,o,s,i)}n(s)},ok=function(t,r,n,o,i){var s=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(vt(r,"date")&&!t.required)return n();if(Ue.required(t,r,o,s,i),!vt(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),Ue.type(t,l,o,s,i),l&&Ue.range(t,l.getTime(),o,s,i)}}n(s)},sk=function(t,r,n,o,i){var s=[],a=Array.isArray(r)?"array":typeof r;Ue.required(t,r,o,s,i,a),n(s)},xc=function(t,r,n,o,i){var s=t.type,a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(vt(r,s)&&!t.required)return n();Ue.required(t,r,o,a,i,s),vt(r,s)||Ue.type(t,r,o,a,i)}n(a)},ak=function(t,r,n,o,i){var s=[],a=t.required||!t.required&&o.hasOwnProperty(t.field);if(a){if(vt(r)&&!t.required)return n();Ue.required(t,r,o,s,i)}n(s)},ko={string:KR,method:GR,number:YR,boolean:JR,regexp:XR,integer:ZR,float:QR,array:ek,object:tk,enum:nk,pattern:ik,date:ok,url:xc,hex:xc,email:xc,required:sk,any:ak};function yu(){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 bu=yu(),ls=function(){function e(r){this.rules=null,this._messages=bu,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=rp(yu(),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,h=i;if(typeof l=="function"&&(h=l,l={}),!this.rules||Object.keys(this.rules).length===0)return h&&h(null,a),Promise.resolve(a);function f(b){var v=[],c={};function u(y){if(Array.isArray(y)){var S;v=(S=v).concat.apply(S,y)}else v.push(y)}for(var d=0;d");const o=Je("form"),i=oe(),s=oe(0),a=()=>{var f;if((f=i.value)!=null&&f.firstElementChild){const m=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(m))}else return 0},l=(f="update")=>{Ze(()=>{t.default&&e.isAutoWidth&&(f==="update"?s.value=a():f==="remove"&&(r==null||r.deregisterLabelWidth(s.value)))})},h=()=>l("update");return lt(()=>{h()}),tr(()=>{l("remove")}),rs(()=>h()),Ie(s,(f,m)=>{e.updateAll&&(r==null||r.registerLabelWidth(f,m))}),vf(te(()=>{var f,m;return(m=(f=i.value)==null?void 0:f.firstElementChild)!=null?m:null}),h),()=>{var f,m;if(!t)return null;const{isAutoWidth:g}=e;if(g){const p=r==null?void 0:r.autoLabelWidth,_={};if(p&&p!=="auto"){const b=Math.max(0,Number.parseInt(p,10)-s.value),v=r.labelPosition==="left"?"marginRight":"marginLeft";b&&(_[v]=`${b}px`)}return Q("div",{ref:i,class:[o.be("item","label-wrap")],style:_},[(f=t.default)==null?void 0:f.call(t)])}else return Q(Ye,{ref:i},[(m=t.default)==null?void 0:m.call(t)])}}});const fk=["role","aria-labelledby"],hk={name:"ElFormItem"},dk=Ae(Pe(Se({},hk),{props:ck,setup(e,{expose:t}){const r=e,n=gl(),o=ke(Xi,void 0),i=ke(li,void 0),s=pi(void 0,{formItem:!1}),a=Je("form-item"),l=Rl().value,h=oe([]),f=oe(""),m=U2(f,100),g=oe(""),p=oe();let _,b=!1;const v=te(()=>{if((o==null?void 0:o.labelPosition)==="top")return{};const k=xn(r.labelWidth||(o==null?void 0:o.labelWidth)||"");return k?{width:k}:{}}),c=te(()=>{if((o==null?void 0:o.labelPosition)==="top"||(o==null?void 0:o.inline))return{};if(!r.label&&!r.labelWidth&&L)return{};const k=xn(r.labelWidth||(o==null?void 0:o.labelWidth)||"");return!r.label&&!n.label?{marginLeft:k}:{}}),u=te(()=>[a.b(),a.m(s.value),a.is("error",f.value==="error"),a.is("validating",f.value==="validating"),a.is("success",f.value==="success"),a.is("required",$.value||r.required),a.is("no-asterisk",o==null?void 0:o.hideRequiredAsterisk),{[a.m("feedback")]:o==null?void 0:o.statusIcon}]),d=te(()=>On(r.inlineMessage)?r.inlineMessage:(o==null?void 0:o.inlineMessage)||!1),y=te(()=>[a.e("error"),{[a.em("error","inline")]:d.value}]),S=te(()=>r.prop?De(r.prop)?r.prop:r.prop.join("."):""),w=te(()=>!!(r.label||n.label)),C=te(()=>r.for||h.value.length===1?h.value[0]:void 0),T=te(()=>!C.value&&w.value),L=!!i,E=te(()=>{const k=o==null?void 0:o.model;if(!(!k||!r.prop))return bc(k,r.prop).value}),A=te(()=>{const k=r.rules?tu(r.rules):[],P=o==null?void 0:o.rules;if(P&&r.prop){const I=bc(P,r.prop).value;I&&k.push(...tu(I))}return r.required!==void 0&&k.push({required:!!r.required}),k}),M=te(()=>A.value.length>0),O=k=>A.value.filter(I=>!I.trigger||!k?!0:Array.isArray(I.trigger)?I.trigger.includes(k):I.trigger===k).map(ie=>{var he=ie,{trigger:I}=he,le=oc(he,["trigger"]);return le}),$=te(()=>A.value.some(k=>k.required===!0)),D=te(()=>{var k;return m.value==="error"&&r.showMessage&&((k=o==null?void 0:o.showMessage)!=null?k:!0)}),R=te(()=>`${r.label||""}${(o==null?void 0:o.labelSuffix)||""}`),B=k=>{f.value=k},N=k=>{var P,I;const{errors:le,fields:ie}=k;(!le||!ie)&&console.error(k),B("error"),g.value=le?(I=(P=le==null?void 0:le[0])==null?void 0:P.message)!=null?I:`${r.prop} is required`:"",o==null||o.emit("validate",r.prop,!1,g.value)},U=()=>{B("success"),o==null||o.emit("validate",r.prop,!0,"")},z=async k=>{const P=S.value;return new ls({[P]:k}).validate({[P]:E.value},{firstFields:!0}).then(()=>(U(),!0)).catch(le=>(N(le),Promise.reject(le)))},X=async(k,P)=>{if(b)return b=!1,!1;const I=xe(P);if(!M.value)return P==null||P(!1),!1;const le=O(k);return le.length===0?(P==null||P(!0),!0):(B("validating"),z(le).then(()=>(P==null||P(!0),!0)).catch(ie=>{const{fields:he}=ie;return P==null||P(!1,he),I?!1:Promise.reject(he)}))},ge=()=>{B(""),g.value=""},_e=async()=>{const k=o==null?void 0:o.model;if(!k||!r.prop)return;const P=bc(k,r.prop);k2(P.value,_)||(b=!0),P.value=_,await Ze(),ge()},Oe=k=>{h.value.includes(k)||h.value.push(k)},x=k=>{h.value=h.value.filter(P=>P!==k)};Ie(()=>r.error,k=>{g.value=k||"",B(k?"error":"")},{immediate:!0}),Ie(()=>r.validateStatus,k=>B(k||""));const q=fr(Pe(Se({},ts(r)),{$el:p,size:s,validateState:f,labelId:l,inputIds:h,isGroup:T,addInputId:Oe,removeInputId:x,resetField:_e,clearValidate:ge,validate:X}));return st(li,q),lt(()=>{r.prop&&(o==null||o.addField(q),_=YE(E.value))}),tr(()=>{o==null||o.removeField(q)}),t({size:s,validateMessage:g,validateState:f,validate:X,clearValidate:ge,resetField:_e}),(k,P)=>{var I;return Y(),ve("div",{ref_key:"formItemRef",ref:p,class:ae(F(u)),role:F(T)?"group":void 0,"aria-labelledby":F(T)?F(l):void 0},[Q(F(uk),{"is-auto-width":F(v).width==="auto","update-all":((I=F(o))==null?void 0:I.labelWidth)==="auto"},{default:J(()=>[F(w)?(Y(),be(kt(F(C)?"label":"div"),{key:0,id:F(l),for:F(C),class:ae(F(a).e("label")),style:Qe(F(v))},{default:J(()=>[we(k.$slots,"label",{label:F(R)},()=>[Ee(me(F(R)),1)])]),_:3},8,["id","for","class","style"])):Te("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),V("div",{class:ae(F(a).e("content")),style:Qe(F(c))},[we(k.$slots,"default"),Q(dr,{name:`${F(a).namespace.value}-zoom-in-top`},{default:J(()=>[F(D)?we(k.$slots,"error",{key:0,error:g.value},()=>[V("div",{class:ae(F(y))},me(g.value),3)]):Te("v-if",!0)]),_:3},8,["name"])],6)],10,fk)}}}));var J_=He(dk,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const Ml=Ut(RR,{FormItem:J_}),Bl=Ji(J_),pk=qe({trigger:Xo.trigger,placement:Ma.placement,disabled:Xo.disabled,visible:ir.visible,transition:ir.transition,popperOptions:Ma.popperOptions,tabindex:Ma.tabindex,content:ir.content,popperStyle:ir.popperStyle,popperClass:ir.popperClass,enterable:Pe(Se({},ir.enterable),{default:!0}),effect:Pe(Se({},ir.effect),{default:"light"}),teleported:ir.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}}),vk=["update:visible","before-enter","before-leave","after-enter","after-leave"],gk="ElPopover",_k=Ae({name:gk,components:{ElTooltip:Rf},props:pk,emits:vk,setup(e,{emit:t}){const r=Je("popover"),n=oe(null),o=te(()=>{var _;return(_=F(n))==null?void 0:_.popperRef}),i=te(()=>De(e.width)?e.width:`${e.width}px`),s=te(()=>[{width:i.value},e.popperStyle]),a=te(()=>[r.b(),e.popperClass,{[r.m("plain")]:!!e.content}]),l=te(()=>e.transition==="el-fade-in-linear");return{ns:r,kls:a,gpuAcceleration:l,style:s,tooltipRef:n,popperRef:o,hide:()=>{var _;(_=n.value)==null||_.hide()},beforeEnter:()=>{t("before-enter")},beforeLeave:()=>{t("before-leave")},afterEnter:()=>{t("after-enter")},afterLeave:()=>{t("update:visible",!1),t("after-leave")}}}});function mk(e,t,r,n,o,i){const s=Be("el-tooltip");return Y(),be(s,jt({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:J(()=>[e.title?(Y(),ve("div",{key:0,class:ae(e.ns.e("title")),role:"title"},me(e.title),3)):Te("v-if",!0),we(e.$slots,"default",{},()=>[Ee(me(e.content),1)])]),default:J(()=>[e.$slots.reference?we(e.$slots,"reference",{key:0}):Te("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 Mo=He(_k,[["render",mk],["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/index.vue"]]);const ip=(e,t)=>{const r=t.arg||t.value,n=r==null?void 0:r.popperRef;n&&(n.triggerRef=e)};var Su={mounted(e,t){ip(e,t)},updated(e,t){ip(e,t)}};const yk="popover";Mo.install=e=>{e.component(Mo.name,Mo)};Su.install=e=>{e.directive(yk,Su)};const bk=Su;Mo.directive=bk;const Sk=Mo,wk=Sk;function Ck(e){let t;const r=oe(!1),n=fr(Pe(Se({},e),{originalPosition:"",originalOverflow:"",visible:!1}));function o(g){n.text=g}function i(){const g=n.parent;if(!g.vLoadingAddClassList){let p=g.getAttribute("loading-number");p=Number.parseInt(p)-1,p?g.setAttribute("loading-number",p.toString()):(Go(g,"el-loading-parent--relative"),g.removeAttribute("loading-number")),Go(g,"el-loading-parent--hidden")}s(),f.unmount()}function s(){var g,p;(p=(g=m.$el)==null?void 0:g.parentNode)==null||p.removeChild(m.$el)}function a(){var g;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,(g=e.closed)==null||g.call(e)}function l(){!r.value||(r.value=!1,i())}const f=Zv({name:"ElLoading",setup(){return()=>{const g=n.spinner||n.svg,p=Br("svg",Se({class:"circular",viewBox:n.svgViewBox?n.svgViewBox:"25 25 50 50"},g?{innerHTML:g}:{}),[Br("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none"})]),_=n.text?Br("p",{class:"el-loading-text"},[n.text]):void 0;return Br(dr,{name:"el-loading-fade",onAfterLeave:l},{default:J(()=>[ht(Q("div",{style:{backgroundColor:n.background||""},class:["el-loading-mask",n.customClass,n.fullscreen?"is-fullscreen":""]},[Br("div",{class:"el-loading-spinner"},[p,_])]),[[Ht,n.visible]])])})}}}),m=f.mount(document.createElement("div"));return Pe(Se({},ts(n)),{setText:o,remvoeElLoadingChild:s,close:a,handleAfterLeave:l,vm:m,get $el(){return m.$el}})}let pa;const Ek=function(e={}){if(!pt)return;const t=Tk(e);if(t.fullscreen&&pa)return pa;const r=Ck(Pe(Se({},t),{closed:()=>{var o;(o=t.closed)==null||o.call(t),t.fullscreen&&(pa=void 0)}}));Ak(t,t.parent,r),op(t,t.parent,r),t.parent.vLoadingAddClassList=()=>op(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),Ze(()=>r.visible.value=t.visible),t.fullscreen&&(pa=r),r},Tk=e=>{var t,r,n,o;let i;return De(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}},Ak=async(e,t,r)=>{const{nextZIndex:n}=Zi(),o={};if(e.fullscreen)r.originalPosition.value=Xn(document.body,"position"),r.originalOverflow.value=Xn(document.body,"overflow"),o.zIndex=n();else if(e.parent===document.body){r.originalPosition.value=Xn(document.body,"position"),await Ze();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(Xn(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])o[i]=`${e.target.getBoundingClientRect()[i]}px`}else r.originalPosition.value=Xn(t,"position");for(const[i,s]of Object.entries(o))r.$el.style[i]=s},op=(e,t,r)=>{r.originalPosition.value!=="absolute"&&r.originalPosition.value!=="fixed"?cu(t,"el-loading-parent--relative"):Go(t,"el-loading-parent--relative"),e.fullscreen&&e.lock?cu(t,"el-loading-parent--hidden"):Go(t,"el-loading-parent--hidden")},wu=Symbol("ElLoading"),sp=(e,t)=>{var r,n,o,i;const s=t.instance,a=g=>Ke(t.value)?t.value[g]:void 0,l=g=>{const p=De(g)&&(s==null?void 0:s[g])||g;return p&&oe(p)},h=g=>l(a(g)||e.getAttribute(`element-loading-${Rn(g)}`)),f=(r=a("fullscreen"))!=null?r:t.modifiers.fullscreen,m={text:h("text"),svg:h("svg"),svgViewBox:h("svgViewBox"),spinner:h("spinner"),background:h("background"),customClass:h("customClass"),fullscreen:f,target:(n=a("target"))!=null?n:f?void 0:e,body:(o=a("body"))!=null?o:t.modifiers.body,lock:(i=a("lock"))!=null?i:t.modifiers.lock};e[wu]={options:m,instance:Ek(m)}},Lk=(e,t)=>{for(const r of Object.keys(t))ot(t[r])&&(t[r].value=e[r])},X_={mounted(e,t){t.value&&sp(e,t)},updated(e,t){const r=e[wu];t.oldValue!==t.value&&(t.value&&!t.oldValue?sp(e,t):t.value&&t.oldValue?Ke(t.value)&&Lk(t.value,r.options):r==null||r.instance.close())},unmounted(e){var t;(t=e[wu])==null||t.instance.close()}},Z_=["success","info","warning","error"],Ok=qe({customClass:{type:String,default:""},center:{type:Boolean,default:!1},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:3e3},icon:{type:ai,default:""},id:{type:String,default:""},message:{type:Re([String,Object,Function]),default:""},onClose:{type:Re(Function),required:!1},showClose:{type:Boolean,default:!1},type:{type:String,values:Z_,default:"info"},offset:{type:Number,default:20},zIndex:{type:Number,default:0},grouping:{type:Boolean,default:!1},repeatNum:{type:Number,default:1}}),xk={destroy:()=>!0},Rk=Ae({name:"ElMessage",components:Se({ElBadge:_O,ElIcon:Et},Ll),props:Ok,emits:xk,setup(e){const t=Je("message"),r=oe(!1),n=oe(e.type?e.type==="error"?"danger":e.type:"info");let o;const i=te(()=>{const g=e.type;return{[t.bm("icon",g)]:g&&tn[g]}}),s=te(()=>e.icon||tn[e.type]||""),a=te(()=>({top:`${e.offset}px`,zIndex:e.zIndex}));function l(){e.duration>0&&({stop:o}=Ya(()=>{r.value&&f()},e.duration))}function h(){o==null||o()}function f(){r.value=!1}function m({code:g}){g===ze.esc?r.value&&f():l()}return lt(()=>{l(),r.value=!0}),Ie(()=>e.repeatNum,()=>{h(),l()}),Pr(document,"keydown",m),{ns:t,typeClass:i,iconComponent:s,customStyle:a,visible:r,badgeType:n,close:f,clearTimer:h,startTimer:l}}}),kk=["id"],Mk=["innerHTML"];function Bk(e,t,r,n,o,i){const s=Be("el-badge"),a=Be("el-icon"),l=Be("close");return Y(),be(dr,{name:e.ns.b("fade"),onBeforeLeave:e.onClose,onAfterLeave:t[2]||(t[2]=h=>e.$emit("destroy"))},{default:J(()=>[ht(V("div",{id:e.id,class:ae([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:Qe(e.customStyle),role:"alert",onMouseenter:t[0]||(t[0]=(...h)=>e.clearTimer&&e.clearTimer(...h)),onMouseleave:t[1]||(t[1]=(...h)=>e.startTimer&&e.startTimer(...h))},[e.repeatNum>1?(Y(),be(s,{key:0,value:e.repeatNum,type:e.badgeType,class:ae(e.ns.e("badge"))},null,8,["value","type","class"])):Te("v-if",!0),e.iconComponent?(Y(),be(a,{key:1,class:ae([e.ns.e("icon"),e.typeClass])},{default:J(()=>[(Y(),be(kt(e.iconComponent)))]),_:1},8,["class"])):Te("v-if",!0),we(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(Y(),ve(Ye,{key:1},[Te(" Caution here, message could've been compromised, never use user's input as message "),V("p",{class:ae(e.ns.e("content")),innerHTML:e.message},null,10,Mk)],2112)):(Y(),ve("p",{key:0,class:ae(e.ns.e("content"))},me(e.message),3))]),e.showClose?(Y(),be(a,{key:2,class:ae(e.ns.e("closeBtn")),onClick:Dt(e.close,["stop"])},{default:J(()=>[Q(l)]),_:1},8,["class","onClick"])):Te("v-if",!0)],46,kk),[[Ht,e.visible]])]),_:3},8,["name","onBeforeLeave"])}var Pk=He(Rk,[["render",Bk],["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);const Gt=[];let Ik=1;const Vi=function(e={},t){if(!pt)return{close:()=>{}};if(Mt(vu.max)&&Gt.length>=vu.max)return{close:()=>{}};if(!At(e)&&Ke(e)&&e.grouping&&!At(e.message)&&Gt.length){const m=Gt.find(g=>{var p,_,b;return`${(_=(p=g.vm.props)==null?void 0:p.message)!=null?_:""}`==`${(b=e.message)!=null?b:""}`});if(m)return m.vm.component.props.repeatNum+=1,m.vm.component.props.type=(e==null?void 0:e.type)||"info",{close:()=>f.component.proxy.visible=!1}}(De(e)||At(e))&&(e={message:e});let r=e.offset||20;Gt.forEach(({vm:m})=>{var g;r+=(((g=m.el)==null?void 0:g.offsetHeight)||0)+16}),r+=16;const{nextZIndex:n}=Zi(),o=`message_${Ik++}`,i=e.onClose,s=Pe(Se({zIndex:n()},e),{offset:r,id:o,onClose:()=>{Dk(o,i)}});let a=document.body;Ko(e.appendTo)?a=e.appendTo:De(e.appendTo)&&(a=document.querySelector(e.appendTo)),Ko(a)||(a=document.body);const l=document.createElement("div");l.className=`container_${o}`;const h=s.message,f=Q(Pk,s,xe(h)?{default:h}:At(h)?{default:()=>h}:null);return f.appContext=t||Vi._context,f.props.onDestroy=()=>{Di(null,l)},Di(f,l),Gt.push({vm:f}),a.appendChild(l.firstElementChild),{close:()=>f.component.proxy.visible=!1}};Z_.forEach(e=>{Vi[e]=(t={},r)=>((De(t)||At(t))&&(t={message:t}),Vi(Pe(Se({},t),{type:e}),r))});function Dk(e,t){const r=Gt.findIndex(({vm:s})=>e===s.component.props.id);if(r===-1)return;const{vm:n}=Gt[r];if(!n)return;t==null||t(n);const o=n.el.offsetHeight;Gt.splice(r,1);const i=Gt.length;if(!(i<1))for(let s=r;s=0;t--){const r=Gt[t].vm.component;(e=r==null?void 0:r.proxy)==null||e.close()}}Vi.closeAll=Fk;Vi._context=null;const En=Gg(Vi,"$message"),Hk=Ae({name:"ElMessageBox",directives:{TrapFocus:UO},components:Se({ElButton:jr,ElInput:Qi,ElOverlay:F_,ElIcon:Et},Ll),inheritAttrs:!1,props:{buttonSize:{type:String,validator:iT},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}=_T(),n=Je("message-box"),o=oe(!1),{nextZIndex:i}=Zi(),s=fr({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=te(()=>{const L=s.type;return{[n.bm("icon",L)]:L&&tn[L]}}),l=pi(te(()=>e.buttonSize),{prop:!0,form:!0,formItem:!0}),h=te(()=>s.icon||tn[s.type]||""),f=te(()=>!!s.message),m=oe(),g=oe(),p=oe(),_=oe(),b=te(()=>s.confirmButtonClass);Ie(()=>s.inputValue,async L=>{await Ze(),e.boxType==="prompt"&&L!==null&&w()},{immediate:!0}),Ie(()=>o.value,L=>{L&&((e.boxType==="alert"||e.boxType==="confirm")&&Ze().then(()=>{var E,A,M;(M=(A=(E=_.value)==null?void 0:E.$el)==null?void 0:A.focus)==null||M.call(A)}),s.zIndex=i()),e.boxType==="prompt"&&(L?Ze().then(()=>{p.value&&p.value.$el&&C().focus()}):(s.editorErrorMessage="",s.validateError=!1))});const v=te(()=>e.draggable);o_(m,g,v),lt(async()=>{await Ze(),e.closeOnHashChange&&wl(window,"hashchange",c)}),tr(()=>{e.closeOnHashChange&&Cl(window,"hashchange",c)});function c(){!o.value||(o.value=!1,Ze(()=>{s.action&&t("action",s.action)}))}const u=()=>{e.closeOnClickModal&&S(s.distinguishCancelAndClose?"close":"cancel")},d=yf(u),y=L=>{if(s.inputType!=="textarea")return L.preventDefault(),S("confirm")},S=L=>{var E;e.boxType==="prompt"&&L==="confirm"&&!w()||(s.action=L,s.beforeClose?(E=s.beforeClose)==null||E.call(s,L,s,c):c())},w=()=>{if(e.boxType==="prompt"){const L=s.inputPattern;if(L&&!L.test(s.inputValue||""))return s.editorErrorMessage=s.inputErrorMessage||r("el.messagebox.error"),s.validateError=!0,!1;const E=s.inputValidator;if(typeof E=="function"){const A=E(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},C=()=>{const L=p.value.$refs;return L.input||L.textarea},T=()=>{S("close")};return e.closeOnPressEscape?l_({handleClose:T},o):wT(o,"keydown",L=>L.code===ze.esc),e.lockScroll&&a_(o),c_(o),Pe(Se({},ts(s)),{ns:n,overlayEvent:d,visible:o,hasMessage:f,typeClass:a,btnSize:l,iconComponent:h,confirmButtonClasses:b,rootRef:m,headerRef:g,inputRef:p,confirmRef:_,doClose:c,handleClose:T,handleWrapperClick:u,handleInputEnter:y,handleAction:S,t:r})}}),Nk=["aria-label"],$k={key:0},jk=["innerHTML"];function Uk(e,t,r,n,o,i){const s=Be("el-icon"),a=Be("close"),l=Be("el-input"),h=Be("el-button"),f=Be("el-overlay"),m=vy("trap-focus");return Y(),be(dr,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=g=>e.$emit("vanish"))},{default:J(()=>[ht(Q(f,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:J(()=>[V("div",{class:ae(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...g)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...g)),onMousedown:t[9]||(t[9]=(...g)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...g)),onMouseup:t[10]||(t[10]=(...g)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...g))},[ht((Y(),ve("div",{ref:"rootRef",role:"dialog","aria-label":e.title||"dialog","aria-modal":"true",class:ae([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:Qe(e.customStyle),onClick:t[7]||(t[7]=Dt(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(Y(),ve("div",{key:0,ref:"headerRef",class:ae(e.ns.e("header"))},[V("div",{class:ae(e.ns.e("title"))},[e.iconComponent&&e.center?(Y(),be(s,{key:0,class:ae([e.ns.e("status"),e.typeClass])},{default:J(()=>[(Y(),be(kt(e.iconComponent)))]),_:1},8,["class"])):Te("v-if",!0),V("span",null,me(e.title),1)],2),e.showClose?(Y(),ve("button",{key:0,type:"button",class:ae(e.ns.e("headerbtn")),"aria-label":"Close",onClick:t[0]||(t[0]=g=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=Ft(Dt(g=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[Q(s,{class:ae(e.ns.e("close"))},{default:J(()=>[Q(a)]),_:1},8,["class"])],34)):Te("v-if",!0)],2)):Te("v-if",!0),V("div",{class:ae(e.ns.e("content"))},[V("div",{class:ae(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(Y(),be(s,{key:0,class:ae([e.ns.e("status"),e.typeClass])},{default:J(()=>[(Y(),be(kt(e.iconComponent)))]),_:1},8,["class"])):Te("v-if",!0),e.hasMessage?(Y(),ve("div",{key:1,class:ae(e.ns.e("message"))},[we(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(Y(),ve("p",{key:1,innerHTML:e.message},null,8,jk)):(Y(),ve("p",$k,me(e.message),1))])],2)):Te("v-if",!0)],2),ht(V("div",{class:ae(e.ns.e("input"))},[Q(l,{ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=g=>e.inputValue=g),type:e.inputType,placeholder:e.inputPlaceholder,class:ae({invalid:e.validateError}),onKeydown:Ft(e.handleInputEnter,["enter"])},null,8,["modelValue","type","placeholder","class","onKeydown"]),V("div",{class:ae(e.ns.e("errormsg")),style:Qe({visibility:e.editorErrorMessage?"visible":"hidden"})},me(e.editorErrorMessage),7)],2),[[Ht,e.showInput]])],2),V("div",{class:ae(e.ns.e("btns"))},[e.showCancelButton?(Y(),be(h,{key:0,loading:e.cancelButtonLoading,class:ae([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=g=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=Ft(Dt(g=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:J(()=>[Ee(me(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):Te("v-if",!0),ht(Q(h,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:ae([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=g=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=Ft(Dt(g=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:J(()=>[Ee(me(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[Ht,e.showConfirmButton]])],2)],14,Nk)),[[m]])],34)]),_:3},8,["z-index","overlay-class","mask"]),[[Ht,e.visible]])]),_:3})}var qk=He(Hk,[["render",Uk],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const Qo=new Map,Wk=(e,t,r=null)=>{const n=Br(qk,e);return n.appContext=r,Di(n,t),document.body.appendChild(t.firstElementChild),n.component},Vk=()=>document.createElement("div"),zk=(e,t)=>{const r=Vk();e.onVanish=()=>{Di(null,r),Qo.delete(o)},e.onAction=i=>{const s=Qo.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=Wk(e,r,t),o=n.proxy;for(const i in e)Ne(e,i)&&!Ne(o.$props,i)&&(o[i]=e[i]);return Ie(()=>o.message,(i,s)=>{At(i)?n.slots.default=()=>[i]:At(s)&&!At(i)&&delete n.slots.default},{immediate:!0}),o.visible=!0,o};function eo(e,t=null){if(!pt)return Promise.reject();let r;return De(e)||At(e)?e={message:e}:r=e.callback,new Promise((n,o)=>{const i=zk(e,t!=null?t:eo._context);Qo.set(i,{options:e,callback:r,resolve:n,reject:o})})}const Kk=["alert","confirm","prompt"],Gk={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};Kk.forEach(e=>{eo[e]=Yk(e)});function Yk(e){return(t,r,n,o)=>{let i;return Ke(r)?(n=r,i=""):Ja(r)?i="":i=r,eo(Object.assign(Se({title:i,message:t,type:""},Gk[e]),n,{boxType:e}),o)}}eo.close=()=>{Qo.forEach((e,t)=>{t.doClose()}),Qo.clear()};eo._context=null;const vn=eo;vn.install=e=>{vn._context=e._context,e.config.globalProperties.$msgbox=vn,e.config.globalProperties.$messageBox=vn,e.config.globalProperties.$alert=vn.alert,e.config.globalProperties.$confirm=vn.confirm,e.config.globalProperties.$prompt=vn.prompt};const Qa=vn,Q_=["success","info","warning","error"],Jk=qe({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:Re([String,Object]),default:""},id:{type:String,default:""},message:{type:Re([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:Re(Function),default:()=>{}},onClose:{type:Re(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:[...Q_,""],default:""},zIndex:{type:Number,default:0}}),Xk={destroy:()=>!0},Zk=Ae({name:"ElNotification",components:Se({ElIcon:Et},Ll),props:Jk,emits:Xk,setup(e){const t=Je("notification"),r=oe(!1);let n;const o=te(()=>{const p=e.type;return p&&tn[e.type]?t.m(p):""}),i=te(()=>tn[e.type]||e.icon||""),s=te(()=>e.position.endsWith("right")?"right":"left"),a=te(()=>e.position.startsWith("top")?"top":"bottom"),l=te(()=>({[a.value]:`${e.offset}px`,zIndex:e.zIndex}));function h(){e.duration>0&&({stop:n}=Ya(()=>{r.value&&m()},e.duration))}function f(){n==null||n()}function m(){r.value=!1}function g({code:p}){p===ze.delete||p===ze.backspace?f():p===ze.esc?r.value&&m():h()}return lt(()=>{h(),r.value=!0}),Pr(document,"keydown",g),{ns:t,horizontalClass:s,typeClass:o,iconComponent:i,positionStyle:l,visible:r,close:m,clearTimer:f,startTimer:h}}}),Qk=["id"],eM=["textContent"],tM={key:0},rM=["innerHTML"];function nM(e,t,r,n,o,i){const s=Be("el-icon"),a=Be("close");return Y(),be(dr,{name:e.ns.b("fade"),onBeforeLeave:e.onClose,onAfterLeave:t[3]||(t[3]=l=>e.$emit("destroy"))},{default:J(()=>[ht(V("div",{id:e.id,class:ae([e.ns.b(),e.customClass,e.horizontalClass]),style:Qe(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?(Y(),be(s,{key:0,class:ae([e.ns.e("icon"),e.typeClass])},{default:J(()=>[(Y(),be(kt(e.iconComponent)))]),_:1},8,["class"])):Te("v-if",!0),V("div",{class:ae(e.ns.e("group"))},[V("h2",{class:ae(e.ns.e("title")),textContent:me(e.title)},null,10,eM),ht(V("div",{class:ae(e.ns.e("content")),style:Qe(e.title?void 0:{margin:0})},[we(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(Y(),ve(Ye,{key:1},[Te(" Caution here, message could've been compromized, nerver use user's input as message "),Te(" eslint-disable-next-line "),V("p",{innerHTML:e.message},null,8,rM)],2112)):(Y(),ve("p",tM,me(e.message),1))])],6),[[Ht,e.message]]),e.showClose?(Y(),be(s,{key:0,class:ae(e.ns.e("closeBtn")),onClick:Dt(e.close,["stop"])},{default:J(()=>[Q(a)]),_:1},8,["class","onClick"])):Te("v-if",!0)],2)],46,Qk),[[Ht,e.visible]])]),_:3},8,["name","onBeforeLeave"])}var iM=He(Zk,[["render",nM],["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const el={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Cu=16;let oM=1;const zi=function(e={},t=null){if(!pt)return{close:()=>{}};(typeof e=="string"||At(e))&&(e={message:e});const r=e.position||"top-right";let n=e.offset||0;el[r].forEach(({vm:m})=>{var g;n+=(((g=m.el)==null?void 0:g.offsetHeight)||0)+Cu}),n+=Cu;const{nextZIndex:o}=Zi(),i=`notification_${oM++}`,s=e.onClose,a=Pe(Se({zIndex:o(),offset:n},e),{id:i,onClose:()=>{sM(i,r,s)}});let l=document.body;Ko(e.appendTo)?l=e.appendTo:De(e.appendTo)&&(l=document.querySelector(e.appendTo)),Ko(l)||(l=document.body);const h=document.createElement("div"),f=Q(iM,a,At(a.message)?{default:()=>a.message}:null);return f.appContext=t!=null?t:zi._context,f.props.onDestroy=()=>{Di(null,h)},Di(f,h),el[r].push({vm:f}),l.appendChild(h.firstElementChild),{close:()=>{f.component.proxy.visible=!1}}};Q_.forEach(e=>{zi[e]=(t={})=>((typeof t=="string"||At(t))&&(t={message:t}),zi(Pe(Se({},t),{type:e})))});function sM(e,t,r){const n=el[t],o=n.findIndex(({vm:h})=>{var f;return((f=h.component)==null?void 0:f.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 h=o;h{t.component.proxy.visible=!1})}zi.closeAll=aM;zi._context=null;const lM=Gg(zi,"$notify"),$r=Object.create(null);$r.open="0";$r.close="1";$r.ping="2";$r.pong="3";$r.message="4";$r.upgrade="5";$r.noop="6";const Pa=Object.create(null);Object.keys($r).forEach(e=>{Pa[$r[e]]=e});const cM={type:"error",data:"parser error"},uM=typeof Blob=="function"||typeof Blob!="undefined"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",fM=typeof ArrayBuffer=="function",hM=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,em=({type:e,data:t},r,n)=>uM&&t instanceof Blob?r?n(t):ap(t,n):fM&&(t instanceof ArrayBuffer||hM(t))?r?n(t):ap(new Blob([t]),n):n($r[e]+(t||"")),ap=(e,t)=>{const r=new FileReader;return r.onload=function(){const n=r.result.split(",")[1];t("b"+n)},r.readAsDataURL(e)},lp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",mo=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(let e=0;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 h=new ArrayBuffer(t),f=new Uint8Array(h);for(n=0;n>4,f[o++]=(s&15)<<4|a>>2,f[o++]=(a&3)<<6|l&63;return h},pM=typeof ArrayBuffer=="function",tm=(e,t)=>{if(typeof e!="string")return{type:"message",data:rm(e,t)};const r=e.charAt(0);return r==="b"?{type:"message",data:vM(e.substring(1),t)}:Pa[r]?e.length>1?{type:Pa[r],data:e.substring(1)}:{type:Pa[r]}:cM},vM=(e,t)=>{if(pM){const r=dM(e);return rm(r,t)}else return{base64:!0,data:e}},rm=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}},nm=String.fromCharCode(30),gM=(e,t)=>{const r=e.length,n=new Array(r);let o=0;e.forEach((i,s)=>{em(i,!1,a=>{n[s]=a,++o===r&&t(n.join(nm))})})},_M=(e,t)=>{const r=e.split(nm),n=[];for(let o=0;otypeof self!="undefined"?self:typeof window!="undefined"?window:Function("return this")())();function om(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}const yM=setTimeout,bM=clearTimeout;function Pl(e,t){t.useNativeTimers?(e.setTimeoutFn=yM.bind(Sn),e.clearTimeoutFn=bM.bind(Sn)):(e.setTimeoutFn=setTimeout.bind(Sn),e.clearTimeoutFn=clearTimeout.bind(Sn))}const SM=1.33;function wM(e){return typeof e=="string"?CM(e):Math.ceil((e.byteLength||e.size)*SM)}function CM(e){let t=0,r=0;for(let n=0,o=e.length;n=57344?r+=3:(n++,r+=4);return r}class EM extends Error{constructor(t,r,n){super(t),this.description=r,this.context=n,this.type="TransportError"}}class sm extends dt{constructor(t){super(),this.writable=!1,Pl(this,t),this.opts=t,this.query=t.query,this.readyState="",this.socket=t.socket}onError(t,r,n){return super.emitReserved("error",new EM(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=tm(t,this.socket.binaryType);this.onPacket(r)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}}const am="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Eu=64,TM={};let cp=0,va=0,up;function fp(e){let t="";do t=am[e%Eu]+t,e=Math.floor(e/Eu);while(e>0);return t}function lm(){const e=fp(+new Date);return e!==up?(cp=0,up=e):e+"."+fp(cp++)}for(;va{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)};_M(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,gM(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]=lm()),!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=cm(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 Dr(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 Dr extends dt{constructor(t,r){super(),Pl(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=om(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 fm(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=Dr.requestsCount++,Dr.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=OM,t)try{this.xhr.abort()}catch{}typeof document!="undefined"&&delete Dr.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()}}Dr.requestsCount=0;Dr.requests={};if(typeof document!="undefined"){if(typeof attachEvent=="function")attachEvent("onunload",hp);else if(typeof addEventListener=="function"){const e="onpagehide"in Sn?"pagehide":"unload";addEventListener(e,hp,!1)}}function hp(){for(let e in Dr.requests)Dr.requests.hasOwnProperty(e)&&Dr.requests[e].abort()}const kM=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,r)=>r(t,0))(),ga=Sn.WebSocket||Sn.MozWebSocket,dp=!0,MM="arraybuffer",pp=typeof navigator!="undefined"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class BM extends sm{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=pp?{}:om(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=dp&&!pp?r?new ga(t,r):new ga(t):new ga(t,r,n)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType||MM,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{const s={};try{dp&&this.ws.send(i)}catch{}o&&kM(()=>{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]=lm()),this.supportsBinary||(t.b64=1);const o=cm(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!!ga}}const PM={websocket:BM,polling:RM},IM=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,DM=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Tu(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=IM.exec(e||""),i={},s=14;for(;s--;)i[DM[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=FM(i,i.path),i.queryKey=HM(i,i.query),i}function FM(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 HM(e,t){const r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,i){o&&(r[o]=i)}),r}class yn extends dt{constructor(t,r={}){super(),t&&typeof t=="object"&&(r=t,t=null),t?(t=Tu(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=Tu(r.host).host),Pl(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=AM(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=im,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 PM[t](n)}open(){let t;if(this.opts.rememberUpgrade&&yn.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;yn.priorWebsocketSuccess=!1;const o=()=>{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",m=>{if(!n)if(m.type==="pong"&&m.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;yn.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(f(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const g=new Error("probe error");g.transport=r.name,this.emitReserved("upgradeError",g)}}))};function i(){n||(n=!0,f(),r.close(),r=null)}const s=m=>{const g=new Error("probe error: "+m);g.transport=r.name,i(),this.emitReserved("upgradeError",g)};function a(){s("transport closed")}function l(){s("socket closed")}function h(m){r&&m.name!==r.name&&i()}const f=()=>{r.removeListener("open",o),r.removeListener("error",s),r.removeListener("close",a),this.off("close",l),this.off("upgrading",h)};r.once("open",o),r.once("error",s),r.once("close",a),this.once("close",l),this.once("upgrading",h),r.open()}onOpen(){if(this.readyState="open",yn.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{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;n0&&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){yn.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(;ntypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,hm=Object.prototype.toString,UM=typeof Blob=="function"||typeof Blob!="undefined"&&hm.call(Blob)==="[object BlobConstructor]",qM=typeof File=="function"||typeof File!="undefined"&&hm.call(File)==="[object FileConstructor]";function If(e){return $M&&(e instanceof ArrayBuffer||jM(e))||UM&&e instanceof Blob||qM&&e instanceof File}function Ia(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r0;case We.ACK:case We.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}class GM{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=VM(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}var YM=Object.freeze(Object.defineProperty({__proto__:null,protocol:zM,get PacketType(){return We},Encoder:KM,Decoder:Df},Symbol.toStringTag,{value:"Module"}));function _r(e,t,r){return e.on(t,r),function(){e.off(t,r)}}const JM=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class dm extends dt{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=[_r(t,"open",this.onopen.bind(this)),_r(t,"packet",this.onpacket.bind(this)),_r(t,"error",this.onerror.bind(this)),_r(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(JM.hasOwnProperty(t))throw new Error('"'+t+'" is a reserved event name');r.unshift(t);const n={type:We.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.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:We.CONNECT,data:t})}):this.packet({type:We.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 We.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 We.EVENT:case We.BINARY_EVENT:this.onevent(t);break;case We.ACK:case We.BINARY_ACK:this.onack(t);break;case We.DISCONNECT:this.ondisconnect();break;case We.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:We.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:We.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;n0&&e.jitter<=1?e.jitter:0,this.attempts=0}to.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};to.prototype.reset=function(){this.attempts=0};to.prototype.setMin=function(e){this.ms=e};to.prototype.setMax=function(e){this.max=e};to.prototype.setJitter=function(e){this.jitter=e};class Ou extends dt{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,Pl(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 to({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||YM;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 yn(this.uri,this.opts);const r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const o=_r(r,"open",function(){n.onopen(),t&&t()}),i=_r(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(_r(t,"ping",this.onping.bind(this)),_r(t,"data",this.ondata.bind(this)),_r(t,"error",this.onerror.bind(this)),_r(t,"close",this.onclose.bind(this)),_r(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 dm(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;nt()),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 po={};function Bo(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const r=NM(e,t.path||"/socket.io"),n=r.source,o=r.id,i=r.path,s=po[o]&&i in po[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let l;return a?l=new Ou(n,t):(po[o]||(po[o]=new Ou(n,t)),l=po[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(Bo,{Manager:Ou,Socket:dm,io:Bo,connect:Bo});var Ff={exports:{}},pm=function(t,r){return function(){for(var o=new Array(arguments.length),i=0;i=0)return;n==="set-cookie"?r[n]=(r[n]?r[n]:[]).concat([o]):r[n]=r[n]?r[n]+", "+o:o}}),r},gp=qt,L3=gp.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=gp.isString(s)?o(s):s;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}();function $f(e){this.message=e}$f.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};$f.prototype.__CANCEL__=!0;var Dl=$f,ma=qt,O3=m3,x3=y3,R3=mm,k3=E3,M3=A3,B3=L3,kc=Sm,P3=bm,I3=Dl,_p=function(t){return new Promise(function(n,o){var i=t.data,s=t.headers,a=t.responseType,l;function h(){t.cancelToken&&t.cancelToken.unsubscribe(l),t.signal&&t.signal.removeEventListener("abort",l)}ma.isFormData(i)&&delete s["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var m=t.auth.username||"",g=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";s.Authorization="Basic "+btoa(m+":"+g)}var p=k3(t.baseURL,t.url);f.open(t.method.toUpperCase(),R3(p,t.params,t.paramsSerializer),!0),f.timeout=t.timeout;function _(){if(!!f){var v="getAllResponseHeaders"in f?M3(f.getAllResponseHeaders()):null,c=!a||a==="text"||a==="json"?f.responseText:f.response,u={data:c,status:f.status,statusText:f.statusText,headers:v,config:t,request:f};O3(function(y){n(y),h()},function(y){o(y),h()},u),f=null}}if("onloadend"in f?f.onloadend=_:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(_)},f.onabort=function(){!f||(o(kc("Request aborted",t,"ECONNABORTED",f)),f=null)},f.onerror=function(){o(kc("Network Error",t,null,f)),f=null},f.ontimeout=function(){var c=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",u=t.transitional||P3;t.timeoutErrorMessage&&(c=t.timeoutErrorMessage),o(kc(c,t,u.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",f)),f=null},ma.isStandardBrowserEnv()){var b=(t.withCredentials||B3(p))&&t.xsrfCookieName?x3.read(t.xsrfCookieName):void 0;b&&(s[t.xsrfHeaderName]=b)}"setRequestHeader"in f&&ma.forEach(s,function(c,u){typeof i=="undefined"&&u.toLowerCase()==="content-type"?delete s[u]:f.setRequestHeader(u,c)}),ma.isUndefined(t.withCredentials)||(f.withCredentials=!!t.withCredentials),a&&a!=="json"&&(f.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&f.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(l=function(v){!f||(o(!v||v&&v.type?new I3("canceled"):v),f.abort(),f=null)},t.cancelToken&&t.cancelToken.subscribe(l),t.signal&&(t.signal.aborted?l():t.signal.addEventListener("abort",l))),i||(i=null),f.send(i)})},bt=qt,mp=v3,D3=ym,F3=bm,H3={"Content-Type":"application/x-www-form-urlencoded"};function yp(e,t){!bt.isUndefined(e)&&bt.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function N3(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=_p),e}function $3(e,t,r){if(bt.isString(e))try{return(t||JSON.parse)(e),bt.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var Fl={transitional:F3,adapter:N3(),transformRequest:[function(t,r){return mp(r,"Accept"),mp(r,"Content-Type"),bt.isFormData(t)||bt.isArrayBuffer(t)||bt.isBuffer(t)||bt.isStream(t)||bt.isFile(t)||bt.isBlob(t)?t:bt.isArrayBufferView(t)?t.buffer:bt.isURLSearchParams(t)?(yp(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):bt.isObject(t)||r&&r["Content-Type"]==="application/json"?(yp(r,"application/json"),$3(t)):t}],transformResponse:[function(t){var r=this.transitional||Fl.transitional,n=r&&r.silentJSONParsing,o=r&&r.forcedJSONParsing,i=!n&&this.responseType==="json";if(i||o&&bt.isString(t)&&t.length)try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?D3(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, */*"}}};bt.forEach(["delete","get","head"],function(t){Fl.headers[t]={}});bt.forEach(["post","put","patch"],function(t){Fl.headers[t]=bt.merge(H3)});var jf=Fl,j3=qt,U3=jf,q3=function(t,r,n){var o=this||U3;return j3.forEach(n,function(s){t=s.call(o,t,r)}),t},wm=function(t){return!!(t&&t.__CANCEL__)},bp=qt,Mc=q3,W3=wm,V3=jf,z3=Dl;function Bc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new z3("canceled")}var K3=function(t){Bc(t),t.headers=t.headers||{},t.data=Mc.call(t,t.data,t.headers,t.transformRequest),t.headers=bp.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),bp.forEach(["delete","get","head","post","put","patch","common"],function(o){delete t.headers[o]});var r=t.adapter||V3.adapter;return r(t).then(function(o){return Bc(t),o.data=Mc.call(t,o.data,o.headers,t.transformResponse),o},function(o){return W3(o)||(Bc(t),o&&o.response&&(o.response.data=Mc.call(t,o.response.data,o.response.headers,t.transformResponse))),Promise.reject(o)})},Vt=qt,Cm=function(t,r){r=r||{};var n={};function o(f,m){return Vt.isPlainObject(f)&&Vt.isPlainObject(m)?Vt.merge(f,m):Vt.isPlainObject(m)?Vt.merge({},m):Vt.isArray(m)?m.slice():m}function i(f){if(Vt.isUndefined(r[f])){if(!Vt.isUndefined(t[f]))return o(void 0,t[f])}else return o(t[f],r[f])}function s(f){if(!Vt.isUndefined(r[f]))return o(void 0,r[f])}function a(f){if(Vt.isUndefined(r[f])){if(!Vt.isUndefined(t[f]))return o(void 0,t[f])}else return o(void 0,r[f])}function l(f){if(f in r)return o(t[f],r[f]);if(f in t)return o(void 0,t[f])}var h={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 Vt.forEach(Object.keys(t).concat(Object.keys(r)),function(m){var g=h[m]||i,p=g(m);Vt.isUndefined(p)&&g!==l||(n[m]=p)}),n},Em={version:"0.26.1"},G3=Em.version,Uf={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Uf[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var Sp={};Uf.transitional=function(t,r,n){function o(i,s){return"[Axios v"+G3+"] 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&&!Sp[s]&&(Sp[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 Y3(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 J3={assertOptions:Y3,validators:Uf},Tm=qt,X3=mm,wp=d3,Cp=K3,Hl=Cm,Am=J3,Ci=Am.validators;function cs(e){this.defaults=e,this.interceptors={request:new wp,response:new wp}}cs.prototype.request=function(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Hl(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&&Am.assertOptions(n,{silentJSONParsing:Ci.transitional(Ci.boolean),forcedJSONParsing:Ci.transitional(Ci.boolean),clarifyTimeoutError:Ci.transitional(Ci.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=[Cp,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 h=r;o.length;){var f=o.shift(),m=o.shift();try{h=f(h)}catch(g){m(g);break}}try{a=Cp(h)}catch(g){return Promise.reject(g)}for(;s.length;)a=a.then(s.shift(),s.shift());return a};cs.prototype.getUri=function(t){return t=Hl(this.defaults,t),X3(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};Tm.forEach(["delete","get","head","options"],function(t){cs.prototype[t]=function(r,n){return this.request(Hl(n||{},{method:t,url:r,data:(n||{}).data}))}});Tm.forEach(["post","put","patch"],function(t){cs.prototype[t]=function(r,n,o){return this.request(Hl(o||{},{method:t,url:r,data:n}))}});var Z3=cs,Q3=Dl;function Ki(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(e.headers.token=localStorage.getItem("token")||"",e),e=>(En.error({message:"\u8BF7\u6C42\u8D85\u65F6\uFF01"}),Promise.reject(e)));Ct.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")){En({message:"\u8BF7\u6C42\u8D85\u65F6",type:"error",center:!0});return}switch(t==null?void 0:t.data.status){case 401:Qa.alert("\u672A\u767B\u5F55\u6216\u767B\u5F55\u6001\u5DF2\u5931\u6548","Error",{dangerouslyUseHTMLString:!0,confirmButtonText:"\u91CD\u65B0\u767B\u5F55"}).then(()=>{Pu.push("login")});return;case 403:Pu.push("login");return}switch(t==null?void 0:t.status){case 404:En({message:"404 Not Found",type:"error",center:!0});return}return En({message:(t==null?void 0:t.data.msg)||"\u7F51\u7EDC\u9519\u8BEF",type:"error",center:!0}),Promise.reject(e)});var Xr={getOsInfo(e={}){return Ct({url:"/monitor",method:"get",params:e})},getIpInfo(e={}){return Ct({url:"/ip-info",method:"get",params:e})},updateSSH(e){return Ct({url:"/update-ssh",method:"post",data:e})},removeSSH(e){return Ct({url:"/remove-ssh",method:"post",data:{host:e}})},existSSH(e){return Ct({url:"/exist-ssh",method:"post",data:{host:e}})},getCommand(e){return Ct({url:"/command",method:"get",params:{host:e}})},getHostList(){return Ct({url:"/host-list",method:"get"})},saveHost(e){return Ct({url:"/host-save",method:"post",data:e})},updateHost(e){return Ct({url:"/host-save",method:"put",data:e})},removeHost(e){return Ct({url:"/host-remove",method:"post",data:e})},getPubPem(){return Ct({url:"/get-pub-pem",method:"get"})},login(e){return Ct({url:"/login",method:"post",data:e})},updatePwd(e){return Ct({url:"/pwd",method:"put",data:e})},updateHostSort(e){return Ct({url:"/host-sort",method:"put",data:e})}},qr=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r};const aB={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 Xr.updateHost(Object.assign({},this.hostForm,{oldHost:e}));this.$message({type:"success",center:!0,message:t})}else{let{msg:e}=await Xr.saveHost(this.hostForm);this.$message({type:"success",center:!0,message:e})}this.visible=!1,this.$emit("update-list"),this.hostForm={name:"",host:""}})}}},lB={class:"dialog-footer"},cB=Ee("\u5173\u95ED"),uB=Ee("\u786E\u8BA4");function fB(e,t,r,n,o,i){const s=Qi,a=Bl,l=Ml,h=jr,f=as;return Y(),be(f,{modelValue:i.visible,"onUpdate:modelValue":t[3]||(t[3]=m=>i.visible=m),width:"400px",title:i.title,"close-on-click-modal":!1},{footer:J(()=>[V("span",lB,[Q(h,{onClick:t[2]||(t[2]=m=>i.visible=!1)},{default:J(()=>[cB]),_:1}),Q(h,{type:"primary",onClick:i.handleSave},{default:J(()=>[uB]),_:1},8,["onClick"])])]),default:J(()=>[Q(l,{ref:"new-host-form",model:o.hostForm,rules:o.rules,"hide-required-asterisk":!0,"label-suffix":"\uFF1A","label-width":"90px"},{default:J(()=>[Q(a,{label:"\u4E3B\u673A\u522B\u540D",prop:"name"},{default:J(()=>[Q(s,{modelValue:o.hostForm.name,"onUpdate:modelValue":t[0]||(t[0]=m=>o.hostForm.name=m),modelModifiers:{trim:!0},clearable:"",placeholder:"\u4E3B\u673A\u522B\u540D",autocomplete:"off"},null,8,["modelValue"])]),_:1}),Q(a,{label:"IP/\u57DF\u540D",prop:"host"},{default:J(()=>[Q(s,{modelValue:o.hostForm.host,"onUpdate:modelValue":t[1]||(t[1]=m=>o.hostForm.host=m),modelModifiers:{trim:!0},clearable:"",placeholder:"IP/\u57DF\u540D",autocomplete:"off",onKeyup:Ft(i.handleSave,["enter"])},null,8,["modelValue","onKeyup"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue","title"])}var Om=qr(aB,[["render",fB],["__scopeId","data-v-048e5b8a"]]);const hB={name:"IconSvg",props:{name:{type:String,default:""}},computed:{href(){return`#${this.name}`}}},dB={class:"icon","aria-hidden":"true"},pB=["xlink:href"];function vB(e,t,r,n,o,i){return Y(),ve("svg",dB,[V("use",{"xlink:href":i.href},null,8,pB)])}var xm=qr(hB,[["render",vB],["__scopeId","data-v-81152c44"]]);const gB={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(){document.getElementById("privateKey").click()},handleSelectPrivateKeyFile(e){let t=e.target.files[0],r=new FileReader;r.onload=n=>{this.sshForm.privateKey=n.target.result},r.readAsText(t)},handleSaveSSH(){this.$refs["ssh-form"].validate().then(async()=>{let{data:e}=await Xr.updateSSH(this.sshForm);this.$message({type:"success",center:!0,message:e}),this.visible=!1,setTimeout(()=>{window.open(`/terminal?host=${this.tempHost}&name=${this.name}`)},1e3)})},userSearch(e,t){let r=e?this.defaultUsers.filter(n=>n.value.includes(e)):this.defaultUsers;t(r)}}},_B={class:"value"},mB=Ee("\u5BC6\u94A5"),yB=Ee("\u5BC6\u7801"),bB=Ee(" \u9009\u62E9\u79C1\u94A5... "),SB={class:"dialog-footer"},wB=Ee("\u53D6\u6D88"),CB=Ee("\u4FDD\u5B58\u5E76\u8FDE\u63A5");function EB(e,t,r,n,o,i){const s=Qi,a=Bl,l=fO,h=cx,f=jr,m=Ml,g=as;return Y(),be(g,{modelValue:i.visible,"onUpdate:modelValue":t[10]||(t[10]=p=>i.visible=p),title:"SSH\u8FDE\u63A5","close-on-click-modal":!1},{footer:J(()=>[V("span",SB,[Q(f,{onClick:t[9]||(t[9]=p=>i.visible=!1)},{default:J(()=>[wB]),_:1}),Q(f,{type:"primary",onClick:i.handleSaveSSH},{default:J(()=>[CB]),_:1},8,["onClick"])])]),default:J(()=>[Q(m,{ref:"ssh-form",model:o.sshForm,rules:o.rules,"hide-required-asterisk":!0,"label-suffix":"\uFF1A","label-width":"90px"},{default:J(()=>[Q(a,{label:"\u4E3B\u673A",prop:"host"},{default:J(()=>[Q(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}),Q(a,{label:"\u7AEF\u53E3",prop:"port"},{default:J(()=>[Q(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}),Q(a,{label:"\u7528\u6237\u540D",prop:"username"},{default:J(()=>[Q(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:J(({item:p})=>[V("div",_B,me(p.value),1)]),_:1},8,["modelValue","fetch-suggestions"])]),_:1}),Q(a,{label:"\u8BA4\u8BC1\u65B9\u5F0F",prop:"type"},{default:J(()=>[Q(h,{modelValue:o.sshForm.type,"onUpdate:modelValue":t[3]||(t[3]=p=>o.sshForm.type=p),modelModifiers:{trim:!0},label:"privateKey"},{default:J(()=>[mB]),_:1},8,["modelValue"]),Q(h,{modelValue:o.sshForm.type,"onUpdate:modelValue":t[4]||(t[4]=p=>o.sshForm.type=p),modelModifiers:{trim:!0},label:"password"},{default:J(()=>[yB]),_:1},8,["modelValue"])]),_:1}),o.sshForm.type==="password"?(Y(),be(a,{key:0,prop:"password",label:"\u5BC6\u7801"},{default:J(()=>[Q(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})):Te("",!0),o.sshForm.type==="privateKey"?(Y(),be(a,{key:1,prop:"privateKey",label:"\u5BC6\u94A5"},{default:J(()=>[Q(f,{type:"primary",size:"small",onClick:i.handleClickUploadBtn},{default:J(()=>[bB]),_:1},8,["onClick"]),V("input",{id:"privateKey",type:"file",name:"privateKey",style:{display:"none"},onChange:t[6]||(t[6]=(...p)=>i.handleSelectPrivateKeyFile&&i.handleSelectPrivateKeyFile(...p))},null,32),Q(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})):Te("",!0),Q(a,{prop:"command",label:"\u6267\u884C\u6307\u4EE4"},{default:J(()=>[Q(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 TB=qr(gB,[["render",EB]]);const AB={name:"HostCard",components:{SSHForm:TB,NewHost:Om},props:{hostInfo:{required:!0,type:Object},hiddenIp:{required:!0,type: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=oc(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 Xr.existSSH(e);if(console.log("\u662F\u5426\u5B58\u5728\u51ED\u8BC1:",r),r)return window.open(`/terminal?host=${e}&name=${t}`);if(!e)return En({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(){Qa.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 Xr.removeSSH(e);En({message:t,type:"success",center:!0})})},handleRemoveHost(){Qa.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 Xr.removeHost({host:e});En({message:t,type:"success",center:!0}),this.$emit("update-list")})}}},et=e=>(dv("data-v-46a123e6"),e=e(),pv(),e),LB={class:"host-state"},OB={key:0,class:"offline"},xB={key:1,class:"online"},RB={class:"info"},kB={class:"weizhi field"},MB={class:"field-detail"},BB=et(()=>V("h2",null,"\u7CFB\u7EDF",-1)),PB=et(()=>V("span",null,"\u540D\u79F0:",-1)),IB=et(()=>V("span",null,"\u7C7B\u578B:",-1)),DB=et(()=>V("span",null,"\u67B6\u6784:",-1)),FB=et(()=>V("span",null,"\u5E73\u53F0:",-1)),HB=et(()=>V("span",null,"\u7248\u672C:",-1)),NB=et(()=>V("span",null,"\u5F00\u673A\u65F6\u957F:",-1)),$B=et(()=>V("span",null,"\u672C\u5730IP:",-1)),jB=et(()=>V("span",null,"\u8FDE\u63A5\u6570:",-1)),UB={class:"fields"},qB={class:"weizhi field"},WB={class:"field-detail"},VB=et(()=>V("h2",null,"\u4F4D\u7F6E\u4FE1\u606F",-1)),zB=et(()=>V("span",null,"\u8BE6\u7EC6:",-1)),KB=et(()=>V("span",null,"\u63D0\u4F9B\u5546:",-1)),GB=et(()=>V("span",null,"\u7EBF\u8DEF:",-1)),YB={class:"fields"},JB={class:"cpu field"},XB={class:"field-detail"},ZB=et(()=>V("h2",null,"CPU",-1)),QB=et(()=>V("span",null,"\u5229\u7528\u7387:",-1)),eP=et(()=>V("span",null,"\u7269\u7406\u6838\u5FC3:",-1)),tP=et(()=>V("span",null,"\u578B\u53F7:",-1)),rP={class:"fields"},nP={class:"ram field"},iP={class:"field-detail"},oP=et(()=>V("h2",null,"\u5185\u5B58",-1)),sP=et(()=>V("span",null,"\u603B\u5927\u5C0F:",-1)),aP=et(()=>V("span",null,"\u5DF2\u4F7F\u7528:",-1)),lP=et(()=>V("span",null,"\u5360\u6BD4:",-1)),cP=et(()=>V("span",null,"\u7A7A\u95F2:",-1)),uP={class:"fields"},fP={class:"yingpan field"},hP={class:"field-detail"},dP=et(()=>V("h2",null,"\u5B58\u50A8",-1)),pP=et(()=>V("span",null,"\u603B\u7A7A\u95F4:",-1)),vP=et(()=>V("span",null,"\u5DF2\u4F7F\u7528:",-1)),gP=et(()=>V("span",null,"\u5269\u4F59:",-1)),_P=et(()=>V("span",null,"\u5360\u6BD4:",-1)),mP={class:"fields"},yP={class:"wangluo field"},bP={class:"field-detail"},SP=et(()=>V("h2",null,"\u7F51\u5361",-1)),wP={class:"fields"},CP={class:"fields terminal"},EP=Ee(" Web SSH "),TP=Ee("\u79FB\u9664\u4E3B\u673A"),AP=Ee("\u79FB\u9664\u51ED\u8BC1");function LP(e,t,r,n,o,i){const s=xm,a=wk,l=CR,h=ER,f=wR,m=Be("SSHForm"),g=Be("NewHost"),p=KO;return Y(),be(p,{shadow:"always",class:"host-card"},{default:J(()=>{var _,b,v,c,u,d;return[V("div",LB,[i.isError?(Y(),ve("span",OB,"\u672A\u8FDE\u63A5")):(Y(),ve("span",xB,"\u5DF2\u8FDE\u63A5"))]),V("div",RB,[V("div",kB,[Q(a,{placement:"bottom-start",width:200,trigger:"hover"},{reference:J(()=>[Q(s,{name:"icon-fuwuqi",class:"svg-icon"})]),default:J(()=>[V("div",MB,[BB,V("h3",null,[PB,Ee(" "+me(i.osInfo.hostname),1)]),V("h3",null,[IB,Ee(" "+me(i.osInfo.type),1)]),V("h3",null,[DB,Ee(" "+me(i.osInfo.arch),1)]),V("h3",null,[FB,Ee(" "+me(i.osInfo.platform),1)]),V("h3",null,[HB,Ee(" "+me(i.osInfo.release),1)]),V("h3",null,[NB,Ee(" "+me(e.$filters.formatTime(i.osInfo.uptime)),1)]),V("h3",null,[$B,Ee(" "+me(i.osInfo.ip),1)]),V("h3",null,[jB,Ee(" "+me(i.openedCount||0),1)])])]),_:1}),V("div",UB,[V("span",{class:"name",onClick:t[0]||(t[0]=(...y)=>i.handleUpdateName&&i.handleUpdateName(...y))},[Ee(me(i.name||"--")+" ",1),Q(s,{name:"icon-xiugai",class:"svg-icon",title:"askjfd"})]),V("span",null,me(((_=i.osInfo)==null?void 0:_.type)||"--"),1)])]),V("div",qB,[Q(a,{placement:"bottom-start",width:200,trigger:"hover"},{reference:J(()=>[Q(s,{name:"icon-position",class:"svg-icon"})]),default:J(()=>[V("div",WB,[VB,V("h3",null,[zB,Ee(" "+me(i.ipInfo.country||"--")+" "+me(i.ipInfo.regionName)+" "+me(i.ipInfo.city),1)]),V("h3",null,[KB,Ee(" "+me(i.ipInfo.isp||"--"),1)]),V("h3",null,[GB,Ee(" "+me(i.ipInfo.as||"--"),1)])])]),_:1}),V("div",YB,[V("span",null,me(`${((b=i.ipInfo)==null?void 0:b.country)||"--"} ${((v=i.ipInfo)==null?void 0:v.regionName)||"--"} ${((c=i.ipInfo)==null?void 0:c.city)||"--"}`),1),V("span",null,me(i.hostIp),1)])]),V("div",JB,[Q(a,{placement:"bottom-start",width:200,trigger:"hover"},{reference:J(()=>[Q(s,{name:"icon-xingzhuang",class:"svg-icon"})]),default:J(()=>[V("div",XB,[ZB,V("h3",null,[QB,Ee(" "+me(i.cpuInfo.cpuUsage)+"%",1)]),V("h3",null,[eP,Ee(" "+me(i.cpuInfo.cpuCount),1)]),V("h3",null,[tP,Ee(" "+me(i.cpuInfo.cpuModel),1)])])]),_:1}),V("div",rP,[V("span",{style:Qe({color:i.setColor(i.cpuInfo.cpuUsage)})},me(i.cpuInfo.cpuUsage||"0")+"%",5),V("span",null,me(i.cpuInfo.cpuCount||"--")+" \u6838\u5FC3",1)])]),V("div",nP,[Q(a,{placement:"bottom-start",width:200,trigger:"hover"},{reference:J(()=>[Q(s,{name:"icon-neicun1",class:"svg-icon"})]),default:J(()=>[V("div",iP,[oP,V("h3",null,[sP,Ee(" "+me(e.$filters.toFixed(i.memInfo.totalMemMb/1024))+" GB",1)]),V("h3",null,[aP,Ee(" "+me(e.$filters.toFixed(i.memInfo.usedMemMb/1024))+" GB",1)]),V("h3",null,[lP,Ee(" "+me(e.$filters.toFixed(i.memInfo.usedMemPercentage))+"%",1)]),V("h3",null,[cP,Ee(" "+me(e.$filters.toFixed(i.memInfo.freeMemMb/1024))+" GB",1)])])]),_:1}),V("div",uP,[V("span",{style:Qe({color:i.setColor(i.memInfo.usedMemPercentage)})},me(e.$filters.toFixed(i.memInfo.usedMemPercentage))+"%",5),V("span",null,me(e.$filters.toFixed(i.memInfo.usedMemMb/1024))+" | "+me(e.$filters.toFixed(i.memInfo.totalMemMb/1024))+" GB",1)])]),V("div",fP,[Q(a,{placement:"bottom-start",width:200,trigger:"hover"},{reference:J(()=>[Q(s,{name:"icon-xingzhuang1",class:"svg-icon"})]),default:J(()=>[V("div",hP,[dP,V("h3",null,[pP,Ee(" "+me(i.driveInfo.totalGb||"--")+" GB",1)]),V("h3",null,[vP,Ee(" "+me(i.driveInfo.usedGb||"--")+" GB",1)]),V("h3",null,[gP,Ee(" "+me(i.driveInfo.freeGb||"--")+" GB",1)]),V("h3",null,[_P,Ee(" "+me(i.driveInfo.usedPercentage||"--")+"%",1)])])]),_:1}),V("div",mP,[V("span",{style:Qe({color:i.setColor(i.driveInfo.usedPercentage)})},me(i.driveInfo.usedPercentage||"--")+"%",5),V("span",null,me(i.driveInfo.usedGb||"--")+" | "+me(i.driveInfo.totalGb||"--")+" GB",1)])]),V("div",yP,[Q(a,{placement:"bottom-start",width:200,trigger:"hover"},{reference:J(()=>[Q(s,{name:"icon-wangluo1",class:"svg-icon"})]),default:J(()=>[V("div",bP,[SP,(Y(!0),ve(Ye,null,dl(i.netstatInfo.netCards,(y,S)=>(Y(),ve("div",{key:S,style:{display:"flex","flex-direction":"column"}},[V("h3",null,[V("span",null,me(S),1),V("div",null,"\u2191 "+me(e.$filters.toFixed(y==null?void 0:y.outputMb)||0)+"MB / s",1),V("div",null,"\u2193 "+me(e.$filters.toFixed(y==null?void 0:y.inputMb)||0)+"MB / s",1)])]))),128))])]),_:1}),V("div",wP,[V("span",null,"\u2191 "+me(e.$filters.toFixed((u=i.netstatInfo.netTotal)==null?void 0:u.outputMb)||0)+"MB / s",1),V("span",null,"\u2193 "+me(e.$filters.toFixed((d=i.netstatInfo.netTotal)==null?void 0:d.inputMb)||0)+"MB / s",1)])]),V("div",CP,[Q(f,{class:"web-ssh","split-button":"",type:"primary",trigger:"click",onClick:i.handleSSH},{dropdown:J(()=>[Q(h,null,{default:J(()=>[Q(l,{onClick:i.handleRemoveHost},{default:J(()=>[TP]),_:1},8,["onClick"]),Q(l,{onClick:i.handleRemoveSSH},{default:J(()=>[AP]),_:1},8,["onClick"])]),_:1})]),default:J(()=>[EP]),_:1},8,["onClick"])])]),Q(m,{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"]),Q(g,{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 OP=qr(AB,[["render",LP],["__scopeId","data-v-46a123e6"]]),xP="0123456789abcdefghijklmnopqrstuvwxyz";function Kr(e){return xP.charAt(e)}function RP(e,t){return e&t}function ya(e,t){return e|t}function Tp(e,t){return e^t}function Ap(e,t){return e&~t}function kP(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 MP(e){for(var t=0;e!=0;)e&=e-1,++t;return t}var xi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Rm="=";function tl(e){var t,r,n="";for(t=0;t+3<=e.length;t+=3)r=parseInt(e.substring(t,t+3),16),n+=xi.charAt(r>>6)+xi.charAt(r&63);for(t+1==e.length?(r=parseInt(e.substring(t,t+1),16),n+=xi.charAt(r<<2)):t+2==e.length&&(r=parseInt(e.substring(t,t+2),16),n+=xi.charAt(r>>2)+xi.charAt((r&3)<<4));(n.length&3)>0;)n+=Rm;return n}function Lp(e){var t="",r,n=0,o=0;for(r=0;r>2),o=i&3,n=1):n==1?(t+=Kr(o<<2|i>>4),o=i&15,n=2):n==2?(t+=Kr(o),t+=Kr(i>>2),o=i&3,n=3):(t+=Kr(o<<2|i>>4),t+=Kr(i&15),n=0))}return n==1&&(t+=Kr(o<<2)),t}var Ei,BP={decode:function(e){var t;if(Ei===void 0){var r="0123456789ABCDEF",n=` \f \r \xA0\u2028\u2029`;for(Ei={},t=0;t<16;++t)Ei[r.charAt(t)]=t;for(r=r.toLowerCase(),t=10;t<16;++t)Ei[r.charAt(t)]=t;for(t=0;t=2?(o[o.length]=i,i=0,s=0):i<<=4}}if(s)throw new Error("Hex encoding incomplete: 4 bits missing");return o}},Vn,ku={decode:function(e){var t;if(Vn===void 0){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=`= \f \r \xA0\u2028\u2029`;for(Vn=Object.create(null),t=0;t<64;++t)Vn[r.charAt(t)]=t;for(Vn["-"]=62,Vn._=63,t=0;t=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=ku.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 ku.decode(e)}},Ti=1e13,yo=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;i0&&(n[i]=r)},e.prototype.sub=function(t){var r=this.buf,n=r.length,o,i;for(o=0;o=0;--o)n+=(Ti+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*Ti+t[n];return r},e.prototype.simplify=function(){var t=this.buf;return t.length==1?t[0]:this},e}(),km="\u2026",PP=/^(\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)?)?$/,IP=/^(\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 Pi(e,t){return e.length>t&&(e=e.substring(0,t)+km),e}var Pc=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;i176)return!1}return!0},e.prototype.parseStringISO=function(t,r){for(var n="",o=t;o191&&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;s127,i=o?255:0,s,a="";n==i&&++t4){for(a=n,s<<=3;((+a^i)&128)==0;)a=+a<<1,--s;a="("+s+` bit) `}o&&(n=n-256);for(var l=new yo(n),h=t+1;h=f;--m)a+=h>>m&1?"1":"0";if(a.length>n)return s+Pi(a,n)}return s+a},e.prototype.parseOctetString=function(t,r,n){if(this.isASCII(t,r))return Pi(this.parseStringISO(t,r),n);var o=r-t,i="("+o+` byte) `;n/=2,o>n&&(r=t+n);for(var s=t;sn&&(i+=km),i},e.prototype.parseOID=function(t,r,n){for(var o="",i=new yo,s=0,a=t;an)return Pi(o,n);i=new yo,s=0}}return s>0&&(o+=".incomplete"),o},e}(),DP=function(){function e(t,r,n,o,i){if(!(o instanceof Op))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 Pi(this.stream.parseStringUTF(r,r+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return Pi(this.stream.parseStringISO(r,r+n),t);case 30:return Pi(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;n6)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>6,this.tagConstructed=(r&32)!==0,this.tagNumber=r&31,this.tagNumber==31){var n=new yo;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}(),Tn,FP=0xdeadbeefcafe,xp=(FP&16777215)==15715070,Rt=[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],HP=(1<<26)/Rt[Rt.length-1],Fe=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<0)for(l>l)>0&&(i=!0,s=Kr(o));a>=0;)l>(l+=this.DB-r)):(o=this[a]>>(l-=r)&n,l<=0&&(l+=this.DB,--a)),o>0&&(i=!0),i&&(s+=Kr(o));return i?s:"0"},e.prototype.negate=function(){var t=$e();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)+ba(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var r=$e();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 Rp(r):n=new kp(r),this.exp(t,n)},e.prototype.clone=function(){var t=$e();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)<>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>n)!=(this.s&this.DM)>>n&&(r[i++]=o|this.s<=0;)n<8?(o=(this[t]&(1<>(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=$e();return this.bitwiseTo(t,RP,r),r},e.prototype.or=function(t){var r=$e();return this.bitwiseTo(t,ya,r),r},e.prototype.xor=function(t){var r=$e();return this.bitwiseTo(t,Tp,r),r},e.prototype.andNot=function(t){var r=$e();return this.bitwiseTo(t,Ap,r),r},e.prototype.not=function(){for(var t=$e(),r=0;r=this.t?this.s!=0:(this[r]&1<1){var m=$e();for(s.sqrTo(a[1],m);l<=f;)a[l]=$e(),s.mulTo(m,a[l-2],a[l]),l+=2}var g=t.t-1,p,_=!0,b=$e(),v;for(n=ba(t[g])-1;g>=0;){for(n>=h?p=t[g]>>n-h&f:(p=(t[g]&(1<0&&(p|=t[g-1]>>this.DB+n-h)),l=o;(p&1)==0;)p>>=1,--l;if((n-=l)<0&&(n+=this.DB,--g),_)a[p].copyTo(i),_=!1;else{for(;l>1;)s.sqrTo(i,b),s.sqrTo(b,i),l-=2;l>0?s.sqrTo(i,b):(v=i,i=b,b=v),s.mulTo(b,a[p],i)}for(;g>=0&&(t[g]&1<=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 NP)},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(i0&&(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]<=Rt[Rt.length-1]){for(r=0;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:Bp(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):this[this.t-1]|=a<=this.DB&&(s-=this.DB)}n==8&&(+t[0]&128)!=0&&(this.s=-1,s>0&&(this[this.t-1]|=(1<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=0;--l)r[l+s+1]=this[l]>>o|a,a=(this[l]&i)<=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;for(var a=n+1;a>o;o>0&&(r[this.t-n-1]|=(this.s&s)<>=this.DB;if(t.t>=this.DB;o+=this.s}else{for(o+=this.s;n>=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=0;)t[n]=0;for(n=0;n=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.t0?(o.lShiftTo(h,s),i.lShiftTo(h,n)):(o.copyTo(s),i.copyTo(n));var f=s.t,m=s[f-1];if(m!=0){var g=m*(1<1?s[f-2]>>this.F2:0),p=this.FV/g,_=(1<=0&&(n[n.t++]=1,n.subTo(u,n)),e.ONE.dlShiftTo(f,u),u.subTo(s,s);s.t=0;){var d=n[--v]==m?this.DM:Math.floor(n[v]*p+(n[v-1]+b)*_);if((n[v]+=s.am(0,d,n,c,0,f))0&&n.rShiftTo(h,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=$e(),o=$e(),i=r.convert(this),s=ba(t)-1;for(i.copyTo(n);--s>=0;)if(r.sqrTo(n,o),(t&1<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=mn(n),i=$e(),s=$e(),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=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),ya,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<>=this.DB;if(t.t>=this.DB;o+=this.s}else{for(o+=this.s;n>=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=0;)n[o]=0;for(o=Math.max(r-this.t,0);o0)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>Rt.length&&(t=Rt.length);for(var i=$e(),s=0;s0&&(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),ya,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<=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}(),kp=function(){function e(t){this.m=t,this.mp=t.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(r,r),r},e.prototype.revert=function(t){var r=$e();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>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}(),$P=function(){function e(t){this.m=t,this.r2=$e(),this.q3=$e(),Fe.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=$e();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 $e(){return new Fe(null)}function at(e,t){return new Fe(e,t)}var Mp=typeof navigator!="undefined";Mp&&xp&&navigator.appName=="Microsoft Internet Explorer"?(Fe.prototype.am=function(t,r,n,o,i,s){for(var a=r&32767,l=r>>15;--s>=0;){var h=this[t]&32767,f=this[t++]>>15,m=l*h+f*a;h=a*h+((m&32767)<<15)+n[o]+(i&1073741823),i=(h>>>30)+(m>>>15)+l*f+(i>>>30),n[o++]=h&1073741823}return i},Tn=30):Mp&&xp&&navigator.appName!="Netscape"?(Fe.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},Tn=26):(Fe.prototype.am=function(t,r,n,o,i,s){for(var a=r&16383,l=r>>14;--s>=0;){var h=this[t]&16383,f=this[t++]>>14,m=l*h+f*a;h=a*h+((m&16383)<<14)+n[o]+i,i=(h>>28)+(m>>14)+l*f,n[o++]=h&268435455}return i},Tn=28);Fe.prototype.DB=Tn;Fe.prototype.DM=(1<>>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}Fe.ZERO=mn(0);Fe.ONE=mn(1);var jP=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 UP(){return new jP}var Mm=256,Sa,wn=null,mr;if(wn==null){wn=[],mr=0;var wa=void 0;if(window.crypto&&window.crypto.getRandomValues){var Ic=new Uint32Array(256);for(window.crypto.getRandomValues(Ic),wa=0;wa=256||mr>=Mm){window.removeEventListener?window.removeEventListener("mousemove",Ea,!1):window.detachEvent&&window.detachEvent("onmousemove",Ea);return}try{var t=e.x+e.y;wn[mr++]=t&255,Ca+=1}catch{}};window.addEventListener?window.addEventListener("mousemove",Ea,!1):window.attachEvent&&window.attachEvent("onmousemove",Ea)}function qP(){if(Sa==null){for(Sa=UP();mr=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 Mu,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 Fe(r)}var zP=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=at(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=VP(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;a0&&r.length>0?(this.n=at(t,16),this.e=parseInt(r,16),this.d=at(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=at(t,16),this.e=parseInt(r,16),this.d=at(n,16),this.p=at(o,16),this.q=at(i,16),this.dmp1=at(s,16),this.dmq1=at(a,16),this.coeff=at(l,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(t,r){var n=new Mu,o=t>>1;this.e=parseInt(r,16);for(var i=new Fe(r,16);;){for(;this.p=new Fe(t-o,1,n),!(this.p.subtract(Fe.ONE).gcd(i).compareTo(Fe.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new Fe(o,1,n),!(this.q.subtract(Fe.ONE).gcd(i).compareTo(Fe.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(Fe.ONE),l=this.q.subtract(Fe.ONE),h=a.multiply(l);if(h.gcd(i).compareTo(Fe.ONE)==0){this.n=this.p.multiply(this.q),this.d=i.modInverse(h),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=at(t,16),n=this.doPrivate(r);return n==null?null:KP(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(t,r,n){var o=new Mu,i=t>>1;this.e=parseInt(r,16);var s=new Fe(r,16),a=this,l=function(){var h=function(){if(a.p.compareTo(a.q)<=0){var g=a.p;a.p=a.q,a.q=g}var p=a.p.subtract(Fe.ONE),_=a.q.subtract(Fe.ONE),b=p.multiply(_);b.gcd(s).compareTo(Fe.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(_),a.coeff=a.q.modInverse(a.p),setTimeout(function(){n()},0)):setTimeout(l,0)},f=function(){a.q=$e(),a.q.fromNumberAsync(i,1,o,function(){a.q.subtract(Fe.ONE).gcda(s,function(g){g.compareTo(Fe.ONE)==0&&a.q.isProbablePrime(10)?setTimeout(h,0):setTimeout(f,0)})})},m=function(){a.p=$e(),a.p.fromNumberAsync(t-i,1,o,function(){a.p.subtract(Fe.ONE).gcda(s,function(g){g.compareTo(Fe.ONE)==0&&a.p.isProbablePrime(10)?setTimeout(f,0):setTimeout(m,0)})})};setTimeout(m,0)};setTimeout(l,0)},e.prototype.sign=function(t,r,n){var o=GP(n),i=o+r(t).toString(),s=WP(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=at(r,16),i=this.doPublic(o);if(i==null)return null;var s=i.toString(16).replace(/^1f+00/,""),a=YP(s);return a==n(t).toString()},e}();function KP(e,t){for(var r=e.toByteArray(),n=0;n=r.length)return null;for(var o="";++n191&&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 Ha={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function GP(e){return Ha[e]||""}function YP(e){for(var t in Ha)if(Ha.hasOwnProperty(t)){var r=Ha[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 ct={};ct.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;oMIT License */var ne={};(typeof ne.asn1=="undefined"||!ne.asn1)&&(ne.asn1={});ne.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;i15)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""}};ne.asn1.DERAbstractString=function(e){ne.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))};ct.lang.extend(ne.asn1.DERAbstractString,ne.asn1.ASN1Object);ne.asn1.DERAbstractTime=function(e){ne.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),h=o(String(i.getHours()),2),f=o(String(i.getMinutes()),2),m=o(String(i.getSeconds()),2),g=s+a+l+h+f+m;if(n===!0){var p=i.getMilliseconds();if(p!=0){var _=o(String(p),3);_=_.replace(/[0]+$/,""),g=g+"."+_}}return g+"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}};ct.lang.extend(ne.asn1.DERAbstractTime,ne.asn1.ASN1Object);ne.asn1.DERAbstractStructured=function(e){ne.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)};ct.lang.extend(ne.asn1.DERAbstractStructured,ne.asn1.ASN1Object);ne.asn1.DERBoolean=function(){ne.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"};ct.lang.extend(ne.asn1.DERBoolean,ne.asn1.ASN1Object);ne.asn1.DERInteger=function(e){ne.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=ne.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var r=new Fe(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))};ct.lang.extend(ne.asn1.DERInteger,ne.asn1.ASN1Object);ne.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj!="undefined"){var t=ne.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}ne.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{const t=localStorage.getItem("publicKey");if(!t)return-1;const r=new QP;return r.setPublicKey(t),r.encrypt(e)},e4={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=Bu(e),t=Bu(t);let{msg:n}=await Xr.updatePwd({oldPwd:e,newPwd:t});this.$message({type:"success",center:!0,message:n}),this.visible=!1,this.formData={oldPwd:"",newPwd:"",confirmPwd:""}})}}},t4={class:"dialog-footer"},r4=Ee("\u5173\u95ED"),n4=Ee("\u786E\u8BA4");function i4(e,t,r,n,o,i){const s=Qi,a=Bl,l=Ml,h=jr,f=as;return Y(),be(f,{modelValue:i.visible,"onUpdate:modelValue":t[4]||(t[4]=m=>i.visible=m),width:"400px",title:"\u4FEE\u6539\u5BC6\u7801","close-on-click-modal":!1},{footer:J(()=>[V("span",t4,[Q(h,{onClick:t[3]||(t[3]=m=>i.visible=!1)},{default:J(()=>[r4]),_:1}),Q(h,{type:"primary",onClick:i.handleUpdate},{default:J(()=>[n4]),_:1},8,["onClick"])])]),default:J(()=>[Q(l,{ref:"new-password-form",model:o.formData,rules:o.rules,"hide-required-asterisk":!0,"label-suffix":"\uFF1A","label-width":"90px"},{default:J(()=>[Q(a,{label:"\u65E7\u5BC6\u7801",prop:"oldPwd"},{default:J(()=>[Q(s,{modelValue:o.formData.oldPwd,"onUpdate:modelValue":t[0]||(t[0]=m=>o.formData.oldPwd=m),modelModifiers:{trim:!0},clearable:"",placeholder:"\u65E7\u5BC6\u7801",autocomplete:"off"},null,8,["modelValue"])]),_:1}),Q(a,{label:"\u65B0\u5BC6\u7801",prop:"newPwd"},{default:J(()=>[Q(s,{modelValue:o.formData.newPwd,"onUpdate:modelValue":t[1]||(t[1]=m=>o.formData.newPwd=m),modelModifiers:{trim:!0},clearable:"",placeholder:"\u65B0\u5BC6\u7801",autocomplete:"off",onKeyup:Ft(i.handleUpdate,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),Q(a,{label:"\u786E\u8BA4\u5BC6\u7801",prop:"confirmPwd"},{default:J(()=>[Q(s,{modelValue:o.formData.confirmPwd,"onUpdate:modelValue":t[2]||(t[2]=m=>o.formData.confirmPwd=m),modelModifiers:{trim:!0},clearable:"",placeholder:"\u786E\u8BA4\u5BC6\u7801",autocomplete:"off",onKeyup:Ft(i.handleUpdate,["enter"])},null,8,["modelValue","onKeyup"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])}var o4=qr(e4,[["render",i4],["__scopeId","data-v-f2eaf206"]]);const s4={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:{hostList(e){(e==null?void 0:e.length)!==0&&(this.list=e.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})}}},a4=["onDragenter","onDragstart"],l4={class:"dialog-footer"},c4=Ee("\u5173\u95ED"),u4=Ee("\u786E\u8BA4");function f4(e,t,r,n,o,i){const s=jr,a=as;return Y(),be(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:J(()=>[V("span",l4,[Q(s,{onClick:t[1]||(t[1]=l=>i.visible=!1)},{default:J(()=>[c4]),_:1}),Q(s,{type:"primary",onClick:i.handleUpdateSort},{default:J(()=>[u4]),_:1},8,["onClick"])])]),default:J(()=>[Q(vb,{name:"drag",class:"host-list",tag:"ul"},{default:J(()=>[(Y(!0),ve(Ye,null,dl(o.list,(l,h)=>(Y(),ve("li",{key:l.host,draggable:!0,class:"host-item",onDragenter:f=>i.dragenter(f,h),onDragover:t[0]||(t[0]=f=>i.dragover(f)),onDragstart:f=>i.dragstart(h)},me(l.name),41,a4))),128))]),_:1})]),_:1},8,["modelValue"])}var h4=qr(s4,[["render",f4],["__scopeId","data-v-fae97e4c"]]),d4="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAMAAADVRocKAAAAAXNSR0IB2cksfwAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAkxQTFRFAAAA+9eQ9rU0+9ud979N++Kv+MVf/OnC+Mtx/fDY+c98+9ua+tmV+tWK+dKD+dB/+9ub97xI+Mlr/fLZ+Mho++Ku98Na975L/Oe8/OrG+Mlq+96k+9yg/vLa+c53+tWN+tSK+tSI/e/S+M11+96i971J98Nb/OS1+92i/OjC+MZj9rc5+tqZ+tmX/Oi//vPe+dOG/vXj+dKF/fHa+taN/OvJ/OGr98BR98JZ++Kw++Cq/evI+clr9rg7+tmU+tiT9rg8/vTg+tB/+tOD/fXm+dKC+dB+/vPf+teR9rY3/O3P+Mtw98JW++S198JY+MJW/evK+cpu+Mpt/e7Q+tOG+Mx0/vTf+Mxz+MVe/evGz+Dyzd/y2eb10+Lz5O34utLtcKLZWZLTkLfigq7eyNvw3ur2lLnjpMTnc6TalbrjZJrWqsfoX5bV3+r3WpPUyt3xq8jpf6zdeKfbtc7rY5nWsMvqap3YoMHmss3r1eT0aJ3XirPgrsrqwNbubJ/YdaXbt9DsvNTt4ev3gKzeYJfV4Ov3y93xlrrjts/sha/fa57Yj7bhocLmmbzki7Pg1+X0osPn1uT0jLThs87rap7Yu9Lttc/swtfvydzxytzx0ODze6nccqPadKTav9XuibLg1OP0d6bbrMnp6PD5zt/yutLtxNjv5u/4+cZg/OvI++Co+c96/vXl/u/S+9eR9rk+++Cp+MZg+tB8/vHY+taP/OS0+cxy+dGC+tiS98FS+9+o+Mhn/OnD+s95/vbl+tSJ+LxH+MRd/e3O+s93PPfnIAAAAMR0Uk5TAP///////////////////////////////////////////////////////////////y3///////////////////+v//8H//////////////////////////////+QMBpw/////////////////////////////////////////////3P//6///////////////////////////////////////wH///8H/////w7//////////////////////w7//////xGiWMkAAAQsSURBVHic7VpnQxQxEA2ngIooqCiCYsWKItJBRLCCBWyoWM+zIShYERVRwN57L9hRqnRslD9msplwy11YsiV+0fdhdyYz895t9i7sZkDoP/7jb8PDZvOQSD9goA1j4ABJ9J5eNoCXpwR670E2FQZ5W0w/eAgw+wwFY8hgK/l9gXUYcYaD42sZvZ8/ZRwxkvojR1Hf388S+oDRlG5MoHMscAwdGx1gmn5sEExIcO/xcTAcNNYU/fgQ4JngHpsIoZDxxvknMY7JvOjkKRCeZJB+aiitnza9r4zp02hG6AwD9DNn0eLZYVpZc2bTrFlzddKHs8mfF6GdGDGfTWOkHv4otiJE958bzdaQKGH6mFhaERcvlh8fR/NjE4TSExfQ9KSFwp8IJS8S/lWkpMIFL14izo/QkqVQtmy5duKKNJj8dD30BOkraWXaCo2kgFUw+av10hOsXkOrM/paoDLXwuT7GKEn8EmiDOsyedH1MIsbjNITsF/Fek4sWIlsNEOPkbWJt/YqCMPjm03SE2zZjIl46wsRYHa2W3Sryt6G0Hb3+h07mdW/wC67O3b3JDqIu8e1fC8e3CcosJ/Db7f3JCreAdfyHDx4UFCAy++8AurnupQ7nB9CTMAlqroHVCDvkLUCKsAl7ZMp4DiMD/kyBQrw4YhEgaMoDx+PyRM4jk7g40l5Ajh6EB8LZQqcIqciiQLoND6dkSlwlpyLJQqgc/hcIlPgPDEKDAsUqHChlCeAyrBRftGoQG+ovi5OgUvEyrFGoECV6GS6TMxL8q4AlZZjs8yggMA9QIisefYrinnV+m8RQQm2rynWdTkCxcS5QaybcgTQLeLdxsYdSQJ3iXcPwe2QIIAKiYsfCe7LEkAP7Mqq+lCawCN6CY+lCaAj2HegJ/IE8snA02fyBJTH0udFEgUukmcYifcAoVw88kKmAHoJi64ZAeeCzYm+MiDghp6/OTz517oE+G84Di2BN0pKmaAA9x3NeQUVdnuFW/VbkpItKsB5y1Tdg3f5+e/c4+8/fPyE+hX4XMkJ6ETl5z4Eviiv6F+rzNFXfVVovnBC1bDNUGOGvwZIqnnBzHU0WFtnlL6uljKs5e62YARk0IR6Q90B73pavUprQ5vteH1r0Evf8I1Wau54YSxfBrPYqI+/EcpSU/pNZfvttTq6A34w+QsShdITYN+0vkmMvgkmPzZG+BOxnd9mkZ3fZkgW3/nFiGR71y1Z2olZLZAYEq6HH2Mu231v1cpqZbvvM3XSE8yA/kFbe18Z7W00I3SqAXoC1gH5/oMX/fEdwkY7IEjVw/n5yzX06yebfBM9HKTqQv3uPf4bhk12oQhYH61D1R1I6KBjFvTRCFgnsLOL+l2d1LeoE0jAepndxOkGx7peJlJ1Y5OTwbC2G4uk95MJJHfECST39Akk/1fCP4k/s9PBZ0wzPsgAAAAASUVORK5CYII=";const p4={name:"App",components:{HostCard:OP,NewHost:Om,UpdatePassword:o4,hostSort:h4},data(){return{loading:!0,hostListInfo:[],newServerFormVisible:!1,updatePwdVisible:!1,sortHostVisible:!1,hiddenIp:Number(localStorage.getItem("hiddenIp")||0)}},mounted(){this.getHostList()},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 Xr.getHostList();this.hostListInfo=e,this.connectIo()}catch{this.loading=!1}},connectIo(){let e=Bo(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("token_verify_fail",r=>{console.error("token_verify_fail: ",r)}),e.on("clients_data",r=>{this.hostListInfo.forEach(n=>{const{host:o}=n;Object.assign(n,r[o])})}),e.on("token_verify_fail",r=>{this.$notification({title:"Token\u6821\u9A8C\u5931\u8D25",message:r,type:"error"})})}),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))}}},Bm=e=>(dv("data-v-76befdae"),e=e(),pv(),e),v4=Bm(()=>V("div",{class:"logo-wrap"},[V("img",{src:d4,alt:"logo"}),V("h1",null,"EasyNode")],-1)),g4=Ee(" \u65B0\u589E\u670D\u52A1\u5668 "),_4=Ee(" Host\u6392\u5E8F "),m4=Ee(" \u4FEE\u6539\u5BC6\u7801 "),y4=Ee("\u5B89\u5168\u9000\u51FA"),b4={"element-loading-background":"rgba(122, 122, 122, 0.58)"},S4=Bm(()=>V("footer",null,[V("span",null,[Ee("Current Release v1.0, Powered by "),V("a",{href:"https://github.com/chaos-zhu/easynode",target:"_blank"},"EasyNode")])],-1));function w4(e,t,r,n,o,i){const s=jr,a=Be("HostCard"),l=Be("NewHost"),h=Be("UpdatePassword"),f=Be("hostSort"),m=X_;return Y(),ve(Ye,null,[V("header",null,[v4,V("div",null,[Q(s,{type:"primary",onClick:t[0]||(t[0]=g=>o.newServerFormVisible=!0)},{default:J(()=>[g4]),_:1}),Q(s,{type:"primary",onClick:t[1]||(t[1]=g=>o.sortHostVisible=!0)},{default:J(()=>[_4]),_:1}),Q(s,{type:"primary",onClick:i.handleHiddenIP},{default:J(()=>[Ee(me(o.hiddenIp?"\u663E\u793AIP":"\u9690\u85CFIP"),1)]),_:1},8,["onClick"]),Q(s,{type:"primary",onClick:t[2]||(t[2]=g=>o.updatePwdVisible=!0)},{default:J(()=>[m4]),_:1}),Q(s,{type:"success",plain:"",onClick:i.handleLogout},{default:J(()=>[y4]),_:1},8,["onClick"])])]),ht((Y(),ve("section",b4,[(Y(!0),ve(Ye,null,dl(o.hostListInfo,(g,p)=>(Y(),be(a,{key:p,"host-info":g,"hidden-ip":o.hiddenIp,onUpdateList:i.handleUpdateList},null,8,["host-info","hidden-ip","onUpdateList"]))),128))])),[[m,o.loading]]),S4,Q(l,{show:o.newServerFormVisible,"onUpdate:show":t[3]||(t[3]=g=>o.newServerFormVisible=g),onUpdateList:i.handleUpdateList},null,8,["show","onUpdateList"]),Q(h,{show:o.updatePwdVisible,"onUpdate:show":t[4]||(t[4]=g=>o.updatePwdVisible=g)},null,8,["show"]),Q(f,{show:o.sortHostVisible,"onUpdate:show":t[5]||(t[5]=g=>o.sortHostVisible=g),"host-list":o.hostListInfo,onSortList:i.handleSortList},null,8,["show","host-list","onSortList"])],64)}var C4=qr(p4,[["render",w4],["__scopeId","data-v-76befdae"]]),Pm={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(c,u){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,y){d.__proto__=y}||function(d,y){for(var S in y)Object.prototype.hasOwnProperty.call(y,S)&&(d[S]=y[S])},a(c,u)},function(c,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");function d(){this.constructor=c}a(c,u),c.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(i,"__esModule",{value:!0}),i.AccessibilityManager=void 0;var h=s(9042),f=s(6114),m=s(9924),g=s(3656),p=s(844),_=s(5596),b=s(9631),v=function(c){function u(d,y){var S=c.call(this)||this;S._terminal=d,S._renderService=y,S._liveRegionLineCount=0,S._charsToConsume=[],S._charsToAnnounce="",S._accessibilityTreeRoot=document.createElement("div"),S._accessibilityTreeRoot.classList.add("xterm-accessibility"),S._accessibilityTreeRoot.tabIndex=0,S._rowContainer=document.createElement("div"),S._rowContainer.setAttribute("role","list"),S._rowContainer.classList.add("xterm-accessibility-tree"),S._rowElements=[];for(var w=0;wd;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},u.prototype._createAccessibilityTreeNode=function(){var d=document.createElement("div");return d.setAttribute("role","listitem"),d.tabIndex=-1,this._refreshRowDimensions(d),d},u.prototype._onTab=function(d){for(var y=0;y0?this._charsToConsume.shift()!==d&&(this._charsToAnnounce+=d):this._charsToAnnounce+=d,d===` `&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=h.tooMuchOutput)),f.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){y._accessibilityTreeRoot.appendChild(y._liveRegion)},0))},u.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,f.isMac&&(0,b.removeElementFromParent)(this._liveRegion)},u.prototype._onKey=function(d){this._clearLiveRegion(),this._charsToConsume.push(d)},u.prototype._refreshRows=function(d,y){this._renderRowsDebouncer.refresh(d,y,this._terminal.rows)},u.prototype._renderRows=function(d,y){for(var S=this._terminal.buffer,w=S.lines.length.toString(),C=d;C<=y;C++){var T=S.translateBufferLineToString(S.ydisp+C,!0),L=(S.ydisp+C+1).toString(),E=this._rowElements[C];E&&(T.length===0?E.innerText="\xA0":E.textContent=T,E.setAttribute("aria-posinset",L),E.setAttribute("aria-setsize",w))}this._announceCharacters()},u.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var d=0;d{function s(f){return f.replace(/\r?\n/g,"\r")}function a(f,m){return m?"\x1B[200~"+f+"\x1B[201~":f}function l(f,m,g){f=a(f=s(f),g.decPrivateModes.bracketedPasteMode),g.triggerDataEvent(f,!0),m.value=""}function h(f,m,g){var p=g.getBoundingClientRect(),_=f.clientX-p.left-10,b=f.clientY-p.top-10;m.style.width="20px",m.style.height="20px",m.style.left=_+"px",m.style.top=b+"px",m.style.zIndex="1000",m.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(f,m){f.clipboardData&&f.clipboardData.setData("text/plain",m.selectionText),f.preventDefault()},i.handlePasteEvent=function(f,m,g){f.stopPropagation(),f.clipboardData&&l(f.clipboardData.getData("text/plain"),m,g)},i.paste=l,i.moveTextAreaUnderMouseCursor=h,i.rightClickHandler=function(f,m,g,p,_){h(f,m,g),_&&p.rightClickSelect(f),m.value=p.selectionText,m.select()}},4774:(o,i)=>{var s,a,l,h;function f(g){var p=g.toString(16);return p.length<2?"0"+p:p}function m(g,p){return g>>0}}(s=i.channels||(i.channels={})),(a=i.color||(i.color={})).blend=function(g,p){var _=(255&p.rgba)/255;if(_===1)return{css:p.css,rgba:p.rgba};var b=p.rgba>>24&255,v=p.rgba>>16&255,c=p.rgba>>8&255,u=g.rgba>>24&255,d=g.rgba>>16&255,y=g.rgba>>8&255,S=u+Math.round((b-u)*_),w=d+Math.round((v-d)*_),C=y+Math.round((c-y)*_);return{css:s.toCss(S,w,C),rgba:s.toRgba(S,w,C)}},a.isOpaque=function(g){return(255&g.rgba)==255},a.ensureContrastRatio=function(g,p,_){var b=h.ensureContrastRatio(g.rgba,p.rgba,_);if(b)return h.toColor(b>>24&255,b>>16&255,b>>8&255)},a.opaque=function(g){var p=(255|g.rgba)>>>0,_=h.toChannels(p),b=_[0],v=_[1],c=_[2];return{css:s.toCss(b,v,c),rgba:p}},a.opacity=function(g,p){var _=Math.round(255*p),b=h.toChannels(g.rgba),v=b[0],c=b[1],u=b[2];return{css:s.toCss(v,c,u,_),rgba:s.toRgba(v,c,u,_)}},a.toColorRGB=function(g){return[g.rgba>>24&255,g.rgba>>16&255,g.rgba>>8&255]},(i.css||(i.css={})).toColor=function(g){switch(g.length){case 7:return{css:g,rgba:(parseInt(g.slice(1),16)<<8|255)>>>0};case 9:return{css:g,rgba:parseInt(g.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(g){function p(_,b,v){var c=_/255,u=b/255,d=v/255;return .2126*(c<=.03928?c/12.92:Math.pow((c+.055)/1.055,2.4))+.7152*(u<=.03928?u/12.92:Math.pow((u+.055)/1.055,2.4))+.0722*(d<=.03928?d/12.92:Math.pow((d+.055)/1.055,2.4))}g.relativeLuminance=function(_){return p(_>>16&255,_>>8&255,255&_)},g.relativeLuminance2=p}(l=i.rgb||(i.rgb={})),function(g){function p(b,v,c){for(var u=b>>24&255,d=b>>16&255,y=b>>8&255,S=v>>24&255,w=v>>16&255,C=v>>8&255,T=m(l.relativeLuminance2(S,C,w),l.relativeLuminance2(u,d,y));T0||w>0||C>0);)S-=Math.max(0,Math.ceil(.1*S)),w-=Math.max(0,Math.ceil(.1*w)),C-=Math.max(0,Math.ceil(.1*C)),T=m(l.relativeLuminance2(S,C,w),l.relativeLuminance2(u,d,y));return(S<<24|w<<16|C<<8|255)>>>0}function _(b,v,c){for(var u=b>>24&255,d=b>>16&255,y=b>>8&255,S=v>>24&255,w=v>>16&255,C=v>>8&255,T=m(l.relativeLuminance2(S,C,w),l.relativeLuminance2(u,d,y));T>>0}g.ensureContrastRatio=function(b,v,c){var u=l.relativeLuminance(b>>8),d=l.relativeLuminance(v>>8);if(m(u,d)>24&255,b>>16&255,b>>8&255,255&b]},g.toColor=function(b,v,c){return{css:s.toCss(b,v,c),rgba:s.toRgba(b,v,c)}}}(h=i.rgba||(i.rgba={})),i.toPaddedHex=f,i.contrastRatio=m},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,h,f){this._rgba[l]||(this._rgba[l]={}),this._rgba[l][h]=f},a.prototype.getCss=function(l,h){return this._rgba[l]?this._rgba[l][h]:void 0},a.prototype.setColor=function(l,h,f){this._color[l]||(this._color[l]={}),this._color[l][h]=f},a.prototype.getColor=function(l,h){return this._color[l]?this._color[l][h]:void 0},a}();i.ColorContrastCache=s},5680:function(o,i,s){var a=this&&this.__spreadArray||function(v,c,u){if(u||arguments.length===2)for(var d,y=0,S=c.length;y{Object.defineProperty(i,"__esModule",{value:!0}),i.removeElementFromParent=void 0,i.removeElementFromParent=function(){for(var s,a=[],l=0;l{Object.defineProperty(i,"__esModule",{value:!0}),i.addDisposableDomListener=void 0,i.addDisposableDomListener=function(s,a,l,h){s.addEventListener(a,l,h);var f=!1;return{dispose:function(){f||(f=!0,s.removeEventListener(a,l,h))}}}},3551:function(o,i,s){var a=this&&this.__decorate||function(p,_,b,v){var c,u=arguments.length,d=u<3?_:v===null?v=Object.getOwnPropertyDescriptor(_,b):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(p,_,b,v);else for(var y=p.length-1;y>=0;y--)(c=p[y])&&(d=(u<3?c(d):u>3?c(_,b,d):c(_,b))||d);return u>3&&d&&Object.defineProperty(_,b,d),d},l=this&&this.__param||function(p,_){return function(b,v){_(b,v,p)}};Object.defineProperty(i,"__esModule",{value:!0}),i.MouseZone=i.Linkifier=void 0;var h=s(8460),f=s(2585),m=function(){function p(_,b,v){this._bufferService=_,this._logService=b,this._unicodeService=v,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new h.EventEmitter,this._onHideLinkUnderline=new h.EventEmitter,this._onLinkTooltip=new h.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(_,b){this._element=_,this._mouseZoneManager=b},p.prototype.linkifyRows=function(_,b){var v=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=_,this._rowsToLinkify.end=b):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,_),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,b)),this._mouseZoneManager.clearAll(_,b),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return v._linkifyRows()},p._timeBeforeLatency))},p.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var _=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var b=_.ydisp+this._rowsToLinkify.start;if(!(b>=_.lines.length)){for(var v=_.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,c=Math.ceil(2e3/this._bufferService.cols),u=this._bufferService.buffer.iterator(!1,b,v,c,c);u.hasNext();)for(var d=u.next(),y=0;y=0;b--)if(_.priority<=this._linkMatchers[b].priority)return void this._linkMatchers.splice(b+1,0,_);this._linkMatchers.splice(0,0,_)}else this._linkMatchers.push(_)},p.prototype.deregisterLinkMatcher=function(_){for(var b=0;b>9&511:void 0;v.validationCallback?v.validationCallback(C,function(M){u._rowsTimeoutId||M&&u._addLink(T[1],T[0]-u._bufferService.buffer.ydisp,C,v,A)}):w._addLink(T[1],T[0]-w._bufferService.buffer.ydisp,C,v,A)},w=this;(c=d.exec(b))!==null&&S()!=="break";);},p.prototype._addLink=function(_,b,v,c,u){var d=this;if(this._mouseZoneManager&&this._element){var y=this._unicodeService.getStringCellWidth(v),S=_%this._bufferService.cols,w=b+Math.floor(_/this._bufferService.cols),C=(S+y)%this._bufferService.cols,T=w+Math.floor((S+y)/this._bufferService.cols);C===0&&(C=this._bufferService.cols,T--),this._mouseZoneManager.add(new g(S+1,w+1,C+1,T+1,function(L){if(c.handler)return c.handler(L,v);var E=window.open();E?(E.opener=null,E.location.href=v):console.warn("Opening link blocked as opener could not be cleared")},function(){d._onShowLinkUnderline.fire(d._createLinkHoverEvent(S,w,C,T,u)),d._element.classList.add("xterm-cursor-pointer")},function(L){d._onLinkTooltip.fire(d._createLinkHoverEvent(S,w,C,T,u)),c.hoverTooltipCallback&&c.hoverTooltipCallback(L,v,{start:{x:S,y:w},end:{x:C,y:T}})},function(){d._onHideLinkUnderline.fire(d._createLinkHoverEvent(S,w,C,T,u)),d._element.classList.remove("xterm-cursor-pointer"),c.hoverLeaveCallback&&c.hoverLeaveCallback()},function(L){return!c.willLinkActivate||c.willLinkActivate(L,v)}))}},p.prototype._createLinkHoverEvent=function(_,b,v,c,u){return{x1:_,y1:b,x2:v,y2:c,cols:this._bufferService.cols,fg:u}},p._timeBeforeLatency=200,p=a([l(0,f.IBufferService),l(1,f.ILogService),l(2,f.IUnicodeService)],p)}();i.Linkifier=m;var g=function(p,_,b,v,c,u,d,y,S){this.x1=p,this.y1=_,this.x2=b,this.y2=v,this.clickCallback=c,this.hoverCallback=u,this.tooltipCallback=d,this.leaveCallback=y,this.willLinkActivate=S};i.MouseZone=g},6465:function(o,i,s){var a,l=this&&this.__extends||(a=function(v,c){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var y in d)Object.prototype.hasOwnProperty.call(d,y)&&(u[y]=d[y])},a(v,c)},function(v,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function u(){this.constructor=v}a(v,c),v.prototype=c===null?Object.create(c):(u.prototype=c.prototype,new u)}),h=this&&this.__decorate||function(v,c,u,d){var y,S=arguments.length,w=S<3?c:d===null?d=Object.getOwnPropertyDescriptor(c,u):d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(v,c,u,d);else for(var C=v.length-1;C>=0;C--)(y=v[C])&&(w=(S<3?y(w):S>3?y(c,u,w):y(c,u))||w);return S>3&&w&&Object.defineProperty(c,u,w),w},f=this&&this.__param||function(v,c){return function(u,d){c(u,d,v)}};Object.defineProperty(i,"__esModule",{value:!0}),i.Linkifier2=void 0;var m=s(2585),g=s(8460),p=s(844),_=s(3656),b=function(v){function c(u){var d=v.call(this)||this;return d._bufferService=u,d._linkProviders=[],d._linkCacheDisposables=[],d._isMouseOut=!0,d._activeLine=-1,d._onShowLinkUnderline=d.register(new g.EventEmitter),d._onHideLinkUnderline=d.register(new g.EventEmitter),d.register((0,p.getDisposeArrayDisposable)(d._linkCacheDisposables)),d}return l(c,v),Object.defineProperty(c.prototype,"currentLink",{get:function(){return this._currentLink},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),c.prototype.registerLinkProvider=function(u){var d=this;return this._linkProviders.push(u),{dispose:function(){var y=d._linkProviders.indexOf(u);y!==-1&&d._linkProviders.splice(y,1)}}},c.prototype.attachToDom=function(u,d,y){var S=this;this._element=u,this._mouseService=d,this._renderService=y,this.register((0,_.addDisposableDomListener)(this._element,"mouseleave",function(){S._isMouseOut=!0,S._clearCurrentLink()})),this.register((0,_.addDisposableDomListener)(this._element,"mousemove",this._onMouseMove.bind(this))),this.register((0,_.addDisposableDomListener)(this._element,"click",this._onClick.bind(this)))},c.prototype._onMouseMove=function(u){if(this._lastMouseEvent=u,this._element&&this._mouseService){var d=this._positionFromMouseEvent(u,this._element,this._mouseService);if(d){this._isMouseOut=!1;for(var y=u.composedPath(),S=0;Su?this._bufferService.cols:T.link.range.end.x,A=L;A<=E;A++){if(y.has(A)){w.splice(C--,1);break}y.add(A)}}},c.prototype._checkLinkProviderResult=function(u,d,y){var S,w=this;if(!this._activeProviderReplies)return y;for(var C=this._activeProviderReplies.get(u),T=!1,L=0;L=u&&this._currentLink.link.range.end.y<=d)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,p.disposeArray)(this._linkCacheDisposables))},c.prototype._handleNewLink=function(u){var d=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var y=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);y&&this._linkAtPosition(u.link,y)&&(this._currentLink=u,this._currentLink.state={decorations:{underline:u.link.decorations===void 0||u.link.decorations.underline,pointerCursor:u.link.decorations===void 0||u.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,u.link,this._lastMouseEvent),u.link.decorations={},Object.defineProperties(u.link.decorations,{pointerCursor:{get:function(){var S,w;return(w=(S=d._currentLink)===null||S===void 0?void 0:S.state)===null||w===void 0?void 0:w.decorations.pointerCursor},set:function(S){var w,C;((w=d._currentLink)===null||w===void 0?void 0:w.state)&&d._currentLink.state.decorations.pointerCursor!==S&&(d._currentLink.state.decorations.pointerCursor=S,d._currentLink.state.isHovered&&((C=d._element)===null||C===void 0||C.classList.toggle("xterm-cursor-pointer",S)))}},underline:{get:function(){var S,w;return(w=(S=d._currentLink)===null||S===void 0?void 0:S.state)===null||w===void 0?void 0:w.decorations.underline},set:function(S){var w,C,T;((w=d._currentLink)===null||w===void 0?void 0:w.state)&&((T=(C=d._currentLink)===null||C===void 0?void 0:C.state)===null||T===void 0?void 0:T.decorations.underline)!==S&&(d._currentLink.state.decorations.underline=S,d._currentLink.state.isHovered&&d._fireUnderlineEvent(u.link,S))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(S){var w=S.start===0?0:S.start+1+d._bufferService.buffer.ydisp;d._clearCurrentLink(w,S.end+1+d._bufferService.buffer.ydisp)})))}},c.prototype._linkHover=function(u,d,y){var S;!((S=this._currentLink)===null||S===void 0)&&S.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(d,!0),this._currentLink.state.decorations.pointerCursor&&u.classList.add("xterm-cursor-pointer")),d.hover&&d.hover(y,d.text)},c.prototype._fireUnderlineEvent=function(u,d){var y=u.range,S=this._bufferService.buffer.ydisp,w=this._createLinkUnderlineEvent(y.start.x-1,y.start.y-S-1,y.end.x,y.end.y-S-1,void 0);(d?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(w)},c.prototype._linkLeave=function(u,d,y){var S;!((S=this._currentLink)===null||S===void 0)&&S.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(d,!1),this._currentLink.state.decorations.pointerCursor&&u.classList.remove("xterm-cursor-pointer")),d.leave&&d.leave(y,d.text)},c.prototype._linkAtPosition=function(u,d){var y=u.range.start.y===u.range.end.y,S=u.range.start.yd.y;return(y&&u.range.start.x<=d.x&&u.range.end.x>=d.x||S&&u.range.end.x>=d.x||w&&u.range.start.x<=d.x||S&&w)&&u.range.start.y<=d.y&&u.range.end.y>=d.y},c.prototype._positionFromMouseEvent=function(u,d,y){var S=y.getCoords(u,d,this._bufferService.cols,this._bufferService.rows);if(S)return{x:S[0],y:S[1]+this._bufferService.buffer.ydisp}},c.prototype._createLinkUnderlineEvent=function(u,d,y,S,w){return{x1:u,y1:d,x2:y,y2:S,cols:this._bufferService.cols,fg:w}},h([f(0,m.IBufferService)],c)}(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(v,c){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var y in d)Object.prototype.hasOwnProperty.call(d,y)&&(u[y]=d[y])},a(v,c)},function(v,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function u(){this.constructor=v}a(v,c),v.prototype=c===null?Object.create(c):(u.prototype=c.prototype,new u)}),h=this&&this.__decorate||function(v,c,u,d){var y,S=arguments.length,w=S<3?c:d===null?d=Object.getOwnPropertyDescriptor(c,u):d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(v,c,u,d);else for(var C=v.length-1;C>=0;C--)(y=v[C])&&(w=(S<3?y(w):S>3?y(c,u,w):y(c,u))||w);return S>3&&w&&Object.defineProperty(c,u,w),w},f=this&&this.__param||function(v,c){return function(u,d){c(u,d,v)}};Object.defineProperty(i,"__esModule",{value:!0}),i.MouseZoneManager=void 0;var m=s(844),g=s(3656),p=s(4725),_=s(2585),b=function(v){function c(u,d,y,S,w,C){var T=v.call(this)||this;return T._element=u,T._screenElement=d,T._bufferService=y,T._mouseService=S,T._selectionService=w,T._optionsService=C,T._zones=[],T._areZonesActive=!1,T._lastHoverCoords=[void 0,void 0],T._initialSelectionLength=0,T.register((0,g.addDisposableDomListener)(T._element,"mousedown",function(L){return T._onMouseDown(L)})),T._mouseMoveListener=function(L){return T._onMouseMove(L)},T._mouseLeaveListener=function(L){return T._onMouseLeave(L)},T._clickListener=function(L){return T._onClick(L)},T}return l(c,v),c.prototype.dispose=function(){v.prototype.dispose.call(this),this._deactivate()},c.prototype.add=function(u){this._zones.push(u),this._zones.length===1&&this._activate()},c.prototype.clearAll=function(u,d){if(this._zones.length!==0){u&&d||(u=0,d=this._bufferService.rows-1);for(var y=0;yu&&S.y1<=d+1||S.y2>u&&S.y2<=d+1||S.y1d+1)&&(this._currentZone&&this._currentZone===S&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(y--,1))}this._zones.length===0&&this._deactivate()}},c.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))},c.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))},c.prototype._onMouseMove=function(u){this._lastHoverCoords[0]===u.pageX&&this._lastHoverCoords[1]===u.pageY||(this._onHover(u),this._lastHoverCoords=[u.pageX,u.pageY])},c.prototype._onHover=function(u){var d=this,y=this._findZoneEventAt(u);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(u),this._tooltipTimeout=window.setTimeout(function(){return d._onTooltip(u)},this._optionsService.rawOptions.linkTooltipHoverDuration)))},c.prototype._onTooltip=function(u){this._tooltipTimeout=void 0;var d=this._findZoneEventAt(u);d==null||d.tooltipCallback(u)},c.prototype._onMouseDown=function(u){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var d=this._findZoneEventAt(u);d!=null&&d.willLinkActivate(u)&&(u.preventDefault(),u.stopImmediatePropagation())}},c.prototype._onMouseLeave=function(u){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},c.prototype._onClick=function(u){var d=this._findZoneEventAt(u),y=this._getSelectionLength();d&&y===this._initialSelectionLength&&(d.clickCallback(u),u.preventDefault(),u.stopImmediatePropagation())},c.prototype._getSelectionLength=function(){var u=this._selectionService.selectionText;return u?u.length:0},c.prototype._findZoneEventAt=function(u){var d=this._mouseService.getCoords(u,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(d)for(var y=d[0],S=d[1],w=0;w=C.x1&&y=C.x1||S===C.y2&&yC.y1&&S{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,h,f){var m=this;this._rowCount=f,l=l!==void 0?l:0,h=h!==void 0?h: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,h):h,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return m._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),h=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(l,h)}},a}();i.RenderDebouncer=s},5596:function(o,i,s){var a,l=this&&this.__extends||(a=function(f,m){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,p){g.__proto__=p}||function(g,p){for(var _ in p)Object.prototype.hasOwnProperty.call(p,_)&&(g[_]=p[_])},a(f,m)},function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function g(){this.constructor=f}a(f,m),f.prototype=m===null?Object.create(m):(g.prototype=m.prototype,new g)});Object.defineProperty(i,"__esModule",{value:!0}),i.ScreenDprMonitor=void 0;var h=function(f){function m(){var g=f!==null&&f.apply(this,arguments)||this;return g._currentDevicePixelRatio=window.devicePixelRatio,g}return l(m,f),m.prototype.setListener=function(g){var p=this;this._listener&&this.clearListener(),this._listener=g,this._outerListener=function(){p._listener&&(p._listener(window.devicePixelRatio,p._currentDevicePixelRatio),p._updateDpr())},this._updateDpr()},m.prototype.dispose=function(){f.prototype.dispose.call(this),this.clearListener()},m.prototype._updateDpr=function(){var g;this._outerListener&&((g=this._resolutionMediaMatchList)===null||g===void 0||g.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},m.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)},m}(s(844).Disposable);i.ScreenDprMonitor=h},3236:function(o,i,s){var a,l=this&&this.__extends||(a=function(x,q){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,P){k.__proto__=P}||function(k,P){for(var I in P)Object.prototype.hasOwnProperty.call(P,I)&&(k[I]=P[I])},a(x,q)},function(x,q){if(typeof q!="function"&&q!==null)throw new TypeError("Class extends value "+String(q)+" is not a constructor or null");function k(){this.constructor=x}a(x,q),x.prototype=q===null?Object.create(q):(k.prototype=q.prototype,new k)});Object.defineProperty(i,"__esModule",{value:!0}),i.Terminal=void 0;var h=s(2950),f=s(1680),m=s(3614),g=s(2584),p=s(5435),_=s(3525),b=s(3551),v=s(9312),c=s(6114),u=s(3656),d=s(9042),y=s(357),S=s(6954),w=s(4567),C=s(1296),T=s(7399),L=s(8460),E=s(8437),A=s(5680),M=s(3230),O=s(4725),$=s(428),D=s(8934),R=s(6465),B=s(5114),N=s(8969),U=s(4774),z=s(4269),X=s(5941),ge=s(7641),_e=typeof window!="undefined"?window.document:null,Oe=function(x){function q(k){k===void 0&&(k={});var P=x.call(this,k)||this;return P.browser=c,P._keyDownHandled=!1,P._keyPressHandled=!1,P._unprocessedDeadKey=!1,P._onCursorMove=new L.EventEmitter,P._onKey=new L.EventEmitter,P._onRender=new L.EventEmitter,P._onSelectionChange=new L.EventEmitter,P._onTitleChange=new L.EventEmitter,P._onBell=new L.EventEmitter,P._onFocus=new L.EventEmitter,P._onBlur=new L.EventEmitter,P._onA11yCharEmitter=new L.EventEmitter,P._onA11yTabEmitter=new L.EventEmitter,P._setup(),P.linkifier=P._instantiationService.createInstance(b.Linkifier),P.linkifier2=P.register(P._instantiationService.createInstance(R.Linkifier2)),P.decorationService=P.register(P._instantiationService.createInstance(ge.DecorationService)),P.register(P._inputHandler.onRequestBell(function(){return P.bell()})),P.register(P._inputHandler.onRequestRefreshRows(function(I,le){return P.refresh(I,le)})),P.register(P._inputHandler.onRequestSendFocus(function(){return P._reportFocus()})),P.register(P._inputHandler.onRequestReset(function(){return P.reset()})),P.register(P._inputHandler.onRequestWindowsOptionsReport(function(I){return P._reportWindowsOptions(I)})),P.register(P._inputHandler.onColor(function(I){return P._handleColorEvent(I)})),P.register((0,L.forwardEvent)(P._inputHandler.onCursorMove,P._onCursorMove)),P.register((0,L.forwardEvent)(P._inputHandler.onTitleChange,P._onTitleChange)),P.register((0,L.forwardEvent)(P._inputHandler.onA11yChar,P._onA11yCharEmitter)),P.register((0,L.forwardEvent)(P._inputHandler.onA11yTab,P._onA11yTabEmitter)),P.register(P._bufferService.onResize(function(I){return P._afterResize(I.cols,I.rows)})),P}return l(q,x),Object.defineProperty(q.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"onBell",{get:function(){return this._onBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),q.prototype._handleColorEvent=function(k){var P,I;if(this._colorManager){for(var le=0,ie=k;le4)&&P.coreMouseService.triggerMouseEvent({col:pe.x-33,row:pe.y-33,button:re,action:fe,ctrl:W.ctrlKey,alt:W.altKey,shift:W.shiftKey})}var ie={mouseup:null,wheel:null,mousedrag:null,mousemove:null},he=function(W){return le(W),W.buttons||(k._document.removeEventListener("mouseup",ie.mouseup),ie.mousedrag&&k._document.removeEventListener("mousemove",ie.mousedrag)),k.cancel(W)},H=function(W){return le(W),k.cancel(W,!0)},j=function(W){W.buttons&&le(W)},K=function(W){W.buttons||le(W)};this.register(this.coreMouseService.onProtocolChange(function(W){W?(k.optionsService.rawOptions.logLevel==="debug"&&k._logService.debug("Binding to mouse events:",k.coreMouseService.explainEvents(W)),k.element.classList.add("enable-mouse-events"),k._selectionService.disable()):(k._logService.debug("Unbinding from mouse events."),k.element.classList.remove("enable-mouse-events"),k._selectionService.enable()),8&W?ie.mousemove||(I.addEventListener("mousemove",K),ie.mousemove=K):(I.removeEventListener("mousemove",ie.mousemove),ie.mousemove=null),16&W?ie.wheel||(I.addEventListener("wheel",H,{passive:!1}),ie.wheel=H):(I.removeEventListener("wheel",ie.wheel),ie.wheel=null),2&W?ie.mouseup||(ie.mouseup=he):(k._document.removeEventListener("mouseup",ie.mouseup),ie.mouseup=null),4&W?ie.mousedrag||(ie.mousedrag=j):(k._document.removeEventListener("mousemove",ie.mousedrag),ie.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,u.addDisposableDomListener)(I,"mousedown",function(W){if(W.preventDefault(),k.focus(),k.coreMouseService.areMouseEventsActive&&!k._selectionService.shouldForceSelection(W))return le(W),ie.mouseup&&k._document.addEventListener("mouseup",ie.mouseup),ie.mousedrag&&k._document.addEventListener("mousemove",ie.mousedrag),k.cancel(W)})),this.register((0,u.addDisposableDomListener)(I,"wheel",function(W){if(!ie.wheel){if(!k.buffer.hasScrollback){var re=k.viewport.getLinesScrolled(W);if(re===0)return;for(var fe=g.C0.ESC+(k.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(W.deltaY<0?"A":"B"),pe="",ce=0;ce47)},q.prototype._keyUp=function(k){this._customKeyEventHandler&&this._customKeyEventHandler(k)===!1||(function(P){return P.keyCode===16||P.keyCode===17||P.keyCode===18}(k)||this.focus(),this.updateCursorStyle(k),this._keyPressHandled=!1)},q.prototype._keyPress=function(k){var P;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(k)===!1)return!1;if(this.cancel(k),k.charCode)P=k.charCode;else if(k.which===null||k.which===void 0)P=k.keyCode;else{if(k.which===0||k.charCode===0)return!1;P=k.which}return!(!P||(k.altKey||k.ctrlKey||k.metaKey)&&!this._isThirdLevelShift(this.browser,k)||(P=String.fromCharCode(P),this._onKey.fire({key:P,domEvent:k}),this._showCursor(),this.coreService.triggerDataEvent(P,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))},q.prototype._inputEvent=function(k){if(k.data&&k.inputType==="insertText"&&!k.composed&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;var P=k.data;return this.coreService.triggerDataEvent(P,!0),this.cancel(k),!0}return!1},q.prototype.bell=function(){var k;this._soundBell()&&((k=this._soundService)===null||k===void 0||k.playBellSound()),this._onBell.fire()},q.prototype.resize=function(k,P){k!==this.cols||P!==this.rows?x.prototype.resize.call(this,k,P):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},q.prototype._afterResize=function(k,P){var I,le;(I=this._charSizeService)===null||I===void 0||I.measure(),(le=this.viewport)===null||le===void 0||le.syncScrollArea(!0)},q.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 k=1;k{Object.defineProperty(i,"__esModule",{value:!0}),i.TimeBasedDebouncer=void 0;var s=function(){function a(l,h){h===void 0&&(h=1e3),this._renderCallback=l,this._debounceThresholdMS=h,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}return a.prototype.dispose=function(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)},a.prototype.refresh=function(l,h,f){var m=this;this._rowCount=f,l=l!==void 0?l:0,h=h!==void 0?h: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,h):h;var g=Date.now();if(g-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=g,this._innerRefresh();else if(!this._additionalRefreshRequested){var p=g-this._lastRefreshMs,_=this._debounceThresholdMS-p;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(function(){m._lastRefreshMs=Date.now(),m._innerRefresh(),m._additionalRefreshRequested=!1,m._refreshTimeoutID=void 0},_)}},a.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var l=Math.max(this._rowStart,0),h=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(l,h)}},a}();i.TimeBasedDebouncer=s},1680:function(o,i,s){var a,l=this&&this.__extends||(a=function(v,c){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var y in d)Object.prototype.hasOwnProperty.call(d,y)&&(u[y]=d[y])},a(v,c)},function(v,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function u(){this.constructor=v}a(v,c),v.prototype=c===null?Object.create(c):(u.prototype=c.prototype,new u)}),h=this&&this.__decorate||function(v,c,u,d){var y,S=arguments.length,w=S<3?c:d===null?d=Object.getOwnPropertyDescriptor(c,u):d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(v,c,u,d);else for(var C=v.length-1;C>=0;C--)(y=v[C])&&(w=(S<3?y(w):S>3?y(c,u,w):y(c,u))||w);return S>3&&w&&Object.defineProperty(c,u,w),w},f=this&&this.__param||function(v,c){return function(u,d){c(u,d,v)}};Object.defineProperty(i,"__esModule",{value:!0}),i.Viewport=void 0;var m=s(844),g=s(3656),p=s(4725),_=s(2585),b=function(v){function c(u,d,y,S,w,C,T,L){var E=v.call(this)||this;return E._scrollLines=u,E._viewportElement=d,E._scrollArea=y,E._element=S,E._bufferService=w,E._optionsService=C,E._charSizeService=T,E._renderService=L,E.scrollBarWidth=0,E._currentRowHeight=0,E._currentScaledCellHeight=0,E._lastRecordedBufferLength=0,E._lastRecordedViewportHeight=0,E._lastRecordedBufferHeight=0,E._lastTouchY=0,E._lastScrollTop=0,E._lastHadScrollBar=!1,E._wheelPartialScroll=0,E._refreshAnimationFrame=null,E._ignoreNextScrollEvent=!1,E.scrollBarWidth=E._viewportElement.offsetWidth-E._scrollArea.offsetWidth||15,E._lastHadScrollBar=!0,E.register((0,g.addDisposableDomListener)(E._viewportElement,"scroll",E._onScroll.bind(E))),E._activeBuffer=E._bufferService.buffer,E.register(E._bufferService.buffers.onBufferActivate(function(A){return E._activeBuffer=A.activeBuffer})),E._renderDimensions=E._renderService.dimensions,E.register(E._renderService.onDimensionsChange(function(A){return E._renderDimensions=A})),setTimeout(function(){return E.syncScrollArea()},0),E}return l(c,v),c.prototype.onThemeChange=function(u){this._viewportElement.style.backgroundColor=u.background.css},c.prototype._refresh=function(u){var d=this;if(u)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return d._innerRefresh()}))},c.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 u=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==u&&(this._lastRecordedBufferHeight=u,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var d=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==d&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=d),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),S=parseInt(y.paddingLeft)+parseInt(y.paddingRight);this._viewportElement.style.width=(this._renderService.dimensions.actualCellWidth*this._bufferService.cols+this.scrollBarWidth+(this._lastHadScrollBar?S:0)).toString()+"px",this._refreshAnimationFrame=null},c.prototype.syncScrollArea=function(u){if(u===void 0&&(u=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(u);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(u):this._refresh(u)},c.prototype._onScroll=function(u){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent){if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);var d=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(d)}},c.prototype._bubbleScroll=function(u,d){var y=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(d<0&&this._viewportElement.scrollTop!==0||d>0&&y0?1:-1),this._wheelPartialScroll%=1):u.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(d*=this._bufferService.rows),d},c.prototype._applyScrollModifier=function(u,d){var y=this._optionsService.rawOptions.fastScrollModifier;return y==="alt"&&d.altKey||y==="ctrl"&&d.ctrlKey||y==="shift"&&d.shiftKey?u*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:u*this._optionsService.rawOptions.scrollSensitivity},c.prototype.onTouchStart=function(u){this._lastTouchY=u.touches[0].pageY},c.prototype.onTouchMove=function(u){var d=this._lastTouchY-u.touches[0].pageY;return this._lastTouchY=u.touches[0].pageY,d!==0&&(this._viewportElement.scrollTop+=d,this._bubbleScroll(u,d))},h([f(4,_.IBufferService),f(5,_.IOptionsService),f(6,p.ICharSizeService),f(7,p.IRenderService)],c)}(m.Disposable);i.Viewport=b},2950:function(o,i,s){var a=this&&this.__decorate||function(g,p,_,b){var v,c=arguments.length,u=c<3?p:b===null?b=Object.getOwnPropertyDescriptor(p,_):b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(g,p,_,b);else for(var d=g.length-1;d>=0;d--)(v=g[d])&&(u=(c<3?v(u):c>3?v(p,_,u):v(p,_))||u);return c>3&&u&&Object.defineProperty(p,_,u),u},l=this&&this.__param||function(g,p){return function(_,b){p(_,b,g)}};Object.defineProperty(i,"__esModule",{value:!0}),i.CompositionHelper=void 0;var h=s(4725),f=s(2585),m=function(){function g(p,_,b,v,c,u){this._textarea=p,this._compositionView=_,this._bufferService=b,this._optionsService=v,this._coreService=c,this._renderService=u,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}return Object.defineProperty(g.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),g.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")},g.prototype.compositionupdate=function(p){var _=this;this._compositionView.textContent=p.data,this.updateCompositionElements(),setTimeout(function(){_._compositionPosition.end=_._textarea.value.length},0)},g.prototype.compositionend=function(){this._finalizeComposition(!0)},g.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)},g.prototype._finalizeComposition=function(p){var _=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(_._isSendingComposition){_._isSendingComposition=!1;var c;b.start+=_._dataAlreadySent.length,(c=_._isComposing?_._textarea.value.substring(b.start,b.end):_._textarea.value.substring(b.start)).length>0&&_._coreService.triggerDataEvent(c,!0)}},0)}else{this._isSendingComposition=!1;var v=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(v,!0)}},g.prototype._handleAnyTextareaChanges=function(){var p=this,_=this._textarea.value;setTimeout(function(){if(!p._isComposing){var b=p._textarea.value.replace(_,"");b.length>0&&(p._dataAlreadySent=b,p._coreService.triggerDataEvent(b,!0))}},0)},g.prototype.updateCompositionElements=function(p){var _=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var b=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),v=this._renderService.dimensions.actualCellHeight,c=this._bufferService.buffer.y*this._renderService.dimensions.actualCellHeight,u=b*this._renderService.dimensions.actualCellWidth;this._compositionView.style.left=u+"px",this._compositionView.style.top=c+"px",this._compositionView.style.height=v+"px",this._compositionView.style.lineHeight=v+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";var d=this._compositionView.getBoundingClientRect();this._textarea.style.left=u+"px",this._textarea.style.top=c+"px",this._textarea.style.width=Math.max(d.width,1)+"px",this._textarea.style.height=Math.max(d.height,1)+"px",this._textarea.style.lineHeight=d.height+"px"}p||setTimeout(function(){return _.updateCompositionElements(!0)},0)}},a([l(2,f.IBufferService),l(3,f.IOptionsService),l(4,f.ICoreService),l(5,h.IRenderService)],g)}();i.CompositionHelper=m},9806:(o,i)=>{function s(a,l){var h=l.getBoundingClientRect();return[a.clientX-h.left,a.clientY-h.top]}Object.defineProperty(i,"__esModule",{value:!0}),i.getRawByteCoords=i.getCoords=i.getCoordsRelativeToElement=void 0,i.getCoordsRelativeToElement=s,i.getCoords=function(a,l,h,f,m,g,p,_){if(m){var b=s(a,l);if(b)return b[0]=Math.ceil((b[0]+(_?g/2:0))/g),b[1]=Math.ceil(b[1]/p),b[0]=Math.min(Math.max(b[0],1),h+(_?1:0)),b[1]=Math.min(Math.max(b[1],1),f),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(_,b,v,c){var u=_-h(v,_),d=b-h(v,b),y=Math.abs(u-d)-function(S,w,C){for(var T=0,L=S-h(C,S),E=w-h(C,w),A=0;A=0&&b<_.rows;)v++,u=(c=_.buffer.lines.get(--b))==null?void 0:c.isWrapped;return v}function f(_,b){return _>b?"A":"B"}function m(_,b,v,c,u,d){for(var y=_,S=b,w="";y!==v||S!==c;)y+=u?1:-1,u&&y>d.cols-1?(w+=d.buffer.translateBufferLineToString(S,!1,_,y),y=0,_=0,S++):!u&&y<0&&(w+=d.buffer.translateBufferLineToString(S,!1,0,_+1),_=y=d.cols-1,S--);return w+d.buffer.translateBufferLineToString(S,!1,_,y)}function g(_,b){var v=b?"O":"[";return a.C0.ESC+v+_}function p(_,b){_=Math.floor(_);for(var v="",c=0;c<_;c++)v+=b;return v}i.moveToCellSequence=function(_,b,v,c){var u,d=v.buffer.x,y=v.buffer.y;if(!v.buffer.hasScrollback)return function(w,C,T,L,E,A){return l(C,L,E,A).length===0?"":p(m(w,C,w,C-h(E,C),!1,E).length,g("D",A))}(d,y,0,b,v,c)+l(y,b,v,c)+function(w,C,T,L,E,A){var M;M=l(C,L,E,A).length>0?L-h(E,L):C;var O=L,$=function(D,R,B,N,U,z){var X;return X=l(B,N,U,z).length>0?N-h(U,N):R,D=B&&X_?"D":"C",p(Math.abs(d-_),g(u,c));u=y>b?"D":"C";var S=Math.abs(y-b);return p(function(w,C){return C.cols-w}(y>b?_:d,v)+(S-1)*v.cols+1+((y>b?d:_)-1),g(u,c))}},4389:function(o,i,s){var a=this&&this.__assign||function(){return a=Object.assign||function(v){for(var c,u=1,d=arguments.length;u{Object.defineProperty(i,"__esModule",{value:!0}),i.BaseRenderLayer=void 0;var a=s(643),l=s(8803),h=s(1420),f=s(3734),m=s(1752),g=s(4774),p=s(9631),_=s(8978),b=function(){function v(c,u,d,y,S,w,C,T){this._container=c,this._alpha=y,this._colors=S,this._rendererId=w,this._bufferService=C,this._optionsService=T,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-"+u+"-layer"),this._canvas.style.zIndex=d.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return v.prototype.dispose=function(){var c;(0,p.removeElementFromParent)(this._canvas),(c=this._charAtlas)===null||c===void 0||c.dispose()},v.prototype._initCanvas=function(){this._ctx=(0,m.throwIfFalsy)(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},v.prototype.onOptionsChanged=function(){},v.prototype.onBlur=function(){},v.prototype.onFocus=function(){},v.prototype.onCursorMove=function(){},v.prototype.onGridChanged=function(c,u){},v.prototype.onSelectionChanged=function(c,u,d){},v.prototype.setColors=function(c){this._refreshCharAtlas(c)},v.prototype._setTransparency=function(c){if(c!==this._alpha){var u=this._canvas;this._alpha=c,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,u),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},v.prototype._refreshCharAtlas=function(c){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=(0,h.acquireCharAtlas)(this._optionsService.rawOptions,this._rendererId,c,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},v.prototype.resize=function(c){this._scaledCellWidth=c.scaledCellWidth,this._scaledCellHeight=c.scaledCellHeight,this._scaledCharWidth=c.scaledCharWidth,this._scaledCharHeight=c.scaledCharHeight,this._scaledCharLeft=c.scaledCharLeft,this._scaledCharTop=c.scaledCharTop,this._canvas.width=c.scaledCanvasWidth,this._canvas.height=c.scaledCanvasHeight,this._canvas.style.width=c.canvasWidth+"px",this._canvas.style.height=c.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},v.prototype.clearTextureAtlas=function(){var c;(c=this._charAtlas)===null||c===void 0||c.clear()},v.prototype._fillCells=function(c,u,d,y){this._ctx.fillRect(c*this._scaledCellWidth,u*this._scaledCellHeight,d*this._scaledCellWidth,y*this._scaledCellHeight)},v.prototype._fillMiddleLineAtCells=function(c,u,d){d===void 0&&(d=1);var y=Math.ceil(.5*this._scaledCellHeight);this._ctx.fillRect(c*this._scaledCellWidth,(u+1)*this._scaledCellHeight-y-window.devicePixelRatio,d*this._scaledCellWidth,window.devicePixelRatio)},v.prototype._fillBottomLineAtCells=function(c,u,d){d===void 0&&(d=1),this._ctx.fillRect(c*this._scaledCellWidth,(u+1)*this._scaledCellHeight-window.devicePixelRatio-1,d*this._scaledCellWidth,window.devicePixelRatio)},v.prototype._fillLeftLineAtCell=function(c,u,d){this._ctx.fillRect(c*this._scaledCellWidth,u*this._scaledCellHeight,window.devicePixelRatio*d,this._scaledCellHeight)},v.prototype._strokeRectAtCell=function(c,u,d,y){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(c*this._scaledCellWidth+window.devicePixelRatio/2,u*this._scaledCellHeight+window.devicePixelRatio/2,d*this._scaledCellWidth-window.devicePixelRatio,y*this._scaledCellHeight-window.devicePixelRatio)},v.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))},v.prototype._clearCells=function(c,u,d,y){this._alpha?this._ctx.clearRect(c*this._scaledCellWidth,u*this._scaledCellHeight,d*this._scaledCellWidth,y*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(c*this._scaledCellWidth,u*this._scaledCellHeight,d*this._scaledCellWidth,y*this._scaledCellHeight))},v.prototype._fillCharTrueColor=function(c,u,d){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline=l.TEXT_BASELINE,this._clipRow(d);var y=!1;this._optionsService.rawOptions.customGlyphs!==!1&&(y=(0,_.tryDrawCustomChar)(this._ctx,c.getChars(),u*this._scaledCellWidth,d*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),y||this._ctx.fillText(c.getChars(),u*this._scaledCellWidth+this._scaledCharLeft,d*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight)},v.prototype._drawChars=function(c,u,d){var y,S,w,C=this._getContrastColor(c);C||c.isFgRGB()||c.isBgRGB()?this._drawUncachedChars(c,u,d,C):(c.isInverse()?(S=c.isBgDefault()?l.INVERTED_DEFAULT_COLOR:c.getBgColor(),w=c.isFgDefault()?l.INVERTED_DEFAULT_COLOR:c.getFgColor()):(w=c.isBgDefault()?a.DEFAULT_COLOR:c.getBgColor(),S=c.isFgDefault()?a.DEFAULT_COLOR:c.getFgColor()),S+=this._optionsService.rawOptions.drawBoldTextInBrightColors&&c.isBold()&&S<8?8:0,this._currentGlyphIdentifier.chars=c.getChars()||a.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=c.getCode()||a.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=w,this._currentGlyphIdentifier.fg=S,this._currentGlyphIdentifier.bold=!!c.isBold(),this._currentGlyphIdentifier.dim=!!c.isDim(),this._currentGlyphIdentifier.italic=!!c.isItalic(),!((y=this._charAtlas)===null||y===void 0)&&y.draw(this._ctx,this._currentGlyphIdentifier,u*this._scaledCellWidth+this._scaledCharLeft,d*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(c,u,d))},v.prototype._drawUncachedChars=function(c,u,d,y){if(this._ctx.save(),this._ctx.font=this._getFont(!!c.isBold(),!!c.isItalic()),this._ctx.textBaseline=l.TEXT_BASELINE,c.isInverse())if(y)this._ctx.fillStyle=y.css;else if(c.isBgDefault())this._ctx.fillStyle=g.color.opaque(this._colors.background).css;else if(c.isBgRGB())this._ctx.fillStyle="rgb("+f.AttributeData.toColorRGB(c.getBgColor()).join(",")+")";else{var S=c.getBgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&c.isBold()&&S<8&&(S+=8),this._ctx.fillStyle=this._colors.ansi[S].css}else if(y)this._ctx.fillStyle=y.css;else if(c.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(c.isFgRGB())this._ctx.fillStyle="rgb("+f.AttributeData.toColorRGB(c.getFgColor()).join(",")+")";else{var w=c.getFgColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&c.isBold()&&w<8&&(w+=8),this._ctx.fillStyle=this._colors.ansi[w].css}this._clipRow(d),c.isDim()&&(this._ctx.globalAlpha=l.DIM_OPACITY);var C=!1;this._optionsService.rawOptions.customGlyphs!==!1&&(C=(0,_.tryDrawCustomChar)(this._ctx,c.getChars(),u*this._scaledCellWidth,d*this._scaledCellHeight,this._scaledCellWidth,this._scaledCellHeight)),C||this._ctx.fillText(c.getChars(),u*this._scaledCellWidth+this._scaledCharLeft,d*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight),this._ctx.restore()},v.prototype._clipRow=function(c){this._ctx.beginPath(),this._ctx.rect(0,c*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},v.prototype._getFont=function(c,u){return(u?"italic":"")+" "+(c?this._optionsService.rawOptions.fontWeightBold:this._optionsService.rawOptions.fontWeight)+" "+this._optionsService.rawOptions.fontSize*window.devicePixelRatio+"px "+this._optionsService.rawOptions.fontFamily},v.prototype._getContrastColor=function(c){if(this._optionsService.rawOptions.minimumContrastRatio!==1){var u=this._colors.contrastCache.getColor(c.bg,c.fg);if(u!==void 0)return u||void 0;var d=c.getFgColor(),y=c.getFgColorMode(),S=c.getBgColor(),w=c.getBgColorMode(),C=!!c.isInverse(),T=!!c.isInverse();if(C){var L=d;d=S,S=L;var E=y;y=w,w=E}var A=this._resolveBackgroundRgba(w,S,C),M=this._resolveForegroundRgba(y,d,C,T),O=g.rgba.ensureContrastRatio(A,M,this._optionsService.rawOptions.minimumContrastRatio);if(O){var $={css:g.channels.toCss(O>>24&255,O>>16&255,O>>8&255),rgba:O};return this._colors.contrastCache.setColor(c.bg,c.fg,$),$}this._colors.contrastCache.setColor(c.bg,c.fg,null)}},v.prototype._resolveBackgroundRgba=function(c,u,d){switch(c){case 16777216:case 33554432:return this._colors.ansi[u].rgba;case 50331648:return u<<8;default:return d?this._colors.foreground.rgba:this._colors.background.rgba}},v.prototype._resolveForegroundRgba=function(c,u,d,y){switch(c){case 16777216:case 33554432:return this._optionsService.rawOptions.drawBoldTextInBrightColors&&y&&u<8&&(u+=8),this._colors.ansi[u].rgba;case 50331648:return u<<8;default:return d?this._colors.background.rgba:this._colors.foreground.rgba}},v}();i.BaseRenderLayer=b},2512:function(o,i,s){var a,l=this&&this.__extends||(a=function(u,d){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,S){y.__proto__=S}||function(y,S){for(var w in S)Object.prototype.hasOwnProperty.call(S,w)&&(y[w]=S[w])},a(u,d)},function(u,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function y(){this.constructor=u}a(u,d),u.prototype=d===null?Object.create(d):(y.prototype=d.prototype,new y)}),h=this&&this.__decorate||function(u,d,y,S){var w,C=arguments.length,T=C<3?d:S===null?S=Object.getOwnPropertyDescriptor(d,y):S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(u,d,y,S);else for(var L=u.length-1;L>=0;L--)(w=u[L])&&(T=(C<3?w(T):C>3?w(d,y,T):w(d,y))||T);return C>3&&T&&Object.defineProperty(d,y,T),T},f=this&&this.__param||function(u,d){return function(y,S){d(y,S,u)}};Object.defineProperty(i,"__esModule",{value:!0}),i.CursorRenderLayer=void 0;var m=s(1546),g=s(511),p=s(2585),_=s(4725),b=600,v=function(u){function d(y,S,w,C,T,L,E,A,M){var O=u.call(this,y,"cursor",S,!0,w,C,L,E)||this;return O._onRequestRedraw=T,O._coreService=A,O._coreBrowserService=M,O._cell=new g.CellData,O._state={x:0,y:0,isFocused:!1,style:"",width:0},O._cursorRenderers={bar:O._renderBarCursor.bind(O),block:O._renderBlockCursor.bind(O),underline:O._renderUnderlineCursor.bind(O)},O}return l(d,u),d.prototype.dispose=function(){this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0),u.prototype.dispose.call(this)},d.prototype.resize=function(y){u.prototype.resize.call(this,y),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},d.prototype.reset=function(){var y;this._clearCursor(),(y=this._cursorBlinkStateManager)===null||y===void 0||y.restartBlinkAnimation(),this.onOptionsChanged()},d.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})},d.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})},d.prototype.onOptionsChanged=function(){var y,S=this;this._optionsService.rawOptions.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new c(this._coreBrowserService.isFocused,function(){S._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})},d.prototype.onCursorMove=function(){var y;(y=this._cursorBlinkStateManager)===null||y===void 0||y.restartBlinkAnimation()},d.prototype.onGridChanged=function(y,S){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},d.prototype._render=function(y){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var S=this._bufferService.buffer.ybase+this._bufferService.buffer.y,w=S-this._bufferService.buffer.ydisp;if(w<0||w>=this._bufferService.rows)this._clearCursor();else{var C=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(S).loadCell(C,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var T=this._optionsService.rawOptions.cursorStyle;return T&&T!=="block"?this._cursorRenderers[T](C,w,this._cell):this._renderBlurCursor(C,w,this._cell),this._ctx.restore(),this._state.x=C,this._state.y=w,this._state.isFocused=!1,this._state.style=T,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===C&&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"](C,w,this._cell),this._ctx.restore(),this._state.x=C,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()},d.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})},d.prototype._renderBarCursor=function(y,S,w){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(y,S,this._optionsService.rawOptions.cursorWidth),this._ctx.restore()},d.prototype._renderBlockCursor=function(y,S,w){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(y,S,w.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(w,y,S),this._ctx.restore()},d.prototype._renderUnderlineCursor=function(y,S,w){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(y,S),this._ctx.restore()},d.prototype._renderBlurCursor=function(y,S,w){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(y,S,w.getWidth(),1),this._ctx.restore()},h([f(5,p.IBufferService),f(6,p.IOptionsService),f(7,p.ICoreService),f(8,_.ICoreBrowserService)],d)}(m.BaseRenderLayer);i.CursorRenderLayer=v;var c=function(){function u(d,y){this._renderCallback=y,this.isCursorVisible=!0,d&&this._restartInterval()}return Object.defineProperty(u.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),u.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)},u.prototype.restartBlinkAnimation=function(){var d=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){d._renderCallback(),d._animationFrame=void 0})))},u.prototype._restartInterval=function(d){var y=this;d===void 0&&(d=b),this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout=window.setTimeout(function(){if(y._animationTimeRestarted){var S=b-(Date.now()-y._animationTimeRestarted);if(y._animationTimeRestarted=void 0,S>0)return void y._restartInterval(S)}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)},d)},u.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)},u.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},u}()},8978:(o,i,s)=>{var a,l,h,f,m,g,p,_,b,v,c,u,d,y,S,w,C,T,L,E,A,M,O,$,D,R,B,N,U,z,X,ge,_e,Oe,x,q,k,P,I,le,ie,he,H,j,K,W,re,fe,pe,ce,de,se,G,ue,ye,Ce,Me,je,Ge,Xe,Lt,Tr,Bn,Ar,Pn,gt,Ot,In,us,fs,hs,ds,ps,vs,gs,_s,ms,ys,bs,Ss,ws,Cs,Es,Ts,As,Ls,Os,xs,Rs,ks,Ms,Bs,Ps,Is,Ds,Fs,Hs,Ns,$s,js,Us,qs,Ws,Vs,zs,Ks,Gs,Ys,Js,Xs,Zs,Qs,jl,Ul,ql,Wl,Vl,zl,Kl,Gl,Yl,Jl,Xl,Zl,Ql,ec,tc,rc;Object.defineProperty(i,"__esModule",{value:!0}),i.tryDrawCustomChar=i.boxDrawingDefinitions=i.blockElementDefinitions=void 0;var Wf=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 Fm={"\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":(h={},h[1]="M.5,0 L.5,1",h),"\u2503":(f={},f[3]="M.5,0 L.5,1",f),"\u250C":(m={},m[1]="M0.5,1 L.5,.5 L1,.5",m),"\u250F":(g={},g[3]="M0.5,1 L.5,.5 L1,.5",g),"\u2510":(p={},p[1]="M0,.5 L.5,.5 L.5,1",p),"\u2513":(_={},_[3]="M0,.5 L.5,.5 L.5,1",_),"\u2514":(b={},b[1]="M.5,0 L.5,.5 L1,.5",b),"\u2517":(v={},v[3]="M.5,0 L.5,.5 L1,.5",v),"\u2518":(c={},c[1]="M.5,0 L.5,.5 L0,.5",c),"\u251B":(u={},u[3]="M.5,0 L.5,.5 L0,.5",u),"\u251C":(d={},d[1]="M.5,0 L.5,1 M.5,.5 L1,.5",d),"\u2523":(y={},y[3]="M.5,0 L.5,1 M.5,.5 L1,.5",y),"\u2524":(S={},S[1]="M.5,0 L.5,1 M.5,.5 L0,.5",S),"\u252B":(w={},w[3]="M.5,0 L.5,1 M.5,.5 L0,.5",w),"\u252C":(C={},C[1]="M0,.5 L1,.5 M.5,.5 L.5,1",C),"\u2533":(T={},T[3]="M0,.5 L1,.5 M.5,.5 L.5,1",T),"\u2534":(L={},L[1]="M0,.5 L1,.5 M.5,.5 L.5,0",L),"\u253B":(E={},E[3]="M0,.5 L1,.5 M.5,.5 L.5,0",E),"\u253C":(A={},A[1]="M0,.5 L1,.5 M.5,0 L.5,1",A),"\u254B":(M={},M[3]="M0,.5 L1,.5 M.5,0 L.5,1",M),"\u2574":(O={},O[1]="M.5,.5 L0,.5",O),"\u2578":($={},$[3]="M.5,.5 L0,.5",$),"\u2575":(D={},D[1]="M.5,.5 L.5,0",D),"\u2579":(R={},R[3]="M.5,.5 L.5,0",R),"\u2576":(B={},B[1]="M.5,.5 L1,.5",B),"\u257A":(N={},N[3]="M.5,.5 L1,.5",N),"\u2577":(U={},U[1]="M.5,.5 L.5,1",U),"\u257B":(z={},z[3]="M.5,.5 L.5,1",z),"\u2550":(X={},X[1]=function(ee,Z){return"M0,"+(.5-Z)+" L1,"+(.5-Z)+" M0,"+(.5+Z)+" L1,"+(.5+Z)},X),"\u2551":(ge={},ge[1]=function(ee,Z){return"M"+(.5-ee)+",0 L"+(.5-ee)+",1 M"+(.5+ee)+",0 L"+(.5+ee)+",1"},ge),"\u2552":(_e={},_e[1]=function(ee,Z){return"M.5,1 L.5,"+(.5-Z)+" L1,"+(.5-Z)+" M.5,"+(.5+Z)+" L1,"+(.5+Z)},_e),"\u2553":(Oe={},Oe[1]=function(ee,Z){return"M"+(.5-ee)+",1 L"+(.5-ee)+",.5 L1,.5 M"+(.5+ee)+",.5 L"+(.5+ee)+",1"},Oe),"\u2554":(x={},x[1]=function(ee,Z){return"M1,"+(.5-Z)+" L"+(.5-ee)+","+(.5-Z)+" L"+(.5-ee)+",1 M1,"+(.5+Z)+" L"+(.5+ee)+","+(.5+Z)+" L"+(.5+ee)+",1"},x),"\u2555":(q={},q[1]=function(ee,Z){return"M0,"+(.5-Z)+" L.5,"+(.5-Z)+" L.5,1 M0,"+(.5+Z)+" L.5,"+(.5+Z)},q),"\u2556":(k={},k[1]=function(ee,Z){return"M"+(.5+ee)+",1 L"+(.5+ee)+",.5 L0,.5 M"+(.5-ee)+",.5 L"+(.5-ee)+",1"},k),"\u2557":(P={},P[1]=function(ee,Z){return"M0,"+(.5+Z)+" L"+(.5-ee)+","+(.5+Z)+" L"+(.5-ee)+",1 M0,"+(.5-Z)+" L"+(.5+ee)+","+(.5-Z)+" L"+(.5+ee)+",1"},P),"\u2558":(I={},I[1]=function(ee,Z){return"M.5,0 L.5,"+(.5+Z)+" L1,"+(.5+Z)+" M.5,"+(.5-Z)+" L1,"+(.5-Z)},I),"\u2559":(le={},le[1]=function(ee,Z){return"M1,.5 L"+(.5-ee)+",.5 L"+(.5-ee)+",0 M"+(.5+ee)+",.5 L"+(.5+ee)+",0"},le),"\u255A":(ie={},ie[1]=function(ee,Z){return"M1,"+(.5-Z)+" L"+(.5+ee)+","+(.5-Z)+" L"+(.5+ee)+",0 M1,"+(.5+Z)+" L"+(.5-ee)+","+(.5+Z)+" L"+(.5-ee)+",0"},ie),"\u255B":(he={},he[1]=function(ee,Z){return"M0,"+(.5+Z)+" L.5,"+(.5+Z)+" L.5,0 M0,"+(.5-Z)+" L.5,"+(.5-Z)},he),"\u255C":(H={},H[1]=function(ee,Z){return"M0,.5 L"+(.5+ee)+",.5 L"+(.5+ee)+",0 M"+(.5-ee)+",.5 L"+(.5-ee)+",0"},H),"\u255D":(j={},j[1]=function(ee,Z){return"M0,"+(.5-Z)+" L"+(.5-ee)+","+(.5-Z)+" L"+(.5-ee)+",0 M0,"+(.5+Z)+" L"+(.5+ee)+","+(.5+Z)+" L"+(.5+ee)+",0"},j),"\u255E":(K={},K[1]=function(ee,Z){return"M.5,0 L.5,1 M.5,"+(.5-Z)+" L1,"+(.5-Z)+" M.5,"+(.5+Z)+" L1,"+(.5+Z)},K),"\u255F":(W={},W[1]=function(ee,Z){return"M"+(.5-ee)+",0 L"+(.5-ee)+",1 M"+(.5+ee)+",0 L"+(.5+ee)+",1 M"+(.5+ee)+",.5 L1,.5"},W),"\u2560":(re={},re[1]=function(ee,Z){return"M"+(.5-ee)+",0 L"+(.5-ee)+",1 M1,"+(.5+Z)+" L"+(.5+ee)+","+(.5+Z)+" L"+(.5+ee)+",1 M1,"+(.5-Z)+" L"+(.5+ee)+","+(.5-Z)+" L"+(.5+ee)+",0"},re),"\u2561":(fe={},fe[1]=function(ee,Z){return"M.5,0 L.5,1 M0,"+(.5-Z)+" L.5,"+(.5-Z)+" M0,"+(.5+Z)+" L.5,"+(.5+Z)},fe),"\u2562":(pe={},pe[1]=function(ee,Z){return"M0,.5 L"+(.5-ee)+",.5 M"+(.5-ee)+",0 L"+(.5-ee)+",1 M"+(.5+ee)+",0 L"+(.5+ee)+",1"},pe),"\u2563":(ce={},ce[1]=function(ee,Z){return"M"+(.5+ee)+",0 L"+(.5+ee)+",1 M0,"+(.5+Z)+" L"+(.5-ee)+","+(.5+Z)+" L"+(.5-ee)+",1 M0,"+(.5-Z)+" L"+(.5-ee)+","+(.5-Z)+" L"+(.5-ee)+",0"},ce),"\u2564":(de={},de[1]=function(ee,Z){return"M0,"+(.5-Z)+" L1,"+(.5-Z)+" M0,"+(.5+Z)+" L1,"+(.5+Z)+" M.5,"+(.5+Z)+" L.5,1"},de),"\u2565":(se={},se[1]=function(ee,Z){return"M0,.5 L1,.5 M"+(.5-ee)+",.5 L"+(.5-ee)+",1 M"+(.5+ee)+",.5 L"+(.5+ee)+",1"},se),"\u2566":(G={},G[1]=function(ee,Z){return"M0,"+(.5-Z)+" L1,"+(.5-Z)+" M0,"+(.5+Z)+" L"+(.5-ee)+","+(.5+Z)+" L"+(.5-ee)+",1 M1,"+(.5+Z)+" L"+(.5+ee)+","+(.5+Z)+" L"+(.5+ee)+",1"},G),"\u2567":(ue={},ue[1]=function(ee,Z){return"M.5,0 L.5,"+(.5-Z)+" M0,"+(.5-Z)+" L1,"+(.5-Z)+" M0,"+(.5+Z)+" L1,"+(.5+Z)},ue),"\u2568":(ye={},ye[1]=function(ee,Z){return"M0,.5 L1,.5 M"+(.5-ee)+",.5 L"+(.5-ee)+",0 M"+(.5+ee)+",.5 L"+(.5+ee)+",0"},ye),"\u2569":(Ce={},Ce[1]=function(ee,Z){return"M0,"+(.5+Z)+" L1,"+(.5+Z)+" M0,"+(.5-Z)+" L"+(.5-ee)+","+(.5-Z)+" L"+(.5-ee)+",0 M1,"+(.5-Z)+" L"+(.5+ee)+","+(.5-Z)+" L"+(.5+ee)+",0"},Ce),"\u256A":(Me={},Me[1]=function(ee,Z){return"M.5,0 L.5,1 M0,"+(.5-Z)+" L1,"+(.5-Z)+" M0,"+(.5+Z)+" L1,"+(.5+Z)},Me),"\u256B":(je={},je[1]=function(ee,Z){return"M0,.5 L1,.5 M"+(.5-ee)+",0 L"+(.5-ee)+",1 M"+(.5+ee)+",0 L"+(.5+ee)+",1"},je),"\u256C":(Ge={},Ge[1]=function(ee,Z){return"M0,"+(.5+Z)+" L"+(.5-ee)+","+(.5+Z)+" L"+(.5-ee)+",1 M1,"+(.5+Z)+" L"+(.5+ee)+","+(.5+Z)+" L"+(.5+ee)+",1 M0,"+(.5-Z)+" L"+(.5-ee)+","+(.5-Z)+" L"+(.5-ee)+",0 M1,"+(.5-Z)+" L"+(.5+ee)+","+(.5-Z)+" L"+(.5+ee)+",0"},Ge),"\u2571":(Xe={},Xe[1]="M1,0 L0,1",Xe),"\u2572":(Lt={},Lt[1]="M0,0 L1,1",Lt),"\u2573":(Tr={},Tr[1]="M1,0 L0,1 M0,0 L1,1",Tr),"\u257C":(Bn={},Bn[1]="M.5,.5 L0,.5",Bn[3]="M.5,.5 L1,.5",Bn),"\u257D":(Ar={},Ar[1]="M.5,.5 L.5,0",Ar[3]="M.5,.5 L.5,1",Ar),"\u257E":(Pn={},Pn[1]="M.5,.5 L1,.5",Pn[3]="M.5,.5 L0,.5",Pn),"\u257F":(gt={},gt[1]="M.5,.5 L.5,1",gt[3]="M.5,.5 L.5,0",gt),"\u250D":(Ot={},Ot[1]="M.5,.5 L.5,1",Ot[3]="M.5,.5 L1,.5",Ot),"\u250E":(In={},In[1]="M.5,.5 L1,.5",In[3]="M.5,.5 L.5,1",In),"\u2511":(us={},us[1]="M.5,.5 L.5,1",us[3]="M.5,.5 L0,.5",us),"\u2512":(fs={},fs[1]="M.5,.5 L0,.5",fs[3]="M.5,.5 L.5,1",fs),"\u2515":(hs={},hs[1]="M.5,.5 L.5,0",hs[3]="M.5,.5 L1,.5",hs),"\u2516":(ds={},ds[1]="M.5,.5 L1,.5",ds[3]="M.5,.5 L.5,0",ds),"\u2519":(ps={},ps[1]="M.5,.5 L.5,0",ps[3]="M.5,.5 L0,.5",ps),"\u251A":(vs={},vs[1]="M.5,.5 L0,.5",vs[3]="M.5,.5 L.5,0",vs),"\u251D":(gs={},gs[1]="M.5,0 L.5,1",gs[3]="M.5,.5 L1,.5",gs),"\u251E":(_s={},_s[1]="M0.5,1 L.5,.5 L1,.5",_s[3]="M.5,.5 L.5,0",_s),"\u251F":(ms={},ms[1]="M.5,0 L.5,.5 L1,.5",ms[3]="M.5,.5 L.5,1",ms),"\u2520":(ys={},ys[1]="M.5,.5 L1,.5",ys[3]="M.5,0 L.5,1",ys),"\u2521":(bs={},bs[1]="M.5,.5 L.5,1",bs[3]="M.5,0 L.5,.5 L1,.5",bs),"\u2522":(Ss={},Ss[1]="M.5,.5 L.5,0",Ss[3]="M0.5,1 L.5,.5 L1,.5",Ss),"\u2525":(ws={},ws[1]="M.5,0 L.5,1",ws[3]="M.5,.5 L0,.5",ws),"\u2526":(Cs={},Cs[1]="M0,.5 L.5,.5 L.5,1",Cs[3]="M.5,.5 L.5,0",Cs),"\u2527":(Es={},Es[1]="M.5,0 L.5,.5 L0,.5",Es[3]="M.5,.5 L.5,1",Es),"\u2528":(Ts={},Ts[1]="M.5,.5 L0,.5",Ts[3]="M.5,0 L.5,1",Ts),"\u2529":(As={},As[1]="M.5,.5 L.5,1",As[3]="M.5,0 L.5,.5 L0,.5",As),"\u252A":(Ls={},Ls[1]="M.5,.5 L.5,0",Ls[3]="M0,.5 L.5,.5 L.5,1",Ls),"\u252D":(Os={},Os[1]="M0.5,1 L.5,.5 L1,.5",Os[3]="M.5,.5 L0,.5",Os),"\u252E":(xs={},xs[1]="M0,.5 L.5,.5 L.5,1",xs[3]="M.5,.5 L1,.5",xs),"\u252F":(Rs={},Rs[1]="M.5,.5 L.5,1",Rs[3]="M0,.5 L1,.5",Rs),"\u2530":(ks={},ks[1]="M0,.5 L1,.5",ks[3]="M.5,.5 L.5,1",ks),"\u2531":(Ms={},Ms[1]="M.5,.5 L1,.5",Ms[3]="M0,.5 L.5,.5 L.5,1",Ms),"\u2532":(Bs={},Bs[1]="M.5,.5 L0,.5",Bs[3]="M0.5,1 L.5,.5 L1,.5",Bs),"\u2535":(Ps={},Ps[1]="M.5,0 L.5,.5 L1,.5",Ps[3]="M.5,.5 L0,.5",Ps),"\u2536":(Is={},Is[1]="M.5,0 L.5,.5 L0,.5",Is[3]="M.5,.5 L1,.5",Is),"\u2537":(Ds={},Ds[1]="M.5,.5 L.5,0",Ds[3]="M0,.5 L1,.5",Ds),"\u2538":(Fs={},Fs[1]="M0,.5 L1,.5",Fs[3]="M.5,.5 L.5,0",Fs),"\u2539":(Hs={},Hs[1]="M.5,.5 L1,.5",Hs[3]="M.5,0 L.5,.5 L0,.5",Hs),"\u253A":(Ns={},Ns[1]="M.5,.5 L0,.5",Ns[3]="M.5,0 L.5,.5 L1,.5",Ns),"\u253D":($s={},$s[1]="M.5,0 L.5,1 M.5,.5 L1,.5",$s[3]="M.5,.5 L0,.5",$s),"\u253E":(js={},js[1]="M.5,0 L.5,1 M.5,.5 L0,.5",js[3]="M.5,.5 L1,.5",js),"\u253F":(Us={},Us[1]="M.5,0 L.5,1",Us[3]="M0,.5 L1,.5",Us),"\u2540":(qs={},qs[1]="M0,.5 L1,.5 M.5,.5 L.5,1",qs[3]="M.5,.5 L.5,0",qs),"\u2541":(Ws={},Ws[1]="M.5,.5 L.5,0 M0,.5 L1,.5",Ws[3]="M.5,.5 L.5,1",Ws),"\u2542":(Vs={},Vs[1]="M0,.5 L1,.5",Vs[3]="M.5,0 L.5,1",Vs),"\u2543":(zs={},zs[1]="M0.5,1 L.5,.5 L1,.5",zs[3]="M.5,0 L.5,.5 L0,.5",zs),"\u2544":(Ks={},Ks[1]="M0,.5 L.5,.5 L.5,1",Ks[3]="M.5,0 L.5,.5 L1,.5",Ks),"\u2545":(Gs={},Gs[1]="M.5,0 L.5,.5 L1,.5",Gs[3]="M0,.5 L.5,.5 L.5,1",Gs),"\u2546":(Ys={},Ys[1]="M.5,0 L.5,.5 L0,.5",Ys[3]="M0.5,1 L.5,.5 L1,.5",Ys),"\u2547":(Js={},Js[1]="M.5,.5 L.5,1",Js[3]="M.5,.5 L.5,0 M0,.5 L1,.5",Js),"\u2548":(Xs={},Xs[1]="M.5,.5 L.5,0",Xs[3]="M0,.5 L1,.5 M.5,.5 L.5,1",Xs),"\u2549":(Zs={},Zs[1]="M.5,.5 L1,.5",Zs[3]="M.5,0 L.5,1 M.5,.5 L0,.5",Zs),"\u254A":(Qs={},Qs[1]="M.5,.5 L0,.5",Qs[3]="M.5,0 L.5,1 M.5,.5 L1,.5",Qs),"\u254C":(jl={},jl[1]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",jl),"\u254D":(Ul={},Ul[3]="M.1,.5 L.4,.5 M.6,.5 L.9,.5",Ul),"\u2504":(ql={},ql[1]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",ql),"\u2505":(Wl={},Wl[3]="M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5",Wl),"\u2508":(Vl={},Vl[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",Vl),"\u2509":(zl={},zl[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",zl),"\u254E":(Kl={},Kl[1]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",Kl),"\u254F":(Gl={},Gl[3]="M.5,.1 L.5,.4 M.5,.6 L.5,.9",Gl),"\u2506":(Yl={},Yl[1]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",Yl),"\u2507":(Jl={},Jl[3]="M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333",Jl),"\u250A":(Xl={},Xl[1]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",Xl),"\u250B":(Zl={},Zl[3]="M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95",Zl),"\u256D":(Ql={},Ql[1]="C.5,1,.5,.5,1,.5",Ql),"\u256E":(ec={},ec[1]="C.5,1,.5,.5,0,.5",ec),"\u256F":(tc={},tc[1]="C.5,0,.5,.5,0,.5",tc),"\u2570":(rc={},rc[1]="C.5,0,.5,.5,1,.5",rc)},i.tryDrawCustomChar=function(ee,Z,Lr,no,io,_t){var Or=i.blockElementDefinitions[Z];if(Or)return function(Pt,Rr,so,ao,gi,_i){for(var rr=0;rr7&&parseInt(ut.substr(7,2),16)||1;else{if(!ut.startsWith("rgba"))throw new Error('Unexpected fillStyle color format "'+ut+'" when drawing pattern glyph');mi=(rr=ut.substring(5,ut.length-1).split(",").map(function($m){return parseFloat($m)}))[0],Hn=rr[1],nc=rr[2],ic=rr[3]}for(var Nn=0;Nn{Object.defineProperty(i,"__esModule",{value:!0}),i.GridCache=void 0;var s=function(){function a(){this.cache=[]}return a.prototype.resize=function(l,h){for(var f=0;f=0;C--)(y=v[C])&&(w=(S<3?y(w):S>3?y(c,u,w):y(c,u))||w);return S>3&&w&&Object.defineProperty(c,u,w),w},f=this&&this.__param||function(v,c){return function(u,d){c(u,d,v)}};Object.defineProperty(i,"__esModule",{value:!0}),i.LinkRenderLayer=void 0;var m=s(1546),g=s(8803),p=s(2040),_=s(2585),b=function(v){function c(u,d,y,S,w,C,T,L){var E=v.call(this,u,"link",d,!0,y,S,T,L)||this;return w.onShowLinkUnderline(function(A){return E._onShowLinkUnderline(A)}),w.onHideLinkUnderline(function(A){return E._onHideLinkUnderline(A)}),C.onShowLinkUnderline(function(A){return E._onShowLinkUnderline(A)}),C.onHideLinkUnderline(function(A){return E._onHideLinkUnderline(A)}),E}return l(c,v),c.prototype.resize=function(u){v.prototype.resize.call(this,u),this._state=void 0},c.prototype.reset=function(){this._clearCurrentLink()},c.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var u=this._state.y2-this._state.y1-1;u>0&&this._clearCells(0,this._state.y1+1,this._state.cols,u),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},c.prototype._onShowLinkUnderline=function(u){if(u.fg===g.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:u.fg&&(0,p.is256Color)(u.fg)?this._ctx.fillStyle=this._colors.ansi[u.fg].css:this._ctx.fillStyle=this._colors.foreground.css,u.y1===u.y2)this._fillBottomLineAtCells(u.x1,u.y1,u.x2-u.x1);else{this._fillBottomLineAtCells(u.x1,u.y1,u.cols-u.x1);for(var d=u.y1+1;d=0;O--)(E=w[O])&&(M=(A<3?E(M):A>3?E(C,T,M):E(C,T))||M);return A>3&&M&&Object.defineProperty(C,T,M),M},f=this&&this.__param||function(w,C){return function(T,L){C(T,L,w)}};Object.defineProperty(i,"__esModule",{value:!0}),i.Renderer=void 0;var m=s(9596),g=s(4149),p=s(2512),_=s(5098),b=s(844),v=s(4725),c=s(2585),u=s(1420),d=s(8460),y=1,S=function(w){function C(T,L,E,A,M,O,$,D){var R=w.call(this)||this;R._colors=T,R._screenElement=L,R._bufferService=O,R._charSizeService=$,R._optionsService=D,R._id=y++,R._onRequestRedraw=new d.EventEmitter;var B=R._optionsService.rawOptions.allowTransparency;return R._renderLayers=[M.createInstance(m.TextRenderLayer,R._screenElement,0,R._colors,B,R._id),M.createInstance(g.SelectionRenderLayer,R._screenElement,1,R._colors,R._id),M.createInstance(_.LinkRenderLayer,R._screenElement,2,R._colors,R._id,E,A),M.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(C,w),Object.defineProperty(C.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),C.prototype.dispose=function(){for(var T=0,L=this._renderLayers;T{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(_,b){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,c){v.__proto__=c}||function(v,c){for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&(v[u]=c[u])},a(_,b)},function(_,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function v(){this.constructor=_}a(_,b),_.prototype=b===null?Object.create(b):(v.prototype=b.prototype,new v)}),h=this&&this.__decorate||function(_,b,v,c){var u,d=arguments.length,y=d<3?b:c===null?c=Object.getOwnPropertyDescriptor(b,v):c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(_,b,v,c);else for(var S=_.length-1;S>=0;S--)(u=_[S])&&(y=(d<3?u(y):d>3?u(b,v,y):u(b,v))||y);return d>3&&y&&Object.defineProperty(b,v,y),y},f=this&&this.__param||function(_,b){return function(v,c){b(v,c,_)}};Object.defineProperty(i,"__esModule",{value:!0}),i.SelectionRenderLayer=void 0;var m=s(1546),g=s(2585),p=function(_){function b(v,c,u,d,y,S){var w=_.call(this,v,"selection",c,!0,u,d,y,S)||this;return w._clearState(),w}return l(b,_),b.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},b.prototype.resize=function(v){_.prototype.resize.call(this,v),this._clearState()},b.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},b.prototype.onSelectionChanged=function(v,c,u){if(this._didStateChange(v,c,u,this._bufferService.buffer.ydisp))if(this._clearAll(),v&&c){var d=v[1]-this._bufferService.buffer.ydisp,y=c[1]-this._bufferService.buffer.ydisp,S=Math.max(d,0),w=Math.min(y,this._bufferService.rows-1);if(S>=this._bufferService.rows||w<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=this._colors.selectionTransparent.css,u){var C=v[0],T=c[0]-C,L=w-S+1;this._fillCells(C,S,T,L)}else{C=d===S?v[0]:0;var E=S===y?c[0]:this._bufferService.cols;this._fillCells(C,S,E-C,1);var A=Math.max(w-S-1,0);if(this._fillCells(0,S+1,this._bufferService.cols,A),S!==w){var M=y===w?c[0]:this._bufferService.cols;this._fillCells(0,w,M,1)}}this._state.start=[v[0],v[1]],this._state.end=[c[0],c[1]],this._state.columnSelectMode=u,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},b.prototype._didStateChange=function(v,c,u,d){return!this._areCoordinatesEqual(v,this._state.start)||!this._areCoordinatesEqual(c,this._state.end)||u!==this._state.columnSelectMode||d!==this._state.ydisp},b.prototype._areCoordinatesEqual=function(v,c){return!(!v||!c)&&v[0]===c[0]&&v[1]===c[1]},h([f(4,g.IBufferService),f(5,g.IOptionsService)],b)}(m.BaseRenderLayer);i.SelectionRenderLayer=p},9596:function(o,i,s){var a,l=this&&this.__extends||(a=function(y,S){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,C){w.__proto__=C}||function(w,C){for(var T in C)Object.prototype.hasOwnProperty.call(C,T)&&(w[T]=C[T])},a(y,S)},function(y,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function w(){this.constructor=y}a(y,S),y.prototype=S===null?Object.create(S):(w.prototype=S.prototype,new w)}),h=this&&this.__decorate||function(y,S,w,C){var T,L=arguments.length,E=L<3?S:C===null?C=Object.getOwnPropertyDescriptor(S,w):C;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(y,S,w,C);else for(var A=y.length-1;A>=0;A--)(T=y[A])&&(E=(L<3?T(E):L>3?T(S,w,E):T(S,w))||E);return L>3&&E&&Object.defineProperty(S,w,E),E},f=this&&this.__param||function(y,S){return function(w,C){S(w,C,y)}};Object.defineProperty(i,"__esModule",{value:!0}),i.TextRenderLayer=void 0;var m=s(3700),g=s(1546),p=s(3734),_=s(643),b=s(511),v=s(2585),c=s(4725),u=s(4269),d=function(y){function S(w,C,T,L,E,A,M,O){var $=y.call(this,w,"text",C,L,T,E,A,M)||this;return $._characterJoinerService=O,$._characterWidth=0,$._characterFont="",$._characterOverlapCache={},$._workCell=new b.CellData,$._state=new m.GridCache,$}return l(S,y),S.prototype.resize=function(w){y.prototype.resize.call(this,w);var C=this._getFont(!1,!1);this._characterWidth===w.scaledCharWidth&&this._characterFont===C||(this._characterWidth=w.scaledCharWidth,this._characterFont=C,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},S.prototype.reset=function(){this._state.clear(),this._clearAll()},S.prototype._forEachCell=function(w,C,T){for(var L=w;L<=C;L++)for(var E=L+this._bufferService.buffer.ydisp,A=this._bufferService.buffer.lines.get(E),M=this._characterJoinerService.getJoinedCharacters(E),O=0;O0&&O===M[0][0]){D=!0;var B=M.shift();$=new u.JoinedCellData(this._workCell,A.translateToString(!0,B[0],B[1]),B[1]-B[0]),R=B[1]-1}!D&&this._isOverlapping($)&&Rthis._characterWidth;return this._ctx.restore(),this._characterOverlapCache[C]=T,T},h([f(5,v.IBufferService),f(6,v.IOptionsService),f(7,c.ICharacterJoinerService)],S)}(g.BaseRenderLayer);i.TextRenderLayer=d},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),h=[];i.acquireCharAtlas=function(f,m,g,p,_){for(var b=(0,a.generateConfig)(p,_,f,g),v=0;v=0){if((0,a.configEquals)(u.config,b))return u.atlas;u.ownedBy.length===1?(u.atlas.dispose(),h.splice(v,1)):u.ownedBy.splice(c,1);break}}for(v=0;v{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(C,T){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,E){L.__proto__=E}||function(L,E){for(var A in E)Object.prototype.hasOwnProperty.call(E,A)&&(L[A]=E[A])},a(C,T)},function(C,T){if(typeof T!="function"&&T!==null)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");function L(){this.constructor=C}a(C,T),C.prototype=T===null?Object.create(T):(L.prototype=T.prototype,new L)});Object.defineProperty(i,"__esModule",{value:!0}),i.NoneCharAtlas=i.DynamicCharAtlas=i.getGlyphCacheKey=void 0;var h=s(8803),f=s(9616),m=s(5680),g=s(7001),p=s(6114),_=s(1752),b=s(4774),v=1024,c=1024,u={css:"rgba(0, 0, 0, 0)",rgba:0};function d(C){return C.code<<21|C.bg<<12|C.fg<<3|(C.bold?0:4)+(C.dim?0:2)+(C.italic?0:1)}i.getGlyphCacheKey=d;var y=function(C){function T(L,E){var A=C.call(this)||this;A._config=E,A._drawToCacheCount=0,A._glyphsWaitingOnBitmap=[],A._bitmapCommitTimeout=null,A._bitmap=null,A._cacheCanvas=L.createElement("canvas"),A._cacheCanvas.width=v,A._cacheCanvas.height=c,A._cacheCtx=(0,_.throwIfFalsy)(A._cacheCanvas.getContext("2d",{alpha:!0}));var M=L.createElement("canvas");M.width=A._config.scaledCharWidth,M.height=A._config.scaledCharHeight,A._tmpCtx=(0,_.throwIfFalsy)(M.getContext("2d",{alpha:A._config.allowTransparency})),A._width=Math.floor(v/A._config.scaledCharWidth),A._height=Math.floor(c/A._config.scaledCharHeight);var O=A._width*A._height;return A._cacheMap=new g.LRUMap(O),A._cacheMap.prealloc(O),A}return l(T,C),T.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},T.prototype.beginFrame=function(){this._drawToCacheCount=0},T.prototype.clear=function(){if(this._cacheMap.size>0){var L=this._width*this._height;this._cacheMap=new g.LRUMap(L),this._cacheMap.prealloc(L)}this._cacheCtx.clearRect(0,0,v,c),this._tmpCtx.clearRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight)},T.prototype.draw=function(L,E,A,M){if(E.code===32)return!0;if(!this._canCache(E))return!1;var O=d(E),$=this._cacheMap.get(O);if($!=null)return this._drawFromCache(L,$,A,M),!0;if(this._drawToCacheCount<100){var D;D=this._cacheMap.size>>24,A=T.rgba>>>16&255,M=T.rgba>>>8&255,O=0;O{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 h=l.prev,f=l.next;l===this._head&&(this._head=f),l===this._tail&&(this._tail=h),h!==null&&(h.next=f),f!==null&&(f.prev=h)},a.prototype._appendNode=function(l){var h=this._tail;h!==null&&(h.next=l),l.prev=h,l.next=null,this._tail=l,this._head===null&&(this._head=l)},a.prototype.prealloc=function(l){for(var h=this._nodePool,f=0;f=this.capacity)f=this._head,this._unlinkNode(f),delete this._map[f.key],f.key=l,f.value=h,this._map[l]=f;else{var m=this._nodePool;m.length>0?((f=m.pop()).key=l,f.value=h):f={prev:null,next:null,key:l,value:h},this._map[l]=f,this.size++}this._appendNode(f)},a}();i.LRUMap=s},1296:function(o,i,s){var a,l=this&&this.__extends||(a=function(L,E){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,M){A.__proto__=M}||function(A,M){for(var O in M)Object.prototype.hasOwnProperty.call(M,O)&&(A[O]=M[O])},a(L,E)},function(L,E){if(typeof E!="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function A(){this.constructor=L}a(L,E),L.prototype=E===null?Object.create(E):(A.prototype=E.prototype,new A)}),h=this&&this.__decorate||function(L,E,A,M){var O,$=arguments.length,D=$<3?E:M===null?M=Object.getOwnPropertyDescriptor(E,A):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")D=Reflect.decorate(L,E,A,M);else for(var R=L.length-1;R>=0;R--)(O=L[R])&&(D=($<3?O(D):$>3?O(E,A,D):O(E,A))||D);return $>3&&D&&Object.defineProperty(E,A,D),D},f=this&&this.__param||function(L,E){return function(A,M){E(A,M,L)}};Object.defineProperty(i,"__esModule",{value:!0}),i.DomRenderer=void 0;var m=s(3787),g=s(8803),p=s(844),_=s(4725),b=s(2585),v=s(8460),c=s(4774),u=s(9631),d="xterm-dom-renderer-owner-",y="xterm-fg-",S="xterm-bg-",w="xterm-focus",C=1,T=function(L){function E(A,M,O,$,D,R,B,N,U,z){var X=L.call(this)||this;return X._colors=A,X._element=M,X._screenElement=O,X._viewportElement=$,X._linkifier=D,X._linkifier2=R,X._charSizeService=N,X._optionsService=U,X._bufferService=z,X._terminalClass=C++,X._rowElements=[],X._rowContainer=document.createElement("div"),X._rowContainer.classList.add("xterm-rows"),X._rowContainer.style.lineHeight="normal",X._rowContainer.setAttribute("aria-hidden","true"),X._refreshRowElements(X._bufferService.cols,X._bufferService.rows),X._selectionContainer=document.createElement("div"),X._selectionContainer.classList.add("xterm-selection"),X._selectionContainer.setAttribute("aria-hidden","true"),X.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},X._updateDimensions(),X._injectCss(),X._rowFactory=B.createInstance(m.DomRendererRowFactory,document,X._colors),X._element.classList.add(d+X._terminalClass),X._screenElement.appendChild(X._rowContainer),X._screenElement.appendChild(X._selectionContainer),X._linkifier.onShowLinkUnderline(function(ge){return X._onLinkHover(ge)}),X._linkifier.onHideLinkUnderline(function(ge){return X._onLinkLeave(ge)}),X._linkifier2.onShowLinkUnderline(function(ge){return X._onLinkHover(ge)}),X._linkifier2.onHideLinkUnderline(function(ge){return X._onLinkLeave(ge)}),X}return l(E,L),Object.defineProperty(E.prototype,"onRequestRedraw",{get:function(){return new v.EventEmitter().event},enumerable:!1,configurable:!0}),E.prototype.dispose=function(){this._element.classList.remove(d+this._terminalClass),(0,u.removeElementFromParent)(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),L.prototype.dispose.call(this)},E.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,M=this._rowElements;AM;)this._rowContainer.removeChild(this._rowElements.pop())},E.prototype.onResize=function(A,M){this._refreshRowElements(A,M),this._updateDimensions()},E.prototype.onCharSizeChanged=function(){this._updateDimensions()},E.prototype.onBlur=function(){this._rowContainer.classList.remove(w)},E.prototype.onFocus=function(){this._rowContainer.classList.add(w)},E.prototype.onSelectionChanged=function(A,M,O){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(A&&M){var $=A[1]-this._bufferService.buffer.ydisp,D=M[1]-this._bufferService.buffer.ydisp,R=Math.max($,0),B=Math.min(D,this._bufferService.rows-1);if(!(R>=this._bufferService.rows||B<0)){var N=document.createDocumentFragment();if(O)N.appendChild(this._createSelectionElement(R,A[0],M[0],B-R+1));else{var U=$===R?A[0]:0,z=R===D?M[0]:this._bufferService.cols;N.appendChild(this._createSelectionElement(R,U,z));var X=B-R-1;if(N.appendChild(this._createSelectionElement(R+1,0,this._bufferService.cols,X)),R!==B){var ge=D===B?M[0]:this._bufferService.cols;N.appendChild(this._createSelectionElement(B,0,ge))}}this._selectionContainer.appendChild(N)}}},E.prototype._createSelectionElement=function(A,M,O,$){$===void 0&&($=1);var D=document.createElement("div");return D.style.height=$*this.dimensions.actualCellHeight+"px",D.style.top=A*this.dimensions.actualCellHeight+"px",D.style.left=M*this.dimensions.actualCellWidth+"px",D.style.width=this.dimensions.actualCellWidth*(O-M)+"px",D},E.prototype.onCursorMove=function(){},E.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},E.prototype.clear=function(){for(var A=0,M=this._rowElements;A=D&&(A=0,O++)}},h([f(6,b.IInstantiationService),f(7,_.ICharSizeService),f(8,b.IOptionsService),f(9,b.IBufferService)],E)}(p.Disposable);i.DomRenderer=T},3787:function(o,i,s){var a=this&&this.__decorate||function(u,d,y,S){var w,C=arguments.length,T=C<3?d:S===null?S=Object.getOwnPropertyDescriptor(d,y):S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(u,d,y,S);else for(var L=u.length-1;L>=0;L--)(w=u[L])&&(T=(C<3?w(T):C>3?w(d,y,T):w(d,y))||T);return C>3&&T&&Object.defineProperty(d,y,T),T},l=this&&this.__param||function(u,d){return function(y,S){d(y,S,u)}};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 h=s(8803),f=s(643),m=s(511),g=s(2585),p=s(4774),_=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 v=function(){function u(d,y,S,w,C){this._document=d,this._colors=y,this._characterJoinerService=S,this._optionsService=w,this._coreService=C,this._workCell=new m.CellData}return u.prototype.setColors=function(d){this._colors=d},u.prototype.createRow=function(d,y,S,w,C,T,L,E){for(var A=this._document.createDocumentFragment(),M=this._characterJoinerService.getJoinedCharacters(y),O=0,$=Math.min(d.length,E)-1;$>=0;$--)if(d.loadCell($,this._workCell).getCode()!==f.NULL_CELL_CODE||S&&$===C){O=$+1;break}for($=0;$0&&$===M[0][0]){R=!0;var U=M.shift();N=new b.JoinedCellData(this._workCell,d.translateToString(!0,U[0],U[1]),U[1]-U[0]),B=U[1]-1,D=N.getWidth()}var z=this._document.createElement("span");if(D>1&&(z.style.width=L*D+"px"),R&&(z.style.display="inline",C>=$&&C<=B&&(C=$)),!this._coreService.isCursorHidden&&S&&$===C)switch(z.classList.add(i.CURSOR_CLASS),T&&z.classList.add(i.CURSOR_BLINK_CLASS),w){case"bar":z.classList.add(i.CURSOR_STYLE_BAR_CLASS);break;case"underline":z.classList.add(i.CURSOR_STYLE_UNDERLINE_CLASS);break;default:z.classList.add(i.CURSOR_STYLE_BLOCK_CLASS)}N.isBold()&&z.classList.add(i.BOLD_CLASS),N.isItalic()&&z.classList.add(i.ITALIC_CLASS),N.isDim()&&z.classList.add(i.DIM_CLASS),N.isUnderline()&&z.classList.add(i.UNDERLINE_CLASS),N.isInvisible()?z.textContent=f.WHITESPACE_CELL_CHAR:z.textContent=N.getChars()||f.WHITESPACE_CELL_CHAR,N.isStrikethrough()&&z.classList.add(i.STRIKETHROUGH_CLASS);var X=N.getFgColor(),ge=N.getFgColorMode(),_e=N.getBgColor(),Oe=N.getBgColorMode(),x=!!N.isInverse();if(x){var q=X;X=_e,_e=q;var k=ge;ge=Oe,Oe=k}switch(ge){case 16777216:case 33554432:N.isBold()&&X<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(X+=8),this._applyMinimumContrast(z,this._colors.background,this._colors.ansi[X])||z.classList.add("xterm-fg-"+X);break;case 50331648:var P=p.rgba.toColor(X>>16&255,X>>8&255,255&X);this._applyMinimumContrast(z,this._colors.background,P)||this._addStyle(z,"color:#"+c(X.toString(16),"0",6));break;default:this._applyMinimumContrast(z,this._colors.background,this._colors.foreground)||x&&z.classList.add("xterm-fg-"+h.INVERTED_DEFAULT_COLOR)}switch(Oe){case 16777216:case 33554432:z.classList.add("xterm-bg-"+_e);break;case 50331648:this._addStyle(z,"background-color:#"+c(_e.toString(16),"0",6));break;default:x&&z.classList.add("xterm-bg-"+h.INVERTED_DEFAULT_COLOR)}A.appendChild(z),$=B}}return A},u.prototype._applyMinimumContrast=function(d,y,S){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,S,this._optionsService.rawOptions.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,w!=null?w:null)),!!w&&(this._addStyle(d,"color:"+w.css),!0)},u.prototype._addStyle=function(d,y){d.setAttribute("style",""+(d.getAttribute("style")||"")+y+";")},a([l(2,_.ICharacterJoinerService),l(3,g.IOptionsService),l(4,g.ICoreService)],u)}();function c(u,d,y){for(;u.length{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,h=this.selectionEnd;return!(!l||!h)&&(l[1]>h[1]||l[1]===h[1]&&l[0]>h[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,_,b,v){var c,u=arguments.length,d=u<3?_:v===null?v=Object.getOwnPropertyDescriptor(_,b):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(p,_,b,v);else for(var y=p.length-1;y>=0;y--)(c=p[y])&&(d=(u<3?c(d):u>3?c(_,b,d):c(_,b))||d);return u>3&&d&&Object.defineProperty(_,b,d),d},l=this&&this.__param||function(p,_){return function(b,v){_(b,v,p)}};Object.defineProperty(i,"__esModule",{value:!0}),i.CharSizeService=void 0;var h=s(2585),f=s(8460),m=function(){function p(_,b,v){this._optionsService=v,this.width=0,this.height=0,this._onCharSizeChange=new f.EventEmitter,this._measureStrategy=new 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 _=this._measureStrategy.measure();_.width===this.width&&_.height===this.height||(this.width=_.width,this.height=_.height,this._onCharSizeChange.fire())},a([l(2,h.IOptionsService)],p)}();i.CharSizeService=m;var g=function(){function p(_,b,v){this._document=_,this._parentElement=b,this._optionsService=v,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 _=this._measureElement.getBoundingClientRect();return _.width!==0&&_.height!==0&&(this._result.width=_.width,this._result.height=Math.ceil(_.height)),this._result},p}()},4269:function(o,i,s){var a,l=this&&this.__extends||(a=function(c,u){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,y){d.__proto__=y}||function(d,y){for(var S in y)Object.prototype.hasOwnProperty.call(y,S)&&(d[S]=y[S])},a(c,u)},function(c,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");function d(){this.constructor=c}a(c,u),c.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)}),h=this&&this.__decorate||function(c,u,d,y){var S,w=arguments.length,C=w<3?u:y===null?y=Object.getOwnPropertyDescriptor(u,d):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(c,u,d,y);else for(var T=c.length-1;T>=0;T--)(S=c[T])&&(C=(w<3?S(C):w>3?S(u,d,C):S(u,d))||C);return w>3&&C&&Object.defineProperty(u,d,C),C},f=this&&this.__param||function(c,u){return function(d,y){u(d,y,c)}};Object.defineProperty(i,"__esModule",{value:!0}),i.CharacterJoinerService=i.JoinedCellData=void 0;var m=s(3734),g=s(643),p=s(511),_=s(2585),b=function(c){function u(d,y,S){var w=c.call(this)||this;return w.content=0,w.combinedData="",w.fg=d.fg,w.bg=d.bg,w.combinedData=y,w._width=S,w}return l(u,c),u.prototype.isCombined=function(){return 2097152},u.prototype.getWidth=function(){return this._width},u.prototype.getChars=function(){return this.combinedData},u.prototype.getCode=function(){return 2097151},u.prototype.setFromCharData=function(d){throw new Error("not implemented")},u.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},u}(m.AttributeData);i.JoinedCellData=b;var v=function(){function c(u){this._bufferService=u,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new p.CellData}return c.prototype.register=function(u){var d={id:this._nextCharacterJoinerId++,handler:u};return this._characterJoiners.push(d),d.id},c.prototype.deregister=function(u){for(var d=0;d1)for(var M=this._getJoinedRanges(S,T,C,d,w),O=0;O1)for(M=this._getJoinedRanges(S,T,C,d,w),O=0;O{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(v,c){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var y in d)Object.prototype.hasOwnProperty.call(d,y)&&(u[y]=d[y])},a(v,c)},function(v,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function u(){this.constructor=v}a(v,c),v.prototype=c===null?Object.create(c):(u.prototype=c.prototype,new u)}),h=this&&this.__decorate||function(v,c,u,d){var y,S=arguments.length,w=S<3?c:d===null?d=Object.getOwnPropertyDescriptor(c,u):d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(v,c,u,d);else for(var C=v.length-1;C>=0;C--)(y=v[C])&&(w=(S<3?y(w):S>3?y(c,u,w):y(c,u))||w);return S>3&&w&&Object.defineProperty(c,u,w),w},f=this&&this.__param||function(v,c){return function(u,d){c(u,d,v)}};Object.defineProperty(i,"__esModule",{value:!0}),i.Decoration=i.DecorationService=void 0;var m=s(8460),g=s(844),p=s(2585),_=function(v){function c(u){var d=v.call(this)||this;return d._instantiationService=u,d._decorations=[],d}return l(c,v),c.prototype.attachToDom=function(u,d){var y=this;this._renderService=d,this._screenElement=u,this._container=document.createElement("div"),this._container.classList.add("xterm-decoration-container"),u.appendChild(this._container),this.register(this._renderService.onRenderedBufferChange(function(){return y.refresh()})),this.register(this._renderService.onDimensionsChange(function(){return y.refresh(!0)}))},c.prototype.registerDecoration=function(u){var d=this;if(!u.marker.isDisposed&&this._container){var y=this._instantiationService.createInstance(b,u,this._container);return this._decorations.push(y),y.onDispose(function(){return d._decorations.splice(d._decorations.indexOf(y),1)}),this._queueRefresh(),y}},c.prototype._queueRefresh=function(){var u=this;this._animationFrame===void 0&&(this._animationFrame=window.requestAnimationFrame(function(){u.refresh(),u._animationFrame=void 0}))},c.prototype.refresh=function(u){if(this._renderService)for(var d=0,y=this._decorations;dthis._bufferService.cols&&(this._element.style.display="none"),this.anchor==="right"?this._element.style.right=this.x?this.x*u.dimensions.actualCellWidth+"px":"":this._element.style.left=this.x?this.x*u.dimensions.actualCellWidth+"px":""},c.prototype._refreshStyle=function(u){if(this._element){var d=this.marker.line-this._bufferService.buffers.active.ydisp;d<0||d>this._bufferService.rows?this._element.style.display="none":(this._element.style.top=d*u.dimensions.actualCellHeight+"px",this._element.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?"none":"block")}},c.prototype.dispose=function(){this.isDisposed||(this._element&&this._container.contains(this._element)&&this._container.removeChild(this._element),this.isDisposed=!0,this._onDispose.fire())},h([f(2,p.IBufferService)],c)}(g.Disposable);i.Decoration=b},8934:function(o,i,s){var a=this&&this.__decorate||function(g,p,_,b){var v,c=arguments.length,u=c<3?p:b===null?b=Object.getOwnPropertyDescriptor(p,_):b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(g,p,_,b);else for(var d=g.length-1;d>=0;d--)(v=g[d])&&(u=(c<3?v(u):c>3?v(p,_,u):v(p,_))||u);return c>3&&u&&Object.defineProperty(p,_,u),u},l=this&&this.__param||function(g,p){return function(_,b){p(_,b,g)}};Object.defineProperty(i,"__esModule",{value:!0}),i.MouseService=void 0;var h=s(4725),f=s(9806),m=function(){function g(p,_){this._renderService=p,this._charSizeService=_}return g.prototype.getCoords=function(p,_,b,v,c){return(0,f.getCoords)(p,_,b,v,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,c)},g.prototype.getRawByteCoords=function(p,_,b,v){var c=this.getCoords(p,_,b,v);return(0,f.getRawByteCoords)(c)},a([l(0,h.IRenderService),l(1,h.ICharSizeService)],g)}();i.MouseService=m},3230:function(o,i,s){var a,l=this&&this.__extends||(a=function(d,y){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,w){S.__proto__=w}||function(S,w){for(var C in w)Object.prototype.hasOwnProperty.call(w,C)&&(S[C]=w[C])},a(d,y)},function(d,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function S(){this.constructor=d}a(d,y),d.prototype=y===null?Object.create(y):(S.prototype=y.prototype,new S)}),h=this&&this.__decorate||function(d,y,S,w){var C,T=arguments.length,L=T<3?y:w===null?w=Object.getOwnPropertyDescriptor(y,S):w;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(d,y,S,w);else for(var E=d.length-1;E>=0;E--)(C=d[E])&&(L=(T<3?C(L):T>3?C(y,S,L):C(y,S))||L);return T>3&&L&&Object.defineProperty(y,S,L),L},f=this&&this.__param||function(d,y){return function(S,w){y(S,w,d)}};Object.defineProperty(i,"__esModule",{value:!0}),i.RenderService=void 0;var m=s(6193),g=s(8460),p=s(844),_=s(5596),b=s(3656),v=s(2585),c=s(4725),u=function(d){function y(S,w,C,T,L,E){var A=d.call(this)||this;if(A._renderer=S,A._rowCount=w,A._charSizeService=L,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 g.EventEmitter,A._onRender=new g.EventEmitter,A._onRefreshRequest=new g.EventEmitter,A.register({dispose:function(){return A._renderer.dispose()}}),A._renderDebouncer=new m.RenderDebouncer(function(O,$){return A._renderRows(O,$)}),A.register(A._renderDebouncer),A._screenDprMonitor=new _.ScreenDprMonitor,A._screenDprMonitor.setListener(function(){return A.onDevicePixelRatioChange()}),A.register(A._screenDprMonitor),A.register(E.onResize(function(){return A._fullRefresh()})),A.register(E.buffers.onBufferActivate(function(){var O;return(O=A._renderer)===null||O===void 0?void 0:O.clear()})),A.register(T.onOptionChange(function(){return A._renderer.onOptionsChanged()})),A.register(A._charSizeService.onCharSizeChange(function(){return A.onCharSizeChanged()})),A._renderer.onRequestRedraw(function(O){return A.refreshRows(O.start,O.end,!0)}),A.register((0,b.addDisposableDomListener)(window,"resize",function(){return A.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var M=new IntersectionObserver(function(O){return A._onIntersectionChange(O[O.length-1])},{threshold:0});M.observe(C),A.register({dispose:function(){return M.disconnect()}})}return A}return l(y,d),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(S){this._isPaused=S.isIntersecting===void 0?S.intersectionRatio===0:!S.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(S,w,C){C===void 0&&(C=!1),this._isPaused?this._needsFullRefresh=!0:(C||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(S,w,this._rowCount))},y.prototype._renderRows=function(S,w){this._renderer.renderRows(S,w),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:S,end:w}),this._isNextRenderRedrawOnly=!0},y.prototype.resize=function(S,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(){d.prototype.dispose.call(this)},y.prototype.setRenderer=function(S){var w=this;this._renderer.dispose(),this._renderer=S,this._renderer.onRequestRedraw(function(C){return w.refreshRows(C.start,C.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 S,w;(w=(S=this._renderer)===null||S===void 0?void 0:S.clearTextureAtlas)===null||w===void 0||w.call(S),this._fullRefresh()},y.prototype.setColors=function(S){this._renderer.setColors(S),this._fullRefresh()},y.prototype.onDevicePixelRatioChange=function(){this._charSizeService.measure(),this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},y.prototype.onResize=function(S,w){this._renderer.onResize(S,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(S,w,C){this._selectionState.start=S,this._selectionState.end=w,this._selectionState.columnSelectMode=C,this._renderer.onSelectionChanged(S,w,C)},y.prototype.onCursorMove=function(){this._renderer.onCursorMove()},y.prototype.clear=function(){this._renderer.clear()},h([f(3,v.IOptionsService),f(4,c.ICharSizeService),f(5,v.IBufferService)],y)}(p.Disposable);i.RenderService=u},9312:function(o,i,s){var a,l=this&&this.__extends||(a=function(T,L){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,A){E.__proto__=A}||function(E,A){for(var M in A)Object.prototype.hasOwnProperty.call(A,M)&&(E[M]=A[M])},a(T,L)},function(T,L){if(typeof L!="function"&&L!==null)throw new TypeError("Class extends value "+String(L)+" is not a constructor or null");function E(){this.constructor=T}a(T,L),T.prototype=L===null?Object.create(L):(E.prototype=L.prototype,new E)}),h=this&&this.__decorate||function(T,L,E,A){var M,O=arguments.length,$=O<3?L:A===null?A=Object.getOwnPropertyDescriptor(L,E):A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")$=Reflect.decorate(T,L,E,A);else for(var D=T.length-1;D>=0;D--)(M=T[D])&&($=(O<3?M($):O>3?M(L,E,$):M(L,E))||$);return O>3&&$&&Object.defineProperty(L,E,$),$},f=this&&this.__param||function(T,L){return function(E,A){L(E,A,T)}};Object.defineProperty(i,"__esModule",{value:!0}),i.SelectionService=void 0;var m=s(6114),g=s(456),p=s(511),_=s(8460),b=s(4725),v=s(2585),c=s(9806),u=s(9504),d=s(844),y=s(4841),S=String.fromCharCode(160),w=new RegExp(S,"g"),C=function(T){function L(E,A,M,O,$,D,R,B){var N=T.call(this)||this;return N._element=E,N._screenElement=A,N._linkifier=M,N._bufferService=O,N._coreService=$,N._mouseService=D,N._optionsService=R,N._renderService=B,N._dragScrollAmount=0,N._enabled=!0,N._workCell=new p.CellData,N._mouseDownTimeStamp=0,N._oldHasSelection=!1,N._oldSelectionStart=void 0,N._oldSelectionEnd=void 0,N._onLinuxMouseSelection=N.register(new _.EventEmitter),N._onRedrawRequest=N.register(new _.EventEmitter),N._onSelectionChange=N.register(new _.EventEmitter),N._onRequestScrollLines=N.register(new _.EventEmitter),N._mouseMoveListener=function(U){return N._onMouseMove(U)},N._mouseUpListener=function(U){return N._onMouseUp(U)},N._coreService.onUserInput(function(){N.hasSelection&&N.clearSelection()}),N._trimListener=N._bufferService.buffer.lines.onTrim(function(U){return N._onTrim(U)}),N.register(N._bufferService.buffers.onBufferActivate(function(U){return N._onBufferActivate(U)})),N.enable(),N._model=new g.SelectionModel(N._bufferService),N._activeSelectionMode=0,N}return l(L,T),Object.defineProperty(L.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),L.prototype.dispose=function(){this._removeMouseDownListeners()},L.prototype.reset=function(){this.clearSelection()},L.prototype.disable=function(){this.clearSelection(),this._enabled=!1},L.prototype.enable=function(){this._enabled=!0},Object.defineProperty(L.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"hasSelection",{get:function(){var E=this._model.finalSelectionStart,A=this._model.finalSelectionEnd;return!(!E||!A||E[0]===A[0]&&E[1]===A[1])},enumerable:!1,configurable:!0}),Object.defineProperty(L.prototype,"selectionText",{get:function(){var E=this._model.finalSelectionStart,A=this._model.finalSelectionEnd;if(!E||!A)return"";var M=this._bufferService.buffer,O=[];if(this._activeSelectionMode===3){if(E[0]===A[0])return"";for(var $=E[1];$<=A[1];$++){var D=M.translateBufferLineToString($,!0,E[0],A[0]);O.push(D)}}else{var R=E[1]===A[1]?A[0]:void 0;for(O.push(M.translateBufferLineToString(E[1],!0,E[0],R)),$=E[1]+1;$<=A[1]-1;$++){var B=M.lines.get($);D=M.translateBufferLineToString($,!0),B!=null&&B.isWrapped?O[O.length-1]+=D:O.push(D)}E[1]!==A[1]&&(B=M.lines.get(A[1]),D=M.translateBufferLineToString(A[1],!0,0,A[0]),B&&B.isWrapped?O[O.length-1]+=D:O.push(D))}return O.map(function(N){return N.replace(w," ")}).join(m.isWindows?`\r `:` `)},enumerable:!1,configurable:!0}),L.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},L.prototype.refresh=function(E){var A=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return A._refresh()})),m.isLinux&&E&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},L.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},L.prototype._isClickInSelection=function(E){var A=this._getMouseBufferCoords(E),M=this._model.finalSelectionStart,O=this._model.finalSelectionEnd;return!!(M&&O&&A)&&this._areCoordsInSelection(A,M,O)},L.prototype._areCoordsInSelection=function(E,A,M){return E[1]>A[1]&&E[1]=A[0]&&E[0]=A[0]},L.prototype._selectWordAtCursor=function(E,A){var M,O,$=(O=(M=this._linkifier.currentLink)===null||M===void 0?void 0:M.link)===null||O===void 0?void 0:O.range;if($)return this._model.selectionStart=[$.start.x-1,$.start.y-1],this._model.selectionStartLength=(0,y.getRangeLength)($,this._bufferService.cols),this._model.selectionEnd=void 0,!0;var D=this._getMouseBufferCoords(E);return!!D&&(this._selectWordAt(D,A),this._model.selectionEnd=void 0,!0)},L.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},L.prototype.selectLines=function(E,A){this._model.clearSelection(),E=Math.max(E,0),A=Math.min(A,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,E],this._model.selectionEnd=[this._bufferService.cols,A],this.refresh(),this._onSelectionChange.fire()},L.prototype._onTrim=function(E){this._model.onTrim(E)&&this.refresh()},L.prototype._getMouseBufferCoords=function(E){var A=this._mouseService.getCoords(E,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(A)return A[0]--,A[1]--,A[1]+=this._bufferService.buffer.ydisp,A},L.prototype._getMouseEventScrollAmount=function(E){var A=(0,c.getCoordsRelativeToElement)(E,this._screenElement)[1],M=this._renderService.dimensions.canvasHeight;return A>=0&&A<=M?0:(A>M&&(A-=M),A=Math.min(Math.max(A,-50),50),(A/=50)/Math.abs(A)+Math.round(14*A))},L.prototype.shouldForceSelection=function(E){return m.isMac?E.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:E.shiftKey},L.prototype.onMouseDown=function(E){if(this._mouseDownTimeStamp=E.timeStamp,(E.button!==2||!this.hasSelection)&&E.button===0){if(!this._enabled){if(!this.shouldForceSelection(E))return;E.stopPropagation()}E.preventDefault(),this._dragScrollAmount=0,this._enabled&&E.shiftKey?this._onIncrementalClick(E):E.detail===1?this._onSingleClick(E):E.detail===2?this._onDoubleClick(E):E.detail===3&&this._onTripleClick(E),this._addMouseDownListeners(),this.refresh(!0)}},L.prototype._addMouseDownListeners=function(){var E=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return E._dragScroll()},50)},L.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},L.prototype._onIncrementalClick=function(E){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(E))},L.prototype._onSingleClick=function(E){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(E)?3:0,this._model.selectionStart=this._getMouseBufferCoords(E),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]++}},L.prototype._onDoubleClick=function(E){this._selectWordAtCursor(E,!0)&&(this._activeSelectionMode=1)},L.prototype._onTripleClick=function(E){var A=this._getMouseBufferCoords(E);A&&(this._activeSelectionMode=2,this._selectLineAt(A[1]))},L.prototype.shouldColumnSelect=function(E){return E.altKey&&!(m.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)},L.prototype._onMouseMove=function(E){if(E.stopImmediatePropagation(),this._model.selectionStart){var A=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(E),this._model.selectionEnd){this._activeSelectionMode===2?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var M=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(E.ydisp+this._bufferService.rows,E.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=E.ydisp),this.refresh()}},L.prototype._onMouseUp=function(E){var A=E.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&A<500&&E.altKey&&this._optionsService.getOption("altClickMovesCursor")){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var M=this._mouseService.getCoords(E,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(M&&M[0]!==void 0&&M[1]!==void 0){var O=(0,u.moveToCellSequence)(M[0]-1,M[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(O,!0)}}}else this._fireEventIfSelectionChanged()},L.prototype._fireEventIfSelectionChanged=function(){var E=this._model.finalSelectionStart,A=this._model.finalSelectionEnd,M=!(!E||!A||E[0]===A[0]&&E[1]===A[1]);M?E&&A&&(this._oldSelectionStart&&this._oldSelectionEnd&&E[0]===this._oldSelectionStart[0]&&E[1]===this._oldSelectionStart[1]&&A[0]===this._oldSelectionEnd[0]&&A[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(E,A,M)):this._oldHasSelection&&this._fireOnSelectionChange(E,A,M)},L.prototype._fireOnSelectionChange=function(E,A,M){this._oldSelectionStart=E,this._oldSelectionEnd=A,this._oldHasSelection=M,this._onSelectionChange.fire()},L.prototype._onBufferActivate=function(E){var A=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=E.activeBuffer.lines.onTrim(function(M){return A._onTrim(M)})},L.prototype._convertViewportColToCharacterIndex=function(E,A){for(var M=A[0],O=0;A[0]>=O;O++){var $=E.loadCell(O,this._workCell).getChars().length;this._workCell.getWidth()===0?M--:$>1&&A[0]!==O&&(M+=$-1)}return M},L.prototype.setSelection=function(E,A,M){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[E,A],this._model.selectionStartLength=M,this.refresh()},L.prototype.rightClickSelect=function(E){this._isClickInSelection(E)||(this._selectWordAtCursor(E,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())},L.prototype._getWordAt=function(E,A,M,O){if(M===void 0&&(M=!0),O===void 0&&(O=!0),!(E[0]>=this._bufferService.cols)){var $=this._bufferService.buffer,D=$.lines.get(E[1]);if(D){var R=$.translateBufferLineToString(E[1],!1),B=this._convertViewportColToCharacterIndex(D,E),N=B,U=E[0]-B,z=0,X=0,ge=0,_e=0;if(R.charAt(B)===" "){for(;B>0&&R.charAt(B-1)===" ";)B--;for(;N1&&(_e+=q-1,N+=q-1);Oe>0&&B>0&&!this._isCharWordSeparator(D.loadCell(Oe-1,this._workCell));){D.loadCell(Oe-1,this._workCell);var k=this._workCell.getChars().length;this._workCell.getWidth()===0?(z++,Oe--):k>1&&(ge+=k-1,B-=k-1),B--,Oe--}for(;x1&&(_e+=P-1,N+=P-1),N++,x++}}N++;var I=B+U-z+ge,le=Math.min(this._bufferService.cols,N-B+z+X-ge-_e);if(A||R.slice(B,N).trim()!==""){if(M&&I===0&&D.getCodePoint(0)!==32){var ie=$.lines.get(E[1]-1);if(ie&&D.isWrapped&&ie.getCodePoint(this._bufferService.cols-1)!==32){var he=this._getWordAt([this._bufferService.cols-1,E[1]-1],!1,!0,!1);if(he){var H=this._bufferService.cols-he.start;I-=H,le+=H}}}if(O&&I+le===this._bufferService.cols&&D.getCodePoint(this._bufferService.cols-1)!==32){var j=$.lines.get(E[1]+1);if((j==null?void 0:j.isWrapped)&&j.getCodePoint(0)!==32){var K=this._getWordAt([0,E[1]+1],!1,!1,!0);K&&(le+=K.length)}}return{start:I,length:le}}}}},L.prototype._selectWordAt=function(E,A){var M=this._getWordAt(E,A);if(M){for(;M.start<0;)M.start+=this._bufferService.cols,E[1]--;this._model.selectionStart=[M.start,E[1]],this._model.selectionStartLength=M.length}},L.prototype._selectToWordAt=function(E){var A=this._getWordAt(E,!0);if(A){for(var M=E[1];A.start<0;)A.start+=this._bufferService.cols,M--;if(!this._model.areSelectionValuesReversed())for(;A.start+A.length>this._bufferService.cols;)A.length-=this._bufferService.cols,M++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?A.start:A.start+A.length,M]}},L.prototype._isCharWordSeparator=function(E){return E.getWidth()!==0&&this._optionsService.rawOptions.wordSeparator.indexOf(E.getChars())>=0},L.prototype._selectLineAt=function(E){var A=this._bufferService.buffer.getWrappedRangeForLine(E);this._model.selectionStart=[0,A.first],this._model.selectionEnd=[this._bufferService.cols,A.last],this._model.selectionStartLength=0},h([f(3,v.IBufferService),f(4,v.ICoreService),f(5,b.IMouseService),f(6,v.IOptionsService),f(7,b.IRenderService)],L)}(d.Disposable);i.SelectionService=C},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(m,g,p,_){var b,v=arguments.length,c=v<3?g:_===null?_=Object.getOwnPropertyDescriptor(g,p):_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(m,g,p,_);else for(var u=m.length-1;u>=0;u--)(b=m[u])&&(c=(v<3?b(c):v>3?b(g,p,c):b(g,p))||c);return v>3&&c&&Object.defineProperty(g,p,c),c},l=this&&this.__param||function(m,g){return function(p,_){g(p,_,m)}};Object.defineProperty(i,"__esModule",{value:!0}),i.SoundService=void 0;var h=s(2585),f=function(){function m(g){this._optionsService=g}return Object.defineProperty(m,"audioContext",{get:function(){if(!m._audioContext){var g=window.AudioContext||window.webkitAudioContext;if(!g)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;m._audioContext=new g}return m._audioContext},enumerable:!1,configurable:!0}),m.prototype.playBellSound=function(){var g=m.audioContext;if(g){var p=g.createBufferSource();g.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.rawOptions.bellSound)),function(_){p.buffer=_,p.connect(g.destination),p.start(0)})}},m.prototype._base64ToArrayBuffer=function(g){for(var p=window.atob(g),_=p.length,b=new Uint8Array(_),v=0;v<_;v++)b[v]=p.charCodeAt(v);return b.buffer},m.prototype._removeMimeType=function(g){return g.split(",")[1]},m=a([l(0,h.IOptionsService)],m)}();i.SoundService=f},6349:(o,i,s)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.CircularList=void 0;var a=s(8460),l=function(){function h(f){this._maxLength=f,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(h.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"maxLength",{get:function(){return this._maxLength},set:function(f){if(this._maxLength!==f){for(var m=new Array(f),g=0;gthis._length)for(var m=this._length;m=f;_--)this._array[this._getCyclicIndex(_+g.length)]=this._array[this._getCyclicIndex(_)];for(_=0;_this._maxLength){var b=this._length+g.length-this._maxLength;this._startIndex+=b,this._length=this._maxLength,this.onTrimEmitter.fire(b)}else this._length+=g.length},h.prototype.trimStart=function(f){f>this._length&&(f=this._length),this._startIndex+=f,this._length-=f,this.onTrimEmitter.fire(f)},h.prototype.shiftElements=function(f,m,g){if(!(m<=0)){if(f<0||f>=this._length)throw new Error("start argument out of range");if(f+g<0)throw new Error("Cannot shift elements in list beyond index 0");if(g>0){for(var p=m-1;p>=0;p--)this.set(f+p+g,this.get(f+p));var _=f+m+g-this._length;if(_>0)for(this._length+=_;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(p=0;p{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 h=Array.isArray(a)?[]:{};for(var f in a)h[f]=l<=1?a[f]:a[f]&&s(a[f],l-1);return h}},8969:function(o,i,s){var a,l=this&&this.__extends||(a=function(E,A){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,O){M.__proto__=O}||function(M,O){for(var $ in O)Object.prototype.hasOwnProperty.call(O,$)&&(M[$]=O[$])},a(E,A)},function(E,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function M(){this.constructor=E}a(E,A),E.prototype=A===null?Object.create(A):(M.prototype=A.prototype,new M)});Object.defineProperty(i,"__esModule",{value:!0}),i.CoreTerminal=void 0;var h=s(844),f=s(2585),m=s(4348),g=s(7866),p=s(744),_=s(7302),b=s(6975),v=s(8460),c=s(1753),u=s(3730),d=s(1480),y=s(7994),S=s(9282),w=s(5435),C=s(5981),T=!1,L=function(E){function A(M){var O=E.call(this)||this;return O._onBinary=new v.EventEmitter,O._onData=new v.EventEmitter,O._onLineFeed=new v.EventEmitter,O._onResize=new v.EventEmitter,O._onScroll=new v.EventEmitter,O._instantiationService=new m.InstantiationService,O.optionsService=new _.OptionsService(M),O._instantiationService.setService(f.IOptionsService,O.optionsService),O._bufferService=O.register(O._instantiationService.createInstance(p.BufferService)),O._instantiationService.setService(f.IBufferService,O._bufferService),O._logService=O._instantiationService.createInstance(g.LogService),O._instantiationService.setService(f.ILogService,O._logService),O.coreService=O.register(O._instantiationService.createInstance(b.CoreService,function(){return O.scrollToBottom()})),O._instantiationService.setService(f.ICoreService,O.coreService),O.coreMouseService=O._instantiationService.createInstance(c.CoreMouseService),O._instantiationService.setService(f.ICoreMouseService,O.coreMouseService),O._dirtyRowService=O._instantiationService.createInstance(u.DirtyRowService),O._instantiationService.setService(f.IDirtyRowService,O._dirtyRowService),O.unicodeService=O._instantiationService.createInstance(d.UnicodeService),O._instantiationService.setService(f.IUnicodeService,O.unicodeService),O._charsetService=O._instantiationService.createInstance(y.CharsetService),O._instantiationService.setService(f.ICharsetService,O._charsetService),O._inputHandler=new w.InputHandler(O._bufferService,O._charsetService,O.coreService,O._dirtyRowService,O._logService,O.optionsService,O.coreMouseService,O.unicodeService),O.register((0,v.forwardEvent)(O._inputHandler.onLineFeed,O._onLineFeed)),O.register(O._inputHandler),O.register((0,v.forwardEvent)(O._bufferService.onResize,O._onResize)),O.register((0,v.forwardEvent)(O.coreService.onData,O._onData)),O.register((0,v.forwardEvent)(O.coreService.onBinary,O._onBinary)),O.register(O.optionsService.onOptionChange(function($){return O._updateOptions($)})),O.register(O._bufferService.onScroll(function($){O._onScroll.fire({position:O._bufferService.buffer.ydisp,source:0}),O._dirtyRowService.markRangeDirty(O._bufferService.buffer.scrollTop,O._bufferService.buffer.scrollBottom)})),O.register(O._inputHandler.onScroll(function($){O._onScroll.fire({position:O._bufferService.buffer.ydisp,source:0}),O._dirtyRowService.markRangeDirty(O._bufferService.buffer.scrollTop,O._bufferService.buffer.scrollBottom)})),O._writeBuffer=new C.WriteBuffer(function($,D){return O._inputHandler.parse($,D)}),O}return l(A,E),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 M=this;return this._onScrollApi||(this._onScrollApi=new v.EventEmitter,this.register(this._onScroll.event(function(O){var $;($=M._onScrollApi)===null||$===void 0||$.fire(O.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(M){for(var O in M)this.optionsService.options[O]=M[O]},enumerable:!1,configurable:!0}),A.prototype.dispose=function(){var M;this._isDisposed||(E.prototype.dispose.call(this),(M=this._windowsMode)===null||M===void 0||M.dispose(),this._windowsMode=void 0)},A.prototype.write=function(M,O){this._writeBuffer.write(M,O)},A.prototype.writeSync=function(M,O){this._logService.logLevel<=f.LogLevelEnum.WARN&&!T&&(this._logService.warn("writeSync is unreliable and will be removed soon."),T=!0),this._writeBuffer.writeSync(M,O)},A.prototype.resize=function(M,O){isNaN(M)||isNaN(O)||(M=Math.max(M,p.MINIMUM_COLS),O=Math.max(O,p.MINIMUM_ROWS),this._bufferService.resize(M,O))},A.prototype.scroll=function(M,O){O===void 0&&(O=!1),this._bufferService.scroll(M,O)},A.prototype.scrollLines=function(M,O,$){this._bufferService.scrollLines(M,O,$)},A.prototype.scrollPages=function(M){this._bufferService.scrollPages(M)},A.prototype.scrollToTop=function(){this._bufferService.scrollToTop()},A.prototype.scrollToBottom=function(){this._bufferService.scrollToBottom()},A.prototype.scrollToLine=function(M){this._bufferService.scrollToLine(M)},A.prototype.registerEscHandler=function(M,O){return this._inputHandler.registerEscHandler(M,O)},A.prototype.registerDcsHandler=function(M,O){return this._inputHandler.registerDcsHandler(M,O)},A.prototype.registerCsiHandler=function(M,O){return this._inputHandler.registerCsiHandler(M,O)},A.prototype.registerOscHandler=function(M,O){return this._inputHandler.registerOscHandler(M,O)},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(M){var O;switch(M){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.rawOptions.windowsMode?this._enableWindowsMode():((O=this._windowsMode)===null||O===void 0||O.dispose(),this._windowsMode=void 0)}},A.prototype._enableWindowsMode=function(){var M=this;if(!this._windowsMode){var O=[];O.push(this.onLineFeed(S.updateWindowsModeWrappedState.bind(null,this._bufferService))),O.push(this.registerCsiHandler({final:"H"},function(){return(0,S.updateWindowsModeWrappedState)(M._bufferService),!1})),this._windowsMode={dispose:function(){for(var $=0,D=O;${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(h){return l._listeners.push(h),{dispose:function(){if(!l._disposed){for(var f=0;f24)return D.setWinLines||!1;switch($){case 1:return!!D.restoreWin;case 2:return!!D.minimizeWin;case 3:return!!D.setWinPosition;case 4:return!!D.setWinSizePixels;case 5:return!!D.raiseWin;case 6:return!!D.lowerWin;case 7:return!!D.refreshWin;case 8:return!!D.setWinSizeChars;case 9:return!!D.maximizeWin;case 10:return!!D.fullscreenWin;case 11:return!!D.getWinState;case 13:return!!D.getWinPosition;case 14:return!!D.getWinSizePixels;case 15:return!!D.getScreenSizePixels;case 16:return!!D.getCellSizePixels;case 18:return!!D.getWinSizeChars;case 19:return!!D.getScreenSizeChars;case 20:return!!D.getIconTitle;case 21:return!!D.getWinTitle;case 22:return!!D.pushTitle;case 23:return!!D.popTitle;case 24:return!!D.setWinLines}return!1}(function($){$[$.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",$[$.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(h=i.WindowsOptionsReportType||(i.WindowsOptionsReportType={}));var M=function(){function $(D,R,B,N){this._bufferService=D,this._coreService=R,this._logService=B,this._optionsService=N,this._data=new Uint32Array(0)}return $.prototype.hook=function(D){this._data=new Uint32Array(0)},$.prototype.put=function(D,R,B){this._data=(0,_.concat)(this._data,D.subarray(R,B))},$.prototype.unhook=function(D){if(!D)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(f.C0.ESC+'P1$r0"q'+f.C0.ESC+"\\");break;case'"p':this._coreService.triggerDataEvent(f.C0.ESC+'P1$r61;1"p'+f.C0.ESC+"\\");break;case"r":var B=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";this._coreService.triggerDataEvent(f.C0.ESC+"P1$r"+B+f.C0.ESC+"\\");break;case"m":this._coreService.triggerDataEvent(f.C0.ESC+"P1$r0m"+f.C0.ESC+"\\");break;case" q":var N={block:2,underline:4,bar:6}[this._optionsService.rawOptions.cursorStyle];N-=this._optionsService.rawOptions.cursorBlink?1:0,this._coreService.triggerDataEvent(f.C0.ESC+"P1$r"+N+" q"+f.C0.ESC+"\\");break;default:this._logService.debug("Unknown DCS $q %s",R),this._coreService.triggerDataEvent(f.C0.ESC+"P0$r"+f.C0.ESC+"\\")}return!0},$}(),O=function($){function D(R,B,N,U,z,X,ge,_e,Oe){Oe===void 0&&(Oe=new g.EscapeSequenceParser);var x=$.call(this)||this;x._bufferService=R,x._charsetService=B,x._coreService=N,x._dirtyRowService=U,x._logService=z,x._optionsService=X,x._coreMouseService=ge,x._unicodeService=_e,x._parser=Oe,x._parseBuffer=new Uint32Array(4096),x._stringDecoder=new b.StringToUtf32,x._utf8Decoder=new b.Utf8ToUtf32,x._workCell=new d.CellData,x._windowTitle="",x._iconName="",x._windowTitleStack=[],x._iconNameStack=[],x._curAttrData=v.DEFAULT_ATTR_DATA.clone(),x._eraseAttrDataInternal=v.DEFAULT_ATTR_DATA.clone(),x._onRequestBell=new c.EventEmitter,x._onRequestRefreshRows=new c.EventEmitter,x._onRequestReset=new c.EventEmitter,x._onRequestSendFocus=new c.EventEmitter,x._onRequestSyncScrollBar=new c.EventEmitter,x._onRequestWindowsOptionsReport=new c.EventEmitter,x._onA11yChar=new c.EventEmitter,x._onA11yTab=new c.EventEmitter,x._onCursorMove=new c.EventEmitter,x._onLineFeed=new c.EventEmitter,x._onScroll=new c.EventEmitter,x._onTitleChange=new c.EventEmitter,x._onColor=new c.EventEmitter,x._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},x._specialColors=[256,257,258],x.register(x._parser),x._activeBuffer=x._bufferService.buffer,x.register(x._bufferService.buffers.onBufferActivate(function(I){return x._activeBuffer=I.activeBuffer})),x._parser.setCsiHandlerFallback(function(I,le){x._logService.debug("Unknown CSI code: ",{identifier:x._parser.identToString(I),params:le.toArray()})}),x._parser.setEscHandlerFallback(function(I){x._logService.debug("Unknown ESC code: ",{identifier:x._parser.identToString(I)})}),x._parser.setExecuteHandlerFallback(function(I){x._logService.debug("Unknown EXECUTE code: ",{code:I})}),x._parser.setOscHandlerFallback(function(I,le,ie){x._logService.debug("Unknown OSC code: ",{identifier:I,action:le,data:ie})}),x._parser.setDcsHandlerFallback(function(I,le,ie){le==="HOOK"&&(ie=ie.toArray()),x._logService.debug("Unknown DCS code: ",{identifier:x._parser.identToString(I),action:le,payload:ie})}),x._parser.setPrintHandler(function(I,le,ie){return x.print(I,le,ie)}),x._parser.registerCsiHandler({final:"@"},function(I){return x.insertChars(I)}),x._parser.registerCsiHandler({intermediates:" ",final:"@"},function(I){return x.scrollLeft(I)}),x._parser.registerCsiHandler({final:"A"},function(I){return x.cursorUp(I)}),x._parser.registerCsiHandler({intermediates:" ",final:"A"},function(I){return x.scrollRight(I)}),x._parser.registerCsiHandler({final:"B"},function(I){return x.cursorDown(I)}),x._parser.registerCsiHandler({final:"C"},function(I){return x.cursorForward(I)}),x._parser.registerCsiHandler({final:"D"},function(I){return x.cursorBackward(I)}),x._parser.registerCsiHandler({final:"E"},function(I){return x.cursorNextLine(I)}),x._parser.registerCsiHandler({final:"F"},function(I){return x.cursorPrecedingLine(I)}),x._parser.registerCsiHandler({final:"G"},function(I){return x.cursorCharAbsolute(I)}),x._parser.registerCsiHandler({final:"H"},function(I){return x.cursorPosition(I)}),x._parser.registerCsiHandler({final:"I"},function(I){return x.cursorForwardTab(I)}),x._parser.registerCsiHandler({final:"J"},function(I){return x.eraseInDisplay(I)}),x._parser.registerCsiHandler({prefix:"?",final:"J"},function(I){return x.eraseInDisplay(I)}),x._parser.registerCsiHandler({final:"K"},function(I){return x.eraseInLine(I)}),x._parser.registerCsiHandler({prefix:"?",final:"K"},function(I){return x.eraseInLine(I)}),x._parser.registerCsiHandler({final:"L"},function(I){return x.insertLines(I)}),x._parser.registerCsiHandler({final:"M"},function(I){return x.deleteLines(I)}),x._parser.registerCsiHandler({final:"P"},function(I){return x.deleteChars(I)}),x._parser.registerCsiHandler({final:"S"},function(I){return x.scrollUp(I)}),x._parser.registerCsiHandler({final:"T"},function(I){return x.scrollDown(I)}),x._parser.registerCsiHandler({final:"X"},function(I){return x.eraseChars(I)}),x._parser.registerCsiHandler({final:"Z"},function(I){return x.cursorBackwardTab(I)}),x._parser.registerCsiHandler({final:"`"},function(I){return x.charPosAbsolute(I)}),x._parser.registerCsiHandler({final:"a"},function(I){return x.hPositionRelative(I)}),x._parser.registerCsiHandler({final:"b"},function(I){return x.repeatPrecedingCharacter(I)}),x._parser.registerCsiHandler({final:"c"},function(I){return x.sendDeviceAttributesPrimary(I)}),x._parser.registerCsiHandler({prefix:">",final:"c"},function(I){return x.sendDeviceAttributesSecondary(I)}),x._parser.registerCsiHandler({final:"d"},function(I){return x.linePosAbsolute(I)}),x._parser.registerCsiHandler({final:"e"},function(I){return x.vPositionRelative(I)}),x._parser.registerCsiHandler({final:"f"},function(I){return x.hVPosition(I)}),x._parser.registerCsiHandler({final:"g"},function(I){return x.tabClear(I)}),x._parser.registerCsiHandler({final:"h"},function(I){return x.setMode(I)}),x._parser.registerCsiHandler({prefix:"?",final:"h"},function(I){return x.setModePrivate(I)}),x._parser.registerCsiHandler({final:"l"},function(I){return x.resetMode(I)}),x._parser.registerCsiHandler({prefix:"?",final:"l"},function(I){return x.resetModePrivate(I)}),x._parser.registerCsiHandler({final:"m"},function(I){return x.charAttributes(I)}),x._parser.registerCsiHandler({final:"n"},function(I){return x.deviceStatus(I)}),x._parser.registerCsiHandler({prefix:"?",final:"n"},function(I){return x.deviceStatusPrivate(I)}),x._parser.registerCsiHandler({intermediates:"!",final:"p"},function(I){return x.softReset(I)}),x._parser.registerCsiHandler({intermediates:" ",final:"q"},function(I){return x.setCursorStyle(I)}),x._parser.registerCsiHandler({final:"r"},function(I){return x.setScrollRegion(I)}),x._parser.registerCsiHandler({final:"s"},function(I){return x.saveCursor(I)}),x._parser.registerCsiHandler({final:"t"},function(I){return x.windowOptions(I)}),x._parser.registerCsiHandler({final:"u"},function(I){return x.restoreCursor(I)}),x._parser.registerCsiHandler({intermediates:"'",final:"}"},function(I){return x.insertColumns(I)}),x._parser.registerCsiHandler({intermediates:"'",final:"~"},function(I){return x.deleteColumns(I)}),x._parser.setExecuteHandler(f.C0.BEL,function(){return x.bell()}),x._parser.setExecuteHandler(f.C0.LF,function(){return x.lineFeed()}),x._parser.setExecuteHandler(f.C0.VT,function(){return x.lineFeed()}),x._parser.setExecuteHandler(f.C0.FF,function(){return x.lineFeed()}),x._parser.setExecuteHandler(f.C0.CR,function(){return x.carriageReturn()}),x._parser.setExecuteHandler(f.C0.BS,function(){return x.backspace()}),x._parser.setExecuteHandler(f.C0.HT,function(){return x.tab()}),x._parser.setExecuteHandler(f.C0.SO,function(){return x.shiftOut()}),x._parser.setExecuteHandler(f.C0.SI,function(){return x.shiftIn()}),x._parser.setExecuteHandler(f.C1.IND,function(){return x.index()}),x._parser.setExecuteHandler(f.C1.NEL,function(){return x.nextLine()}),x._parser.setExecuteHandler(f.C1.HTS,function(){return x.tabSet()}),x._parser.registerOscHandler(0,new w.OscHandler(function(I){return x.setTitle(I),x.setIconName(I),!0})),x._parser.registerOscHandler(1,new w.OscHandler(function(I){return x.setIconName(I)})),x._parser.registerOscHandler(2,new w.OscHandler(function(I){return x.setTitle(I)})),x._parser.registerOscHandler(4,new w.OscHandler(function(I){return x.setOrReportIndexedColor(I)})),x._parser.registerOscHandler(10,new w.OscHandler(function(I){return x.setOrReportFgColor(I)})),x._parser.registerOscHandler(11,new w.OscHandler(function(I){return x.setOrReportBgColor(I)})),x._parser.registerOscHandler(12,new w.OscHandler(function(I){return x.setOrReportCursorColor(I)})),x._parser.registerOscHandler(104,new w.OscHandler(function(I){return x.restoreIndexedColor(I)})),x._parser.registerOscHandler(110,new w.OscHandler(function(I){return x.restoreFgColor(I)})),x._parser.registerOscHandler(111,new w.OscHandler(function(I){return x.restoreBgColor(I)})),x._parser.registerOscHandler(112,new w.OscHandler(function(I){return x.restoreCursorColor(I)})),x._parser.registerEscHandler({final:"7"},function(){return x.saveCursor()}),x._parser.registerEscHandler({final:"8"},function(){return x.restoreCursor()}),x._parser.registerEscHandler({final:"D"},function(){return x.index()}),x._parser.registerEscHandler({final:"E"},function(){return x.nextLine()}),x._parser.registerEscHandler({final:"H"},function(){return x.tabSet()}),x._parser.registerEscHandler({final:"M"},function(){return x.reverseIndex()}),x._parser.registerEscHandler({final:"="},function(){return x.keypadApplicationMode()}),x._parser.registerEscHandler({final:">"},function(){return x.keypadNumericMode()}),x._parser.registerEscHandler({final:"c"},function(){return x.fullReset()}),x._parser.registerEscHandler({final:"n"},function(){return x.setgLevel(2)}),x._parser.registerEscHandler({final:"o"},function(){return x.setgLevel(3)}),x._parser.registerEscHandler({final:"|"},function(){return x.setgLevel(3)}),x._parser.registerEscHandler({final:"}"},function(){return x.setgLevel(2)}),x._parser.registerEscHandler({final:"~"},function(){return x.setgLevel(1)}),x._parser.registerEscHandler({intermediates:"%",final:"@"},function(){return x.selectDefaultCharset()}),x._parser.registerEscHandler({intermediates:"%",final:"G"},function(){return x.selectDefaultCharset()});var q=function(I){k._parser.registerEscHandler({intermediates:"(",final:I},function(){return x.selectCharset("("+I)}),k._parser.registerEscHandler({intermediates:")",final:I},function(){return x.selectCharset(")"+I)}),k._parser.registerEscHandler({intermediates:"*",final:I},function(){return x.selectCharset("*"+I)}),k._parser.registerEscHandler({intermediates:"+",final:I},function(){return x.selectCharset("+"+I)}),k._parser.registerEscHandler({intermediates:"-",final:I},function(){return x.selectCharset("-"+I)}),k._parser.registerEscHandler({intermediates:".",final:I},function(){return x.selectCharset("."+I)}),k._parser.registerEscHandler({intermediates:"/",final:I},function(){return x.selectCharset("/"+I)})},k=this;for(var P in m.CHARSETS)q(P);return x._parser.registerEscHandler({intermediates:"#",final:"8"},function(){return x.screenAlignmentPattern()}),x._parser.setErrorHandler(function(I){return x._logService.error("Parsing error: ",I),I}),x._parser.registerDcsHandler({intermediates:"$",final:"q"},new M(x._bufferService,x._coreService,x._logService,x._optionsService)),x}return l(D,$),Object.defineProperty(D.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onRequestSendFocus",{get:function(){return this._onRequestSendFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"onColor",{get:function(){return this._onColor.event},enumerable:!1,configurable:!0}),D.prototype.dispose=function(){$.prototype.dispose.call(this)},D.prototype._preserveStack=function(R,B,N,U){this._parseStack.paused=!0,this._parseStack.cursorStartX=R,this._parseStack.cursorStartY=B,this._parseStack.decodedLength=N,this._parseStack.position=U},D.prototype._logSlowResolvingAsync=function(R){this._logService.logLevel<=S.LogLevelEnum.WARN&&Promise.race([R,new Promise(function(B,N){return setTimeout(function(){return N("#SLOW_TIMEOUT")},5e3)})]).catch(function(B){if(B!=="#SLOW_TIMEOUT")throw B;console.warn("async parser handler taking longer than 5000 ms")})},D.prototype.parse=function(R,B){var N,U=this._activeBuffer.x,z=this._activeBuffer.y,X=0,ge=this._parseStack.paused;if(ge){if(N=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,B))return this._logSlowResolvingAsync(N),N;U=this._parseStack.cursorStartX,z=this._parseStack.cursorStartY,this._parseStack.paused=!1,R.length>E&&(X=this._parseStack.position+E)}if(this._logService.logLevel<=S.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+(typeof R=="string"?' "'+R+'"':' "'+Array.prototype.map.call(R,function(q){return String.fromCharCode(q)}).join("")+'"'),typeof R=="string"?R.split("").map(function(q){return q.charCodeAt(0)}):R),this._parseBuffer.lengthE)for(var _e=X;_e0&&k.getWidth(this._activeBuffer.x-1)===2&&k.setCellFromCodePoint(this._activeBuffer.x-1,0,1,q.fg,q.bg,q.extended);for(var P=B;P=_e){if(Oe){for(;this._activeBuffer.x<_e;)k.setCellFromCodePoint(this._activeBuffer.x++,0,1,q.fg,q.bg,q.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),k=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=_e-1,z===2)continue}if(x&&(k.insertCells(this._activeBuffer.x,z,this._activeBuffer.getNullCell(q),q),k.getWidth(_e-1)===2&&k.setCellFromCodePoint(_e-1,u.NULL_CELL_CODE,u.NULL_CELL_WIDTH,q.fg,q.bg,q.extended)),k.setCellFromCodePoint(this._activeBuffer.x++,U,z,q.fg,q.bg,q.extended),z>0)for(;--z;)k.setCellFromCodePoint(this._activeBuffer.x++,0,0,q.fg,q.bg,q.extended)}else k.getWidth(this._activeBuffer.x-1)?k.addCodepointToCell(this._activeBuffer.x-1,U):k.addCodepointToCell(this._activeBuffer.x-2,U)}N-B>0&&(k.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<_e&&N-B>0&&k.getWidth(this._activeBuffer.x)===0&&!k.hasContent(this._activeBuffer.x)&&k.setCellFromCodePoint(this._activeBuffer.x,0,1,q.fg,q.bg,q.extended),this._dirtyRowService.markDirty(this._activeBuffer.y)},D.prototype.registerCsiHandler=function(R,B){var N=this;return R.final!=="t"||R.prefix||R.intermediates?this._parser.registerCsiHandler(R,B):this._parser.registerCsiHandler(R,function(U){return!A(U.params[0],N._optionsService.rawOptions.windowOptions)||B(U)})},D.prototype.registerDcsHandler=function(R,B){return this._parser.registerDcsHandler(R,new C.DcsHandler(B))},D.prototype.registerEscHandler=function(R,B){return this._parser.registerEscHandler(R,B)},D.prototype.registerOscHandler=function(R,B){return this._parser.registerOscHandler(R,new w.OscHandler(B))},D.prototype.bell=function(){return this._onRequestBell.fire(),!0},D.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},D.prototype.carriageReturn=function(){return this._activeBuffer.x=0,!0},D.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 B=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);B.hasWidth(this._activeBuffer.x)&&!B.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0},D.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},D.prototype.shiftOut=function(){return this._charsetService.setgLevel(1),!0},D.prototype.shiftIn=function(){return this._charsetService.setgLevel(0),!0},D.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)},D.prototype._setCursor=function(R,B){this._dirtyRowService.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=R,this._activeBuffer.y=this._activeBuffer.scrollTop+B):(this._activeBuffer.x=R,this._activeBuffer.y=B),this._restrictCursor(),this._dirtyRowService.markDirty(this._activeBuffer.y)},D.prototype._moveCursor=function(R,B){this._restrictCursor(),this._setCursor(this._activeBuffer.x+R,this._activeBuffer.y+B)},D.prototype.cursorUp=function(R){var B=this._activeBuffer.y-this._activeBuffer.scrollTop;return B>=0?this._moveCursor(0,-Math.min(B,R.params[0]||1)):this._moveCursor(0,-(R.params[0]||1)),!0},D.prototype.cursorDown=function(R){var B=this._activeBuffer.scrollBottom-this._activeBuffer.y;return B>=0?this._moveCursor(0,Math.min(B,R.params[0]||1)):this._moveCursor(0,R.params[0]||1),!0},D.prototype.cursorForward=function(R){return this._moveCursor(R.params[0]||1,0),!0},D.prototype.cursorBackward=function(R){return this._moveCursor(-(R.params[0]||1),0),!0},D.prototype.cursorNextLine=function(R){return this.cursorDown(R),this._activeBuffer.x=0,!0},D.prototype.cursorPrecedingLine=function(R){return this.cursorUp(R),this._activeBuffer.x=0,!0},D.prototype.cursorCharAbsolute=function(R){return this._setCursor((R.params[0]||1)-1,this._activeBuffer.y),!0},D.prototype.cursorPosition=function(R){return this._setCursor(R.length>=2?(R.params[1]||1)-1:0,(R.params[0]||1)-1),!0},D.prototype.charPosAbsolute=function(R){return this._setCursor((R.params[0]||1)-1,this._activeBuffer.y),!0},D.prototype.hPositionRelative=function(R){return this._moveCursor(R.params[0]||1,0),!0},D.prototype.linePosAbsolute=function(R){return this._setCursor(this._activeBuffer.x,(R.params[0]||1)-1),!0},D.prototype.vPositionRelative=function(R){return this._moveCursor(0,R.params[0]||1),!0},D.prototype.hVPosition=function(R){return this.cursorPosition(R),!0},D.prototype.tabClear=function(R){var B=R.params[0];return B===0?delete this._activeBuffer.tabs[this._activeBuffer.x]:B===3&&(this._activeBuffer.tabs={}),!0},D.prototype.cursorForwardTab=function(R){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var B=R.params[0]||1;B--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0},D.prototype.cursorBackwardTab=function(R){if(this._activeBuffer.x>=this._bufferService.cols)return!0;for(var B=R.params[0]||1;B--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0},D.prototype._eraseInBufferLine=function(R,B,N,U){U===void 0&&(U=!1);var z=this._activeBuffer.lines.get(this._activeBuffer.ybase+R);z.replaceCells(B,N,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),U&&(z.isWrapped=!1)},D.prototype._resetBufferLine=function(R){var B=this._activeBuffer.lines.get(this._activeBuffer.ybase+R);B.fill(this._activeBuffer.getNullCell(this._eraseAttrData())),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+R),B.isWrapped=!1},D.prototype.eraseInDisplay=function(R){var B;switch(this._restrictCursor(this._bufferService.cols),R.params[0]){case 0:for(B=this._activeBuffer.y,this._dirtyRowService.markDirty(B),this._eraseInBufferLine(B++,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0);B=this._bufferService.cols&&(this._activeBuffer.lines.get(B+1).isWrapped=!1);B--;)this._resetBufferLine(B);this._dirtyRowService.markDirty(0);break;case 2:for(B=this._bufferService.rows,this._dirtyRowService.markDirty(B-1);B--;)this._resetBufferLine(B);this._dirtyRowService.markDirty(0);break;case 3:var N=this._activeBuffer.lines.length-this._bufferService.rows;N>0&&(this._activeBuffer.lines.trimStart(N),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-N,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-N,0),this._onScroll.fire(0))}return!0},D.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},D.prototype.insertLines=function(R){this._restrictCursor();var B=R.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.y0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(f.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(f.C0.ESC+"[?6c")),!0},D.prototype.sendDeviceAttributesSecondary=function(R){return R.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(f.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(f.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(R.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(f.C0.ESC+"[>83;40003;0c")),!0},D.prototype._is=function(R){return(this._optionsService.rawOptions.termName+"").indexOf(R)===0},D.prototype.setMode=function(R){for(var B=0;B=2||U[1]===2&&X+z>=5)break;U[1]&&(z=1)}while(++X+B5)&&(R=1),B.extended.underlineStyle=R,B.fg|=268435456,R===0&&(B.fg&=-268435457),B.updateExtended()},D.prototype.charAttributes=function(R){if(R.length===1&&R.params[0]===0)return this._curAttrData.fg=v.DEFAULT_ATTR_DATA.fg,this._curAttrData.bg=v.DEFAULT_ATTR_DATA.bg,!0;for(var B,N=R.length,U=this._curAttrData,z=0;z=30&&B<=37?(U.fg&=-50331904,U.fg|=16777216|B-30):B>=40&&B<=47?(U.bg&=-50331904,U.bg|=16777216|B-40):B>=90&&B<=97?(U.fg&=-50331904,U.fg|=16777224|B-90):B>=100&&B<=107?(U.bg&=-50331904,U.bg|=16777224|B-100):B===0?(U.fg=v.DEFAULT_ATTR_DATA.fg,U.bg=v.DEFAULT_ATTR_DATA.bg):B===1?U.fg|=134217728:B===3?U.bg|=67108864:B===4?(U.fg|=268435456,this._processUnderline(R.hasSubParams(z)?R.getSubParams(z)[0]:1,U)):B===5?U.fg|=536870912:B===7?U.fg|=67108864:B===8?U.fg|=1073741824:B===9?U.fg|=2147483648:B===2?U.bg|=134217728:B===21?this._processUnderline(2,U):B===22?(U.fg&=-134217729,U.bg&=-134217729):B===23?U.bg&=-67108865:B===24?U.fg&=-268435457:B===25?U.fg&=-536870913:B===27?U.fg&=-67108865:B===28?U.fg&=-1073741825:B===29?U.fg&=2147483647:B===39?(U.fg&=-67108864,U.fg|=16777215&v.DEFAULT_ATTR_DATA.fg):B===49?(U.bg&=-67108864,U.bg|=16777215&v.DEFAULT_ATTR_DATA.bg):B===38||B===48||B===58?z+=this._extractColor(R,z,U):B===59?(U.extended=U.extended.clone(),U.extended.underlineColor=-1,U.updateExtended()):B===100?(U.fg&=-67108864,U.fg|=16777215&v.DEFAULT_ATTR_DATA.fg,U.bg&=-67108864,U.bg|=16777215&v.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",B);return!0},D.prototype.deviceStatus=function(R){switch(R.params[0]){case 5:this._coreService.triggerDataEvent(f.C0.ESC+"[0n");break;case 6:var B=this._activeBuffer.y+1,N=this._activeBuffer.x+1;this._coreService.triggerDataEvent(f.C0.ESC+"["+B+";"+N+"R")}return!0},D.prototype.deviceStatusPrivate=function(R){if(R.params[0]===6){var B=this._activeBuffer.y+1,N=this._activeBuffer.x+1;this._coreService.triggerDataEvent(f.C0.ESC+"[?"+B+";"+N+"R")}return!0},D.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=v.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},D.prototype.setCursorStyle=function(R){var B=R.params[0]||1;switch(B){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 N=B%2==1;return this._optionsService.options.cursorBlink=N,!0},D.prototype.setScrollRegion=function(R){var B,N=R.params[0]||1;return(R.length<2||(B=R.params[1])>this._bufferService.rows||B===0)&&(B=this._bufferService.rows),B>N&&(this._activeBuffer.scrollTop=N-1,this._activeBuffer.scrollBottom=B-1,this._setCursor(0,0)),!0},D.prototype.windowOptions=function(R){if(!A(R.params[0],this._optionsService.rawOptions.windowOptions))return!0;var B=R.length>1?R.params[1]:0;switch(R.params[0]){case 14:B!==2&&this._onRequestWindowsOptionsReport.fire(h.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(h.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(f.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:B!==0&&B!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),B!==0&&B!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:B!==0&&B!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),B!==0&&B!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0},D.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},D.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},D.prototype.setTitle=function(R){return this._windowTitle=R,this._onTitleChange.fire(R),!0},D.prototype.setIconName=function(R){return this._iconName=R,!0},D.prototype.setOrReportIndexedColor=function(R){for(var B=[],N=R.split(";");N.length>1;){var U=N.shift(),z=N.shift();if(/^\d+$/.exec(U)){var X=parseInt(U);if(0<=X&&X<256)if(z==="?")B.push({type:0,index:X});else{var ge=(0,T.parseColor)(z);ge&&B.push({type:1,index:X,color:ge})}}}return B.length&&this._onColor.fire(B),!0},D.prototype._setOrReportSpecialColor=function(R,B){for(var N=R.split(";"),U=0;U=this._specialColors.length);++U,++B)if(N[U]==="?")this._onColor.fire([{type:0,index:this._specialColors[B]}]);else{var z=(0,T.parseColor)(N[U]);z&&this._onColor.fire([{type:1,index:this._specialColors[B],color:z}])}return!0},D.prototype.setOrReportFgColor=function(R){return this._setOrReportSpecialColor(R,0)},D.prototype.setOrReportBgColor=function(R){return this._setOrReportSpecialColor(R,1)},D.prototype.setOrReportCursorColor=function(R){return this._setOrReportSpecialColor(R,2)},D.prototype.restoreIndexedColor=function(R){if(!R)return this._onColor.fire([{type:2}]),!0;for(var B=[],N=R.split(";"),U=0;U=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0},D.prototype.tabSet=function(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0},D.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},D.prototype.fullReset=function(){return this._parser.reset(),this._onRequestReset.fire(),!0},D.prototype.reset=function(){this._curAttrData=v.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=v.DEFAULT_ATTR_DATA.clone()},D.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},D.prototype.setgLevel=function(R){return this._charsetService.setgLevel(R),!0},D.prototype.screenAlignmentPattern=function(){var R=new d.CellData;R.content=1<<22|"E".charCodeAt(0),R.fg=this._curAttrData.fg,R.bg=this._curAttrData.bg,this._setCursor(0,0);for(var B=0;B{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 h=0,f=this._disposables;h{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,h,f){if(h===void 0&&(h=0),f===void 0&&(f=a.length),h>=a.length)return a;h=(a.length+h)%a.length,f=f>=a.length?a.length:(a.length+f)%a.length;for(var m=h;m{Object.defineProperty(i,"__esModule",{value:!0}),i.updateWindowsModeWrappedState=void 0;var a=s(643);i.updateWindowsModeWrappedState=function(l){var h=l.buffer.lines.get(l.buffer.ybase+l.buffer.y-1),f=h==null?void 0:h.get(l.cols-1),m=l.buffer.lines.get(l.buffer.ybase+l.buffer.y);m&&f&&(m.isWrapped=f[a.CHAR_DATA_CODE_INDEX]!==a.NULL_CELL_CODE&&f[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(h){return[h>>>16&255,h>>>8&255,255&h]},l.fromColorRGB=function(h){return(255&h[0])<<16|(255&h[1])<<8|255&h[2]},l.prototype.clone=function(){var h=new l;return h.fg=this.fg,h.bg=this.bg,h.extended=this.extended.clone(),h},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(h,f){h===void 0&&(h=0),f===void 0&&(f=-1),this.underlineStyle=h,this.underlineColor=f}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),h=s(511),f=s(643),m=s(4634),g=s(4863),p=s(7116),_=s(3734);i.MAX_BUFFER_SIZE=4294967295;var b=function(){function c(u,d,y){this._hasScrollback=u,this._optionsService=d,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=h.CellData.fromCharData([0,f.NULL_CELL_CHAR,f.NULL_CELL_WIDTH,f.NULL_CELL_CODE]),this._whitespaceCell=h.CellData.fromCharData([0,f.WHITESPACE_CELL_CHAR,f.WHITESPACE_CELL_WIDTH,f.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 c.prototype.getNullCell=function(u){return u?(this._nullCell.fg=u.fg,this._nullCell.bg=u.bg,this._nullCell.extended=u.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new _.ExtendedAttrs),this._nullCell},c.prototype.getWhitespaceCell=function(u){return u?(this._whitespaceCell.fg=u.fg,this._whitespaceCell.bg=u.bg,this._whitespaceCell.extended=u.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new _.ExtendedAttrs),this._whitespaceCell},c.prototype.getBlankLine=function(u,d){return new l.BufferLine(this._bufferService.cols,this.getNullCell(u),d)},Object.defineProperty(c.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"isCursorInViewport",{get:function(){var u=this.ybase+this.y-this.ydisp;return u>=0&&ui.MAX_BUFFER_SIZE?i.MAX_BUFFER_SIZE:d},c.prototype.fillViewportRows=function(u){if(this.lines.length===0){u===void 0&&(u=l.DEFAULT_ATTR_DATA);for(var d=this._rows;d--;)this.lines.push(this.getBlankLine(u))}},c.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()},c.prototype.resize=function(u,d){var y=this.getNullCell(l.DEFAULT_ATTR_DATA),S=this._getCorrectBufferLength(d);if(S>this.lines.maxLength&&(this.lines.maxLength=S),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+C+1?(this.ybase--,C++,this.ydisp>0&&this.ydisp--):this.lines.push(new l.BufferLine(u,y)));else for(T=this._rows;T>d;T--)this.lines.length>d+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(S0&&(this.lines.trimStart(L),this.ybase=Math.max(this.ybase-L,0),this.ydisp=Math.max(this.ydisp-L,0),this.savedY=Math.max(this.savedY-L,0)),this.lines.maxLength=S}this.x=Math.min(this.x,u-1),this.y=Math.min(this.y,d-1),C&&(this.y+=C),this.savedX=Math.min(this.savedX,u-1),this.scrollTop=0}if(this.scrollBottom=d-1,this._isReflowEnabled&&(this._reflow(u,d),this._cols>u))for(w=0;wthis._cols?this._reflowLarger(u,d):this._reflowSmaller(u,d))},c.prototype._reflowLarger=function(u,d){var y=(0,m.reflowLargerGetLinesToRemove)(this.lines,this._cols,u,this.ybase+this.y,this.getNullCell(l.DEFAULT_ATTR_DATA));if(y.length>0){var S=(0,m.reflowLargerCreateNewLayout)(this.lines,y);(0,m.reflowLargerApplyNewLayout)(this.lines,S.layout),this._reflowLargerAdjustViewport(u,d,S.countRemoved)}},c.prototype._reflowLargerAdjustViewport=function(u,d,y){for(var S=this.getNullCell(l.DEFAULT_ATTR_DATA),w=y;w-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length=0;C--){var T=this.lines.get(C);if(!(!T||!T.isWrapped&&T.getTrimmedLength()<=u)){for(var L=[T];T.isWrapped&&C>0;)T=this.lines.get(--C),L.unshift(T);var E=this.ybase+this.y;if(!(E>=C&&E0&&(S.push({start:C+L.length+w,newLines:D}),w+=D.length),L.push.apply(L,D);var N=O.length-1,U=O[N];U===0&&(U=O[--N]);for(var z=L.length-$-1,X=M;z>=0;){var ge=Math.min(X,U);if(L[N]===void 0)break;if(L[N].copyCellsFrom(L[z],X-ge,U-ge,ge,!0),(U-=ge)==0&&(U=O[--N]),(X-=ge)==0){z--;var _e=Math.max(z,0);X=(0,m.getWrappedLineTrimmedLength)(L,_e,this._cols)}}for(R=0;R0;)this.ybase===0?this.y0){var x=[],q=[];for(R=0;R=0;R--)if(le&&le.start>P+ie){for(var he=le.newLines.length-1;he>=0;he--)this.lines.set(R--,le.newLines[he]);R++,x.push({index:P+1,amount:le.newLines.length}),ie+=le.newLines.length,le=S[++I]}else this.lines.set(R,q[P--]);var H=0;for(R=x.length-1;R>=0;R--)x[R].index+=H,this.lines.onInsertEmitter.fire(x[R]),H+=x[R].amount;var j=Math.max(0,k+w-this.lines.maxLength);j>0&&this.lines.onTrimEmitter.fire(j)}},c.prototype.stringIndexToBufferIndex=function(u,d,y){for(y===void 0&&(y=!1);d;){var S=this.lines.get(u);if(!S)return[-1,-1];for(var w=y?S.getTrimmedLength():S.length,C=0;C0&&this.lines.get(d).isWrapped;)d--;for(;y+10;);return u>=this._cols?this._cols-1:u<0?0:u},c.prototype.nextStop=function(u){for(u==null&&(u=this.x);!this.tabs[++u]&&u=this._cols?this._cols-1:u<0?0:u},c.prototype.clearMarkers=function(u){if(this._isClearing=!0,u!==void 0)for(var d=0;d=S.index&&(y.line+=S.amount)})),y.register(this.lines.onDelete(function(S){y.line>=S.index&&y.lineS.index&&(y.line-=S.amount)})),y.register(y.onDispose(function(){return d._removeMarker(y)})),y},c.prototype._removeMarker=function(u){this._isClearing||this.markers.splice(this.markers.indexOf(u),1)},c.prototype.iterator=function(u,d,y,S,w){return new v(this,u,d,y,S,w)},c}();i.Buffer=b;var v=function(){function c(u,d,y,S,w,C){y===void 0&&(y=0),S===void 0&&(S=u.lines.length),w===void 0&&(w=0),C===void 0&&(C=0),this._buffer=u,this._trimRight=d,this._startIndex=y,this._endIndex=S,this._startOverscan=w,this._endOverscan=C,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return c.prototype.hasNext=function(){return this._currentthis._endIndex+this._endOverscan&&(u.last=this._endIndex+this._endOverscan),u.first=Math.max(u.first,0),u.last=Math.min(u.last,this._buffer.lines.length);for(var d="",y=u.first;y<=u.last;++y)d+=this._buffer.translateBufferLineToString(y,this._trimRight);return this._current=u.last+1,{range:u,content:d}},c}();i.BufferStringIterator=v},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),h=s(511),f=s(3734);i.DEFAULT_ATTR_DATA=Object.freeze(new f.AttributeData);var m=function(){function g(p,_,b){b===void 0&&(b=!1),this.isWrapped=b,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*p);for(var v=_||h.CellData.fromCharData([0,l.NULL_CELL_CHAR,l.NULL_CELL_WIDTH,l.NULL_CELL_CODE]),c=0;c>22,2097152&_?this._combined[p].charCodeAt(this._combined[p].length-1):b]},g.prototype.set=function(p,_){this._data[3*p+1]=_[l.CHAR_DATA_ATTR_INDEX],_[l.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[p]=_[1],this._data[3*p+0]=2097152|p|_[l.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*p+0]=_[l.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|_[l.CHAR_DATA_WIDTH_INDEX]<<22},g.prototype.getWidth=function(p){return this._data[3*p+0]>>22},g.prototype.hasWidth=function(p){return 12582912&this._data[3*p+0]},g.prototype.getFg=function(p){return this._data[3*p+1]},g.prototype.getBg=function(p){return this._data[3*p+2]},g.prototype.hasContent=function(p){return 4194303&this._data[3*p+0]},g.prototype.getCodePoint=function(p){var _=this._data[3*p+0];return 2097152&_?this._combined[p].charCodeAt(this._combined[p].length-1):2097151&_},g.prototype.isCombined=function(p){return 2097152&this._data[3*p+0]},g.prototype.getString=function(p){var _=this._data[3*p+0];return 2097152&_?this._combined[p]:2097151&_?(0,a.stringFromCodePoint)(2097151&_):""},g.prototype.loadCell=function(p,_){var b=3*p;return _.content=this._data[b+0],_.fg=this._data[b+1],_.bg=this._data[b+2],2097152&_.content&&(_.combinedData=this._combined[p]),268435456&_.bg&&(_.extended=this._extendedAttrs[p]),_},g.prototype.setCell=function(p,_){2097152&_.content&&(this._combined[p]=_.combinedData),268435456&_.bg&&(this._extendedAttrs[p]=_.extended),this._data[3*p+0]=_.content,this._data[3*p+1]=_.fg,this._data[3*p+2]=_.bg},g.prototype.setCellFromCodePoint=function(p,_,b,v,c,u){268435456&c&&(this._extendedAttrs[p]=u),this._data[3*p+0]=_|b<<22,this._data[3*p+1]=v,this._data[3*p+2]=c},g.prototype.addCodepointToCell=function(p,_){var b=this._data[3*p+0];2097152&b?this._combined[p]+=(0,a.stringFromCodePoint)(_):(2097151&b?(this._combined[p]=(0,a.stringFromCodePoint)(2097151&b)+(0,a.stringFromCodePoint)(_),b&=-2097152,b|=2097152):b=_|1<<22,this._data[3*p+0]=b)},g.prototype.insertCells=function(p,_,b,v){if((p%=this.length)&&this.getWidth(p-1)===2&&this.setCellFromCodePoint(p-1,0,1,(v==null?void 0:v.fg)||0,(v==null?void 0:v.bg)||0,(v==null?void 0:v.extended)||new f.ExtendedAttrs),_=0;--u)this.setCell(p+_+u,this.loadCell(p+u,c));for(u=0;u<_;++u)this.setCell(p+u,b)}else for(u=p;uthis.length){var b=new Uint32Array(3*p);this.length&&(3*p=p&&delete this._combined[u]}}else this._data=new Uint32Array(0),this._combined={};this.length=p}},g.prototype.fill=function(p){this._combined={},this._extendedAttrs={};for(var _=0;_=0;--p)if(4194303&this._data[3*p+0])return p+(this._data[3*p+0]>>22);return 0},g.prototype.copyCellsFrom=function(p,_,b,v,c){var u=p._data;if(c)for(var d=v-1;d>=0;d--)for(var y=0;y<3;y++)this._data[3*(b+d)+y]=u[3*(_+d)+y];else for(d=0;d=_&&(this._combined[w-_+b]=p._combined[w])}},g.prototype.translateToString=function(p,_,b){p===void 0&&(p=!1),_===void 0&&(_=0),b===void 0&&(b=this.length),p&&(b=Math.min(b,this.getTrimmedLength()));for(var v="";_>22||1}return v},g}();i.BufferLine=m},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,h){if(l===a.length-1)return a[l].getTrimmedLength();var f=!a[l].hasContent(h-1)&&a[l].getWidth(h-1)===1,m=a[l+1].getWidth(0)===2;return f&&m?h-1:h}Object.defineProperty(i,"__esModule",{value:!0}),i.getWrappedLineTrimmedLength=i.reflowSmallerGetNewLineLengths=i.reflowLargerApplyNewLayout=i.reflowLargerCreateNewLayout=i.reflowLargerGetLinesToRemove=void 0,i.reflowLargerGetLinesToRemove=function(a,l,h,f,m){for(var g=[],p=0;p=p&&f<_)p+=v.length-1;else{for(var c=0,u=s(v,c,l),d=1,y=0;d0&&(E>c||v[E].getTrimmedLength()===0);E--)L++;L>0&&(g.push(p+v.length-L),g.push(L)),p+=v.length-1}}}return g},i.reflowLargerCreateNewLayout=function(a,l){for(var h=[],f=0,m=l[f],g=0,p=0;pb&&(g-=b,p++);var v=a[p].getWidth(g-1)===2;v&&g--;var c=v?h-1:h;f.push(c),_+=c}return f},i.getWrappedLineTrimmedLength=s},5295:function(o,i,s){var a,l=this&&this.__extends||(a=function(g,p){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,b){_.__proto__=b}||function(_,b){for(var v in b)Object.prototype.hasOwnProperty.call(b,v)&&(_[v]=b[v])},a(g,p)},function(g,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");function _(){this.constructor=g}a(g,p),g.prototype=p===null?Object.create(p):(_.prototype=p.prototype,new _)});Object.defineProperty(i,"__esModule",{value:!0}),i.BufferSet=void 0;var h=s(9092),f=s(8460),m=function(g){function p(_,b){var v=g.call(this)||this;return v._optionsService=_,v._bufferService=b,v._onBufferActivate=v.register(new f.EventEmitter),v.reset(),v}return l(p,g),Object.defineProperty(p.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),p.prototype.reset=function(){this._normal=new h.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new h.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(_){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(_),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(_,b){this._normal.resize(_,b),this._alt.resize(_,b)},p.prototype.setupTabStops=function(_){this._normal.setupTabStops(_),this._alt.setupTabStops(_)},p}(s(844).Disposable);i.BufferSet=m},511:function(o,i,s){var a,l=this&&this.__extends||(a=function(p,_){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,v){b.__proto__=v}||function(b,v){for(var c in v)Object.prototype.hasOwnProperty.call(v,c)&&(b[c]=v[c])},a(p,_)},function(p,_){if(typeof _!="function"&&_!==null)throw new TypeError("Class extends value "+String(_)+" is not a constructor or null");function b(){this.constructor=p}a(p,_),p.prototype=_===null?Object.create(_):(b.prototype=_.prototype,new b)});Object.defineProperty(i,"__esModule",{value:!0}),i.CellData=void 0;var h=s(482),f=s(643),m=s(3734),g=function(p){function _(){var b=p!==null&&p.apply(this,arguments)||this;return b.content=0,b.fg=0,b.bg=0,b.extended=new m.ExtendedAttrs,b.combinedData="",b}return l(_,p),_.fromCharData=function(b){var v=new _;return v.setFromCharData(b),v},_.prototype.isCombined=function(){return 2097152&this.content},_.prototype.getWidth=function(){return this.content>>22},_.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,h.stringFromCodePoint)(2097151&this.content):""},_.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},_.prototype.setFromCharData=function(b){this.fg=b[f.CHAR_DATA_ATTR_INDEX],this.bg=0;var v=!1;if(b[f.CHAR_DATA_CHAR_INDEX].length>2)v=!0;else if(b[f.CHAR_DATA_CHAR_INDEX].length===2){var c=b[f.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=c&&c<=56319){var u=b[f.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=u&&u<=57343?this.content=1024*(c-55296)+u-56320+65536|b[f.CHAR_DATA_WIDTH_INDEX]<<22:v=!0}else v=!0}else this.content=b[f.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|b[f.CHAR_DATA_WIDTH_INDEX]<<22;v&&(this.combinedData=b[f.CHAR_DATA_CHAR_INDEX],this.content=2097152|b[f.CHAR_DATA_WIDTH_INDEX]<<22)},_.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},_}(m.AttributeData);i.CellData=g},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(m,g){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,_){p.__proto__=_}||function(p,_){for(var b in _)Object.prototype.hasOwnProperty.call(_,b)&&(p[b]=_[b])},a(m,g)},function(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");function p(){this.constructor=m}a(m,g),m.prototype=g===null?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(i,"__esModule",{value:!0}),i.Marker=void 0;var h=s(8460),f=function(m){function g(p){var _=m.call(this)||this;return _.line=p,_._id=g._nextId++,_.isDisposed=!1,_._onDispose=new h.EventEmitter,_}return l(g,m),Object.defineProperty(g.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),g.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),m.prototype.dispose.call(this))},g._nextId=1,g}(s(844).Disposable);i.Marker=f},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(h,f,m,g){var p={type:0,cancel:!1,key:void 0},_=(h.shiftKey?1:0)|(h.altKey?2:0)|(h.ctrlKey?4:0)|(h.metaKey?8:0);switch(h.keyCode){case 0:h.key==="UIKeyInputUpArrow"?p.key=f?a.C0.ESC+"OA":a.C0.ESC+"[A":h.key==="UIKeyInputLeftArrow"?p.key=f?a.C0.ESC+"OD":a.C0.ESC+"[D":h.key==="UIKeyInputRightArrow"?p.key=f?a.C0.ESC+"OC":a.C0.ESC+"[C":h.key==="UIKeyInputDownArrow"&&(p.key=f?a.C0.ESC+"OB":a.C0.ESC+"[B");break;case 8:if(h.shiftKey){p.key=a.C0.BS;break}if(h.altKey){p.key=a.C0.ESC+a.C0.DEL;break}p.key=a.C0.DEL;break;case 9:if(h.shiftKey){p.key=a.C0.ESC+"[Z";break}p.key=a.C0.HT,p.cancel=!0;break;case 13:p.key=h.altKey?a.C0.ESC+a.C0.CR:a.C0.CR,p.cancel=!0;break;case 27:p.key=a.C0.ESC,h.altKey&&(p.key=a.C0.ESC+a.C0.ESC),p.cancel=!0;break;case 37:if(h.metaKey)break;_?(p.key=a.C0.ESC+"[1;"+(_+1)+"D",p.key===a.C0.ESC+"[1;3D"&&(p.key=a.C0.ESC+(m?"b":"[1;5D"))):p.key=f?a.C0.ESC+"OD":a.C0.ESC+"[D";break;case 39:if(h.metaKey)break;_?(p.key=a.C0.ESC+"[1;"+(_+1)+"C",p.key===a.C0.ESC+"[1;3C"&&(p.key=a.C0.ESC+(m?"f":"[1;5C"))):p.key=f?a.C0.ESC+"OC":a.C0.ESC+"[C";break;case 38:if(h.metaKey)break;_?(p.key=a.C0.ESC+"[1;"+(_+1)+"A",m||p.key!==a.C0.ESC+"[1;3A"||(p.key=a.C0.ESC+"[1;5A")):p.key=f?a.C0.ESC+"OA":a.C0.ESC+"[A";break;case 40:if(h.metaKey)break;_?(p.key=a.C0.ESC+"[1;"+(_+1)+"B",m||p.key!==a.C0.ESC+"[1;3B"||(p.key=a.C0.ESC+"[1;5B")):p.key=f?a.C0.ESC+"OB":a.C0.ESC+"[B";break;case 45:h.shiftKey||h.ctrlKey||(p.key=a.C0.ESC+"[2~");break;case 46:p.key=_?a.C0.ESC+"[3;"+(_+1)+"~":a.C0.ESC+"[3~";break;case 36:p.key=_?a.C0.ESC+"[1;"+(_+1)+"H":f?a.C0.ESC+"OH":a.C0.ESC+"[H";break;case 35:p.key=_?a.C0.ESC+"[1;"+(_+1)+"F":f?a.C0.ESC+"OF":a.C0.ESC+"[F";break;case 33:h.shiftKey?p.type=2:p.key=a.C0.ESC+"[5~";break;case 34:h.shiftKey?p.type=3:p.key=a.C0.ESC+"[6~";break;case 112:p.key=_?a.C0.ESC+"[1;"+(_+1)+"P":a.C0.ESC+"OP";break;case 113:p.key=_?a.C0.ESC+"[1;"+(_+1)+"Q":a.C0.ESC+"OQ";break;case 114:p.key=_?a.C0.ESC+"[1;"+(_+1)+"R":a.C0.ESC+"OR";break;case 115:p.key=_?a.C0.ESC+"[1;"+(_+1)+"S":a.C0.ESC+"OS";break;case 116:p.key=_?a.C0.ESC+"[15;"+(_+1)+"~":a.C0.ESC+"[15~";break;case 117:p.key=_?a.C0.ESC+"[17;"+(_+1)+"~":a.C0.ESC+"[17~";break;case 118:p.key=_?a.C0.ESC+"[18;"+(_+1)+"~":a.C0.ESC+"[18~";break;case 119:p.key=_?a.C0.ESC+"[19;"+(_+1)+"~":a.C0.ESC+"[19~";break;case 120:p.key=_?a.C0.ESC+"[20;"+(_+1)+"~":a.C0.ESC+"[20~";break;case 121:p.key=_?a.C0.ESC+"[21;"+(_+1)+"~":a.C0.ESC+"[21~";break;case 122:p.key=_?a.C0.ESC+"[23;"+(_+1)+"~":a.C0.ESC+"[23~";break;case 123:p.key=_?a.C0.ESC+"[24;"+(_+1)+"~":a.C0.ESC+"[24~";break;default:if(!h.ctrlKey||h.shiftKey||h.altKey||h.metaKey)if(m&&!g||!h.altKey||h.metaKey)!m||h.altKey||h.ctrlKey||h.shiftKey||!h.metaKey?h.key&&!h.ctrlKey&&!h.altKey&&!h.metaKey&&h.keyCode>=48&&h.key.length===1?p.key=h.key:h.key&&h.ctrlKey&&h.key==="_"&&(p.key=a.C0.US):h.keyCode===65&&(p.type=1);else{var b=l[h.keyCode],v=b==null?void 0:b[h.shiftKey?1:0];if(v)p.key=a.C0.ESC+v;else if(h.keyCode>=65&&h.keyCode<=90){var c=h.ctrlKey?h.keyCode-64:h.keyCode+32;p.key=a.C0.ESC+String.fromCharCode(c)}}else h.keyCode>=65&&h.keyCode<=90?p.key=String.fromCharCode(h.keyCode-64):h.keyCode===32?p.key=a.C0.NUL:h.keyCode>=51&&h.keyCode<=55?p.key=String.fromCharCode(h.keyCode-51+27):h.keyCode===56?p.key=a.C0.DEL:h.keyCode===219?p.key=a.C0.ESC:h.keyCode===220?p.key=a.C0.FS:h.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,h,f){h===void 0&&(h=0),f===void 0&&(f=l.length);for(var m="",g=h;g65535?(p-=65536,m+=String.fromCharCode(55296+(p>>10))+String.fromCharCode(p%1024+56320)):m+=String.fromCharCode(p)}return m};var s=function(){function l(){this._interim=0}return l.prototype.clear=function(){this._interim=0},l.prototype.decode=function(h,f){var m=h.length;if(!m)return 0;var g=0,p=0;this._interim&&(56320<=(v=h.charCodeAt(p++))&&v<=57343?f[g++]=1024*(this._interim-55296)+v-56320+65536:(f[g++]=this._interim,f[g++]=v),this._interim=0);for(var _=p;_=m)return this._interim=b,g;var v;56320<=(v=h.charCodeAt(_))&&v<=57343?f[g++]=1024*(b-55296)+v-56320+65536:(f[g++]=b,f[g++]=v)}else b!==65279&&(f[g++]=b)}return g},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(h,f){var m=h.length;if(!m)return 0;var g,p,_,b,v=0,c=0,u=0;if(this.interim[0]){var d=!1,y=this.interim[0];y&=(224&y)==192?31:(240&y)==224?15:7;for(var S=0,w=void 0;(w=63&this.interim[++S])&&S<4;)y<<=6,y|=w;for(var C=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,T=C-S;u=m)return 0;if((192&(w=h[u++]))!=128){u--,d=!0;break}this.interim[S++]=w,y<<=6,y|=63&w}d||(C===2?y<128?u--:f[v++]=y:C===3?y<2048||y>=55296&&y<=57343||y===65279||(f[v++]=y):y<65536||y>1114111||(f[v++]=y)),this.interim.fill(0)}for(var L=m-4,E=u;E=m)return this.interim[0]=g,v;if((192&(p=h[E++]))!=128){E--;continue}if((c=(31&g)<<6|63&p)<128){E--;continue}f[v++]=c}else if((240&g)==224){if(E>=m)return this.interim[0]=g,v;if((192&(p=h[E++]))!=128){E--;continue}if(E>=m)return this.interim[0]=g,this.interim[1]=p,v;if((192&(_=h[E++]))!=128){E--;continue}if((c=(15&g)<<12|(63&p)<<6|63&_)<2048||c>=55296&&c<=57343||c===65279)continue;f[v++]=c}else if((248&g)==240){if(E>=m)return this.interim[0]=g,v;if((192&(p=h[E++]))!=128){E--;continue}if(E>=m)return this.interim[0]=g,this.interim[1]=p,v;if((192&(_=h[E++]))!=128){E--;continue}if(E>=m)return this.interim[0]=g,this.interim[1]=p,this.interim[2]=_,v;if((192&(b=h[E++]))!=128){E--;continue}if((c=(7&g)<<18|(63&p)<<12|(63&_)<<6|63&b)<65536||c>1114111)continue;f[v++]=c}}return v},l}();i.Utf8ToUtf32=a},225:(o,i,s)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.UnicodeV6=void 0;var a,l=s(8273),h=[[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]],f=[[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]],m=function(){function g(){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;pb[u][1])return!1;for(;u>=c;)if(_>b[v=c+u>>1][1])c=v+1;else{if(!(_=131072&&p<=196605||p>=196608&&p<=262141?2:1},g}();i.UnicodeV6=m},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(h){this._action=h,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0}return l.prototype.writeSync=function(h,f){if(f!==void 0&&this._syncCalls>f)this._syncCalls=0;else if(this._pendingData+=h.length,this._writeBuffer.push(h),this._callbacks.push(void 0),this._syncCalls++,!this._isSyncWriting){var m;for(this._isSyncWriting=!0;m=this._writeBuffer.shift();){this._action(m);var g=this._callbacks.shift();g&&g()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}},l.prototype.write=function(h,f){var m=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 m._innerWrite()})),this._pendingData+=h.length,this._writeBuffer.push(h),this._callbacks.push(f)},l.prototype._innerWrite=function(h,f){var m=this;h===void 0&&(h=0),f===void 0&&(f=!0);for(var g=h||Date.now();this._writeBuffer.length>this._bufferOffset;){var p=this._writeBuffer[this._bufferOffset],_=this._action(p,f);if(_)return void _.catch(function(v){return s(function(){throw v}),Promise.resolve(!1)}).then(function(v){return Date.now()-g>=12?setTimeout(function(){return m._innerWrite(0,v)}):m._innerWrite(g,v)});var b=this._callbacks[this._bufferOffset];if(b&&b(),this._bufferOffset++,this._pendingData-=p.length,Date.now()-g>=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 m._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(h,f){var m=h.toString(16),g=m.length<2?"0"+m:m;switch(f){case 4:return m[0];case 8:return g;case 12:return(g+g).slice(0,3);default:return g+g}}i.parseColor=function(h){if(h){var f=h.toLowerCase();if(f.indexOf("rgb:")===0){f=f.slice(4);var m=s.exec(f);if(m){var g=m[1]?15:m[4]?255:m[7]?4095:65535;return[Math.round(parseInt(m[1]||m[4]||m[7]||m[10],16)/g*255),Math.round(parseInt(m[2]||m[5]||m[8]||m[11],16)/g*255),Math.round(parseInt(m[3]||m[6]||m[9]||m[12],16)/g*255)]}}else if(f.indexOf("#")===0&&(f=f.slice(1),a.exec(f)&&[3,6,9,12].includes(f.length))){for(var p=f.length/3,_=[0,0,0],b=0;b<3;++b){var v=parseInt(f.slice(p*b,p*b+p),16);_[b]=p===1?v<<4:p===2?v:p===3?v>>4:v>>8}return _}}},i.toRgbString=function(h,f){f===void 0&&(f=16);var m=h[0],g=h[1],p=h[2];return"rgb:"+l(m,f)+"/"+l(g,f)+"/"+l(p,f)}},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),h=s(5770),f=[],m=function(){function _(){this._handlers=Object.create(null),this._active=f,this._ident=0,this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return _.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=f},_.prototype.registerHandler=function(b,v){this._handlers[b]===void 0&&(this._handlers[b]=[]);var c=this._handlers[b];return c.push(v),{dispose:function(){var u=c.indexOf(v);u!==-1&&c.splice(u,1)}}},_.prototype.clearHandler=function(b){this._handlers[b]&&delete this._handlers[b]},_.prototype.setHandlerFallback=function(b){this._handlerFb=b},_.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=f,this._ident=0},_.prototype.hook=function(b,v){if(this.reset(),this._ident=b,this._active=this._handlers[b]||f,this._active.length)for(var c=this._active.length-1;c>=0;c--)this._active[c].hook(v);else this._handlerFb(this._ident,"HOOK",v)},_.prototype.put=function(b,v,c){if(this._active.length)for(var u=this._active.length-1;u>=0;u--)this._active[u].put(b,v,c);else this._handlerFb(this._ident,"PUT",(0,a.utf32ToString)(b,v,c))},_.prototype.unhook=function(b,v){if(v===void 0&&(v=!0),this._active.length){var c=!1,u=this._active.length-1,d=!1;if(this._stack.paused&&(u=this._stack.loopPosition-1,c=v,d=this._stack.fallThrough,this._stack.paused=!1),!d&&c===!1){for(;u>=0&&(c=this._active[u].unhook(b))!==!0;u--)if(c instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=u,this._stack.fallThrough=!1,c;u--}for(;u>=0;u--)if((c=this._active[u].unhook(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=u,this._stack.fallThrough=!0,c}else this._handlerFb(this._ident,"UNHOOK",b);this._active=f,this._ident=0},_}();i.DcsParser=m;var g=new l.Params;g.addParam(0);var p=function(){function _(b){this._handler=b,this._data="",this._params=g,this._hitLimit=!1}return _.prototype.hook=function(b){this._params=b.length>1||b.params[0]?b.clone():g,this._data="",this._hitLimit=!1},_.prototype.put=function(b,v,c){this._hitLimit||(this._data+=(0,a.utf32ToString)(b,v,c),this._data.length>h.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},_.prototype.unhook=function(b){var v=this,c=!1;if(this._hitLimit)c=!1;else if(b&&(c=this._handler(this._data,this._params))instanceof Promise)return c.then(function(u){return v._params=g,v._data="",v._hitLimit=!1,u});return this._params=g,this._data="",this._hitLimit=!1,c},_}();i.DcsHandler=p},2015:function(o,i,s){var a,l=this&&this.__extends||(a=function(c,u){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,y){d.__proto__=y}||function(d,y){for(var S in y)Object.prototype.hasOwnProperty.call(y,S)&&(d[S]=y[S])},a(c,u)},function(c,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");function d(){this.constructor=c}a(c,u),c.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)});Object.defineProperty(i,"__esModule",{value:!0}),i.EscapeSequenceParser=i.VT500_TRANSITION_TABLE=i.TransitionTable=void 0;var h=s(844),f=s(8273),m=s(8742),g=s(6242),p=s(6351),_=function(){function c(u){this.table=new Uint8Array(u)}return c.prototype.setDefault=function(u,d){(0,f.fill)(this.table,u<<4|d)},c.prototype.add=function(u,d,y,S){this.table[d<<8|u]=y<<4|S},c.prototype.addMany=function(u,d,y,S){for(var w=0;w1)throw new Error("only one byte as prefix supported");if((S=d.prefix.charCodeAt(0))&&60>S||S>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(d.intermediates){if(d.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var w=0;wC||C>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");S<<=8,S|=C}}if(d.final.length!==1)throw new Error("final must be a single byte");var T=d.final.charCodeAt(0);if(y[0]>T||T>y[1])throw new Error("final must be in range "+y[0]+" .. "+y[1]);return(S<<=8)|T},u.prototype.identToString=function(d){for(var y=[];d;)y.push(String.fromCharCode(255&d)),d>>=8;return y.reverse().join("")},u.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},u.prototype.setPrintHandler=function(d){this._printHandler=d},u.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},u.prototype.registerEscHandler=function(d,y){var S=this._identifier(d,[48,126]);this._escHandlers[S]===void 0&&(this._escHandlers[S]=[]);var w=this._escHandlers[S];return w.push(y),{dispose:function(){var C=w.indexOf(y);C!==-1&&w.splice(C,1)}}},u.prototype.clearEscHandler=function(d){this._escHandlers[this._identifier(d,[48,126])]&&delete this._escHandlers[this._identifier(d,[48,126])]},u.prototype.setEscHandlerFallback=function(d){this._escHandlerFb=d},u.prototype.setExecuteHandler=function(d,y){this._executeHandlers[d.charCodeAt(0)]=y},u.prototype.clearExecuteHandler=function(d){this._executeHandlers[d.charCodeAt(0)]&&delete this._executeHandlers[d.charCodeAt(0)]},u.prototype.setExecuteHandlerFallback=function(d){this._executeHandlerFb=d},u.prototype.registerCsiHandler=function(d,y){var S=this._identifier(d);this._csiHandlers[S]===void 0&&(this._csiHandlers[S]=[]);var w=this._csiHandlers[S];return w.push(y),{dispose:function(){var C=w.indexOf(y);C!==-1&&w.splice(C,1)}}},u.prototype.clearCsiHandler=function(d){this._csiHandlers[this._identifier(d)]&&delete this._csiHandlers[this._identifier(d)]},u.prototype.setCsiHandlerFallback=function(d){this._csiHandlerFb=d},u.prototype.registerDcsHandler=function(d,y){return this._dcsParser.registerHandler(this._identifier(d),y)},u.prototype.clearDcsHandler=function(d){this._dcsParser.clearHandler(this._identifier(d))},u.prototype.setDcsHandlerFallback=function(d){this._dcsParser.setHandlerFallback(d)},u.prototype.registerOscHandler=function(d,y){return this._oscParser.registerHandler(d,y)},u.prototype.clearOscHandler=function(d){this._oscParser.clearHandler(d)},u.prototype.setOscHandlerFallback=function(d){this._oscParser.setHandlerFallback(d)},u.prototype.setErrorHandler=function(d){this._errorHandler=d},u.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},u.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=[])},u.prototype._preserveStack=function(d,y,S,w,C){this._parseStack.state=d,this._parseStack.handlers=y,this._parseStack.handlerPos=S,this._parseStack.transition=w,this._parseStack.chunkPos=C},u.prototype.parse=function(d,y,S){var w,C=0,T=0,L=0;if(this._parseStack.state)if(this._parseStack.state===2)this._parseStack.state=0,L=this._parseStack.chunkPos+1;else{if(S===void 0||this._parseStack.state===1)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");var E=this._parseStack.handlers,A=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(S===!1&&A>-1){for(;A>=0&&(w=E[A](this._params))!==!0;A--)if(w instanceof Promise)return this._parseStack.handlerPos=A,w}this._parseStack.handlers=[];break;case 4:if(S===!1&&A>-1){for(;A>=0&&(w=E[A]())!==!0;A--)if(w instanceof Promise)return this._parseStack.handlerPos=A,w}this._parseStack.handlers=[];break;case 6:if(C=d[this._parseStack.chunkPos],w=this._dcsParser.unhook(C!==24&&C!==26,S))return w;C===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(C=d[this._parseStack.chunkPos],w=this._oscParser.end(C!==24&&C!==26,S))return w;C===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,L=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(var M=L;M>4){case 2:for(var O=M+1;;++O){if(O>=y||(C=d[O])<32||C>126&&C=y||(C=d[O])<32||C>126&&C=y||(C=d[O])<32||C>126&&C=y||(C=d[O])<32||C>126&&C=0&&(w=E[$](this._params))!==!0;$--)if(w instanceof Promise)return this._preserveStack(3,E,$,T,M),w;$<0&&this._csiHandlerFb(this._collect<<8|C,this._params),this.precedingCodepoint=0;break;case 8:do switch(C){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(C-48)}while(++M47&&C<60);M--;break;case 9:this._collect<<=8,this._collect|=C;break;case 10:for(var D=this._escHandlers[this._collect<<8|C],R=D?D.length-1:-1;R>=0&&(w=D[R]())!==!0;R--)if(w instanceof Promise)return this._preserveStack(4,D,R,T,M),w;R<0&&this._escHandlerFb(this._collect<<8|C),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|C,this._params);break;case 13:for(var B=M+1;;++B)if(B>=y||(C=d[B])===24||C===26||C===27||C>127&&C=y||(C=d[N])<32||C>127&&C{Object.defineProperty(i,"__esModule",{value:!0}),i.OscHandler=i.OscParser=void 0;var a=s(5770),l=s(482),h=[],f=function(){function g(){this._state=0,this._active=h,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}return g.prototype.registerHandler=function(p,_){this._handlers[p]===void 0&&(this._handlers[p]=[]);var b=this._handlers[p];return b.push(_),{dispose:function(){var v=b.indexOf(_);v!==-1&&b.splice(v,1)}}},g.prototype.clearHandler=function(p){this._handlers[p]&&delete this._handlers[p]},g.prototype.setHandlerFallback=function(p){this._handlerFb=p},g.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){},this._active=h},g.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=h,this._id=-1,this._state=0},g.prototype._start=function(){if(this._active=this._handlers[this._id]||h,this._active.length)for(var p=this._active.length-1;p>=0;p--)this._active[p].start();else this._handlerFb(this._id,"START")},g.prototype._put=function(p,_,b){if(this._active.length)for(var v=this._active.length-1;v>=0;v--)this._active[v].put(p,_,b);else this._handlerFb(this._id,"PUT",(0,l.utf32ToString)(p,_,b))},g.prototype.start=function(){this.reset(),this._state=1},g.prototype.put=function(p,_,b){if(this._state!==3){if(this._state===1)for(;_0&&this._put(p,_,b)}},g.prototype.end=function(p,_){if(_===void 0&&(_=!0),this._state!==0){if(this._state!==3)if(this._state===1&&this._start(),this._active.length){var b=!1,v=this._active.length-1,c=!1;if(this._stack.paused&&(v=this._stack.loopPosition-1,b=_,c=this._stack.fallThrough,this._stack.paused=!1),!c&&b===!1){for(;v>=0&&(b=this._active[v].end(p))!==!0;v--)if(b instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=v,this._stack.fallThrough=!1,b;v--}for(;v>=0;v--)if((b=this._active[v].end(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=v,this._stack.fallThrough=!0,b}else this._handlerFb(this._id,"END",p);this._active=h,this._id=-1,this._state=0}},g}();i.OscParser=f;var m=function(){function g(p){this._handler=p,this._data="",this._hitLimit=!1}return g.prototype.start=function(){this._data="",this._hitLimit=!1},g.prototype.put=function(p,_,b){this._hitLimit||(this._data+=(0,l.utf32ToString)(p,_,b),this._data.length>a.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},g.prototype.end=function(p){var _=this,b=!1;if(this._hitLimit)b=!1;else if(p&&(b=this._handler(this._data))instanceof Promise)return b.then(function(v){return _._data="",_._hitLimit=!1,v});return this._data="",this._hitLimit=!1,b},g}();i.OscHandler=m},8742:(o,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.Params=void 0;var s=2147483647,a=function(){function l(h,f){if(h===void 0&&(h=32),f===void 0&&(f=32),this.maxLength=h,this.maxSubParamsLength=f,f>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(h),this.length=0,this._subParams=new Int32Array(f),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(h),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return l.fromArray=function(h){var f=new l;if(!h.length)return f;for(var m=Array.isArray(h[0])?1:0;m>8,g=255&this._subParamsIdx[f];g-m>0&&h.push(Array.prototype.slice.call(this._subParams,m,g))}return h},l.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},l.prototype.addParam=function(h){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(h<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=h>s?s:h}},l.prototype.addSubParam=function(h){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(h<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=h>s?s:h,this._subParamsIdx[this.length-1]++}},l.prototype.hasSubParams=function(h){return(255&this._subParamsIdx[h])-(this._subParamsIdx[h]>>8)>0},l.prototype.getSubParams=function(h){var f=this._subParamsIdx[h]>>8,m=255&this._subParamsIdx[h];return m-f>0?this._subParams.subarray(f,m):null},l.prototype.getSubParamsAll=function(){for(var h={},f=0;f>8,g=255&this._subParamsIdx[f];g-m>0&&(h[f]=this._subParams.slice(m,g))}return h},l.prototype.addDigit=function(h){var f;if(!(this._rejectDigits||!(f=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var m=this._digitIsSub?this._subParams:this.params,g=m[f-1];m[f-1]=~g?Math.min(10*g+h,s):h}},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,h){var f=this,m={instance:h,dispose:h.dispose,isDisposed:!1};this._addons.push(m),h.dispose=function(){return f._wrappedAddonDispose(m)},h.activate(l)},a.prototype._wrappedAddonDispose=function(l){if(!l.isDisposed){for(var h=-1,f=0;f{Object.defineProperty(i,"__esModule",{value:!0}),i.BufferApiView=void 0;var a=s(3785),l=s(511),h=function(){function f(m,g){this._buffer=m,this.type=g}return f.prototype.init=function(m){return this._buffer=m,this},Object.defineProperty(f.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),f.prototype.getLine=function(m){var g=this._buffer.lines.get(m);if(g)return new a.BufferLineApiView(g)},f.prototype.getNullCell=function(){return new l.CellData},f}();i.BufferApiView=h},3785:(o,i,s)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.BufferLineApiView=void 0;var a=s(511),l=function(){function h(f){this._line=f}return Object.defineProperty(h.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),h.prototype.getCell=function(f,m){if(!(f<0||f>=this._line.length))return m?(this._line.loadCell(f,m),m):this._line.loadCell(f,new a.CellData)},h.prototype.translateToString=function(f,m,g){return this._line.translateToString(f,m,g)},h}();i.BufferLineApiView=l},8285:(o,i,s)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.BufferNamespaceApi=void 0;var a=s(8771),l=s(8460),h=function(){function f(m){var g=this;this._core=m,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 g._onBufferChange.fire(g.active)})}return Object.defineProperty(f.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(f.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(f.prototype,"normal",{get:function(){return this._normal.init(this._core.buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"alternate",{get:function(){return this._alternate.init(this._core.buffers.alt)},enumerable:!1,configurable:!0}),f}();i.BufferNamespaceApi=h},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,h){return this._core.registerCsiHandler(l,function(f){return h(f.toArray())})},a.prototype.addCsiHandler=function(l,h){return this.registerCsiHandler(l,h)},a.prototype.registerDcsHandler=function(l,h){return this._core.registerDcsHandler(l,function(f,m){return h(f,m.toArray())})},a.prototype.addDcsHandler=function(l,h){return this.registerDcsHandler(l,h)},a.prototype.registerEscHandler=function(l,h){return this._core.registerEscHandler(l,h)},a.prototype.addEscHandler=function(l,h){return this.registerEscHandler(l,h)},a.prototype.registerOscHandler=function(l,h){return this._core.registerOscHandler(l,h)},a.prototype.addOscHandler=function(l,h){return this.registerOscHandler(l,h)},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(v,c){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var y in d)Object.prototype.hasOwnProperty.call(d,y)&&(u[y]=d[y])},a(v,c)},function(v,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function u(){this.constructor=v}a(v,c),v.prototype=c===null?Object.create(c):(u.prototype=c.prototype,new u)}),h=this&&this.__decorate||function(v,c,u,d){var y,S=arguments.length,w=S<3?c:d===null?d=Object.getOwnPropertyDescriptor(c,u):d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(v,c,u,d);else for(var C=v.length-1;C>=0;C--)(y=v[C])&&(w=(S<3?y(w):S>3?y(c,u,w):y(c,u))||w);return S>3&&w&&Object.defineProperty(c,u,w),w},f=this&&this.__param||function(v,c){return function(u,d){c(u,d,v)}};Object.defineProperty(i,"__esModule",{value:!0}),i.BufferService=i.MINIMUM_ROWS=i.MINIMUM_COLS=void 0;var m=s(2585),g=s(5295),p=s(8460),_=s(844);i.MINIMUM_COLS=2,i.MINIMUM_ROWS=1;var b=function(v){function c(u){var d=v.call(this)||this;return d._optionsService=u,d.isUserScrolling=!1,d._onResize=new p.EventEmitter,d._onScroll=new p.EventEmitter,d.cols=Math.max(u.rawOptions.cols||0,i.MINIMUM_COLS),d.rows=Math.max(u.rawOptions.rows||0,i.MINIMUM_ROWS),d.buffers=new g.BufferSet(u,d),d}return l(c,v),Object.defineProperty(c.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),c.prototype.dispose=function(){v.prototype.dispose.call(this),this.buffers.dispose()},c.prototype.resize=function(u,d){this.cols=u,this.rows=d,this.buffers.resize(u,d),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:u,rows:d})},c.prototype.reset=function(){this.buffers.reset(),this.isUserScrolling=!1},c.prototype.scroll=function(u,d){d===void 0&&(d=!1);var y,S=this.buffer;(y=this._cachedBlankLine)&&y.length===this.cols&&y.getFg(0)===u.fg&&y.getBg(0)===u.bg||(y=S.getBlankLine(u,d),this._cachedBlankLine=y),y.isWrapped=d;var w=S.ybase+S.scrollTop,C=S.ybase+S.scrollBottom;if(S.scrollTop===0){var T=S.lines.isFull;C===S.lines.length-1?T?S.lines.recycle().copyFrom(y):S.lines.push(y.clone()):S.lines.splice(C+1,0,y.clone()),T?this.isUserScrolling&&(S.ydisp=Math.max(S.ydisp-1,0)):(S.ybase++,this.isUserScrolling||S.ydisp++)}else{var L=C-w+1;S.lines.shiftElements(w+1,L-1,-1),S.lines.set(C,y.clone())}this.isUserScrolling||(S.ydisp=S.ybase),this._onScroll.fire(S.ydisp)},c.prototype.scrollLines=function(u,d,y){var S=this.buffer;if(u<0){if(S.ydisp===0)return;this.isUserScrolling=!0}else u+S.ydisp>=S.ybase&&(this.isUserScrolling=!1);var w=S.ydisp;S.ydisp=Math.max(Math.min(S.ydisp+u,S.ybase),0),w!==S.ydisp&&(d||this._onScroll.fire(S.ydisp))},c.prototype.scrollPages=function(u){this.scrollLines(u*(this.rows-1))},c.prototype.scrollToTop=function(){this.scrollLines(-this.buffer.ydisp)},c.prototype.scrollToBottom=function(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)},c.prototype.scrollToLine=function(u){var d=u-this.buffer.ydisp;d!==0&&this.scrollLines(d)},h([f(0,m.IOptionsService)],c)}(_.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,h){this._charsets[l]=h,this.glevel===l&&(this.charset=h)},a}();i.CharsetService=s},1753:function(o,i,s){var a=this&&this.__decorate||function(v,c,u,d){var y,S=arguments.length,w=S<3?c:d===null?d=Object.getOwnPropertyDescriptor(c,u):d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(v,c,u,d);else for(var C=v.length-1;C>=0;C--)(y=v[C])&&(w=(S<3?y(w):S>3?y(c,u,w):y(c,u))||w);return S>3&&w&&Object.defineProperty(c,u,w),w},l=this&&this.__param||function(v,c){return function(u,d){c(u,d,v)}};Object.defineProperty(i,"__esModule",{value:!0}),i.CoreMouseService=void 0;var h=s(2585),f=s(8460),m={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(v){return v.button!==4&&v.action===1&&(v.ctrl=!1,v.alt=!1,v.shift=!1,!0)}},VT200:{events:19,restrict:function(v){return v.action!==32}},DRAG:{events:23,restrict:function(v){return v.action!==32||v.button!==3}},ANY:{events:31,restrict:function(v){return!0}}};function g(v,c){var u=(v.ctrl?16:0)|(v.shift?4:0)|(v.alt?8:0);return v.button===4?(u|=64,u|=v.action):(u|=3&v.button,4&v.button&&(u|=64),8&v.button&&(u|=128),v.action===32?u|=32:v.action!==0||c||(u|=3)),u}var p=String.fromCharCode,_={DEFAULT:function(v){var c=[g(v,!1)+32,v.col+32,v.row+32];return c[0]>255||c[1]>255||c[2]>255?"":"\x1B[M"+p(c[0])+p(c[1])+p(c[2])},SGR:function(v){var c=v.action===0&&v.button!==4?"m":"M";return"\x1B[<"+g(v,!0)+";"+v.col+";"+v.row+c}},b=function(){function v(c,u){this._bufferService=c,this._coreService=u,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new f.EventEmitter,this._lastEvent=null;for(var d=0,y=Object.keys(m);d=this._bufferService.cols||c.row<0||c.row>=this._bufferService.rows||c.button===4&&c.action===32||c.button===3&&c.action!==32||c.button!==4&&(c.action===2||c.action===3)||(c.col++,c.row++,c.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,c))||!this._protocols[this._activeProtocol].restrict(c))return!1;var u=this._encodings[this._activeEncoding](c);return u&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(u):this._coreService.triggerDataEvent(u,!0)),this._lastEvent=c,!0},v.prototype.explainEvents=function(c){return{down:!!(1&c),up:!!(2&c),drag:!!(4&c),move:!!(8&c),wheel:!!(16&c)}},v.prototype._compareEvents=function(c,u){return c.col===u.col&&c.row===u.row&&c.button===u.button&&c.action===u.action&&c.ctrl===u.ctrl&&c.alt===u.alt&&c.shift===u.shift},a([l(0,h.IBufferService),l(1,h.ICoreService)],v)}();i.CoreMouseService=b},6975:function(o,i,s){var a,l=this&&this.__extends||(a=function(u,d){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,S){y.__proto__=S}||function(y,S){for(var w in S)Object.prototype.hasOwnProperty.call(S,w)&&(y[w]=S[w])},a(u,d)},function(u,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function y(){this.constructor=u}a(u,d),u.prototype=d===null?Object.create(d):(y.prototype=d.prototype,new y)}),h=this&&this.__decorate||function(u,d,y,S){var w,C=arguments.length,T=C<3?d:S===null?S=Object.getOwnPropertyDescriptor(d,y):S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(u,d,y,S);else for(var L=u.length-1;L>=0;L--)(w=u[L])&&(T=(C<3?w(T):C>3?w(d,y,T):w(d,y))||T);return C>3&&T&&Object.defineProperty(d,y,T),T},f=this&&this.__param||function(u,d){return function(y,S){d(y,S,u)}};Object.defineProperty(i,"__esModule",{value:!0}),i.CoreService=void 0;var m=s(2585),g=s(8460),p=s(1439),_=s(844),b=Object.freeze({insertMode:!1}),v=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),c=function(u){function d(y,S,w,C){var T=u.call(this)||this;return T._bufferService=S,T._logService=w,T._optionsService=C,T.isCursorInitialized=!1,T.isCursorHidden=!1,T._onData=T.register(new g.EventEmitter),T._onUserInput=T.register(new g.EventEmitter),T._onBinary=T.register(new g.EventEmitter),T._scrollToBottom=y,T.register({dispose:function(){return T._scrollToBottom=void 0}}),T.modes=(0,p.clone)(b),T.decPrivateModes=(0,p.clone)(v),T}return l(d,u),Object.defineProperty(d.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),d.prototype.reset=function(){this.modes=(0,p.clone)(b),this.decPrivateModes=(0,p.clone)(v)},d.prototype.triggerDataEvent=function(y,S){if(S===void 0&&(S=!1),!this._optionsService.rawOptions.disableStdin){var w=this._bufferService.buffer;w.ybase!==w.ydisp&&this._scrollToBottom(),S&&this._onUserInput.fire(),this._logService.debug('sending data "'+y+'"',function(){return y.split("").map(function(C){return C.charCodeAt(0)})}),this._onData.fire(y)}},d.prototype.triggerBinaryEvent=function(y){this._optionsService.rawOptions.disableStdin||(this._logService.debug('sending binary "'+y+'"',function(){return y.split("").map(function(S){return S.charCodeAt(0)})}),this._onBinary.fire(y))},h([f(1,m.IBufferService),f(2,m.ILogService),f(3,m.IOptionsService)],d)}(_.Disposable);i.CoreService=c},3730:function(o,i,s){var a=this&&this.__decorate||function(m,g,p,_){var b,v=arguments.length,c=v<3?g:_===null?_=Object.getOwnPropertyDescriptor(g,p):_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(m,g,p,_);else for(var u=m.length-1;u>=0;u--)(b=m[u])&&(c=(v<3?b(c):v>3?b(g,p,c):b(g,p))||c);return v>3&&c&&Object.defineProperty(g,p,c),c},l=this&&this.__param||function(m,g){return function(p,_){g(p,_,m)}};Object.defineProperty(i,"__esModule",{value:!0}),i.DirtyRowService=void 0;var h=s(2585),f=function(){function m(g){this._bufferService=g,this.clearRange()}return Object.defineProperty(m.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),m.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},m.prototype.markDirty=function(g){gthis._end&&(this._end=g)},m.prototype.markRangeDirty=function(g,p){if(g>p){var _=g;g=p,p=_}gthis._end&&(this._end=p)},m.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},a([l(0,h.IBufferService)],m)}();i.DirtyRowService=f},4348:function(o,i,s){var a=this&&this.__spreadArray||function(g,p,_){if(_||arguments.length===2)for(var b,v=0,c=p.length;v0?v[0].index:_.length;if(_.length!==w)throw new Error("[createInstance] First service dependency of "+p.name+" at position "+(w+1)+" conflicts with "+_.length+" static arguments");return new(p.bind.apply(p,a([void 0],a(a([],_,!0),c,!0),!1)))},g}();i.InstantiationService=m},7866:function(o,i,s){var a=this&&this.__decorate||function(p,_,b,v){var c,u=arguments.length,d=u<3?_:v===null?v=Object.getOwnPropertyDescriptor(_,b):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(p,_,b,v);else for(var y=p.length-1;y>=0;y--)(c=p[y])&&(d=(u<3?c(d):u>3?c(_,b,d):c(_,b))||d);return u>3&&d&&Object.defineProperty(_,b,d),d},l=this&&this.__param||function(p,_){return function(b,v){_(b,v,p)}},h=this&&this.__spreadArray||function(p,_,b){if(b||arguments.length===2)for(var v,c=0,u=_.length;c{function s(a,l,h){l.di$target===l?l.di$dependencies.push({id:a,index:h}):(l.di$dependencies=[{id:a,index:h}],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(h,f,m){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");s(l,h,m)};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),h=function(){function f(){this._providers=Object.create(null),this._active="",this._onChange=new a.EventEmitter;var m=new l.UnicodeV6;this.register(m),this._active=m.version,this._activeProvider=m}return Object.defineProperty(f.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"activeVersion",{get:function(){return this._active},set:function(m){if(!this._providers[m])throw new Error('unknown Unicode version "'+m+'"');this._active=m,this._activeProvider=this._providers[m],this._onChange.fire(m)},enumerable:!1,configurable:!0}),f.prototype.register=function(m){this._providers[m.version]=m},f.prototype.wcwidth=function(m){return this._activeProvider.wcwidth(m)},f.prototype.getStringCellWidth=function(m){for(var g=0,p=m.length,_=0;_=p)return g+this.wcwidth(b);var v=m.charCodeAt(_);56320<=v&&v<=57343?b=1024*(b-55296)+v-56320+65536:g+=this.wcwidth(v)}g+=this.wcwidth(b)}return g},f}();i.UnicodeService=h}},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)})()})})(Pm);var Im={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 h=this._terminal._core;this._terminal.rows===l.rows&&this._terminal.cols===l.cols||(h._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 h=window.getComputedStyle(this._terminal.element.parentElement),f=parseInt(h.getPropertyValue("height")),m=Math.max(0,parseInt(h.getPropertyValue("width"))),g=window.getComputedStyle(this._terminal.element),p=f-(parseInt(g.getPropertyValue("padding-top"))+parseInt(g.getPropertyValue("padding-bottom"))),_=m-(parseInt(g.getPropertyValue("padding-right"))+parseInt(g.getPropertyValue("padding-left")))-l.viewport.scrollBarWidth;return{cols:Math.max(2,Math.floor(_/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)})()})})(Im);const{io:E4}=Bo,T4={name:"Terminal",data(){return{term:null,loading:!1,token:null,host:null,command:""}},async mounted(){if(this.loading=!0,this.token=localStorage.getItem("token"),!this.token)return this.$router.push("login");let{host:e,name:t}=this.$route.query;this.host=e,document.title=`${document.title}-${t}`,await this.getCommand(),this.connectIO()},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=E4(this.$serviceURI,{path:"/terminal",forceNew:!0,reconnectionAttempts:1}),this.socket.on("connect",()=>{this.loading=!1,console.log("/terminal socket\u5DF2\u8FDE\u63A5\uFF1A",this.socket.id),this.createLocalTerminal(),this.socket.emit("create",{host:e,token:t}),this.socket.on("connect_success",r=>{this.$notification({title:"\u8FDE\u63A5\u6210\u529F",message:r,type:"success"}),this.socket.on("connect_terminal",()=>{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",()=>{console.log("token\u6821\u9A8C\u5931\u8D25"),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.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("\u7EC8\u7AEF\u8FDE\u63A5\u65AD\u5F00","Error",{dangerouslyUseHTMLString:!0,confirmButtonText:"\u91CD\u65B0\u8FDE\u63A5"}).then(()=>{this.term&&this.term.dispose(),this.connectIO()})},createLocalTerminal(){let e=new Pm.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);const t=new Im.exports.FitAddon;e.loadAddon(t),t.fit();function r(){try{t.fit()}catch(n){console.log("e",n.message)}}window.addEventListener("resize",r),e.writeln("\x1B[1;32mWelcome to EasyNode terminal\x1B[0m."),e.writeln("\x1B[1;32mAn experimental Web-SSH Terminal.\x1B[0m."),e.focus(),this.onData(e),this.onSelectionChange()},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(e){this.socket.on("output",t=>{e.write(t)}),e.onData(t=>{this.socket.emit("input",t)})},handleClear(){this.term.clear()},async handlePaste(){let e=await navigator.clipboard.readText();this.term.paste(e),this.term.focus()}}},A4={class:"container"},L4=Ee(" \u6E05\u7A7A "),O4=Ee(" \u7C98\u8D34 "),x4={id:"terminal",ref:"terminal"};function R4(e,t,r,n,o,i){const s=jr,a=X_;return ht((Y(),ve("div",A4,[V("header",null,[Q(s,{type:"primary",onClick:i.handleClear},{default:J(()=>[L4]),_:1},8,["onClick"]),Q(s,{type:"primary",onClick:i.handlePaste},{default:J(()=>[O4]),_:1},8,["onClick"])]),V("div",x4,null,512)])),[[a,o.loading]])}var k4=qr(T4,[["render",R4],["__scopeId","data-v-0a22b722"]]);const M4={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=Bu(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})=>{let{token:n}=r;console.log("jwt token\uFF1A",n),localStorage.setItem("token",n),this.$message.success({message:"success",center:!0}),this.$router.push("/")})})}}},B4={key:0,style:{color:"#f56c6c"}},P4={key:1,style:{color:"#409eff"}},I4={key:0},D4={key:1},F4={class:"dialog-footer"},H4=Ee("\u767B\u5F55");function N4(e,t,r,n,o,i){const s=qT,a=Qi,l=Bl,h=Ml,f=jr,m=as;return Y(),be(m,{modelValue:o.visible,"onUpdate:modelValue":t[2]||(t[2]=g=>o.visible=g),width:"30%",top:"30vh","destroy-on-close":"","close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,center:""},{title:J(()=>[o.notKey?(Y(),ve("h2",B4," Error ")):(Y(),ve("h2",P4," LOGIN "))]),footer:J(()=>[V("span",F4,[Q(f,{type:"primary",onClick:i.handleLogin},{default:J(()=>[H4]),_:1},8,["onClick"])])]),default:J(()=>[o.notKey?(Y(),ve("div",I4,[Q(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":""})])):(Y(),ve("div",D4,[Q(h,{ref:"login-form",model:o.loginForm,rules:o.rules,"hide-required-asterisk":!0,"label-suffix":"\uFF1A","label-width":"90px"},{default:J(()=>[Q(l,{prop:"pwd",label:"\u5BC6\u7801"},{default:J(()=>[Q(a,{modelValue:o.loginForm.pwd,"onUpdate:modelValue":t[0]||(t[0]=g=>o.loginForm.pwd=g),modelModifiers:{trim:!0},type:"password",placeholder:"Please input password",autocomplete:"off","trigger-on-focus":!1,clearable:"","show-password":"",onKeyup:Ft(i.handleLogin,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),ht(Q(l,{prop:"pwd",label:"\u5BC6\u7801"},{default:J(()=>[Q(a,{modelValue:o.loginForm.pwd,"onUpdate:modelValue":t[1]||(t[1]=g=>o.loginForm.pwd=g),modelModifiers:{trim:!0}},null,8,["modelValue"])]),_:1},512),[[Ht,!1]])]),_:1},8,["model","rules"])]))]),_:1},8,["modelValue"])}var $4=qr(M4,[["render",N4]]);const j4=[{path:"/",component:C4},{path:"/login",component:$4},{path:"/terminal",component:k4}];var Pu=O1({history:Wb(),routes:j4}),U4={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`}},q4=e=>{e.config.globalProperties.$ELEMENT={size:"default"},e.config.globalProperties.$message=En,e.config.globalProperties.$messageBox=Qa,e.config.globalProperties.$notification=lM};const W4={name:"App"};function V4(e,t,r,n,o,i){const s=Be("router-view");return Y(),ve("div",null,[Q(s)])}var z4=qr(W4,[["render",V4]]);const vi=Zv(z4);q4(vi);vi.use(Pu);vi.component("SvgIcon",xm);vi.config.globalProperties.$api=Xr;vi.config.globalProperties.$filters=U4;const Dm=location.origin;vi.config.globalProperties.$serviceURI=Dm;console.warn("ISDEV: ",!1);console.warn("serviceURI: ",Dm);vi.mount("#app")});export default K4();