@runmedev/react-console 3.16.3 → 3.16.5-jlewi.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Console.d.ts +3 -1
- package/dist/components/Console.d.ts.map +1 -1
- package/dist/react-console.cjs +1 -2136
- package/dist/react-console.mjs +66 -16301
- package/package.json +4 -3
package/dist/react-console.cjs
CHANGED
|
@@ -1,2136 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2019 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/const pr=globalThis,Ii=pr.ShadowRoot&&(pr.ShadyCSS===void 0||pr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ri=Symbol(),us=new WeakMap;let Po=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==Ri)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Ii&&e===void 0){const r=t!==void 0&&t.length===1;r&&(e=us.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&us.set(t,e))}return e}toString(){return this.cssText}};const Nt=e=>new Po(typeof e=="string"?e:e+"",void 0,Ri),Ne=(e,...t)=>{const r=e.length===1?e[0]:t.reduce(((s,l,_)=>s+(m=>{if(m._$cssResult$===!0)return m.cssText;if(typeof m=="number")return m;throw Error("Value passed to 'css' function must be a 'css' function result: "+m+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(l)+e[_+1]),e[0]);return new Po(r,e,Ri)},Xa=(e,t)=>{if(Ii)e.adoptedStyleSheets=t.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(const r of t){const s=document.createElement("style"),l=pr.litNonce;l!==void 0&&s.setAttribute("nonce",l),s.textContent=r.cssText,e.appendChild(s)}},fs=Ii?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(const s of t.cssRules)r+=s.cssText;return Nt(r)})(e):e;/**
|
|
6
|
-
* @license
|
|
7
|
-
* Copyright 2017 Google LLC
|
|
8
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/const{is:Ja,defineProperty:qa,getOwnPropertyDescriptor:Qa,getOwnPropertyNames:ec,getOwnPropertySymbols:tc,getPrototypeOf:rc}=Object,yt=globalThis,gs=yt.trustedTypes,ic=gs?gs.emptyScript:"",vs=yt.reactiveElementPolyfillSupport,Pt=(e,t)=>e,yr={toAttribute(e,t){switch(t){case Boolean:e=e?ic:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},Ai=(e,t)=>!Ja(e,t),ps={attribute:!0,type:String,converter:yr,reflect:!1,useDefault:!1,hasChanged:Ai};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),yt.litPropertyMetadata??(yt.litPropertyMetadata=new WeakMap);let pt=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=ps){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),s=this.getPropertyDescriptor(e,r,t);s!==void 0&&qa(this.prototype,e,s)}}static getPropertyDescriptor(e,t,r){const{get:s,set:l}=Qa(this.prototype,e)??{get(){return this[t]},set(_){this[t]=_}};return{get:s,set(_){const m=s==null?void 0:s.call(this);l==null||l.call(this,_),this.requestUpdate(e,m,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ps}static _$Ei(){if(this.hasOwnProperty(Pt("elementProperties")))return;const e=rc(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Pt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Pt("properties"))){const t=this.properties,r=[...ec(t),...tc(t)];for(const s of r)this.createProperty(s,t[s])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[r,s]of t)this.elementProperties.set(r,s)}this._$Eh=new Map;for(const[t,r]of this.elementProperties){const s=this._$Eu(t,r);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const s of r)t.unshift(fs(s))}else e!==void 0&&t.push(fs(e));return t}static _$Eu(e,t){const r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach((t=>t(this)))}addController(e){var t;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((t=e.hostConnected)==null||t.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Xa(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach((t=>{var r;return(r=t.hostConnected)==null?void 0:r.call(t)}))}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach((t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)}))}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){var r;const s=this.constructor.elementProperties.get(e),l=this.constructor._$Eu(e,s);if(l!==void 0&&s.reflect===!0){const _=(((r=s.converter)==null?void 0:r.toAttribute)!==void 0?s.converter:yr).toAttribute(t,s.type);this._$Em=e,_==null?this.removeAttribute(l):this.setAttribute(l,_),this._$Em=null}}_$AK(e,t){var r,s;const l=this.constructor,_=l._$Eh.get(e);if(_!==void 0&&this._$Em!==_){const m=l.getPropertyOptions(_),i=typeof m.converter=="function"?{fromAttribute:m.converter}:((r=m.converter)==null?void 0:r.fromAttribute)!==void 0?m.converter:yr;this._$Em=_;const a=i.fromAttribute(t,m.type);this[_]=a??((s=this._$Ej)==null?void 0:s.get(_))??a,this._$Em=null}}requestUpdate(e,t,r){var s;if(e!==void 0){const l=this.constructor,_=this[e];if(r??(r=l.getPropertyOptions(e)),!((r.hasChanged??Ai)(_,t)||r.useDefault&&r.reflect&&_===((s=this._$Ej)==null?void 0:s.get(e))&&!this.hasAttribute(l._$Eu(e,r))))return;this.C(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:s,wrapped:l},_){r&&!(this._$Ej??(this._$Ej=new Map)).has(e)&&(this._$Ej.set(e,_??t??this[e]),l!==!0||_!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),s===!0&&this._$Em!==e&&(this._$Eq??(this._$Eq=new Set)).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[l,_]of this._$Ep)this[l]=_;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[l,_]of s){const{wrapped:m}=_,i=this[l];m!==!0||this._$AL.has(l)||i===void 0||this.C(l,void 0,_,i)}}let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),(e=this._$EO)==null||e.forEach((s=>{var l;return(l=s.hostUpdate)==null?void 0:l.call(s)})),this.update(r)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach((r=>{var s;return(s=r.hostUpdated)==null?void 0:s.call(r)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach((t=>this._$ET(t,this[t])))),this._$EM()}updated(e){}firstUpdated(e){}};pt.elementStyles=[],pt.shadowRootOptions={mode:"open"},pt[Pt("elementProperties")]=new Map,pt[Pt("finalized")]=new Map,vs==null||vs({ReactiveElement:pt}),(yt.reactiveElementVersions??(yt.reactiveElementVersions=[])).push("2.1.1");/**
|
|
10
|
-
* @license
|
|
11
|
-
* Copyright 2017 Google LLC
|
|
12
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const Cr=globalThis,wr=Cr.trustedTypes,_s=wr?wr.createPolicy("lit-html",{createHTML:e=>e}):void 0,Uo="$lit$",Je=`lit$${Math.random().toFixed(9).slice(2)}$`,Vo="?"+Je,sc=`<${Vo}>`,dt=document,Ht=()=>dt.createComment(""),$t=e=>e===null||typeof e!="object"&&typeof e!="function",xi=Array.isArray,oc=e=>xi(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",Kr=`[
|
|
14
|
-
\f\r]`,Dt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ms=/-->/g,bs=/>/g,rt=RegExp(`>|${Kr}(?:([^\\s"'>=/]+)(${Kr}*=${Kr}*(?:[^
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ss=/'/g,ys=/"/g,Ho=/^(?:script|style|textarea|title)$/i,nc=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),K=nc(1),Ct=Symbol.for("lit-noChange"),fe=Symbol.for("lit-nothing"),Cs=new WeakMap,ot=dt.createTreeWalker(dt,129);function $o(e,t){if(!xi(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return _s!==void 0?_s.createHTML(t):t}const ac=(e,t)=>{const r=e.length-1,s=[];let l,_=t===2?"<svg>":t===3?"<math>":"",m=Dt;for(let i=0;i<r;i++){const a=e[i];let h,f,u=-1,v=0;for(;v<a.length&&(m.lastIndex=v,f=m.exec(a),f!==null);)v=m.lastIndex,m===Dt?f[1]==="!--"?m=ms:f[1]!==void 0?m=bs:f[2]!==void 0?(Ho.test(f[2])&&(l=RegExp("</"+f[2],"g")),m=rt):f[3]!==void 0&&(m=rt):m===rt?f[0]===">"?(m=l??Dt,u=-1):f[1]===void 0?u=-2:(u=m.lastIndex-f[2].length,h=f[1],m=f[3]===void 0?rt:f[3]==='"'?ys:Ss):m===ys||m===Ss?m=rt:m===ms||m===bs?m=Dt:(m=rt,l=void 0);const y=m===rt&&e[i+1].startsWith("/>")?" ":"";_+=m===Dt?a+sc:u>=0?(s.push(h),a.slice(0,u)+Uo+a.slice(u)+Je+y):a+Je+(u===-2?i:y)}return[$o(e,_+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};class Wt{constructor({strings:t,_$litType$:r},s){let l;this.parts=[];let _=0,m=0;const i=t.length-1,a=this.parts,[h,f]=ac(t,r);if(this.el=Wt.createElement(h,s),ot.currentNode=this.el.content,r===2||r===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(l=ot.nextNode())!==null&&a.length<i;){if(l.nodeType===1){if(l.hasAttributes())for(const u of l.getAttributeNames())if(u.endsWith(Uo)){const v=f[m++],y=l.getAttribute(u).split(Je),E=/([.?@])?(.*)/.exec(v);a.push({type:1,index:_,name:E[2],strings:y,ctor:E[1]==="."?lc:E[1]==="?"?dc:E[1]==="@"?hc:Dr}),l.removeAttribute(u)}else u.startsWith(Je)&&(a.push({type:6,index:_}),l.removeAttribute(u));if(Ho.test(l.tagName)){const u=l.textContent.split(Je),v=u.length-1;if(v>0){l.textContent=wr?wr.emptyScript:"";for(let y=0;y<v;y++)l.append(u[y],Ht()),ot.nextNode(),a.push({type:2,index:++_});l.append(u[v],Ht())}}}else if(l.nodeType===8)if(l.data===Vo)a.push({type:2,index:_});else{let u=-1;for(;(u=l.data.indexOf(Je,u+1))!==-1;)a.push({type:7,index:_}),u+=Je.length-1}_++}}static createElement(t,r){const s=dt.createElement("template");return s.innerHTML=t,s}}function wt(e,t,r=e,s){var l,_;if(t===Ct)return t;let m=s!==void 0?(l=r._$Co)==null?void 0:l[s]:r._$Cl;const i=$t(t)?void 0:t._$litDirective$;return(m==null?void 0:m.constructor)!==i&&((_=m==null?void 0:m._$AO)==null||_.call(m,!1),i===void 0?m=void 0:(m=new i(e),m._$AT(e,r,s)),s!==void 0?(r._$Co??(r._$Co=[]))[s]=m:r._$Cl=m),m!==void 0&&(t=wt(e,m._$AS(e,t.values),m,s)),t}class cc{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:r},parts:s}=this._$AD,l=((t==null?void 0:t.creationScope)??dt).importNode(r,!0);ot.currentNode=l;let _=ot.nextNode(),m=0,i=0,a=s[0];for(;a!==void 0;){if(m===a.index){let h;a.type===2?h=new er(_,_.nextSibling,this,t):a.type===1?h=new a.ctor(_,a.name,a.strings,this,t):a.type===6&&(h=new uc(_,this,t)),this._$AV.push(h),a=s[++i]}m!==(a==null?void 0:a.index)&&(_=ot.nextNode(),m++)}return ot.currentNode=dt,l}p(t){let r=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,r),r+=s.strings.length-2):s._$AI(t[r])),r++}}class er{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,r,s,l){this.type=2,this._$AH=fe,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=s,this.options=l,this._$Cv=(l==null?void 0:l.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=wt(this,t,r),$t(t)?t===fe||t==null||t===""?(this._$AH!==fe&&this._$AR(),this._$AH=fe):t!==this._$AH&&t!==Ct&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):oc(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==fe&&$t(this._$AH)?this._$AA.nextSibling.data=t:this.T(dt.createTextNode(t)),this._$AH=t}$(t){var r;const{values:s,_$litType$:l}=t,_=typeof l=="number"?this._$AC(t):(l.el===void 0&&(l.el=Wt.createElement($o(l.h,l.h[0]),this.options)),l);if(((r=this._$AH)==null?void 0:r._$AD)===_)this._$AH.p(s);else{const m=new cc(_,this),i=m.u(this.options);m.p(s),this.T(i),this._$AH=m}}_$AC(t){let r=Cs.get(t.strings);return r===void 0&&Cs.set(t.strings,r=new Wt(t)),r}k(t){xi(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let s,l=0;for(const _ of t)l===r.length?r.push(s=new er(this.O(Ht()),this.O(Ht()),this,this.options)):s=r[l],s._$AI(_),l++;l<r.length&&(this._$AR(s&&s._$AB.nextSibling,l),r.length=l)}_$AR(t=this._$AA.nextSibling,r){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,r);t!==this._$AB;){const l=t.nextSibling;t.remove(),t=l}}setConnected(t){var r;this._$AM===void 0&&(this._$Cv=t,(r=this._$AP)==null||r.call(this,t))}}class Dr{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,s,l,_){this.type=1,this._$AH=fe,this._$AN=void 0,this.element=t,this.name=r,this._$AM=l,this.options=_,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=fe}_$AI(t,r=this,s,l){const _=this.strings;let m=!1;if(_===void 0)t=wt(this,t,r,0),m=!$t(t)||t!==this._$AH&&t!==Ct,m&&(this._$AH=t);else{const i=t;let a,h;for(t=_[0],a=0;a<_.length-1;a++)h=wt(this,i[s+a],r,a),h===Ct&&(h=this._$AH[a]),m||(m=!$t(h)||h!==this._$AH[a]),h===fe?t=fe:t!==fe&&(t+=(h??"")+_[a+1]),this._$AH[a]=h}m&&!l&&this.j(t)}j(t){t===fe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class lc extends Dr{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===fe?void 0:t}}class dc extends Dr{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==fe)}}class hc extends Dr{constructor(t,r,s,l,_){super(t,r,s,l,_),this.type=5}_$AI(t,r=this){if((t=wt(this,t,r,0)??fe)===Ct)return;const s=this._$AH,l=t===fe&&s!==fe||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,_=t!==fe&&(s===fe||l);l&&this.element.removeEventListener(this.name,this,s),_&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var r;typeof this._$AH=="function"?this._$AH.call(((r=this.options)==null?void 0:r.host)??this.element,t):this._$AH.handleEvent(t)}}class uc{constructor(t,r,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){wt(this,t)}}const ws=Cr.litHtmlPolyfillSupport;ws==null||ws(Wt,er),(Cr.litHtmlVersions??(Cr.litHtmlVersions=[])).push("3.3.1");const fc=(e,t,r)=>{const s=(r==null?void 0:r.renderBefore)??t;let l=s._$litPart$;if(l===void 0){const _=(r==null?void 0:r.renderBefore)??null;s._$litPart$=l=new er(t.insertBefore(Ht(),_),_,void 0,r??{})}return l._$AI(e),l};/**
|
|
16
|
-
* @license
|
|
17
|
-
* Copyright 2017 Google LLC
|
|
18
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
-
*/const Gt=globalThis;class we extends pt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const r=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=r.firstChild),r}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=fc(r,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return Ct}}var Es;we._$litElement$=!0,we.finalized=!0,(Es=Gt.litElementHydrateSupport)==null||Es.call(Gt,{LitElement:we});const ks=Gt.litElementPolyfillSupport;ks==null||ks({LitElement:we});(Gt.litElementVersions??(Gt.litElementVersions=[])).push("4.2.1");/**
|
|
20
|
-
* @license
|
|
21
|
-
* Copyright 2017 Google LLC
|
|
22
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
-
*/const xe=e=>(t,r)=>{r!==void 0?r.addInitializer((()=>{customElements.define(e,t)})):customElements.define(e,t)};/**
|
|
24
|
-
* @license
|
|
25
|
-
* Copyright 2017 Google LLC
|
|
26
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/const gc={attribute:!0,type:String,converter:yr,reflect:!1,hasChanged:Ai},vc=(e=gc,t,r)=>{const{kind:s,metadata:l}=r;let _=globalThis.litPropertyMetadata.get(l);if(_===void 0&&globalThis.litPropertyMetadata.set(l,_=new Map),s==="setter"&&((e=Object.create(e)).wrapped=!0),_.set(r.name,e),s==="accessor"){const{name:m}=r;return{set(i){const a=t.get.call(this);t.set.call(this,i),this.requestUpdate(m,a,e)},init(i){return i!==void 0&&this.C(m,void 0,e,i),i}}}if(s==="setter"){const{name:m}=r;return function(i){const a=this[m];t.call(this,i),this.requestUpdate(m,a,e)}}throw Error("Unsupported decorator location: "+s)};function Y(e){return(t,r)=>typeof r=="object"?vc(e,t,r):((s,l,_)=>{const m=l.hasOwnProperty(_);return l.constructor.createProperty(_,s),m?Object.getOwnPropertyDescriptor(l,_):void 0})(e,t,r)}/**
|
|
28
|
-
* @license
|
|
29
|
-
* Copyright 2017 Google LLC
|
|
30
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
|
-
*/function pc(e){return Y({...e,state:!0,attribute:!1})}var _c=(e,t,r,s)=>{for(var l=t,_=e.length-1,m;_>=0;_--)(m=e[_])&&(l=m(l)||l);return l};let ai=class extends we{onClose(e){e.defaultPrevented&&e.preventDefault();const t=new CustomEvent("closed");this.dispatchEvent(t)}render(){return K`
|
|
32
|
-
<div class="close-button tooltip">
|
|
33
|
-
<span class="tooltiptext">Close</span>
|
|
34
|
-
<vscode-button
|
|
35
|
-
class="control"
|
|
36
|
-
appearance="icon"
|
|
37
|
-
aria-label="Close"
|
|
38
|
-
@click="${this.onClose}"
|
|
39
|
-
>
|
|
40
|
-
<span class="icon icon-close"></span>
|
|
41
|
-
</vscode-button>
|
|
42
|
-
</div>
|
|
43
|
-
`}};ai.styles=Ne`
|
|
44
|
-
:host {
|
|
45
|
-
--button-icon-hover-background: var(--vscode-toolbar-hoverBackground);
|
|
46
|
-
--tooltip-background: #343434;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.close-button .control {
|
|
50
|
-
outline: none;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.close-button {
|
|
54
|
-
position: absolute;
|
|
55
|
-
top: 5px;
|
|
56
|
-
right: 5px;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.close-button,
|
|
60
|
-
.close-button:hover {
|
|
61
|
-
border: none;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
@media (prefers-color-scheme: light) {
|
|
65
|
-
.icon-close {
|
|
66
|
-
background-image: url("data:image/svg+xml,%0A%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.00028 8.70711L11.6467 12.3536L12.3538 11.6465L8.70739 8.00001L12.3538 4.35356L11.6467 3.64645L8.00028 7.2929L4.35384 3.64645L3.64673 4.35356L7.29317 8.00001L3.64673 11.6465L4.35384 12.3536L8.00028 8.70711Z' fill='%23424242'/%3E%3C/svg%3E%0A");
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
@media (prefers-color-scheme: dark) {
|
|
71
|
-
.icon-close {
|
|
72
|
-
background-image: url("data:image/svg+xml,%0A%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M8.00004 8.70711L11.6465 12.3536L12.3536 11.6465L8.70714 8.00001L12.3536 4.35356L11.6465 3.64645L8.00004 7.2929L4.35359 3.64645L3.64648 4.35356L7.29293 8.00001L3.64648 11.6465L4.35359 12.3536L8.00004 8.70711Z' fill='%23C5C5C5'/%3E%3C/svg%3E%0A");
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.tooltip .tooltiptext {
|
|
77
|
-
visibility: hidden;
|
|
78
|
-
width: 50px;
|
|
79
|
-
background-color: var(--tooltip-background);
|
|
80
|
-
color: #fff;
|
|
81
|
-
text-align: center;
|
|
82
|
-
padding: 5px 0;
|
|
83
|
-
position: absolute;
|
|
84
|
-
z-index: 1;
|
|
85
|
-
bottom: 150%;
|
|
86
|
-
right: -60%;
|
|
87
|
-
margin-left: -60px;
|
|
88
|
-
top: 126%;
|
|
89
|
-
height: 15px;
|
|
90
|
-
box-shadow: 2px 2px 4px -2px var(--vscode-input-border);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.tooltip .tooltiptext::after {
|
|
94
|
-
content: ' ';
|
|
95
|
-
position: absolute;
|
|
96
|
-
bottom: 100%; /* At the top of the tooltip */
|
|
97
|
-
left: 50%;
|
|
98
|
-
margin-left: -5px;
|
|
99
|
-
border-width: 5px;
|
|
100
|
-
border-style: solid;
|
|
101
|
-
border-color: transparent transparent var(--tooltip-background)
|
|
102
|
-
transparent;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.tooltip .tooltiptext {
|
|
106
|
-
transition-delay: 1s;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.tooltip:hover .tooltiptext {
|
|
110
|
-
visibility: visible;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.tooltip:not(:hover) .tooltiptext {
|
|
114
|
-
transition-delay: 0s;
|
|
115
|
-
}
|
|
116
|
-
`;ai=_c([xe("close-cell-button")],ai);const Wo=K`
|
|
117
|
-
<svg
|
|
118
|
-
class="icon"
|
|
119
|
-
width="16"
|
|
120
|
-
height="16"
|
|
121
|
-
viewBox="0 0 16 16"
|
|
122
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
123
|
-
fill="currentColor"
|
|
124
|
-
>
|
|
125
|
-
<path
|
|
126
|
-
fill-rule="evenodd"
|
|
127
|
-
clip-rule="evenodd"
|
|
128
|
-
d="M4 4l1-1h5.414L14 6.586V14l-1 1H5l-1-1V4zm9 3l-3-3H5v10h8V7z"
|
|
129
|
-
/>
|
|
130
|
-
<path
|
|
131
|
-
fill-rule="evenodd"
|
|
132
|
-
clip-rule="evenodd"
|
|
133
|
-
d="M3 1L2 2v10l1 1V2h6.414l-1-1H3z"
|
|
134
|
-
/>
|
|
135
|
-
</svg>
|
|
136
|
-
`;var mc=Object.defineProperty,bc=Object.getOwnPropertyDescriptor,Go=(e,t,r,s)=>{for(var l=s>1?void 0:s?bc(t,r):t,_=e.length-1,m;_>=0;_--)(m=e[_])&&(l=(s?m(t,r,l):m(l))||l);return s&&l&&mc(t,r,l),l};let Er=class extends we{constructor(){super(...arguments),this.copyText="Copy"}onCopy(e){e.defaultPrevented&&e.preventDefault();const t=new CustomEvent("onCopy");this.dispatchEvent(t)}render(){return K`
|
|
137
|
-
<vscode-button appearance="secondary" @click=${this.onCopy}>
|
|
138
|
-
${Wo} ${this.copyText}
|
|
139
|
-
</vscode-button>
|
|
140
|
-
`}};Er.styles=Ne`
|
|
141
|
-
vscode-button {
|
|
142
|
-
color: var(--vscode-button-foreground);
|
|
143
|
-
background-color: var(--vscode-button-background);
|
|
144
|
-
transform: scale(0.9);
|
|
145
|
-
}
|
|
146
|
-
vscode-button:hover {
|
|
147
|
-
background: var(--vscode-button-hoverBackground);
|
|
148
|
-
}
|
|
149
|
-
vscode-button:focus {
|
|
150
|
-
outline: #007fd4 1px solid;
|
|
151
|
-
}
|
|
152
|
-
.icon {
|
|
153
|
-
width: 13px;
|
|
154
|
-
margin: 0 5px 0 -5px;
|
|
155
|
-
padding: 0;
|
|
156
|
-
}
|
|
157
|
-
`;Go([Y({type:String})],Er.prototype,"copyText",2);Er=Go([xe("copy-button")],Er);var ci={exports:{}},Sc=ci.exports,Bs;function yc(){return Bs||(Bs=1,(function(e,t){(function(r,s){e.exports=s()})(Sc,(()=>(()=>{var r={930:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.ColorContrastCache=void 0;const h=a(485);i.ColorContrastCache=class{constructor(){this._color=new h.TwoKeyMap,this._css=new h.TwoKeyMap}setCss(f,u,v){this._css.set(f,u,v)}getCss(f,u){return this._css.get(f,u)}setColor(f,u,v){this._color.set(f,u,v)}getColor(f,u){return this._color.get(f,u)}clear(){this._color.clear(),this._css.clear()}}},997:function(m,i,a){var h=this&&this.__decorate||function(w,b,k,A){var T,L=arguments.length,R=L<3?b:A===null?A=Object.getOwnPropertyDescriptor(b,k):A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")R=Reflect.decorate(w,b,k,A);else for(var M=w.length-1;M>=0;M--)(T=w[M])&&(R=(L<3?T(R):L>3?T(b,k,R):T(b,k))||R);return L>3&&R&&Object.defineProperty(b,k,R),R},f=this&&this.__param||function(w,b){return function(k,A){b(k,A,w)}};Object.defineProperty(i,"__esModule",{value:!0}),i.ThemeService=i.DEFAULT_ANSI_COLORS=void 0;const u=a(930),v=a(160),y=a(345),E=a(859),p=a(97),o=v.css.toColor("#ffffff"),c=v.css.toColor("#000000"),n=v.css.toColor("#ffffff"),d=v.css.toColor("#000000"),g={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};i.DEFAULT_ANSI_COLORS=Object.freeze((()=>{const w=[v.css.toColor("#2e3436"),v.css.toColor("#cc0000"),v.css.toColor("#4e9a06"),v.css.toColor("#c4a000"),v.css.toColor("#3465a4"),v.css.toColor("#75507b"),v.css.toColor("#06989a"),v.css.toColor("#d3d7cf"),v.css.toColor("#555753"),v.css.toColor("#ef2929"),v.css.toColor("#8ae234"),v.css.toColor("#fce94f"),v.css.toColor("#729fcf"),v.css.toColor("#ad7fa8"),v.css.toColor("#34e2e2"),v.css.toColor("#eeeeec")],b=[0,95,135,175,215,255];for(let k=0;k<216;k++){const A=b[k/36%6|0],T=b[k/6%6|0],L=b[k%6];w.push({css:v.channels.toCss(A,T,L),rgba:v.channels.toRgba(A,T,L)})}for(let k=0;k<24;k++){const A=8+10*k;w.push({css:v.channels.toCss(A,A,A),rgba:v.channels.toRgba(A,A,A)})}return w})());let C=i.ThemeService=class extends E.Disposable{get colors(){return this._colors}constructor(w){super(),this._optionsService=w,this._contrastCache=new u.ColorContrastCache,this._halfContrastCache=new u.ColorContrastCache,this._onChangeColors=this.register(new y.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:o,background:c,cursor:n,cursorAccent:d,selectionForeground:void 0,selectionBackgroundTransparent:g,selectionBackgroundOpaque:v.color.blend(c,g),selectionInactiveBackgroundTransparent:g,selectionInactiveBackgroundOpaque:v.color.blend(c,g),ansi:i.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this.register(this._optionsService.onSpecificOptionChange("minimumContrastRatio",(()=>this._contrastCache.clear()))),this.register(this._optionsService.onSpecificOptionChange("theme",(()=>this._setTheme(this._optionsService.rawOptions.theme))))}_setTheme(w={}){const b=this._colors;if(b.foreground=S(w.foreground,o),b.background=S(w.background,c),b.cursor=S(w.cursor,n),b.cursorAccent=S(w.cursorAccent,d),b.selectionBackgroundTransparent=S(w.selectionBackground,g),b.selectionBackgroundOpaque=v.color.blend(b.background,b.selectionBackgroundTransparent),b.selectionInactiveBackgroundTransparent=S(w.selectionInactiveBackground,b.selectionBackgroundTransparent),b.selectionInactiveBackgroundOpaque=v.color.blend(b.background,b.selectionInactiveBackgroundTransparent),b.selectionForeground=w.selectionForeground?S(w.selectionForeground,v.NULL_COLOR):void 0,b.selectionForeground===v.NULL_COLOR&&(b.selectionForeground=void 0),v.color.isOpaque(b.selectionBackgroundTransparent)&&(b.selectionBackgroundTransparent=v.color.opacity(b.selectionBackgroundTransparent,.3)),v.color.isOpaque(b.selectionInactiveBackgroundTransparent)&&(b.selectionInactiveBackgroundTransparent=v.color.opacity(b.selectionInactiveBackgroundTransparent,.3)),b.ansi=i.DEFAULT_ANSI_COLORS.slice(),b.ansi[0]=S(w.black,i.DEFAULT_ANSI_COLORS[0]),b.ansi[1]=S(w.red,i.DEFAULT_ANSI_COLORS[1]),b.ansi[2]=S(w.green,i.DEFAULT_ANSI_COLORS[2]),b.ansi[3]=S(w.yellow,i.DEFAULT_ANSI_COLORS[3]),b.ansi[4]=S(w.blue,i.DEFAULT_ANSI_COLORS[4]),b.ansi[5]=S(w.magenta,i.DEFAULT_ANSI_COLORS[5]),b.ansi[6]=S(w.cyan,i.DEFAULT_ANSI_COLORS[6]),b.ansi[7]=S(w.white,i.DEFAULT_ANSI_COLORS[7]),b.ansi[8]=S(w.brightBlack,i.DEFAULT_ANSI_COLORS[8]),b.ansi[9]=S(w.brightRed,i.DEFAULT_ANSI_COLORS[9]),b.ansi[10]=S(w.brightGreen,i.DEFAULT_ANSI_COLORS[10]),b.ansi[11]=S(w.brightYellow,i.DEFAULT_ANSI_COLORS[11]),b.ansi[12]=S(w.brightBlue,i.DEFAULT_ANSI_COLORS[12]),b.ansi[13]=S(w.brightMagenta,i.DEFAULT_ANSI_COLORS[13]),b.ansi[14]=S(w.brightCyan,i.DEFAULT_ANSI_COLORS[14]),b.ansi[15]=S(w.brightWhite,i.DEFAULT_ANSI_COLORS[15]),w.extendedAnsi){const k=Math.min(b.ansi.length-16,w.extendedAnsi.length);for(let A=0;A<k;A++)b.ansi[A+16]=S(w.extendedAnsi[A],i.DEFAULT_ANSI_COLORS[A+16])}this._contrastCache.clear(),this._halfContrastCache.clear(),this._updateRestoreColors(),this._onChangeColors.fire(this.colors)}restoreColor(w){this._restoreColor(w),this._onChangeColors.fire(this.colors)}_restoreColor(w){if(w!==void 0)switch(w){case 256:this._colors.foreground=this._restoreColors.foreground;break;case 257:this._colors.background=this._restoreColors.background;break;case 258:this._colors.cursor=this._restoreColors.cursor;break;default:this._colors.ansi[w]=this._restoreColors.ansi[w]}else for(let b=0;b<this._restoreColors.ansi.length;++b)this._colors.ansi[b]=this._restoreColors.ansi[b]}modifyColors(w){w(this._colors),this._onChangeColors.fire(this.colors)}_updateRestoreColors(){this._restoreColors={foreground:this._colors.foreground,background:this._colors.background,cursor:this._colors.cursor,ansi:this._colors.ansi.slice()}}};function S(w,b){if(w!==void 0)try{return v.css.toColor(w)}catch{}return b}i.ThemeService=C=h([f(0,p.IOptionsService)],C)},160:(m,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.contrastRatio=i.toPaddedHex=i.rgba=i.rgb=i.css=i.color=i.channels=i.NULL_COLOR=void 0;let a=0,h=0,f=0,u=0;var v,y,E,p,o;function c(d){const g=d.toString(16);return g.length<2?"0"+g:g}function n(d,g){return d<g?(g+.05)/(d+.05):(d+.05)/(g+.05)}i.NULL_COLOR={css:"#00000000",rgba:0},(function(d){d.toCss=function(g,C,S,w){return w!==void 0?`#${c(g)}${c(C)}${c(S)}${c(w)}`:`#${c(g)}${c(C)}${c(S)}`},d.toRgba=function(g,C,S,w=255){return(g<<24|C<<16|S<<8|w)>>>0},d.toColor=function(g,C,S,w){return{css:d.toCss(g,C,S,w),rgba:d.toRgba(g,C,S,w)}}})(v||(i.channels=v={})),(function(d){function g(C,S){return u=Math.round(255*S),[a,h,f]=o.toChannels(C.rgba),{css:v.toCss(a,h,f,u),rgba:v.toRgba(a,h,f,u)}}d.blend=function(C,S){if(u=(255&S.rgba)/255,u===1)return{css:S.css,rgba:S.rgba};const w=S.rgba>>24&255,b=S.rgba>>16&255,k=S.rgba>>8&255,A=C.rgba>>24&255,T=C.rgba>>16&255,L=C.rgba>>8&255;return a=A+Math.round((w-A)*u),h=T+Math.round((b-T)*u),f=L+Math.round((k-L)*u),{css:v.toCss(a,h,f),rgba:v.toRgba(a,h,f)}},d.isOpaque=function(C){return(255&C.rgba)==255},d.ensureContrastRatio=function(C,S,w){const b=o.ensureContrastRatio(C.rgba,S.rgba,w);if(b)return v.toColor(b>>24&255,b>>16&255,b>>8&255)},d.opaque=function(C){const S=(255|C.rgba)>>>0;return[a,h,f]=o.toChannels(S),{css:v.toCss(a,h,f),rgba:S}},d.opacity=g,d.multiplyOpacity=function(C,S){return u=255&C.rgba,g(C,u*S/255)},d.toColorRGB=function(C){return[C.rgba>>24&255,C.rgba>>16&255,C.rgba>>8&255]}})(y||(i.color=y={})),(function(d){let g,C;try{const S=document.createElement("canvas");S.width=1,S.height=1;const w=S.getContext("2d",{willReadFrequently:!0});w&&(g=w,g.globalCompositeOperation="copy",C=g.createLinearGradient(0,0,1,1))}catch{}d.toColor=function(S){if(S.match(/#[\da-f]{3,8}/i))switch(S.length){case 4:return a=parseInt(S.slice(1,2).repeat(2),16),h=parseInt(S.slice(2,3).repeat(2),16),f=parseInt(S.slice(3,4).repeat(2),16),v.toColor(a,h,f);case 5:return a=parseInt(S.slice(1,2).repeat(2),16),h=parseInt(S.slice(2,3).repeat(2),16),f=parseInt(S.slice(3,4).repeat(2),16),u=parseInt(S.slice(4,5).repeat(2),16),v.toColor(a,h,f,u);case 7:return{css:S,rgba:(parseInt(S.slice(1),16)<<8|255)>>>0};case 9:return{css:S,rgba:parseInt(S.slice(1),16)>>>0}}const w=S.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(w)return a=parseInt(w[1]),h=parseInt(w[2]),f=parseInt(w[3]),u=Math.round(255*(w[5]===void 0?1:parseFloat(w[5]))),v.toColor(a,h,f,u);if(!g||!C)throw new Error("css.toColor: Unsupported css format");if(g.fillStyle=C,g.fillStyle=S,typeof g.fillStyle!="string")throw new Error("css.toColor: Unsupported css format");if(g.fillRect(0,0,1,1),[a,h,f,u]=g.getImageData(0,0,1,1).data,u!==255)throw new Error("css.toColor: Unsupported css format");return{rgba:v.toRgba(a,h,f,u),css:S}}})(E||(i.css=E={})),(function(d){function g(C,S,w){const b=C/255,k=S/255,A=w/255;return .2126*(b<=.03928?b/12.92:Math.pow((b+.055)/1.055,2.4))+.7152*(k<=.03928?k/12.92:Math.pow((k+.055)/1.055,2.4))+.0722*(A<=.03928?A/12.92:Math.pow((A+.055)/1.055,2.4))}d.relativeLuminance=function(C){return g(C>>16&255,C>>8&255,255&C)},d.relativeLuminance2=g})(p||(i.rgb=p={})),(function(d){function g(S,w,b){const k=S>>24&255,A=S>>16&255,T=S>>8&255;let L=w>>24&255,R=w>>16&255,M=w>>8&255,U=n(p.relativeLuminance2(L,R,M),p.relativeLuminance2(k,A,T));for(;U<b&&(L>0||R>0||M>0);)L-=Math.max(0,Math.ceil(.1*L)),R-=Math.max(0,Math.ceil(.1*R)),M-=Math.max(0,Math.ceil(.1*M)),U=n(p.relativeLuminance2(L,R,M),p.relativeLuminance2(k,A,T));return(L<<24|R<<16|M<<8|255)>>>0}function C(S,w,b){const k=S>>24&255,A=S>>16&255,T=S>>8&255;let L=w>>24&255,R=w>>16&255,M=w>>8&255,U=n(p.relativeLuminance2(L,R,M),p.relativeLuminance2(k,A,T));for(;U<b&&(L<255||R<255||M<255);)L=Math.min(255,L+Math.ceil(.1*(255-L))),R=Math.min(255,R+Math.ceil(.1*(255-R))),M=Math.min(255,M+Math.ceil(.1*(255-M))),U=n(p.relativeLuminance2(L,R,M),p.relativeLuminance2(k,A,T));return(L<<24|R<<16|M<<8|255)>>>0}d.blend=function(S,w){if(u=(255&w)/255,u===1)return w;const b=w>>24&255,k=w>>16&255,A=w>>8&255,T=S>>24&255,L=S>>16&255,R=S>>8&255;return a=T+Math.round((b-T)*u),h=L+Math.round((k-L)*u),f=R+Math.round((A-R)*u),v.toRgba(a,h,f)},d.ensureContrastRatio=function(S,w,b){const k=p.relativeLuminance(S>>8),A=p.relativeLuminance(w>>8);if(n(k,A)<b){if(A<k){const R=g(S,w,b),M=n(k,p.relativeLuminance(R>>8));if(M<b){const U=C(S,w,b);return M>n(k,p.relativeLuminance(U>>8))?R:U}return R}const T=C(S,w,b),L=n(k,p.relativeLuminance(T>>8));if(L<b){const R=g(S,w,b);return L>n(k,p.relativeLuminance(R>>8))?T:R}return T}},d.reduceLuminance=g,d.increaseLuminance=C,d.toChannels=function(S){return[S>>24&255,S>>16&255,S>>8&255,255&S]}})(o||(i.rgba=o={})),i.toPaddedHex=c,i.contrastRatio=n},345:(m,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.runAndSubscribe=i.forwardEvent=i.EventEmitter=void 0,i.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=a=>(this._listeners.push(a),{dispose:()=>{if(!this._disposed){for(let h=0;h<this._listeners.length;h++)if(this._listeners[h]===a)return void this._listeners.splice(h,1)}}})),this._event}fire(a,h){const f=[];for(let u=0;u<this._listeners.length;u++)f.push(this._listeners[u]);for(let u=0;u<f.length;u++)f[u].call(void 0,a,h)}dispose(){this.clearListeners(),this._disposed=!0}clearListeners(){this._listeners&&(this._listeners.length=0)}},i.forwardEvent=function(a,h){return a((f=>h.fire(f)))},i.runAndSubscribe=function(a,h){return h(void 0),a((f=>h(f)))}},859:(m,i)=>{function a(h){for(const f of h)f.dispose();h.length=0}Object.defineProperty(i,"__esModule",{value:!0}),i.getDisposeArrayDisposable=i.disposeArray=i.toDisposable=i.MutableDisposable=i.Disposable=void 0,i.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const h of this._disposables)h.dispose();this._disposables.length=0}register(h){return this._disposables.push(h),h}unregister(h){const f=this._disposables.indexOf(h);f!==-1&&this._disposables.splice(f,1)}},i.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(h){var f;this._isDisposed||h===this._value||((f=this._value)==null||f.dispose(),this._value=h)}clear(){this.value=void 0}dispose(){var h;this._isDisposed=!0,(h=this._value)==null||h.dispose(),this._value=void 0}},i.toDisposable=function(h){return{dispose:h}},i.disposeArray=a,i.getDisposeArrayDisposable=function(h){return{dispose:()=>a(h)}}},485:(m,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.FourKeyMap=i.TwoKeyMap=void 0;class a{constructor(){this._data={}}set(f,u,v){this._data[f]||(this._data[f]={}),this._data[f][u]=v}get(f,u){return this._data[f]?this._data[f][u]:void 0}clear(){this._data={}}}i.TwoKeyMap=a,i.FourKeyMap=class{constructor(){this._data=new a}set(h,f,u,v,y){this._data.get(h,f)||this._data.set(h,f,new a),this._data.get(h,f).set(u,v,y)}get(h,f,u,v){var y;return(y=this._data.get(h,f))==null?void 0:y.get(u,v)}clear(){this._data.clear()}}},726:(m,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.createDecorator=i.getServiceDependencies=i.serviceRegistry=void 0;const a="di$target",h="di$dependencies";i.serviceRegistry=new Map,i.getServiceDependencies=function(f){return f[h]||[]},i.createDecorator=function(f){if(i.serviceRegistry.has(f))return i.serviceRegistry.get(f);const u=function(v,y,E){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");(function(p,o,c){o[a]===o?o[h].push({id:p,index:c}):(o[h]=[{id:p,index:c}],o[a]=o)})(u,v,E)};return u.toString=()=>f,i.serviceRegistry.set(f,u),u}},97:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.IDecorationService=i.IUnicodeService=i.IOscLinkService=i.IOptionsService=i.ILogService=i.LogLevelEnum=i.IInstantiationService=i.ICharsetService=i.ICoreService=i.ICoreMouseService=i.IBufferService=void 0;const h=a(726);var f;i.IBufferService=(0,h.createDecorator)("BufferService"),i.ICoreMouseService=(0,h.createDecorator)("CoreMouseService"),i.ICoreService=(0,h.createDecorator)("CoreService"),i.ICharsetService=(0,h.createDecorator)("CharsetService"),i.IInstantiationService=(0,h.createDecorator)("InstantiationService"),(function(u){u[u.TRACE=0]="TRACE",u[u.DEBUG=1]="DEBUG",u[u.INFO=2]="INFO",u[u.WARN=3]="WARN",u[u.ERROR=4]="ERROR",u[u.OFF=5]="OFF"})(f||(i.LogLevelEnum=f={})),i.ILogService=(0,h.createDecorator)("LogService"),i.IOptionsService=(0,h.createDecorator)("OptionsService"),i.IOscLinkService=(0,h.createDecorator)("OscLinkService"),i.IUnicodeService=(0,h.createDecorator)("UnicodeService"),i.IDecorationService=(0,h.createDecorator)("DecorationService")}},s={};function l(m){var i=s[m];if(i!==void 0)return i.exports;var a=s[m]={exports:{}};return r[m].call(a.exports,a,a.exports,l),a.exports}var _={};return(()=>{var m=_;Object.defineProperty(m,"__esModule",{value:!0}),m.HTMLSerializeHandler=m.SerializeAddon=void 0;const i=l(997);function a(p,o,c){return Math.max(o,Math.min(p,c))}class h{constructor(o){this._buffer=o}serialize(o,c){const n=this._buffer.getNullCell(),d=this._buffer.getNullCell();let g=n;const C=o.start.y,S=o.end.y,w=o.start.x,b=o.end.x;this._beforeSerialize(S-C,C,S);for(let k=C;k<=S;k++){const A=this._buffer.getLine(k);if(A){const T=k===o.start.y?w:0,L=k===o.end.y?b:A.length;for(let R=T;R<L;R++){const M=A.getCell(R,g===n?d:n);M?(this._nextCell(M,g,k,R),g=M):console.warn(`Can't get cell at row=${k}, col=${R}`)}}this._rowEnd(k,k===S)}return this._afterSerialize(),this._serializeString(c)}_nextCell(o,c,n,d){}_rowEnd(o,c){}_beforeSerialize(o,c,n){}_afterSerialize(){}_serializeString(o){return""}}function f(p,o){return p.getFgColorMode()===o.getFgColorMode()&&p.getFgColor()===o.getFgColor()}function u(p,o){return p.getBgColorMode()===o.getBgColorMode()&&p.getBgColor()===o.getBgColor()}function v(p,o){return p.isInverse()===o.isInverse()&&p.isBold()===o.isBold()&&p.isUnderline()===o.isUnderline()&&p.isOverline()===o.isOverline()&&p.isBlink()===o.isBlink()&&p.isInvisible()===o.isInvisible()&&p.isItalic()===o.isItalic()&&p.isDim()===o.isDim()&&p.isStrikethrough()===o.isStrikethrough()}class y extends h{constructor(o,c){super(o),this._terminal=c,this._rowIndex=0,this._allRows=new Array,this._allRowSeparators=new Array,this._currentRow="",this._nullCellCount=0,this._cursorStyle=this._buffer.getNullCell(),this._cursorStyleRow=0,this._cursorStyleCol=0,this._backgroundCell=this._buffer.getNullCell(),this._firstRow=0,this._lastCursorRow=0,this._lastCursorCol=0,this._lastContentCursorRow=0,this._lastContentCursorCol=0,this._thisRowLastChar=this._buffer.getNullCell(),this._thisRowLastSecondChar=this._buffer.getNullCell(),this._nextRowFirstChar=this._buffer.getNullCell()}_beforeSerialize(o,c,n){this._allRows=new Array(o),this._lastContentCursorRow=c,this._lastCursorRow=c,this._firstRow=c}_rowEnd(o,c){var n;this._nullCellCount>0&&!u(this._cursorStyle,this._backgroundCell)&&(this._currentRow+=`\x1B[${this._nullCellCount}X`);let d="";if(!c){o-this._firstRow>=this._terminal.rows&&((n=this._buffer.getLine(this._cursorStyleRow))==null||n.getCell(this._cursorStyleCol,this._backgroundCell));const g=this._buffer.getLine(o),C=this._buffer.getLine(o+1);if(C.isWrapped){d="";const S=g.getCell(g.length-1,this._thisRowLastChar),w=g.getCell(g.length-2,this._thisRowLastSecondChar),b=C.getCell(0,this._nextRowFirstChar),k=b.getWidth()>1;let A=!1;(b.getChars()&&k?this._nullCellCount<=1:this._nullCellCount<=0)&&((S.getChars()||S.getWidth()===0)&&u(S,b)&&(A=!0),k&&(w.getChars()||w.getWidth()===0)&&u(S,b)&&u(w,b)&&(A=!0)),A||(d="-".repeat(this._nullCellCount+1),d+="\x1B[1D\x1B[1X",this._nullCellCount>0&&(d+="\x1B[A",d+=`\x1B[${g.length-this._nullCellCount}C`,d+=`\x1B[${this._nullCellCount}X`,d+=`\x1B[${g.length-this._nullCellCount}D`,d+="\x1B[B"),this._lastContentCursorRow=o+1,this._lastContentCursorCol=0,this._lastCursorRow=o+1,this._lastCursorCol=0)}else d=`\r
|
|
158
|
-
`,this._lastCursorRow=o+1,this._lastCursorCol=0}this._allRows[this._rowIndex]=this._currentRow,this._allRowSeparators[this._rowIndex++]=d,this._currentRow="",this._nullCellCount=0}_diffStyle(o,c){const n=[],d=!f(o,c),g=!u(o,c),C=!v(o,c);if(d||g||C)if(o.isAttributeDefault())c.isAttributeDefault()||n.push(0);else{if(d){const S=o.getFgColor();o.isFgRGB()?n.push(38,2,S>>>16&255,S>>>8&255,255&S):o.isFgPalette()?S>=16?n.push(38,5,S):n.push(8&S?90+(7&S):30+(7&S)):n.push(39)}if(g){const S=o.getBgColor();o.isBgRGB()?n.push(48,2,S>>>16&255,S>>>8&255,255&S):o.isBgPalette()?S>=16?n.push(48,5,S):n.push(8&S?100+(7&S):40+(7&S)):n.push(49)}C&&(o.isInverse()!==c.isInverse()&&n.push(o.isInverse()?7:27),o.isBold()!==c.isBold()&&n.push(o.isBold()?1:22),o.isUnderline()!==c.isUnderline()&&n.push(o.isUnderline()?4:24),o.isOverline()!==c.isOverline()&&n.push(o.isOverline()?53:55),o.isBlink()!==c.isBlink()&&n.push(o.isBlink()?5:25),o.isInvisible()!==c.isInvisible()&&n.push(o.isInvisible()?8:28),o.isItalic()!==c.isItalic()&&n.push(o.isItalic()?3:23),o.isDim()!==c.isDim()&&n.push(o.isDim()?2:22),o.isStrikethrough()!==c.isStrikethrough()&&n.push(o.isStrikethrough()?9:29))}return n}_nextCell(o,c,n,d){if(o.getWidth()===0)return;const g=o.getChars()==="",C=this._diffStyle(o,this._cursorStyle);if(g?!u(this._cursorStyle,o):C.length>0){this._nullCellCount>0&&(u(this._cursorStyle,this._backgroundCell)||(this._currentRow+=`\x1B[${this._nullCellCount}X`),this._currentRow+=`\x1B[${this._nullCellCount}C`,this._nullCellCount=0),this._lastContentCursorRow=this._lastCursorRow=n,this._lastContentCursorCol=this._lastCursorCol=d,this._currentRow+=`\x1B[${C.join(";")}m`;const S=this._buffer.getLine(n);S!==void 0&&(S.getCell(d,this._cursorStyle),this._cursorStyleRow=n,this._cursorStyleCol=d)}g?this._nullCellCount+=o.getWidth():(this._nullCellCount>0&&(u(this._cursorStyle,this._backgroundCell)||(this._currentRow+=`\x1B[${this._nullCellCount}X`),this._currentRow+=`\x1B[${this._nullCellCount}C`,this._nullCellCount=0),this._currentRow+=o.getChars(),this._lastContentCursorRow=this._lastCursorRow=n,this._lastContentCursorCol=this._lastCursorCol=d+o.getWidth())}_serializeString(o){let c=this._allRows.length;this._buffer.length-this._firstRow<=this._terminal.rows&&(c=this._lastContentCursorRow+1-this._firstRow,this._lastCursorCol=this._lastContentCursorCol,this._lastCursorRow=this._lastContentCursorRow);let n="";for(let S=0;S<c;S++)n+=this._allRows[S],S+1<c&&(n+=this._allRowSeparators[S]);if(!o){const S=this._buffer.baseY+this._buffer.cursorY,w=this._buffer.cursorX,b=k=>{k>0?n+=`\x1B[${k}C`:k<0&&(n+=`\x1B[${-k}D`)};(S!==this._lastCursorRow||w!==this._lastCursorCol)&&((d=S-this._lastCursorRow)>0?n+=`\x1B[${d}B`:d<0&&(n+=`\x1B[${-d}A`),b(w-this._lastCursorCol))}var d;const g=this._terminal._core._inputHandler._curAttrData,C=this._diffStyle(g,this._cursorStyle);return C.length>0&&(n+=`\x1B[${C.join(";")}m`),n}}m.SerializeAddon=class{activate(p){this._terminal=p}_serializeBufferByScrollback(p,o,c){const n=o.length,d=c===void 0?n:a(c+p.rows,0,n);return this._serializeBufferByRange(p,o,{start:n-d,end:n-1},!1)}_serializeBufferByRange(p,o,c,n){return new y(o,p).serialize({start:{x:0,y:typeof c.start=="number"?c.start:c.start.line},end:{x:p.cols,y:typeof c.end=="number"?c.end:c.end.line}},n)}_serializeBufferAsHTML(p,o){var c;const n=p.buffer.active,d=new E(n,p,o);if(!o.onlySelection){const C=n.length,S=o.scrollback,w=S===void 0?C:a(S+p.rows,0,C);return d.serialize({start:{x:0,y:C-w},end:{x:p.cols,y:C-1}})}const g=(c=this._terminal)==null?void 0:c.getSelectionPosition();return g!==void 0?d.serialize({start:{x:g.start.x,y:g.start.y},end:{x:g.end.x,y:g.end.y}}):""}_serializeModes(p){let o="";const c=p.modes;if(c.applicationCursorKeysMode&&(o+="\x1B[?1h"),c.applicationKeypadMode&&(o+="\x1B[?66h"),c.bracketedPasteMode&&(o+="\x1B[?2004h"),c.insertMode&&(o+="\x1B[4h"),c.originMode&&(o+="\x1B[?6h"),c.reverseWraparoundMode&&(o+="\x1B[?45h"),c.sendFocusMode&&(o+="\x1B[?1004h"),c.wraparoundMode===!1&&(o+="\x1B[?7l"),c.mouseTrackingMode!=="none")switch(c.mouseTrackingMode){case"x10":o+="\x1B[?9h";break;case"vt200":o+="\x1B[?1000h";break;case"drag":o+="\x1B[?1002h";break;case"any":o+="\x1B[?1003h"}return o}serialize(p){if(!this._terminal)throw new Error("Cannot use addon until it has been loaded");let o=p!=null&&p.range?this._serializeBufferByRange(this._terminal,this._terminal.buffer.normal,p.range,!0):this._serializeBufferByScrollback(this._terminal,this._terminal.buffer.normal,p==null?void 0:p.scrollback);return p!=null&&p.excludeAltBuffer||this._terminal.buffer.active.type!=="alternate"||(o+=`\x1B[?1049h\x1B[H${this._serializeBufferByScrollback(this._terminal,this._terminal.buffer.alternate,void 0)}`),p!=null&&p.excludeModes||(o+=this._serializeModes(this._terminal)),o}serializeAsHTML(p){if(!this._terminal)throw new Error("Cannot use addon until it has been loaded");return this._serializeBufferAsHTML(this._terminal,p||{})}dispose(){}};class E extends h{constructor(o,c,n){super(o),this._terminal=c,this._options=n,this._currentRow="",this._htmlContent="",c._core._themeService?this._ansiColors=c._core._themeService.colors.ansi:this._ansiColors=i.DEFAULT_ANSI_COLORS}_padStart(o,c,n){return c>>=0,n=n??" ",o.length>c?o:((c-=o.length)>n.length&&(n+=n.repeat(c/n.length)),n.slice(0,c)+o)}_beforeSerialize(o,c,n){var d,g;this._htmlContent+="<html><body><!--StartFragment--><pre>";let C="#000000",S="#ffffff";this._options.includeGlobalBackground&&(C=((d=this._terminal.options.theme)==null?void 0:d.foreground)??"#ffffff",S=((g=this._terminal.options.theme)==null?void 0:g.background)??"#000000");const w=[];w.push("color: "+C+";"),w.push("background-color: "+S+";"),w.push("font-family: "+this._terminal.options.fontFamily+";"),w.push("font-size: "+this._terminal.options.fontSize+"px;"),this._htmlContent+="<div style='"+w.join(" ")+"'>"}_afterSerialize(){this._htmlContent+="</div>",this._htmlContent+="</pre><!--EndFragment--></body></html>"}_rowEnd(o,c){this._htmlContent+="<div><span>"+this._currentRow+"</span></div>",this._currentRow=""}_getHexColor(o,c){const n=c?o.getFgColor():o.getBgColor();return(c?o.isFgRGB():o.isBgRGB())?"#"+[n>>16&255,n>>8&255,255&n].map((d=>this._padStart(d.toString(16),2,"0"))).join(""):(c?o.isFgPalette():o.isBgPalette())?this._ansiColors[n].css:void 0}_diffStyle(o,c){const n=[],d=!f(o,c),g=!u(o,c),C=!v(o,c);if(d||g||C){const S=this._getHexColor(o,!0);S&&n.push("color: "+S+";");const w=this._getHexColor(o,!1);return w&&n.push("background-color: "+w+";"),o.isInverse()&&n.push("color: #000000; background-color: #BFBFBF;"),o.isBold()&&n.push("font-weight: bold;"),o.isUnderline()&&o.isOverline()?n.push("text-decoration: overline underline;"):o.isUnderline()?n.push("text-decoration: underline;"):o.isOverline()&&n.push("text-decoration: overline;"),o.isBlink()&&n.push("text-decoration: blink;"),o.isInvisible()&&n.push("visibility: hidden;"),o.isItalic()&&n.push("font-style: italic;"),o.isDim()&&n.push("opacity: 0.5;"),o.isStrikethrough()&&n.push("text-decoration: line-through;"),n}}_nextCell(o,c,n,d){if(o.getWidth()===0)return;const g=o.getChars()==="",C=this._diffStyle(o,c);C&&(this._currentRow+=C.length===0?"</span><span>":"</span><span style='"+C.join(" ")+"'>"),this._currentRow+=g?" ":o.getChars()}_serializeString(){return this._htmlContent}}m.HTMLSerializeHandler=E})(),_})()))})(ci)),ci.exports}var Cc=yc(),li={exports:{}},wc=li.exports,Is;function Ec(){return Is||(Is=1,(function(e,t){(function(r,s){e.exports=s()})(wc,(()=>(()=>{var r={433:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.UnicodeV11=void 0;const h=a(938),f=[[768,879],[1155,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1541],[1552,1562],[1564,1564],[1611,1631],[1648,1648],[1750,1757],[1759,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2045,2045],[2070,2073],[2075,2083],[2085,2087],[2089,2093],[2137,2139],[2259,2306],[2362,2362],[2364,2364],[2369,2376],[2381,2381],[2385,2391],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2558,2558],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2641,2641],[2672,2673],[2677,2677],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2810,2815],[2817,2817],[2876,2876],[2879,2879],[2881,2884],[2893,2893],[2902,2902],[2914,2915],[2946,2946],[3008,3008],[3021,3021],[3072,3072],[3076,3076],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3170,3171],[3201,3201],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3328,3329],[3387,3388],[3393,3396],[3405,3405],[3426,3427],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3981,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4151],[4153,4154],[4157,4158],[4184,4185],[4190,4192],[4209,4212],[4226,4226],[4229,4230],[4237,4237],[4253,4253],[4448,4607],[4957,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6158],[6277,6278],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6683,6683],[6742,6742],[6744,6750],[6752,6752],[6754,6754],[6757,6764],[6771,6780],[6783,6783],[6832,6846],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7040,7041],[7074,7077],[7080,7081],[7083,7085],[7142,7142],[7144,7145],[7149,7149],[7151,7153],[7212,7219],[7222,7223],[7376,7378],[7380,7392],[7394,7400],[7405,7405],[7412,7412],[7416,7417],[7616,7673],[7675,7679],[8203,8207],[8234,8238],[8288,8292],[8294,8303],[8400,8432],[11503,11505],[11647,11647],[11744,11775],[12330,12333],[12441,12442],[42607,42610],[42612,42621],[42654,42655],[42736,42737],[43010,43010],[43014,43014],[43019,43019],[43045,43046],[43204,43205],[43232,43249],[43263,43263],[43302,43309],[43335,43345],[43392,43394],[43443,43443],[43446,43449],[43452,43453],[43493,43493],[43561,43566],[43569,43570],[43573,43574],[43587,43587],[43596,43596],[43644,43644],[43696,43696],[43698,43700],[43703,43704],[43710,43711],[43713,43713],[43756,43757],[43766,43766],[44005,44005],[44008,44008],[44013,44013],[64286,64286],[65024,65039],[65056,65071],[65279,65279],[65529,65531]],u=[[66045,66045],[66272,66272],[66422,66426],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[68325,68326],[68900,68903],[69446,69456],[69633,69633],[69688,69702],[69759,69761],[69811,69814],[69817,69818],[69821,69821],[69837,69837],[69888,69890],[69927,69931],[69933,69940],[70003,70003],[70016,70017],[70070,70078],[70089,70092],[70191,70193],[70196,70196],[70198,70199],[70206,70206],[70367,70367],[70371,70378],[70400,70401],[70459,70460],[70464,70464],[70502,70508],[70512,70516],[70712,70719],[70722,70724],[70726,70726],[70750,70750],[70835,70840],[70842,70842],[70847,70848],[70850,70851],[71090,71093],[71100,71101],[71103,71104],[71132,71133],[71219,71226],[71229,71229],[71231,71232],[71339,71339],[71341,71341],[71344,71349],[71351,71351],[71453,71455],[71458,71461],[71463,71467],[71727,71735],[71737,71738],[72148,72151],[72154,72155],[72160,72160],[72193,72202],[72243,72248],[72251,72254],[72263,72263],[72273,72278],[72281,72283],[72330,72342],[72344,72345],[72752,72758],[72760,72765],[72767,72767],[72850,72871],[72874,72880],[72882,72883],[72885,72886],[73009,73014],[73018,73018],[73020,73021],[73023,73029],[73031,73031],[73104,73105],[73109,73109],[73111,73111],[73459,73460],[78896,78904],[92912,92916],[92976,92982],[94031,94031],[94095,94098],[113821,113822],[113824,113827],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[121344,121398],[121403,121452],[121461,121461],[121476,121476],[121499,121503],[121505,121519],[122880,122886],[122888,122904],[122907,122913],[122915,122916],[122918,122922],[123184,123190],[123628,123631],[125136,125142],[125252,125258],[917505,917505],[917536,917631],[917760,917999]],v=[[4352,4447],[8986,8987],[9001,9002],[9193,9196],[9200,9200],[9203,9203],[9725,9726],[9748,9749],[9800,9811],[9855,9855],[9875,9875],[9889,9889],[9898,9899],[9917,9918],[9924,9925],[9934,9934],[9940,9940],[9962,9962],[9970,9971],[9973,9973],[9978,9978],[9981,9981],[9989,9989],[9994,9995],[10024,10024],[10060,10060],[10062,10062],[10067,10069],[10071,10071],[10133,10135],[10160,10160],[10175,10175],[11035,11036],[11088,11088],[11093,11093],[11904,11929],[11931,12019],[12032,12245],[12272,12283],[12288,12329],[12334,12350],[12353,12438],[12443,12543],[12549,12591],[12593,12686],[12688,12730],[12736,12771],[12784,12830],[12832,12871],[12880,19903],[19968,42124],[42128,42182],[43360,43388],[44032,55203],[63744,64255],[65040,65049],[65072,65106],[65108,65126],[65128,65131],[65281,65376],[65504,65510]],y=[[94176,94179],[94208,100343],[100352,101106],[110592,110878],[110928,110930],[110948,110951],[110960,111355],[126980,126980],[127183,127183],[127374,127374],[127377,127386],[127488,127490],[127504,127547],[127552,127560],[127568,127569],[127584,127589],[127744,127776],[127789,127797],[127799,127868],[127870,127891],[127904,127946],[127951,127955],[127968,127984],[127988,127988],[127992,128062],[128064,128064],[128066,128252],[128255,128317],[128331,128334],[128336,128359],[128378,128378],[128405,128406],[128420,128420],[128507,128591],[128640,128709],[128716,128716],[128720,128722],[128725,128725],[128747,128748],[128756,128762],[128992,129003],[129293,129393],[129395,129398],[129402,129442],[129445,129450],[129454,129482],[129485,129535],[129648,129651],[129656,129658],[129664,129666],[129680,129685],[131072,196605],[196608,262141]];let E;function p(o,c){let n,d=0,g=c.length-1;if(o<c[0][0]||o>c[g][1])return!1;for(;g>=d;)if(n=d+g>>1,o>c[n][1])d=n+1;else{if(!(o<c[n][0]))return!0;g=n-1}return!1}i.UnicodeV11=class{constructor(){if(this.version="11",!E){E=new Uint8Array(65536),E.fill(1),E[0]=0,E.fill(0,1,32),E.fill(0,127,160);for(let o=0;o<f.length;++o)E.fill(0,f[o][0],f[o][1]+1);for(let o=0;o<v.length;++o)E.fill(2,v[o][0],v[o][1]+1)}}wcwidth(o){return o<32?0:o<127?1:o<65536?E[o]:p(o,u)?0:p(o,y)?2:1}charProperties(o,c){let n=this.wcwidth(o),d=n===0&&c!==0;if(d){const g=h.UnicodeService.extractWidth(c);g===0?d=!1:g>n&&(n=g)}return h.UnicodeService.createPropertyValue(0,n,d)}}},345:(m,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.runAndSubscribe=i.forwardEvent=i.EventEmitter=void 0,i.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=a=>(this._listeners.push(a),{dispose:()=>{if(!this._disposed){for(let h=0;h<this._listeners.length;h++)if(this._listeners[h]===a)return void this._listeners.splice(h,1)}}})),this._event}fire(a,h){const f=[];for(let u=0;u<this._listeners.length;u++)f.push(this._listeners[u]);for(let u=0;u<f.length;u++)f[u].call(void 0,a,h)}dispose(){this.clearListeners(),this._disposed=!0}clearListeners(){this._listeners&&(this._listeners.length=0)}},i.forwardEvent=function(a,h){return a((f=>h.fire(f)))},i.runAndSubscribe=function(a,h){return h(void 0),a((f=>h(f)))}},490:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.UnicodeV6=void 0;const h=a(938),f=[[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]],u=[[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]];let v;i.UnicodeV6=class{constructor(){if(this.version="6",!v){v=new Uint8Array(65536),v.fill(1),v[0]=0,v.fill(0,1,32),v.fill(0,127,160),v.fill(2,4352,4448),v[9001]=2,v[9002]=2,v.fill(2,11904,42192),v[12351]=1,v.fill(2,44032,55204),v.fill(2,63744,64256),v.fill(2,65040,65050),v.fill(2,65072,65136),v.fill(2,65280,65377),v.fill(2,65504,65511);for(let y=0;y<f.length;++y)v.fill(0,f[y][0],f[y][1]+1)}}wcwidth(y){return y<32?0:y<127?1:y<65536?v[y]:(function(E,p){let o,c=0,n=p.length-1;if(E<p[0][0]||E>p[n][1])return!1;for(;n>=c;)if(o=c+n>>1,E>p[o][1])c=o+1;else{if(!(E<p[o][0]))return!0;n=o-1}return!1})(y,u)?0:y>=131072&&y<=196605||y>=196608&&y<=262141?2:1}charProperties(y,E){let p=this.wcwidth(y),o=p===0&&E!==0;if(o){const c=h.UnicodeService.extractWidth(E);c===0?o=!1:c>p&&(p=c)}return h.UnicodeService.createPropertyValue(0,p,o)}}},938:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.UnicodeService=void 0;const h=a(345),f=a(490);class u{static extractShouldJoin(y){return(1&y)!=0}static extractWidth(y){return y>>1&3}static extractCharKind(y){return y>>3}static createPropertyValue(y,E,p=!1){return(16777215&y)<<3|(3&E)<<1|(p?1:0)}constructor(){this._providers=Object.create(null),this._active="",this._onChange=new h.EventEmitter,this.onChange=this._onChange.event;const y=new f.UnicodeV6;this.register(y),this._active=y.version,this._activeProvider=y}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(y){if(!this._providers[y])throw new Error(`unknown Unicode version "${y}"`);this._active=y,this._activeProvider=this._providers[y],this._onChange.fire(y)}register(y){this._providers[y.version]=y}wcwidth(y){return this._activeProvider.wcwidth(y)}getStringCellWidth(y){let E=0,p=0;const o=y.length;for(let c=0;c<o;++c){let n=y.charCodeAt(c);if(55296<=n&&n<=56319){if(++c>=o)return E+this.wcwidth(n);const C=y.charCodeAt(c);56320<=C&&C<=57343?n=1024*(n-55296)+C-56320+65536:E+=this.wcwidth(C)}const d=this.charProperties(n,p);let g=u.extractWidth(d);u.extractShouldJoin(d)&&(g-=u.extractWidth(p)),E+=g,p=d}return E}charProperties(y,E){return this._activeProvider.charProperties(y,E)}}i.UnicodeService=u}},s={};function l(m){var i=s[m];if(i!==void 0)return i.exports;var a=s[m]={exports:{}};return r[m](a,a.exports,l),a.exports}var _={};return(()=>{var m=_;Object.defineProperty(m,"__esModule",{value:!0}),m.Unicode11Addon=void 0;const i=l(433);m.Unicode11Addon=class{activate(a){a.unicode.register(new i.UnicodeV11)}dispose(){}}})(),_})()))})(li)),li.exports}var kc=Ec(),Rs={exports:{}},As;function Bc(){return As||(As=1,(function(e,t){(function(r,s){e.exports=s()})(self,(()=>(()=>{var r={6:(m,i)=>{function a(f){try{const u=new URL(f),v=u.password&&u.username?`${u.protocol}//${u.username}:${u.password}@${u.host}`:u.username?`${u.protocol}//${u.username}@${u.host}`:`${u.protocol}//${u.host}`;return f.toLocaleLowerCase().startsWith(v.toLocaleLowerCase())}catch{return!1}}Object.defineProperty(i,"__esModule",{value:!0}),i.LinkComputer=i.WebLinkProvider=void 0,i.WebLinkProvider=class{constructor(f,u,v,y={}){this._terminal=f,this._regex=u,this._handler=v,this._options=y}provideLinks(f,u){const v=h.computeLink(f,this._regex,this._terminal,this._handler);u(this._addCallbacks(v))}_addCallbacks(f){return f.map((u=>(u.leave=this._options.leave,u.hover=(v,y)=>{if(this._options.hover){const{range:E}=u;this._options.hover(v,y,E)}},u)))}};class h{static computeLink(u,v,y,E){const p=new RegExp(v.source,(v.flags||"")+"g"),[o,c]=h._getWindowedLineStrings(u-1,y),n=o.join("");let d;const g=[];for(;d=p.exec(n);){const C=d[0];if(!a(C))continue;const[S,w]=h._mapStrIdx(y,c,0,d.index),[b,k]=h._mapStrIdx(y,S,w,C.length);if(S===-1||w===-1||b===-1||k===-1)continue;const A={start:{x:w+1,y:S+1},end:{x:k,y:b+1}};g.push({range:A,text:C,activate:E})}return g}static _getWindowedLineStrings(u,v){let y,E=u,p=u,o=0,c="";const n=[];if(y=v.buffer.active.getLine(u)){const d=y.translateToString(!0);if(y.isWrapped&&d[0]!==" "){for(o=0;(y=v.buffer.active.getLine(--E))&&o<2048&&(c=y.translateToString(!0),o+=c.length,n.push(c),y.isWrapped&&c.indexOf(" ")===-1););n.reverse()}for(n.push(d),o=0;(y=v.buffer.active.getLine(++p))&&y.isWrapped&&o<2048&&(c=y.translateToString(!0),o+=c.length,n.push(c),c.indexOf(" ")===-1););}return[n,E]}static _mapStrIdx(u,v,y,E){const p=u.buffer.active,o=p.getNullCell();let c=y;for(;E;){const n=p.getLine(v);if(!n)return[-1,-1];for(let d=c;d<n.length;++d){n.getCell(d,o);const g=o.getChars();if(o.getWidth()&&(E-=g.length||1,d===n.length-1&&g==="")){const C=p.getLine(v+1);C&&C.isWrapped&&(C.getCell(0,o),o.getWidth()===2&&(E+=1))}if(E<0)return[v,d]}v++,c=0}return[v,c]}}i.LinkComputer=h}},s={};function l(m){var i=s[m];if(i!==void 0)return i.exports;var a=s[m]={exports:{}};return r[m](a,a.exports,l),a.exports}var _={};return(()=>{var m=_;Object.defineProperty(m,"__esModule",{value:!0}),m.WebLinksAddon=void 0;const i=l(6),a=/(https?|HTTPS?):[/]{2}[^\s"'!*(){}|\\\^<>`]*[^\s"':,.!?{}|\\\^~\[\]`()<>]/;function h(f,u){const v=window.open();if(v){try{v.opener=null}catch{}v.location.href=u}else console.warn("Opening link blocked as opener could not be cleared")}m.WebLinksAddon=class{constructor(f=h,u={}){this._handler=f,this._options=u}activate(f){this._terminal=f;const u=this._options,v=u.urlRegex||a;this._linkProvider=this._terminal.registerLinkProvider(new i.WebLinkProvider(this._terminal,v,this._handler,u))}dispose(){var f;(f=this._linkProvider)==null||f.dispose()}}})(),_})()))})(Rs)),Rs.exports}var Ic=Bc(),xs={exports:{}},Ts;function Rc(){return Ts||(Ts=1,(function(e,t){(function(r,s){e.exports=s()})(globalThis,(()=>(()=>{var r={4567:function(m,i,a){var h=this&&this.__decorate||function(n,d,g,C){var S,w=arguments.length,b=w<3?d:C===null?C=Object.getOwnPropertyDescriptor(d,g):C;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(n,d,g,C);else for(var k=n.length-1;k>=0;k--)(S=n[k])&&(b=(w<3?S(b):w>3?S(d,g,b):S(d,g))||b);return w>3&&b&&Object.defineProperty(d,g,b),b},f=this&&this.__param||function(n,d){return function(g,C){d(g,C,n)}};Object.defineProperty(i,"__esModule",{value:!0}),i.AccessibilityManager=void 0;const u=a(9042),v=a(9924),y=a(844),E=a(4725),p=a(2585),o=a(3656);let c=i.AccessibilityManager=class extends y.Disposable{constructor(n,d,g,C){super(),this._terminal=n,this._coreBrowserService=g,this._renderService=C,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=this._coreBrowserService.mainDocument.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=this._coreBrowserService.mainDocument.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let S=0;S<this._terminal.rows;S++)this._rowElements[S]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[S]);if(this._topBoundaryFocusListener=S=>this._handleBoundaryFocus(S,0),this._bottomBoundaryFocusListener=S=>this._handleBoundaryFocus(S,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=this._coreBrowserService.mainDocument.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new v.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize((S=>this._handleResize(S.rows)))),this.register(this._terminal.onRender((S=>this._refreshRows(S.start,S.end)))),this.register(this._terminal.onScroll((()=>this._refreshRows()))),this.register(this._terminal.onA11yChar((S=>this._handleChar(S)))),this.register(this._terminal.onLineFeed((()=>this._handleChar(`
|
|
159
|
-
`)))),this.register(this._terminal.onA11yTab((S=>this._handleTab(S)))),this.register(this._terminal.onKey((S=>this._handleKey(S.key)))),this.register(this._terminal.onBlur((()=>this._clearLiveRegion()))),this.register(this._renderService.onDimensionsChange((()=>this._refreshRowsDimensions()))),this.register((0,o.addDisposableDomListener)(document,"selectionchange",(()=>this._handleSelectionChange()))),this.register(this._coreBrowserService.onDprChange((()=>this._refreshRowsDimensions()))),this._refreshRows(),this.register((0,y.toDisposable)((()=>{this._accessibilityContainer.remove(),this._rowElements.length=0})))}_handleTab(n){for(let d=0;d<n;d++)this._handleChar(" ")}_handleChar(n){this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==n&&(this._charsToAnnounce+=n):this._charsToAnnounce+=n,n===`
|
|
160
|
-
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=u.tooMuchOutput)))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0}_handleKey(n){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(n)||this._charsToConsume.push(n)}_refreshRows(n,d){this._liveRegionDebouncer.refresh(n,d,this._terminal.rows)}_renderRows(n,d){const g=this._terminal.buffer,C=g.lines.length.toString();for(let S=n;S<=d;S++){const w=g.lines.get(g.ydisp+S),b=[],k=(w==null?void 0:w.translateToString(!0,void 0,void 0,b))||"",A=(g.ydisp+S+1).toString(),T=this._rowElements[S];T&&(k.length===0?(T.innerText=" ",this._rowColumns.set(T,[0,1])):(T.textContent=k,this._rowColumns.set(T,b)),T.setAttribute("aria-posinset",A),T.setAttribute("aria-setsize",C))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(n,d){const g=n.target,C=this._rowElements[d===0?1:this._rowElements.length-2];if(g.getAttribute("aria-posinset")===(d===0?"1":`${this._terminal.buffer.lines.length}`)||n.relatedTarget!==C)return;let S,w;if(d===0?(S=g,w=this._rowElements.pop(),this._rowContainer.removeChild(w)):(S=this._rowElements.shift(),w=g,this._rowContainer.removeChild(S)),S.removeEventListener("focus",this._topBoundaryFocusListener),w.removeEventListener("focus",this._bottomBoundaryFocusListener),d===0){const b=this._createAccessibilityTreeNode();this._rowElements.unshift(b),this._rowContainer.insertAdjacentElement("afterbegin",b)}else{const b=this._createAccessibilityTreeNode();this._rowElements.push(b),this._rowContainer.appendChild(b)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(d===0?-1:1),this._rowElements[d===0?1:this._rowElements.length-2].focus(),n.preventDefault(),n.stopImmediatePropagation()}_handleSelectionChange(){var n;if(this._rowElements.length===0)return;const d=document.getSelection();if(!d)return;if(d.isCollapsed)return void(this._rowContainer.contains(d.anchorNode)&&this._terminal.clearSelection());if(!d.anchorNode||!d.focusNode)return void console.error("anchorNode and/or focusNode are null");let g={node:d.anchorNode,offset:d.anchorOffset},C={node:d.focusNode,offset:d.focusOffset};if((g.node.compareDocumentPosition(C.node)&Node.DOCUMENT_POSITION_PRECEDING||g.node===C.node&&g.offset>C.offset)&&([g,C]=[C,g]),g.node.compareDocumentPosition(this._rowElements[0])&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING)&&(g={node:this._rowElements[0].childNodes[0],offset:0}),!this._rowContainer.contains(g.node))return;const S=this._rowElements.slice(-1)[0];if(C.node.compareDocumentPosition(S)&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_PRECEDING)&&(C={node:S,offset:((n=S.textContent)==null?void 0:n.length)??0}),!this._rowContainer.contains(C.node))return;const w=({node:A,offset:T})=>{const L=A instanceof Text?A.parentNode:A;let R=parseInt(L==null?void 0:L.getAttribute("aria-posinset"),10)-1;if(isNaN(R))return console.warn("row is invalid. Race condition?"),null;const M=this._rowColumns.get(L);if(!M)return console.warn("columns is null. Race condition?"),null;let U=T<M.length?M[T]:M.slice(-1)[0]+1;return U>=this._terminal.cols&&(++R,U=0),{row:R,column:U}},b=w(g),k=w(C);if(b&&k){if(b.row>k.row||b.row===k.row&&b.column>=k.column)throw new Error("invalid range");this._terminal.select(b.column,b.row,(k.row-b.row)*this._terminal.cols-b.column+k.column)}}_handleResize(n){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let d=this._rowContainer.children.length;d<this._terminal.rows;d++)this._rowElements[d]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[d]);for(;this._rowElements.length>n;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const n=this._coreBrowserService.mainDocument.createElement("div");return n.setAttribute("role","listitem"),n.tabIndex=-1,this._refreshRowDimensions(n),n}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let n=0;n<this._terminal.rows;n++)this._refreshRowDimensions(this._rowElements[n])}}_refreshRowDimensions(n){n.style.height=`${this._renderService.dimensions.css.cell.height}px`}};i.AccessibilityManager=c=h([f(1,p.IInstantiationService),f(2,E.ICoreBrowserService),f(3,E.IRenderService)],c)},3614:(m,i)=>{function a(v){return v.replace(/\r?\n/g,"\r")}function h(v,y){return y?"\x1B[200~"+v+"\x1B[201~":v}function f(v,y,E,p){v=h(v=a(v),E.decPrivateModes.bracketedPasteMode&&p.rawOptions.ignoreBracketedPasteMode!==!0),E.triggerDataEvent(v,!0),y.value=""}function u(v,y,E){const p=E.getBoundingClientRect(),o=v.clientX-p.left-10,c=v.clientY-p.top-10;y.style.width="20px",y.style.height="20px",y.style.left=`${o}px`,y.style.top=`${c}px`,y.style.zIndex="1000",y.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=a,i.bracketTextForPaste=h,i.copyHandler=function(v,y){v.clipboardData&&v.clipboardData.setData("text/plain",y.selectionText),v.preventDefault()},i.handlePasteEvent=function(v,y,E,p){v.stopPropagation(),v.clipboardData&&f(v.clipboardData.getData("text/plain"),y,E,p)},i.paste=f,i.moveTextAreaUnderMouseCursor=u,i.rightClickHandler=function(v,y,E,p,o){u(v,y,E),o&&p.rightClickSelect(v),y.value=p.selectionText,y.select()}},7239:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.ColorContrastCache=void 0;const h=a(1505);i.ColorContrastCache=class{constructor(){this._color=new h.TwoKeyMap,this._css=new h.TwoKeyMap}setCss(f,u,v){this._css.set(f,u,v)}getCss(f,u){return this._css.get(f,u)}setColor(f,u,v){this._color.set(f,u,v)}getColor(f,u){return this._color.get(f,u)}clear(){this._color.clear(),this._css.clear()}}},3656:(m,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.addDisposableDomListener=void 0,i.addDisposableDomListener=function(a,h,f,u){a.addEventListener(h,f,u);let v=!1;return{dispose:()=>{v||(v=!0,a.removeEventListener(h,f,u))}}}},3551:function(m,i,a){var h=this&&this.__decorate||function(c,n,d,g){var C,S=arguments.length,w=S<3?n:g===null?g=Object.getOwnPropertyDescriptor(n,d):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(c,n,d,g);else for(var b=c.length-1;b>=0;b--)(C=c[b])&&(w=(S<3?C(w):S>3?C(n,d,w):C(n,d))||w);return S>3&&w&&Object.defineProperty(n,d,w),w},f=this&&this.__param||function(c,n){return function(d,g){n(d,g,c)}};Object.defineProperty(i,"__esModule",{value:!0}),i.Linkifier=void 0;const u=a(3656),v=a(8460),y=a(844),E=a(2585),p=a(4725);let o=i.Linkifier=class extends y.Disposable{get currentLink(){return this._currentLink}constructor(c,n,d,g,C){super(),this._element=c,this._mouseService=n,this._renderService=d,this._bufferService=g,this._linkProviderService=C,this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new v.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new v.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,y.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,y.toDisposable)((()=>{var S;this._lastMouseEvent=void 0,(S=this._activeProviderReplies)==null||S.clear()}))),this.register(this._bufferService.onResize((()=>{this._clearCurrentLink(),this._wasResized=!0}))),this.register((0,u.addDisposableDomListener)(this._element,"mouseleave",(()=>{this._isMouseOut=!0,this._clearCurrentLink()}))),this.register((0,u.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,u.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,u.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(c){this._lastMouseEvent=c;const n=this._positionFromMouseEvent(c,this._element,this._mouseService);if(!n)return;this._isMouseOut=!1;const d=c.composedPath();for(let g=0;g<d.length;g++){const C=d[g];if(C.classList.contains("xterm"))break;if(C.classList.contains("xterm-hover"))return}this._lastBufferCell&&n.x===this._lastBufferCell.x&&n.y===this._lastBufferCell.y||(this._handleHover(n),this._lastBufferCell=n)}_handleHover(c){if(this._activeLine!==c.y||this._wasResized)return this._clearCurrentLink(),this._askForLink(c,!1),void(this._wasResized=!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,c)||(this._clearCurrentLink(),this._askForLink(c,!0))}_askForLink(c,n){var d,g;this._activeProviderReplies&&n||((d=this._activeProviderReplies)==null||d.forEach((S=>{S==null||S.forEach((w=>{w.link.dispose&&w.link.dispose()}))})),this._activeProviderReplies=new Map,this._activeLine=c.y);let C=!1;for(const[S,w]of this._linkProviderService.linkProviders.entries())n?(g=this._activeProviderReplies)!=null&&g.get(S)&&(C=this._checkLinkProviderResult(S,c,C)):w.provideLinks(c.y,(b=>{var k,A;if(this._isMouseOut)return;const T=b==null?void 0:b.map((L=>({link:L})));(k=this._activeProviderReplies)==null||k.set(S,T),C=this._checkLinkProviderResult(S,c,C),((A=this._activeProviderReplies)==null?void 0:A.size)===this._linkProviderService.linkProviders.length&&this._removeIntersectingLinks(c.y,this._activeProviderReplies)}))}_removeIntersectingLinks(c,n){const d=new Set;for(let g=0;g<n.size;g++){const C=n.get(g);if(C)for(let S=0;S<C.length;S++){const w=C[S],b=w.link.range.start.y<c?0:w.link.range.start.x,k=w.link.range.end.y>c?this._bufferService.cols:w.link.range.end.x;for(let A=b;A<=k;A++){if(d.has(A)){C.splice(S--,1);break}d.add(A)}}}}_checkLinkProviderResult(c,n,d){var g;if(!this._activeProviderReplies)return d;const C=this._activeProviderReplies.get(c);let S=!1;for(let w=0;w<c;w++)this._activeProviderReplies.has(w)&&!this._activeProviderReplies.get(w)||(S=!0);if(!S&&C){const w=C.find((b=>this._linkAtPosition(b.link,n)));w&&(d=!0,this._handleNewLink(w))}if(this._activeProviderReplies.size===this._linkProviderService.linkProviders.length&&!d)for(let w=0;w<this._activeProviderReplies.size;w++){const b=(g=this._activeProviderReplies.get(w))==null?void 0:g.find((k=>this._linkAtPosition(k.link,n)));if(b){d=!0,this._handleNewLink(b);break}}return d}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(c){if(!this._currentLink)return;const n=this._positionFromMouseEvent(c,this._element,this._mouseService);n&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,n)&&this._currentLink.link.activate(c,this._currentLink.link.text)}_clearCurrentLink(c,n){this._currentLink&&this._lastMouseEvent&&(!c||!n||this._currentLink.link.range.start.y>=c&&this._currentLink.link.range.end.y<=n)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,y.disposeArray)(this._linkCacheDisposables))}_handleNewLink(c){if(!this._lastMouseEvent)return;const n=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);n&&this._linkAtPosition(c.link,n)&&(this._currentLink=c,this._currentLink.state={decorations:{underline:c.link.decorations===void 0||c.link.decorations.underline,pointerCursor:c.link.decorations===void 0||c.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,c.link,this._lastMouseEvent),c.link.decorations={},Object.defineProperties(c.link.decorations,{pointerCursor:{get:()=>{var d,g;return(g=(d=this._currentLink)==null?void 0:d.state)==null?void 0:g.decorations.pointerCursor},set:d=>{var g;(g=this._currentLink)!=null&&g.state&&this._currentLink.state.decorations.pointerCursor!==d&&(this._currentLink.state.decorations.pointerCursor=d,this._currentLink.state.isHovered&&this._element.classList.toggle("xterm-cursor-pointer",d))}},underline:{get:()=>{var d,g;return(g=(d=this._currentLink)==null?void 0:d.state)==null?void 0:g.decorations.underline},set:d=>{var g,C,S;(g=this._currentLink)!=null&&g.state&&((S=(C=this._currentLink)==null?void 0:C.state)==null?void 0:S.decorations.underline)!==d&&(this._currentLink.state.decorations.underline=d,this._currentLink.state.isHovered&&this._fireUnderlineEvent(c.link,d))}}}),this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange((d=>{if(!this._currentLink)return;const g=d.start===0?0:d.start+1+this._bufferService.buffer.ydisp,C=this._bufferService.buffer.ydisp+1+d.end;if(this._currentLink.link.range.start.y>=g&&this._currentLink.link.range.end.y<=C&&(this._clearCurrentLink(g,C),this._lastMouseEvent)){const S=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);S&&this._askForLink(S,!1)}}))))}_linkHover(c,n,d){var g;(g=this._currentLink)!=null&&g.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(n,!0),this._currentLink.state.decorations.pointerCursor&&c.classList.add("xterm-cursor-pointer")),n.hover&&n.hover(d,n.text)}_fireUnderlineEvent(c,n){const d=c.range,g=this._bufferService.buffer.ydisp,C=this._createLinkUnderlineEvent(d.start.x-1,d.start.y-g-1,d.end.x,d.end.y-g-1,void 0);(n?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(C)}_linkLeave(c,n,d){var g;(g=this._currentLink)!=null&&g.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(n,!1),this._currentLink.state.decorations.pointerCursor&&c.classList.remove("xterm-cursor-pointer")),n.leave&&n.leave(d,n.text)}_linkAtPosition(c,n){const d=c.range.start.y*this._bufferService.cols+c.range.start.x,g=c.range.end.y*this._bufferService.cols+c.range.end.x,C=n.y*this._bufferService.cols+n.x;return d<=C&&C<=g}_positionFromMouseEvent(c,n,d){const g=d.getCoords(c,n,this._bufferService.cols,this._bufferService.rows);if(g)return{x:g[0],y:g[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(c,n,d,g,C){return{x1:c,y1:n,x2:d,y2:g,cols:this._bufferService.cols,fg:C}}};i.Linkifier=o=h([f(1,p.IMouseService),f(2,p.IRenderService),f(3,E.IBufferService),f(4,p.ILinkProviderService)],o)},9042:(m,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"},3730:function(m,i,a){var h=this&&this.__decorate||function(p,o,c,n){var d,g=arguments.length,C=g<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,c):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(p,o,c,n);else for(var S=p.length-1;S>=0;S--)(d=p[S])&&(C=(g<3?d(C):g>3?d(o,c,C):d(o,c))||C);return g>3&&C&&Object.defineProperty(o,c,C),C},f=this&&this.__param||function(p,o){return function(c,n){o(c,n,p)}};Object.defineProperty(i,"__esModule",{value:!0}),i.OscLinkProvider=void 0;const u=a(511),v=a(2585);let y=i.OscLinkProvider=class{constructor(p,o,c){this._bufferService=p,this._optionsService=o,this._oscLinkService=c}provideLinks(p,o){var c;const n=this._bufferService.buffer.lines.get(p-1);if(!n)return void o(void 0);const d=[],g=this._optionsService.rawOptions.linkHandler,C=new u.CellData,S=n.getTrimmedLength();let w=-1,b=-1,k=!1;for(let A=0;A<S;A++)if(b!==-1||n.hasContent(A)){if(n.loadCell(A,C),C.hasExtendedAttrs()&&C.extended.urlId){if(b===-1){b=A,w=C.extended.urlId;continue}k=C.extended.urlId!==w}else b!==-1&&(k=!0);if(k||b!==-1&&A===S-1){const T=(c=this._oscLinkService.getLinkData(w))==null?void 0:c.uri;if(T){const L={start:{x:b+1,y:p},end:{x:A+(k||A!==S-1?0:1),y:p}};let R=!1;if(!(g!=null&&g.allowNonHttpProtocols))try{const M=new URL(T);["http:","https:"].includes(M.protocol)||(R=!0)}catch{R=!0}R||d.push({text:T,range:L,activate:(M,U)=>g?g.activate(M,U,L):E(0,U),hover:(M,U)=>{var $;return($=g==null?void 0:g.hover)==null?void 0:$.call(g,M,U,L)},leave:(M,U)=>{var $;return($=g==null?void 0:g.leave)==null?void 0:$.call(g,M,U,L)}})}k=!1,C.hasExtendedAttrs()&&C.extended.urlId?(b=A,w=C.extended.urlId):(b=-1,w=-1)}}o(d)}};function E(p,o){if(confirm(`Do you want to navigate to ${o}?
|
|
161
|
-
|
|
162
|
-
WARNING: This link could potentially be dangerous`)){const c=window.open();if(c){try{c.opener=null}catch{}c.location.href=o}else console.warn("Opening link blocked as opener could not be cleared")}}i.OscLinkProvider=y=h([f(0,v.IBufferService),f(1,v.IOptionsService),f(2,v.IOscLinkService)],y)},6193:(m,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.RenderDebouncer=void 0,i.RenderDebouncer=class{constructor(a,h){this._renderCallback=a,this._coreBrowserService=h,this._refreshCallbacks=[]}dispose(){this._animationFrame&&(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}addRefreshCallback(a){return this._refreshCallbacks.push(a),this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._innerRefresh()))),this._animationFrame}refresh(a,h,f){this._rowCount=f,a=a!==void 0?a:0,h=h!==void 0?h:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,a):a,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,h):h,this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._innerRefresh())))}_innerRefresh(){if(this._animationFrame=void 0,this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return void this._runRefreshCallbacks();const a=Math.max(this._rowStart,0),h=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(a,h),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(const a of this._refreshCallbacks)a(0);this._refreshCallbacks=[]}}},3236:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.Terminal=void 0;const h=a(3614),f=a(3656),u=a(3551),v=a(9042),y=a(3730),E=a(1680),p=a(3107),o=a(5744),c=a(2950),n=a(1296),d=a(428),g=a(4269),C=a(5114),S=a(8934),w=a(3230),b=a(9312),k=a(4725),A=a(6731),T=a(8055),L=a(8969),R=a(8460),M=a(844),U=a(6114),$=a(8437),z=a(2584),W=a(7399),B=a(5941),x=a(9074),D=a(2585),O=a(5435),V=a(4567),G=a(779);class X extends L.CoreTerminal{get onFocus(){return this._onFocus.event}get onBlur(){return this._onBlur.event}get onA11yChar(){return this._onA11yCharEmitter.event}get onA11yTab(){return this._onA11yTabEmitter.event}get onWillOpen(){return this._onWillOpen.event}constructor(N={}){super(N),this.browser=U,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._accessibilityManager=this.register(new M.MutableDisposable),this._onCursorMove=this.register(new R.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onKey=this.register(new R.EventEmitter),this.onKey=this._onKey.event,this._onRender=this.register(new R.EventEmitter),this.onRender=this._onRender.event,this._onSelectionChange=this.register(new R.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onTitleChange=this.register(new R.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onBell=this.register(new R.EventEmitter),this.onBell=this._onBell.event,this._onFocus=this.register(new R.EventEmitter),this._onBlur=this.register(new R.EventEmitter),this._onA11yCharEmitter=this.register(new R.EventEmitter),this._onA11yTabEmitter=this.register(new R.EventEmitter),this._onWillOpen=this.register(new R.EventEmitter),this._setup(),this._decorationService=this._instantiationService.createInstance(x.DecorationService),this._instantiationService.setService(D.IDecorationService,this._decorationService),this._linkProviderService=this._instantiationService.createInstance(G.LinkProviderService),this._instantiationService.setService(k.ILinkProviderService,this._linkProviderService),this._linkProviderService.registerLinkProvider(this._instantiationService.createInstance(y.OscLinkProvider)),this.register(this._inputHandler.onRequestBell((()=>this._onBell.fire()))),this.register(this._inputHandler.onRequestRefreshRows(((I,H)=>this.refresh(I,H)))),this.register(this._inputHandler.onRequestSendFocus((()=>this._reportFocus()))),this.register(this._inputHandler.onRequestReset((()=>this.reset()))),this.register(this._inputHandler.onRequestWindowsOptionsReport((I=>this._reportWindowsOptions(I)))),this.register(this._inputHandler.onColor((I=>this._handleColorEvent(I)))),this.register((0,R.forwardEvent)(this._inputHandler.onCursorMove,this._onCursorMove)),this.register((0,R.forwardEvent)(this._inputHandler.onTitleChange,this._onTitleChange)),this.register((0,R.forwardEvent)(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this.register((0,R.forwardEvent)(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this.register(this._bufferService.onResize((I=>this._afterResize(I.cols,I.rows)))),this.register((0,M.toDisposable)((()=>{var I,H;this._customKeyEventHandler=void 0,(H=(I=this.element)==null?void 0:I.parentNode)==null||H.removeChild(this.element)})))}_handleColorEvent(N){if(this._themeService)for(const I of N){let H,P="";switch(I.index){case 256:H="foreground",P="10";break;case 257:H="background",P="11";break;case 258:H="cursor",P="12";break;default:H="ansi",P="4;"+I.index}switch(I.type){case 0:const Z=T.color.toColorRGB(H==="ansi"?this._themeService.colors.ansi[I.index]:this._themeService.colors[H]);this.coreService.triggerDataEvent(`${z.C0.ESC}]${P};${(0,B.toRgbString)(Z)}${z.C1_ESCAPED.ST}`);break;case 1:if(H==="ansi")this._themeService.modifyColors((j=>j.ansi[I.index]=T.channels.toColor(...I.color)));else{const j=H;this._themeService.modifyColors((re=>re[j]=T.channels.toColor(...I.color)))}break;case 2:this._themeService.restoreColor(I.index)}}}_setup(){super._setup(),this._customKeyEventHandler=void 0}get buffer(){return this.buffers.active}focus(){this.textarea&&this.textarea.focus({preventScroll:!0})}_handleScreenReaderModeOptionChange(N){N?!this._accessibilityManager.value&&this._renderService&&(this._accessibilityManager.value=this._instantiationService.createInstance(V.AccessibilityManager,this)):this._accessibilityManager.clear()}_handleTextAreaFocus(N){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(z.C0.ESC+"[I"),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}blur(){var N;return(N=this.textarea)==null?void 0:N.blur()}_handleTextAreaBlur(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(z.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()}_syncTextArea(){if(!this.textarea||!this.buffer.isCursorInViewport||this._compositionHelper.isComposing||!this._renderService)return;const N=this.buffer.ybase+this.buffer.y,I=this.buffer.lines.get(N);if(!I)return;const H=Math.min(this.buffer.x,this.cols-1),P=this._renderService.dimensions.css.cell.height,Z=I.getWidth(H),j=this._renderService.dimensions.css.cell.width*Z,re=this.buffer.y*this._renderService.dimensions.css.cell.height,de=H*this._renderService.dimensions.css.cell.width;this.textarea.style.left=de+"px",this.textarea.style.top=re+"px",this.textarea.style.width=j+"px",this.textarea.style.height=P+"px",this.textarea.style.lineHeight=P+"px",this.textarea.style.zIndex="-5"}_initGlobal(){this._bindKeys(),this.register((0,f.addDisposableDomListener)(this.element,"copy",(I=>{this.hasSelection()&&(0,h.copyHandler)(I,this._selectionService)})));const N=I=>(0,h.handlePasteEvent)(I,this.textarea,this.coreService,this.optionsService);this.register((0,f.addDisposableDomListener)(this.textarea,"paste",N)),this.register((0,f.addDisposableDomListener)(this.element,"paste",N)),U.isFirefox?this.register((0,f.addDisposableDomListener)(this.element,"mousedown",(I=>{I.button===2&&(0,h.rightClickHandler)(I,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)}))):this.register((0,f.addDisposableDomListener)(this.element,"contextmenu",(I=>{(0,h.rightClickHandler)(I,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)}))),U.isLinux&&this.register((0,f.addDisposableDomListener)(this.element,"auxclick",(I=>{I.button===1&&(0,h.moveTextAreaUnderMouseCursor)(I,this.textarea,this.screenElement)})))}_bindKeys(){this.register((0,f.addDisposableDomListener)(this.textarea,"keyup",(N=>this._keyUp(N)),!0)),this.register((0,f.addDisposableDomListener)(this.textarea,"keydown",(N=>this._keyDown(N)),!0)),this.register((0,f.addDisposableDomListener)(this.textarea,"keypress",(N=>this._keyPress(N)),!0)),this.register((0,f.addDisposableDomListener)(this.textarea,"compositionstart",(()=>this._compositionHelper.compositionstart()))),this.register((0,f.addDisposableDomListener)(this.textarea,"compositionupdate",(N=>this._compositionHelper.compositionupdate(N)))),this.register((0,f.addDisposableDomListener)(this.textarea,"compositionend",(()=>this._compositionHelper.compositionend()))),this.register((0,f.addDisposableDomListener)(this.textarea,"input",(N=>this._inputEvent(N)),!0)),this.register(this.onRender((()=>this._compositionHelper.updateCompositionElements())))}open(N){var I;if(!N)throw new Error("Terminal requires a parent element.");if(N.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),((I=this.element)==null?void 0:I.ownerDocument.defaultView)&&this._coreBrowserService)return void(this.element.ownerDocument.defaultView!==this._coreBrowserService.window&&(this._coreBrowserService.window=this.element.ownerDocument.defaultView));this._document=N.ownerDocument,this.options.documentOverride&&this.options.documentOverride instanceof Document&&(this._document=this.optionsService.rawOptions.documentOverride),this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),N.appendChild(this.element);const H=this._document.createDocumentFragment();this._viewportElement=this._document.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),H.appendChild(this._viewportElement),this._viewportScrollArea=this._document.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=this._document.createElement("div"),this.screenElement.classList.add("xterm-screen"),this.register((0,f.addDisposableDomListener)(this.screenElement,"mousemove",(P=>this.updateCursorStyle(P)))),this._helperContainer=this._document.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),H.appendChild(this.screenElement),this.textarea=this._document.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",v.promptLabel),U.isChromeOS||this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this._coreBrowserService=this.register(this._instantiationService.createInstance(C.CoreBrowserService,this.textarea,N.ownerDocument.defaultView??window,this._document??typeof window<"u"?window.document:null)),this._instantiationService.setService(k.ICoreBrowserService,this._coreBrowserService),this.register((0,f.addDisposableDomListener)(this.textarea,"focus",(P=>this._handleTextAreaFocus(P)))),this.register((0,f.addDisposableDomListener)(this.textarea,"blur",(()=>this._handleTextAreaBlur()))),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(d.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(k.ICharSizeService,this._charSizeService),this._themeService=this._instantiationService.createInstance(A.ThemeService),this._instantiationService.setService(k.IThemeService,this._themeService),this._characterJoinerService=this._instantiationService.createInstance(g.CharacterJoinerService),this._instantiationService.setService(k.ICharacterJoinerService,this._characterJoinerService),this._renderService=this.register(this._instantiationService.createInstance(w.RenderService,this.rows,this.screenElement)),this._instantiationService.setService(k.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange((P=>this._onRender.fire(P)))),this.onResize((P=>this._renderService.resize(P.cols,P.rows))),this._compositionView=this._document.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(c.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this._mouseService=this._instantiationService.createInstance(S.MouseService),this._instantiationService.setService(k.IMouseService,this._mouseService),this.linkifier=this.register(this._instantiationService.createInstance(u.Linkifier,this.screenElement)),this.element.appendChild(H);try{this._onWillOpen.fire(this.element)}catch{}this._renderService.hasRenderer()||this._renderService.setRenderer(this._createRenderer()),this.viewport=this._instantiationService.createInstance(E.Viewport,this._viewportElement,this._viewportScrollArea),this.viewport.onRequestScrollLines((P=>this.scrollLines(P.amount,P.suppressScrollEvent,1))),this.register(this._inputHandler.onRequestSyncScrollBar((()=>this.viewport.syncScrollArea()))),this.register(this.viewport),this.register(this.onCursorMove((()=>{this._renderService.handleCursorMove(),this._syncTextArea()}))),this.register(this.onResize((()=>this._renderService.handleResize(this.cols,this.rows)))),this.register(this.onBlur((()=>this._renderService.handleBlur()))),this.register(this.onFocus((()=>this._renderService.handleFocus()))),this.register(this._renderService.onDimensionsChange((()=>this.viewport.syncScrollArea()))),this._selectionService=this.register(this._instantiationService.createInstance(b.SelectionService,this.element,this.screenElement,this.linkifier)),this._instantiationService.setService(k.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines((P=>this.scrollLines(P.amount,P.suppressScrollEvent)))),this.register(this._selectionService.onSelectionChange((()=>this._onSelectionChange.fire()))),this.register(this._selectionService.onRequestRedraw((P=>this._renderService.handleSelectionChanged(P.start,P.end,P.columnSelectMode)))),this.register(this._selectionService.onLinuxMouseSelection((P=>{this.textarea.value=P,this.textarea.focus(),this.textarea.select()}))),this.register(this._onScroll.event((P=>{this.viewport.syncScrollArea(),this._selectionService.refresh()}))),this.register((0,f.addDisposableDomListener)(this._viewportElement,"scroll",(()=>this._selectionService.refresh()))),this.register(this._instantiationService.createInstance(p.BufferDecorationRenderer,this.screenElement)),this.register((0,f.addDisposableDomListener)(this.element,"mousedown",(P=>this._selectionService.handleMouseDown(P)))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager.value=this._instantiationService.createInstance(V.AccessibilityManager,this)),this.register(this.optionsService.onSpecificOptionChange("screenReaderMode",(P=>this._handleScreenReaderModeOptionChange(P)))),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(o.OverviewRulerRenderer,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange("overviewRulerWidth",(P=>{!this._overviewRulerRenderer&&P&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(o.OverviewRulerRenderer,this._viewportElement,this.screenElement)))})),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(n.DomRenderer,this,this._document,this.element,this.screenElement,this._viewportElement,this._helperContainer,this.linkifier)}bindMouse(){const N=this,I=this.element;function H(j){const re=N._mouseService.getMouseReportCoords(j,N.screenElement);if(!re)return!1;let de,he;switch(j.overrideType||j.type){case"mousemove":he=32,j.buttons===void 0?(de=3,j.button!==void 0&&(de=j.button<3?j.button:3)):de=1&j.buttons?0:4&j.buttons?1:2&j.buttons?2:3;break;case"mouseup":he=0,de=j.button<3?j.button:3;break;case"mousedown":he=1,de=j.button<3?j.button:3;break;case"wheel":if(N._customWheelEventHandler&&N._customWheelEventHandler(j)===!1||N.viewport.getLinesScrolled(j)===0)return!1;he=j.deltaY<0?0:1,de=4;break;default:return!1}return!(he===void 0||de===void 0||de>4)&&N.coreMouseService.triggerMouseEvent({col:re.col,row:re.row,x:re.x,y:re.y,button:de,action:he,ctrl:j.ctrlKey,alt:j.altKey,shift:j.shiftKey})}const P={mouseup:null,wheel:null,mousedrag:null,mousemove:null},Z={mouseup:j=>(H(j),j.buttons||(this._document.removeEventListener("mouseup",P.mouseup),P.mousedrag&&this._document.removeEventListener("mousemove",P.mousedrag)),this.cancel(j)),wheel:j=>(H(j),this.cancel(j,!0)),mousedrag:j=>{j.buttons&&H(j)},mousemove:j=>{j.buttons||H(j)}};this.register(this.coreMouseService.onProtocolChange((j=>{j?(this.optionsService.rawOptions.logLevel==="debug"&&this._logService.debug("Binding to mouse events:",this.coreMouseService.explainEvents(j)),this.element.classList.add("enable-mouse-events"),this._selectionService.disable()):(this._logService.debug("Unbinding from mouse events."),this.element.classList.remove("enable-mouse-events"),this._selectionService.enable()),8&j?P.mousemove||(I.addEventListener("mousemove",Z.mousemove),P.mousemove=Z.mousemove):(I.removeEventListener("mousemove",P.mousemove),P.mousemove=null),16&j?P.wheel||(I.addEventListener("wheel",Z.wheel,{passive:!1}),P.wheel=Z.wheel):(I.removeEventListener("wheel",P.wheel),P.wheel=null),2&j?P.mouseup||(P.mouseup=Z.mouseup):(this._document.removeEventListener("mouseup",P.mouseup),P.mouseup=null),4&j?P.mousedrag||(P.mousedrag=Z.mousedrag):(this._document.removeEventListener("mousemove",P.mousedrag),P.mousedrag=null)}))),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,f.addDisposableDomListener)(I,"mousedown",(j=>{if(j.preventDefault(),this.focus(),this.coreMouseService.areMouseEventsActive&&!this._selectionService.shouldForceSelection(j))return H(j),P.mouseup&&this._document.addEventListener("mouseup",P.mouseup),P.mousedrag&&this._document.addEventListener("mousemove",P.mousedrag),this.cancel(j)}))),this.register((0,f.addDisposableDomListener)(I,"wheel",(j=>{if(!P.wheel){if(this._customWheelEventHandler&&this._customWheelEventHandler(j)===!1)return!1;if(!this.buffer.hasScrollback){const re=this.viewport.getLinesScrolled(j);if(re===0)return;const de=z.C0.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(j.deltaY<0?"A":"B");let he="";for(let ke=0;ke<Math.abs(re);ke++)he+=de;return this.coreService.triggerDataEvent(he,!0),this.cancel(j,!0)}return this.viewport.handleWheel(j)?this.cancel(j):void 0}}),{passive:!1})),this.register((0,f.addDisposableDomListener)(I,"touchstart",(j=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchStart(j),this.cancel(j)}),{passive:!0})),this.register((0,f.addDisposableDomListener)(I,"touchmove",(j=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchMove(j)?void 0:this.cancel(j)}),{passive:!1}))}refresh(N,I){var H;(H=this._renderService)==null||H.refreshRows(N,I)}updateCursorStyle(N){var I;(I=this._selectionService)!=null&&I.shouldColumnSelect(N)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")}_showCursor(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))}scrollLines(N,I,H=0){var P;H===1?(super.scrollLines(N,I,H),this.refresh(0,this.rows-1)):(P=this.viewport)==null||P.scrollLines(N)}paste(N){(0,h.paste)(N,this.textarea,this.coreService,this.optionsService)}attachCustomKeyEventHandler(N){this._customKeyEventHandler=N}attachCustomWheelEventHandler(N){this._customWheelEventHandler=N}registerLinkProvider(N){return this._linkProviderService.registerLinkProvider(N)}registerCharacterJoiner(N){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");const I=this._characterJoinerService.register(N);return this.refresh(0,this.rows-1),I}deregisterCharacterJoiner(N){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(N)&&this.refresh(0,this.rows-1)}get markers(){return this.buffer.markers}registerMarker(N){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+N)}registerDecoration(N){return this._decorationService.registerDecoration(N)}hasSelection(){return!!this._selectionService&&this._selectionService.hasSelection}select(N,I,H){this._selectionService.setSelection(N,I,H)}getSelection(){return this._selectionService?this._selectionService.selectionText:""}getSelectionPosition(){if(this._selectionService&&this._selectionService.hasSelection)return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}clearSelection(){var N;(N=this._selectionService)==null||N.clearSelection()}selectAll(){var N;(N=this._selectionService)==null||N.selectAll()}selectLines(N,I){var H;(H=this._selectionService)==null||H.selectLines(N,I)}_keyDown(N){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&this._customKeyEventHandler(N)===!1)return!1;const I=this.browser.isMac&&this.options.macOptionIsMeta&&N.altKey;if(!I&&!this._compositionHelper.keydown(N))return this.options.scrollOnUserInput&&this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;I||N.key!=="Dead"&&N.key!=="AltGraph"||(this._unprocessedDeadKey=!0);const H=(0,W.evaluateKeyboardEvent)(N,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(N),H.type===3||H.type===2){const P=this.rows-1;return this.scrollLines(H.type===2?-P:P),this.cancel(N,!0)}return H.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,N)||(H.cancel&&this.cancel(N,!0),!H.key||!!(N.key&&!N.ctrlKey&&!N.altKey&&!N.metaKey&&N.key.length===1&&N.key.charCodeAt(0)>=65&&N.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(H.key!==z.C0.ETX&&H.key!==z.C0.CR||(this.textarea.value=""),this._onKey.fire({key:H.key,domEvent:N}),this._showCursor(),this.coreService.triggerDataEvent(H.key,!0),!this.optionsService.rawOptions.screenReaderMode||N.altKey||N.ctrlKey?this.cancel(N,!0):void(this._keyDownHandled=!0))))}_isThirdLevelShift(N,I){const H=N.isMac&&!this.options.macOptionIsMeta&&I.altKey&&!I.ctrlKey&&!I.metaKey||N.isWindows&&I.altKey&&I.ctrlKey&&!I.metaKey||N.isWindows&&I.getModifierState("AltGraph");return I.type==="keypress"?H:H&&(!I.keyCode||I.keyCode>47)}_keyUp(N){this._keyDownSeen=!1,this._customKeyEventHandler&&this._customKeyEventHandler(N)===!1||((function(I){return I.keyCode===16||I.keyCode===17||I.keyCode===18})(N)||this.focus(),this.updateCursorStyle(N),this._keyPressHandled=!1)}_keyPress(N){let I;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(N)===!1)return!1;if(this.cancel(N),N.charCode)I=N.charCode;else if(N.which===null||N.which===void 0)I=N.keyCode;else{if(N.which===0||N.charCode===0)return!1;I=N.which}return!(!I||(N.altKey||N.ctrlKey||N.metaKey)&&!this._isThirdLevelShift(this.browser,N)||(I=String.fromCharCode(I),this._onKey.fire({key:I,domEvent:N}),this._showCursor(),this.coreService.triggerDataEvent(I,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))}_inputEvent(N){if(N.data&&N.inputType==="insertText"&&(!N.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;const I=N.data;return this.coreService.triggerDataEvent(I,!0),this.cancel(N),!0}return!1}resize(N,I){N!==this.cols||I!==this.rows?super.resize(N,I):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()}_afterResize(N,I){var H,P;(H=this._charSizeService)==null||H.measure(),(P=this.viewport)==null||P.syncScrollArea(!0)}clear(){var N;if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.clearAllMarkers(),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(let I=1;I<this.rows;I++)this.buffer.lines.push(this.buffer.getBlankLine($.DEFAULT_ATTR_DATA));this._onScroll.fire({position:this.buffer.ydisp,source:0}),(N=this.viewport)==null||N.reset(),this.refresh(0,this.rows-1)}}reset(){var N,I;this.options.rows=this.rows,this.options.cols=this.cols;const H=this._customKeyEventHandler;this._setup(),super.reset(),(N=this._selectionService)==null||N.reset(),this._decorationService.reset(),(I=this.viewport)==null||I.reset(),this._customKeyEventHandler=H,this.refresh(0,this.rows-1)}clearTextureAtlas(){var N;(N=this._renderService)==null||N.clearTextureAtlas()}_reportFocus(){var N;(N=this.element)!=null&&N.classList.contains("focus")?this.coreService.triggerDataEvent(z.C0.ESC+"[I"):this.coreService.triggerDataEvent(z.C0.ESC+"[O")}_reportWindowsOptions(N){if(this._renderService)switch(N){case O.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:const I=this._renderService.dimensions.css.canvas.width.toFixed(0),H=this._renderService.dimensions.css.canvas.height.toFixed(0);this.coreService.triggerDataEvent(`${z.C0.ESC}[4;${H};${I}t`);break;case O.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:const P=this._renderService.dimensions.css.cell.width.toFixed(0),Z=this._renderService.dimensions.css.cell.height.toFixed(0);this.coreService.triggerDataEvent(`${z.C0.ESC}[6;${Z};${P}t`)}}cancel(N,I){if(this.options.cancelEvents||I)return N.preventDefault(),N.stopPropagation(),!1}}i.Terminal=X},9924:(m,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.TimeBasedDebouncer=void 0,i.TimeBasedDebouncer=class{constructor(a,h=1e3){this._renderCallback=a,this._debounceThresholdMS=h,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}dispose(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}refresh(a,h,f){this._rowCount=f,a=a!==void 0?a:0,h=h!==void 0?h:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,a):a,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,h):h;const u=Date.now();if(u-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=u,this._innerRefresh();else if(!this._additionalRefreshRequested){const v=u-this._lastRefreshMs,y=this._debounceThresholdMS-v;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout((()=>{this._lastRefreshMs=Date.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0}),y)}}_innerRefresh(){if(this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return;const a=Math.max(this._rowStart,0),h=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(a,h)}}},1680:function(m,i,a){var h=this&&this.__decorate||function(c,n,d,g){var C,S=arguments.length,w=S<3?n:g===null?g=Object.getOwnPropertyDescriptor(n,d):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(c,n,d,g);else for(var b=c.length-1;b>=0;b--)(C=c[b])&&(w=(S<3?C(w):S>3?C(n,d,w):C(n,d))||w);return S>3&&w&&Object.defineProperty(n,d,w),w},f=this&&this.__param||function(c,n){return function(d,g){n(d,g,c)}};Object.defineProperty(i,"__esModule",{value:!0}),i.Viewport=void 0;const u=a(3656),v=a(4725),y=a(8460),E=a(844),p=a(2585);let o=i.Viewport=class extends E.Disposable{constructor(c,n,d,g,C,S,w,b){super(),this._viewportElement=c,this._scrollArea=n,this._bufferService=d,this._optionsService=g,this._charSizeService=C,this._renderService=S,this._coreBrowserService=w,this.scrollBarWidth=0,this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._wheelPartialScroll=0,this._refreshAnimationFrame=null,this._ignoreNextScrollEvent=!1,this._smoothScrollState={startTime:0,origin:-1,target:-1},this._onRequestScrollLines=this.register(new y.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this.register((0,u.addDisposableDomListener)(this._viewportElement,"scroll",this._handleScroll.bind(this))),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate((k=>this._activeBuffer=k.activeBuffer))),this._renderDimensions=this._renderService.dimensions,this.register(this._renderService.onDimensionsChange((k=>this._renderDimensions=k))),this._handleThemeChange(b.colors),this.register(b.onChangeColors((k=>this._handleThemeChange(k)))),this.register(this._optionsService.onSpecificOptionChange("scrollback",(()=>this.syncScrollArea()))),setTimeout((()=>this.syncScrollArea()))}_handleThemeChange(c){this._viewportElement.style.backgroundColor=c.background.css}reset(){this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._coreBrowserService.window.requestAnimationFrame((()=>this.syncScrollArea()))}_refresh(c){if(c)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&this._coreBrowserService.window.cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._innerRefresh())))}_innerRefresh(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderDimensions.device.cell.height/this._coreBrowserService.dpr,this._currentDeviceCellHeight=this._renderDimensions.device.cell.height,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;const n=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderDimensions.css.canvas.height);this._lastRecordedBufferHeight!==n&&(this._lastRecordedBufferHeight=n,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}const c=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==c&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=c),this._refreshAnimationFrame=null}syncScrollArea(c=!1){if(this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(c);this._lastRecordedViewportHeight===this._renderService.dimensions.css.canvas.height&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.device.cell.height===this._currentDeviceCellHeight||this._refresh(c)}_handleScroll(c){if(this._lastScrollTop=this._viewportElement.scrollTop,!this._viewportElement.offsetParent)return;if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._onRequestScrollLines.fire({amount:0,suppressScrollEvent:!0});const n=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._onRequestScrollLines.fire({amount:n,suppressScrollEvent:!0})}_smoothScroll(){if(this._isDisposed||this._smoothScrollState.origin===-1||this._smoothScrollState.target===-1)return;const c=this._smoothScrollPercent();this._viewportElement.scrollTop=this._smoothScrollState.origin+Math.round(c*(this._smoothScrollState.target-this._smoothScrollState.origin)),c<1?this._coreBrowserService.window.requestAnimationFrame((()=>this._smoothScroll())):this._clearSmoothScrollState()}_smoothScrollPercent(){return this._optionsService.rawOptions.smoothScrollDuration&&this._smoothScrollState.startTime?Math.max(Math.min((Date.now()-this._smoothScrollState.startTime)/this._optionsService.rawOptions.smoothScrollDuration,1),0):1}_clearSmoothScrollState(){this._smoothScrollState.startTime=0,this._smoothScrollState.origin=-1,this._smoothScrollState.target=-1}_bubbleScroll(c,n){const d=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(n<0&&this._viewportElement.scrollTop!==0||n>0&&d<this._lastRecordedBufferHeight)||(c.cancelable&&c.preventDefault(),!1)}handleWheel(c){const n=this._getPixelsScrolled(c);return n!==0&&(this._optionsService.rawOptions.smoothScrollDuration?(this._smoothScrollState.startTime=Date.now(),this._smoothScrollPercent()<1?(this._smoothScrollState.origin=this._viewportElement.scrollTop,this._smoothScrollState.target===-1?this._smoothScrollState.target=this._viewportElement.scrollTop+n:this._smoothScrollState.target+=n,this._smoothScrollState.target=Math.max(Math.min(this._smoothScrollState.target,this._viewportElement.scrollHeight),0),this._smoothScroll()):this._clearSmoothScrollState()):this._viewportElement.scrollTop+=n,this._bubbleScroll(c,n))}scrollLines(c){if(c!==0)if(this._optionsService.rawOptions.smoothScrollDuration){const n=c*this._currentRowHeight;this._smoothScrollState.startTime=Date.now(),this._smoothScrollPercent()<1?(this._smoothScrollState.origin=this._viewportElement.scrollTop,this._smoothScrollState.target=this._smoothScrollState.origin+n,this._smoothScrollState.target=Math.max(Math.min(this._smoothScrollState.target,this._viewportElement.scrollHeight),0),this._smoothScroll()):this._clearSmoothScrollState()}else this._onRequestScrollLines.fire({amount:c,suppressScrollEvent:!1})}_getPixelsScrolled(c){if(c.deltaY===0||c.shiftKey)return 0;let n=this._applyScrollModifier(c.deltaY,c);return c.deltaMode===WheelEvent.DOM_DELTA_LINE?n*=this._currentRowHeight:c.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(n*=this._currentRowHeight*this._bufferService.rows),n}getBufferElements(c,n){var d;let g,C="";const S=[],w=n??this._bufferService.buffer.lines.length,b=this._bufferService.buffer.lines;for(let k=c;k<w;k++){const A=b.get(k);if(!A)continue;const T=(d=b.get(k+1))==null?void 0:d.isWrapped;if(C+=A.translateToString(!T),!T||k===b.length-1){const L=document.createElement("div");L.textContent=C,S.push(L),C.length>0&&(g=L),C=""}}return{bufferElements:S,cursorElement:g}}getLinesScrolled(c){if(c.deltaY===0||c.shiftKey)return 0;let n=this._applyScrollModifier(c.deltaY,c);return c.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(n/=this._currentRowHeight+0,this._wheelPartialScroll+=n,n=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):c.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(n*=this._bufferService.rows),n}_applyScrollModifier(c,n){const d=this._optionsService.rawOptions.fastScrollModifier;return d==="alt"&&n.altKey||d==="ctrl"&&n.ctrlKey||d==="shift"&&n.shiftKey?c*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:c*this._optionsService.rawOptions.scrollSensitivity}handleTouchStart(c){this._lastTouchY=c.touches[0].pageY}handleTouchMove(c){const n=this._lastTouchY-c.touches[0].pageY;return this._lastTouchY=c.touches[0].pageY,n!==0&&(this._viewportElement.scrollTop+=n,this._bubbleScroll(c,n))}};i.Viewport=o=h([f(2,p.IBufferService),f(3,p.IOptionsService),f(4,v.ICharSizeService),f(5,v.IRenderService),f(6,v.ICoreBrowserService),f(7,v.IThemeService)],o)},3107:function(m,i,a){var h=this&&this.__decorate||function(p,o,c,n){var d,g=arguments.length,C=g<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,c):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(p,o,c,n);else for(var S=p.length-1;S>=0;S--)(d=p[S])&&(C=(g<3?d(C):g>3?d(o,c,C):d(o,c))||C);return g>3&&C&&Object.defineProperty(o,c,C),C},f=this&&this.__param||function(p,o){return function(c,n){o(c,n,p)}};Object.defineProperty(i,"__esModule",{value:!0}),i.BufferDecorationRenderer=void 0;const u=a(4725),v=a(844),y=a(2585);let E=i.BufferDecorationRenderer=class extends v.Disposable{constructor(p,o,c,n,d){super(),this._screenElement=p,this._bufferService=o,this._coreBrowserService=c,this._decorationService=n,this._renderService=d,this._decorationElements=new Map,this._altBufferIsActive=!1,this._dimensionsChanged=!1,this._container=document.createElement("div"),this._container.classList.add("xterm-decoration-container"),this._screenElement.appendChild(this._container),this.register(this._renderService.onRenderedViewportChange((()=>this._doRefreshDecorations()))),this.register(this._renderService.onDimensionsChange((()=>{this._dimensionsChanged=!0,this._queueRefresh()}))),this.register(this._coreBrowserService.onDprChange((()=>this._queueRefresh()))),this.register(this._bufferService.buffers.onBufferActivate((()=>{this._altBufferIsActive=this._bufferService.buffer===this._bufferService.buffers.alt}))),this.register(this._decorationService.onDecorationRegistered((()=>this._queueRefresh()))),this.register(this._decorationService.onDecorationRemoved((g=>this._removeDecoration(g)))),this.register((0,v.toDisposable)((()=>{this._container.remove(),this._decorationElements.clear()})))}_queueRefresh(){this._animationFrame===void 0&&(this._animationFrame=this._renderService.addRefreshCallback((()=>{this._doRefreshDecorations(),this._animationFrame=void 0})))}_doRefreshDecorations(){for(const p of this._decorationService.decorations)this._renderDecoration(p);this._dimensionsChanged=!1}_renderDecoration(p){this._refreshStyle(p),this._dimensionsChanged&&this._refreshXPosition(p)}_createElement(p){var o;const c=this._coreBrowserService.mainDocument.createElement("div");c.classList.add("xterm-decoration"),c.classList.toggle("xterm-decoration-top-layer",((o=p==null?void 0:p.options)==null?void 0:o.layer)==="top"),c.style.width=`${Math.round((p.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,c.style.height=(p.options.height||1)*this._renderService.dimensions.css.cell.height+"px",c.style.top=(p.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.css.cell.height+"px",c.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`;const n=p.options.x??0;return n&&n>this._bufferService.cols&&(c.style.display="none"),this._refreshXPosition(p,c),c}_refreshStyle(p){const o=p.marker.line-this._bufferService.buffers.active.ydisp;if(o<0||o>=this._bufferService.rows)p.element&&(p.element.style.display="none",p.onRenderEmitter.fire(p.element));else{let c=this._decorationElements.get(p);c||(c=this._createElement(p),p.element=c,this._decorationElements.set(p,c),this._container.appendChild(c),p.onDispose((()=>{this._decorationElements.delete(p),c.remove()}))),c.style.top=o*this._renderService.dimensions.css.cell.height+"px",c.style.display=this._altBufferIsActive?"none":"block",p.onRenderEmitter.fire(c)}}_refreshXPosition(p,o=p.element){if(!o)return;const c=p.options.x??0;(p.options.anchor||"left")==="right"?o.style.right=c?c*this._renderService.dimensions.css.cell.width+"px":"":o.style.left=c?c*this._renderService.dimensions.css.cell.width+"px":""}_removeDecoration(p){var o;(o=this._decorationElements.get(p))==null||o.remove(),this._decorationElements.delete(p),p.dispose()}};i.BufferDecorationRenderer=E=h([f(1,y.IBufferService),f(2,u.ICoreBrowserService),f(3,y.IDecorationService),f(4,u.IRenderService)],E)},5871:(m,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.ColorZoneStore=void 0,i.ColorZoneStore=class{constructor(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}get zones(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones}clear(){this._zones.length=0,this._zonePoolIndex=0}addDecoration(a){if(a.options.overviewRulerOptions){for(const h of this._zones)if(h.color===a.options.overviewRulerOptions.color&&h.position===a.options.overviewRulerOptions.position){if(this._lineIntersectsZone(h,a.marker.line))return;if(this._lineAdjacentToZone(h,a.marker.line,a.options.overviewRulerOptions.position))return void this._addLineToZone(h,a.marker.line)}if(this._zonePoolIndex<this._zonePool.length)return this._zonePool[this._zonePoolIndex].color=a.options.overviewRulerOptions.color,this._zonePool[this._zonePoolIndex].position=a.options.overviewRulerOptions.position,this._zonePool[this._zonePoolIndex].startBufferLine=a.marker.line,this._zonePool[this._zonePoolIndex].endBufferLine=a.marker.line,void this._zones.push(this._zonePool[this._zonePoolIndex++]);this._zones.push({color:a.options.overviewRulerOptions.color,position:a.options.overviewRulerOptions.position,startBufferLine:a.marker.line,endBufferLine:a.marker.line}),this._zonePool.push(this._zones[this._zones.length-1]),this._zonePoolIndex++}}setPadding(a){this._linePadding=a}_lineIntersectsZone(a,h){return h>=a.startBufferLine&&h<=a.endBufferLine}_lineAdjacentToZone(a,h,f){return h>=a.startBufferLine-this._linePadding[f||"full"]&&h<=a.endBufferLine+this._linePadding[f||"full"]}_addLineToZone(a,h){a.startBufferLine=Math.min(a.startBufferLine,h),a.endBufferLine=Math.max(a.endBufferLine,h)}}},5744:function(m,i,a){var h=this&&this.__decorate||function(d,g,C,S){var w,b=arguments.length,k=b<3?g:S===null?S=Object.getOwnPropertyDescriptor(g,C):S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(d,g,C,S);else for(var A=d.length-1;A>=0;A--)(w=d[A])&&(k=(b<3?w(k):b>3?w(g,C,k):w(g,C))||k);return b>3&&k&&Object.defineProperty(g,C,k),k},f=this&&this.__param||function(d,g){return function(C,S){g(C,S,d)}};Object.defineProperty(i,"__esModule",{value:!0}),i.OverviewRulerRenderer=void 0;const u=a(5871),v=a(4725),y=a(844),E=a(2585),p={full:0,left:0,center:0,right:0},o={full:0,left:0,center:0,right:0},c={full:0,left:0,center:0,right:0};let n=i.OverviewRulerRenderer=class extends y.Disposable{get _width(){return this._optionsService.options.overviewRulerWidth||0}constructor(d,g,C,S,w,b,k){var A;super(),this._viewportElement=d,this._screenElement=g,this._bufferService=C,this._decorationService=S,this._renderService=w,this._optionsService=b,this._coreBrowserService=k,this._colorZoneStore=new u.ColorZoneStore,this._shouldUpdateDimensions=!0,this._shouldUpdateAnchor=!0,this._lastKnownBufferLength=0,this._canvas=this._coreBrowserService.mainDocument.createElement("canvas"),this._canvas.classList.add("xterm-decoration-overview-ruler"),this._refreshCanvasDimensions(),(A=this._viewportElement.parentElement)==null||A.insertBefore(this._canvas,this._viewportElement);const T=this._canvas.getContext("2d");if(!T)throw new Error("Ctx cannot be null");this._ctx=T,this._registerDecorationListeners(),this._registerBufferChangeListeners(),this._registerDimensionChangeListeners(),this.register((0,y.toDisposable)((()=>{var L;(L=this._canvas)==null||L.remove()})))}_registerDecorationListeners(){this.register(this._decorationService.onDecorationRegistered((()=>this._queueRefresh(void 0,!0)))),this.register(this._decorationService.onDecorationRemoved((()=>this._queueRefresh(void 0,!0))))}_registerBufferChangeListeners(){this.register(this._renderService.onRenderedViewportChange((()=>this._queueRefresh()))),this.register(this._bufferService.buffers.onBufferActivate((()=>{this._canvas.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?"none":"block"}))),this.register(this._bufferService.onScroll((()=>{this._lastKnownBufferLength!==this._bufferService.buffers.normal.lines.length&&(this._refreshDrawHeightConstants(),this._refreshColorZonePadding())})))}_registerDimensionChangeListeners(){this.register(this._renderService.onRender((()=>{this._containerHeight&&this._containerHeight===this._screenElement.clientHeight||(this._queueRefresh(!0),this._containerHeight=this._screenElement.clientHeight)}))),this.register(this._optionsService.onSpecificOptionChange("overviewRulerWidth",(()=>this._queueRefresh(!0)))),this.register(this._coreBrowserService.onDprChange((()=>this._queueRefresh(!0)))),this._queueRefresh(!0)}_refreshDrawConstants(){const d=Math.floor(this._canvas.width/3),g=Math.ceil(this._canvas.width/3);o.full=this._canvas.width,o.left=d,o.center=g,o.right=d,this._refreshDrawHeightConstants(),c.full=0,c.left=0,c.center=o.left,c.right=o.left+o.center}_refreshDrawHeightConstants(){p.full=Math.round(2*this._coreBrowserService.dpr);const d=this._canvas.height/this._bufferService.buffer.lines.length,g=Math.round(Math.max(Math.min(d,12),6)*this._coreBrowserService.dpr);p.left=g,p.center=g,p.right=g}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*p.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*p.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*p.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*p.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length}_refreshCanvasDimensions(){this._canvas.style.width=`${this._width}px`,this._canvas.width=Math.round(this._width*this._coreBrowserService.dpr),this._canvas.style.height=`${this._screenElement.clientHeight}px`,this._canvas.height=Math.round(this._screenElement.clientHeight*this._coreBrowserService.dpr),this._refreshDrawConstants(),this._refreshColorZonePadding()}_refreshDecorations(){this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();for(const g of this._decorationService.decorations)this._colorZoneStore.addDecoration(g);this._ctx.lineWidth=1;const d=this._colorZoneStore.zones;for(const g of d)g.position!=="full"&&this._renderColorZone(g);for(const g of d)g.position==="full"&&this._renderColorZone(g);this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}_renderColorZone(d){this._ctx.fillStyle=d.color,this._ctx.fillRect(c[d.position||"full"],Math.round((this._canvas.height-1)*(d.startBufferLine/this._bufferService.buffers.active.lines.length)-p[d.position||"full"]/2),o[d.position||"full"],Math.round((this._canvas.height-1)*((d.endBufferLine-d.startBufferLine)/this._bufferService.buffers.active.lines.length)+p[d.position||"full"]))}_queueRefresh(d,g){this._shouldUpdateDimensions=d||this._shouldUpdateDimensions,this._shouldUpdateAnchor=g||this._shouldUpdateAnchor,this._animationFrame===void 0&&(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._refreshDecorations(),this._animationFrame=void 0})))}};i.OverviewRulerRenderer=n=h([f(2,E.IBufferService),f(3,E.IDecorationService),f(4,v.IRenderService),f(5,E.IOptionsService),f(6,v.ICoreBrowserService)],n)},2950:function(m,i,a){var h=this&&this.__decorate||function(p,o,c,n){var d,g=arguments.length,C=g<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,c):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")C=Reflect.decorate(p,o,c,n);else for(var S=p.length-1;S>=0;S--)(d=p[S])&&(C=(g<3?d(C):g>3?d(o,c,C):d(o,c))||C);return g>3&&C&&Object.defineProperty(o,c,C),C},f=this&&this.__param||function(p,o){return function(c,n){o(c,n,p)}};Object.defineProperty(i,"__esModule",{value:!0}),i.CompositionHelper=void 0;const u=a(4725),v=a(2585),y=a(2584);let E=i.CompositionHelper=class{get isComposing(){return this._isComposing}constructor(p,o,c,n,d,g){this._textarea=p,this._compositionView=o,this._bufferService=c,this._optionsService=n,this._coreService=d,this._renderService=g,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}compositionstart(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")}compositionupdate(p){this._compositionView.textContent=p.data,this.updateCompositionElements(),setTimeout((()=>{this._compositionPosition.end=this._textarea.value.length}),0)}compositionend(){this._finalizeComposition(!0)}keydown(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)}_finalizeComposition(p){if(this._compositionView.classList.remove("active"),this._isComposing=!1,p){const o={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout((()=>{if(this._isSendingComposition){let c;this._isSendingComposition=!1,o.start+=this._dataAlreadySent.length,c=this._isComposing?this._textarea.value.substring(o.start,o.end):this._textarea.value.substring(o.start),c.length>0&&this._coreService.triggerDataEvent(c,!0)}}),0)}else{this._isSendingComposition=!1;const o=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(o,!0)}}_handleAnyTextareaChanges(){const p=this._textarea.value;setTimeout((()=>{if(!this._isComposing){const o=this._textarea.value,c=o.replace(p,"");this._dataAlreadySent=c,o.length>p.length?this._coreService.triggerDataEvent(c,!0):o.length<p.length?this._coreService.triggerDataEvent(`${y.C0.DEL}`,!0):o.length===p.length&&o!==p&&this._coreService.triggerDataEvent(o,!0)}}),0)}updateCompositionElements(p){if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){const o=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),c=this._renderService.dimensions.css.cell.height,n=this._bufferService.buffer.y*this._renderService.dimensions.css.cell.height,d=o*this._renderService.dimensions.css.cell.width;this._compositionView.style.left=d+"px",this._compositionView.style.top=n+"px",this._compositionView.style.height=c+"px",this._compositionView.style.lineHeight=c+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";const g=this._compositionView.getBoundingClientRect();this._textarea.style.left=d+"px",this._textarea.style.top=n+"px",this._textarea.style.width=Math.max(g.width,1)+"px",this._textarea.style.height=Math.max(g.height,1)+"px",this._textarea.style.lineHeight=g.height+"px"}p||setTimeout((()=>this.updateCompositionElements(!0)),0)}}};i.CompositionHelper=E=h([f(2,v.IBufferService),f(3,v.IOptionsService),f(4,v.ICoreService),f(5,u.IRenderService)],E)},9806:(m,i)=>{function a(h,f,u){const v=u.getBoundingClientRect(),y=h.getComputedStyle(u),E=parseInt(y.getPropertyValue("padding-left")),p=parseInt(y.getPropertyValue("padding-top"));return[f.clientX-v.left-E,f.clientY-v.top-p]}Object.defineProperty(i,"__esModule",{value:!0}),i.getCoords=i.getCoordsRelativeToElement=void 0,i.getCoordsRelativeToElement=a,i.getCoords=function(h,f,u,v,y,E,p,o,c){if(!E)return;const n=a(h,f,u);return n?(n[0]=Math.ceil((n[0]+(c?p/2:0))/p),n[1]=Math.ceil(n[1]/o),n[0]=Math.min(Math.max(n[0],1),v+(c?1:0)),n[1]=Math.min(Math.max(n[1],1),y),n):void 0}},9504:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.moveToCellSequence=void 0;const h=a(2584);function f(o,c,n,d){const g=o-u(o,n),C=c-u(c,n),S=Math.abs(g-C)-(function(w,b,k){let A=0;const T=w-u(w,k),L=b-u(b,k);for(let R=0;R<Math.abs(T-L);R++){const M=v(w,b)==="A"?-1:1,U=k.buffer.lines.get(T+M*R);U!=null&&U.isWrapped&&A++}return A})(o,c,n);return p(S,E(v(o,c),d))}function u(o,c){let n=0,d=c.buffer.lines.get(o),g=d==null?void 0:d.isWrapped;for(;g&&o>=0&&o<c.rows;)n++,d=c.buffer.lines.get(--o),g=d==null?void 0:d.isWrapped;return n}function v(o,c){return o>c?"A":"B"}function y(o,c,n,d,g,C){let S=o,w=c,b="";for(;S!==n||w!==d;)S+=g?1:-1,g&&S>C.cols-1?(b+=C.buffer.translateBufferLineToString(w,!1,o,S),S=0,o=0,w++):!g&&S<0&&(b+=C.buffer.translateBufferLineToString(w,!1,0,o+1),S=C.cols-1,o=S,w--);return b+C.buffer.translateBufferLineToString(w,!1,o,S)}function E(o,c){const n=c?"O":"[";return h.C0.ESC+n+o}function p(o,c){o=Math.floor(o);let n="";for(let d=0;d<o;d++)n+=c;return n}i.moveToCellSequence=function(o,c,n,d){const g=n.buffer.x,C=n.buffer.y;if(!n.buffer.hasScrollback)return(function(b,k,A,T,L,R){return f(k,T,L,R).length===0?"":p(y(b,k,b,k-u(k,L),!1,L).length,E("D",R))})(g,C,0,c,n,d)+f(C,c,n,d)+(function(b,k,A,T,L,R){let M;M=f(k,T,L,R).length>0?T-u(T,L):k;const U=T,$=(function(z,W,B,x,D,O){let V;return V=f(B,x,D,O).length>0?x-u(x,D):W,z<B&&V<=x||z>=B&&V<x?"C":"D"})(b,k,A,T,L,R);return p(y(b,M,A,U,$==="C",L).length,E($,R))})(g,C,o,c,n,d);let S;if(C===c)return S=g>o?"D":"C",p(Math.abs(g-o),E(S,d));S=C>c?"D":"C";const w=Math.abs(C-c);return p((function(b,k){return k.cols-b})(C>c?o:g,n)+(w-1)*n.cols+1+((C>c?g:o)-1),E(S,d))}},1296:function(m,i,a){var h=this&&this.__decorate||function(R,M,U,$){var z,W=arguments.length,B=W<3?M:$===null?$=Object.getOwnPropertyDescriptor(M,U):$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")B=Reflect.decorate(R,M,U,$);else for(var x=R.length-1;x>=0;x--)(z=R[x])&&(B=(W<3?z(B):W>3?z(M,U,B):z(M,U))||B);return W>3&&B&&Object.defineProperty(M,U,B),B},f=this&&this.__param||function(R,M){return function(U,$){M(U,$,R)}};Object.defineProperty(i,"__esModule",{value:!0}),i.DomRenderer=void 0;const u=a(3787),v=a(2550),y=a(2223),E=a(6171),p=a(6052),o=a(4725),c=a(8055),n=a(8460),d=a(844),g=a(2585),C="xterm-dom-renderer-owner-",S="xterm-rows",w="xterm-fg-",b="xterm-bg-",k="xterm-focus",A="xterm-selection";let T=1,L=i.DomRenderer=class extends d.Disposable{constructor(R,M,U,$,z,W,B,x,D,O,V,G,X){super(),this._terminal=R,this._document=M,this._element=U,this._screenElement=$,this._viewportElement=z,this._helperContainer=W,this._linkifier2=B,this._charSizeService=D,this._optionsService=O,this._bufferService=V,this._coreBrowserService=G,this._themeService=X,this._terminalClass=T++,this._rowElements=[],this._selectionRenderModel=(0,p.createSelectionRenderModel)(),this.onRequestRedraw=this.register(new n.EventEmitter).event,this._rowContainer=this._document.createElement("div"),this._rowContainer.classList.add(S),this._rowContainer.style.lineHeight="normal",this._rowContainer.setAttribute("aria-hidden","true"),this._refreshRowElements(this._bufferService.cols,this._bufferService.rows),this._selectionContainer=this._document.createElement("div"),this._selectionContainer.classList.add(A),this._selectionContainer.setAttribute("aria-hidden","true"),this.dimensions=(0,E.createRenderDimensions)(),this._updateDimensions(),this.register(this._optionsService.onOptionChange((()=>this._handleOptionsChanged()))),this.register(this._themeService.onChangeColors((J=>this._injectCss(J)))),this._injectCss(this._themeService.colors),this._rowFactory=x.createInstance(u.DomRendererRowFactory,document),this._element.classList.add(C+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this.register(this._linkifier2.onShowLinkUnderline((J=>this._handleLinkHover(J)))),this.register(this._linkifier2.onHideLinkUnderline((J=>this._handleLinkLeave(J)))),this.register((0,d.toDisposable)((()=>{this._element.classList.remove(C+this._terminalClass),this._rowContainer.remove(),this._selectionContainer.remove(),this._widthCache.dispose(),this._themeStyleElement.remove(),this._dimensionsStyleElement.remove()}))),this._widthCache=new v.WidthCache(this._document,this._helperContainer),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}_updateDimensions(){const R=this._coreBrowserService.dpr;this.dimensions.device.char.width=this._charSizeService.width*R,this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*R),this.dimensions.device.cell.width=this.dimensions.device.char.width+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.device.cell.height=Math.floor(this.dimensions.device.char.height*this._optionsService.rawOptions.lineHeight),this.dimensions.device.char.left=0,this.dimensions.device.char.top=0,this.dimensions.device.canvas.width=this.dimensions.device.cell.width*this._bufferService.cols,this.dimensions.device.canvas.height=this.dimensions.device.cell.height*this._bufferService.rows,this.dimensions.css.canvas.width=Math.round(this.dimensions.device.canvas.width/R),this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/R),this.dimensions.css.cell.width=this.dimensions.css.canvas.width/this._bufferService.cols,this.dimensions.css.cell.height=this.dimensions.css.canvas.height/this._bufferService.rows;for(const U of this._rowElements)U.style.width=`${this.dimensions.css.canvas.width}px`,U.style.height=`${this.dimensions.css.cell.height}px`,U.style.lineHeight=`${this.dimensions.css.cell.height}px`,U.style.overflow="hidden";this._dimensionsStyleElement||(this._dimensionsStyleElement=this._document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));const M=`${this._terminalSelector} .${S} span { display: inline-block; height: 100%; vertical-align: top;}`;this._dimensionsStyleElement.textContent=M,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=`${this.dimensions.css.canvas.width}px`,this._screenElement.style.height=`${this.dimensions.css.canvas.height}px`}_injectCss(R){this._themeStyleElement||(this._themeStyleElement=this._document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));let M=`${this._terminalSelector} .${S} { color: ${R.foreground.css}; font-family: ${this._optionsService.rawOptions.fontFamily}; font-size: ${this._optionsService.rawOptions.fontSize}px; font-kerning: none; white-space: pre}`;M+=`${this._terminalSelector} .${S} .xterm-dim { color: ${c.color.multiplyOpacity(R.foreground,.5).css};}`,M+=`${this._terminalSelector} span:not(.xterm-bold) { font-weight: ${this._optionsService.rawOptions.fontWeight};}${this._terminalSelector} span.xterm-bold { font-weight: ${this._optionsService.rawOptions.fontWeightBold};}${this._terminalSelector} span.xterm-italic { font-style: italic;}`;const U=`blink_underline_${this._terminalClass}`,$=`blink_bar_${this._terminalClass}`,z=`blink_block_${this._terminalClass}`;M+=`@keyframes ${U} { 50% { border-bottom-style: hidden; }}`,M+=`@keyframes ${$} { 50% { box-shadow: none; }}`,M+=`@keyframes ${z} { 0% { background-color: ${R.cursor.css}; color: ${R.cursorAccent.css}; } 50% { background-color: inherit; color: ${R.cursor.css}; }}`,M+=`${this._terminalSelector} .${S}.${k} .xterm-cursor.xterm-cursor-blink.xterm-cursor-underline { animation: ${U} 1s step-end infinite;}${this._terminalSelector} .${S}.${k} .xterm-cursor.xterm-cursor-blink.xterm-cursor-bar { animation: ${$} 1s step-end infinite;}${this._terminalSelector} .${S}.${k} .xterm-cursor.xterm-cursor-blink.xterm-cursor-block { animation: ${z} 1s step-end infinite;}${this._terminalSelector} .${S} .xterm-cursor.xterm-cursor-block { background-color: ${R.cursor.css}; color: ${R.cursorAccent.css};}${this._terminalSelector} .${S} .xterm-cursor.xterm-cursor-block:not(.xterm-cursor-blink) { background-color: ${R.cursor.css} !important; color: ${R.cursorAccent.css} !important;}${this._terminalSelector} .${S} .xterm-cursor.xterm-cursor-outline { outline: 1px solid ${R.cursor.css}; outline-offset: -1px;}${this._terminalSelector} .${S} .xterm-cursor.xterm-cursor-bar { box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${R.cursor.css} inset;}${this._terminalSelector} .${S} .xterm-cursor.xterm-cursor-underline { border-bottom: 1px ${R.cursor.css}; border-bottom-style: solid; height: calc(100% - 1px);}`,M+=`${this._terminalSelector} .${A} { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .${A} div { position: absolute; background-color: ${R.selectionBackgroundOpaque.css};}${this._terminalSelector} .${A} div { position: absolute; background-color: ${R.selectionInactiveBackgroundOpaque.css};}`;for(const[W,B]of R.ansi.entries())M+=`${this._terminalSelector} .${w}${W} { color: ${B.css}; }${this._terminalSelector} .${w}${W}.xterm-dim { color: ${c.color.multiplyOpacity(B,.5).css}; }${this._terminalSelector} .${b}${W} { background-color: ${B.css}; }`;M+=`${this._terminalSelector} .${w}${y.INVERTED_DEFAULT_COLOR} { color: ${c.color.opaque(R.background).css}; }${this._terminalSelector} .${w}${y.INVERTED_DEFAULT_COLOR}.xterm-dim { color: ${c.color.multiplyOpacity(c.color.opaque(R.background),.5).css}; }${this._terminalSelector} .${b}${y.INVERTED_DEFAULT_COLOR} { background-color: ${R.foreground.css}; }`,this._themeStyleElement.textContent=M}_setDefaultSpacing(){const R=this.dimensions.css.cell.width-this._widthCache.get("W",!1,!1);this._rowContainer.style.letterSpacing=`${R}px`,this._rowFactory.defaultSpacing=R}handleDevicePixelRatioChange(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}_refreshRowElements(R,M){for(let U=this._rowElements.length;U<=M;U++){const $=this._document.createElement("div");this._rowContainer.appendChild($),this._rowElements.push($)}for(;this._rowElements.length>M;)this._rowContainer.removeChild(this._rowElements.pop())}handleResize(R,M){this._refreshRowElements(R,M),this._updateDimensions(),this.handleSelectionChanged(this._selectionRenderModel.selectionStart,this._selectionRenderModel.selectionEnd,this._selectionRenderModel.columnSelectMode)}handleCharSizeChanged(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}handleBlur(){this._rowContainer.classList.remove(k),this.renderRows(0,this._bufferService.rows-1)}handleFocus(){this._rowContainer.classList.add(k),this.renderRows(this._bufferService.buffer.y,this._bufferService.buffer.y)}handleSelectionChanged(R,M,U){if(this._selectionContainer.replaceChildren(),this._rowFactory.handleSelectionChanged(R,M,U),this.renderRows(0,this._bufferService.rows-1),!R||!M)return;this._selectionRenderModel.update(this._terminal,R,M,U);const $=this._selectionRenderModel.viewportStartRow,z=this._selectionRenderModel.viewportEndRow,W=this._selectionRenderModel.viewportCappedStartRow,B=this._selectionRenderModel.viewportCappedEndRow;if(W>=this._bufferService.rows||B<0)return;const x=this._document.createDocumentFragment();if(U){const D=R[0]>M[0];x.appendChild(this._createSelectionElement(W,D?M[0]:R[0],D?R[0]:M[0],B-W+1))}else{const D=$===W?R[0]:0,O=W===z?M[0]:this._bufferService.cols;x.appendChild(this._createSelectionElement(W,D,O));const V=B-W-1;if(x.appendChild(this._createSelectionElement(W+1,0,this._bufferService.cols,V)),W!==B){const G=z===B?M[0]:this._bufferService.cols;x.appendChild(this._createSelectionElement(B,0,G))}}this._selectionContainer.appendChild(x)}_createSelectionElement(R,M,U,$=1){const z=this._document.createElement("div"),W=M*this.dimensions.css.cell.width;let B=this.dimensions.css.cell.width*(U-M);return W+B>this.dimensions.css.canvas.width&&(B=this.dimensions.css.canvas.width-W),z.style.height=$*this.dimensions.css.cell.height+"px",z.style.top=R*this.dimensions.css.cell.height+"px",z.style.left=`${W}px`,z.style.width=`${B}px`,z}handleCursorMove(){}_handleOptionsChanged(){this._updateDimensions(),this._injectCss(this._themeService.colors),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}clear(){for(const R of this._rowElements)R.replaceChildren()}renderRows(R,M){const U=this._bufferService.buffer,$=U.ybase+U.y,z=Math.min(U.x,this._bufferService.cols-1),W=this._optionsService.rawOptions.cursorBlink,B=this._optionsService.rawOptions.cursorStyle,x=this._optionsService.rawOptions.cursorInactiveStyle;for(let D=R;D<=M;D++){const O=D+U.ydisp,V=this._rowElements[D],G=U.lines.get(O);if(!V||!G)break;V.replaceChildren(...this._rowFactory.createRow(G,O,O===$,B,x,z,W,this.dimensions.css.cell.width,this._widthCache,-1,-1))}}get _terminalSelector(){return`.${C}${this._terminalClass}`}_handleLinkHover(R){this._setCellUnderline(R.x1,R.x2,R.y1,R.y2,R.cols,!0)}_handleLinkLeave(R){this._setCellUnderline(R.x1,R.x2,R.y1,R.y2,R.cols,!1)}_setCellUnderline(R,M,U,$,z,W){U<0&&(R=0),$<0&&(M=0);const B=this._bufferService.rows-1;U=Math.max(Math.min(U,B),0),$=Math.max(Math.min($,B),0),z=Math.min(z,this._bufferService.cols);const x=this._bufferService.buffer,D=x.ybase+x.y,O=Math.min(x.x,z-1),V=this._optionsService.rawOptions.cursorBlink,G=this._optionsService.rawOptions.cursorStyle,X=this._optionsService.rawOptions.cursorInactiveStyle;for(let J=U;J<=$;++J){const N=J+x.ydisp,I=this._rowElements[J],H=x.lines.get(N);if(!I||!H)break;I.replaceChildren(...this._rowFactory.createRow(H,N,N===D,G,X,O,V,this.dimensions.css.cell.width,this._widthCache,W?J===U?R:0:-1,W?(J===$?M:z)-1:-1))}}};i.DomRenderer=L=h([f(7,g.IInstantiationService),f(8,o.ICharSizeService),f(9,g.IOptionsService),f(10,g.IBufferService),f(11,o.ICoreBrowserService),f(12,o.IThemeService)],L)},3787:function(m,i,a){var h=this&&this.__decorate||function(S,w,b,k){var A,T=arguments.length,L=T<3?w:k===null?k=Object.getOwnPropertyDescriptor(w,b):k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(S,w,b,k);else for(var R=S.length-1;R>=0;R--)(A=S[R])&&(L=(T<3?A(L):T>3?A(w,b,L):A(w,b))||L);return T>3&&L&&Object.defineProperty(w,b,L),L},f=this&&this.__param||function(S,w){return function(b,k){w(b,k,S)}};Object.defineProperty(i,"__esModule",{value:!0}),i.DomRendererRowFactory=void 0;const u=a(2223),v=a(643),y=a(511),E=a(2585),p=a(8055),o=a(4725),c=a(4269),n=a(6171),d=a(3734);let g=i.DomRendererRowFactory=class{constructor(S,w,b,k,A,T,L){this._document=S,this._characterJoinerService=w,this._optionsService=b,this._coreBrowserService=k,this._coreService=A,this._decorationService=T,this._themeService=L,this._workCell=new y.CellData,this._columnSelectMode=!1,this.defaultSpacing=0}handleSelectionChanged(S,w,b){this._selectionStart=S,this._selectionEnd=w,this._columnSelectMode=b}createRow(S,w,b,k,A,T,L,R,M,U,$){const z=[],W=this._characterJoinerService.getJoinedCharacters(w),B=this._themeService.colors;let x,D=S.getNoBgTrimmedLength();b&&D<T+1&&(D=T+1);let O=0,V="",G=0,X=0,J=0,N=!1,I=0,H=!1,P=0;const Z=[],j=U!==-1&&$!==-1;for(let re=0;re<D;re++){S.loadCell(re,this._workCell);let de=this._workCell.getWidth();if(de===0)continue;let he=!1,ke=re,q=this._workCell;if(W.length>0&&re===W[0][0]){he=!0;const ae=W.shift();q=new c.JoinedCellData(this._workCell,S.translateToString(!0,ae[0],ae[1]),ae[1]-ae[0]),ke=ae[1]-1,de=q.getWidth()}const At=this._isCellInSelection(re,w),Gr=b&&re===T,jr=j&&re>=U&&re<=$;let Zr=!1;this._decorationService.forEachDecorationAtCell(re,w,void 0,(ae=>{Zr=!0}));let ar=q.getChars()||v.WHITESPACE_CELL_CHAR;if(ar===" "&&(q.isUnderline()||q.isOverline())&&(ar=" "),P=de*R-M.get(ar,q.isBold(),q.isItalic()),x){if(O&&(At&&H||!At&&!H&&q.bg===G)&&(At&&H&&B.selectionForeground||q.fg===X)&&q.extended.ext===J&&jr===N&&P===I&&!Gr&&!he&&!Zr){q.isInvisible()?V+=v.WHITESPACE_CELL_CHAR:V+=ar,O++;continue}O&&(x.textContent=V),x=this._document.createElement("span"),O=0,V=""}else x=this._document.createElement("span");if(G=q.bg,X=q.fg,J=q.extended.ext,N=jr,I=P,H=At,he&&T>=re&&T<=ke&&(T=re),!this._coreService.isCursorHidden&&Gr&&this._coreService.isCursorInitialized){if(Z.push("xterm-cursor"),this._coreBrowserService.isFocused)L&&Z.push("xterm-cursor-blink"),Z.push(k==="bar"?"xterm-cursor-bar":k==="underline"?"xterm-cursor-underline":"xterm-cursor-block");else if(A)switch(A){case"outline":Z.push("xterm-cursor-outline");break;case"block":Z.push("xterm-cursor-block");break;case"bar":Z.push("xterm-cursor-bar");break;case"underline":Z.push("xterm-cursor-underline")}}if(q.isBold()&&Z.push("xterm-bold"),q.isItalic()&&Z.push("xterm-italic"),q.isDim()&&Z.push("xterm-dim"),V=q.isInvisible()?v.WHITESPACE_CELL_CHAR:q.getChars()||v.WHITESPACE_CELL_CHAR,q.isUnderline()&&(Z.push(`xterm-underline-${q.extended.underlineStyle}`),V===" "&&(V=" "),!q.isUnderlineColorDefault()))if(q.isUnderlineColorRGB())x.style.textDecorationColor=`rgb(${d.AttributeData.toColorRGB(q.getUnderlineColor()).join(",")})`;else{let ae=q.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&q.isBold()&&ae<8&&(ae+=8),x.style.textDecorationColor=B.ansi[ae].css}q.isOverline()&&(Z.push("xterm-overline"),V===" "&&(V=" ")),q.isStrikethrough()&&Z.push("xterm-strikethrough"),jr&&(x.style.textDecoration="underline");let Te=q.getFgColor(),xt=q.getFgColorMode(),Fe=q.getBgColor(),Tt=q.getBgColorMode();const zr=!!q.isInverse();if(zr){const ae=Te;Te=Fe,Fe=ae;const ja=xt;xt=Tt,Tt=ja}let ze,cr,Ke,Lt=!1;switch(this._decorationService.forEachDecorationAtCell(re,w,void 0,(ae=>{ae.options.layer!=="top"&&Lt||(ae.backgroundColorRGB&&(Tt=50331648,Fe=ae.backgroundColorRGB.rgba>>8&16777215,ze=ae.backgroundColorRGB),ae.foregroundColorRGB&&(xt=50331648,Te=ae.foregroundColorRGB.rgba>>8&16777215,cr=ae.foregroundColorRGB),Lt=ae.options.layer==="top")})),!Lt&&At&&(ze=this._coreBrowserService.isFocused?B.selectionBackgroundOpaque:B.selectionInactiveBackgroundOpaque,Fe=ze.rgba>>8&16777215,Tt=50331648,Lt=!0,B.selectionForeground&&(xt=50331648,Te=B.selectionForeground.rgba>>8&16777215,cr=B.selectionForeground)),Lt&&Z.push("xterm-decoration-top"),Tt){case 16777216:case 33554432:Ke=B.ansi[Fe],Z.push(`xterm-bg-${Fe}`);break;case 50331648:Ke=p.channels.toColor(Fe>>16,Fe>>8&255,255&Fe),this._addStyle(x,`background-color:#${C((Fe>>>0).toString(16),"0",6)}`);break;default:zr?(Ke=B.foreground,Z.push(`xterm-bg-${u.INVERTED_DEFAULT_COLOR}`)):Ke=B.background}switch(ze||q.isDim()&&(ze=p.color.multiplyOpacity(Ke,.5)),xt){case 16777216:case 33554432:q.isBold()&&Te<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(Te+=8),this._applyMinimumContrast(x,Ke,B.ansi[Te],q,ze,void 0)||Z.push(`xterm-fg-${Te}`);break;case 50331648:const ae=p.channels.toColor(Te>>16&255,Te>>8&255,255&Te);this._applyMinimumContrast(x,Ke,ae,q,ze,cr)||this._addStyle(x,`color:#${C(Te.toString(16),"0",6)}`);break;default:this._applyMinimumContrast(x,Ke,B.foreground,q,ze,cr)||zr&&Z.push(`xterm-fg-${u.INVERTED_DEFAULT_COLOR}`)}Z.length&&(x.className=Z.join(" "),Z.length=0),Gr||he||Zr?x.textContent=V:O++,P!==this.defaultSpacing&&(x.style.letterSpacing=`${P}px`),z.push(x),re=ke}return x&&O&&(x.textContent=V),z}_applyMinimumContrast(S,w,b,k,A,T){if(this._optionsService.rawOptions.minimumContrastRatio===1||(0,n.treatGlyphAsBackgroundColor)(k.getCode()))return!1;const L=this._getContrastCache(k);let R;if(A||T||(R=L.getColor(w.rgba,b.rgba)),R===void 0){const M=this._optionsService.rawOptions.minimumContrastRatio/(k.isDim()?2:1);R=p.color.ensureContrastRatio(A||w,T||b,M),L.setColor((A||w).rgba,(T||b).rgba,R??null)}return!!R&&(this._addStyle(S,`color:${R.css}`),!0)}_getContrastCache(S){return S.isDim()?this._themeService.colors.halfContrastCache:this._themeService.colors.contrastCache}_addStyle(S,w){S.setAttribute("style",`${S.getAttribute("style")||""}${w};`)}_isCellInSelection(S,w){const b=this._selectionStart,k=this._selectionEnd;return!(!b||!k)&&(this._columnSelectMode?b[0]<=k[0]?S>=b[0]&&w>=b[1]&&S<k[0]&&w<=k[1]:S<b[0]&&w>=b[1]&&S>=k[0]&&w<=k[1]:w>b[1]&&w<k[1]||b[1]===k[1]&&w===b[1]&&S>=b[0]&&S<k[0]||b[1]<k[1]&&w===k[1]&&S<k[0]||b[1]<k[1]&&w===b[1]&&S>=b[0])}};function C(S,w,b){for(;S.length<b;)S=w+S;return S}i.DomRendererRowFactory=g=h([f(1,o.ICharacterJoinerService),f(2,E.IOptionsService),f(3,o.ICoreBrowserService),f(4,E.ICoreService),f(5,E.IDecorationService),f(6,o.IThemeService)],g)},2550:(m,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.WidthCache=void 0,i.WidthCache=class{constructor(a,h){this._flat=new Float32Array(256),this._font="",this._fontSize=0,this._weight="normal",this._weightBold="bold",this._measureElements=[],this._container=a.createElement("div"),this._container.classList.add("xterm-width-cache-measure-container"),this._container.setAttribute("aria-hidden","true"),this._container.style.whiteSpace="pre",this._container.style.fontKerning="none";const f=a.createElement("span");f.classList.add("xterm-char-measure-element");const u=a.createElement("span");u.classList.add("xterm-char-measure-element"),u.style.fontWeight="bold";const v=a.createElement("span");v.classList.add("xterm-char-measure-element"),v.style.fontStyle="italic";const y=a.createElement("span");y.classList.add("xterm-char-measure-element"),y.style.fontWeight="bold",y.style.fontStyle="italic",this._measureElements=[f,u,v,y],this._container.appendChild(f),this._container.appendChild(u),this._container.appendChild(v),this._container.appendChild(y),h.appendChild(this._container),this.clear()}dispose(){this._container.remove(),this._measureElements.length=0,this._holey=void 0}clear(){this._flat.fill(-9999),this._holey=new Map}setFont(a,h,f,u){a===this._font&&h===this._fontSize&&f===this._weight&&u===this._weightBold||(this._font=a,this._fontSize=h,this._weight=f,this._weightBold=u,this._container.style.fontFamily=this._font,this._container.style.fontSize=`${this._fontSize}px`,this._measureElements[0].style.fontWeight=`${f}`,this._measureElements[1].style.fontWeight=`${u}`,this._measureElements[2].style.fontWeight=`${f}`,this._measureElements[3].style.fontWeight=`${u}`,this.clear())}get(a,h,f){let u=0;if(!h&&!f&&a.length===1&&(u=a.charCodeAt(0))<256){if(this._flat[u]!==-9999)return this._flat[u];const E=this._measure(a,0);return E>0&&(this._flat[u]=E),E}let v=a;h&&(v+="B"),f&&(v+="I");let y=this._holey.get(v);if(y===void 0){let E=0;h&&(E|=1),f&&(E|=2),y=this._measure(a,E),y>0&&this._holey.set(v,y)}return y}_measure(a,h){const f=this._measureElements[h];return f.textContent=a.repeat(32),f.offsetWidth/32}}},2223:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.TEXT_BASELINE=i.DIM_OPACITY=i.INVERTED_DEFAULT_COLOR=void 0;const h=a(6114);i.INVERTED_DEFAULT_COLOR=257,i.DIM_OPACITY=.5,i.TEXT_BASELINE=h.isFirefox||h.isLegacyEdge?"bottom":"ideographic"},6171:(m,i)=>{function a(f){return 57508<=f&&f<=57558}function h(f){return f>=128512&&f<=128591||f>=127744&&f<=128511||f>=128640&&f<=128767||f>=9728&&f<=9983||f>=9984&&f<=10175||f>=65024&&f<=65039||f>=129280&&f<=129535||f>=127462&&f<=127487}Object.defineProperty(i,"__esModule",{value:!0}),i.computeNextVariantOffset=i.createRenderDimensions=i.treatGlyphAsBackgroundColor=i.allowRescaling=i.isEmoji=i.isRestrictedPowerlineGlyph=i.isPowerlineGlyph=i.throwIfFalsy=void 0,i.throwIfFalsy=function(f){if(!f)throw new Error("value must not be falsy");return f},i.isPowerlineGlyph=a,i.isRestrictedPowerlineGlyph=function(f){return 57520<=f&&f<=57527},i.isEmoji=h,i.allowRescaling=function(f,u,v,y){return u===1&&v>Math.ceil(1.5*y)&&f!==void 0&&f>255&&!h(f)&&!a(f)&&!(function(E){return 57344<=E&&E<=63743})(f)},i.treatGlyphAsBackgroundColor=function(f){return a(f)||(function(u){return 9472<=u&&u<=9631})(f)},i.createRenderDimensions=function(){return{css:{canvas:{width:0,height:0},cell:{width:0,height:0}},device:{canvas:{width:0,height:0},cell:{width:0,height:0},char:{width:0,height:0,left:0,top:0}}}},i.computeNextVariantOffset=function(f,u,v=0){return(f-(2*Math.round(u)-v))%(2*Math.round(u))}},6052:(m,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.createSelectionRenderModel=void 0;class a{constructor(){this.clear()}clear(){this.hasSelection=!1,this.columnSelectMode=!1,this.viewportStartRow=0,this.viewportEndRow=0,this.viewportCappedStartRow=0,this.viewportCappedEndRow=0,this.startCol=0,this.endCol=0,this.selectionStart=void 0,this.selectionEnd=void 0}update(f,u,v,y=!1){if(this.selectionStart=u,this.selectionEnd=v,!u||!v||u[0]===v[0]&&u[1]===v[1])return void this.clear();const E=f.buffers.active.ydisp,p=u[1]-E,o=v[1]-E,c=Math.max(p,0),n=Math.min(o,f.rows-1);c>=f.rows||n<0?this.clear():(this.hasSelection=!0,this.columnSelectMode=y,this.viewportStartRow=p,this.viewportEndRow=o,this.viewportCappedStartRow=c,this.viewportCappedEndRow=n,this.startCol=u[0],this.endCol=v[0])}isCellSelected(f,u,v){return!!this.hasSelection&&(v-=f.buffer.active.viewportY,this.columnSelectMode?this.startCol<=this.endCol?u>=this.startCol&&v>=this.viewportCappedStartRow&&u<this.endCol&&v<=this.viewportCappedEndRow:u<this.startCol&&v>=this.viewportCappedStartRow&&u>=this.endCol&&v<=this.viewportCappedEndRow:v>this.viewportStartRow&&v<this.viewportEndRow||this.viewportStartRow===this.viewportEndRow&&v===this.viewportStartRow&&u>=this.startCol&&u<this.endCol||this.viewportStartRow<this.viewportEndRow&&v===this.viewportEndRow&&u<this.endCol||this.viewportStartRow<this.viewportEndRow&&v===this.viewportStartRow&&u>=this.startCol)}}i.createSelectionRenderModel=function(){return new a}},456:(m,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.SelectionModel=void 0,i.SelectionModel=class{constructor(a){this._bufferService=a,this.isSelectAllActive=!1,this.selectionStartLength=0}clearSelection(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0}get finalSelectionStart(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart}get finalSelectionEnd(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){const a=this.selectionStart[0]+this.selectionStartLength;return a>this._bufferService.cols?a%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(a/this._bufferService.cols)-1]:[a%this._bufferService.cols,this.selectionStart[1]+Math.floor(a/this._bufferService.cols)]:[a,this.selectionStart[1]]}if(this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]){const a=this.selectionStart[0]+this.selectionStartLength;return a>this._bufferService.cols?[a%this._bufferService.cols,this.selectionStart[1]+Math.floor(a/this._bufferService.cols)]:[Math.max(a,this.selectionEnd[0]),this.selectionEnd[1]]}return this.selectionEnd}}areSelectionValuesReversed(){const a=this.selectionStart,h=this.selectionEnd;return!(!a||!h)&&(a[1]>h[1]||a[1]===h[1]&&a[0]>h[0])}handleTrim(a){return this.selectionStart&&(this.selectionStart[1]-=a),this.selectionEnd&&(this.selectionEnd[1]-=a),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}}},428:function(m,i,a){var h=this&&this.__decorate||function(n,d,g,C){var S,w=arguments.length,b=w<3?d:C===null?C=Object.getOwnPropertyDescriptor(d,g):C;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(n,d,g,C);else for(var k=n.length-1;k>=0;k--)(S=n[k])&&(b=(w<3?S(b):w>3?S(d,g,b):S(d,g))||b);return w>3&&b&&Object.defineProperty(d,g,b),b},f=this&&this.__param||function(n,d){return function(g,C){d(g,C,n)}};Object.defineProperty(i,"__esModule",{value:!0}),i.CharSizeService=void 0;const u=a(2585),v=a(8460),y=a(844);let E=i.CharSizeService=class extends y.Disposable{get hasValidSize(){return this.width>0&&this.height>0}constructor(n,d,g){super(),this._optionsService=g,this.width=0,this.height=0,this._onCharSizeChange=this.register(new v.EventEmitter),this.onCharSizeChange=this._onCharSizeChange.event;try{this._measureStrategy=this.register(new c(this._optionsService))}catch{this._measureStrategy=this.register(new o(n,d,this._optionsService))}this.register(this._optionsService.onMultipleOptionChange(["fontFamily","fontSize"],(()=>this.measure())))}measure(){const n=this._measureStrategy.measure();n.width===this.width&&n.height===this.height||(this.width=n.width,this.height=n.height,this._onCharSizeChange.fire())}};i.CharSizeService=E=h([f(2,u.IOptionsService)],E);class p extends y.Disposable{constructor(){super(...arguments),this._result={width:0,height:0}}_validateAndSet(d,g){d!==void 0&&d>0&&g!==void 0&&g>0&&(this._result.width=d,this._result.height=g)}}class o extends p{constructor(d,g,C){super(),this._document=d,this._parentElement=g,this._optionsService=C,this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W".repeat(32),this._measureElement.setAttribute("aria-hidden","true"),this._measureElement.style.whiteSpace="pre",this._measureElement.style.fontKerning="none",this._parentElement.appendChild(this._measureElement)}measure(){return this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=`${this._optionsService.rawOptions.fontSize}px`,this._validateAndSet(Number(this._measureElement.offsetWidth)/32,Number(this._measureElement.offsetHeight)),this._result}}class c extends p{constructor(d){super(),this._optionsService=d,this._canvas=new OffscreenCanvas(100,100),this._ctx=this._canvas.getContext("2d");const g=this._ctx.measureText("W");if(!("width"in g&&"fontBoundingBoxAscent"in g&&"fontBoundingBoxDescent"in g))throw new Error("Required font metrics not supported")}measure(){this._ctx.font=`${this._optionsService.rawOptions.fontSize}px ${this._optionsService.rawOptions.fontFamily}`;const d=this._ctx.measureText("W");return this._validateAndSet(d.width,d.fontBoundingBoxAscent+d.fontBoundingBoxDescent),this._result}}},4269:function(m,i,a){var h=this&&this.__decorate||function(c,n,d,g){var C,S=arguments.length,w=S<3?n:g===null?g=Object.getOwnPropertyDescriptor(n,d):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(c,n,d,g);else for(var b=c.length-1;b>=0;b--)(C=c[b])&&(w=(S<3?C(w):S>3?C(n,d,w):C(n,d))||w);return S>3&&w&&Object.defineProperty(n,d,w),w},f=this&&this.__param||function(c,n){return function(d,g){n(d,g,c)}};Object.defineProperty(i,"__esModule",{value:!0}),i.CharacterJoinerService=i.JoinedCellData=void 0;const u=a(3734),v=a(643),y=a(511),E=a(2585);class p extends u.AttributeData{constructor(n,d,g){super(),this.content=0,this.combinedData="",this.fg=n.fg,this.bg=n.bg,this.combinedData=d,this._width=g}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(n){throw new Error("not implemented")}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}i.JoinedCellData=p;let o=i.CharacterJoinerService=class jo{constructor(n){this._bufferService=n,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new y.CellData}register(n){const d={id:this._nextCharacterJoinerId++,handler:n};return this._characterJoiners.push(d),d.id}deregister(n){for(let d=0;d<this._characterJoiners.length;d++)if(this._characterJoiners[d].id===n)return this._characterJoiners.splice(d,1),!0;return!1}getJoinedCharacters(n){if(this._characterJoiners.length===0)return[];const d=this._bufferService.buffer.lines.get(n);if(!d||d.length===0)return[];const g=[],C=d.translateToString(!0);let S=0,w=0,b=0,k=d.getFg(0),A=d.getBg(0);for(let T=0;T<d.getTrimmedLength();T++)if(d.loadCell(T,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==k||this._workCell.bg!==A){if(T-S>1){const L=this._getJoinedRanges(C,b,w,d,S);for(let R=0;R<L.length;R++)g.push(L[R])}S=T,b=w,k=this._workCell.fg,A=this._workCell.bg}w+=this._workCell.getChars().length||v.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-S>1){const T=this._getJoinedRanges(C,b,w,d,S);for(let L=0;L<T.length;L++)g.push(T[L])}return g}_getJoinedRanges(n,d,g,C,S){const w=n.substring(d,g);let b=[];try{b=this._characterJoiners[0].handler(w)}catch(k){console.error(k)}for(let k=1;k<this._characterJoiners.length;k++)try{const A=this._characterJoiners[k].handler(w);for(let T=0;T<A.length;T++)jo._mergeRanges(b,A[T])}catch(A){console.error(A)}return this._stringRangesToCellRanges(b,C,S),b}_stringRangesToCellRanges(n,d,g){let C=0,S=!1,w=0,b=n[C];if(b){for(let k=g;k<this._bufferService.cols;k++){const A=d.getWidth(k),T=d.getString(k).length||v.WHITESPACE_CELL_CHAR.length;if(A!==0){if(!S&&b[0]<=w&&(b[0]=k,S=!0),b[1]<=w){if(b[1]=k,b=n[++C],!b)break;b[0]<=w?(b[0]=k,S=!0):S=!1}w+=T}}b&&(b[1]=this._bufferService.cols)}}static _mergeRanges(n,d){let g=!1;for(let C=0;C<n.length;C++){const S=n[C];if(g){if(d[1]<=S[0])return n[C-1][1]=d[1],n;if(d[1]<=S[1])return n[C-1][1]=Math.max(d[1],S[1]),n.splice(C,1),n;n.splice(C,1),C--}else{if(d[1]<=S[0])return n.splice(C,0,d),n;if(d[1]<=S[1])return S[0]=Math.min(d[0],S[0]),n;d[0]<S[1]&&(S[0]=Math.min(d[0],S[0]),g=!0)}}return g?n[n.length-1][1]=d[1]:n.push(d),n}};i.CharacterJoinerService=o=h([f(0,E.IBufferService)],o)},5114:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.CoreBrowserService=void 0;const h=a(844),f=a(8460),u=a(3656);class v extends h.Disposable{constructor(p,o,c){super(),this._textarea=p,this._window=o,this.mainDocument=c,this._isFocused=!1,this._cachedIsFocused=void 0,this._screenDprMonitor=new y(this._window),this._onDprChange=this.register(new f.EventEmitter),this.onDprChange=this._onDprChange.event,this._onWindowChange=this.register(new f.EventEmitter),this.onWindowChange=this._onWindowChange.event,this.register(this.onWindowChange((n=>this._screenDprMonitor.setWindow(n)))),this.register((0,f.forwardEvent)(this._screenDprMonitor.onDprChange,this._onDprChange)),this._textarea.addEventListener("focus",(()=>this._isFocused=!0)),this._textarea.addEventListener("blur",(()=>this._isFocused=!1))}get window(){return this._window}set window(p){this._window!==p&&(this._window=p,this._onWindowChange.fire(this._window))}get dpr(){return this.window.devicePixelRatio}get isFocused(){return this._cachedIsFocused===void 0&&(this._cachedIsFocused=this._isFocused&&this._textarea.ownerDocument.hasFocus(),queueMicrotask((()=>this._cachedIsFocused=void 0))),this._cachedIsFocused}}i.CoreBrowserService=v;class y extends h.Disposable{constructor(p){super(),this._parentWindow=p,this._windowResizeListener=this.register(new h.MutableDisposable),this._onDprChange=this.register(new f.EventEmitter),this.onDprChange=this._onDprChange.event,this._outerListener=()=>this._setDprAndFireIfDiffers(),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._updateDpr(),this._setWindowResizeListener(),this.register((0,h.toDisposable)((()=>this.clearListener())))}setWindow(p){this._parentWindow=p,this._setWindowResizeListener(),this._setDprAndFireIfDiffers()}_setWindowResizeListener(){this._windowResizeListener.value=(0,u.addDisposableDomListener)(this._parentWindow,"resize",(()=>this._setDprAndFireIfDiffers()))}_setDprAndFireIfDiffers(){this._parentWindow.devicePixelRatio!==this._currentDevicePixelRatio&&this._onDprChange.fire(this._parentWindow.devicePixelRatio),this._updateDpr()}_updateDpr(){var p;this._outerListener&&((p=this._resolutionMediaMatchList)==null||p.removeListener(this._outerListener),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._resolutionMediaMatchList=this._parentWindow.matchMedia(`screen and (resolution: ${this._parentWindow.devicePixelRatio}dppx)`),this._resolutionMediaMatchList.addListener(this._outerListener))}clearListener(){this._resolutionMediaMatchList&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._outerListener=void 0)}}},779:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.LinkProviderService=void 0;const h=a(844);class f extends h.Disposable{constructor(){super(),this.linkProviders=[],this.register((0,h.toDisposable)((()=>this.linkProviders.length=0)))}registerLinkProvider(v){return this.linkProviders.push(v),{dispose:()=>{const y=this.linkProviders.indexOf(v);y!==-1&&this.linkProviders.splice(y,1)}}}}i.LinkProviderService=f},8934:function(m,i,a){var h=this&&this.__decorate||function(E,p,o,c){var n,d=arguments.length,g=d<3?p:c===null?c=Object.getOwnPropertyDescriptor(p,o):c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(E,p,o,c);else for(var C=E.length-1;C>=0;C--)(n=E[C])&&(g=(d<3?n(g):d>3?n(p,o,g):n(p,o))||g);return d>3&&g&&Object.defineProperty(p,o,g),g},f=this&&this.__param||function(E,p){return function(o,c){p(o,c,E)}};Object.defineProperty(i,"__esModule",{value:!0}),i.MouseService=void 0;const u=a(4725),v=a(9806);let y=i.MouseService=class{constructor(E,p){this._renderService=E,this._charSizeService=p}getCoords(E,p,o,c,n){return(0,v.getCoords)(window,E,p,o,c,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,n)}getMouseReportCoords(E,p){const o=(0,v.getCoordsRelativeToElement)(window,E,p);if(this._charSizeService.hasValidSize)return o[0]=Math.min(Math.max(o[0],0),this._renderService.dimensions.css.canvas.width-1),o[1]=Math.min(Math.max(o[1],0),this._renderService.dimensions.css.canvas.height-1),{col:Math.floor(o[0]/this._renderService.dimensions.css.cell.width),row:Math.floor(o[1]/this._renderService.dimensions.css.cell.height),x:Math.floor(o[0]),y:Math.floor(o[1])}}};i.MouseService=y=h([f(0,u.IRenderService),f(1,u.ICharSizeService)],y)},3230:function(m,i,a){var h=this&&this.__decorate||function(n,d,g,C){var S,w=arguments.length,b=w<3?d:C===null?C=Object.getOwnPropertyDescriptor(d,g):C;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(n,d,g,C);else for(var k=n.length-1;k>=0;k--)(S=n[k])&&(b=(w<3?S(b):w>3?S(d,g,b):S(d,g))||b);return w>3&&b&&Object.defineProperty(d,g,b),b},f=this&&this.__param||function(n,d){return function(g,C){d(g,C,n)}};Object.defineProperty(i,"__esModule",{value:!0}),i.RenderService=void 0;const u=a(6193),v=a(4725),y=a(8460),E=a(844),p=a(7226),o=a(2585);let c=i.RenderService=class extends E.Disposable{get dimensions(){return this._renderer.value.dimensions}constructor(n,d,g,C,S,w,b,k){super(),this._rowCount=n,this._charSizeService=C,this._renderer=this.register(new E.MutableDisposable),this._pausedResizeTask=new p.DebouncedIdleTask,this._observerDisposable=this.register(new E.MutableDisposable),this._isPaused=!1,this._needsFullRefresh=!1,this._isNextRenderRedrawOnly=!0,this._needsSelectionRefresh=!1,this._canvasWidth=0,this._canvasHeight=0,this._selectionState={start:void 0,end:void 0,columnSelectMode:!1},this._onDimensionsChange=this.register(new y.EventEmitter),this.onDimensionsChange=this._onDimensionsChange.event,this._onRenderedViewportChange=this.register(new y.EventEmitter),this.onRenderedViewportChange=this._onRenderedViewportChange.event,this._onRender=this.register(new y.EventEmitter),this.onRender=this._onRender.event,this._onRefreshRequest=this.register(new y.EventEmitter),this.onRefreshRequest=this._onRefreshRequest.event,this._renderDebouncer=new u.RenderDebouncer(((A,T)=>this._renderRows(A,T)),b),this.register(this._renderDebouncer),this.register(b.onDprChange((()=>this.handleDevicePixelRatioChange()))),this.register(w.onResize((()=>this._fullRefresh()))),this.register(w.buffers.onBufferActivate((()=>{var A;return(A=this._renderer.value)==null?void 0:A.clear()}))),this.register(g.onOptionChange((()=>this._handleOptionsChanged()))),this.register(this._charSizeService.onCharSizeChange((()=>this.handleCharSizeChanged()))),this.register(S.onDecorationRegistered((()=>this._fullRefresh()))),this.register(S.onDecorationRemoved((()=>this._fullRefresh()))),this.register(g.onMultipleOptionChange(["customGlyphs","drawBoldTextInBrightColors","letterSpacing","lineHeight","fontFamily","fontSize","fontWeight","fontWeightBold","minimumContrastRatio","rescaleOverlappingGlyphs"],(()=>{this.clear(),this.handleResize(w.cols,w.rows),this._fullRefresh()}))),this.register(g.onMultipleOptionChange(["cursorBlink","cursorStyle"],(()=>this.refreshRows(w.buffer.y,w.buffer.y,!0)))),this.register(k.onChangeColors((()=>this._fullRefresh()))),this._registerIntersectionObserver(b.window,d),this.register(b.onWindowChange((A=>this._registerIntersectionObserver(A,d))))}_registerIntersectionObserver(n,d){if("IntersectionObserver"in n){const g=new n.IntersectionObserver((C=>this._handleIntersectionChange(C[C.length-1])),{threshold:0});g.observe(d),this._observerDisposable.value=(0,E.toDisposable)((()=>g.disconnect()))}}_handleIntersectionChange(n){this._isPaused=n.isIntersecting===void 0?n.intersectionRatio===0:!n.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this._pausedResizeTask.flush(),this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)}refreshRows(n,d,g=!1){this._isPaused?this._needsFullRefresh=!0:(g||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(n,d,this._rowCount))}_renderRows(n,d){this._renderer.value&&(n=Math.min(n,this._rowCount-1),d=Math.min(d,this._rowCount-1),this._renderer.value.renderRows(n,d),this._needsSelectionRefresh&&(this._renderer.value.handleSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:n,end:d}),this._onRender.fire({start:n,end:d}),this._isNextRenderRedrawOnly=!0)}resize(n,d){this._rowCount=d,this._fireOnCanvasResize()}_handleOptionsChanged(){this._renderer.value&&(this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize())}_fireOnCanvasResize(){this._renderer.value&&(this._renderer.value.dimensions.css.canvas.width===this._canvasWidth&&this._renderer.value.dimensions.css.canvas.height===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.value.dimensions))}hasRenderer(){return!!this._renderer.value}setRenderer(n){this._renderer.value=n,this._renderer.value&&(this._renderer.value.onRequestRedraw((d=>this.refreshRows(d.start,d.end,!0))),this._needsSelectionRefresh=!0,this._fullRefresh())}addRefreshCallback(n){return this._renderDebouncer.addRefreshCallback(n)}_fullRefresh(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}clearTextureAtlas(){var n,d;this._renderer.value&&((d=(n=this._renderer.value).clearTextureAtlas)==null||d.call(n),this._fullRefresh())}handleDevicePixelRatioChange(){this._charSizeService.measure(),this._renderer.value&&(this._renderer.value.handleDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1))}handleResize(n,d){this._renderer.value&&(this._isPaused?this._pausedResizeTask.set((()=>{var g;return(g=this._renderer.value)==null?void 0:g.handleResize(n,d)})):this._renderer.value.handleResize(n,d),this._fullRefresh())}handleCharSizeChanged(){var n;(n=this._renderer.value)==null||n.handleCharSizeChanged()}handleBlur(){var n;(n=this._renderer.value)==null||n.handleBlur()}handleFocus(){var n;(n=this._renderer.value)==null||n.handleFocus()}handleSelectionChanged(n,d,g){var C;this._selectionState.start=n,this._selectionState.end=d,this._selectionState.columnSelectMode=g,(C=this._renderer.value)==null||C.handleSelectionChanged(n,d,g)}handleCursorMove(){var n;(n=this._renderer.value)==null||n.handleCursorMove()}clear(){var n;(n=this._renderer.value)==null||n.clear()}};i.RenderService=c=h([f(2,o.IOptionsService),f(3,v.ICharSizeService),f(4,o.IDecorationService),f(5,o.IBufferService),f(6,v.ICoreBrowserService),f(7,v.IThemeService)],c)},9312:function(m,i,a){var h=this&&this.__decorate||function(b,k,A,T){var L,R=arguments.length,M=R<3?k:T===null?T=Object.getOwnPropertyDescriptor(k,A):T;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")M=Reflect.decorate(b,k,A,T);else for(var U=b.length-1;U>=0;U--)(L=b[U])&&(M=(R<3?L(M):R>3?L(k,A,M):L(k,A))||M);return R>3&&M&&Object.defineProperty(k,A,M),M},f=this&&this.__param||function(b,k){return function(A,T){k(A,T,b)}};Object.defineProperty(i,"__esModule",{value:!0}),i.SelectionService=void 0;const u=a(9806),v=a(9504),y=a(456),E=a(4725),p=a(8460),o=a(844),c=a(6114),n=a(4841),d=a(511),g=a(2585),C=" ",S=new RegExp(C,"g");let w=i.SelectionService=class extends o.Disposable{constructor(b,k,A,T,L,R,M,U,$){super(),this._element=b,this._screenElement=k,this._linkifier=A,this._bufferService=T,this._coreService=L,this._mouseService=R,this._optionsService=M,this._renderService=U,this._coreBrowserService=$,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new d.CellData,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this.register(new p.EventEmitter),this.onLinuxMouseSelection=this._onLinuxMouseSelection.event,this._onRedrawRequest=this.register(new p.EventEmitter),this.onRequestRedraw=this._onRedrawRequest.event,this._onSelectionChange=this.register(new p.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onRequestScrollLines=this.register(new p.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this._mouseMoveListener=z=>this._handleMouseMove(z),this._mouseUpListener=z=>this._handleMouseUp(z),this._coreService.onUserInput((()=>{this.hasSelection&&this.clearSelection()})),this._trimListener=this._bufferService.buffer.lines.onTrim((z=>this._handleTrim(z))),this.register(this._bufferService.buffers.onBufferActivate((z=>this._handleBufferActivate(z)))),this.enable(),this._model=new y.SelectionModel(this._bufferService),this._activeSelectionMode=0,this.register((0,o.toDisposable)((()=>{this._removeMouseDownListeners()})))}reset(){this.clearSelection()}disable(){this.clearSelection(),this._enabled=!1}enable(){this._enabled=!0}get selectionStart(){return this._model.finalSelectionStart}get selectionEnd(){return this._model.finalSelectionEnd}get hasSelection(){const b=this._model.finalSelectionStart,k=this._model.finalSelectionEnd;return!(!b||!k||b[0]===k[0]&&b[1]===k[1])}get selectionText(){const b=this._model.finalSelectionStart,k=this._model.finalSelectionEnd;if(!b||!k)return"";const A=this._bufferService.buffer,T=[];if(this._activeSelectionMode===3){if(b[0]===k[0])return"";const L=b[0]<k[0]?b[0]:k[0],R=b[0]<k[0]?k[0]:b[0];for(let M=b[1];M<=k[1];M++){const U=A.translateBufferLineToString(M,!0,L,R);T.push(U)}}else{const L=b[1]===k[1]?k[0]:void 0;T.push(A.translateBufferLineToString(b[1],!0,b[0],L));for(let R=b[1]+1;R<=k[1]-1;R++){const M=A.lines.get(R),U=A.translateBufferLineToString(R,!0);M!=null&&M.isWrapped?T[T.length-1]+=U:T.push(U)}if(b[1]!==k[1]){const R=A.lines.get(k[1]),M=A.translateBufferLineToString(k[1],!0,0,k[0]);R&&R.isWrapped?T[T.length-1]+=M:T.push(M)}}return T.map((L=>L.replace(S," "))).join(c.isWindows?`\r
|
|
163
|
-
`:`
|
|
164
|
-
`)}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(b){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._refresh()))),c.isLinux&&b&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})}_isClickInSelection(b){const k=this._getMouseBufferCoords(b),A=this._model.finalSelectionStart,T=this._model.finalSelectionEnd;return!!(A&&T&&k)&&this._areCoordsInSelection(k,A,T)}isCellInSelection(b,k){const A=this._model.finalSelectionStart,T=this._model.finalSelectionEnd;return!(!A||!T)&&this._areCoordsInSelection([b,k],A,T)}_areCoordsInSelection(b,k,A){return b[1]>k[1]&&b[1]<A[1]||k[1]===A[1]&&b[1]===k[1]&&b[0]>=k[0]&&b[0]<A[0]||k[1]<A[1]&&b[1]===A[1]&&b[0]<A[0]||k[1]<A[1]&&b[1]===k[1]&&b[0]>=k[0]}_selectWordAtCursor(b,k){var A,T;const L=(T=(A=this._linkifier.currentLink)==null?void 0:A.link)==null?void 0:T.range;if(L)return this._model.selectionStart=[L.start.x-1,L.start.y-1],this._model.selectionStartLength=(0,n.getRangeLength)(L,this._bufferService.cols),this._model.selectionEnd=void 0,!0;const R=this._getMouseBufferCoords(b);return!!R&&(this._selectWordAt(R,k),this._model.selectionEnd=void 0,!0)}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(b,k){this._model.clearSelection(),b=Math.max(b,0),k=Math.min(k,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,b],this._model.selectionEnd=[this._bufferService.cols,k],this.refresh(),this._onSelectionChange.fire()}_handleTrim(b){this._model.handleTrim(b)&&this.refresh()}_getMouseBufferCoords(b){const k=this._mouseService.getCoords(b,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(k)return k[0]--,k[1]--,k[1]+=this._bufferService.buffer.ydisp,k}_getMouseEventScrollAmount(b){let k=(0,u.getCoordsRelativeToElement)(this._coreBrowserService.window,b,this._screenElement)[1];const A=this._renderService.dimensions.css.canvas.height;return k>=0&&k<=A?0:(k>A&&(k-=A),k=Math.min(Math.max(k,-50),50),k/=50,k/Math.abs(k)+Math.round(14*k))}shouldForceSelection(b){return c.isMac?b.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:b.shiftKey}handleMouseDown(b){if(this._mouseDownTimeStamp=b.timeStamp,(b.button!==2||!this.hasSelection)&&b.button===0){if(!this._enabled){if(!this.shouldForceSelection(b))return;b.stopPropagation()}b.preventDefault(),this._dragScrollAmount=0,this._enabled&&b.shiftKey?this._handleIncrementalClick(b):b.detail===1?this._handleSingleClick(b):b.detail===2?this._handleDoubleClick(b):b.detail===3&&this._handleTripleClick(b),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval((()=>this._dragScroll()),50)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_handleIncrementalClick(b){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(b))}_handleSingleClick(b){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(b)?3:0,this._model.selectionStart=this._getMouseBufferCoords(b),!this._model.selectionStart)return;this._model.selectionEnd=void 0;const k=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);k&&k.length!==this._model.selectionStart[0]&&k.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}_handleDoubleClick(b){this._selectWordAtCursor(b,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(b){const k=this._getMouseBufferCoords(b);k&&(this._activeSelectionMode=2,this._selectLineAt(k[1]))}shouldColumnSelect(b){return b.altKey&&!(c.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(b){if(b.stopImmediatePropagation(),!this._model.selectionStart)return;const k=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(b),!this._model.selectionEnd)return void this.refresh(!0);this._activeSelectionMode===2?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:this._activeSelectionMode===1&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(b),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));const A=this._bufferService.buffer;if(this._model.selectionEnd[1]<A.lines.length){const T=A.lines.get(this._model.selectionEnd[1]);T&&T.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]<this._bufferService.cols&&this._model.selectionEnd[0]++}k&&k[0]===this._model.selectionEnd[0]&&k[1]===this._model.selectionEnd[1]||this.refresh(!0)}_dragScroll(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});const b=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(b.ydisp+this._bufferService.rows,b.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=b.ydisp),this.refresh()}}_handleMouseUp(b){const k=b.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&k<500&&b.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){const A=this._mouseService.getCoords(b,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(A&&A[0]!==void 0&&A[1]!==void 0){const T=(0,v.moveToCellSequence)(A[0]-1,A[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(T,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){const b=this._model.finalSelectionStart,k=this._model.finalSelectionEnd,A=!(!b||!k||b[0]===k[0]&&b[1]===k[1]);A?b&&k&&(this._oldSelectionStart&&this._oldSelectionEnd&&b[0]===this._oldSelectionStart[0]&&b[1]===this._oldSelectionStart[1]&&k[0]===this._oldSelectionEnd[0]&&k[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(b,k,A)):this._oldHasSelection&&this._fireOnSelectionChange(b,k,A)}_fireOnSelectionChange(b,k,A){this._oldSelectionStart=b,this._oldSelectionEnd=k,this._oldHasSelection=A,this._onSelectionChange.fire()}_handleBufferActivate(b){this.clearSelection(),this._trimListener.dispose(),this._trimListener=b.activeBuffer.lines.onTrim((k=>this._handleTrim(k)))}_convertViewportColToCharacterIndex(b,k){let A=k;for(let T=0;k>=T;T++){const L=b.loadCell(T,this._workCell).getChars().length;this._workCell.getWidth()===0?A--:L>1&&k!==T&&(A+=L-1)}return A}setSelection(b,k,A){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[b,k],this._model.selectionStartLength=A,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(b){this._isClickInSelection(b)||(this._selectWordAtCursor(b,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(b,k,A=!0,T=!0){if(b[0]>=this._bufferService.cols)return;const L=this._bufferService.buffer,R=L.lines.get(b[1]);if(!R)return;const M=L.translateBufferLineToString(b[1],!1);let U=this._convertViewportColToCharacterIndex(R,b[0]),$=U;const z=b[0]-U;let W=0,B=0,x=0,D=0;if(M.charAt(U)===" "){for(;U>0&&M.charAt(U-1)===" ";)U--;for(;$<M.length&&M.charAt($+1)===" ";)$++}else{let G=b[0],X=b[0];R.getWidth(G)===0&&(W++,G--),R.getWidth(X)===2&&(B++,X++);const J=R.getString(X).length;for(J>1&&(D+=J-1,$+=J-1);G>0&&U>0&&!this._isCharWordSeparator(R.loadCell(G-1,this._workCell));){R.loadCell(G-1,this._workCell);const N=this._workCell.getChars().length;this._workCell.getWidth()===0?(W++,G--):N>1&&(x+=N-1,U-=N-1),U--,G--}for(;X<R.length&&$+1<M.length&&!this._isCharWordSeparator(R.loadCell(X+1,this._workCell));){R.loadCell(X+1,this._workCell);const N=this._workCell.getChars().length;this._workCell.getWidth()===2?(B++,X++):N>1&&(D+=N-1,$+=N-1),$++,X++}}$++;let O=U+z-W+x,V=Math.min(this._bufferService.cols,$-U+W+B-x-D);if(k||M.slice(U,$).trim()!==""){if(A&&O===0&&R.getCodePoint(0)!==32){const G=L.lines.get(b[1]-1);if(G&&R.isWrapped&&G.getCodePoint(this._bufferService.cols-1)!==32){const X=this._getWordAt([this._bufferService.cols-1,b[1]-1],!1,!0,!1);if(X){const J=this._bufferService.cols-X.start;O-=J,V+=J}}}if(T&&O+V===this._bufferService.cols&&R.getCodePoint(this._bufferService.cols-1)!==32){const G=L.lines.get(b[1]+1);if(G!=null&&G.isWrapped&&G.getCodePoint(0)!==32){const X=this._getWordAt([0,b[1]+1],!1,!1,!0);X&&(V+=X.length)}}return{start:O,length:V}}}_selectWordAt(b,k){const A=this._getWordAt(b,k);if(A){for(;A.start<0;)A.start+=this._bufferService.cols,b[1]--;this._model.selectionStart=[A.start,b[1]],this._model.selectionStartLength=A.length}}_selectToWordAt(b){const k=this._getWordAt(b,!0);if(k){let A=b[1];for(;k.start<0;)k.start+=this._bufferService.cols,A--;if(!this._model.areSelectionValuesReversed())for(;k.start+k.length>this._bufferService.cols;)k.length-=this._bufferService.cols,A++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?k.start:k.start+k.length,A]}}_isCharWordSeparator(b){return b.getWidth()!==0&&this._optionsService.rawOptions.wordSeparator.indexOf(b.getChars())>=0}_selectLineAt(b){const k=this._bufferService.buffer.getWrappedRangeForLine(b),A={start:{x:0,y:k.first},end:{x:this._bufferService.cols-1,y:k.last}};this._model.selectionStart=[0,k.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,n.getRangeLength)(A,this._bufferService.cols)}};i.SelectionService=w=h([f(3,g.IBufferService),f(4,g.ICoreService),f(5,E.IMouseService),f(6,g.IOptionsService),f(7,E.IRenderService),f(8,E.ICoreBrowserService)],w)},4725:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.ILinkProviderService=i.IThemeService=i.ICharacterJoinerService=i.ISelectionService=i.IRenderService=i.IMouseService=i.ICoreBrowserService=i.ICharSizeService=void 0;const h=a(8343);i.ICharSizeService=(0,h.createDecorator)("CharSizeService"),i.ICoreBrowserService=(0,h.createDecorator)("CoreBrowserService"),i.IMouseService=(0,h.createDecorator)("MouseService"),i.IRenderService=(0,h.createDecorator)("RenderService"),i.ISelectionService=(0,h.createDecorator)("SelectionService"),i.ICharacterJoinerService=(0,h.createDecorator)("CharacterJoinerService"),i.IThemeService=(0,h.createDecorator)("ThemeService"),i.ILinkProviderService=(0,h.createDecorator)("LinkProviderService")},6731:function(m,i,a){var h=this&&this.__decorate||function(w,b,k,A){var T,L=arguments.length,R=L<3?b:A===null?A=Object.getOwnPropertyDescriptor(b,k):A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")R=Reflect.decorate(w,b,k,A);else for(var M=w.length-1;M>=0;M--)(T=w[M])&&(R=(L<3?T(R):L>3?T(b,k,R):T(b,k))||R);return L>3&&R&&Object.defineProperty(b,k,R),R},f=this&&this.__param||function(w,b){return function(k,A){b(k,A,w)}};Object.defineProperty(i,"__esModule",{value:!0}),i.ThemeService=i.DEFAULT_ANSI_COLORS=void 0;const u=a(7239),v=a(8055),y=a(8460),E=a(844),p=a(2585),o=v.css.toColor("#ffffff"),c=v.css.toColor("#000000"),n=v.css.toColor("#ffffff"),d=v.css.toColor("#000000"),g={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};i.DEFAULT_ANSI_COLORS=Object.freeze((()=>{const w=[v.css.toColor("#2e3436"),v.css.toColor("#cc0000"),v.css.toColor("#4e9a06"),v.css.toColor("#c4a000"),v.css.toColor("#3465a4"),v.css.toColor("#75507b"),v.css.toColor("#06989a"),v.css.toColor("#d3d7cf"),v.css.toColor("#555753"),v.css.toColor("#ef2929"),v.css.toColor("#8ae234"),v.css.toColor("#fce94f"),v.css.toColor("#729fcf"),v.css.toColor("#ad7fa8"),v.css.toColor("#34e2e2"),v.css.toColor("#eeeeec")],b=[0,95,135,175,215,255];for(let k=0;k<216;k++){const A=b[k/36%6|0],T=b[k/6%6|0],L=b[k%6];w.push({css:v.channels.toCss(A,T,L),rgba:v.channels.toRgba(A,T,L)})}for(let k=0;k<24;k++){const A=8+10*k;w.push({css:v.channels.toCss(A,A,A),rgba:v.channels.toRgba(A,A,A)})}return w})());let C=i.ThemeService=class extends E.Disposable{get colors(){return this._colors}constructor(w){super(),this._optionsService=w,this._contrastCache=new u.ColorContrastCache,this._halfContrastCache=new u.ColorContrastCache,this._onChangeColors=this.register(new y.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:o,background:c,cursor:n,cursorAccent:d,selectionForeground:void 0,selectionBackgroundTransparent:g,selectionBackgroundOpaque:v.color.blend(c,g),selectionInactiveBackgroundTransparent:g,selectionInactiveBackgroundOpaque:v.color.blend(c,g),ansi:i.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this.register(this._optionsService.onSpecificOptionChange("minimumContrastRatio",(()=>this._contrastCache.clear()))),this.register(this._optionsService.onSpecificOptionChange("theme",(()=>this._setTheme(this._optionsService.rawOptions.theme))))}_setTheme(w={}){const b=this._colors;if(b.foreground=S(w.foreground,o),b.background=S(w.background,c),b.cursor=S(w.cursor,n),b.cursorAccent=S(w.cursorAccent,d),b.selectionBackgroundTransparent=S(w.selectionBackground,g),b.selectionBackgroundOpaque=v.color.blend(b.background,b.selectionBackgroundTransparent),b.selectionInactiveBackgroundTransparent=S(w.selectionInactiveBackground,b.selectionBackgroundTransparent),b.selectionInactiveBackgroundOpaque=v.color.blend(b.background,b.selectionInactiveBackgroundTransparent),b.selectionForeground=w.selectionForeground?S(w.selectionForeground,v.NULL_COLOR):void 0,b.selectionForeground===v.NULL_COLOR&&(b.selectionForeground=void 0),v.color.isOpaque(b.selectionBackgroundTransparent)&&(b.selectionBackgroundTransparent=v.color.opacity(b.selectionBackgroundTransparent,.3)),v.color.isOpaque(b.selectionInactiveBackgroundTransparent)&&(b.selectionInactiveBackgroundTransparent=v.color.opacity(b.selectionInactiveBackgroundTransparent,.3)),b.ansi=i.DEFAULT_ANSI_COLORS.slice(),b.ansi[0]=S(w.black,i.DEFAULT_ANSI_COLORS[0]),b.ansi[1]=S(w.red,i.DEFAULT_ANSI_COLORS[1]),b.ansi[2]=S(w.green,i.DEFAULT_ANSI_COLORS[2]),b.ansi[3]=S(w.yellow,i.DEFAULT_ANSI_COLORS[3]),b.ansi[4]=S(w.blue,i.DEFAULT_ANSI_COLORS[4]),b.ansi[5]=S(w.magenta,i.DEFAULT_ANSI_COLORS[5]),b.ansi[6]=S(w.cyan,i.DEFAULT_ANSI_COLORS[6]),b.ansi[7]=S(w.white,i.DEFAULT_ANSI_COLORS[7]),b.ansi[8]=S(w.brightBlack,i.DEFAULT_ANSI_COLORS[8]),b.ansi[9]=S(w.brightRed,i.DEFAULT_ANSI_COLORS[9]),b.ansi[10]=S(w.brightGreen,i.DEFAULT_ANSI_COLORS[10]),b.ansi[11]=S(w.brightYellow,i.DEFAULT_ANSI_COLORS[11]),b.ansi[12]=S(w.brightBlue,i.DEFAULT_ANSI_COLORS[12]),b.ansi[13]=S(w.brightMagenta,i.DEFAULT_ANSI_COLORS[13]),b.ansi[14]=S(w.brightCyan,i.DEFAULT_ANSI_COLORS[14]),b.ansi[15]=S(w.brightWhite,i.DEFAULT_ANSI_COLORS[15]),w.extendedAnsi){const k=Math.min(b.ansi.length-16,w.extendedAnsi.length);for(let A=0;A<k;A++)b.ansi[A+16]=S(w.extendedAnsi[A],i.DEFAULT_ANSI_COLORS[A+16])}this._contrastCache.clear(),this._halfContrastCache.clear(),this._updateRestoreColors(),this._onChangeColors.fire(this.colors)}restoreColor(w){this._restoreColor(w),this._onChangeColors.fire(this.colors)}_restoreColor(w){if(w!==void 0)switch(w){case 256:this._colors.foreground=this._restoreColors.foreground;break;case 257:this._colors.background=this._restoreColors.background;break;case 258:this._colors.cursor=this._restoreColors.cursor;break;default:this._colors.ansi[w]=this._restoreColors.ansi[w]}else for(let b=0;b<this._restoreColors.ansi.length;++b)this._colors.ansi[b]=this._restoreColors.ansi[b]}modifyColors(w){w(this._colors),this._onChangeColors.fire(this.colors)}_updateRestoreColors(){this._restoreColors={foreground:this._colors.foreground,background:this._colors.background,cursor:this._colors.cursor,ansi:this._colors.ansi.slice()}}};function S(w,b){if(w!==void 0)try{return v.css.toColor(w)}catch{}return b}i.ThemeService=C=h([f(0,p.IOptionsService)],C)},6349:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.CircularList=void 0;const h=a(8460),f=a(844);class u extends f.Disposable{constructor(y){super(),this._maxLength=y,this.onDeleteEmitter=this.register(new h.EventEmitter),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this.register(new h.EventEmitter),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this.register(new h.EventEmitter),this.onTrim=this.onTrimEmitter.event,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}get maxLength(){return this._maxLength}set maxLength(y){if(this._maxLength===y)return;const E=new Array(y);for(let p=0;p<Math.min(y,this.length);p++)E[p]=this._array[this._getCyclicIndex(p)];this._array=E,this._maxLength=y,this._startIndex=0}get length(){return this._length}set length(y){if(y>this._length)for(let E=this._length;E<y;E++)this._array[E]=void 0;this._length=y}get(y){return this._array[this._getCyclicIndex(y)]}set(y,E){this._array[this._getCyclicIndex(y)]=E}push(y){this._array[this._getCyclicIndex(this._length)]=y,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++}recycle(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]}get isFull(){return this._length===this._maxLength}pop(){return this._array[this._getCyclicIndex(this._length---1)]}splice(y,E,...p){if(E){for(let o=y;o<this._length-E;o++)this._array[this._getCyclicIndex(o)]=this._array[this._getCyclicIndex(o+E)];this._length-=E,this.onDeleteEmitter.fire({index:y,amount:E})}for(let o=this._length-1;o>=y;o--)this._array[this._getCyclicIndex(o+p.length)]=this._array[this._getCyclicIndex(o)];for(let o=0;o<p.length;o++)this._array[this._getCyclicIndex(y+o)]=p[o];if(p.length&&this.onInsertEmitter.fire({index:y,amount:p.length}),this._length+p.length>this._maxLength){const o=this._length+p.length-this._maxLength;this._startIndex+=o,this._length=this._maxLength,this.onTrimEmitter.fire(o)}else this._length+=p.length}trimStart(y){y>this._length&&(y=this._length),this._startIndex+=y,this._length-=y,this.onTrimEmitter.fire(y)}shiftElements(y,E,p){if(!(E<=0)){if(y<0||y>=this._length)throw new Error("start argument out of range");if(y+p<0)throw new Error("Cannot shift elements in list beyond index 0");if(p>0){for(let c=E-1;c>=0;c--)this.set(y+c+p,this.get(y+c));const o=y+E+p-this._length;if(o>0)for(this._length+=o;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let o=0;o<E;o++)this.set(y+o+p,this.get(y+o))}}_getCyclicIndex(y){return(this._startIndex+y)%this._maxLength}}i.CircularList=u},1439:(m,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.clone=void 0,i.clone=function a(h,f=5){if(typeof h!="object")return h;const u=Array.isArray(h)?[]:{};for(const v in h)u[v]=f<=1?h[v]:h[v]&&a(h[v],f-1);return u}},8055:(m,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.contrastRatio=i.toPaddedHex=i.rgba=i.rgb=i.css=i.color=i.channels=i.NULL_COLOR=void 0;let a=0,h=0,f=0,u=0;var v,y,E,p,o;function c(d){const g=d.toString(16);return g.length<2?"0"+g:g}function n(d,g){return d<g?(g+.05)/(d+.05):(d+.05)/(g+.05)}i.NULL_COLOR={css:"#00000000",rgba:0},(function(d){d.toCss=function(g,C,S,w){return w!==void 0?`#${c(g)}${c(C)}${c(S)}${c(w)}`:`#${c(g)}${c(C)}${c(S)}`},d.toRgba=function(g,C,S,w=255){return(g<<24|C<<16|S<<8|w)>>>0},d.toColor=function(g,C,S,w){return{css:d.toCss(g,C,S,w),rgba:d.toRgba(g,C,S,w)}}})(v||(i.channels=v={})),(function(d){function g(C,S){return u=Math.round(255*S),[a,h,f]=o.toChannels(C.rgba),{css:v.toCss(a,h,f,u),rgba:v.toRgba(a,h,f,u)}}d.blend=function(C,S){if(u=(255&S.rgba)/255,u===1)return{css:S.css,rgba:S.rgba};const w=S.rgba>>24&255,b=S.rgba>>16&255,k=S.rgba>>8&255,A=C.rgba>>24&255,T=C.rgba>>16&255,L=C.rgba>>8&255;return a=A+Math.round((w-A)*u),h=T+Math.round((b-T)*u),f=L+Math.round((k-L)*u),{css:v.toCss(a,h,f),rgba:v.toRgba(a,h,f)}},d.isOpaque=function(C){return(255&C.rgba)==255},d.ensureContrastRatio=function(C,S,w){const b=o.ensureContrastRatio(C.rgba,S.rgba,w);if(b)return v.toColor(b>>24&255,b>>16&255,b>>8&255)},d.opaque=function(C){const S=(255|C.rgba)>>>0;return[a,h,f]=o.toChannels(S),{css:v.toCss(a,h,f),rgba:S}},d.opacity=g,d.multiplyOpacity=function(C,S){return u=255&C.rgba,g(C,u*S/255)},d.toColorRGB=function(C){return[C.rgba>>24&255,C.rgba>>16&255,C.rgba>>8&255]}})(y||(i.color=y={})),(function(d){let g,C;try{const S=document.createElement("canvas");S.width=1,S.height=1;const w=S.getContext("2d",{willReadFrequently:!0});w&&(g=w,g.globalCompositeOperation="copy",C=g.createLinearGradient(0,0,1,1))}catch{}d.toColor=function(S){if(S.match(/#[\da-f]{3,8}/i))switch(S.length){case 4:return a=parseInt(S.slice(1,2).repeat(2),16),h=parseInt(S.slice(2,3).repeat(2),16),f=parseInt(S.slice(3,4).repeat(2),16),v.toColor(a,h,f);case 5:return a=parseInt(S.slice(1,2).repeat(2),16),h=parseInt(S.slice(2,3).repeat(2),16),f=parseInt(S.slice(3,4).repeat(2),16),u=parseInt(S.slice(4,5).repeat(2),16),v.toColor(a,h,f,u);case 7:return{css:S,rgba:(parseInt(S.slice(1),16)<<8|255)>>>0};case 9:return{css:S,rgba:parseInt(S.slice(1),16)>>>0}}const w=S.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(w)return a=parseInt(w[1]),h=parseInt(w[2]),f=parseInt(w[3]),u=Math.round(255*(w[5]===void 0?1:parseFloat(w[5]))),v.toColor(a,h,f,u);if(!g||!C)throw new Error("css.toColor: Unsupported css format");if(g.fillStyle=C,g.fillStyle=S,typeof g.fillStyle!="string")throw new Error("css.toColor: Unsupported css format");if(g.fillRect(0,0,1,1),[a,h,f,u]=g.getImageData(0,0,1,1).data,u!==255)throw new Error("css.toColor: Unsupported css format");return{rgba:v.toRgba(a,h,f,u),css:S}}})(E||(i.css=E={})),(function(d){function g(C,S,w){const b=C/255,k=S/255,A=w/255;return .2126*(b<=.03928?b/12.92:Math.pow((b+.055)/1.055,2.4))+.7152*(k<=.03928?k/12.92:Math.pow((k+.055)/1.055,2.4))+.0722*(A<=.03928?A/12.92:Math.pow((A+.055)/1.055,2.4))}d.relativeLuminance=function(C){return g(C>>16&255,C>>8&255,255&C)},d.relativeLuminance2=g})(p||(i.rgb=p={})),(function(d){function g(S,w,b){const k=S>>24&255,A=S>>16&255,T=S>>8&255;let L=w>>24&255,R=w>>16&255,M=w>>8&255,U=n(p.relativeLuminance2(L,R,M),p.relativeLuminance2(k,A,T));for(;U<b&&(L>0||R>0||M>0);)L-=Math.max(0,Math.ceil(.1*L)),R-=Math.max(0,Math.ceil(.1*R)),M-=Math.max(0,Math.ceil(.1*M)),U=n(p.relativeLuminance2(L,R,M),p.relativeLuminance2(k,A,T));return(L<<24|R<<16|M<<8|255)>>>0}function C(S,w,b){const k=S>>24&255,A=S>>16&255,T=S>>8&255;let L=w>>24&255,R=w>>16&255,M=w>>8&255,U=n(p.relativeLuminance2(L,R,M),p.relativeLuminance2(k,A,T));for(;U<b&&(L<255||R<255||M<255);)L=Math.min(255,L+Math.ceil(.1*(255-L))),R=Math.min(255,R+Math.ceil(.1*(255-R))),M=Math.min(255,M+Math.ceil(.1*(255-M))),U=n(p.relativeLuminance2(L,R,M),p.relativeLuminance2(k,A,T));return(L<<24|R<<16|M<<8|255)>>>0}d.blend=function(S,w){if(u=(255&w)/255,u===1)return w;const b=w>>24&255,k=w>>16&255,A=w>>8&255,T=S>>24&255,L=S>>16&255,R=S>>8&255;return a=T+Math.round((b-T)*u),h=L+Math.round((k-L)*u),f=R+Math.round((A-R)*u),v.toRgba(a,h,f)},d.ensureContrastRatio=function(S,w,b){const k=p.relativeLuminance(S>>8),A=p.relativeLuminance(w>>8);if(n(k,A)<b){if(A<k){const R=g(S,w,b),M=n(k,p.relativeLuminance(R>>8));if(M<b){const U=C(S,w,b);return M>n(k,p.relativeLuminance(U>>8))?R:U}return R}const T=C(S,w,b),L=n(k,p.relativeLuminance(T>>8));if(L<b){const R=g(S,w,b);return L>n(k,p.relativeLuminance(R>>8))?T:R}return T}},d.reduceLuminance=g,d.increaseLuminance=C,d.toChannels=function(S){return[S>>24&255,S>>16&255,S>>8&255,255&S]}})(o||(i.rgba=o={})),i.toPaddedHex=c,i.contrastRatio=n},8969:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.CoreTerminal=void 0;const h=a(844),f=a(2585),u=a(4348),v=a(7866),y=a(744),E=a(7302),p=a(6975),o=a(8460),c=a(1753),n=a(1480),d=a(7994),g=a(9282),C=a(5435),S=a(5981),w=a(2660);let b=!1;class k extends h.Disposable{get onScroll(){return this._onScrollApi||(this._onScrollApi=this.register(new o.EventEmitter),this._onScroll.event((T=>{var L;(L=this._onScrollApi)==null||L.fire(T.position)}))),this._onScrollApi.event}get cols(){return this._bufferService.cols}get rows(){return this._bufferService.rows}get buffers(){return this._bufferService.buffers}get options(){return this.optionsService.options}set options(T){for(const L in T)this.optionsService.options[L]=T[L]}constructor(T){super(),this._windowsWrappingHeuristics=this.register(new h.MutableDisposable),this._onBinary=this.register(new o.EventEmitter),this.onBinary=this._onBinary.event,this._onData=this.register(new o.EventEmitter),this.onData=this._onData.event,this._onLineFeed=this.register(new o.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onResize=this.register(new o.EventEmitter),this.onResize=this._onResize.event,this._onWriteParsed=this.register(new o.EventEmitter),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this.register(new o.EventEmitter),this._instantiationService=new u.InstantiationService,this.optionsService=this.register(new E.OptionsService(T)),this._instantiationService.setService(f.IOptionsService,this.optionsService),this._bufferService=this.register(this._instantiationService.createInstance(y.BufferService)),this._instantiationService.setService(f.IBufferService,this._bufferService),this._logService=this.register(this._instantiationService.createInstance(v.LogService)),this._instantiationService.setService(f.ILogService,this._logService),this.coreService=this.register(this._instantiationService.createInstance(p.CoreService)),this._instantiationService.setService(f.ICoreService,this.coreService),this.coreMouseService=this.register(this._instantiationService.createInstance(c.CoreMouseService)),this._instantiationService.setService(f.ICoreMouseService,this.coreMouseService),this.unicodeService=this.register(this._instantiationService.createInstance(n.UnicodeService)),this._instantiationService.setService(f.IUnicodeService,this.unicodeService),this._charsetService=this._instantiationService.createInstance(d.CharsetService),this._instantiationService.setService(f.ICharsetService,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(w.OscLinkService),this._instantiationService.setService(f.IOscLinkService,this._oscLinkService),this._inputHandler=this.register(new C.InputHandler(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this.register((0,o.forwardEvent)(this._inputHandler.onLineFeed,this._onLineFeed)),this.register(this._inputHandler),this.register((0,o.forwardEvent)(this._bufferService.onResize,this._onResize)),this.register((0,o.forwardEvent)(this.coreService.onData,this._onData)),this.register((0,o.forwardEvent)(this.coreService.onBinary,this._onBinary)),this.register(this.coreService.onRequestScrollToBottom((()=>this.scrollToBottom()))),this.register(this.coreService.onUserInput((()=>this._writeBuffer.handleUserInput()))),this.register(this.optionsService.onMultipleOptionChange(["windowsMode","windowsPty"],(()=>this._handleWindowsPtyOptionChange()))),this.register(this._bufferService.onScroll((L=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)}))),this.register(this._inputHandler.onScroll((L=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)}))),this._writeBuffer=this.register(new S.WriteBuffer(((L,R)=>this._inputHandler.parse(L,R)))),this.register((0,o.forwardEvent)(this._writeBuffer.onWriteParsed,this._onWriteParsed))}write(T,L){this._writeBuffer.write(T,L)}writeSync(T,L){this._logService.logLevel<=f.LogLevelEnum.WARN&&!b&&(this._logService.warn("writeSync is unreliable and will be removed soon."),b=!0),this._writeBuffer.writeSync(T,L)}input(T,L=!0){this.coreService.triggerDataEvent(T,L)}resize(T,L){isNaN(T)||isNaN(L)||(T=Math.max(T,y.MINIMUM_COLS),L=Math.max(L,y.MINIMUM_ROWS),this._bufferService.resize(T,L))}scroll(T,L=!1){this._bufferService.scroll(T,L)}scrollLines(T,L,R){this._bufferService.scrollLines(T,L,R)}scrollPages(T){this.scrollLines(T*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(T){const L=T-this._bufferService.buffer.ydisp;L!==0&&this.scrollLines(L)}registerEscHandler(T,L){return this._inputHandler.registerEscHandler(T,L)}registerDcsHandler(T,L){return this._inputHandler.registerDcsHandler(T,L)}registerCsiHandler(T,L){return this._inputHandler.registerCsiHandler(T,L)}registerOscHandler(T,L){return this._inputHandler.registerOscHandler(T,L)}_setup(){this._handleWindowsPtyOptionChange()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsPtyOptionChange(){let T=!1;const L=this.optionsService.rawOptions.windowsPty;L&&L.buildNumber!==void 0&&L.buildNumber!==void 0?T=L.backend==="conpty"&&L.buildNumber<21376:this.optionsService.rawOptions.windowsMode&&(T=!0),T?this._enableWindowsWrappingHeuristics():this._windowsWrappingHeuristics.clear()}_enableWindowsWrappingHeuristics(){if(!this._windowsWrappingHeuristics.value){const T=[];T.push(this.onLineFeed(g.updateWindowsModeWrappedState.bind(null,this._bufferService))),T.push(this.registerCsiHandler({final:"H"},(()=>((0,g.updateWindowsModeWrappedState)(this._bufferService),!1)))),this._windowsWrappingHeuristics.value=(0,h.toDisposable)((()=>{for(const L of T)L.dispose()}))}}}i.CoreTerminal=k},8460:(m,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.runAndSubscribe=i.forwardEvent=i.EventEmitter=void 0,i.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=a=>(this._listeners.push(a),{dispose:()=>{if(!this._disposed){for(let h=0;h<this._listeners.length;h++)if(this._listeners[h]===a)return void this._listeners.splice(h,1)}}})),this._event}fire(a,h){const f=[];for(let u=0;u<this._listeners.length;u++)f.push(this._listeners[u]);for(let u=0;u<f.length;u++)f[u].call(void 0,a,h)}dispose(){this.clearListeners(),this._disposed=!0}clearListeners(){this._listeners&&(this._listeners.length=0)}},i.forwardEvent=function(a,h){return a((f=>h.fire(f)))},i.runAndSubscribe=function(a,h){return h(void 0),a((f=>h(f)))}},5435:function(m,i,a){var h=this&&this.__decorate||function(W,B,x,D){var O,V=arguments.length,G=V<3?B:D===null?D=Object.getOwnPropertyDescriptor(B,x):D;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(W,B,x,D);else for(var X=W.length-1;X>=0;X--)(O=W[X])&&(G=(V<3?O(G):V>3?O(B,x,G):O(B,x))||G);return V>3&&G&&Object.defineProperty(B,x,G),G},f=this&&this.__param||function(W,B){return function(x,D){B(x,D,W)}};Object.defineProperty(i,"__esModule",{value:!0}),i.InputHandler=i.WindowsOptionsReportType=void 0;const u=a(2584),v=a(7116),y=a(2015),E=a(844),p=a(482),o=a(8437),c=a(8460),n=a(643),d=a(511),g=a(3734),C=a(2585),S=a(1480),w=a(6242),b=a(6351),k=a(5941),A={"(":0,")":1,"*":2,"+":3,"-":1,".":2},T=131072;function L(W,B){if(W>24)return B.setWinLines||!1;switch(W){case 1:return!!B.restoreWin;case 2:return!!B.minimizeWin;case 3:return!!B.setWinPosition;case 4:return!!B.setWinSizePixels;case 5:return!!B.raiseWin;case 6:return!!B.lowerWin;case 7:return!!B.refreshWin;case 8:return!!B.setWinSizeChars;case 9:return!!B.maximizeWin;case 10:return!!B.fullscreenWin;case 11:return!!B.getWinState;case 13:return!!B.getWinPosition;case 14:return!!B.getWinSizePixels;case 15:return!!B.getScreenSizePixels;case 16:return!!B.getCellSizePixels;case 18:return!!B.getWinSizeChars;case 19:return!!B.getScreenSizeChars;case 20:return!!B.getIconTitle;case 21:return!!B.getWinTitle;case 22:return!!B.pushTitle;case 23:return!!B.popTitle;case 24:return!!B.setWinLines}return!1}var R;(function(W){W[W.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",W[W.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(R||(i.WindowsOptionsReportType=R={}));let M=0;class U extends E.Disposable{getAttrData(){return this._curAttrData}constructor(B,x,D,O,V,G,X,J,N=new y.EscapeSequenceParser){super(),this._bufferService=B,this._charsetService=x,this._coreService=D,this._logService=O,this._optionsService=V,this._oscLinkService=G,this._coreMouseService=X,this._unicodeService=J,this._parser=N,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new p.StringToUtf32,this._utf8Decoder=new p.Utf8ToUtf32,this._workCell=new d.CellData,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=o.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=o.DEFAULT_ATTR_DATA.clone(),this._onRequestBell=this.register(new c.EventEmitter),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this.register(new c.EventEmitter),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this.register(new c.EventEmitter),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this.register(new c.EventEmitter),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this.register(new c.EventEmitter),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this.register(new c.EventEmitter),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this.register(new c.EventEmitter),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this.register(new c.EventEmitter),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this.register(new c.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this.register(new c.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onScroll=this.register(new c.EventEmitter),this.onScroll=this._onScroll.event,this._onTitleChange=this.register(new c.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onColor=this.register(new c.EventEmitter),this.onColor=this._onColor.event,this._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},this._specialColors=[256,257,258],this.register(this._parser),this._dirtyRowTracker=new $(this._bufferService),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate((I=>this._activeBuffer=I.activeBuffer))),this._parser.setCsiHandlerFallback(((I,H)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(I),params:H.toArray()})})),this._parser.setEscHandlerFallback((I=>{this._logService.debug("Unknown ESC code: ",{identifier:this._parser.identToString(I)})})),this._parser.setExecuteHandlerFallback((I=>{this._logService.debug("Unknown EXECUTE code: ",{code:I})})),this._parser.setOscHandlerFallback(((I,H,P)=>{this._logService.debug("Unknown OSC code: ",{identifier:I,action:H,data:P})})),this._parser.setDcsHandlerFallback(((I,H,P)=>{H==="HOOK"&&(P=P.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(I),action:H,payload:P})})),this._parser.setPrintHandler(((I,H,P)=>this.print(I,H,P))),this._parser.registerCsiHandler({final:"@"},(I=>this.insertChars(I))),this._parser.registerCsiHandler({intermediates:" ",final:"@"},(I=>this.scrollLeft(I))),this._parser.registerCsiHandler({final:"A"},(I=>this.cursorUp(I))),this._parser.registerCsiHandler({intermediates:" ",final:"A"},(I=>this.scrollRight(I))),this._parser.registerCsiHandler({final:"B"},(I=>this.cursorDown(I))),this._parser.registerCsiHandler({final:"C"},(I=>this.cursorForward(I))),this._parser.registerCsiHandler({final:"D"},(I=>this.cursorBackward(I))),this._parser.registerCsiHandler({final:"E"},(I=>this.cursorNextLine(I))),this._parser.registerCsiHandler({final:"F"},(I=>this.cursorPrecedingLine(I))),this._parser.registerCsiHandler({final:"G"},(I=>this.cursorCharAbsolute(I))),this._parser.registerCsiHandler({final:"H"},(I=>this.cursorPosition(I))),this._parser.registerCsiHandler({final:"I"},(I=>this.cursorForwardTab(I))),this._parser.registerCsiHandler({final:"J"},(I=>this.eraseInDisplay(I,!1))),this._parser.registerCsiHandler({prefix:"?",final:"J"},(I=>this.eraseInDisplay(I,!0))),this._parser.registerCsiHandler({final:"K"},(I=>this.eraseInLine(I,!1))),this._parser.registerCsiHandler({prefix:"?",final:"K"},(I=>this.eraseInLine(I,!0))),this._parser.registerCsiHandler({final:"L"},(I=>this.insertLines(I))),this._parser.registerCsiHandler({final:"M"},(I=>this.deleteLines(I))),this._parser.registerCsiHandler({final:"P"},(I=>this.deleteChars(I))),this._parser.registerCsiHandler({final:"S"},(I=>this.scrollUp(I))),this._parser.registerCsiHandler({final:"T"},(I=>this.scrollDown(I))),this._parser.registerCsiHandler({final:"X"},(I=>this.eraseChars(I))),this._parser.registerCsiHandler({final:"Z"},(I=>this.cursorBackwardTab(I))),this._parser.registerCsiHandler({final:"`"},(I=>this.charPosAbsolute(I))),this._parser.registerCsiHandler({final:"a"},(I=>this.hPositionRelative(I))),this._parser.registerCsiHandler({final:"b"},(I=>this.repeatPrecedingCharacter(I))),this._parser.registerCsiHandler({final:"c"},(I=>this.sendDeviceAttributesPrimary(I))),this._parser.registerCsiHandler({prefix:">",final:"c"},(I=>this.sendDeviceAttributesSecondary(I))),this._parser.registerCsiHandler({final:"d"},(I=>this.linePosAbsolute(I))),this._parser.registerCsiHandler({final:"e"},(I=>this.vPositionRelative(I))),this._parser.registerCsiHandler({final:"f"},(I=>this.hVPosition(I))),this._parser.registerCsiHandler({final:"g"},(I=>this.tabClear(I))),this._parser.registerCsiHandler({final:"h"},(I=>this.setMode(I))),this._parser.registerCsiHandler({prefix:"?",final:"h"},(I=>this.setModePrivate(I))),this._parser.registerCsiHandler({final:"l"},(I=>this.resetMode(I))),this._parser.registerCsiHandler({prefix:"?",final:"l"},(I=>this.resetModePrivate(I))),this._parser.registerCsiHandler({final:"m"},(I=>this.charAttributes(I))),this._parser.registerCsiHandler({final:"n"},(I=>this.deviceStatus(I))),this._parser.registerCsiHandler({prefix:"?",final:"n"},(I=>this.deviceStatusPrivate(I))),this._parser.registerCsiHandler({intermediates:"!",final:"p"},(I=>this.softReset(I))),this._parser.registerCsiHandler({intermediates:" ",final:"q"},(I=>this.setCursorStyle(I))),this._parser.registerCsiHandler({final:"r"},(I=>this.setScrollRegion(I))),this._parser.registerCsiHandler({final:"s"},(I=>this.saveCursor(I))),this._parser.registerCsiHandler({final:"t"},(I=>this.windowOptions(I))),this._parser.registerCsiHandler({final:"u"},(I=>this.restoreCursor(I))),this._parser.registerCsiHandler({intermediates:"'",final:"}"},(I=>this.insertColumns(I))),this._parser.registerCsiHandler({intermediates:"'",final:"~"},(I=>this.deleteColumns(I))),this._parser.registerCsiHandler({intermediates:'"',final:"q"},(I=>this.selectProtected(I))),this._parser.registerCsiHandler({intermediates:"$",final:"p"},(I=>this.requestMode(I,!0))),this._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},(I=>this.requestMode(I,!1))),this._parser.setExecuteHandler(u.C0.BEL,(()=>this.bell())),this._parser.setExecuteHandler(u.C0.LF,(()=>this.lineFeed())),this._parser.setExecuteHandler(u.C0.VT,(()=>this.lineFeed())),this._parser.setExecuteHandler(u.C0.FF,(()=>this.lineFeed())),this._parser.setExecuteHandler(u.C0.CR,(()=>this.carriageReturn())),this._parser.setExecuteHandler(u.C0.BS,(()=>this.backspace())),this._parser.setExecuteHandler(u.C0.HT,(()=>this.tab())),this._parser.setExecuteHandler(u.C0.SO,(()=>this.shiftOut())),this._parser.setExecuteHandler(u.C0.SI,(()=>this.shiftIn())),this._parser.setExecuteHandler(u.C1.IND,(()=>this.index())),this._parser.setExecuteHandler(u.C1.NEL,(()=>this.nextLine())),this._parser.setExecuteHandler(u.C1.HTS,(()=>this.tabSet())),this._parser.registerOscHandler(0,new w.OscHandler((I=>(this.setTitle(I),this.setIconName(I),!0)))),this._parser.registerOscHandler(1,new w.OscHandler((I=>this.setIconName(I)))),this._parser.registerOscHandler(2,new w.OscHandler((I=>this.setTitle(I)))),this._parser.registerOscHandler(4,new w.OscHandler((I=>this.setOrReportIndexedColor(I)))),this._parser.registerOscHandler(8,new w.OscHandler((I=>this.setHyperlink(I)))),this._parser.registerOscHandler(10,new w.OscHandler((I=>this.setOrReportFgColor(I)))),this._parser.registerOscHandler(11,new w.OscHandler((I=>this.setOrReportBgColor(I)))),this._parser.registerOscHandler(12,new w.OscHandler((I=>this.setOrReportCursorColor(I)))),this._parser.registerOscHandler(104,new w.OscHandler((I=>this.restoreIndexedColor(I)))),this._parser.registerOscHandler(110,new w.OscHandler((I=>this.restoreFgColor(I)))),this._parser.registerOscHandler(111,new w.OscHandler((I=>this.restoreBgColor(I)))),this._parser.registerOscHandler(112,new w.OscHandler((I=>this.restoreCursorColor(I)))),this._parser.registerEscHandler({final:"7"},(()=>this.saveCursor())),this._parser.registerEscHandler({final:"8"},(()=>this.restoreCursor())),this._parser.registerEscHandler({final:"D"},(()=>this.index())),this._parser.registerEscHandler({final:"E"},(()=>this.nextLine())),this._parser.registerEscHandler({final:"H"},(()=>this.tabSet())),this._parser.registerEscHandler({final:"M"},(()=>this.reverseIndex())),this._parser.registerEscHandler({final:"="},(()=>this.keypadApplicationMode())),this._parser.registerEscHandler({final:">"},(()=>this.keypadNumericMode())),this._parser.registerEscHandler({final:"c"},(()=>this.fullReset())),this._parser.registerEscHandler({final:"n"},(()=>this.setgLevel(2))),this._parser.registerEscHandler({final:"o"},(()=>this.setgLevel(3))),this._parser.registerEscHandler({final:"|"},(()=>this.setgLevel(3))),this._parser.registerEscHandler({final:"}"},(()=>this.setgLevel(2))),this._parser.registerEscHandler({final:"~"},(()=>this.setgLevel(1))),this._parser.registerEscHandler({intermediates:"%",final:"@"},(()=>this.selectDefaultCharset())),this._parser.registerEscHandler({intermediates:"%",final:"G"},(()=>this.selectDefaultCharset()));for(const I in v.CHARSETS)this._parser.registerEscHandler({intermediates:"(",final:I},(()=>this.selectCharset("("+I))),this._parser.registerEscHandler({intermediates:")",final:I},(()=>this.selectCharset(")"+I))),this._parser.registerEscHandler({intermediates:"*",final:I},(()=>this.selectCharset("*"+I))),this._parser.registerEscHandler({intermediates:"+",final:I},(()=>this.selectCharset("+"+I))),this._parser.registerEscHandler({intermediates:"-",final:I},(()=>this.selectCharset("-"+I))),this._parser.registerEscHandler({intermediates:".",final:I},(()=>this.selectCharset("."+I))),this._parser.registerEscHandler({intermediates:"/",final:I},(()=>this.selectCharset("/"+I)));this._parser.registerEscHandler({intermediates:"#",final:"8"},(()=>this.screenAlignmentPattern())),this._parser.setErrorHandler((I=>(this._logService.error("Parsing error: ",I),I))),this._parser.registerDcsHandler({intermediates:"$",final:"q"},new b.DcsHandler(((I,H)=>this.requestStatusString(I,H))))}_preserveStack(B,x,D,O){this._parseStack.paused=!0,this._parseStack.cursorStartX=B,this._parseStack.cursorStartY=x,this._parseStack.decodedLength=D,this._parseStack.position=O}_logSlowResolvingAsync(B){this._logService.logLevel<=C.LogLevelEnum.WARN&&Promise.race([B,new Promise(((x,D)=>setTimeout((()=>D("#SLOW_TIMEOUT")),5e3)))]).catch((x=>{if(x!=="#SLOW_TIMEOUT")throw x;console.warn("async parser handler taking longer than 5000 ms")}))}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(B,x){let D,O=this._activeBuffer.x,V=this._activeBuffer.y,G=0;const X=this._parseStack.paused;if(X){if(D=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,x))return this._logSlowResolvingAsync(D),D;O=this._parseStack.cursorStartX,V=this._parseStack.cursorStartY,this._parseStack.paused=!1,B.length>T&&(G=this._parseStack.position+T)}if(this._logService.logLevel<=C.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+(typeof B=="string"?` "${B}"`:` "${Array.prototype.map.call(B,(I=>String.fromCharCode(I))).join("")}"`),typeof B=="string"?B.split("").map((I=>I.charCodeAt(0))):B),this._parseBuffer.length<B.length&&this._parseBuffer.length<T&&(this._parseBuffer=new Uint32Array(Math.min(B.length,T))),X||this._dirtyRowTracker.clearRange(),B.length>T)for(let I=G;I<B.length;I+=T){const H=I+T<B.length?I+T:B.length,P=typeof B=="string"?this._stringDecoder.decode(B.substring(I,H),this._parseBuffer):this._utf8Decoder.decode(B.subarray(I,H),this._parseBuffer);if(D=this._parser.parse(this._parseBuffer,P))return this._preserveStack(O,V,P,I),this._logSlowResolvingAsync(D),D}else if(!X){const I=typeof B=="string"?this._stringDecoder.decode(B,this._parseBuffer):this._utf8Decoder.decode(B,this._parseBuffer);if(D=this._parser.parse(this._parseBuffer,I))return this._preserveStack(O,V,I,0),this._logSlowResolvingAsync(D),D}this._activeBuffer.x===O&&this._activeBuffer.y===V||this._onCursorMove.fire();const J=this._dirtyRowTracker.end+(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp),N=this._dirtyRowTracker.start+(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp);N<this._bufferService.rows&&this._onRequestRefreshRows.fire(Math.min(N,this._bufferService.rows-1),Math.min(J,this._bufferService.rows-1))}print(B,x,D){let O,V;const G=this._charsetService.charset,X=this._optionsService.rawOptions.screenReaderMode,J=this._bufferService.cols,N=this._coreService.decPrivateModes.wraparound,I=this._coreService.modes.insertMode,H=this._curAttrData;let P=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._activeBuffer.x&&D-x>0&&P.getWidth(this._activeBuffer.x-1)===2&&P.setCellFromCodepoint(this._activeBuffer.x-1,0,1,H);let Z=this._parser.precedingJoinState;for(let j=x;j<D;++j){if(O=B[j],O<127&&G){const ke=G[String.fromCharCode(O)];ke&&(O=ke.charCodeAt(0))}const re=this._unicodeService.charProperties(O,Z);V=S.UnicodeService.extractWidth(re);const de=S.UnicodeService.extractShouldJoin(re),he=de?S.UnicodeService.extractWidth(Z):0;if(Z=re,X&&this._onA11yChar.fire((0,p.stringFromCodePoint)(O)),this._getCurrentLinkId()&&this._oscLinkService.addLineToLink(this._getCurrentLinkId(),this._activeBuffer.ybase+this._activeBuffer.y),this._activeBuffer.x+V-he>J){if(N){const ke=P;let q=this._activeBuffer.x-he;for(this._activeBuffer.x=he,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),P=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y),he>0&&P instanceof o.BufferLine&&P.copyCellsFrom(ke,q,0,he,!1);q<J;)ke.setCellFromCodepoint(q++,0,1,H)}else if(this._activeBuffer.x=J-1,V===2)continue}if(de&&this._activeBuffer.x){const ke=P.getWidth(this._activeBuffer.x-1)?1:2;P.addCodepointToCell(this._activeBuffer.x-ke,O,V);for(let q=V-he;--q>=0;)P.setCellFromCodepoint(this._activeBuffer.x++,0,0,H)}else if(I&&(P.insertCells(this._activeBuffer.x,V-he,this._activeBuffer.getNullCell(H)),P.getWidth(J-1)===2&&P.setCellFromCodepoint(J-1,n.NULL_CELL_CODE,n.NULL_CELL_WIDTH,H)),P.setCellFromCodepoint(this._activeBuffer.x++,O,V,H),V>0)for(;--V;)P.setCellFromCodepoint(this._activeBuffer.x++,0,0,H)}this._parser.precedingJoinState=Z,this._activeBuffer.x<J&&D-x>0&&P.getWidth(this._activeBuffer.x)===0&&!P.hasContent(this._activeBuffer.x)&&P.setCellFromCodepoint(this._activeBuffer.x,0,1,H),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(B,x){return B.final!=="t"||B.prefix||B.intermediates?this._parser.registerCsiHandler(B,x):this._parser.registerCsiHandler(B,(D=>!L(D.params[0],this._optionsService.rawOptions.windowOptions)||x(D)))}registerDcsHandler(B,x){return this._parser.registerDcsHandler(B,new b.DcsHandler(x))}registerEscHandler(B,x){return this._parser.registerEscHandler(B,x)}registerOscHandler(B,x){return this._parser.registerOscHandler(B,new w.OscHandler(x))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowTracker.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.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return this._activeBuffer.x=0,!0}backspace(){var B;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&&(B=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))!=null&&B.isWrapped){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;const x=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);x.hasWidth(this._activeBuffer.x)&&!x.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;const B=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-B),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(B=this._bufferService.cols-1){this._activeBuffer.x=Math.min(B,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._dirtyRowTracker.markDirty(this._activeBuffer.y)}_setCursor(B,x){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=B,this._activeBuffer.y=this._activeBuffer.scrollTop+x):(this._activeBuffer.x=B,this._activeBuffer.y=x),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(B,x){this._restrictCursor(),this._setCursor(this._activeBuffer.x+B,this._activeBuffer.y+x)}cursorUp(B){const x=this._activeBuffer.y-this._activeBuffer.scrollTop;return x>=0?this._moveCursor(0,-Math.min(x,B.params[0]||1)):this._moveCursor(0,-(B.params[0]||1)),!0}cursorDown(B){const x=this._activeBuffer.scrollBottom-this._activeBuffer.y;return x>=0?this._moveCursor(0,Math.min(x,B.params[0]||1)):this._moveCursor(0,B.params[0]||1),!0}cursorForward(B){return this._moveCursor(B.params[0]||1,0),!0}cursorBackward(B){return this._moveCursor(-(B.params[0]||1),0),!0}cursorNextLine(B){return this.cursorDown(B),this._activeBuffer.x=0,!0}cursorPrecedingLine(B){return this.cursorUp(B),this._activeBuffer.x=0,!0}cursorCharAbsolute(B){return this._setCursor((B.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(B){return this._setCursor(B.length>=2?(B.params[1]||1)-1:0,(B.params[0]||1)-1),!0}charPosAbsolute(B){return this._setCursor((B.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(B){return this._moveCursor(B.params[0]||1,0),!0}linePosAbsolute(B){return this._setCursor(this._activeBuffer.x,(B.params[0]||1)-1),!0}vPositionRelative(B){return this._moveCursor(0,B.params[0]||1),!0}hVPosition(B){return this.cursorPosition(B),!0}tabClear(B){const x=B.params[0];return x===0?delete this._activeBuffer.tabs[this._activeBuffer.x]:x===3&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(B){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let x=B.params[0]||1;for(;x--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(B){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let x=B.params[0]||1;for(;x--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(B){const x=B.params[0];return x===1&&(this._curAttrData.bg|=536870912),x!==2&&x!==0||(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(B,x,D,O=!1,V=!1){const G=this._activeBuffer.lines.get(this._activeBuffer.ybase+B);G.replaceCells(x,D,this._activeBuffer.getNullCell(this._eraseAttrData()),V),O&&(G.isWrapped=!1)}_resetBufferLine(B,x=!1){const D=this._activeBuffer.lines.get(this._activeBuffer.ybase+B);D&&(D.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),x),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+B),D.isWrapped=!1)}eraseInDisplay(B,x=!1){let D;switch(this._restrictCursor(this._bufferService.cols),B.params[0]){case 0:for(D=this._activeBuffer.y,this._dirtyRowTracker.markDirty(D),this._eraseInBufferLine(D++,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,x);D<this._bufferService.rows;D++)this._resetBufferLine(D,x);this._dirtyRowTracker.markDirty(D);break;case 1:for(D=this._activeBuffer.y,this._dirtyRowTracker.markDirty(D),this._eraseInBufferLine(D,0,this._activeBuffer.x+1,!0,x),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get(D+1).isWrapped=!1);D--;)this._resetBufferLine(D,x);this._dirtyRowTracker.markDirty(0);break;case 2:for(D=this._bufferService.rows,this._dirtyRowTracker.markDirty(D-1);D--;)this._resetBufferLine(D,x);this._dirtyRowTracker.markDirty(0);break;case 3:const O=this._activeBuffer.lines.length-this._bufferService.rows;O>0&&(this._activeBuffer.lines.trimStart(O),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-O,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-O,0),this._onScroll.fire(0))}return!0}eraseInLine(B,x=!1){switch(this._restrictCursor(this._bufferService.cols),B.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,x);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,x);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,x)}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(B){this._restrictCursor();let x=B.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const D=this._activeBuffer.ybase+this._activeBuffer.y,O=this._bufferService.rows-1-this._activeBuffer.scrollBottom,V=this._bufferService.rows-1+this._activeBuffer.ybase-O+1;for(;x--;)this._activeBuffer.lines.splice(V-1,1),this._activeBuffer.lines.splice(D,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}deleteLines(B){this._restrictCursor();let x=B.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const D=this._activeBuffer.ybase+this._activeBuffer.y;let O;for(O=this._bufferService.rows-1-this._activeBuffer.scrollBottom,O=this._bufferService.rows-1+this._activeBuffer.ybase-O;x--;)this._activeBuffer.lines.splice(D,1),this._activeBuffer.lines.splice(O,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}insertChars(B){this._restrictCursor();const x=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return x&&(x.insertCells(this._activeBuffer.x,B.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}deleteChars(B){this._restrictCursor();const x=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return x&&(x.deleteCells(this._activeBuffer.x,B.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}scrollUp(B){let x=B.params[0]||1;for(;x--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollDown(B){let x=B.params[0]||1;for(;x--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,0,this._activeBuffer.getBlankLine(o.DEFAULT_ATTR_DATA));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollLeft(B){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const x=B.params[0]||1;for(let D=this._activeBuffer.scrollTop;D<=this._activeBuffer.scrollBottom;++D){const O=this._activeBuffer.lines.get(this._activeBuffer.ybase+D);O.deleteCells(0,x,this._activeBuffer.getNullCell(this._eraseAttrData())),O.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollRight(B){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const x=B.params[0]||1;for(let D=this._activeBuffer.scrollTop;D<=this._activeBuffer.scrollBottom;++D){const O=this._activeBuffer.lines.get(this._activeBuffer.ybase+D);O.insertCells(0,x,this._activeBuffer.getNullCell(this._eraseAttrData())),O.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}insertColumns(B){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const x=B.params[0]||1;for(let D=this._activeBuffer.scrollTop;D<=this._activeBuffer.scrollBottom;++D){const O=this._activeBuffer.lines.get(this._activeBuffer.ybase+D);O.insertCells(this._activeBuffer.x,x,this._activeBuffer.getNullCell(this._eraseAttrData())),O.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}deleteColumns(B){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const x=B.params[0]||1;for(let D=this._activeBuffer.scrollTop;D<=this._activeBuffer.scrollBottom;++D){const O=this._activeBuffer.lines.get(this._activeBuffer.ybase+D);O.deleteCells(this._activeBuffer.x,x,this._activeBuffer.getNullCell(this._eraseAttrData())),O.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}eraseChars(B){this._restrictCursor();const x=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return x&&(x.replaceCells(this._activeBuffer.x,this._activeBuffer.x+(B.params[0]||1),this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}repeatPrecedingCharacter(B){const x=this._parser.precedingJoinState;if(!x)return!0;const D=B.params[0]||1,O=S.UnicodeService.extractWidth(x),V=this._activeBuffer.x-O,G=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).getString(V),X=new Uint32Array(G.length*D);let J=0;for(let I=0;I<G.length;){const H=G.codePointAt(I)||0;X[J++]=H,I+=H>65535?2:1}let N=J;for(let I=1;I<D;++I)X.copyWithin(N,0,J),N+=J;return this.print(X,0,N),!0}sendDeviceAttributesPrimary(B){return B.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(u.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(u.C0.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(B){return B.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(u.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(u.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(B.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(u.C0.ESC+"[>83;40003;0c")),!0}_is(B){return(this._optionsService.rawOptions.termName+"").indexOf(B)===0}setMode(B){for(let x=0;x<B.length;x++)switch(B.params[x]){case 4:this._coreService.modes.insertMode=!0;break;case 20:this._optionsService.options.convertEol=!0}return!0}setModePrivate(B){for(let x=0;x<B.length;x++)switch(B.params[x]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,v.DEFAULT_CHARSET),this._charsetService.setgCharset(1,v.DEFAULT_CHARSET),this._charsetService.setgCharset(2,v.DEFAULT_CHARSET),this._charsetService.setgCharset(3,v.DEFAULT_CHARSET);break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:this._optionsService.options.cursorBlink=!0;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0,this._onRequestSendFocus.fire();break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 1016:this._coreMouseService.activeEncoding="SGR_PIXELS";break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}return!0}resetMode(B){for(let x=0;x<B.length;x++)switch(B.params[x]){case 4:this._coreService.modes.insertMode=!1;break;case 20:this._optionsService.options.convertEol=!1}return!0}resetModePrivate(B){for(let x=0;x<B.length;x++)switch(B.params[x]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:this._optionsService.options.cursorBlink=!1;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:case 1016:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),B.params[x]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}return!0}requestMode(B,x){const D=this._coreService.decPrivateModes,{activeProtocol:O,activeEncoding:V}=this._coreMouseService,G=this._coreService,{buffers:X,cols:J}=this._bufferService,{active:N,alt:I}=X,H=this._optionsService.rawOptions,P=de=>de?1:2,Z=B.params[0];return j=Z,re=x?Z===2?4:Z===4?P(G.modes.insertMode):Z===12?3:Z===20?P(H.convertEol):0:Z===1?P(D.applicationCursorKeys):Z===3?H.windowOptions.setWinLines?J===80?2:J===132?1:0:0:Z===6?P(D.origin):Z===7?P(D.wraparound):Z===8?3:Z===9?P(O==="X10"):Z===12?P(H.cursorBlink):Z===25?P(!G.isCursorHidden):Z===45?P(D.reverseWraparound):Z===66?P(D.applicationKeypad):Z===67?4:Z===1e3?P(O==="VT200"):Z===1002?P(O==="DRAG"):Z===1003?P(O==="ANY"):Z===1004?P(D.sendFocus):Z===1005?4:Z===1006?P(V==="SGR"):Z===1015?4:Z===1016?P(V==="SGR_PIXELS"):Z===1048?1:Z===47||Z===1047||Z===1049?P(N===I):Z===2004?P(D.bracketedPasteMode):0,G.triggerDataEvent(`${u.C0.ESC}[${x?"":"?"}${j};${re}$y`),!0;var j,re}_updateAttrColor(B,x,D,O,V){return x===2?(B|=50331648,B&=-16777216,B|=g.AttributeData.fromColorRGB([D,O,V])):x===5&&(B&=-50331904,B|=33554432|255&D),B}_extractColor(B,x,D){const O=[0,0,-1,0,0,0];let V=0,G=0;do{if(O[G+V]=B.params[x+G],B.hasSubParams(x+G)){const X=B.getSubParams(x+G);let J=0;do O[1]===5&&(V=1),O[G+J+1+V]=X[J];while(++J<X.length&&J+G+1+V<O.length);break}if(O[1]===5&&G+V>=2||O[1]===2&&G+V>=5)break;O[1]&&(V=1)}while(++G+x<B.length&&G+V<O.length);for(let X=2;X<O.length;++X)O[X]===-1&&(O[X]=0);switch(O[0]){case 38:D.fg=this._updateAttrColor(D.fg,O[1],O[3],O[4],O[5]);break;case 48:D.bg=this._updateAttrColor(D.bg,O[1],O[3],O[4],O[5]);break;case 58:D.extended=D.extended.clone(),D.extended.underlineColor=this._updateAttrColor(D.extended.underlineColor,O[1],O[3],O[4],O[5])}return G}_processUnderline(B,x){x.extended=x.extended.clone(),(!~B||B>5)&&(B=1),x.extended.underlineStyle=B,x.fg|=268435456,B===0&&(x.fg&=-268435457),x.updateExtended()}_processSGR0(B){B.fg=o.DEFAULT_ATTR_DATA.fg,B.bg=o.DEFAULT_ATTR_DATA.bg,B.extended=B.extended.clone(),B.extended.underlineStyle=0,B.extended.underlineColor&=-67108864,B.updateExtended()}charAttributes(B){if(B.length===1&&B.params[0]===0)return this._processSGR0(this._curAttrData),!0;const x=B.length;let D;const O=this._curAttrData;for(let V=0;V<x;V++)D=B.params[V],D>=30&&D<=37?(O.fg&=-50331904,O.fg|=16777216|D-30):D>=40&&D<=47?(O.bg&=-50331904,O.bg|=16777216|D-40):D>=90&&D<=97?(O.fg&=-50331904,O.fg|=16777224|D-90):D>=100&&D<=107?(O.bg&=-50331904,O.bg|=16777224|D-100):D===0?this._processSGR0(O):D===1?O.fg|=134217728:D===3?O.bg|=67108864:D===4?(O.fg|=268435456,this._processUnderline(B.hasSubParams(V)?B.getSubParams(V)[0]:1,O)):D===5?O.fg|=536870912:D===7?O.fg|=67108864:D===8?O.fg|=1073741824:D===9?O.fg|=2147483648:D===2?O.bg|=134217728:D===21?this._processUnderline(2,O):D===22?(O.fg&=-134217729,O.bg&=-134217729):D===23?O.bg&=-67108865:D===24?(O.fg&=-268435457,this._processUnderline(0,O)):D===25?O.fg&=-536870913:D===27?O.fg&=-67108865:D===28?O.fg&=-1073741825:D===29?O.fg&=2147483647:D===39?(O.fg&=-67108864,O.fg|=16777215&o.DEFAULT_ATTR_DATA.fg):D===49?(O.bg&=-67108864,O.bg|=16777215&o.DEFAULT_ATTR_DATA.bg):D===38||D===48||D===58?V+=this._extractColor(B,V,O):D===53?O.bg|=1073741824:D===55?O.bg&=-1073741825:D===59?(O.extended=O.extended.clone(),O.extended.underlineColor=-1,O.updateExtended()):D===100?(O.fg&=-67108864,O.fg|=16777215&o.DEFAULT_ATTR_DATA.fg,O.bg&=-67108864,O.bg|=16777215&o.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",D);return!0}deviceStatus(B){switch(B.params[0]){case 5:this._coreService.triggerDataEvent(`${u.C0.ESC}[0n`);break;case 6:const x=this._activeBuffer.y+1,D=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${u.C0.ESC}[${x};${D}R`)}return!0}deviceStatusPrivate(B){if(B.params[0]===6){const x=this._activeBuffer.y+1,D=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${u.C0.ESC}[?${x};${D}R`)}return!0}softReset(B){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=o.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}setCursorStyle(B){const x=B.params[0]||1;switch(x){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"}const D=x%2==1;return this._optionsService.options.cursorBlink=D,!0}setScrollRegion(B){const x=B.params[0]||1;let D;return(B.length<2||(D=B.params[1])>this._bufferService.rows||D===0)&&(D=this._bufferService.rows),D>x&&(this._activeBuffer.scrollTop=x-1,this._activeBuffer.scrollBottom=D-1,this._setCursor(0,0)),!0}windowOptions(B){if(!L(B.params[0],this._optionsService.rawOptions.windowOptions))return!0;const x=B.length>1?B.params[1]:0;switch(B.params[0]){case 14:x!==2&&this._onRequestWindowsOptionsReport.fire(R.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(R.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${u.C0.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:x!==0&&x!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),x!==0&&x!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:x!==0&&x!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),x!==0&&x!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0}saveCursor(B){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}restoreCursor(B){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}setTitle(B){return this._windowTitle=B,this._onTitleChange.fire(B),!0}setIconName(B){return this._iconName=B,!0}setOrReportIndexedColor(B){const x=[],D=B.split(";");for(;D.length>1;){const O=D.shift(),V=D.shift();if(/^\d+$/.exec(O)){const G=parseInt(O);if(z(G))if(V==="?")x.push({type:0,index:G});else{const X=(0,k.parseColor)(V);X&&x.push({type:1,index:G,color:X})}}}return x.length&&this._onColor.fire(x),!0}setHyperlink(B){const x=B.split(";");return!(x.length<2)&&(x[1]?this._createHyperlink(x[0],x[1]):!x[0]&&this._finishHyperlink())}_createHyperlink(B,x){this._getCurrentLinkId()&&this._finishHyperlink();const D=B.split(":");let O;const V=D.findIndex((G=>G.startsWith("id=")));return V!==-1&&(O=D[V].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:O,uri:x}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(B,x){const D=B.split(";");for(let O=0;O<D.length&&!(x>=this._specialColors.length);++O,++x)if(D[O]==="?")this._onColor.fire([{type:0,index:this._specialColors[x]}]);else{const V=(0,k.parseColor)(D[O]);V&&this._onColor.fire([{type:1,index:this._specialColors[x],color:V}])}return!0}setOrReportFgColor(B){return this._setOrReportSpecialColor(B,0)}setOrReportBgColor(B){return this._setOrReportSpecialColor(B,1)}setOrReportCursorColor(B){return this._setOrReportSpecialColor(B,2)}restoreIndexedColor(B){if(!B)return this._onColor.fire([{type:2}]),!0;const x=[],D=B.split(";");for(let O=0;O<D.length;++O)if(/^\d+$/.exec(D[O])){const V=parseInt(D[O]);z(V)&&x.push({type:2,index:V})}return x.length&&this._onColor.fire(x),!0}restoreFgColor(B){return this._onColor.fire([{type:2,index:256}]),!0}restoreBgColor(B){return this._onColor.fire([{type:2,index:257}]),!0}restoreCursorColor(B){return this._onColor.fire([{type:2,index:258}]),!0}nextLine(){return this._activeBuffer.x=0,this.index(),!0}keypadApplicationMode(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0}keypadNumericMode(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0}selectDefaultCharset(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,v.DEFAULT_CHARSET),!0}selectCharset(B){return B.length!==2?(this.selectDefaultCharset(),!0):(B[0]==="/"||this._charsetService.setgCharset(A[B[0]],v.CHARSETS[B[1]]||v.DEFAULT_CHARSET),!0)}index(){return this._restrictCursor(),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}tabSet(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0}reverseIndex(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){const B=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,B,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=o.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=o.DEFAULT_ATTR_DATA.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal}setgLevel(B){return this._charsetService.setgLevel(B),!0}screenAlignmentPattern(){const B=new d.CellData;B.content=4194373,B.fg=this._curAttrData.fg,B.bg=this._curAttrData.bg,this._setCursor(0,0);for(let x=0;x<this._bufferService.rows;++x){const D=this._activeBuffer.ybase+this._activeBuffer.y+x,O=this._activeBuffer.lines.get(D);O&&(O.fill(B),O.isWrapped=!1)}return this._dirtyRowTracker.markAllDirty(),this._setCursor(0,0),!0}requestStatusString(B,x){const D=this._bufferService.buffer,O=this._optionsService.rawOptions;return(V=>(this._coreService.triggerDataEvent(`${u.C0.ESC}${V}${u.C0.ESC}\\`),!0))(B==='"q'?`P1$r${this._curAttrData.isProtected()?1:0}"q`:B==='"p'?'P1$r61;1"p':B==="r"?`P1$r${D.scrollTop+1};${D.scrollBottom+1}r`:B==="m"?"P1$r0m":B===" q"?`P1$r${{block:2,underline:4,bar:6}[O.cursorStyle]-(O.cursorBlink?1:0)} q`:"P0$r")}markRangeDirty(B,x){this._dirtyRowTracker.markRangeDirty(B,x)}}i.InputHandler=U;let $=class{constructor(W){this._bufferService=W,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty(W){W<this.start?this.start=W:W>this.end&&(this.end=W)}markRangeDirty(W,B){W>B&&(M=W,W=B,B=M),W<this.start&&(this.start=W),B>this.end&&(this.end=B)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};function z(W){return 0<=W&&W<256}$=h([f(0,C.IBufferService)],$)},844:(m,i)=>{function a(h){for(const f of h)f.dispose();h.length=0}Object.defineProperty(i,"__esModule",{value:!0}),i.getDisposeArrayDisposable=i.disposeArray=i.toDisposable=i.MutableDisposable=i.Disposable=void 0,i.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const h of this._disposables)h.dispose();this._disposables.length=0}register(h){return this._disposables.push(h),h}unregister(h){const f=this._disposables.indexOf(h);f!==-1&&this._disposables.splice(f,1)}},i.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(h){var f;this._isDisposed||h===this._value||((f=this._value)==null||f.dispose(),this._value=h)}clear(){this.value=void 0}dispose(){var h;this._isDisposed=!0,(h=this._value)==null||h.dispose(),this._value=void 0}},i.toDisposable=function(h){return{dispose:h}},i.disposeArray=a,i.getDisposeArrayDisposable=function(h){return{dispose:()=>a(h)}}},1505:(m,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.FourKeyMap=i.TwoKeyMap=void 0;class a{constructor(){this._data={}}set(f,u,v){this._data[f]||(this._data[f]={}),this._data[f][u]=v}get(f,u){return this._data[f]?this._data[f][u]:void 0}clear(){this._data={}}}i.TwoKeyMap=a,i.FourKeyMap=class{constructor(){this._data=new a}set(h,f,u,v,y){this._data.get(h,f)||this._data.set(h,f,new a),this._data.get(h,f).set(u,v,y)}get(h,f,u,v){var y;return(y=this._data.get(h,f))==null?void 0:y.get(u,v)}clear(){this._data.clear()}}},6114:(m,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.isChromeOS=i.isLinux=i.isWindows=i.isIphone=i.isIpad=i.isMac=i.getSafariVersion=i.isSafari=i.isLegacyEdge=i.isFirefox=i.isNode=void 0,i.isNode=typeof process<"u"&&"title"in process;const a=i.isNode?"node":navigator.userAgent,h=i.isNode?"node":navigator.platform;i.isFirefox=a.includes("Firefox"),i.isLegacyEdge=a.includes("Edge"),i.isSafari=/^((?!chrome|android).)*safari/i.test(a),i.getSafariVersion=function(){if(!i.isSafari)return 0;const f=a.match(/Version\/(\d+)/);return f===null||f.length<2?0:parseInt(f[1])},i.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(h),i.isIpad=h==="iPad",i.isIphone=h==="iPhone",i.isWindows=["Windows","Win16","Win32","WinCE"].includes(h),i.isLinux=h.indexOf("Linux")>=0,i.isChromeOS=/\bCrOS\b/.test(a)},6106:(m,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.SortedList=void 0;let a=0;i.SortedList=class{constructor(h){this._getKey=h,this._array=[]}clear(){this._array.length=0}insert(h){this._array.length!==0?(a=this._search(this._getKey(h)),this._array.splice(a,0,h)):this._array.push(h)}delete(h){if(this._array.length===0)return!1;const f=this._getKey(h);if(f===void 0||(a=this._search(f),a===-1)||this._getKey(this._array[a])!==f)return!1;do if(this._array[a]===h)return this._array.splice(a,1),!0;while(++a<this._array.length&&this._getKey(this._array[a])===f);return!1}*getKeyIterator(h){if(this._array.length!==0&&(a=this._search(h),!(a<0||a>=this._array.length)&&this._getKey(this._array[a])===h))do yield this._array[a];while(++a<this._array.length&&this._getKey(this._array[a])===h)}forEachByKey(h,f){if(this._array.length!==0&&(a=this._search(h),!(a<0||a>=this._array.length)&&this._getKey(this._array[a])===h))do f(this._array[a]);while(++a<this._array.length&&this._getKey(this._array[a])===h)}values(){return[...this._array].values()}_search(h){let f=0,u=this._array.length-1;for(;u>=f;){let v=f+u>>1;const y=this._getKey(this._array[v]);if(y>h)u=v-1;else{if(!(y<h)){for(;v>0&&this._getKey(this._array[v-1])===h;)v--;return v}f=v+1}}return f}}},7226:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.DebouncedIdleTask=i.IdleTaskQueue=i.PriorityTaskQueue=void 0;const h=a(6114);class f{constructor(){this._tasks=[],this._i=0}enqueue(y){this._tasks.push(y),this._start()}flush(){for(;this._i<this._tasks.length;)this._tasks[this._i]()||this._i++;this.clear()}clear(){this._idleCallback&&(this._cancelCallback(this._idleCallback),this._idleCallback=void 0),this._i=0,this._tasks.length=0}_start(){this._idleCallback||(this._idleCallback=this._requestCallback(this._process.bind(this)))}_process(y){this._idleCallback=void 0;let E=0,p=0,o=y.timeRemaining(),c=0;for(;this._i<this._tasks.length;){if(E=Date.now(),this._tasks[this._i]()||this._i++,E=Math.max(1,Date.now()-E),p=Math.max(E,p),c=y.timeRemaining(),1.5*p>c)return o-E<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(o-E))}ms`),void this._start();o=c}this.clear()}}class u extends f{_requestCallback(y){return setTimeout((()=>y(this._createDeadline(16))))}_cancelCallback(y){clearTimeout(y)}_createDeadline(y){const E=Date.now()+y;return{timeRemaining:()=>Math.max(0,E-Date.now())}}}i.PriorityTaskQueue=u,i.IdleTaskQueue=!h.isNode&&"requestIdleCallback"in window?class extends f{_requestCallback(v){return requestIdleCallback(v)}_cancelCallback(v){cancelIdleCallback(v)}}:u,i.DebouncedIdleTask=class{constructor(){this._queue=new i.IdleTaskQueue}set(v){this._queue.clear(),this._queue.enqueue(v)}flush(){this._queue.flush()}}},9282:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.updateWindowsModeWrappedState=void 0;const h=a(643);i.updateWindowsModeWrappedState=function(f){const u=f.buffer.lines.get(f.buffer.ybase+f.buffer.y-1),v=u==null?void 0:u.get(f.cols-1),y=f.buffer.lines.get(f.buffer.ybase+f.buffer.y);y&&v&&(y.isWrapped=v[h.CHAR_DATA_CODE_INDEX]!==h.NULL_CELL_CODE&&v[h.CHAR_DATA_CODE_INDEX]!==h.WHITESPACE_CELL_CODE)}},3734:(m,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.ExtendedAttrs=i.AttributeData=void 0;class a{constructor(){this.fg=0,this.bg=0,this.extended=new h}static toColorRGB(u){return[u>>>16&255,u>>>8&255,255&u]}static fromColorRGB(u){return(255&u[0])<<16|(255&u[1])<<8|255&u[2]}clone(){const u=new a;return u.fg=this.fg,u.bg=this.bg,u.extended=this.extended.clone(),u}isInverse(){return 67108864&this.fg}isBold(){return 134217728&this.fg}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:268435456&this.fg}isBlink(){return 536870912&this.fg}isInvisible(){return 1073741824&this.fg}isItalic(){return 67108864&this.bg}isDim(){return 134217728&this.bg}isStrikethrough(){return 2147483648&this.fg}isProtected(){return 536870912&this.bg}isOverline(){return 1073741824&this.bg}getFgColorMode(){return 50331648&this.fg}getBgColorMode(){return 50331648&this.bg}isFgRGB(){return(50331648&this.fg)==50331648}isBgRGB(){return(50331648&this.bg)==50331648}isFgPalette(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432}isBgPalette(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432}isFgDefault(){return(50331648&this.fg)==0}isBgDefault(){return(50331648&this.bg)==0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}getBgColor(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}hasExtendedAttrs(){return 268435456&this.bg}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){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()}getUnderlineColorMode(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}isUnderlineColorRGB(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()}isUnderlineColorPalette(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()}isUnderlineColorDefault(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()}getUnderlineStyle(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}}i.AttributeData=a;class h{get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(u){this._ext=u}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(u){this._ext&=-469762049,this._ext|=u<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(u){this._ext&=-67108864,this._ext|=67108863&u}get urlId(){return this._urlId}set urlId(u){this._urlId=u}get underlineVariantOffset(){const u=(3758096384&this._ext)>>29;return u<0?4294967288^u:u}set underlineVariantOffset(u){this._ext&=536870911,this._ext|=u<<29&3758096384}constructor(u=0,v=0){this._ext=0,this._urlId=0,this._ext=u,this._urlId=v}clone(){return new h(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}}i.ExtendedAttrs=h},9092:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.Buffer=i.MAX_BUFFER_SIZE=void 0;const h=a(6349),f=a(7226),u=a(3734),v=a(8437),y=a(4634),E=a(511),p=a(643),o=a(4863),c=a(7116);i.MAX_BUFFER_SIZE=4294967295,i.Buffer=class{constructor(n,d,g){this._hasScrollback=n,this._optionsService=d,this._bufferService=g,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=v.DEFAULT_ATTR_DATA.clone(),this.savedCharset=c.DEFAULT_CHARSET,this.markers=[],this._nullCell=E.CellData.fromCharData([0,p.NULL_CELL_CHAR,p.NULL_CELL_WIDTH,p.NULL_CELL_CODE]),this._whitespaceCell=E.CellData.fromCharData([0,p.WHITESPACE_CELL_CHAR,p.WHITESPACE_CELL_WIDTH,p.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._memoryCleanupQueue=new f.IdleTaskQueue,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new h.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(n){return n?(this._nullCell.fg=n.fg,this._nullCell.bg=n.bg,this._nullCell.extended=n.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new u.ExtendedAttrs),this._nullCell}getWhitespaceCell(n){return n?(this._whitespaceCell.fg=n.fg,this._whitespaceCell.bg=n.bg,this._whitespaceCell.extended=n.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new u.ExtendedAttrs),this._whitespaceCell}getBlankLine(n,d){return new v.BufferLine(this._bufferService.cols,this.getNullCell(n),d)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){const n=this.ybase+this.y-this.ydisp;return n>=0&&n<this._rows}_getCorrectBufferLength(n){if(!this._hasScrollback)return n;const d=n+this._optionsService.rawOptions.scrollback;return d>i.MAX_BUFFER_SIZE?i.MAX_BUFFER_SIZE:d}fillViewportRows(n){if(this.lines.length===0){n===void 0&&(n=v.DEFAULT_ATTR_DATA);let d=this._rows;for(;d--;)this.lines.push(this.getBlankLine(n))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new h.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(n,d){const g=this.getNullCell(v.DEFAULT_ATTR_DATA);let C=0;const S=this._getCorrectBufferLength(d);if(S>this.lines.maxLength&&(this.lines.maxLength=S),this.lines.length>0){if(this._cols<n)for(let b=0;b<this.lines.length;b++)C+=+this.lines.get(b).resize(n,g);let w=0;if(this._rows<d)for(let b=this._rows;b<d;b++)this.lines.length<d+this.ybase&&(this._optionsService.rawOptions.windowsMode||this._optionsService.rawOptions.windowsPty.backend!==void 0||this._optionsService.rawOptions.windowsPty.buildNumber!==void 0?this.lines.push(new v.BufferLine(n,g)):this.ybase>0&&this.lines.length<=this.ybase+this.y+w+1?(this.ybase--,w++,this.ydisp>0&&this.ydisp--):this.lines.push(new v.BufferLine(n,g)));else for(let b=this._rows;b>d;b--)this.lines.length>d+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(S<this.lines.maxLength){const b=this.lines.length-S;b>0&&(this.lines.trimStart(b),this.ybase=Math.max(this.ybase-b,0),this.ydisp=Math.max(this.ydisp-b,0),this.savedY=Math.max(this.savedY-b,0)),this.lines.maxLength=S}this.x=Math.min(this.x,n-1),this.y=Math.min(this.y,d-1),w&&(this.y+=w),this.savedX=Math.min(this.savedX,n-1),this.scrollTop=0}if(this.scrollBottom=d-1,this._isReflowEnabled&&(this._reflow(n,d),this._cols>n))for(let w=0;w<this.lines.length;w++)C+=+this.lines.get(w).resize(n,g);this._cols=n,this._rows=d,this._memoryCleanupQueue.clear(),C>.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue((()=>this._batchedMemoryCleanup())))}_batchedMemoryCleanup(){let n=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,n=!1);let d=0;for(;this._memoryCleanupPosition<this.lines.length;)if(d+=this.lines.get(this._memoryCleanupPosition++).cleanupMemory(),d>100)return!0;return n}get _isReflowEnabled(){const n=this._optionsService.rawOptions.windowsPty;return n&&n.buildNumber?this._hasScrollback&&n.backend==="conpty"&&n.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(n,d){this._cols!==n&&(n>this._cols?this._reflowLarger(n,d):this._reflowSmaller(n,d))}_reflowLarger(n,d){const g=(0,y.reflowLargerGetLinesToRemove)(this.lines,this._cols,n,this.ybase+this.y,this.getNullCell(v.DEFAULT_ATTR_DATA));if(g.length>0){const C=(0,y.reflowLargerCreateNewLayout)(this.lines,g);(0,y.reflowLargerApplyNewLayout)(this.lines,C.layout),this._reflowLargerAdjustViewport(n,d,C.countRemoved)}}_reflowLargerAdjustViewport(n,d,g){const C=this.getNullCell(v.DEFAULT_ATTR_DATA);let S=g;for(;S-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<d&&this.lines.push(new v.BufferLine(n,C))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-g,0)}_reflowSmaller(n,d){const g=this.getNullCell(v.DEFAULT_ATTR_DATA),C=[];let S=0;for(let w=this.lines.length-1;w>=0;w--){let b=this.lines.get(w);if(!b||!b.isWrapped&&b.getTrimmedLength()<=n)continue;const k=[b];for(;b.isWrapped&&w>0;)b=this.lines.get(--w),k.unshift(b);const A=this.ybase+this.y;if(A>=w&&A<w+k.length)continue;const T=k[k.length-1].getTrimmedLength(),L=(0,y.reflowSmallerGetNewLineLengths)(k,this._cols,n),R=L.length-k.length;let M;M=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+R):Math.max(0,this.lines.length-this.lines.maxLength+R);const U=[];for(let D=0;D<R;D++){const O=this.getBlankLine(v.DEFAULT_ATTR_DATA,!0);U.push(O)}U.length>0&&(C.push({start:w+k.length+S,newLines:U}),S+=U.length),k.push(...U);let $=L.length-1,z=L[$];z===0&&($--,z=L[$]);let W=k.length-R-1,B=T;for(;W>=0;){const D=Math.min(B,z);if(k[$]===void 0)break;if(k[$].copyCellsFrom(k[W],B-D,z-D,D,!0),z-=D,z===0&&($--,z=L[$]),B-=D,B===0){W--;const O=Math.max(W,0);B=(0,y.getWrappedLineTrimmedLength)(k,O,this._cols)}}for(let D=0;D<k.length;D++)L[D]<n&&k[D].setCell(L[D],g);let x=R-M;for(;x-- >0;)this.ybase===0?this.y<d-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+S)-d&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+R,this.ybase+d-1)}if(C.length>0){const w=[],b=[];for(let $=0;$<this.lines.length;$++)b.push(this.lines.get($));const k=this.lines.length;let A=k-1,T=0,L=C[T];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+S);let R=0;for(let $=Math.min(this.lines.maxLength-1,k+S-1);$>=0;$--)if(L&&L.start>A+R){for(let z=L.newLines.length-1;z>=0;z--)this.lines.set($--,L.newLines[z]);$++,w.push({index:A+1,amount:L.newLines.length}),R+=L.newLines.length,L=C[++T]}else this.lines.set($,b[A--]);let M=0;for(let $=w.length-1;$>=0;$--)w[$].index+=M,this.lines.onInsertEmitter.fire(w[$]),M+=w[$].amount;const U=Math.max(0,k+S-this.lines.maxLength);U>0&&this.lines.onTrimEmitter.fire(U)}}translateBufferLineToString(n,d,g=0,C){const S=this.lines.get(n);return S?S.translateToString(d,g,C):""}getWrappedRangeForLine(n){let d=n,g=n;for(;d>0&&this.lines.get(d).isWrapped;)d--;for(;g+1<this.lines.length&&this.lines.get(g+1).isWrapped;)g++;return{first:d,last:g}}setupTabStops(n){for(n!=null?this.tabs[n]||(n=this.prevStop(n)):(this.tabs={},n=0);n<this._cols;n+=this._optionsService.rawOptions.tabStopWidth)this.tabs[n]=!0}prevStop(n){for(n==null&&(n=this.x);!this.tabs[--n]&&n>0;);return n>=this._cols?this._cols-1:n<0?0:n}nextStop(n){for(n==null&&(n=this.x);!this.tabs[++n]&&n<this._cols;);return n>=this._cols?this._cols-1:n<0?0:n}clearMarkers(n){this._isClearing=!0;for(let d=0;d<this.markers.length;d++)this.markers[d].line===n&&(this.markers[d].dispose(),this.markers.splice(d--,1));this._isClearing=!1}clearAllMarkers(){this._isClearing=!0;for(let n=0;n<this.markers.length;n++)this.markers[n].dispose(),this.markers.splice(n--,1);this._isClearing=!1}addMarker(n){const d=new o.Marker(n);return this.markers.push(d),d.register(this.lines.onTrim((g=>{d.line-=g,d.line<0&&d.dispose()}))),d.register(this.lines.onInsert((g=>{d.line>=g.index&&(d.line+=g.amount)}))),d.register(this.lines.onDelete((g=>{d.line>=g.index&&d.line<g.index+g.amount&&d.dispose(),d.line>g.index&&(d.line-=g.amount)}))),d.register(d.onDispose((()=>this._removeMarker(d)))),d}_removeMarker(n){this._isClearing||this.markers.splice(this.markers.indexOf(n),1)}}},8437:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.BufferLine=i.DEFAULT_ATTR_DATA=void 0;const h=a(3734),f=a(511),u=a(643),v=a(482);i.DEFAULT_ATTR_DATA=Object.freeze(new h.AttributeData);let y=0;class E{constructor(o,c,n=!1){this.isWrapped=n,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*o);const d=c||f.CellData.fromCharData([0,u.NULL_CELL_CHAR,u.NULL_CELL_WIDTH,u.NULL_CELL_CODE]);for(let g=0;g<o;++g)this.setCell(g,d);this.length=o}get(o){const c=this._data[3*o+0],n=2097151&c;return[this._data[3*o+1],2097152&c?this._combined[o]:n?(0,v.stringFromCodePoint)(n):"",c>>22,2097152&c?this._combined[o].charCodeAt(this._combined[o].length-1):n]}set(o,c){this._data[3*o+1]=c[u.CHAR_DATA_ATTR_INDEX],c[u.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[o]=c[1],this._data[3*o+0]=2097152|o|c[u.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*o+0]=c[u.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|c[u.CHAR_DATA_WIDTH_INDEX]<<22}getWidth(o){return this._data[3*o+0]>>22}hasWidth(o){return 12582912&this._data[3*o+0]}getFg(o){return this._data[3*o+1]}getBg(o){return this._data[3*o+2]}hasContent(o){return 4194303&this._data[3*o+0]}getCodePoint(o){const c=this._data[3*o+0];return 2097152&c?this._combined[o].charCodeAt(this._combined[o].length-1):2097151&c}isCombined(o){return 2097152&this._data[3*o+0]}getString(o){const c=this._data[3*o+0];return 2097152&c?this._combined[o]:2097151&c?(0,v.stringFromCodePoint)(2097151&c):""}isProtected(o){return 536870912&this._data[3*o+2]}loadCell(o,c){return y=3*o,c.content=this._data[y+0],c.fg=this._data[y+1],c.bg=this._data[y+2],2097152&c.content&&(c.combinedData=this._combined[o]),268435456&c.bg&&(c.extended=this._extendedAttrs[o]),c}setCell(o,c){2097152&c.content&&(this._combined[o]=c.combinedData),268435456&c.bg&&(this._extendedAttrs[o]=c.extended),this._data[3*o+0]=c.content,this._data[3*o+1]=c.fg,this._data[3*o+2]=c.bg}setCellFromCodepoint(o,c,n,d){268435456&d.bg&&(this._extendedAttrs[o]=d.extended),this._data[3*o+0]=c|n<<22,this._data[3*o+1]=d.fg,this._data[3*o+2]=d.bg}addCodepointToCell(o,c,n){let d=this._data[3*o+0];2097152&d?this._combined[o]+=(0,v.stringFromCodePoint)(c):2097151&d?(this._combined[o]=(0,v.stringFromCodePoint)(2097151&d)+(0,v.stringFromCodePoint)(c),d&=-2097152,d|=2097152):d=c|4194304,n&&(d&=-12582913,d|=n<<22),this._data[3*o+0]=d}insertCells(o,c,n){if((o%=this.length)&&this.getWidth(o-1)===2&&this.setCellFromCodepoint(o-1,0,1,n),c<this.length-o){const d=new f.CellData;for(let g=this.length-o-c-1;g>=0;--g)this.setCell(o+c+g,this.loadCell(o+g,d));for(let g=0;g<c;++g)this.setCell(o+g,n)}else for(let d=o;d<this.length;++d)this.setCell(d,n);this.getWidth(this.length-1)===2&&this.setCellFromCodepoint(this.length-1,0,1,n)}deleteCells(o,c,n){if(o%=this.length,c<this.length-o){const d=new f.CellData;for(let g=0;g<this.length-o-c;++g)this.setCell(o+g,this.loadCell(o+c+g,d));for(let g=this.length-c;g<this.length;++g)this.setCell(g,n)}else for(let d=o;d<this.length;++d)this.setCell(d,n);o&&this.getWidth(o-1)===2&&this.setCellFromCodepoint(o-1,0,1,n),this.getWidth(o)!==0||this.hasContent(o)||this.setCellFromCodepoint(o,0,1,n)}replaceCells(o,c,n,d=!1){if(d)for(o&&this.getWidth(o-1)===2&&!this.isProtected(o-1)&&this.setCellFromCodepoint(o-1,0,1,n),c<this.length&&this.getWidth(c-1)===2&&!this.isProtected(c)&&this.setCellFromCodepoint(c,0,1,n);o<c&&o<this.length;)this.isProtected(o)||this.setCell(o,n),o++;else for(o&&this.getWidth(o-1)===2&&this.setCellFromCodepoint(o-1,0,1,n),c<this.length&&this.getWidth(c-1)===2&&this.setCellFromCodepoint(c,0,1,n);o<c&&o<this.length;)this.setCell(o++,n)}resize(o,c){if(o===this.length)return 4*this._data.length*2<this._data.buffer.byteLength;const n=3*o;if(o>this.length){if(this._data.buffer.byteLength>=4*n)this._data=new Uint32Array(this._data.buffer,0,n);else{const d=new Uint32Array(n);d.set(this._data),this._data=d}for(let d=this.length;d<o;++d)this.setCell(d,c)}else{this._data=this._data.subarray(0,n);const d=Object.keys(this._combined);for(let C=0;C<d.length;C++){const S=parseInt(d[C],10);S>=o&&delete this._combined[S]}const g=Object.keys(this._extendedAttrs);for(let C=0;C<g.length;C++){const S=parseInt(g[C],10);S>=o&&delete this._extendedAttrs[S]}}return this.length=o,4*n*2<this._data.buffer.byteLength}cleanupMemory(){if(4*this._data.length*2<this._data.buffer.byteLength){const o=new Uint32Array(this._data.length);return o.set(this._data),this._data=o,1}return 0}fill(o,c=!1){if(c)for(let n=0;n<this.length;++n)this.isProtected(n)||this.setCell(n,o);else{this._combined={},this._extendedAttrs={};for(let n=0;n<this.length;++n)this.setCell(n,o)}}copyFrom(o){this.length!==o.length?this._data=new Uint32Array(o._data):this._data.set(o._data),this.length=o.length,this._combined={};for(const c in o._combined)this._combined[c]=o._combined[c];this._extendedAttrs={};for(const c in o._extendedAttrs)this._extendedAttrs[c]=o._extendedAttrs[c];this.isWrapped=o.isWrapped}clone(){const o=new E(0);o._data=new Uint32Array(this._data),o.length=this.length;for(const c in this._combined)o._combined[c]=this._combined[c];for(const c in this._extendedAttrs)o._extendedAttrs[c]=this._extendedAttrs[c];return o.isWrapped=this.isWrapped,o}getTrimmedLength(){for(let o=this.length-1;o>=0;--o)if(4194303&this._data[3*o+0])return o+(this._data[3*o+0]>>22);return 0}getNoBgTrimmedLength(){for(let o=this.length-1;o>=0;--o)if(4194303&this._data[3*o+0]||50331648&this._data[3*o+2])return o+(this._data[3*o+0]>>22);return 0}copyCellsFrom(o,c,n,d,g){const C=o._data;if(g)for(let w=d-1;w>=0;w--){for(let b=0;b<3;b++)this._data[3*(n+w)+b]=C[3*(c+w)+b];268435456&C[3*(c+w)+2]&&(this._extendedAttrs[n+w]=o._extendedAttrs[c+w])}else for(let w=0;w<d;w++){for(let b=0;b<3;b++)this._data[3*(n+w)+b]=C[3*(c+w)+b];268435456&C[3*(c+w)+2]&&(this._extendedAttrs[n+w]=o._extendedAttrs[c+w])}const S=Object.keys(o._combined);for(let w=0;w<S.length;w++){const b=parseInt(S[w],10);b>=c&&(this._combined[b-c+n]=o._combined[b])}}translateToString(o,c,n,d){c=c??0,n=n??this.length,o&&(n=Math.min(n,this.getTrimmedLength())),d&&(d.length=0);let g="";for(;c<n;){const C=this._data[3*c+0],S=2097151&C,w=2097152&C?this._combined[c]:S?(0,v.stringFromCodePoint)(S):u.WHITESPACE_CELL_CHAR;if(g+=w,d)for(let b=0;b<w.length;++b)d.push(c);c+=C>>22||1}return d&&d.push(c),g}}i.BufferLine=E},4841:(m,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.getRangeLength=void 0,i.getRangeLength=function(a,h){if(a.start.y>a.end.y)throw new Error(`Buffer range end (${a.end.x}, ${a.end.y}) cannot be before start (${a.start.x}, ${a.start.y})`);return h*(a.end.y-a.start.y)+(a.end.x-a.start.x+1)}},4634:(m,i)=>{function a(h,f,u){if(f===h.length-1)return h[f].getTrimmedLength();const v=!h[f].hasContent(u-1)&&h[f].getWidth(u-1)===1,y=h[f+1].getWidth(0)===2;return v&&y?u-1:u}Object.defineProperty(i,"__esModule",{value:!0}),i.getWrappedLineTrimmedLength=i.reflowSmallerGetNewLineLengths=i.reflowLargerApplyNewLayout=i.reflowLargerCreateNewLayout=i.reflowLargerGetLinesToRemove=void 0,i.reflowLargerGetLinesToRemove=function(h,f,u,v,y){const E=[];for(let p=0;p<h.length-1;p++){let o=p,c=h.get(++o);if(!c.isWrapped)continue;const n=[h.get(p)];for(;o<h.length&&c.isWrapped;)n.push(c),c=h.get(++o);if(v>=p&&v<o){p+=n.length-1;continue}let d=0,g=a(n,d,f),C=1,S=0;for(;C<n.length;){const b=a(n,C,f),k=b-S,A=u-g,T=Math.min(k,A);n[d].copyCellsFrom(n[C],S,g,T,!1),g+=T,g===u&&(d++,g=0),S+=T,S===b&&(C++,S=0),g===0&&d!==0&&n[d-1].getWidth(u-1)===2&&(n[d].copyCellsFrom(n[d-1],u-1,g++,1,!1),n[d-1].setCell(u-1,y))}n[d].replaceCells(g,u,y);let w=0;for(let b=n.length-1;b>0&&(b>d||n[b].getTrimmedLength()===0);b--)w++;w>0&&(E.push(p+n.length-w),E.push(w)),p+=n.length-1}return E},i.reflowLargerCreateNewLayout=function(h,f){const u=[];let v=0,y=f[v],E=0;for(let p=0;p<h.length;p++)if(y===p){const o=f[++v];h.onDeleteEmitter.fire({index:p-E,amount:o}),p+=o-1,E+=o,y=f[++v]}else u.push(p);return{layout:u,countRemoved:E}},i.reflowLargerApplyNewLayout=function(h,f){const u=[];for(let v=0;v<f.length;v++)u.push(h.get(f[v]));for(let v=0;v<u.length;v++)h.set(v,u[v]);h.length=f.length},i.reflowSmallerGetNewLineLengths=function(h,f,u){const v=[],y=h.map(((c,n)=>a(h,n,f))).reduce(((c,n)=>c+n));let E=0,p=0,o=0;for(;o<y;){if(y-o<u){v.push(y-o);break}E+=u;const c=a(h,p,f);E>c&&(E-=c,p++);const n=h[p].getWidth(E-1)===2;n&&E--;const d=n?u-1:u;v.push(d),o+=d}return v},i.getWrappedLineTrimmedLength=a},5295:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.BufferSet=void 0;const h=a(8460),f=a(844),u=a(9092);class v extends f.Disposable{constructor(E,p){super(),this._optionsService=E,this._bufferService=p,this._onBufferActivate=this.register(new h.EventEmitter),this.onBufferActivate=this._onBufferActivate.event,this.reset(),this.register(this._optionsService.onSpecificOptionChange("scrollback",(()=>this.resize(this._bufferService.cols,this._bufferService.rows)))),this.register(this._optionsService.onSpecificOptionChange("tabStopWidth",(()=>this.setupTabStops())))}reset(){this._normal=new u.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new u.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}get alt(){return this._alt}get active(){return this._activeBuffer}get normal(){return this._normal}activateNormalBuffer(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}activateAltBuffer(E){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(E),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}))}resize(E,p){this._normal.resize(E,p),this._alt.resize(E,p),this.setupTabStops(E)}setupTabStops(E){this._normal.setupTabStops(E),this._alt.setupTabStops(E)}}i.BufferSet=v},511:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.CellData=void 0;const h=a(482),f=a(643),u=a(3734);class v extends u.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new u.ExtendedAttrs,this.combinedData=""}static fromCharData(E){const p=new v;return p.setFromCharData(E),p}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,h.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(E){this.fg=E[f.CHAR_DATA_ATTR_INDEX],this.bg=0;let p=!1;if(E[f.CHAR_DATA_CHAR_INDEX].length>2)p=!0;else if(E[f.CHAR_DATA_CHAR_INDEX].length===2){const o=E[f.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=o&&o<=56319){const c=E[f.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=c&&c<=57343?this.content=1024*(o-55296)+c-56320+65536|E[f.CHAR_DATA_WIDTH_INDEX]<<22:p=!0}else p=!0}else this.content=E[f.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|E[f.CHAR_DATA_WIDTH_INDEX]<<22;p&&(this.combinedData=E[f.CHAR_DATA_CHAR_INDEX],this.content=2097152|E[f.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}i.CellData=v},643:(m,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_EXT=i.DEFAULT_ATTR=i.DEFAULT_COLOR=void 0,i.DEFAULT_COLOR=0,i.DEFAULT_ATTR=256|i.DEFAULT_COLOR<<9,i.DEFAULT_EXT=0,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:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.Marker=void 0;const h=a(8460),f=a(844);class u{get id(){return this._id}constructor(y){this.line=y,this.isDisposed=!1,this._disposables=[],this._id=u._nextId++,this._onDispose=this.register(new h.EventEmitter),this.onDispose=this._onDispose.event}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),(0,f.disposeArray)(this._disposables),this._disposables.length=0)}register(y){return this._disposables.push(y),y}}i.Marker=u,u._nextId=1},7116:(m,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]={"`":"◆",a:"▒",b:"␉",c:"␌",d:"␍",e:"␊",f:"°",g:"±",h:"",i:"␋",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"},i.CHARSETS.A={"#":"£"},i.CHARSETS.B=void 0,i.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},i.CHARSETS.C=i.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},i.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},i.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},i.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},i.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},i.CHARSETS.E=i.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},i.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},i.CHARSETS.H=i.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},i.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},2584:(m,i)=>{var a,h,f;Object.defineProperty(i,"__esModule",{value:!0}),i.C1_ESCAPED=i.C1=i.C0=void 0,(function(u){u.NUL="\0",u.SOH="",u.STX="",u.ETX="",u.EOT="",u.ENQ="",u.ACK="",u.BEL="\x07",u.BS="\b",u.HT=" ",u.LF=`
|
|
165
|
-
`,u.VT="\v",u.FF="\f",u.CR="\r",u.SO="",u.SI="",u.DLE="",u.DC1="",u.DC2="",u.DC3="",u.DC4="",u.NAK="",u.SYN="",u.ETB="",u.CAN="",u.EM="",u.SUB="",u.ESC="\x1B",u.FS="",u.GS="",u.RS="",u.US="",u.SP=" ",u.DEL=""})(a||(i.C0=a={})),(function(u){u.PAD="",u.HOP="",u.BPH="",u.NBH="",u.IND="",u.NEL="
",u.SSA="",u.ESA="",u.HTS="",u.HTJ="",u.VTS="",u.PLD="",u.PLU="",u.RI="",u.SS2="",u.SS3="",u.DCS="",u.PU1="",u.PU2="",u.STS="",u.CCH="",u.MW="",u.SPA="",u.EPA="",u.SOS="",u.SGCI="",u.SCI="",u.CSI="",u.ST="",u.OSC="",u.PM="",u.APC=""})(h||(i.C1=h={})),(function(u){u.ST=`${a.ESC}\\`})(f||(i.C1_ESCAPED=f={}))},7399:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.evaluateKeyboardEvent=void 0;const h=a(2584),f={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};i.evaluateKeyboardEvent=function(u,v,y,E){const p={type:0,cancel:!1,key:void 0},o=(u.shiftKey?1:0)|(u.altKey?2:0)|(u.ctrlKey?4:0)|(u.metaKey?8:0);switch(u.keyCode){case 0:u.key==="UIKeyInputUpArrow"?p.key=v?h.C0.ESC+"OA":h.C0.ESC+"[A":u.key==="UIKeyInputLeftArrow"?p.key=v?h.C0.ESC+"OD":h.C0.ESC+"[D":u.key==="UIKeyInputRightArrow"?p.key=v?h.C0.ESC+"OC":h.C0.ESC+"[C":u.key==="UIKeyInputDownArrow"&&(p.key=v?h.C0.ESC+"OB":h.C0.ESC+"[B");break;case 8:p.key=u.ctrlKey?"\b":h.C0.DEL,u.altKey&&(p.key=h.C0.ESC+p.key);break;case 9:if(u.shiftKey){p.key=h.C0.ESC+"[Z";break}p.key=h.C0.HT,p.cancel=!0;break;case 13:p.key=u.altKey?h.C0.ESC+h.C0.CR:h.C0.CR,p.cancel=!0;break;case 27:p.key=h.C0.ESC,u.altKey&&(p.key=h.C0.ESC+h.C0.ESC),p.cancel=!0;break;case 37:if(u.metaKey)break;o?(p.key=h.C0.ESC+"[1;"+(o+1)+"D",p.key===h.C0.ESC+"[1;3D"&&(p.key=h.C0.ESC+(y?"b":"[1;5D"))):p.key=v?h.C0.ESC+"OD":h.C0.ESC+"[D";break;case 39:if(u.metaKey)break;o?(p.key=h.C0.ESC+"[1;"+(o+1)+"C",p.key===h.C0.ESC+"[1;3C"&&(p.key=h.C0.ESC+(y?"f":"[1;5C"))):p.key=v?h.C0.ESC+"OC":h.C0.ESC+"[C";break;case 38:if(u.metaKey)break;o?(p.key=h.C0.ESC+"[1;"+(o+1)+"A",y||p.key!==h.C0.ESC+"[1;3A"||(p.key=h.C0.ESC+"[1;5A")):p.key=v?h.C0.ESC+"OA":h.C0.ESC+"[A";break;case 40:if(u.metaKey)break;o?(p.key=h.C0.ESC+"[1;"+(o+1)+"B",y||p.key!==h.C0.ESC+"[1;3B"||(p.key=h.C0.ESC+"[1;5B")):p.key=v?h.C0.ESC+"OB":h.C0.ESC+"[B";break;case 45:u.shiftKey||u.ctrlKey||(p.key=h.C0.ESC+"[2~");break;case 46:p.key=o?h.C0.ESC+"[3;"+(o+1)+"~":h.C0.ESC+"[3~";break;case 36:p.key=o?h.C0.ESC+"[1;"+(o+1)+"H":v?h.C0.ESC+"OH":h.C0.ESC+"[H";break;case 35:p.key=o?h.C0.ESC+"[1;"+(o+1)+"F":v?h.C0.ESC+"OF":h.C0.ESC+"[F";break;case 33:u.shiftKey?p.type=2:u.ctrlKey?p.key=h.C0.ESC+"[5;"+(o+1)+"~":p.key=h.C0.ESC+"[5~";break;case 34:u.shiftKey?p.type=3:u.ctrlKey?p.key=h.C0.ESC+"[6;"+(o+1)+"~":p.key=h.C0.ESC+"[6~";break;case 112:p.key=o?h.C0.ESC+"[1;"+(o+1)+"P":h.C0.ESC+"OP";break;case 113:p.key=o?h.C0.ESC+"[1;"+(o+1)+"Q":h.C0.ESC+"OQ";break;case 114:p.key=o?h.C0.ESC+"[1;"+(o+1)+"R":h.C0.ESC+"OR";break;case 115:p.key=o?h.C0.ESC+"[1;"+(o+1)+"S":h.C0.ESC+"OS";break;case 116:p.key=o?h.C0.ESC+"[15;"+(o+1)+"~":h.C0.ESC+"[15~";break;case 117:p.key=o?h.C0.ESC+"[17;"+(o+1)+"~":h.C0.ESC+"[17~";break;case 118:p.key=o?h.C0.ESC+"[18;"+(o+1)+"~":h.C0.ESC+"[18~";break;case 119:p.key=o?h.C0.ESC+"[19;"+(o+1)+"~":h.C0.ESC+"[19~";break;case 120:p.key=o?h.C0.ESC+"[20;"+(o+1)+"~":h.C0.ESC+"[20~";break;case 121:p.key=o?h.C0.ESC+"[21;"+(o+1)+"~":h.C0.ESC+"[21~";break;case 122:p.key=o?h.C0.ESC+"[23;"+(o+1)+"~":h.C0.ESC+"[23~";break;case 123:p.key=o?h.C0.ESC+"[24;"+(o+1)+"~":h.C0.ESC+"[24~";break;default:if(!u.ctrlKey||u.shiftKey||u.altKey||u.metaKey)if(y&&!E||!u.altKey||u.metaKey)!y||u.altKey||u.ctrlKey||u.shiftKey||!u.metaKey?u.key&&!u.ctrlKey&&!u.altKey&&!u.metaKey&&u.keyCode>=48&&u.key.length===1?p.key=u.key:u.key&&u.ctrlKey&&(u.key==="_"&&(p.key=h.C0.US),u.key==="@"&&(p.key=h.C0.NUL)):u.keyCode===65&&(p.type=1);else{const c=f[u.keyCode],n=c==null?void 0:c[u.shiftKey?1:0];if(n)p.key=h.C0.ESC+n;else if(u.keyCode>=65&&u.keyCode<=90){const d=u.ctrlKey?u.keyCode-64:u.keyCode+32;let g=String.fromCharCode(d);u.shiftKey&&(g=g.toUpperCase()),p.key=h.C0.ESC+g}else if(u.keyCode===32)p.key=h.C0.ESC+(u.ctrlKey?h.C0.NUL:" ");else if(u.key==="Dead"&&u.code.startsWith("Key")){let d=u.code.slice(3,4);u.shiftKey||(d=d.toLowerCase()),p.key=h.C0.ESC+d,p.cancel=!0}}else u.keyCode>=65&&u.keyCode<=90?p.key=String.fromCharCode(u.keyCode-64):u.keyCode===32?p.key=h.C0.NUL:u.keyCode>=51&&u.keyCode<=55?p.key=String.fromCharCode(u.keyCode-51+27):u.keyCode===56?p.key=h.C0.DEL:u.keyCode===219?p.key=h.C0.ESC:u.keyCode===220?p.key=h.C0.FS:u.keyCode===221&&(p.key=h.C0.GS)}return p}},482:(m,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.Utf8ToUtf32=i.StringToUtf32=i.utf32ToString=i.stringFromCodePoint=void 0,i.stringFromCodePoint=function(a){return a>65535?(a-=65536,String.fromCharCode(55296+(a>>10))+String.fromCharCode(a%1024+56320)):String.fromCharCode(a)},i.utf32ToString=function(a,h=0,f=a.length){let u="";for(let v=h;v<f;++v){let y=a[v];y>65535?(y-=65536,u+=String.fromCharCode(55296+(y>>10))+String.fromCharCode(y%1024+56320)):u+=String.fromCharCode(y)}return u},i.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(a,h){const f=a.length;if(!f)return 0;let u=0,v=0;if(this._interim){const y=a.charCodeAt(v++);56320<=y&&y<=57343?h[u++]=1024*(this._interim-55296)+y-56320+65536:(h[u++]=this._interim,h[u++]=y),this._interim=0}for(let y=v;y<f;++y){const E=a.charCodeAt(y);if(55296<=E&&E<=56319){if(++y>=f)return this._interim=E,u;const p=a.charCodeAt(y);56320<=p&&p<=57343?h[u++]=1024*(E-55296)+p-56320+65536:(h[u++]=E,h[u++]=p)}else E!==65279&&(h[u++]=E)}return u}},i.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(a,h){const f=a.length;if(!f)return 0;let u,v,y,E,p=0,o=0,c=0;if(this.interim[0]){let g=!1,C=this.interim[0];C&=(224&C)==192?31:(240&C)==224?15:7;let S,w=0;for(;(S=63&this.interim[++w])&&w<4;)C<<=6,C|=S;const b=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,k=b-w;for(;c<k;){if(c>=f)return 0;if(S=a[c++],(192&S)!=128){c--,g=!0;break}this.interim[w++]=S,C<<=6,C|=63&S}g||(b===2?C<128?c--:h[p++]=C:b===3?C<2048||C>=55296&&C<=57343||C===65279||(h[p++]=C):C<65536||C>1114111||(h[p++]=C)),this.interim.fill(0)}const n=f-4;let d=c;for(;d<f;){for(;!(!(d<n)||128&(u=a[d])||128&(v=a[d+1])||128&(y=a[d+2])||128&(E=a[d+3]));)h[p++]=u,h[p++]=v,h[p++]=y,h[p++]=E,d+=4;if(u=a[d++],u<128)h[p++]=u;else if((224&u)==192){if(d>=f)return this.interim[0]=u,p;if(v=a[d++],(192&v)!=128){d--;continue}if(o=(31&u)<<6|63&v,o<128){d--;continue}h[p++]=o}else if((240&u)==224){if(d>=f)return this.interim[0]=u,p;if(v=a[d++],(192&v)!=128){d--;continue}if(d>=f)return this.interim[0]=u,this.interim[1]=v,p;if(y=a[d++],(192&y)!=128){d--;continue}if(o=(15&u)<<12|(63&v)<<6|63&y,o<2048||o>=55296&&o<=57343||o===65279)continue;h[p++]=o}else if((248&u)==240){if(d>=f)return this.interim[0]=u,p;if(v=a[d++],(192&v)!=128){d--;continue}if(d>=f)return this.interim[0]=u,this.interim[1]=v,p;if(y=a[d++],(192&y)!=128){d--;continue}if(d>=f)return this.interim[0]=u,this.interim[1]=v,this.interim[2]=y,p;if(E=a[d++],(192&E)!=128){d--;continue}if(o=(7&u)<<18|(63&v)<<12|(63&y)<<6|63&E,o<65536||o>1114111)continue;h[p++]=o}}return p}}},225:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.UnicodeV6=void 0;const h=a(1480),f=[[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]],u=[[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]];let v;i.UnicodeV6=class{constructor(){if(this.version="6",!v){v=new Uint8Array(65536),v.fill(1),v[0]=0,v.fill(0,1,32),v.fill(0,127,160),v.fill(2,4352,4448),v[9001]=2,v[9002]=2,v.fill(2,11904,42192),v[12351]=1,v.fill(2,44032,55204),v.fill(2,63744,64256),v.fill(2,65040,65050),v.fill(2,65072,65136),v.fill(2,65280,65377),v.fill(2,65504,65511);for(let y=0;y<f.length;++y)v.fill(0,f[y][0],f[y][1]+1)}}wcwidth(y){return y<32?0:y<127?1:y<65536?v[y]:(function(E,p){let o,c=0,n=p.length-1;if(E<p[0][0]||E>p[n][1])return!1;for(;n>=c;)if(o=c+n>>1,E>p[o][1])c=o+1;else{if(!(E<p[o][0]))return!0;n=o-1}return!1})(y,u)?0:y>=131072&&y<=196605||y>=196608&&y<=262141?2:1}charProperties(y,E){let p=this.wcwidth(y),o=p===0&&E!==0;if(o){const c=h.UnicodeService.extractWidth(E);c===0?o=!1:c>p&&(p=c)}return h.UnicodeService.createPropertyValue(0,p,o)}}},5981:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.WriteBuffer=void 0;const h=a(8460),f=a(844);class u extends f.Disposable{constructor(y){super(),this._action=y,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this.register(new h.EventEmitter),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(y,E){if(E!==void 0&&this._syncCalls>E)return void(this._syncCalls=0);if(this._pendingData+=y.length,this._writeBuffer.push(y),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;let p;for(this._isSyncWriting=!0;p=this._writeBuffer.shift();){this._action(p);const o=this._callbacks.shift();o&&o()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(y,E){if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput)return this._didUserInput=!1,this._pendingData+=y.length,this._writeBuffer.push(y),this._callbacks.push(E),void this._innerWrite();setTimeout((()=>this._innerWrite()))}this._pendingData+=y.length,this._writeBuffer.push(y),this._callbacks.push(E)}_innerWrite(y=0,E=!0){const p=y||Date.now();for(;this._writeBuffer.length>this._bufferOffset;){const o=this._writeBuffer[this._bufferOffset],c=this._action(o,E);if(c){const d=g=>Date.now()-p>=12?setTimeout((()=>this._innerWrite(0,g))):this._innerWrite(p,g);return void c.catch((g=>(queueMicrotask((()=>{throw g})),Promise.resolve(!1)))).then(d)}const n=this._callbacks[this._bufferOffset];if(n&&n(),this._bufferOffset++,this._pendingData-=o.length,Date.now()-p>=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((()=>this._innerWrite()))):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}}i.WriteBuffer=u},5941:(m,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.toRgbString=i.parseColor=void 0;const a=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\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})$/,h=/^[\da-f]+$/;function f(u,v){const y=u.toString(16),E=y.length<2?"0"+y:y;switch(v){case 4:return y[0];case 8:return E;case 12:return(E+E).slice(0,3);default:return E+E}}i.parseColor=function(u){if(!u)return;let v=u.toLowerCase();if(v.indexOf("rgb:")===0){v=v.slice(4);const y=a.exec(v);if(y){const E=y[1]?15:y[4]?255:y[7]?4095:65535;return[Math.round(parseInt(y[1]||y[4]||y[7]||y[10],16)/E*255),Math.round(parseInt(y[2]||y[5]||y[8]||y[11],16)/E*255),Math.round(parseInt(y[3]||y[6]||y[9]||y[12],16)/E*255)]}}else if(v.indexOf("#")===0&&(v=v.slice(1),h.exec(v)&&[3,6,9,12].includes(v.length))){const y=v.length/3,E=[0,0,0];for(let p=0;p<3;++p){const o=parseInt(v.slice(y*p,y*p+y),16);E[p]=y===1?o<<4:y===2?o:y===3?o>>4:o>>8}return E}},i.toRgbString=function(u,v=16){const[y,E,p]=u;return`rgb:${f(y,v)}/${f(E,v)}/${f(p,v)}`}},5770:(m,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.PAYLOAD_LIMIT=void 0,i.PAYLOAD_LIMIT=1e7},6351:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.DcsHandler=i.DcsParser=void 0;const h=a(482),f=a(8742),u=a(5770),v=[];i.DcsParser=class{constructor(){this._handlers=Object.create(null),this._active=v,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=v}registerHandler(E,p){this._handlers[E]===void 0&&(this._handlers[E]=[]);const o=this._handlers[E];return o.push(p),{dispose:()=>{const c=o.indexOf(p);c!==-1&&o.splice(c,1)}}}clearHandler(E){this._handlers[E]&&delete this._handlers[E]}setHandlerFallback(E){this._handlerFb=E}reset(){if(this._active.length)for(let E=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;E>=0;--E)this._active[E].unhook(!1);this._stack.paused=!1,this._active=v,this._ident=0}hook(E,p){if(this.reset(),this._ident=E,this._active=this._handlers[E]||v,this._active.length)for(let o=this._active.length-1;o>=0;o--)this._active[o].hook(p);else this._handlerFb(this._ident,"HOOK",p)}put(E,p,o){if(this._active.length)for(let c=this._active.length-1;c>=0;c--)this._active[c].put(E,p,o);else this._handlerFb(this._ident,"PUT",(0,h.utf32ToString)(E,p,o))}unhook(E,p=!0){if(this._active.length){let o=!1,c=this._active.length-1,n=!1;if(this._stack.paused&&(c=this._stack.loopPosition-1,o=p,n=this._stack.fallThrough,this._stack.paused=!1),!n&&o===!1){for(;c>=0&&(o=this._active[c].unhook(E),o!==!0);c--)if(o instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=c,this._stack.fallThrough=!1,o;c--}for(;c>=0;c--)if(o=this._active[c].unhook(!1),o instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=c,this._stack.fallThrough=!0,o}else this._handlerFb(this._ident,"UNHOOK",E);this._active=v,this._ident=0}};const y=new f.Params;y.addParam(0),i.DcsHandler=class{constructor(E){this._handler=E,this._data="",this._params=y,this._hitLimit=!1}hook(E){this._params=E.length>1||E.params[0]?E.clone():y,this._data="",this._hitLimit=!1}put(E,p,o){this._hitLimit||(this._data+=(0,h.utf32ToString)(E,p,o),this._data.length>u.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}unhook(E){let p=!1;if(this._hitLimit)p=!1;else if(E&&(p=this._handler(this._data,this._params),p instanceof Promise))return p.then((o=>(this._params=y,this._data="",this._hitLimit=!1,o)));return this._params=y,this._data="",this._hitLimit=!1,p}}},2015:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.EscapeSequenceParser=i.VT500_TRANSITION_TABLE=i.TransitionTable=void 0;const h=a(844),f=a(8742),u=a(6242),v=a(6351);class y{constructor(c){this.table=new Uint8Array(c)}setDefault(c,n){this.table.fill(c<<4|n)}add(c,n,d,g){this.table[n<<8|c]=d<<4|g}addMany(c,n,d,g){for(let C=0;C<c.length;C++)this.table[n<<8|c[C]]=d<<4|g}}i.TransitionTable=y;const E=160;i.VT500_TRANSITION_TABLE=(function(){const o=new y(4095),c=Array.apply(null,Array(256)).map(((w,b)=>b)),n=(w,b)=>c.slice(w,b),d=n(32,127),g=n(0,24);g.push(25),g.push.apply(g,n(28,32));const C=n(0,14);let S;for(S in o.setDefault(1,0),o.addMany(d,0,2,0),C)o.addMany([24,26,153,154],S,3,0),o.addMany(n(128,144),S,3,0),o.addMany(n(144,152),S,3,0),o.add(156,S,0,0),o.add(27,S,11,1),o.add(157,S,4,8),o.addMany([152,158,159],S,0,7),o.add(155,S,11,3),o.add(144,S,11,9);return o.addMany(g,0,3,0),o.addMany(g,1,3,1),o.add(127,1,0,1),o.addMany(g,8,0,8),o.addMany(g,3,3,3),o.add(127,3,0,3),o.addMany(g,4,3,4),o.add(127,4,0,4),o.addMany(g,6,3,6),o.addMany(g,5,3,5),o.add(127,5,0,5),o.addMany(g,2,3,2),o.add(127,2,0,2),o.add(93,1,4,8),o.addMany(d,8,5,8),o.add(127,8,5,8),o.addMany([156,27,24,26,7],8,6,0),o.addMany(n(28,32),8,0,8),o.addMany([88,94,95],1,0,7),o.addMany(d,7,0,7),o.addMany(g,7,0,7),o.add(156,7,0,0),o.add(127,7,0,7),o.add(91,1,11,3),o.addMany(n(64,127),3,7,0),o.addMany(n(48,60),3,8,4),o.addMany([60,61,62,63],3,9,4),o.addMany(n(48,60),4,8,4),o.addMany(n(64,127),4,7,0),o.addMany([60,61,62,63],4,0,6),o.addMany(n(32,64),6,0,6),o.add(127,6,0,6),o.addMany(n(64,127),6,0,0),o.addMany(n(32,48),3,9,5),o.addMany(n(32,48),5,9,5),o.addMany(n(48,64),5,0,6),o.addMany(n(64,127),5,7,0),o.addMany(n(32,48),4,9,5),o.addMany(n(32,48),1,9,2),o.addMany(n(32,48),2,9,2),o.addMany(n(48,127),2,10,0),o.addMany(n(48,80),1,10,0),o.addMany(n(81,88),1,10,0),o.addMany([89,90,92],1,10,0),o.addMany(n(96,127),1,10,0),o.add(80,1,11,9),o.addMany(g,9,0,9),o.add(127,9,0,9),o.addMany(n(28,32),9,0,9),o.addMany(n(32,48),9,9,12),o.addMany(n(48,60),9,8,10),o.addMany([60,61,62,63],9,9,10),o.addMany(g,11,0,11),o.addMany(n(32,128),11,0,11),o.addMany(n(28,32),11,0,11),o.addMany(g,10,0,10),o.add(127,10,0,10),o.addMany(n(28,32),10,0,10),o.addMany(n(48,60),10,8,10),o.addMany([60,61,62,63],10,0,11),o.addMany(n(32,48),10,9,12),o.addMany(g,12,0,12),o.add(127,12,0,12),o.addMany(n(28,32),12,0,12),o.addMany(n(32,48),12,9,12),o.addMany(n(48,64),12,0,11),o.addMany(n(64,127),12,12,13),o.addMany(n(64,127),10,12,13),o.addMany(n(64,127),9,12,13),o.addMany(g,13,13,13),o.addMany(d,13,13,13),o.add(127,13,0,13),o.addMany([27,156,24,26],13,14,0),o.add(E,0,2,0),o.add(E,8,5,8),o.add(E,6,0,6),o.add(E,11,0,11),o.add(E,13,13,13),o})();class p extends h.Disposable{constructor(c=i.VT500_TRANSITION_TABLE){super(),this._transitions=c,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new f.Params,this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._printHandlerFb=(n,d,g)=>{},this._executeHandlerFb=n=>{},this._csiHandlerFb=(n,d)=>{},this._escHandlerFb=n=>{},this._errorHandlerFb=n=>n,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this.register((0,h.toDisposable)((()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)}))),this._oscParser=this.register(new u.OscParser),this._dcsParser=this.register(new v.DcsParser),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},(()=>!0))}_identifier(c,n=[64,126]){let d=0;if(c.prefix){if(c.prefix.length>1)throw new Error("only one byte as prefix supported");if(d=c.prefix.charCodeAt(0),d&&60>d||d>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(c.intermediates){if(c.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(let C=0;C<c.intermediates.length;++C){const S=c.intermediates.charCodeAt(C);if(32>S||S>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");d<<=8,d|=S}}if(c.final.length!==1)throw new Error("final must be a single byte");const g=c.final.charCodeAt(0);if(n[0]>g||g>n[1])throw new Error(`final must be in range ${n[0]} .. ${n[1]}`);return d<<=8,d|=g,d}identToString(c){const n=[];for(;c;)n.push(String.fromCharCode(255&c)),c>>=8;return n.reverse().join("")}setPrintHandler(c){this._printHandler=c}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(c,n){const d=this._identifier(c,[48,126]);this._escHandlers[d]===void 0&&(this._escHandlers[d]=[]);const g=this._escHandlers[d];return g.push(n),{dispose:()=>{const C=g.indexOf(n);C!==-1&&g.splice(C,1)}}}clearEscHandler(c){this._escHandlers[this._identifier(c,[48,126])]&&delete this._escHandlers[this._identifier(c,[48,126])]}setEscHandlerFallback(c){this._escHandlerFb=c}setExecuteHandler(c,n){this._executeHandlers[c.charCodeAt(0)]=n}clearExecuteHandler(c){this._executeHandlers[c.charCodeAt(0)]&&delete this._executeHandlers[c.charCodeAt(0)]}setExecuteHandlerFallback(c){this._executeHandlerFb=c}registerCsiHandler(c,n){const d=this._identifier(c);this._csiHandlers[d]===void 0&&(this._csiHandlers[d]=[]);const g=this._csiHandlers[d];return g.push(n),{dispose:()=>{const C=g.indexOf(n);C!==-1&&g.splice(C,1)}}}clearCsiHandler(c){this._csiHandlers[this._identifier(c)]&&delete this._csiHandlers[this._identifier(c)]}setCsiHandlerFallback(c){this._csiHandlerFb=c}registerDcsHandler(c,n){return this._dcsParser.registerHandler(this._identifier(c),n)}clearDcsHandler(c){this._dcsParser.clearHandler(this._identifier(c))}setDcsHandlerFallback(c){this._dcsParser.setHandlerFallback(c)}registerOscHandler(c,n){return this._oscParser.registerHandler(c,n)}clearOscHandler(c){this._oscParser.clearHandler(c)}setOscHandlerFallback(c){this._oscParser.setHandlerFallback(c)}setErrorHandler(c){this._errorHandler=c}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._parseStack.state!==0&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(c,n,d,g,C){this._parseStack.state=c,this._parseStack.handlers=n,this._parseStack.handlerPos=d,this._parseStack.transition=g,this._parseStack.chunkPos=C}parse(c,n,d){let g,C=0,S=0,w=0;if(this._parseStack.state)if(this._parseStack.state===2)this._parseStack.state=0,w=this._parseStack.chunkPos+1;else{if(d===void 0||this._parseStack.state===1)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");const b=this._parseStack.handlers;let k=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(d===!1&&k>-1){for(;k>=0&&(g=b[k](this._params),g!==!0);k--)if(g instanceof Promise)return this._parseStack.handlerPos=k,g}this._parseStack.handlers=[];break;case 4:if(d===!1&&k>-1){for(;k>=0&&(g=b[k](),g!==!0);k--)if(g instanceof Promise)return this._parseStack.handlerPos=k,g}this._parseStack.handlers=[];break;case 6:if(C=c[this._parseStack.chunkPos],g=this._dcsParser.unhook(C!==24&&C!==26,d),g)return g;C===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(C=c[this._parseStack.chunkPos],g=this._oscParser.end(C!==24&&C!==26,d),g)return g;C===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,w=this._parseStack.chunkPos+1,this.precedingJoinState=0,this.currentState=15&this._parseStack.transition}for(let b=w;b<n;++b){switch(C=c[b],S=this._transitions.table[this.currentState<<8|(C<160?C:E)],S>>4){case 2:for(let R=b+1;;++R){if(R>=n||(C=c[R])<32||C>126&&C<E){this._printHandler(c,b,R),b=R-1;break}if(++R>=n||(C=c[R])<32||C>126&&C<E){this._printHandler(c,b,R),b=R-1;break}if(++R>=n||(C=c[R])<32||C>126&&C<E){this._printHandler(c,b,R),b=R-1;break}if(++R>=n||(C=c[R])<32||C>126&&C<E){this._printHandler(c,b,R),b=R-1;break}}break;case 3:this._executeHandlers[C]?this._executeHandlers[C]():this._executeHandlerFb(C),this.precedingJoinState=0;break;case 0:break;case 1:if(this._errorHandler({position:b,code:C,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:const k=this._csiHandlers[this._collect<<8|C];let A=k?k.length-1:-1;for(;A>=0&&(g=k[A](this._params),g!==!0);A--)if(g instanceof Promise)return this._preserveStack(3,k,A,S,b),g;A<0&&this._csiHandlerFb(this._collect<<8|C,this._params),this.precedingJoinState=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(++b<n&&(C=c[b])>47&&C<60);b--;break;case 9:this._collect<<=8,this._collect|=C;break;case 10:const T=this._escHandlers[this._collect<<8|C];let L=T?T.length-1:-1;for(;L>=0&&(g=T[L](),g!==!0);L--)if(g instanceof Promise)return this._preserveStack(4,T,L,S,b),g;L<0&&this._escHandlerFb(this._collect<<8|C),this.precedingJoinState=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(let R=b+1;;++R)if(R>=n||(C=c[R])===24||C===26||C===27||C>127&&C<E){this._dcsParser.put(c,b,R),b=R-1;break}break;case 14:if(g=this._dcsParser.unhook(C!==24&&C!==26),g)return this._preserveStack(6,[],0,S,b),g;C===27&&(S|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0;break;case 4:this._oscParser.start();break;case 5:for(let R=b+1;;R++)if(R>=n||(C=c[R])<32||C>127&&C<E){this._oscParser.put(c,b,R),b=R-1;break}break;case 6:if(g=this._oscParser.end(C!==24&&C!==26),g)return this._preserveStack(5,[],0,S,b),g;C===27&&(S|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0}this.currentState=15&S}}}i.EscapeSequenceParser=p},6242:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.OscHandler=i.OscParser=void 0;const h=a(5770),f=a(482),u=[];i.OscParser=class{constructor(){this._state=0,this._active=u,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(v,y){this._handlers[v]===void 0&&(this._handlers[v]=[]);const E=this._handlers[v];return E.push(y),{dispose:()=>{const p=E.indexOf(y);p!==-1&&E.splice(p,1)}}}clearHandler(v){this._handlers[v]&&delete this._handlers[v]}setHandlerFallback(v){this._handlerFb=v}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=u}reset(){if(this._state===2)for(let v=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;v>=0;--v)this._active[v].end(!1);this._stack.paused=!1,this._active=u,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||u,this._active.length)for(let v=this._active.length-1;v>=0;v--)this._active[v].start();else this._handlerFb(this._id,"START")}_put(v,y,E){if(this._active.length)for(let p=this._active.length-1;p>=0;p--)this._active[p].put(v,y,E);else this._handlerFb(this._id,"PUT",(0,f.utf32ToString)(v,y,E))}start(){this.reset(),this._state=1}put(v,y,E){if(this._state!==3){if(this._state===1)for(;y<E;){const p=v[y++];if(p===59){this._state=2,this._start();break}if(p<48||57<p)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+p-48}this._state===2&&E-y>0&&this._put(v,y,E)}}end(v,y=!0){if(this._state!==0){if(this._state!==3)if(this._state===1&&this._start(),this._active.length){let E=!1,p=this._active.length-1,o=!1;if(this._stack.paused&&(p=this._stack.loopPosition-1,E=y,o=this._stack.fallThrough,this._stack.paused=!1),!o&&E===!1){for(;p>=0&&(E=this._active[p].end(v),E!==!0);p--)if(E instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=p,this._stack.fallThrough=!1,E;p--}for(;p>=0;p--)if(E=this._active[p].end(!1),E instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=p,this._stack.fallThrough=!0,E}else this._handlerFb(this._id,"END",v);this._active=u,this._id=-1,this._state=0}}},i.OscHandler=class{constructor(v){this._handler=v,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(v,y,E){this._hitLimit||(this._data+=(0,f.utf32ToString)(v,y,E),this._data.length>h.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}end(v){let y=!1;if(this._hitLimit)y=!1;else if(v&&(y=this._handler(this._data),y instanceof Promise))return y.then((E=>(this._data="",this._hitLimit=!1,E)));return this._data="",this._hitLimit=!1,y}}},8742:(m,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.Params=void 0;const a=2147483647;class h{static fromArray(u){const v=new h;if(!u.length)return v;for(let y=Array.isArray(u[0])?1:0;y<u.length;++y){const E=u[y];if(Array.isArray(E))for(let p=0;p<E.length;++p)v.addSubParam(E[p]);else v.addParam(E)}return v}constructor(u=32,v=32){if(this.maxLength=u,this.maxSubParamsLength=v,v>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(u),this.length=0,this._subParams=new Int32Array(v),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(u),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}clone(){const u=new h(this.maxLength,this.maxSubParamsLength);return u.params.set(this.params),u.length=this.length,u._subParams.set(this._subParams),u._subParamsLength=this._subParamsLength,u._subParamsIdx.set(this._subParamsIdx),u._rejectDigits=this._rejectDigits,u._rejectSubDigits=this._rejectSubDigits,u._digitIsSub=this._digitIsSub,u}toArray(){const u=[];for(let v=0;v<this.length;++v){u.push(this.params[v]);const y=this._subParamsIdx[v]>>8,E=255&this._subParamsIdx[v];E-y>0&&u.push(Array.prototype.slice.call(this._subParams,y,E))}return u}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(u){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(u<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=u>a?a:u}}addSubParam(u){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(u<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=u>a?a:u,this._subParamsIdx[this.length-1]++}}hasSubParams(u){return(255&this._subParamsIdx[u])-(this._subParamsIdx[u]>>8)>0}getSubParams(u){const v=this._subParamsIdx[u]>>8,y=255&this._subParamsIdx[u];return y-v>0?this._subParams.subarray(v,y):null}getSubParamsAll(){const u={};for(let v=0;v<this.length;++v){const y=this._subParamsIdx[v]>>8,E=255&this._subParamsIdx[v];E-y>0&&(u[v]=this._subParams.slice(y,E))}return u}addDigit(u){let v;if(this._rejectDigits||!(v=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;const y=this._digitIsSub?this._subParams:this.params,E=y[v-1];y[v-1]=~E?Math.min(10*E+u,a):u}}i.Params=h},5741:(m,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.AddonManager=void 0,i.AddonManager=class{constructor(){this._addons=[]}dispose(){for(let a=this._addons.length-1;a>=0;a--)this._addons[a].instance.dispose()}loadAddon(a,h){const f={instance:h,dispose:h.dispose,isDisposed:!1};this._addons.push(f),h.dispose=()=>this._wrappedAddonDispose(f),h.activate(a)}_wrappedAddonDispose(a){if(a.isDisposed)return;let h=-1;for(let f=0;f<this._addons.length;f++)if(this._addons[f]===a){h=f;break}if(h===-1)throw new Error("Could not dispose an addon that has not been loaded");a.isDisposed=!0,a.dispose.apply(a.instance),this._addons.splice(h,1)}}},8771:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.BufferApiView=void 0;const h=a(3785),f=a(511);i.BufferApiView=class{constructor(u,v){this._buffer=u,this.type=v}init(u){return this._buffer=u,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(u){const v=this._buffer.lines.get(u);if(v)return new h.BufferLineApiView(v)}getNullCell(){return new f.CellData}}},3785:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.BufferLineApiView=void 0;const h=a(511);i.BufferLineApiView=class{constructor(f){this._line=f}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(f,u){if(!(f<0||f>=this._line.length))return u?(this._line.loadCell(f,u),u):this._line.loadCell(f,new h.CellData)}translateToString(f,u,v){return this._line.translateToString(f,u,v)}}},8285:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.BufferNamespaceApi=void 0;const h=a(8771),f=a(8460),u=a(844);class v extends u.Disposable{constructor(E){super(),this._core=E,this._onBufferChange=this.register(new f.EventEmitter),this.onBufferChange=this._onBufferChange.event,this._normal=new h.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new h.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate((()=>this._onBufferChange.fire(this.active)))}get active(){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")}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}}i.BufferNamespaceApi=v},7975:(m,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.ParserApi=void 0,i.ParserApi=class{constructor(a){this._core=a}registerCsiHandler(a,h){return this._core.registerCsiHandler(a,(f=>h(f.toArray())))}addCsiHandler(a,h){return this.registerCsiHandler(a,h)}registerDcsHandler(a,h){return this._core.registerDcsHandler(a,((f,u)=>h(f,u.toArray())))}addDcsHandler(a,h){return this.registerDcsHandler(a,h)}registerEscHandler(a,h){return this._core.registerEscHandler(a,h)}addEscHandler(a,h){return this.registerEscHandler(a,h)}registerOscHandler(a,h){return this._core.registerOscHandler(a,h)}addOscHandler(a,h){return this.registerOscHandler(a,h)}}},7090:(m,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.UnicodeApi=void 0,i.UnicodeApi=class{constructor(a){this._core=a}register(a){this._core.unicodeService.register(a)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(a){this._core.unicodeService.activeVersion=a}}},744:function(m,i,a){var h=this&&this.__decorate||function(o,c,n,d){var g,C=arguments.length,S=C<3?c:d===null?d=Object.getOwnPropertyDescriptor(c,n):d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(o,c,n,d);else for(var w=o.length-1;w>=0;w--)(g=o[w])&&(S=(C<3?g(S):C>3?g(c,n,S):g(c,n))||S);return C>3&&S&&Object.defineProperty(c,n,S),S},f=this&&this.__param||function(o,c){return function(n,d){c(n,d,o)}};Object.defineProperty(i,"__esModule",{value:!0}),i.BufferService=i.MINIMUM_ROWS=i.MINIMUM_COLS=void 0;const u=a(8460),v=a(844),y=a(5295),E=a(2585);i.MINIMUM_COLS=2,i.MINIMUM_ROWS=1;let p=i.BufferService=class extends v.Disposable{get buffer(){return this.buffers.active}constructor(o){super(),this.isUserScrolling=!1,this._onResize=this.register(new u.EventEmitter),this.onResize=this._onResize.event,this._onScroll=this.register(new u.EventEmitter),this.onScroll=this._onScroll.event,this.cols=Math.max(o.rawOptions.cols||0,i.MINIMUM_COLS),this.rows=Math.max(o.rawOptions.rows||0,i.MINIMUM_ROWS),this.buffers=this.register(new y.BufferSet(o,this))}resize(o,c){this.cols=o,this.rows=c,this.buffers.resize(o,c),this._onResize.fire({cols:o,rows:c})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(o,c=!1){const n=this.buffer;let d;d=this._cachedBlankLine,d&&d.length===this.cols&&d.getFg(0)===o.fg&&d.getBg(0)===o.bg||(d=n.getBlankLine(o,c),this._cachedBlankLine=d),d.isWrapped=c;const g=n.ybase+n.scrollTop,C=n.ybase+n.scrollBottom;if(n.scrollTop===0){const S=n.lines.isFull;C===n.lines.length-1?S?n.lines.recycle().copyFrom(d):n.lines.push(d.clone()):n.lines.splice(C+1,0,d.clone()),S?this.isUserScrolling&&(n.ydisp=Math.max(n.ydisp-1,0)):(n.ybase++,this.isUserScrolling||n.ydisp++)}else{const S=C-g+1;n.lines.shiftElements(g+1,S-1,-1),n.lines.set(C,d.clone())}this.isUserScrolling||(n.ydisp=n.ybase),this._onScroll.fire(n.ydisp)}scrollLines(o,c,n){const d=this.buffer;if(o<0){if(d.ydisp===0)return;this.isUserScrolling=!0}else o+d.ydisp>=d.ybase&&(this.isUserScrolling=!1);const g=d.ydisp;d.ydisp=Math.max(Math.min(d.ydisp+o,d.ybase),0),g!==d.ydisp&&(c||this._onScroll.fire(d.ydisp))}};i.BufferService=p=h([f(0,E.IOptionsService)],p)},7994:(m,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.CharsetService=void 0,i.CharsetService=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(a){this.glevel=a,this.charset=this._charsets[a]}setgCharset(a,h){this._charsets[a]=h,this.glevel===a&&(this.charset=h)}}},1753:function(m,i,a){var h=this&&this.__decorate||function(d,g,C,S){var w,b=arguments.length,k=b<3?g:S===null?S=Object.getOwnPropertyDescriptor(g,C):S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(d,g,C,S);else for(var A=d.length-1;A>=0;A--)(w=d[A])&&(k=(b<3?w(k):b>3?w(g,C,k):w(g,C))||k);return b>3&&k&&Object.defineProperty(g,C,k),k},f=this&&this.__param||function(d,g){return function(C,S){g(C,S,d)}};Object.defineProperty(i,"__esModule",{value:!0}),i.CoreMouseService=void 0;const u=a(2585),v=a(8460),y=a(844),E={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:d=>d.button!==4&&d.action===1&&(d.ctrl=!1,d.alt=!1,d.shift=!1,!0)},VT200:{events:19,restrict:d=>d.action!==32},DRAG:{events:23,restrict:d=>d.action!==32||d.button!==3},ANY:{events:31,restrict:d=>!0}};function p(d,g){let C=(d.ctrl?16:0)|(d.shift?4:0)|(d.alt?8:0);return d.button===4?(C|=64,C|=d.action):(C|=3&d.button,4&d.button&&(C|=64),8&d.button&&(C|=128),d.action===32?C|=32:d.action!==0||g||(C|=3)),C}const o=String.fromCharCode,c={DEFAULT:d=>{const g=[p(d,!1)+32,d.col+32,d.row+32];return g[0]>255||g[1]>255||g[2]>255?"":`\x1B[M${o(g[0])}${o(g[1])}${o(g[2])}`},SGR:d=>{const g=d.action===0&&d.button!==4?"m":"M";return`\x1B[<${p(d,!0)};${d.col};${d.row}${g}`},SGR_PIXELS:d=>{const g=d.action===0&&d.button!==4?"m":"M";return`\x1B[<${p(d,!0)};${d.x};${d.y}${g}`}};let n=i.CoreMouseService=class extends y.Disposable{constructor(d,g){super(),this._bufferService=d,this._coreService=g,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._lastEvent=null,this._onProtocolChange=this.register(new v.EventEmitter),this.onProtocolChange=this._onProtocolChange.event;for(const C of Object.keys(E))this.addProtocol(C,E[C]);for(const C of Object.keys(c))this.addEncoding(C,c[C]);this.reset()}addProtocol(d,g){this._protocols[d]=g}addEncoding(d,g){this._encodings[d]=g}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return this._protocols[this._activeProtocol].events!==0}set activeProtocol(d){if(!this._protocols[d])throw new Error(`unknown protocol "${d}"`);this._activeProtocol=d,this._onProtocolChange.fire(this._protocols[d].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(d){if(!this._encodings[d])throw new Error(`unknown encoding "${d}"`);this._activeEncoding=d}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null}triggerMouseEvent(d){if(d.col<0||d.col>=this._bufferService.cols||d.row<0||d.row>=this._bufferService.rows||d.button===4&&d.action===32||d.button===3&&d.action!==32||d.button!==4&&(d.action===2||d.action===3)||(d.col++,d.row++,d.action===32&&this._lastEvent&&this._equalEvents(this._lastEvent,d,this._activeEncoding==="SGR_PIXELS"))||!this._protocols[this._activeProtocol].restrict(d))return!1;const g=this._encodings[this._activeEncoding](d);return g&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(g):this._coreService.triggerDataEvent(g,!0)),this._lastEvent=d,!0}explainEvents(d){return{down:!!(1&d),up:!!(2&d),drag:!!(4&d),move:!!(8&d),wheel:!!(16&d)}}_equalEvents(d,g,C){if(C){if(d.x!==g.x||d.y!==g.y)return!1}else if(d.col!==g.col||d.row!==g.row)return!1;return d.button===g.button&&d.action===g.action&&d.ctrl===g.ctrl&&d.alt===g.alt&&d.shift===g.shift}};i.CoreMouseService=n=h([f(0,u.IBufferService),f(1,u.ICoreService)],n)},6975:function(m,i,a){var h=this&&this.__decorate||function(n,d,g,C){var S,w=arguments.length,b=w<3?d:C===null?C=Object.getOwnPropertyDescriptor(d,g):C;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(n,d,g,C);else for(var k=n.length-1;k>=0;k--)(S=n[k])&&(b=(w<3?S(b):w>3?S(d,g,b):S(d,g))||b);return w>3&&b&&Object.defineProperty(d,g,b),b},f=this&&this.__param||function(n,d){return function(g,C){d(g,C,n)}};Object.defineProperty(i,"__esModule",{value:!0}),i.CoreService=void 0;const u=a(1439),v=a(8460),y=a(844),E=a(2585),p=Object.freeze({insertMode:!1}),o=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0});let c=i.CoreService=class extends y.Disposable{constructor(n,d,g){super(),this._bufferService=n,this._logService=d,this._optionsService=g,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this.register(new v.EventEmitter),this.onData=this._onData.event,this._onUserInput=this.register(new v.EventEmitter),this.onUserInput=this._onUserInput.event,this._onBinary=this.register(new v.EventEmitter),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this.register(new v.EventEmitter),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=(0,u.clone)(p),this.decPrivateModes=(0,u.clone)(o)}reset(){this.modes=(0,u.clone)(p),this.decPrivateModes=(0,u.clone)(o)}triggerDataEvent(n,d=!1){if(this._optionsService.rawOptions.disableStdin)return;const g=this._bufferService.buffer;d&&this._optionsService.rawOptions.scrollOnUserInput&&g.ybase!==g.ydisp&&this._onRequestScrollToBottom.fire(),d&&this._onUserInput.fire(),this._logService.debug(`sending data "${n}"`,(()=>n.split("").map((C=>C.charCodeAt(0))))),this._onData.fire(n)}triggerBinaryEvent(n){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${n}"`,(()=>n.split("").map((d=>d.charCodeAt(0))))),this._onBinary.fire(n))}};i.CoreService=c=h([f(0,E.IBufferService),f(1,E.ILogService),f(2,E.IOptionsService)],c)},9074:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.DecorationService=void 0;const h=a(8055),f=a(8460),u=a(844),v=a(6106);let y=0,E=0;class p extends u.Disposable{get decorations(){return this._decorations.values()}constructor(){super(),this._decorations=new v.SortedList((n=>n==null?void 0:n.marker.line)),this._onDecorationRegistered=this.register(new f.EventEmitter),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this.register(new f.EventEmitter),this.onDecorationRemoved=this._onDecorationRemoved.event,this.register((0,u.toDisposable)((()=>this.reset())))}registerDecoration(n){if(n.marker.isDisposed)return;const d=new o(n);if(d){const g=d.marker.onDispose((()=>d.dispose()));d.onDispose((()=>{d&&(this._decorations.delete(d)&&this._onDecorationRemoved.fire(d),g.dispose())})),this._decorations.insert(d),this._onDecorationRegistered.fire(d)}return d}reset(){for(const n of this._decorations.values())n.dispose();this._decorations.clear()}*getDecorationsAtCell(n,d,g){let C=0,S=0;for(const w of this._decorations.getKeyIterator(d))C=w.options.x??0,S=C+(w.options.width??1),n>=C&&n<S&&(!g||(w.options.layer??"bottom")===g)&&(yield w)}forEachDecorationAtCell(n,d,g,C){this._decorations.forEachByKey(d,(S=>{y=S.options.x??0,E=y+(S.options.width??1),n>=y&&n<E&&(!g||(S.options.layer??"bottom")===g)&&C(S)}))}}i.DecorationService=p;class o extends u.Disposable{get isDisposed(){return this._isDisposed}get backgroundColorRGB(){return this._cachedBg===null&&(this.options.backgroundColor?this._cachedBg=h.css.toColor(this.options.backgroundColor):this._cachedBg=void 0),this._cachedBg}get foregroundColorRGB(){return this._cachedFg===null&&(this.options.foregroundColor?this._cachedFg=h.css.toColor(this.options.foregroundColor):this._cachedFg=void 0),this._cachedFg}constructor(n){super(),this.options=n,this.onRenderEmitter=this.register(new f.EventEmitter),this.onRender=this.onRenderEmitter.event,this._onDispose=this.register(new f.EventEmitter),this.onDispose=this._onDispose.event,this._cachedBg=null,this._cachedFg=null,this.marker=n.marker,this.options.overviewRulerOptions&&!this.options.overviewRulerOptions.position&&(this.options.overviewRulerOptions.position="full")}dispose(){this._onDispose.fire(),super.dispose()}}},4348:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.InstantiationService=i.ServiceCollection=void 0;const h=a(2585),f=a(8343);class u{constructor(...y){this._entries=new Map;for(const[E,p]of y)this.set(E,p)}set(y,E){const p=this._entries.get(y);return this._entries.set(y,E),p}forEach(y){for(const[E,p]of this._entries.entries())y(E,p)}has(y){return this._entries.has(y)}get(y){return this._entries.get(y)}}i.ServiceCollection=u,i.InstantiationService=class{constructor(){this._services=new u,this._services.set(h.IInstantiationService,this)}setService(v,y){this._services.set(v,y)}getService(v){return this._services.get(v)}createInstance(v,...y){const E=(0,f.getServiceDependencies)(v).sort(((c,n)=>c.index-n.index)),p=[];for(const c of E){const n=this._services.get(c.id);if(!n)throw new Error(`[createInstance] ${v.name} depends on UNKNOWN service ${c.id}.`);p.push(n)}const o=E.length>0?E[0].index:y.length;if(y.length!==o)throw new Error(`[createInstance] First service dependency of ${v.name} at position ${o+1} conflicts with ${y.length} static arguments`);return new v(...y,...p)}}},7866:function(m,i,a){var h=this&&this.__decorate||function(o,c,n,d){var g,C=arguments.length,S=C<3?c:d===null?d=Object.getOwnPropertyDescriptor(c,n):d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(o,c,n,d);else for(var w=o.length-1;w>=0;w--)(g=o[w])&&(S=(C<3?g(S):C>3?g(c,n,S):g(c,n))||S);return C>3&&S&&Object.defineProperty(c,n,S),S},f=this&&this.__param||function(o,c){return function(n,d){c(n,d,o)}};Object.defineProperty(i,"__esModule",{value:!0}),i.traceCall=i.setTraceLogger=i.LogService=void 0;const u=a(844),v=a(2585),y={trace:v.LogLevelEnum.TRACE,debug:v.LogLevelEnum.DEBUG,info:v.LogLevelEnum.INFO,warn:v.LogLevelEnum.WARN,error:v.LogLevelEnum.ERROR,off:v.LogLevelEnum.OFF};let E,p=i.LogService=class extends u.Disposable{get logLevel(){return this._logLevel}constructor(o){super(),this._optionsService=o,this._logLevel=v.LogLevelEnum.OFF,this._updateLogLevel(),this.register(this._optionsService.onSpecificOptionChange("logLevel",(()=>this._updateLogLevel()))),E=this}_updateLogLevel(){this._logLevel=y[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(o){for(let c=0;c<o.length;c++)typeof o[c]=="function"&&(o[c]=o[c]())}_log(o,c,n){this._evalLazyOptionalParams(n),o.call(console,(this._optionsService.options.logger?"":"xterm.js: ")+c,...n)}trace(o,...c){var n;this._logLevel<=v.LogLevelEnum.TRACE&&this._log(((n=this._optionsService.options.logger)==null?void 0:n.trace.bind(this._optionsService.options.logger))??console.log,o,c)}debug(o,...c){var n;this._logLevel<=v.LogLevelEnum.DEBUG&&this._log(((n=this._optionsService.options.logger)==null?void 0:n.debug.bind(this._optionsService.options.logger))??console.log,o,c)}info(o,...c){var n;this._logLevel<=v.LogLevelEnum.INFO&&this._log(((n=this._optionsService.options.logger)==null?void 0:n.info.bind(this._optionsService.options.logger))??console.info,o,c)}warn(o,...c){var n;this._logLevel<=v.LogLevelEnum.WARN&&this._log(((n=this._optionsService.options.logger)==null?void 0:n.warn.bind(this._optionsService.options.logger))??console.warn,o,c)}error(o,...c){var n;this._logLevel<=v.LogLevelEnum.ERROR&&this._log(((n=this._optionsService.options.logger)==null?void 0:n.error.bind(this._optionsService.options.logger))??console.error,o,c)}};i.LogService=p=h([f(0,v.IOptionsService)],p),i.setTraceLogger=function(o){E=o},i.traceCall=function(o,c,n){if(typeof n.value!="function")throw new Error("not supported");const d=n.value;n.value=function(...g){if(E.logLevel!==v.LogLevelEnum.TRACE)return d.apply(this,g);E.trace(`GlyphRenderer#${d.name}(${g.map((S=>JSON.stringify(S))).join(", ")})`);const C=d.apply(this,g);return E.trace(`GlyphRenderer#${d.name} return`,C),C}}},7302:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.OptionsService=i.DEFAULT_OPTIONS=void 0;const h=a(8460),f=a(844),u=a(6114);i.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,cursorInactiveStyle:"outline",customGlyphs:!0,drawBoldTextInBrightColors:!0,documentOverride:null,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",ignoreBracketedPasteMode:!1,lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",logger:null,scrollback:1e3,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rescaleOverlappingGlyphs:!1,rightClickSelectsWord:u.isMac,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:0};const v=["normal","bold","100","200","300","400","500","600","700","800","900"];class y extends f.Disposable{constructor(p){super(),this._onOptionChange=this.register(new h.EventEmitter),this.onOptionChange=this._onOptionChange.event;const o={...i.DEFAULT_OPTIONS};for(const c in p)if(c in o)try{const n=p[c];o[c]=this._sanitizeAndValidateOption(c,n)}catch(n){console.error(n)}this.rawOptions=o,this.options={...o},this._setupOptions(),this.register((0,f.toDisposable)((()=>{this.rawOptions.linkHandler=null,this.rawOptions.documentOverride=null})))}onSpecificOptionChange(p,o){return this.onOptionChange((c=>{c===p&&o(this.rawOptions[p])}))}onMultipleOptionChange(p,o){return this.onOptionChange((c=>{p.indexOf(c)!==-1&&o()}))}_setupOptions(){const p=c=>{if(!(c in i.DEFAULT_OPTIONS))throw new Error(`No option with key "${c}"`);return this.rawOptions[c]},o=(c,n)=>{if(!(c in i.DEFAULT_OPTIONS))throw new Error(`No option with key "${c}"`);n=this._sanitizeAndValidateOption(c,n),this.rawOptions[c]!==n&&(this.rawOptions[c]=n,this._onOptionChange.fire(c))};for(const c in this.rawOptions){const n={get:p.bind(this,c),set:o.bind(this,c)};Object.defineProperty(this.options,c,n)}}_sanitizeAndValidateOption(p,o){switch(p){case"cursorStyle":if(o||(o=i.DEFAULT_OPTIONS[p]),!(function(c){return c==="block"||c==="underline"||c==="bar"})(o))throw new Error(`"${o}" is not a valid value for ${p}`);break;case"wordSeparator":o||(o=i.DEFAULT_OPTIONS[p]);break;case"fontWeight":case"fontWeightBold":if(typeof o=="number"&&1<=o&&o<=1e3)break;o=v.includes(o)?o:i.DEFAULT_OPTIONS[p];break;case"cursorWidth":o=Math.floor(o);case"lineHeight":case"tabStopWidth":if(o<1)throw new Error(`${p} cannot be less than 1, value: ${o}`);break;case"minimumContrastRatio":o=Math.max(1,Math.min(21,Math.round(10*o)/10));break;case"scrollback":if((o=Math.min(o,4294967295))<0)throw new Error(`${p} cannot be less than 0, value: ${o}`);break;case"fastScrollSensitivity":case"scrollSensitivity":if(o<=0)throw new Error(`${p} cannot be less than or equal to 0, value: ${o}`);break;case"rows":case"cols":if(!o&&o!==0)throw new Error(`${p} must be numeric, value: ${o}`);break;case"windowsPty":o=o??{}}return o}}i.OptionsService=y},2660:function(m,i,a){var h=this&&this.__decorate||function(y,E,p,o){var c,n=arguments.length,d=n<3?E:o===null?o=Object.getOwnPropertyDescriptor(E,p):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(y,E,p,o);else for(var g=y.length-1;g>=0;g--)(c=y[g])&&(d=(n<3?c(d):n>3?c(E,p,d):c(E,p))||d);return n>3&&d&&Object.defineProperty(E,p,d),d},f=this&&this.__param||function(y,E){return function(p,o){E(p,o,y)}};Object.defineProperty(i,"__esModule",{value:!0}),i.OscLinkService=void 0;const u=a(2585);let v=i.OscLinkService=class{constructor(y){this._bufferService=y,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(y){const E=this._bufferService.buffer;if(y.id===void 0){const g=E.addMarker(E.ybase+E.y),C={data:y,id:this._nextId++,lines:[g]};return g.onDispose((()=>this._removeMarkerFromLink(C,g))),this._dataByLinkId.set(C.id,C),C.id}const p=y,o=this._getEntryIdKey(p),c=this._entriesWithId.get(o);if(c)return this.addLineToLink(c.id,E.ybase+E.y),c.id;const n=E.addMarker(E.ybase+E.y),d={id:this._nextId++,key:this._getEntryIdKey(p),data:p,lines:[n]};return n.onDispose((()=>this._removeMarkerFromLink(d,n))),this._entriesWithId.set(d.key,d),this._dataByLinkId.set(d.id,d),d.id}addLineToLink(y,E){const p=this._dataByLinkId.get(y);if(p&&p.lines.every((o=>o.line!==E))){const o=this._bufferService.buffer.addMarker(E);p.lines.push(o),o.onDispose((()=>this._removeMarkerFromLink(p,o)))}}getLinkData(y){var E;return(E=this._dataByLinkId.get(y))==null?void 0:E.data}_getEntryIdKey(y){return`${y.id};;${y.uri}`}_removeMarkerFromLink(y,E){const p=y.lines.indexOf(E);p!==-1&&(y.lines.splice(p,1),y.lines.length===0&&(y.data.id!==void 0&&this._entriesWithId.delete(y.key),this._dataByLinkId.delete(y.id)))}};i.OscLinkService=v=h([f(0,u.IBufferService)],v)},8343:(m,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.createDecorator=i.getServiceDependencies=i.serviceRegistry=void 0;const a="di$target",h="di$dependencies";i.serviceRegistry=new Map,i.getServiceDependencies=function(f){return f[h]||[]},i.createDecorator=function(f){if(i.serviceRegistry.has(f))return i.serviceRegistry.get(f);const u=function(v,y,E){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");(function(p,o,c){o[a]===o?o[h].push({id:p,index:c}):(o[h]=[{id:p,index:c}],o[a]=o)})(u,v,E)};return u.toString=()=>f,i.serviceRegistry.set(f,u),u}},2585:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.IDecorationService=i.IUnicodeService=i.IOscLinkService=i.IOptionsService=i.ILogService=i.LogLevelEnum=i.IInstantiationService=i.ICharsetService=i.ICoreService=i.ICoreMouseService=i.IBufferService=void 0;const h=a(8343);var f;i.IBufferService=(0,h.createDecorator)("BufferService"),i.ICoreMouseService=(0,h.createDecorator)("CoreMouseService"),i.ICoreService=(0,h.createDecorator)("CoreService"),i.ICharsetService=(0,h.createDecorator)("CharsetService"),i.IInstantiationService=(0,h.createDecorator)("InstantiationService"),(function(u){u[u.TRACE=0]="TRACE",u[u.DEBUG=1]="DEBUG",u[u.INFO=2]="INFO",u[u.WARN=3]="WARN",u[u.ERROR=4]="ERROR",u[u.OFF=5]="OFF"})(f||(i.LogLevelEnum=f={})),i.ILogService=(0,h.createDecorator)("LogService"),i.IOptionsService=(0,h.createDecorator)("OptionsService"),i.IOscLinkService=(0,h.createDecorator)("OscLinkService"),i.IUnicodeService=(0,h.createDecorator)("UnicodeService"),i.IDecorationService=(0,h.createDecorator)("DecorationService")},1480:(m,i,a)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.UnicodeService=void 0;const h=a(8460),f=a(225);class u{static extractShouldJoin(y){return(1&y)!=0}static extractWidth(y){return y>>1&3}static extractCharKind(y){return y>>3}static createPropertyValue(y,E,p=!1){return(16777215&y)<<3|(3&E)<<1|(p?1:0)}constructor(){this._providers=Object.create(null),this._active="",this._onChange=new h.EventEmitter,this.onChange=this._onChange.event;const y=new f.UnicodeV6;this.register(y),this._active=y.version,this._activeProvider=y}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(y){if(!this._providers[y])throw new Error(`unknown Unicode version "${y}"`);this._active=y,this._activeProvider=this._providers[y],this._onChange.fire(y)}register(y){this._providers[y.version]=y}wcwidth(y){return this._activeProvider.wcwidth(y)}getStringCellWidth(y){let E=0,p=0;const o=y.length;for(let c=0;c<o;++c){let n=y.charCodeAt(c);if(55296<=n&&n<=56319){if(++c>=o)return E+this.wcwidth(n);const C=y.charCodeAt(c);56320<=C&&C<=57343?n=1024*(n-55296)+C-56320+65536:E+=this.wcwidth(C)}const d=this.charProperties(n,p);let g=u.extractWidth(d);u.extractShouldJoin(d)&&(g-=u.extractWidth(p)),E+=g,p=d}return E}charProperties(y,E){return this._activeProvider.charProperties(y,E)}}i.UnicodeService=u}},s={};function l(m){var i=s[m];if(i!==void 0)return i.exports;var a=s[m]={exports:{}};return r[m].call(a.exports,a,a.exports,l),a.exports}var _={};return(()=>{var m=_;Object.defineProperty(m,"__esModule",{value:!0}),m.Terminal=void 0;const i=l(9042),a=l(3236),h=l(844),f=l(5741),u=l(8285),v=l(7975),y=l(7090),E=["cols","rows"];class p extends h.Disposable{constructor(c){super(),this._core=this.register(new a.Terminal(c)),this._addonManager=this.register(new f.AddonManager),this._publicOptions={...this._core.options};const n=g=>this._core.options[g],d=(g,C)=>{this._checkReadonlyOptions(g),this._core.options[g]=C};for(const g in this._core.options){const C={get:n.bind(this,g),set:d.bind(this,g)};Object.defineProperty(this._publicOptions,g,C)}}_checkReadonlyOptions(c){if(E.includes(c))throw new Error(`Option "${c}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._parser||(this._parser=new v.ParserApi(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new y.UnicodeApi(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._buffer||(this._buffer=this.register(new u.BufferNamespaceApi(this._core))),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){const c=this._core.coreService.decPrivateModes;let n="none";switch(this._core.coreMouseService.activeProtocol){case"X10":n="x10";break;case"VT200":n="vt200";break;case"DRAG":n="drag";break;case"ANY":n="any"}return{applicationCursorKeysMode:c.applicationCursorKeys,applicationKeypadMode:c.applicationKeypad,bracketedPasteMode:c.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:n,originMode:c.origin,reverseWraparoundMode:c.reverseWraparound,sendFocusMode:c.sendFocus,wraparoundMode:c.wraparound}}get options(){return this._publicOptions}set options(c){for(const n in c)this._publicOptions[n]=c[n]}blur(){this._core.blur()}focus(){this._core.focus()}input(c,n=!0){this._core.input(c,n)}resize(c,n){this._verifyIntegers(c,n),this._core.resize(c,n)}open(c){this._core.open(c)}attachCustomKeyEventHandler(c){this._core.attachCustomKeyEventHandler(c)}attachCustomWheelEventHandler(c){this._core.attachCustomWheelEventHandler(c)}registerLinkProvider(c){return this._core.registerLinkProvider(c)}registerCharacterJoiner(c){return this._checkProposedApi(),this._core.registerCharacterJoiner(c)}deregisterCharacterJoiner(c){this._checkProposedApi(),this._core.deregisterCharacterJoiner(c)}registerMarker(c=0){return this._verifyIntegers(c),this._core.registerMarker(c)}registerDecoration(c){return this._checkProposedApi(),this._verifyPositiveIntegers(c.x??0,c.width??0,c.height??0),this._core.registerDecoration(c)}hasSelection(){return this._core.hasSelection()}select(c,n,d){this._verifyIntegers(c,n,d),this._core.select(c,n,d)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(c,n){this._verifyIntegers(c,n),this._core.selectLines(c,n)}dispose(){super.dispose()}scrollLines(c){this._verifyIntegers(c),this._core.scrollLines(c)}scrollPages(c){this._verifyIntegers(c),this._core.scrollPages(c)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(c){this._verifyIntegers(c),this._core.scrollToLine(c)}clear(){this._core.clear()}write(c,n){this._core.write(c,n)}writeln(c,n){this._core.write(c),this._core.write(`\r
|
|
166
|
-
`,n)}paste(c){this._core.paste(c)}refresh(c,n){this._verifyIntegers(c,n),this._core.refresh(c,n)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(c){this._addonManager.loadAddon(this,c)}static get strings(){return i}_verifyIntegers(...c){for(const n of c)if(n===1/0||isNaN(n)||n%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...c){for(const n of c)if(n&&(n===1/0||isNaN(n)||n%1!=0||n<0))throw new Error("This API only accepts positive integers")}}m.Terminal=p})(),_})()))})(xs)),xs.exports}var Ac=Rc();/**
|
|
167
|
-
* @license
|
|
168
|
-
* Copyright 2021 Google LLC
|
|
169
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
170
|
-
*/function ue(e,t,r){return e?t(e):r==null?void 0:r(e)}function ie(e){return typeof e=="function"}function Zo(e){var t=function(s){Error.call(s),s.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Yr=Zo(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
171
|
-
`+t.map(function(r,s){return s+1+") "+r.toString()}).join(`
|
|
172
|
-
`):"",this.name="UnsubscriptionError",this.errors=t}});function kr(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var tr=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,s,l,_;if(!this.closed){this.closed=!0;var m=this._parentage;if(m)if(this._parentage=null,Array.isArray(m))try{for(var i=St(m),a=i.next();!a.done;a=i.next()){var h=a.value;h.remove(this)}}catch(p){t={error:p}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}else m.remove(this);var f=this.initialTeardown;if(ie(f))try{f()}catch(p){_=p instanceof Yr?p.errors:[p]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var v=St(u),y=v.next();!y.done;y=v.next()){var E=y.value;try{Ls(E)}catch(p){_=_??[],p instanceof Yr?_=qe(qe([],Ge(_)),Ge(p.errors)):_.push(p)}}}catch(p){s={error:p}}finally{try{y&&!y.done&&(l=v.return)&&l.call(v)}finally{if(s)throw s.error}}}if(_)throw new Yr(_)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Ls(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&kr(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&kr(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),zo=tr.EMPTY;function Ko(e){return e instanceof tr||e&&"closed"in e&&ie(e.remove)&&ie(e.add)&&ie(e.unsubscribe)}function Ls(e){ie(e)?e():e.unsubscribe()}var xc={Promise:void 0},Tc={setTimeout:function(e,t){for(var r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];return setTimeout.apply(void 0,qe([e,t],Ge(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Yo(e){Tc.setTimeout(function(){throw e})}function jt(){}function _r(e){e()}var Ti=(function(e){tt(t,e);function t(r){var s=e.call(this)||this;return s.isStopped=!1,r?(s.destination=r,Ko(r)&&r.add(s)):s.destination=Oc,s}return t.create=function(r,s,l){return new Zt(r,s,l)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(tr),Lc=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(s){dr(s)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(s){dr(s)}else dr(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){dr(r)}},e})(),Zt=(function(e){tt(t,e);function t(r,s,l){var _=e.call(this)||this,m;return ie(r)||!r?m={next:r??void 0,error:s??void 0,complete:l??void 0}:m=r,_.destination=new Lc(m),_}return t})(Ti);function dr(e){Yo(e)}function Dc(e){throw e}var Oc={closed:!0,next:jt,error:Dc,complete:jt},Li=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function rr(e){return e}function Nc(e){return e.length===0?rr:e.length===1?e[0]:function(t){return e.reduce(function(r,s){return s(r)},t)}}var ve=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,s){var l=this,_=Mc(t)?t:new Zt(t,r,s);return _r(function(){var m=l,i=m.operator,a=m.source;_.add(i?i.call(_,a):a?l._subscribe(_):l._trySubscribe(_))}),_},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var s=this;return r=Ds(r),new r(function(l,_){var m=new Zt({next:function(i){try{t(i)}catch(a){_(a),m.unsubscribe()}},error:_,complete:l});s.subscribe(m)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[Li]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Nc(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Ds(t),new t(function(s,l){var _;r.subscribe(function(m){return _=m},function(m){return l(m)},function(){return s(_)})})},e.create=function(t){return new e(t)},e})();function Ds(e){var t;return(t=e??xc.Promise)!==null&&t!==void 0?t:Promise}function Fc(e){return e&&ie(e.next)&&ie(e.error)&&ie(e.complete)}function Mc(e){return e&&e instanceof Ti||Fc(e)&&Ko(e)}function Pc(e){return ie(e==null?void 0:e.lift)}function pe(e){return function(t){if(Pc(t))return t.lift(function(r){try{return e(r,this)}catch(s){this.error(s)}});throw new TypeError("Unable to lift unknown Observable type")}}function ce(e,t,r,s,l){return new Uc(e,t,r,s,l)}var Uc=(function(e){tt(t,e);function t(r,s,l,_,m,i){var a=e.call(this,r)||this;return a.onFinalize=m,a.shouldUnsubscribe=i,a._next=s?function(h){try{s(h)}catch(f){r.error(f)}}:e.prototype._next,a._error=_?function(h){try{_(h)}catch(f){r.error(f)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=l?function(){try{l()}catch(h){r.error(h)}finally{this.unsubscribe()}}:e.prototype._complete,a}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var s=this.closed;e.prototype.unsubscribe.call(this),!s&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t})(Ti),Vc=Zo(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Le=(function(e){tt(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var s=new Os(this,this);return s.operator=r,s},t.prototype._throwIfClosed=function(){if(this.closed)throw new Vc},t.prototype.next=function(r){var s=this;_r(function(){var l,_;if(s._throwIfClosed(),!s.isStopped){s.currentObservers||(s.currentObservers=Array.from(s.observers));try{for(var m=St(s.currentObservers),i=m.next();!i.done;i=m.next()){var a=i.value;a.next(r)}}catch(h){l={error:h}}finally{try{i&&!i.done&&(_=m.return)&&_.call(m)}finally{if(l)throw l.error}}}})},t.prototype.error=function(r){var s=this;_r(function(){if(s._throwIfClosed(),!s.isStopped){s.hasError=s.isStopped=!0,s.thrownError=r;for(var l=s.observers;l.length;)l.shift().error(r)}})},t.prototype.complete=function(){var r=this;_r(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var s=r.observers;s.length;)s.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var s=this,l=this,_=l.hasError,m=l.isStopped,i=l.observers;return _||m?zo:(this.currentObservers=null,i.push(r),new tr(function(){s.currentObservers=null,kr(i,r)}))},t.prototype._checkFinalizedStatuses=function(r){var s=this,l=s.hasError,_=s.thrownError,m=s.isStopped;l?r.error(_):m&&r.complete()},t.prototype.asObservable=function(){var r=new ve;return r.source=this,r},t.create=function(r,s){return new Os(r,s)},t})(ve),Os=(function(e){tt(t,e);function t(r,s){var l=e.call(this)||this;return l.destination=r,l.source=s,l}return t.prototype.next=function(r){var s,l;(l=(s=this.destination)===null||s===void 0?void 0:s.next)===null||l===void 0||l.call(s,r)},t.prototype.error=function(r){var s,l;(l=(s=this.destination)===null||s===void 0?void 0:s.error)===null||l===void 0||l.call(s,r)},t.prototype.complete=function(){var r,s;(s=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||s===void 0||s.call(r)},t.prototype._subscribe=function(r){var s,l;return(l=(s=this.source)===null||s===void 0?void 0:s.subscribe(r))!==null&&l!==void 0?l:zo},t})(Le),Hc={now:function(){return Date.now()}},$c=(function(e){tt(t,e);function t(r,s){return e.call(this)||this}return t.prototype.schedule=function(r,s){return this},t})(tr),Ns={setInterval:function(e,t){for(var r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];return setInterval.apply(void 0,qe([e,t],Ge(r)))},clearInterval:function(e){return clearInterval(e)},delegate:void 0},Wc=(function(e){tt(t,e);function t(r,s){var l=e.call(this,r,s)||this;return l.scheduler=r,l.work=s,l.pending=!1,l}return t.prototype.schedule=function(r,s){var l;if(s===void 0&&(s=0),this.closed)return this;this.state=r;var _=this.id,m=this.scheduler;return _!=null&&(this.id=this.recycleAsyncId(m,_,s)),this.pending=!0,this.delay=s,this.id=(l=this.id)!==null&&l!==void 0?l:this.requestAsyncId(m,this.id,s),this},t.prototype.requestAsyncId=function(r,s,l){return l===void 0&&(l=0),Ns.setInterval(r.flush.bind(r,this),l)},t.prototype.recycleAsyncId=function(r,s,l){if(l===void 0&&(l=0),l!=null&&this.delay===l&&this.pending===!1)return s;s!=null&&Ns.clearInterval(s)},t.prototype.execute=function(r,s){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var l=this._execute(r,s);if(l)return l;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,s){var l=!1,_;try{this.work(r)}catch(m){l=!0,_=m||new Error("Scheduled action threw falsy error")}if(l)return this.unsubscribe(),_},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,s=r.id,l=r.scheduler,_=l.actions;this.work=this.state=this.scheduler=null,this.pending=!1,kr(_,this),s!=null&&(this.id=this.recycleAsyncId(l,s,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t})($c),Fs=(function(){function e(t,r){r===void 0&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(t,r,s){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(s,r)},e.now=Hc.now,e})(),Gc=(function(e){tt(t,e);function t(r,s){s===void 0&&(s=Fs.now);var l=e.call(this,r,s)||this;return l.actions=[],l._active=!1,l}return t.prototype.flush=function(r){var s=this.actions;if(this._active){s.push(r);return}var l;this._active=!0;do if(l=r.execute(r.state,r.delay))break;while(r=s.shift());if(this._active=!1,l){for(;r=s.shift();)r.unsubscribe();throw l}},t})(Fs),ir=new Gc(Wc),jc=ir,Xo=new ve(function(e){return e.complete()});function Jo(e){return e&&ie(e.schedule)}function Di(e){return e[e.length-1]}function Zc(e){return ie(Di(e))?e.pop():void 0}function qo(e){return Jo(Di(e))?e.pop():void 0}function zc(e,t){return typeof Di(e)=="number"?e.pop():t}var Oi=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"});function Qo(e){return ie(e==null?void 0:e.then)}function en(e){return ie(e[Li])}function tn(e){return Symbol.asyncIterator&&ie(e==null?void 0:e[Symbol.asyncIterator])}function rn(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Kc(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var sn=Kc();function on(e){return ie(e==null?void 0:e[sn])}function nn(e){return Ka(this,arguments,function(){var t,r,s,l;return Mo(this,function(_){switch(_.label){case 0:t=e.getReader(),_.label=1;case 1:_.trys.push([1,,9,10]),_.label=2;case 2:return[4,mt(t.read())];case 3:return r=_.sent(),s=r.value,l=r.done,l?[4,mt(void 0)]:[3,5];case 4:return[2,_.sent()];case 5:return[4,mt(s)];case 6:return[4,_.sent()];case 7:return _.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function an(e){return ie(e==null?void 0:e.getReader)}function be(e){if(e instanceof ve)return e;if(e!=null){if(en(e))return Yc(e);if(Oi(e))return Xc(e);if(Qo(e))return Jc(e);if(tn(e))return cn(e);if(on(e))return qc(e);if(an(e))return Qc(e)}throw rn(e)}function Yc(e){return new ve(function(t){var r=e[Li]();if(ie(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Xc(e){return new ve(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function Jc(e){return new ve(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,Yo)})}function qc(e){return new ve(function(t){var r,s;try{for(var l=St(e),_=l.next();!_.done;_=l.next()){var m=_.value;if(t.next(m),t.closed)return}}catch(i){r={error:i}}finally{try{_&&!_.done&&(s=l.return)&&s.call(l)}finally{if(r)throw r.error}}t.complete()})}function cn(e){return new ve(function(t){el(e,t).catch(function(r){return t.error(r)})})}function Qc(e){return cn(nn(e))}function el(e,t){var r,s,l,_;return za(this,void 0,void 0,function(){var m,i;return Mo(this,function(a){switch(a.label){case 0:a.trys.push([0,5,6,11]),r=Ya(e),a.label=1;case 1:return[4,r.next()];case 2:if(s=a.sent(),!!s.done)return[3,4];if(m=s.value,t.next(m),t.closed)return[2];a.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i=a.sent(),l={error:i},[3,11];case 6:return a.trys.push([6,,9,10]),s&&!s.done&&(_=r.return)?[4,_.call(r)]:[3,8];case 7:a.sent(),a.label=8;case 8:return[3,10];case 9:if(l)throw l.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function lt(e,t,r,s,l){s===void 0&&(s=0),l===void 0&&(l=!1);var _=t.schedule(function(){r(),l?e.add(this.schedule(null,s)):this.unsubscribe()},s);if(e.add(_),!l)return _}function ln(e,t){return t===void 0&&(t=0),pe(function(r,s){r.subscribe(ce(s,function(l){return lt(s,e,function(){return s.next(l)},t)},function(){return lt(s,e,function(){return s.complete()},t)},function(l){return lt(s,e,function(){return s.error(l)},t)}))})}function dn(e,t){return t===void 0&&(t=0),pe(function(r,s){s.add(e.schedule(function(){return r.subscribe(s)},t))})}function tl(e,t){return be(e).pipe(dn(t),ln(t))}function rl(e,t){return be(e).pipe(dn(t),ln(t))}function il(e,t){return new ve(function(r){var s=0;return t.schedule(function(){s===e.length?r.complete():(r.next(e[s++]),r.closed||this.schedule())})})}function sl(e,t){return new ve(function(r){var s;return lt(r,t,function(){s=e[sn](),lt(r,t,function(){var l,_,m;try{l=s.next(),_=l.value,m=l.done}catch(i){r.error(i);return}m?r.complete():r.next(_)},0,!0)}),function(){return ie(s==null?void 0:s.return)&&s.return()}})}function hn(e,t){if(!e)throw new Error("Iterable cannot be null");return new ve(function(r){lt(r,t,function(){var s=e[Symbol.asyncIterator]();lt(r,t,function(){s.next().then(function(l){l.done?r.complete():r.next(l.value)})},0,!0)})})}function ol(e,t){return hn(nn(e),t)}function nl(e,t){if(e!=null){if(en(e))return tl(e,t);if(Oi(e))return il(e,t);if(Qo(e))return rl(e,t);if(tn(e))return hn(e,t);if(on(e))return sl(e,t);if(an(e))return ol(e,t)}throw rn(e)}function un(e,t){return t?nl(e,t):be(e)}function al(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=qo(e);return un(e,r)}function cl(e){return e instanceof Date&&!isNaN(e)}function Re(e,t){return pe(function(r,s){var l=0;r.subscribe(ce(s,function(_){s.next(e.call(t,_,l++))}))})}var ll=Array.isArray;function dl(e,t){return ll(t)?e.apply(void 0,qe([],Ge(t))):e(t)}function hl(e){return Re(function(t){return dl(e,t)})}function ul(e,t,r,s,l,_,m,i){var a=[],h=0,f=0,u=!1,v=function(){u&&!a.length&&!h&&t.complete()},y=function(p){return h<s?E(p):a.push(p)},E=function(p){h++;var o=!1;be(r(p,f++)).subscribe(ce(t,function(c){t.next(c)},function(){o=!0},void 0,function(){if(o)try{h--;for(var c=function(){var n=a.shift();m||E(n)};a.length&&h<s;)c();v()}catch(n){t.error(n)}}))};return e.subscribe(ce(t,y,function(){u=!0,v()})),function(){}}function nt(e,t,r){return r===void 0&&(r=1/0),ie(t)?nt(function(s,l){return Re(function(_,m){return t(s,_,l,m)})(be(e(s,l)))},r):(typeof t=="number"&&(r=t),pe(function(s,l){return ul(s,l,e,r)}))}function fl(e){return e===void 0&&(e=1/0),nt(rr,e)}function gl(e){return new ve(function(t){be(e()).subscribe(t)})}var vl={connector:function(){return new Le},resetOnDisconnect:!0};function it(e,t){t===void 0&&(t=vl);var r=null,s=t.connector,l=t.resetOnDisconnect,_=l===void 0?!0:l,m=s(),i=new ve(function(a){return m.subscribe(a)});return i.connect=function(){return(!r||r.closed)&&(r=gl(function(){return e}).subscribe(m),_&&r.add(function(){return m=s()})),r},i}var pl=["addListener","removeListener"],_l=["addEventListener","removeEventListener"],ml=["on","off"];function di(e,t,r,s){if(ie(r)&&(s=r,r=void 0),s)return di(e,t,r).pipe(hl(s));var l=Ge(yl(e)?_l.map(function(i){return function(a){return e[i](t,a,r)}}):bl(e)?pl.map(Ms(e,t)):Sl(e)?ml.map(Ms(e,t)):[],2),_=l[0],m=l[1];if(!_&&Oi(e))return nt(function(i){return di(i,t,r)})(be(e));if(!_)throw new TypeError("Invalid event target");return new ve(function(i){var a=function(){for(var h=[],f=0;f<arguments.length;f++)h[f]=arguments[f];return i.next(1<h.length?h:h[0])};return _(a),function(){return m(a)}})}function Ms(e,t){return function(r){return function(s){return e[r](t,s)}}}function bl(e){return ie(e.addListener)&&ie(e.removeListener)}function Sl(e){return ie(e.on)&&ie(e.off)}function yl(e){return ie(e.addEventListener)&&ie(e.removeEventListener)}function Ut(e,t,r){e===void 0&&(e=0),r===void 0&&(r=jc);var s=-1;return t!=null&&(Jo(t)?r=t:s=t),new ve(function(l){var _=cl(e)?+e-r.now():e;_<0&&(_=0);var m=0;return r.schedule(function(){l.closed||(l.next(m++),0<=s?this.schedule(void 0,s):l.complete())},_)})}function Cl(e,t){return t===void 0&&(t=ir),Ut(e,e,t)}function wl(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=qo(e),s=zc(e,1/0),l=e;return l.length?l.length===1?be(l[0]):fl(s)(un(l,r)):Xo}var El=Array.isArray;function kl(e){return e.length===1&&El(e[0])?e[0]:e}function Me(e,t){return pe(function(r,s){var l=0;r.subscribe(ce(s,function(_){return e.call(t,_,l++)&&s.next(_)}))})}function Bl(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e=kl(e),e.length===1?be(e[0]):new ve(Il(e))}function Il(e){return function(t){for(var r=[],s=function(_){r.push(be(e[_]).subscribe(ce(t,function(m){if(r){for(var i=0;i<r.length;i++)i!==_&&r[i].unsubscribe();r=null}t.next(m)})))},l=0;r&&!t.closed&&l<e.length;l++)s(l)}}function Rl(e){return pe(function(t,r){var s=null,l=null,_=function(){l==null||l.unsubscribe();var m=s;s=[],m&&r.next(m),be(e()).subscribe(l=ce(r,_,jt))};_(),t.subscribe(ce(r,function(m){return s==null?void 0:s.push(m)},function(){s&&r.next(s),r.complete()},void 0,function(){return s=l=null}))})}function fn(e){return pe(function(t,r){var s=null,l=!1,_;s=t.subscribe(ce(r,void 0,void 0,function(m){_=be(e(m,fn(e)(t))),s?(s.unsubscribe(),s=null,_.subscribe(r)):l=!0})),l&&(s.unsubscribe(),s=null,_.subscribe(r))})}function Al(e,t,r,s,l){return function(_,m){var i=r,a=t,h=0;_.subscribe(ce(m,function(f){var u=h++;a=i?e(a,f,u):(i=!0,f),m.next(a)},l))}}function gn(e,t){return t===void 0&&(t=ir),pe(function(r,s){var l=null,_=null,m=null,i=function(){if(l){l.unsubscribe(),l=null;var h=_;_=null,s.next(h)}};function a(){var h=m+e,f=t.now();if(f<h){l=this.schedule(void 0,h-f),s.add(l);return}i()}r.subscribe(ce(s,function(h){_=h,m=t.now(),l||(l=t.schedule(a,e),s.add(l))},function(){i(),s.complete()},void 0,function(){_=l=null}))})}function Ps(e){return e<=0?function(){return Xo}:pe(function(t,r){var s=0;t.subscribe(ce(r,function(l){++s<=e&&(r.next(l),e<=s&&r.complete())}))})}function vn(e,t){return t===void 0&&(t=rr),e=e??xl,pe(function(r,s){var l,_=!0;r.subscribe(ce(s,function(m){var i=t(m);(_||!e(l,i))&&(_=!1,l=i,s.next(m))}))})}function xl(e,t){return e===t}function Tl(e){return pe(function(t,r){try{t.subscribe(r)}finally{r.add(e)}})}function Ll(e,t){return pe(Al(e,t,arguments.length>=2,!0))}function pn(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new Le}:t,s=e.resetOnError,l=s===void 0?!0:s,_=e.resetOnComplete,m=_===void 0?!0:_,i=e.resetOnRefCountZero,a=i===void 0?!0:i;return function(h){var f,u,v,y=0,E=!1,p=!1,o=function(){u==null||u.unsubscribe(),u=void 0},c=function(){o(),f=v=void 0,E=p=!1},n=function(){var d=f;c(),d==null||d.unsubscribe()};return pe(function(d,g){y++,!p&&!E&&o();var C=v=v??r();g.add(function(){y--,y===0&&!p&&!E&&(u=Xr(n,a))}),C.subscribe(g),!f&&y>0&&(f=new Zt({next:function(S){return C.next(S)},error:function(S){p=!0,o(),u=Xr(c,l,S),C.error(S)},complete:function(){E=!0,o(),u=Xr(c,m),C.complete()}}),be(d).subscribe(f))})(h)}}function Xr(e,t){for(var r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];if(t===!0){e();return}if(t!==!1){var l=new Zt({next:function(){l.unsubscribe(),e()}});return be(t.apply(void 0,qe([],Ge(r)))).subscribe(l)}}function Dl(e){return pe(function(t,r){var s=!1,l=ce(r,function(){l==null||l.unsubscribe(),s=!0},jt);be(e).subscribe(l),t.subscribe(ce(r,function(_){return s&&r.next(_)}))})}function Us(e,t){return pe(function(r,s){var l=null,_=0,m=!1,i=function(){return m&&!l&&s.complete()};r.subscribe(ce(s,function(a){l==null||l.unsubscribe();var h=0,f=_++;be(e(a,f)).subscribe(l=ce(s,function(u){return s.next(t?t(a,u,f,h++):u)},function(){l=null,i()}))},function(){m=!0,i()}))})}function hr(e,t){return t===void 0&&(t=!1),pe(function(r,s){var l=0;r.subscribe(ce(s,function(_){var m=e(_,l++);(m||t)&&s.next(_),!m&&s.complete()}))})}function Ol(e,t,r){var s=ie(e)||t||r?{next:e,error:t,complete:r}:e;return s?pe(function(l,_){var m;(m=s.subscribe)===null||m===void 0||m.call(s);var i=!0;l.subscribe(ce(_,function(a){var h;(h=s.next)===null||h===void 0||h.call(s,a),_.next(a)},function(){var a;i=!1,(a=s.complete)===null||a===void 0||a.call(s),_.complete()},function(a){var h;i=!1,(h=s.error)===null||h===void 0||h.call(s,a),_.error(a)},function(){var a,h;i&&((a=s.unsubscribe)===null||a===void 0||a.call(s)),(h=s.finalize)===null||h===void 0||h.call(s)}))}):rr}function Nl(e,t){return pe(function(r,s){var l=t??{},_=l.leading,m=_===void 0?!0:_,i=l.trailing,a=i===void 0?!1:i,h=!1,f=null,u=null,v=!1,y=function(){u==null||u.unsubscribe(),u=null,a&&(o(),v&&s.complete())},E=function(){u=null,v&&s.complete()},p=function(c){return u=be(e(c)).subscribe(ce(s,y,E))},o=function(){if(h){h=!1;var c=f;f=null,s.next(c),!v&&p(c)}};r.subscribe(ce(s,function(c){h=!0,f=c,!(u&&!u.closed)&&(m?o():p(c))},function(){v=!0,!(a&&h&&u&&!u.closed)&&s.complete()}))})}function Vs(e,t,r){t===void 0&&(t=ir);var s=Ut(e,t);return Nl(function(){return s},r)}function Jr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Zc(e);return pe(function(s,l){for(var _=e.length,m=new Array(_),i=e.map(function(){return!1}),a=!1,h=function(u){be(e[u]).subscribe(ce(l,function(v){m[u]=v,!a&&!i[u]&&(i[u]=!0,(a=i.every(rr))&&(i=null))},jt))},f=0;f<_;f++)h(f);s.subscribe(ce(l,function(u){if(a){var v=qe([u],Ge(m));l.next(r?r.apply(void 0,qe([],Ge(v))):v)}}))})}/**
|
|
173
|
-
* Copyright (c) 2017 The xterm.js authors. All rights reserved.
|
|
174
|
-
* @license MIT
|
|
175
|
-
*/const Fl=2,Ml=1;class Pl{constructor(){}activate(t){this._terminal=t}dispose(){}fit(t){const r=this.proposeDimensions();if(t!==void 0&&r&&(r.rows=t),!r||!this._terminal||isNaN(r.cols)||isNaN(r.rows))return;const s=this._terminal._core;return(this._terminal.rows!==r.rows||this._terminal.cols!==r.cols)&&(s._renderService.clear(),this._terminal.resize(r.cols,r.rows)),r}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;const t=this.getCore(),r=t._renderService.dimensions;if(r.css.cell.width===0||r.css.cell.height===0)return;const s=this._terminal.options.scrollback===0?0:t.viewport.scrollBarWidth,l=window.getComputedStyle(this._terminal.element.parentElement),_=parseInt(l.getPropertyValue("height")),m=Math.max(0,parseInt(l.getPropertyValue("width"))),i=window.getComputedStyle(this._terminal.element),a={top:parseInt(i.getPropertyValue("padding-top")),bottom:parseInt(i.getPropertyValue("padding-bottom")),right:parseInt(i.getPropertyValue("padding-right")),left:parseInt(i.getPropertyValue("padding-left"))},h=a.top+a.bottom,f=a.right+a.left,u=_-h,v=m-f-s,{width:y,height:E}=this.getCellSize();return{cols:Math.max(Fl,Math.floor(v/y)),rows:Math.max(Ml,Math.floor(u/E))}}getCellSize(){const{value:t}=this.getCore()._renderService._renderer;return{width:t._charSizeService.width+Math.round(t._optionsService.rawOptions.letterSpacing),height:Math.floor(t._charSizeService.height*t._optionsService.rawOptions.lineHeight)}}getCore(){return this._terminal._core}}let hi;async function ye(e,t,r){var s;const l={type:t,output:r};return await((s=e.postMessage)==null?void 0:s.call(e,l))}function Ul(e,t){var r;return((r=e.onDidReceiveMessage)==null?void 0:r.call(e,t))??{dispose:()=>{}}}function Ie(){if(!hi)throw new Error("Renderer context not defined");return hi}function _n(e){hi=e}var Q=(e=>(e.infoMessage="common:infoMessage",e.errorMessage="common:errorMessage",e.closeCellOutput="common:closeCellOutput",e.displayPrompt="common:displayPrompt",e.onPrompt="common:onPrompt",e.setState="common:setState",e.getState="common:getState",e.onGetState="common:onGetState",e.onCategoryChange="common:onCategoryChange",e.platformApiRequest="common:platformApiRequest",e.platformApiResponse="common:platformApiResponse",e.optionsMessage="common:optionsMessage",e.optionsModal="common:optionsModal",e.openExternalLink="common:openExternalLink",e.onOptionsMessage="common:onOptionsMessage",e.copyTextToClipboard="common:copyTextToClipboard",e.onCopyTextToClipboard="common:onCopyTextToClipboard",e.onProgramClose="common:onProgramClose",e.denoUpdate="deno:deploymentUpdate",e.denoPromote="deno:promoteDeployment",e.vercelProd="vercel:promotePreview",e.mutateAnnotations="annotations:mutate",e.terminalStdout="terminal:stdout",e.terminalStderr="terminal:stderr",e.terminalStdin="terminal:stdin",e.terminalResize="terminal:resize",e.terminalFocus="terminal:focus",e.terminalOpen="terminal:open",e.openLink="terminal:openLink",e.activeThemeChanged="theme:changed",e.githubWorkflowDispatch="github:workflowDispatch",e.githubWorkflowDeploy="github:workflowDeploy",e.githubWorkflowStatusUpdate="github:workflowStatusUpdate",e.tangleEvent="tangle:event",e.gcpResourceStatusChanged="gcp:resourceStatusChanged",e.gcpClusterCheckStatus="gcp:clusterCheckStatus",e.gcpClusterDetails="gcp:clusterDetails",e.gcpClusterDetailsNewCell="gcp:clusterDetailsNewCell",e.gcpClusterDetailsResponse="gcp:clusterDetailsResponse",e.gcpVMInstanceAction="gcp:gceVMInstanceAction",e.awsEC2Instances="aws:ec2Instances",e.awsEC2InstanceAction="aws:ec2InstanceAction",e.awsEKSClusterAction="aws:eksClusterAction",e.onAuthorModeChange="common:onAuthorModeChange",e.gistCell="gist:cell",e.gcpCloudRunAction="gcp:cloudRunAction",e.gcpLoadServices="gcp:loadServices",e.gcpServicesLoaded="gcp:servicesLoaded",e.daggerSyncState="dagger:syncState",e.daggerCliAction="dagger:cliAction",e.featuresUpdateAction="features:updateAction",e.featuresRequest="features:request",e.featuresResponse="features:response",e))(Q||{}),mn=(e=>(e.vercel="stateful.runme/vercel-stdout",e.deno="stateful.runme/deno-stdout",e.outputItems="stateful.runme/output-items",e.annotations="stateful.runme/annotations",e.terminal="stateful.runme/terminal",e.error="stateful.runme/error",e.github="stateful.runme/github-stdout",e.stdout="application/vnd.code.notebook.stdout",e.gcp="stateful.runme/gcp",e.aws="stateful.runme/aws",e.daggerCall="stateful.runme/dagger",e.daggerShell="stateful.runme/dagger",e))(mn||{}),bn=(e=>(e.RunmeCloud="runme.cloud",e.RunmeChat="runme.chat",e.RunmeSearch="runme.search",e.NotebookEnvStore="runme.notebook.envStore",e))(bn||{});function Vl({}){}function Hl(e){return e.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit",hour12:!0})}function $l(e){const t=new Date().getTime()-e.getTime(),r=Math.floor(t/1e3)*-1,s=new Intl.RelativeTimeFormat("en",{numeric:"auto"});return Math.abs(r)<60?s.format(Math.round(r),"second"):Math.abs(r)<3600?s.format(Math.round(r/60),"minute"):Math.abs(r)<86400?s.format(Math.round(r/3600),"hour"):s.format(Math.round(r/86400),"day")}const Wl=K`
|
|
176
|
-
<svg
|
|
177
|
-
class="icon"
|
|
178
|
-
width="16"
|
|
179
|
-
height="16"
|
|
180
|
-
viewBox="0 0 16 16"
|
|
181
|
-
fill="currentColor"
|
|
182
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
183
|
-
>
|
|
184
|
-
<path
|
|
185
|
-
fill-rule="evenodd"
|
|
186
|
-
clip-rule="evenodd"
|
|
187
|
-
d="M13.353 1.146L14.853 2.646L15 3V14.5L14.5 15H1.5L1 14.5V1.5L1.5 1H13L13.353 1.146ZM2 2V14H14V3.208L12.793 2H11V6H4V2H2ZM8 2V5H10V2H8Z"
|
|
188
|
-
/>
|
|
189
|
-
</svg>
|
|
190
|
-
`,Gl=K`<svg
|
|
191
|
-
class="icon"
|
|
192
|
-
width="16"
|
|
193
|
-
height="16"
|
|
194
|
-
viewBox="0 0 16 16"
|
|
195
|
-
fill="currentColor"
|
|
196
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
197
|
-
>
|
|
198
|
-
<path
|
|
199
|
-
fill-rule="evenodd"
|
|
200
|
-
clip-rule="evenodd"
|
|
201
|
-
d="M11.9564 6H12.0063C12.8003 6 13.5617 6.31607 14.1231 6.87868C14.6845 7.44129 14.9999 8.20435 14.9999 9C14.9999 9.79565 14.6845 10.5587 14.1231 11.1213C13.5617 11.6839 12.8003 12 12.0063 12H10.0106V11H12.0063C12.5356 11 13.0432 10.7893 13.4175 10.4142C13.7918 10.0391 14.002 9.53044 14.002 9C14.002 8.46957 13.7918 7.96086 13.4175 7.58579C13.0432 7.21072 12.5356 7 12.0063 7H11.0923L10.9686 6.143C10.8937 5.60541 10.6455 5.10711 10.2617 4.72407C9.87792 4.34103 9.37968 4.09427 8.84295 4.02143C8.30621 3.94859 7.76044 4.05365 7.28883 4.3206C6.81723 4.58754 6.44567 5.00173 6.23082 5.5L5.89754 6.262L5.08929 6.073C4.90378 6.02699 4.71361 6.0025 4.52251 6C3.8609 6 3.22639 6.2634 2.75856 6.73224C2.29073 7.20108 2.02791 7.83696 2.02791 8.5C2.02791 9.16304 2.29073 9.79893 2.75856 10.2678C3.22639 10.7366 3.8609 11 4.52251 11H7.01712V12H4.52251C4.02742 12.0043 3.53708 11.903 3.08401 11.7029C2.63095 11.5028 2.22551 11.2084 1.8946 10.8394C1.56369 10.4703 1.31487 10.0349 1.16465 9.56211C1.01442 9.08932 0.966218 8.58992 1.02324 8.09704C1.08026 7.60416 1.24121 7.12906 1.49539 6.70326C1.74958 6.27745 2.0912 5.91068 2.4976 5.62727C2.904 5.34385 3.36588 5.15027 3.85261 5.05937C4.33935 4.96847 4.8398 4.98232 5.32079 5.1C5.62405 4.40501 6.14506 3.82799 6.8049 3.45635C7.46474 3.08472 8.22745 2.9387 8.97752 3.04044C9.72759 3.14217 10.4241 3.4861 10.9617 4.02014C11.4992 4.55418 11.8484 5.24923 11.9564 6ZM10.2928 9.85348L8.97879 8.53944L8.97879 13.9749H7.98492L7.98493 8.57568L6.7071 9.85347L5.99999 9.14636L8.14643 6.99998H8.85354L10.9999 9.14637L10.2928 9.85348Z"
|
|
202
|
-
/>
|
|
203
|
-
</svg>`;var jl=Object.defineProperty,Zl=Object.getOwnPropertyDescriptor,ut=(e,t,r,s)=>{for(var l=s>1?void 0:s?Zl(t,r):t,_=e.length-1,m;_>=0;_--)(m=e[_])&&(l=(s?m(t,r,l):m(l))||l);return s&&l&&jl(t,r,l),l};let je=class extends we{constructor(){super(...arguments),this.text="Copy",this.loadingText="Saving...",this.loading=!1,this.disabled=!1}onClick(e){e.defaultPrevented&&e.preventDefault();const t=new CustomEvent(this.disabled?"onClickDisabled":"onClick");this.dispatchEvent(t)}render(){const e=this.text.toLocaleLowerCase();return K`
|
|
204
|
-
<vscode-button
|
|
205
|
-
?disabled=${this.loading}
|
|
206
|
-
class=${e}
|
|
207
|
-
appearance="secondary"
|
|
208
|
-
@click=${this.onClick}
|
|
209
|
-
>
|
|
210
|
-
${ue(this.shareIcon,()=>Gl)}
|
|
211
|
-
${ue(this.saveIcon,()=>Wl)}
|
|
212
|
-
${ue(this.loading,()=>K`${this.loadingText}`,()=>K`${this.text}`)}
|
|
213
|
-
</vscode-button>
|
|
214
|
-
`}};je.styles=Ne`
|
|
215
|
-
vscode-button {
|
|
216
|
-
color: var(--vscode-button-foreground);
|
|
217
|
-
background-color: var(--vscode-button-background);
|
|
218
|
-
transform: scale(0.9);
|
|
219
|
-
}
|
|
220
|
-
vscode-button:hover {
|
|
221
|
-
background: var(--vscode-button-hoverBackground);
|
|
222
|
-
}
|
|
223
|
-
vscode-button:focus {
|
|
224
|
-
outline: #007fd4 1px solid;
|
|
225
|
-
}
|
|
226
|
-
vscode-button.escalate {
|
|
227
|
-
background-color: var(--vscode-errorForeground);
|
|
228
|
-
}
|
|
229
|
-
.icon {
|
|
230
|
-
width: 13px;
|
|
231
|
-
margin: 0 5px 0 -5px;
|
|
232
|
-
padding: 0;
|
|
233
|
-
}
|
|
234
|
-
`;ut([Y({type:String})],je.prototype,"text",2);ut([Y({type:String})],je.prototype,"loadingText",2);ut([Y({type:Boolean,reflect:!0})],je.prototype,"loading",2);ut([Y({type:Boolean,reflect:!0})],je.prototype,"disabled",2);ut([Y({type:Boolean,reflect:!0})],je.prototype,"shareIcon",2);ut([Y({type:Boolean,reflect:!0})],je.prototype,"saveIcon",2);je=ut([xe("action-button")],je);const Hs=K`
|
|
235
|
-
<svg
|
|
236
|
-
height="16"
|
|
237
|
-
aria-hidden="true"
|
|
238
|
-
viewBox="0 0 16 16"
|
|
239
|
-
version="1.1"
|
|
240
|
-
width="16"
|
|
241
|
-
class="icon"
|
|
242
|
-
data-view-component="true"
|
|
243
|
-
fill="currentColor"
|
|
244
|
-
>
|
|
245
|
-
<path
|
|
246
|
-
d="M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"
|
|
247
|
-
></path>
|
|
248
|
-
</svg>
|
|
249
|
-
`;var zl=Object.defineProperty,Kl=Object.getOwnPropertyDescriptor,Ni=(e,t,r,s)=>{for(var l=s>1?void 0:s?Kl(t,r):t,_=e.length-1,m;_>=0;_--)(m=e[_])&&(l=(s?m(t,r,l):m(l))||l);return s&&l&&zl(t,r,l),l};let zt=class extends we{constructor(){super(...arguments),this.text="Preview & Gist",this.disabled=!1}onGistClick(e){e.defaultPrevented&&e.preventDefault();const t=new CustomEvent("onGist");this.dispatchEvent(t)}render(){const e=this.text.toLocaleLowerCase();return ue(this.disabled,()=>K`
|
|
250
|
-
<vscode-button class=${e} disabled appearance="secondary">
|
|
251
|
-
${Hs} ${this.text}
|
|
252
|
-
</vscode-button>
|
|
253
|
-
`,()=>K`
|
|
254
|
-
<vscode-button
|
|
255
|
-
class=${e}
|
|
256
|
-
appearance="secondary"
|
|
257
|
-
@click=${this.onGistClick}
|
|
258
|
-
>
|
|
259
|
-
${Hs} ${this.text}
|
|
260
|
-
</vscode-button>
|
|
261
|
-
`)}};zt.styles=Ne`
|
|
262
|
-
vscode-button {
|
|
263
|
-
color: var(--vscode-button-foreground);
|
|
264
|
-
background-color: var(--vscode-button-background);
|
|
265
|
-
transform: scale(0.9);
|
|
266
|
-
}
|
|
267
|
-
vscode-button:hover {
|
|
268
|
-
background: var(--vscode-button-hoverBackground);
|
|
269
|
-
}
|
|
270
|
-
vscode-button:focus {
|
|
271
|
-
outline: #007fd4 1px solid;
|
|
272
|
-
}
|
|
273
|
-
vscode-button.escalate {
|
|
274
|
-
background-color: var(--vscode-errorForeground);
|
|
275
|
-
}
|
|
276
|
-
.icon {
|
|
277
|
-
width: 13px;
|
|
278
|
-
margin: 0 5px 0 -5px;
|
|
279
|
-
padding: 0;
|
|
280
|
-
}
|
|
281
|
-
`;Ni([Y({type:String})],zt.prototype,"text",2);Ni([Y({type:Boolean,reflect:!0})],zt.prototype,"disabled",2);zt=Ni([xe("gist-cell")],zt);const Sn=K`
|
|
282
|
-
<svg
|
|
283
|
-
width="16"
|
|
284
|
-
height="16"
|
|
285
|
-
viewBox="0 0 16 16"
|
|
286
|
-
fill="currentColor"
|
|
287
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
288
|
-
class="icon"
|
|
289
|
-
>
|
|
290
|
-
<path
|
|
291
|
-
fill-rule="evenodd"
|
|
292
|
-
clip-rule="evenodd"
|
|
293
|
-
d="M1.00024 10C1.00024 6.1 4.10024 3 8.00024 3C11.9002 3 15.0002 6.1 15.0002 10H14.0002C14.0002 6.7 11.3002 4 8.00024 4C4.70024 4 2.00024 6.7 2.00024 10H1.00024ZM5.00024 10C5.00024 8.3 6.30024 7 8.00024 7C9.70024 7 11.0002 8.3 11.0002 10C11.0002 11.7 9.70024 13 8.00024 13C6.30024 13 5.00024 11.7 5.00024 10ZM6.00024 10C6.00024 11.1 6.90024 12 8.00024 12C9.10024 12 10.0002 11.1 10.0002 10C10.0002 8.9 9.10024 8 8.00024 8C6.90024 8 6.00024 8.9 6.00024 10Z"
|
|
294
|
-
fill="currentColor"
|
|
295
|
-
/>
|
|
296
|
-
</svg>
|
|
297
|
-
`;var Yl=Object.defineProperty,Xl=Object.getOwnPropertyDescriptor,Fi=(e,t,r,s)=>{for(var l=s>1?void 0:s?Xl(t,r):t,_=e.length-1,m;_>=0;_--)(m=e[_])&&(l=(s?m(t,r,l):m(l))||l);return s&&l&&Yl(t,r,l),l};let Kt=class extends we{constructor(){super(...arguments),this.openText="Open",this.disabled=!1}onOpenClick(e){e.defaultPrevented&&e.preventDefault();const t=new CustomEvent("onOpen");this.dispatchEvent(t)}render(){const e=this.openText.toLocaleLowerCase();return ue(this.disabled,()=>{},()=>K`
|
|
298
|
-
<vscode-button
|
|
299
|
-
class=${e}
|
|
300
|
-
appearance="secondary"
|
|
301
|
-
@click=${this.onOpenClick}
|
|
302
|
-
>
|
|
303
|
-
${Sn} ${this.openText}
|
|
304
|
-
</vscode-button>
|
|
305
|
-
`)}};Kt.styles=Ne`
|
|
306
|
-
vscode-button {
|
|
307
|
-
color: var(--vscode-button-foreground);
|
|
308
|
-
background-color: var(--vscode-button-background);
|
|
309
|
-
transform: scale(0.9);
|
|
310
|
-
}
|
|
311
|
-
vscode-button:hover {
|
|
312
|
-
background: var(--vscode-button-hoverBackground);
|
|
313
|
-
}
|
|
314
|
-
vscode-button:focus {
|
|
315
|
-
outline: #007fd4 1px solid;
|
|
316
|
-
}
|
|
317
|
-
.icon {
|
|
318
|
-
width: 13px;
|
|
319
|
-
margin: 0 5px 0 -5px;
|
|
320
|
-
padding: 0;
|
|
321
|
-
}
|
|
322
|
-
`;Fi([Y({type:String})],Kt.prototype,"openText",2);Fi([Y({type:Boolean,reflect:!0})],Kt.prototype,"disabled",2);Kt=Fi([xe("open-cell")],Kt);var Jl=Object.defineProperty,ql=Object.getOwnPropertyDescriptor,Mi=(e,t,r,s)=>{for(var l=s>1?void 0:s?ql(t,r):t,_=e.length-1,m;_>=0;_--)(m=e[_])&&(l=(s?m(t,r,l):m(l))||l);return s&&l&&Jl(t,r,l),l};let Br=class extends we{constructor(){super(...arguments),this.loading=!1,this.signedIn=!1}handleClick(e){e.defaultPrevented&&e.preventDefault(),this.dispatchEvent(new CustomEvent("onClick"))}render(){let e=this.signedIn?"Save":"Save to Cloud";return K`
|
|
323
|
-
<action-button
|
|
324
|
-
?loading=${this.loading}
|
|
325
|
-
text="${e}"
|
|
326
|
-
?saveIcon=${!0}
|
|
327
|
-
@onClick="${this.handleClick}"
|
|
328
|
-
>
|
|
329
|
-
</action-button>
|
|
330
|
-
`}};Mi([Y({type:Boolean,reflect:!0})],Br.prototype,"loading",2);Mi([Y({type:Boolean,reflect:!0})],Br.prototype,"signedIn",2);Br=Mi([xe("save-button")],Br);var Ql=Object.defineProperty,ed=Object.getOwnPropertyDescriptor,yn=(e,t,r,s)=>{for(var l=s>1?void 0:s?ed(t,r):t,_=e.length-1,m;_>=0;_--)(m=e[_])&&(l=(s?m(t,r,l):m(l))||l);return s&&l&&Ql(t,r,l),l};let ui=class extends we{constructor(){super(...arguments),this.loading=!1}handleClick(e){e.defaultPrevented&&e.preventDefault(),this.dispatchEvent(new CustomEvent("onClick"))}render(){return K`
|
|
331
|
-
<action-button
|
|
332
|
-
?loading=${this.loading}
|
|
333
|
-
text="Share"
|
|
334
|
-
?shareIcon=${!0}
|
|
335
|
-
@onClick="${this.handleClick}"
|
|
336
|
-
>
|
|
337
|
-
</action-button>
|
|
338
|
-
`}};yn([Y({type:Boolean,reflect:!0})],ui.prototype,"loading",2);ui=yn([xe("share-button")],ui);const td=Ne`
|
|
339
|
-
:host {
|
|
340
|
-
--vscode-font-weight: normal;
|
|
341
|
-
--vscode-font-size: 13px;
|
|
342
|
-
--vscode-editor-font-family: 'Operator Mono Lig', 'Cascadia Code';
|
|
343
|
-
--vscode-editor-font-weight: normal;
|
|
344
|
-
--vscode-editor-font-size: 15px;
|
|
345
|
-
--vscode-foreground: #cccccc;
|
|
346
|
-
--vscode-errorForeground: #f85149;
|
|
347
|
-
--vscode-descriptionForeground: #9d9d9d;
|
|
348
|
-
--vscode-icon-foreground: #cccccc;
|
|
349
|
-
--vscode-focusBorder: #0078d4;
|
|
350
|
-
--vscode-selection-background: rgba(243, 239, 245, 0.31);
|
|
351
|
-
--vscode-textSeparator-foreground: #21262d;
|
|
352
|
-
--vscode-textLink-foreground: #4daafc;
|
|
353
|
-
--vscode-textLink-activeForeground: #4daafc;
|
|
354
|
-
--vscode-textPreformat-foreground: #d0d0d0;
|
|
355
|
-
--vscode-textBlockQuote-background: #2b2b2b;
|
|
356
|
-
--vscode-textBlockQuote-border: #616161;
|
|
357
|
-
--vscode-textCodeBlock-background: #2b2b2b;
|
|
358
|
-
--vscode-widget-shadow: rgba(0, 0, 0, 0.36);
|
|
359
|
-
--vscode-input-background: #313131;
|
|
360
|
-
--vscode-input-foreground: #cccccc;
|
|
361
|
-
--vscode-inputOption-activeBorder: #2488db;
|
|
362
|
-
--vscode-inputOption-hoverBackground: rgba(90, 93, 94, 0.5);
|
|
363
|
-
--vscode-inputOption-activeBackground: #2489db82;
|
|
364
|
-
--vscode-inputOption-activeForeground: #ffffff;
|
|
365
|
-
--vscode-input-placeholderForeground: #a6a6a6;
|
|
366
|
-
--vscode-inputValidation-infoBackground: #063b49;
|
|
367
|
-
--vscode-inputValidation-infoBorder: #007acc;
|
|
368
|
-
--vscode-inputValidation-warningBackground: #352a05;
|
|
369
|
-
--vscode-inputValidation-warningBorder: #b89500;
|
|
370
|
-
--vscode-inputValidation-errorBackground: #5a1d1d;
|
|
371
|
-
--vscode-inputValidation-errorBorder: #be1100;
|
|
372
|
-
--vscode-dropdown-background: #313131;
|
|
373
|
-
--vscode-dropdown-foreground: #cccccc;
|
|
374
|
-
--vscode-dropdown-border: #3c3c3c;
|
|
375
|
-
--vscode-checkbox-background: #313131;
|
|
376
|
-
--vscode-checkbox-foreground: #cccccc;
|
|
377
|
-
--vscode-checkbox-border: #6b6b6b;
|
|
378
|
-
--vscode-button-foreground: #ffffff;
|
|
379
|
-
--vscode-button-background: #0078d4;
|
|
380
|
-
--vscode-button-hoverBackground: #026ec1;
|
|
381
|
-
--vscode-button-secondaryForeground: #cccccc;
|
|
382
|
-
--vscode-button-secondaryBackground: #313131;
|
|
383
|
-
--vscode-button-secondaryHoverBackground: #3c3c3c;
|
|
384
|
-
--vscode-badge-background: #616161;
|
|
385
|
-
--vscode-badge-foreground: #f8f8f8;
|
|
386
|
-
--vscode-scrollbar-shadow: #010409;
|
|
387
|
-
--vscode-scrollbarSlider-background: rgba(121, 121, 121, 0.4);
|
|
388
|
-
--vscode-scrollbarSlider-hoverBackground: rgba(100, 100, 100, 0.7);
|
|
389
|
-
--vscode-scrollbarSlider-activeBackground: rgba(191, 191, 191, 0.4);
|
|
390
|
-
--vscode-progressBar-background: #0078d4;
|
|
391
|
-
--vscode-editorError-foreground: #f85149;
|
|
392
|
-
--vscode-editorWarning-foreground: #ffe45e;
|
|
393
|
-
--vscode-editorInfo-foreground: #5eadf2;
|
|
394
|
-
--vscode-editorHint-foreground: rgba(238, 238, 238, 0.7);
|
|
395
|
-
--vscode-sash-hoverBorder: #0078d4;
|
|
396
|
-
--vscode-editor-background: #1e1e1e;
|
|
397
|
-
--vscode-editor-foreground: #d4d4d4;
|
|
398
|
-
--vscode-editorWidget-background: #202020;
|
|
399
|
-
--vscode-editorWidget-foreground: #cccccc;
|
|
400
|
-
--vscode-editorWidget-border: #3c3c3c;
|
|
401
|
-
--vscode-quickInput-background: #222222;
|
|
402
|
-
--vscode-quickInput-foreground: #cccccc;
|
|
403
|
-
--vscode-quickInputTitle-background: rgba(255, 255, 255, 0.1);
|
|
404
|
-
--vscode-pickerGroup-foreground: #3794ff;
|
|
405
|
-
--vscode-pickerGroup-border: #3c3c3c;
|
|
406
|
-
--vscode-keybindingLabel-background: rgba(128, 128, 128, 0.17);
|
|
407
|
-
--vscode-keybindingLabel-foreground: #cccccc;
|
|
408
|
-
--vscode-keybindingLabel-border: rgba(51, 51, 51, 0.6);
|
|
409
|
-
--vscode-keybindingLabel-bottomBorder: rgba(68, 68, 68, 0.6);
|
|
410
|
-
--vscode-editor-selectionBackground: rgba(243, 239, 245, 0.2);
|
|
411
|
-
--vscode-editor-selectionForeground: #f3eff5;
|
|
412
|
-
--vscode-editor-inactiveSelectionBackground: #3a3d41;
|
|
413
|
-
--vscode-editor-selectionHighlightBackground: #add6ff26;
|
|
414
|
-
--vscode-editor-findMatchBackground: #9e6a03;
|
|
415
|
-
--vscode-editor-findMatchHighlightBackground: rgba(237, 18, 146, 0.4);
|
|
416
|
-
--vscode-editor-findRangeHighlightBackground: rgba(58, 61, 65, 0.4);
|
|
417
|
-
--vscode-editor-findMatchBorder: rgba(237, 18, 146, 0.6);
|
|
418
|
-
--vscode-searchEditor-findMatchBackground: rgba(237, 18, 146, 0.26);
|
|
419
|
-
--vscode-editor-hoverHighlightBackground: rgba(38, 79, 120, 0.25);
|
|
420
|
-
--vscode-editorHoverWidget-background: #202020;
|
|
421
|
-
--vscode-editorHoverWidget-foreground: #cccccc;
|
|
422
|
-
--vscode-editorHoverWidget-border: #3c3c3c;
|
|
423
|
-
--vscode-editorHoverWidget-statusBarBackground: #202020;
|
|
424
|
-
--vscode-editorLink-activeForeground: #4e94ce;
|
|
425
|
-
--vscode-editorInlayHint-foreground: rgba(243, 239, 245, 0.8);
|
|
426
|
-
--vscode-editorInlayHint-background: rgba(237, 18, 146, 0.6);
|
|
427
|
-
--vscode-editorInlayHint-typeForeground: rgba(243, 239, 245, 0.8);
|
|
428
|
-
--vscode-editorInlayHint-typeBackground: rgba(237, 18, 146, 0.6);
|
|
429
|
-
--vscode-editorInlayHint-parameterForeground: rgba(243, 239, 245, 0.8);
|
|
430
|
-
--vscode-editorInlayHint-parameterBackground: rgba(237, 18, 146, 0.6);
|
|
431
|
-
--vscode-editorLightBulb-foreground: #ffcc00;
|
|
432
|
-
--vscode-editorLightBulbAutoFix-foreground: #75beff;
|
|
433
|
-
--vscode-diffEditor-insertedTextBackground: rgba(155, 185, 85, 0.2);
|
|
434
|
-
--vscode-diffEditor-removedTextBackground: rgba(255, 0, 0, 0.2);
|
|
435
|
-
--vscode-diffEditor-diagonalFill: rgba(204, 204, 204, 0.2);
|
|
436
|
-
--vscode-list-focusOutline: rgba(243, 239, 245, 0.2);
|
|
437
|
-
--vscode-list-activeSelectionBackground: rgba(243, 239, 245, 0.2);
|
|
438
|
-
--vscode-list-activeSelectionForeground: #ffffff;
|
|
439
|
-
--vscode-list-inactiveSelectionBackground: rgba(243, 239, 245, 0.13);
|
|
440
|
-
--vscode-list-inactiveSelectionForeground: rgba(243, 239, 245, 0.8);
|
|
441
|
-
--vscode-list-inactiveFocusOutline: rgba(243, 239, 245, 0.13);
|
|
442
|
-
--vscode-list-hoverBackground: rgba(243, 239, 245, 0.13);
|
|
443
|
-
--vscode-list-dropBackground: #383b3d;
|
|
444
|
-
--vscode-list-highlightForeground: #0078d4;
|
|
445
|
-
--vscode-list-focusHighlightForeground: #0078d4;
|
|
446
|
-
--vscode-list-invalidItemForeground: #b89500;
|
|
447
|
-
--vscode-list-errorForeground: #f85149;
|
|
448
|
-
--vscode-list-warningForeground: #cca700;
|
|
449
|
-
--vscode-listFilterWidget-background: #760949;
|
|
450
|
-
--vscode-listFilterWidget-outline: rgba(0, 0, 0, 0);
|
|
451
|
-
--vscode-listFilterWidget-noMatchesOutline: #f85149;
|
|
452
|
-
--vscode-list-filterMatchBackground: rgba(237, 18, 146, 0.4);
|
|
453
|
-
--vscode-tree-indentGuidesStroke: rgba(243, 239, 245, 0.4);
|
|
454
|
-
--vscode-tree-tableColumnsBorder: rgba(204, 204, 204, 0.13);
|
|
455
|
-
--vscode-tree-tableOddRowsBackground: rgba(243, 239, 245, 0.04);
|
|
456
|
-
--vscode-list-deemphasizedForeground: #8c8c8c;
|
|
457
|
-
--vscode-quickInputList-focusForeground: #ffffff;
|
|
458
|
-
--vscode-quickInputList-focusBackground: #0078d4;
|
|
459
|
-
--vscode-menu-border: #454545;
|
|
460
|
-
--vscode-menu-foreground: #cccccc;
|
|
461
|
-
--vscode-menu-background: #252526;
|
|
462
|
-
--vscode-menu-selectionForeground: #cccccc;
|
|
463
|
-
--vscode-menu-selectionBackground: #0078d4;
|
|
464
|
-
--vscode-menu-separatorBackground: #454545;
|
|
465
|
-
--vscode-toolbar-hoverBackground: rgba(90, 93, 94, 0.31);
|
|
466
|
-
--vscode-toolbar-activeBackground: rgba(99, 102, 103, 0.31);
|
|
467
|
-
--vscode-editor-snippetTabstopHighlightBackground: rgba(124, 124, 124, 0.3);
|
|
468
|
-
--vscode-editor-snippetFinalTabstopHighlightBorder: #525252;
|
|
469
|
-
--vscode-breadcrumb-foreground: #aaaaaa;
|
|
470
|
-
--vscode-breadcrumb-background: #1f1f1f;
|
|
471
|
-
--vscode-breadcrumb-focusForeground: #ffffff;
|
|
472
|
-
--vscode-breadcrumb-activeSelectionForeground: #ffffff;
|
|
473
|
-
--vscode-breadcrumbPicker-background: #202020;
|
|
474
|
-
--vscode-merge-currentHeaderBackground: #005c65;
|
|
475
|
-
--vscode-merge-currentContentBackground: #00434c;
|
|
476
|
-
--vscode-merge-incomingHeaderBackground: #474f60;
|
|
477
|
-
--vscode-merge-incomingContentBackground: #2e3647;
|
|
478
|
-
--vscode-merge-commonHeaderBackground: #282d39;
|
|
479
|
-
--vscode-merge-commonContentBackground: #414652;
|
|
480
|
-
--vscode-editorOverviewRuler-currentContentForeground: #005c65;
|
|
481
|
-
--vscode-editorOverviewRuler-incomingContentForeground: #474f60;
|
|
482
|
-
--vscode-editorOverviewRuler-commonContentForeground: #282d39;
|
|
483
|
-
--vscode-editorOverviewRuler-findMatchForeground: rgba(209, 134, 22, 0.49);
|
|
484
|
-
--vscode-editorOverviewRuler-selectionHighlightForeground: rgba(
|
|
485
|
-
160,
|
|
486
|
-
160,
|
|
487
|
-
160,
|
|
488
|
-
0.8
|
|
489
|
-
);
|
|
490
|
-
--vscode-editorOverviewRuler-unicodeForeground: rgba(209, 134, 22, 0.49);
|
|
491
|
-
--vscode-minimap-findMatchHighlight: #d18616;
|
|
492
|
-
--vscode-minimap-selectionOccurrenceHighlight: #676767;
|
|
493
|
-
--vscode-minimap-selectionHighlight: #264f78;
|
|
494
|
-
--vscode-minimap-errorHighlight: rgba(255, 18, 18, 0.7);
|
|
495
|
-
--vscode-minimap-warningHighlight: #ffe45e;
|
|
496
|
-
--vscode-minimap-foregroundOpacity: #000000;
|
|
497
|
-
--vscode-minimap-unicodeHighlight: #d18616;
|
|
498
|
-
--vscode-minimapSlider-background: rgba(121, 121, 121, 0.2);
|
|
499
|
-
--vscode-minimapSlider-hoverBackground: rgba(100, 100, 100, 0.35);
|
|
500
|
-
--vscode-minimapSlider-activeBackground: rgba(191, 191, 191, 0.2);
|
|
501
|
-
--vscode-problemsErrorIcon-foreground: #f85149;
|
|
502
|
-
--vscode-problemsWarningIcon-foreground: #ffe45e;
|
|
503
|
-
--vscode-problemsInfoIcon-foreground: #5eadf2;
|
|
504
|
-
--vscode-charts-foreground: #cccccc;
|
|
505
|
-
--vscode-charts-lines: rgba(243, 239, 245, 0.5);
|
|
506
|
-
--vscode-charts-red: #f85149;
|
|
507
|
-
--vscode-charts-blue: #5eadf2;
|
|
508
|
-
--vscode-charts-yellow: #ffe45e;
|
|
509
|
-
--vscode-charts-orange: #d18616;
|
|
510
|
-
--vscode-charts-green: #89d185;
|
|
511
|
-
--vscode-charts-purple: #b180d7;
|
|
512
|
-
--vscode-editor-lineHighlightBackground: #242d34;
|
|
513
|
-
--vscode-editor-lineHighlightBorder: #242d34;
|
|
514
|
-
--vscode-editor-rangeHighlightBackground: rgba(255, 255, 255, 0.04);
|
|
515
|
-
--vscode-editor-symbolHighlightBackground: rgba(237, 18, 146, 0.4);
|
|
516
|
-
--vscode-editorCursor-foreground: #44ffd2;
|
|
517
|
-
--vscode-editorWhitespace-foreground: rgba(227, 228, 226, 0.16);
|
|
518
|
-
--vscode-editorIndentGuide-background: #404040;
|
|
519
|
-
--vscode-editorIndentGuide-activeBackground: #707070;
|
|
520
|
-
--vscode-editorLineNumber-foreground: #6e7681;
|
|
521
|
-
--vscode-editorActiveLineNumber-foreground: #cccccc;
|
|
522
|
-
--vscode-editorLineNumber-activeForeground: #cccccc;
|
|
523
|
-
--vscode-editorRuler-foreground: #5a5a5a;
|
|
524
|
-
--vscode-editorCodeLens-foreground: #999999;
|
|
525
|
-
--vscode-editorBracketMatch-background: rgba(0, 100, 0, 0.1);
|
|
526
|
-
--vscode-editorBracketMatch-border: #888888;
|
|
527
|
-
--vscode-editorOverviewRuler-border: #010409;
|
|
528
|
-
--vscode-editorGutter-background: #1f1f1f;
|
|
529
|
-
--vscode-editorUnnecessaryCode-opacity: rgba(0, 0, 0, 0.67);
|
|
530
|
-
--vscode-editorGhostText-foreground: rgba(255, 255, 255, 0.34);
|
|
531
|
-
--vscode-editorOverviewRuler-rangeHighlightForeground: rgba(
|
|
532
|
-
0,
|
|
533
|
-
122,
|
|
534
|
-
204,
|
|
535
|
-
0.6
|
|
536
|
-
);
|
|
537
|
-
--vscode-editorOverviewRuler-errorForeground: rgba(255, 18, 18, 0.7);
|
|
538
|
-
--vscode-editorOverviewRuler-warningForeground: #ffe45e;
|
|
539
|
-
--vscode-editorOverviewRuler-infoForeground: #5eadf2;
|
|
540
|
-
--vscode-editorBracketHighlight-foreground1: #ffd700;
|
|
541
|
-
--vscode-editorBracketHighlight-foreground2: #da70d6;
|
|
542
|
-
--vscode-editorBracketHighlight-foreground3: #179fff;
|
|
543
|
-
--vscode-editorBracketHighlight-foreground4: rgba(0, 0, 0, 0);
|
|
544
|
-
--vscode-editorBracketHighlight-foreground5: rgba(0, 0, 0, 0);
|
|
545
|
-
--vscode-editorBracketHighlight-foreground6: rgba(0, 0, 0, 0);
|
|
546
|
-
--vscode-editorBracketHighlight-unexpectedBracket\.foreground: rgba(
|
|
547
|
-
255,
|
|
548
|
-
18,
|
|
549
|
-
18,
|
|
550
|
-
0.8
|
|
551
|
-
);
|
|
552
|
-
--vscode-editorBracketPairGuide-background1: rgba(0, 0, 0, 0);
|
|
553
|
-
--vscode-editorBracketPairGuide-background2: rgba(0, 0, 0, 0);
|
|
554
|
-
--vscode-editorBracketPairGuide-background3: rgba(0, 0, 0, 0);
|
|
555
|
-
--vscode-editorBracketPairGuide-background4: rgba(0, 0, 0, 0);
|
|
556
|
-
--vscode-editorBracketPairGuide-background5: rgba(0, 0, 0, 0);
|
|
557
|
-
--vscode-editorBracketPairGuide-background6: rgba(0, 0, 0, 0);
|
|
558
|
-
--vscode-editorBracketPairGuide-activeBackground1: rgba(0, 0, 0, 0);
|
|
559
|
-
--vscode-editorBracketPairGuide-activeBackground2: rgba(0, 0, 0, 0);
|
|
560
|
-
--vscode-editorBracketPairGuide-activeBackground3: rgba(0, 0, 0, 0);
|
|
561
|
-
--vscode-editorBracketPairGuide-activeBackground4: rgba(0, 0, 0, 0);
|
|
562
|
-
--vscode-editorBracketPairGuide-activeBackground5: rgba(0, 0, 0, 0);
|
|
563
|
-
--vscode-editorBracketPairGuide-activeBackground6: rgba(0, 0, 0, 0);
|
|
564
|
-
--vscode-editorUnicodeHighlight-border: #bd9b03;
|
|
565
|
-
--vscode-symbolIcon-arrayForeground: #cccccc;
|
|
566
|
-
--vscode-symbolIcon-booleanForeground: #cccccc;
|
|
567
|
-
--vscode-symbolIcon-classForeground: #ee9d28;
|
|
568
|
-
--vscode-symbolIcon-colorForeground: #cccccc;
|
|
569
|
-
--vscode-symbolIcon-constantForeground: #cccccc;
|
|
570
|
-
--vscode-symbolIcon-constructorForeground: #b180d7;
|
|
571
|
-
--vscode-symbolIcon-enumeratorForeground: #ee9d28;
|
|
572
|
-
--vscode-symbolIcon-enumeratorMemberForeground: #75beff;
|
|
573
|
-
--vscode-symbolIcon-eventForeground: #ee9d28;
|
|
574
|
-
--vscode-symbolIcon-fieldForeground: #75beff;
|
|
575
|
-
--vscode-symbolIcon-fileForeground: #cccccc;
|
|
576
|
-
--vscode-symbolIcon-folderForeground: #cccccc;
|
|
577
|
-
--vscode-symbolIcon-functionForeground: #b180d7;
|
|
578
|
-
--vscode-symbolIcon-interfaceForeground: #75beff;
|
|
579
|
-
--vscode-symbolIcon-keyForeground: #cccccc;
|
|
580
|
-
--vscode-symbolIcon-keywordForeground: #cccccc;
|
|
581
|
-
--vscode-symbolIcon-methodForeground: #b180d7;
|
|
582
|
-
--vscode-symbolIcon-moduleForeground: #cccccc;
|
|
583
|
-
--vscode-symbolIcon-namespaceForeground: #cccccc;
|
|
584
|
-
--vscode-symbolIcon-nullForeground: #cccccc;
|
|
585
|
-
--vscode-symbolIcon-numberForeground: #cccccc;
|
|
586
|
-
--vscode-symbolIcon-objectForeground: #cccccc;
|
|
587
|
-
--vscode-symbolIcon-operatorForeground: #cccccc;
|
|
588
|
-
--vscode-symbolIcon-packageForeground: #cccccc;
|
|
589
|
-
--vscode-symbolIcon-propertyForeground: #cccccc;
|
|
590
|
-
--vscode-symbolIcon-referenceForeground: #cccccc;
|
|
591
|
-
--vscode-symbolIcon-snippetForeground: #cccccc;
|
|
592
|
-
--vscode-symbolIcon-stringForeground: #cccccc;
|
|
593
|
-
--vscode-symbolIcon-structForeground: #cccccc;
|
|
594
|
-
--vscode-symbolIcon-textForeground: #cccccc;
|
|
595
|
-
--vscode-symbolIcon-typeParameterForeground: #cccccc;
|
|
596
|
-
--vscode-symbolIcon-unitForeground: #cccccc;
|
|
597
|
-
--vscode-symbolIcon-variableForeground: #75beff;
|
|
598
|
-
--vscode-editorHoverWidget-highlightForeground: #0078d4;
|
|
599
|
-
--vscode-editorOverviewRuler-bracketMatchForeground: #a0a0a0;
|
|
600
|
-
--vscode-editor-foldBackground: rgba(243, 239, 245, 0.06);
|
|
601
|
-
--vscode-editorGutter-foldingControlForeground: #c5c5c5;
|
|
602
|
-
--vscode-editor-linkedEditingBackground: rgba(255, 0, 0, 0.3);
|
|
603
|
-
--vscode-editorSuggestWidget-background: #202020;
|
|
604
|
-
--vscode-editorSuggestWidget-border: #3c3c3c;
|
|
605
|
-
--vscode-editorSuggestWidget-foreground: #cccccc;
|
|
606
|
-
--vscode-editorSuggestWidget-selectedForeground: #ffffff;
|
|
607
|
-
--vscode-editorSuggestWidget-selectedBackground: #0078d4;
|
|
608
|
-
--vscode-editorSuggestWidget-highlightForeground: #0078d4;
|
|
609
|
-
--vscode-editorSuggestWidget-focusHighlightForeground: #0078d4;
|
|
610
|
-
--vscode-editorSuggestWidgetStatus-foreground: #9d9d9d;
|
|
611
|
-
--vscode-editor-wordHighlightBackground: rgba(87, 87, 87, 0.72);
|
|
612
|
-
--vscode-editor-wordHighlightStrongBackground: rgba(0, 73, 114, 0.72);
|
|
613
|
-
--vscode-editorOverviewRuler-wordHighlightForeground: rgba(
|
|
614
|
-
160,
|
|
615
|
-
160,
|
|
616
|
-
160,
|
|
617
|
-
0.8
|
|
618
|
-
);
|
|
619
|
-
--vscode-editorOverviewRuler-wordHighlightStrongForeground: rgba(
|
|
620
|
-
192,
|
|
621
|
-
160,
|
|
622
|
-
192,
|
|
623
|
-
0.8
|
|
624
|
-
);
|
|
625
|
-
--vscode-peekViewTitle-background: #1f1f1f;
|
|
626
|
-
--vscode-peekViewTitleLabel-foreground: #ffffff;
|
|
627
|
-
--vscode-peekViewTitleDescription-foreground: rgba(204, 204, 204, 0.7);
|
|
628
|
-
--vscode-peekView-border: #0078d4;
|
|
629
|
-
--vscode-peekViewResult-background: #1f1f1f;
|
|
630
|
-
--vscode-peekViewResult-lineForeground: #cccccc;
|
|
631
|
-
--vscode-peekViewResult-fileForeground: #cccccc;
|
|
632
|
-
--vscode-peekViewResult-selectionBackground: #0078d4;
|
|
633
|
-
--vscode-peekViewResult-selectionForeground: #ffffff;
|
|
634
|
-
--vscode-peekViewEditor-background: #1f1f1f;
|
|
635
|
-
--vscode-peekViewEditorGutter-background: #1f1f1f;
|
|
636
|
-
--vscode-peekViewResult-matchHighlightBackground: #bb800966;
|
|
637
|
-
--vscode-peekViewEditor-matchHighlightBackground: #bb800966;
|
|
638
|
-
--vscode-editorMarkerNavigationError-background: #f85149;
|
|
639
|
-
--vscode-editorMarkerNavigationError-headerBackground: rgba(
|
|
640
|
-
254,
|
|
641
|
-
74,
|
|
642
|
-
73,
|
|
643
|
-
0.1
|
|
644
|
-
);
|
|
645
|
-
--vscode-editorMarkerNavigationWarning-background: #ffe45e;
|
|
646
|
-
--vscode-editorMarkerNavigationWarning-headerBackground: rgba(
|
|
647
|
-
255,
|
|
648
|
-
228,
|
|
649
|
-
94,
|
|
650
|
-
0.1
|
|
651
|
-
);
|
|
652
|
-
--vscode-editorMarkerNavigationInfo-background: #5eadf2;
|
|
653
|
-
--vscode-editorMarkerNavigationInfo-headerBackground: rgba(
|
|
654
|
-
94,
|
|
655
|
-
173,
|
|
656
|
-
242,
|
|
657
|
-
0.1
|
|
658
|
-
);
|
|
659
|
-
--vscode-editorMarkerNavigation-background: #1f1f1f;
|
|
660
|
-
--vscode-tab-activeBackground: #222222;
|
|
661
|
-
--vscode-tab-unfocusedActiveBackground: #1f1f1f;
|
|
662
|
-
--vscode-tab-inactiveBackground: #181818;
|
|
663
|
-
--vscode-tab-unfocusedInactiveBackground: #181818;
|
|
664
|
-
--vscode-tab-activeForeground: #ffffffa0;
|
|
665
|
-
--vscode-tab-inactiveForeground: #9d9d9d;
|
|
666
|
-
--vscode-tab-unfocusedActiveForeground: #9d9d9d;
|
|
667
|
-
--vscode-tab-unfocusedInactiveForeground: #9d9d9d;
|
|
668
|
-
--vscode-tab-border: #2b2b2b;
|
|
669
|
-
--vscode-tab-lastPinnedBorder: #cccccc33;
|
|
670
|
-
--vscode-tab-activeModifiedBorder: #3399cc;
|
|
671
|
-
--vscode-tab-inactiveModifiedBorder: rgba(51, 153, 204, 0.5);
|
|
672
|
-
--vscode-tab-unfocusedActiveModifiedBorder: rgba(51, 153, 204, 0.5);
|
|
673
|
-
--vscode-tab-unfocusedInactiveModifiedBorder: rgba(51, 153, 204, 0.25);
|
|
674
|
-
--vscode-editorPane-background: #1f1f1f;
|
|
675
|
-
--vscode-editorGroupHeader-tabsBackground: #181818;
|
|
676
|
-
--vscode-editorGroupHeader-tabsBorder: #2b2b2b;
|
|
677
|
-
--vscode-editorGroupHeader-noTabsBackground: #1f1f1f;
|
|
678
|
-
--vscode-editorGroup-border: #ffffff17;
|
|
679
|
-
--vscode-editorGroup-dropBackground: rgba(83, 89, 93, 0.5);
|
|
680
|
-
--vscode-sideBySideEditor-horizontalBorder: #444444;
|
|
681
|
-
--vscode-sideBySideEditor-verticalBorder: #444444;
|
|
682
|
-
--vscode-panel-background: #181818;
|
|
683
|
-
--vscode-panel-border: #2b2b2b;
|
|
684
|
-
--vscode-panelTitle-activeForeground: #cccccc;
|
|
685
|
-
--vscode-panelTitle-inactiveForeground: #9d9d9d;
|
|
686
|
-
--vscode-panelTitle-activeBorder: #0078d4;
|
|
687
|
-
--vscode-panel-dropBorder: #e7e7e7;
|
|
688
|
-
--vscode-panelSection-dropBackground: rgba(83, 89, 93, 0.5);
|
|
689
|
-
--vscode-panelSectionHeader-background: rgba(128, 128, 128, 0.2);
|
|
690
|
-
--vscode-panelSection-border: #2b2b2b;
|
|
691
|
-
--vscode-banner-background: rgba(243, 239, 245, 0.2);
|
|
692
|
-
--vscode-banner-foreground: #cccccc;
|
|
693
|
-
--vscode-banner-iconForeground: #5eadf2;
|
|
694
|
-
--vscode-statusBar-foreground: #cccccc;
|
|
695
|
-
--vscode-statusBar-noFolderForeground: #cccccc;
|
|
696
|
-
--vscode-statusBar-background: #181818;
|
|
697
|
-
--vscode-statusBar-noFolderBackground: #1f1f1f;
|
|
698
|
-
--vscode-statusBar-border: #2b2b2b;
|
|
699
|
-
--vscode-statusBar-noFolderBorder: #2b2b2b;
|
|
700
|
-
--vscode-statusBarItem-activeBackground: rgba(255, 255, 255, 0.18);
|
|
701
|
-
--vscode-statusBarItem-hoverBackground: rgba(255, 255, 255, 0.12);
|
|
702
|
-
--vscode-statusBarItem-prominentForeground: #cccccc;
|
|
703
|
-
--vscode-statusBarItem-prominentBackground: #6e768166;
|
|
704
|
-
--vscode-statusBarItem-prominentHoverBackground: rgba(0, 0, 0, 0.3);
|
|
705
|
-
--vscode-statusBarItem-errorBackground: #c72e0f;
|
|
706
|
-
--vscode-statusBarItem-errorForeground: #ffffff;
|
|
707
|
-
--vscode-statusBarItem-warningBackground: #d1ae00;
|
|
708
|
-
--vscode-statusBarItem-warningForeground: #ffffff;
|
|
709
|
-
--vscode-activityBar-background: #181818;
|
|
710
|
-
--vscode-activityBar-foreground: #d7d7d7;
|
|
711
|
-
--vscode-activityBar-inactiveForeground: #868686;
|
|
712
|
-
--vscode-activityBar-border: #2b2b2b;
|
|
713
|
-
--vscode-activityBar-activeBorder: #0078d4;
|
|
714
|
-
--vscode-activityBar-activeFocusBorder: #0078d4;
|
|
715
|
-
--vscode-activityBar-activeBackground: rgba(255, 255, 255, 0);
|
|
716
|
-
--vscode-activityBar-dropBorder: #d7d7d7;
|
|
717
|
-
--vscode-activityBarBadge-background: #0078d4;
|
|
718
|
-
--vscode-activityBarBadge-foreground: #ffffff;
|
|
719
|
-
--vscode-statusBarItem-remoteBackground: #16825d;
|
|
720
|
-
--vscode-statusBarItem-remoteForeground: #ffffff;
|
|
721
|
-
--vscode-extensionBadge-remoteBackground: #0078d4;
|
|
722
|
-
--vscode-extensionBadge-remoteForeground: #ffffff;
|
|
723
|
-
--vscode-sideBar-background: #181818;
|
|
724
|
-
--vscode-sideBar-foreground: #cccccc;
|
|
725
|
-
--vscode-sideBar-border: #2b2b2b;
|
|
726
|
-
--vscode-sideBarTitle-foreground: #bbbbbb;
|
|
727
|
-
--vscode-sideBar-dropBackground: rgba(83, 89, 93, 0.5);
|
|
728
|
-
--vscode-sideBarSectionHeader-background: #00000000;
|
|
729
|
-
--vscode-sideBarSectionHeader-foreground: #cccccc;
|
|
730
|
-
--vscode-sideBarSectionHeader-border: #cccccc33;
|
|
731
|
-
--vscode-titleBar-activeForeground: #cccccc;
|
|
732
|
-
--vscode-titleBar-inactiveForeground: #9d9d9d;
|
|
733
|
-
--vscode-activityBar-background: #0e131f;
|
|
734
|
-
--vscode-activityBar-foreground: #f3eff5;
|
|
735
|
-
--vscode-activityBar-inactiveForeground: rgba(243, 239, 245, 0.4);
|
|
736
|
-
--vscode-activityBar-border: #242d34;
|
|
737
|
-
--vscode-activityBar-activeBorder: #ed1292;
|
|
738
|
-
--vscode-activityBar-activeFocusBorder: #d61084;
|
|
739
|
-
--vscode-activityBar-activeBackground: rgba(255, 255, 255, 0);
|
|
740
|
-
--vscode-activityBar-dropBorder: #f3eff5;
|
|
741
|
-
--vscode-activityBarBadge-background: #ed1292;
|
|
742
|
-
--vscode-activityBarBadge-foreground: #f3eff5;
|
|
743
|
-
--vscode-statusBarItem-remoteBackground: #ed1292;
|
|
744
|
-
--vscode-statusBarItem-remoteForeground: #f3eff5;
|
|
745
|
-
--vscode-extensionBadge-remoteBackground: #ed1292;
|
|
746
|
-
--vscode-extensionBadge-remoteForeground: #f3eff5;
|
|
747
|
-
--vscode-sideBar-background: #141c2d;
|
|
748
|
-
--vscode-sideBar-foreground: rgba(243, 239, 245, 0.8);
|
|
749
|
-
--vscode-sideBar-border: #242d34;
|
|
750
|
-
--vscode-sideBarTitle-foreground: rgba(243, 239, 245, 0.8);
|
|
751
|
-
--vscode-sideBar-dropBackground: rgba(83, 89, 93, 0.5);
|
|
752
|
-
--vscode-sideBarSectionHeader-background: #0d1217;
|
|
753
|
-
--vscode-sideBarSectionHeader-foreground: rgba(243, 239, 245, 0.8);
|
|
754
|
-
--vscode-sideBarSectionHeader-border: #212c36;
|
|
755
|
-
--vscode-titleBar-activeForeground: #f3eff5;
|
|
756
|
-
--vscode-titleBar-inactiveForeground: rgba(243, 239, 245, 0.6);
|
|
757
|
-
--vscode-titleBar-activeBackground: #0e131f;
|
|
758
|
-
--vscode-titleBar-inactiveBackground: rgba(14, 19, 31, 0.6);
|
|
759
|
-
--vscode-menubar-selectionForeground: #f3eff5;
|
|
760
|
-
--vscode-menubar-selectionBackground: rgba(255, 255, 255, 0.1);
|
|
761
|
-
--vscode-notificationCenter-border: #212c36;
|
|
762
|
-
--vscode-notificationToast-border: #212c36;
|
|
763
|
-
--vscode-notifications-foreground: #f3eff5;
|
|
764
|
-
--vscode-notifications-background: #141c2d;
|
|
765
|
-
--vscode-notificationLink-foreground: #46a1f0;
|
|
766
|
-
--vscode-notificationCenterHeader-foreground: #f3eff5;
|
|
767
|
-
--vscode-notificationCenterHeader-background: #0e131f;
|
|
768
|
-
--vscode-notifications-border: #212c36;
|
|
769
|
-
--vscode-notificationsErrorIcon-foreground: #fe4a49;
|
|
770
|
-
--vscode-notificationsWarningIcon-foreground: #ffe45e;
|
|
771
|
-
--vscode-notificationsInfoIcon-foreground: #5eadf2;
|
|
772
|
-
--vscode-editorGutter-commentRangeForeground: #c5c5c5;
|
|
773
|
-
--vscode-debugToolBar-background: #1e2942;
|
|
774
|
-
--vscode-debugToolBar-border: #3e474e;
|
|
775
|
-
--vscode-debugIcon-startForeground: #89d185;
|
|
776
|
-
--vscode-editor-stackFrameHighlightBackground: rgba(255, 255, 0, 0.2);
|
|
777
|
-
--vscode-editor-focusedStackFrameHighlightBackground: rgba(
|
|
778
|
-
122,
|
|
779
|
-
189,
|
|
780
|
-
122,
|
|
781
|
-
0.3
|
|
782
|
-
);
|
|
783
|
-
--vscode-settings-headerForeground: #e7e7e7;
|
|
784
|
-
--vscode-settings-modifiedItemIndicator: #0c7d9d;
|
|
785
|
-
--vscode-settings-dropdownBackground: #141c2d;
|
|
786
|
-
--vscode-settings-dropdownForeground: #f0f0f0;
|
|
787
|
-
--vscode-settings-dropdownBorder: #242d34;
|
|
788
|
-
--vscode-settings-dropdownListBorder: #212c36;
|
|
789
|
-
--vscode-settings-checkboxBackground: #141c2d;
|
|
790
|
-
--vscode-settings-checkboxForeground: #f0f0f0;
|
|
791
|
-
--vscode-settings-checkboxBorder: #242d34;
|
|
792
|
-
--vscode-settings-textInputBackground: #0d1217;
|
|
793
|
-
--vscode-settings-textInputForeground: #f3eff5;
|
|
794
|
-
--vscode-settings-numberInputBackground: #0d1217;
|
|
795
|
-
--vscode-settings-numberInputForeground: #f3eff5;
|
|
796
|
-
--vscode-settings-focusedRowBackground: rgba(128, 128, 128, 0.14);
|
|
797
|
-
--vscode-settings-rowHoverBackground: rgba(128, 128, 128, 0.07);
|
|
798
|
-
--vscode-settings-focusedRowBorder: rgba(255, 255, 255, 0.12);
|
|
799
|
-
--vscode-terminal-background: #1e1e1e;
|
|
800
|
-
--vscode-terminal-foreground: #d4d4d4;
|
|
801
|
-
--vscode-terminal-selectionBackground: #3a3d41;
|
|
802
|
-
--vscode-terminal-border: #2b2b2b;
|
|
803
|
-
--vscode-terminal-dropBackground: rgba(83, 89, 93, 0.5);
|
|
804
|
-
--vscode-testing-iconFailed: #f14c4c;
|
|
805
|
-
--vscode-testing-iconErrored: #f14c4c;
|
|
806
|
-
--vscode-testing-iconPassed: #73c991;
|
|
807
|
-
--vscode-testing-runAction: #73c991;
|
|
808
|
-
--vscode-testing-iconQueued: #cca700;
|
|
809
|
-
--vscode-testing-iconUnset: #848484;
|
|
810
|
-
--vscode-testing-iconSkipped: #848484;
|
|
811
|
-
--vscode-testing-peekBorder: #fe4a49;
|
|
812
|
-
--vscode-testing-peekHeaderBackground: rgba(254, 74, 73, 0.1);
|
|
813
|
-
--vscode-testing-message\.error\.decorationForeground: #fe4a49;
|
|
814
|
-
--vscode-testing-message\.error\.lineBackground: rgba(255, 0, 0, 0.2);
|
|
815
|
-
--vscode-testing-message\.info\.decorationForeground: rgba(
|
|
816
|
-
243,
|
|
817
|
-
239,
|
|
818
|
-
245,
|
|
819
|
-
0.5
|
|
820
|
-
);
|
|
821
|
-
--vscode-welcomePage-tileBackground: #141c2d;
|
|
822
|
-
--vscode-welcomePage-tileHoverBackground: #182136;
|
|
823
|
-
--vscode-welcomePage-tileShadow: rgba(0, 0, 0, 0.36);
|
|
824
|
-
--vscode-welcomePage-progress\.background: #0d1217;
|
|
825
|
-
--vscode-welcomePage-progress\.foreground: #46a1f0;
|
|
826
|
-
--vscode-statusBar-debuggingBackground: #fe4a49;
|
|
827
|
-
--vscode-statusBar-debuggingForeground: #0e131f;
|
|
828
|
-
--vscode-statusBar-debuggingBorder: #212c36;
|
|
829
|
-
--vscode-debugExceptionWidget-border: #a31515;
|
|
830
|
-
--vscode-debugExceptionWidget-background: #420b0d;
|
|
831
|
-
--vscode-ports-iconRunningProcessForeground: #369432;
|
|
832
|
-
--vscode-editor-inlineValuesForeground: rgba(255, 255, 255, 0.5);
|
|
833
|
-
--vscode-editor-inlineValuesBackground: rgba(255, 200, 0, 0.2);
|
|
834
|
-
--vscode-editorGutter-modifiedBackground: #0c7d9d;
|
|
835
|
-
--vscode-editorGutter-addedBackground: #587c0c;
|
|
836
|
-
--vscode-editorGutter-deletedBackground: #94151b;
|
|
837
|
-
--vscode-minimapGutter-modifiedBackground: #0c7d9d;
|
|
838
|
-
--vscode-minimapGutter-addedBackground: #587c0c;
|
|
839
|
-
--vscode-minimapGutter-deletedBackground: #94151b;
|
|
840
|
-
--vscode-editorOverviewRuler-modifiedForeground: rgba(12, 125, 157, 0.6);
|
|
841
|
-
--vscode-editorOverviewRuler-addedForeground: rgba(88, 124, 12, 0.6);
|
|
842
|
-
--vscode-editorOverviewRuler-deletedForeground: rgba(148, 21, 27, 0.6);
|
|
843
|
-
--vscode-debugIcon-breakpointForeground: #e51400;
|
|
844
|
-
--vscode-debugIcon-breakpointDisabledForeground: #848484;
|
|
845
|
-
--vscode-debugIcon-breakpointUnverifiedForeground: #848484;
|
|
846
|
-
--vscode-debugIcon-breakpointCurrentStackframeForeground: #ffcc00;
|
|
847
|
-
--vscode-debugIcon-breakpointStackframeForeground: #89d185;
|
|
848
|
-
--vscode-keybindingTable-headerBackground: rgba(243, 239, 245, 0.04);
|
|
849
|
-
--vscode-keybindingTable-rowsBackground: rgba(243, 239, 245, 0.04);
|
|
850
|
-
--vscode-notebook-cellBorderColor: rgba(243, 239, 245, 0.13);
|
|
851
|
-
--vscode-notebook-focusedEditorBorder: #263354;
|
|
852
|
-
--vscode-notebookStatusSuccessIcon-foreground: #89d185;
|
|
853
|
-
--vscode-notebookStatusErrorIcon-foreground: #f48771;
|
|
854
|
-
--vscode-notebookStatusRunningIcon-foreground: #f3eff5;
|
|
855
|
-
--vscode-notebook-cellToolbarSeparator: rgba(128, 128, 128, 0.35);
|
|
856
|
-
--vscode-notebook-selectedCellBackground: rgba(243, 239, 245, 0.13);
|
|
857
|
-
--vscode-notebook-selectedCellBorder: rgba(243, 239, 245, 0.13);
|
|
858
|
-
--vscode-notebook-focusedCellBorder: #263354;
|
|
859
|
-
--vscode-notebook-inactiveFocusedCellBorder: rgba(243, 239, 245, 0.13);
|
|
860
|
-
--vscode-notebook-cellStatusBarItemHoverBackground: rgba(
|
|
861
|
-
255,
|
|
862
|
-
255,
|
|
863
|
-
255,
|
|
864
|
-
0.15
|
|
865
|
-
);
|
|
866
|
-
--vscode-notebook-cellInsertionIndicator: #263354;
|
|
867
|
-
--vscode-notebookScrollbarSlider-background: rgba(121, 121, 121, 0.4);
|
|
868
|
-
--vscode-notebookScrollbarSlider-hoverBackground: rgba(100, 100, 100, 0.7);
|
|
869
|
-
--vscode-notebookScrollbarSlider-activeBackground: rgba(191, 191, 191, 0.4);
|
|
870
|
-
--vscode-notebook-symbolHighlightBackground: rgba(255, 255, 255, 0.04);
|
|
871
|
-
--vscode-notebook-cellEditorBackground: #141c2d;
|
|
872
|
-
--vscode-scm-providerBorder: #454545;
|
|
873
|
-
--vscode-debugTokenExpression-name: #c586c0;
|
|
874
|
-
--vscode-debugTokenExpression-value: rgba(204, 204, 204, 0.6);
|
|
875
|
-
--vscode-debugTokenExpression-string: #ce9178;
|
|
876
|
-
--vscode-debugTokenExpression-boolean: #4e94ce;
|
|
877
|
-
--vscode-debugTokenExpression-number: #b5cea8;
|
|
878
|
-
--vscode-debugTokenExpression-error: #f48771;
|
|
879
|
-
--vscode-debugView-exceptionLabelForeground: #f3eff5;
|
|
880
|
-
--vscode-debugView-exceptionLabelBackground: #6c2022;
|
|
881
|
-
--vscode-debugView-stateLabelForeground: #f3eff5;
|
|
882
|
-
--vscode-debugView-stateLabelBackground: rgba(136, 136, 136, 0.27);
|
|
883
|
-
--vscode-debugView-valueChangedHighlight: #569cd6;
|
|
884
|
-
--vscode-debugConsole-infoForeground: #5eadf2;
|
|
885
|
-
--vscode-debugConsole-warningForeground: #ffe45e;
|
|
886
|
-
--vscode-debugConsole-errorForeground: #f48771;
|
|
887
|
-
--vscode-debugConsole-sourceForeground: #f3eff5;
|
|
888
|
-
--vscode-debugConsoleInputIcon-foreground: #f3eff5;
|
|
889
|
-
--vscode-debugIcon-pauseForeground: #75beff;
|
|
890
|
-
--vscode-debugIcon-stopForeground: #f48771;
|
|
891
|
-
--vscode-debugIcon-disconnectForeground: #f48771;
|
|
892
|
-
--vscode-debugIcon-restartForeground: #89d185;
|
|
893
|
-
--vscode-debugIcon-stepOverForeground: #75beff;
|
|
894
|
-
--vscode-debugIcon-stepIntoForeground: #75beff;
|
|
895
|
-
--vscode-debugIcon-stepOutForeground: #75beff;
|
|
896
|
-
--vscode-debugIcon-continueForeground: #75beff;
|
|
897
|
-
--vscode-debugIcon-stepBackForeground: #75beff;
|
|
898
|
-
--vscode-extensionButton-prominentBackground: #15c2cb;
|
|
899
|
-
--vscode-extensionButton-prominentForeground: #0e131f;
|
|
900
|
-
--vscode-extensionButton-prominentHoverBackground: #24dfe8;
|
|
901
|
-
--vscode-extensionIcon-starForeground: #ff8e00;
|
|
902
|
-
--vscode-extensionIcon-verifiedForeground: #46a1f0;
|
|
903
|
-
--vscode-extensionIcon-preReleaseForeground: #1d9271;
|
|
904
|
-
--vscode-terminal-ansiBlack: #141c2d;
|
|
905
|
-
--vscode-terminal-ansiRed: #fe4a49;
|
|
906
|
-
--vscode-terminal-ansiGreen: #11ffc6;
|
|
907
|
-
--vscode-terminal-ansiYellow: #f5cc00;
|
|
908
|
-
--vscode-terminal-ansiBlue: #46a1f0;
|
|
909
|
-
--vscode-terminal-ansiMagenta: #ed1292;
|
|
910
|
-
--vscode-terminal-ansiCyan: #0accd6;
|
|
911
|
-
--vscode-terminal-ansiWhite: #dad6dc;
|
|
912
|
-
--vscode-terminal-ansiBrightBlack: #676965;
|
|
913
|
-
--vscode-terminal-ansiBrightRed: #fe6362;
|
|
914
|
-
--vscode-terminal-ansiBrightGreen: #44ffd2;
|
|
915
|
-
--vscode-terminal-ansiBrightYellow: #ffe45e;
|
|
916
|
-
--vscode-terminal-ansiBrightBlue: #5eadf2;
|
|
917
|
-
--vscode-terminal-ansiBrightMagenta: #f141a8;
|
|
918
|
-
--vscode-terminal-ansiBrightCyan: #15c2cb;
|
|
919
|
-
--vscode-terminal-ansiBrightWhite: #f3eff5;
|
|
920
|
-
--vscode-interactive-activeCodeBorder: #5eadf2;
|
|
921
|
-
--vscode-interactive-inactiveCodeBorder: rgba(243, 239, 245, 0.13);
|
|
922
|
-
--vscode-gitDecoration-addedResourceForeground: rgba(68, 255, 210, 0.8);
|
|
923
|
-
--vscode-gitDecoration-modifiedResourceForeground: rgba(255, 228, 94, 0.8);
|
|
924
|
-
--vscode-gitDecoration-deletedResourceForeground: rgba(254, 74, 73, 0.8);
|
|
925
|
-
--vscode-gitDecoration-renamedResourceForeground: #73c991;
|
|
926
|
-
--vscode-gitDecoration-untrackedResourceForeground: rgba(68, 255, 210, 0.8);
|
|
927
|
-
--vscode-gitDecoration-ignoredResourceForeground: #8c8c8c;
|
|
928
|
-
--vscode-gitDecoration-stageModifiedResourceForeground: rgba(
|
|
929
|
-
255,
|
|
930
|
-
228,
|
|
931
|
-
94,
|
|
932
|
-
0.8
|
|
933
|
-
);
|
|
934
|
-
--vscode-gitDecoration-stageDeletedResourceForeground: rgba(
|
|
935
|
-
254,
|
|
936
|
-
74,
|
|
937
|
-
73,
|
|
938
|
-
0.8
|
|
939
|
-
);
|
|
940
|
-
--vscode-gitDecoration-conflictingResourceForeground: #e4676b;
|
|
941
|
-
--vscode-gitDecoration-submoduleResourceForeground: rgba(94, 173, 242, 0.8);
|
|
942
|
-
--vscode-testExplorer-errorDecorationBackground: #5a1d1d;
|
|
943
|
-
--vscode-widget-border: #303031;
|
|
944
|
-
--vscode-activityBarBadge-background: #007acc;
|
|
945
|
-
}
|
|
946
|
-
`,rd=Ne`
|
|
947
|
-
:host {
|
|
948
|
-
--vscode-font-weight: normal;
|
|
949
|
-
--vscode-font-size: 13px;
|
|
950
|
-
--vscode-editor-font-family: 'Operator Mono Lig', 'Cascadia Code';
|
|
951
|
-
--vscode-editor-font-weight: normal;
|
|
952
|
-
--vscode-editor-font-size: 15px;
|
|
953
|
-
--vscode-foreground: #3b3b3b;
|
|
954
|
-
--vscode-errorForeground: #f85149;
|
|
955
|
-
--vscode-descriptionForeground: #3b3b3b;
|
|
956
|
-
--vscode-icon-foreground: #3b3b3b;
|
|
957
|
-
--vscode-focusBorder: #005fb8;
|
|
958
|
-
--vscode-selection-background: #add6ff;
|
|
959
|
-
--vscode-textSeparator-foreground: #21262d;
|
|
960
|
-
--vscode-textLink-foreground: #005fb8;
|
|
961
|
-
--vscode-textLink-activeForeground: #005fb8;
|
|
962
|
-
--vscode-textPreformat-foreground: #3b3b3b;
|
|
963
|
-
--vscode-textBlockQuote-background: #f8f8f8;
|
|
964
|
-
--vscode-textBlockQuote-border: #e5e5e5;
|
|
965
|
-
--vscode-textCodeBlock-background: #f8f8f8;
|
|
966
|
-
--vscode-widget-shadow: #00000029;
|
|
967
|
-
--vscode-input-background: #ffffff;
|
|
968
|
-
--vscode-input-foreground: #3b3b3b;
|
|
969
|
-
--vscode-inputOption-activeBorder: #005fb8;
|
|
970
|
-
--vscode-inputOption-hoverBackground: #b8b8b850;
|
|
971
|
-
--vscode-inputOption-activeBackground: #bed6ed;
|
|
972
|
-
--vscode-inputOption-activeForeground: #000000;
|
|
973
|
-
--vscode-input-placeholderForeground: #767676;
|
|
974
|
-
--vscode-inputValidation-infoBackground: #d6ecf2;
|
|
975
|
-
--vscode-inputValidation-infoBorder: #007acc;
|
|
976
|
-
--vscode-inputValidation-warningBackground: #f6f5d2;
|
|
977
|
-
--vscode-inputValidation-warningBorder: #b89500;
|
|
978
|
-
--vscode-inputValidation-errorBackground: #f2dede;
|
|
979
|
-
--vscode-inputValidation-errorBorder: #be1100;
|
|
980
|
-
--vscode-dropdown-background: #ffffff;
|
|
981
|
-
--vscode-dropdown-foreground: #3b3b3b;
|
|
982
|
-
--vscode-dropdown-border: #cecece;
|
|
983
|
-
--vscode-checkbox-background: #f8f8f8;
|
|
984
|
-
--vscode-checkbox-foreground: #3b3b3b;
|
|
985
|
-
--vscode-checkbox-border: #cecece;
|
|
986
|
-
--vscode-button-foreground: #ffffff;
|
|
987
|
-
--vscode-button-background: #005fb8;
|
|
988
|
-
--vscode-button-hoverBackground: #0258a8;
|
|
989
|
-
--vscode-button-secondaryForeground: #3b3b3b;
|
|
990
|
-
--vscode-button-secondaryBackground: #e5e5e5;
|
|
991
|
-
--vscode-button-secondaryHoverBackground: #cccccc;
|
|
992
|
-
--vscode-badge-background: #cccccc;
|
|
993
|
-
--vscode-badge-foreground: #3b3b3b;
|
|
994
|
-
--vscode-scrollbar-shadow: #dddddd;
|
|
995
|
-
--vscode-scrollbarSlider-background: #64646466;
|
|
996
|
-
--vscode-scrollbarSlider-hoverBackground: #646464b3;
|
|
997
|
-
--vscode-scrollbarSlider-activeBackground: #00000099;
|
|
998
|
-
--vscode-progressBar-background: #005fb8;
|
|
999
|
-
--vscode-editorError-foreground: #e51400;
|
|
1000
|
-
--vscode-editorWarning-foreground: #bf8803;
|
|
1001
|
-
--vscode-editorInfo-foreground: #1a85ff;
|
|
1002
|
-
--vscode-editorHint-foreground: #6c6c6c;
|
|
1003
|
-
--vscode-sash-hoverBorder: #005fb8;
|
|
1004
|
-
--vscode-editor-background: #ffffff;
|
|
1005
|
-
--vscode-editor-foreground: #3b3b3b;
|
|
1006
|
-
--vscode-editorWidget-background: #f8f8f8;
|
|
1007
|
-
--vscode-editorWidget-foreground: #3b3b3b;
|
|
1008
|
-
--vscode-editorWidget-border: #c8c8c8;
|
|
1009
|
-
--vscode-quickInput-background: #f8f8f8;
|
|
1010
|
-
--vscode-quickInput-foreground: #3b3b3b;
|
|
1011
|
-
--vscode-quickInputTitle-background: #0000000f;
|
|
1012
|
-
--vscode-pickerGroup-foreground: #8b949e;
|
|
1013
|
-
--vscode-pickerGroup-border: #e5e5e5;
|
|
1014
|
-
--vscode-keybindingLabel-background: #dddddd66;
|
|
1015
|
-
--vscode-keybindingLabel-foreground: #3b3b3b;
|
|
1016
|
-
--vscode-keybindingLabel-border: #cccccc66;
|
|
1017
|
-
--vscode-keybindingLabel-bottomBorder: #bbbbbb66;
|
|
1018
|
-
--vscode-editor-selectionBackground: #add6ff;
|
|
1019
|
-
--vscode-editor-selectionForeground: transparent;
|
|
1020
|
-
--vscode-editor-inactiveSelectionBackground: #e5ebf1;
|
|
1021
|
-
--vscode-editor-selectionHighlightBackground: #add6ff80;
|
|
1022
|
-
--vscode-editor-findMatchBackground: #a8ac94;
|
|
1023
|
-
--vscode-editor-findMatchHighlightBackground: #ea5c0055;
|
|
1024
|
-
--vscode-editor-findRangeHighlightBackground: #b4b4b44d;
|
|
1025
|
-
--vscode-editor-findMatchBorder: transparent;
|
|
1026
|
-
--vscode-searchEditor-findMatchBackground: #ea5c0038;
|
|
1027
|
-
--vscode-editor-hoverHighlightBackground: #add6ff26;
|
|
1028
|
-
--vscode-editorHoverWidget-background: #f8f8f8;
|
|
1029
|
-
--vscode-editorHoverWidget-foreground: #3b3b3b;
|
|
1030
|
-
--vscode-editorHoverWidget-border: #c8c8c8;
|
|
1031
|
-
--vscode-editorHoverWidget-statusBarBackground: #ececec;
|
|
1032
|
-
--vscode-editorLink-activeForeground: #0000ff;
|
|
1033
|
-
--vscode-editorInlayHint-foreground: #969696;
|
|
1034
|
-
--vscode-editorInlayHint-background: #cccccc1a;
|
|
1035
|
-
--vscode-editorInlayHint-typeForeground: #969696;
|
|
1036
|
-
--vscode-editorInlayHint-typeBackground: #cccccc1a;
|
|
1037
|
-
--vscode-editorInlayHint-parameterForeground: #969696;
|
|
1038
|
-
--vscode-editorInlayHint-parameterBackground: #cccccc1a;
|
|
1039
|
-
--vscode-editorLightBulb-foreground: #ddb100;
|
|
1040
|
-
--vscode-editorLightBulbAutoFix-foreground: #007acc;
|
|
1041
|
-
--vscode-diffEditor-insertedTextBackground: #9ccc2c40;
|
|
1042
|
-
--vscode-diffEditor-removedTextBackground: #ff000033;
|
|
1043
|
-
--vscode-diffEditor-diagonalFill: #22222233;
|
|
1044
|
-
--vscode-list-focusOutline: #005fb8;
|
|
1045
|
-
--vscode-list-activeSelectionBackground: #e8e8e8;
|
|
1046
|
-
--vscode-list-activeSelectionForeground: #000000;
|
|
1047
|
-
--vscode-list-inactiveSelectionBackground: #e4e6f1;
|
|
1048
|
-
--vscode-list-inactiveSelectionForeground: transparent;
|
|
1049
|
-
--vscode-list-inactiveFocusOutline: transparent;
|
|
1050
|
-
--vscode-list-hoverBackground: #f2f2f2;
|
|
1051
|
-
--vscode-list-dropBackground: #d6ebff;
|
|
1052
|
-
--vscode-list-highlightForeground: #0066bf;
|
|
1053
|
-
--vscode-list-focusHighlightForeground: #0066bf;
|
|
1054
|
-
--vscode-list-invalidItemForeground: #b89500;
|
|
1055
|
-
--vscode-list-errorForeground: #b01011;
|
|
1056
|
-
--vscode-list-warningForeground: #855f00;
|
|
1057
|
-
--vscode-listFilterWidget-background: #f8f8f8;
|
|
1058
|
-
--vscode-listFilterWidget-outline: #00000000;
|
|
1059
|
-
--vscode-listFilterWidget-noMatchesOutline: #be1100;
|
|
1060
|
-
--vscode-list-filterMatchBackground: #ea5c0055;
|
|
1061
|
-
--vscode-tree-indentGuidesStroke: #a9a9a9;
|
|
1062
|
-
--vscode-tree-tableColumnsBorder: #61616120;
|
|
1063
|
-
--vscode-tree-tableOddRowsBackground: #3b3b3b0a;
|
|
1064
|
-
--vscode-list-deemphasizedForeground: #8e8e90;
|
|
1065
|
-
--vscode-quickInputList-focusForeground: #000000;
|
|
1066
|
-
--vscode-quickInputList-focusBackground: #e8e8e8;
|
|
1067
|
-
--vscode-menu-border: #cecece;
|
|
1068
|
-
--vscode-menu-foreground: #3b3b3b;
|
|
1069
|
-
--vscode-menu-background: #ffffff;
|
|
1070
|
-
--vscode-menu-selectionForeground: #ffffff;
|
|
1071
|
-
--vscode-menu-selectionBackground: #005fb8;
|
|
1072
|
-
--vscode-menu-separatorBackground: #d4d4d4;
|
|
1073
|
-
--vscode-toolbar-hoverBackground: #b8b8b850;
|
|
1074
|
-
--vscode-toolbar-activeBackground: #a6a6a650;
|
|
1075
|
-
--vscode-editor-snippetTabstopHighlightBackground: #0a326433;
|
|
1076
|
-
--vscode-editor-snippetFinalTabstopHighlightBorder: #0a326480;
|
|
1077
|
-
--vscode-breadcrumb-foreground: #3b3b3bcc;
|
|
1078
|
-
--vscode-breadcrumb-background: #ffffff;
|
|
1079
|
-
--vscode-breadcrumb-focusForeground: #2f2f2f;
|
|
1080
|
-
--vscode-breadcrumb-activeSelectionForeground: #2f2f2f;
|
|
1081
|
-
--vscode-breadcrumbPicker-background: #f8f8f8;
|
|
1082
|
-
--vscode-merge-currentHeaderBackground: #40c8ae80;
|
|
1083
|
-
--vscode-merge-currentContentBackground: #40c8ae33;
|
|
1084
|
-
--vscode-merge-incomingHeaderBackground: #40a6ff80;
|
|
1085
|
-
--vscode-merge-incomingContentBackground: #40a6ff33;
|
|
1086
|
-
--vscode-merge-commonHeaderBackground: #60606066;
|
|
1087
|
-
--vscode-merge-commonContentBackground: #60606029;
|
|
1088
|
-
--vscode-editorOverviewRuler-currentContentForeground: #40c8ae80;
|
|
1089
|
-
--vscode-editorOverviewRuler-incomingContentForeground: #40a6ff80;
|
|
1090
|
-
--vscode-editorOverviewRuler-commonContentForeground: #60606066;
|
|
1091
|
-
--vscode-editorOverviewRuler-findMatchForeground: #d186167e;
|
|
1092
|
-
--vscode-editorOverviewRuler-selectionHighlightForeground: #a0a0a0cc;
|
|
1093
|
-
--vscode-editorOverviewRuler-unicodeForeground: transparent;
|
|
1094
|
-
--vscode-minimap-findMatchHighlight: #d18616;
|
|
1095
|
-
--vscode-minimap-selectionOccurrenceHighlight: #c9c9c9;
|
|
1096
|
-
--vscode-minimap-selectionHighlight: #add6ff;
|
|
1097
|
-
--vscode-minimap-errorHighlight: #ff1212b3;
|
|
1098
|
-
--vscode-minimap-warningHighlight: #bf8803;
|
|
1099
|
-
--vscode-minimap-foregroundOpacity: #000000;
|
|
1100
|
-
--vscode-minimap-unicodeHighlight: transparent;
|
|
1101
|
-
--vscode-minimapSlider-background: #64646433;
|
|
1102
|
-
--vscode-minimapSlider-hoverBackground: #64646459;
|
|
1103
|
-
--vscode-minimapSlider-activeBackground: #0000004d;
|
|
1104
|
-
--vscode-problemsErrorIcon-foreground: #e51400;
|
|
1105
|
-
--vscode-problemsWarningIcon-foreground: #bf8803;
|
|
1106
|
-
--vscode-problemsInfoIcon-foreground: #1a85ff;
|
|
1107
|
-
--vscode-charts-foreground: #3b3b3b;
|
|
1108
|
-
--vscode-charts-lines: #3b3b3b80;
|
|
1109
|
-
--vscode-charts-red: #e51400;
|
|
1110
|
-
--vscode-charts-blue: #1a85ff;
|
|
1111
|
-
--vscode-charts-yellow: #bf8803;
|
|
1112
|
-
--vscode-charts-orange: #d18616;
|
|
1113
|
-
--vscode-charts-green: #388a34;
|
|
1114
|
-
--vscode-charts-purple: #652d90;
|
|
1115
|
-
--vscode-editor-lineHighlightBackground: transparent;
|
|
1116
|
-
--vscode-editor-lineHighlightBorder: #eeeeee;
|
|
1117
|
-
--vscode-editor-rangeHighlightBackground: #fdff0033;
|
|
1118
|
-
--vscode-editor-symbolHighlightBackground: #ea5c0055;
|
|
1119
|
-
--vscode-editorCursor-foreground: #000000;
|
|
1120
|
-
--vscode-editorWhitespace-foreground: #33333333;
|
|
1121
|
-
--vscode-editorIndentGuide-background: #d3d3d3;
|
|
1122
|
-
--vscode-editorIndentGuide-activeBackground: #939393;
|
|
1123
|
-
--vscode-editorLineNumber-foreground: #6e7681;
|
|
1124
|
-
--vscode-editorActiveLineNumber-foreground: #171184;
|
|
1125
|
-
--vscode-editorLineNumber-activeForeground: #171184;
|
|
1126
|
-
--vscode-editorRuler-foreground: #d3d3d3;
|
|
1127
|
-
--vscode-editorCodeLens-foreground: #919191;
|
|
1128
|
-
--vscode-editorBracketMatch-background: #0064001a;
|
|
1129
|
-
--vscode-editorBracketMatch-border: #b9b9b9;
|
|
1130
|
-
--vscode-editorOverviewRuler-border: #e5e5e5;
|
|
1131
|
-
--vscode-editorGutter-background: #ffffff;
|
|
1132
|
-
--vscode-editorUnnecessaryCode-opacity: #00000077;
|
|
1133
|
-
--vscode-editorGhostText-foreground: #00000077;
|
|
1134
|
-
--vscode-editorOverviewRuler-rangeHighlightForeground: #007acc99;
|
|
1135
|
-
--vscode-editorOverviewRuler-errorForeground: #ff1212b3;
|
|
1136
|
-
--vscode-editorOverviewRuler-warningForeground: #bf8803;
|
|
1137
|
-
--vscode-editorOverviewRuler-infoForeground: #1a85ff;
|
|
1138
|
-
--vscode-editorBracketHighlight-foreground1: #0431fa;
|
|
1139
|
-
--vscode-editorBracketHighlight-foreground2: #319331;
|
|
1140
|
-
--vscode-editorBracketHighlight-foreground3: #7b3814;
|
|
1141
|
-
--vscode-editorBracketHighlight-foreground4: #00000000;
|
|
1142
|
-
--vscode-editorBracketHighlight-foreground5: #00000000;
|
|
1143
|
-
--vscode-editorBracketHighlight-foreground6: #00000000;
|
|
1144
|
-
--vscode-editorBracketHighlight-unexpectedBracket\.foreground: #ff1212cc;
|
|
1145
|
-
--vscode-editorBracketPairGuide-background1: #00000000;
|
|
1146
|
-
--vscode-editorBracketPairGuide-background2: #00000000;
|
|
1147
|
-
--vscode-editorBracketPairGuide-background3: #00000000;
|
|
1148
|
-
--vscode-editorBracketPairGuide-background4: #00000000;
|
|
1149
|
-
--vscode-editorBracketPairGuide-background5: #00000000;
|
|
1150
|
-
--vscode-editorBracketPairGuide-background6: #00000000;
|
|
1151
|
-
--vscode-editorBracketPairGuide-activeBackground1: #00000000;
|
|
1152
|
-
--vscode-editorBracketPairGuide-activeBackground2: #00000000;
|
|
1153
|
-
--vscode-editorBracketPairGuide-activeBackground3: #00000000;
|
|
1154
|
-
--vscode-editorBracketPairGuide-activeBackground4: #00000000;
|
|
1155
|
-
--vscode-editorBracketPairGuide-activeBackground5: #00000000;
|
|
1156
|
-
--vscode-editorBracketPairGuide-activeBackground6: #00000000;
|
|
1157
|
-
--vscode-editorUnicodeHighlight-border: #bf8803;
|
|
1158
|
-
--vscode-symbolIcon-arrayForeground: #3b3b3b;
|
|
1159
|
-
--vscode-symbolIcon-booleanForeground: #3b3b3b;
|
|
1160
|
-
--vscode-symbolIcon-classForeground: #d67e00;
|
|
1161
|
-
--vscode-symbolIcon-colorForeground: #3b3b3b;
|
|
1162
|
-
--vscode-symbolIcon-constantForeground: #3b3b3b;
|
|
1163
|
-
--vscode-symbolIcon-constructorForeground: #652d90;
|
|
1164
|
-
--vscode-symbolIcon-enumeratorForeground: #d67e00;
|
|
1165
|
-
--vscode-symbolIcon-enumeratorMemberForeground: #007acc;
|
|
1166
|
-
--vscode-symbolIcon-eventForeground: #d67e00;
|
|
1167
|
-
--vscode-symbolIcon-fieldForeground: #007acc;
|
|
1168
|
-
--vscode-symbolIcon-fileForeground: #3b3b3b;
|
|
1169
|
-
--vscode-symbolIcon-folderForeground: #3b3b3b;
|
|
1170
|
-
--vscode-symbolIcon-functionForeground: #652d90;
|
|
1171
|
-
--vscode-symbolIcon-interfaceForeground: #007acc;
|
|
1172
|
-
--vscode-symbolIcon-keyForeground: #3b3b3b;
|
|
1173
|
-
--vscode-symbolIcon-keywordForeground: #3b3b3b;
|
|
1174
|
-
--vscode-symbolIcon-methodForeground: #652d90;
|
|
1175
|
-
--vscode-symbolIcon-moduleForeground: #3b3b3b;
|
|
1176
|
-
--vscode-symbolIcon-namespaceForeground: #3b3b3b;
|
|
1177
|
-
--vscode-symbolIcon-nullForeground: #3b3b3b;
|
|
1178
|
-
--vscode-symbolIcon-numberForeground: #3b3b3b;
|
|
1179
|
-
--vscode-symbolIcon-objectForeground: #3b3b3b;
|
|
1180
|
-
--vscode-symbolIcon-operatorForeground: #3b3b3b;
|
|
1181
|
-
--vscode-symbolIcon-packageForeground: #3b3b3b;
|
|
1182
|
-
--vscode-symbolIcon-propertyForeground: #3b3b3b;
|
|
1183
|
-
--vscode-symbolIcon-referenceForeground: #3b3b3b;
|
|
1184
|
-
--vscode-symbolIcon-snippetForeground: #3b3b3b;
|
|
1185
|
-
--vscode-symbolIcon-stringForeground: #3b3b3b;
|
|
1186
|
-
--vscode-symbolIcon-structForeground: #3b3b3b;
|
|
1187
|
-
--vscode-symbolIcon-textForeground: #3b3b3b;
|
|
1188
|
-
--vscode-symbolIcon-typeParameterForeground: #3b3b3b;
|
|
1189
|
-
--vscode-symbolIcon-unitForeground: #3b3b3b;
|
|
1190
|
-
--vscode-symbolIcon-variableForeground: #007acc;
|
|
1191
|
-
--vscode-editorHoverWidget-highlightForeground: #0066bf;
|
|
1192
|
-
--vscode-editorOverviewRuler-bracketMatchForeground: #a0a0a0;
|
|
1193
|
-
--vscode-editor-foldBackground: #add6ff4d;
|
|
1194
|
-
--vscode-editorGutter-foldingControlForeground: #3b3b3b;
|
|
1195
|
-
--vscode-editor-linkedEditingBackground: #ff00004d;
|
|
1196
|
-
--vscode-editorSuggestWidget-background: #f8f8f8;
|
|
1197
|
-
--vscode-editorSuggestWidget-border: #c8c8c8;
|
|
1198
|
-
--vscode-editorSuggestWidget-foreground: #3b3b3b;
|
|
1199
|
-
--vscode-editorSuggestWidget-selectedForeground: #000000;
|
|
1200
|
-
--vscode-editorSuggestWidget-selectedBackground: #e8e8e8;
|
|
1201
|
-
--vscode-editorSuggestWidget-highlightForeground: #0066bf;
|
|
1202
|
-
--vscode-editorSuggestWidget-focusHighlightForeground: #0066bf;
|
|
1203
|
-
--vscode-editorSuggestWidgetStatus-foreground: #3b3b3b80;
|
|
1204
|
-
--vscode-editor-wordHighlightBackground: #57575740;
|
|
1205
|
-
--vscode-editor-wordHighlightStrongBackground: #0e639c40;
|
|
1206
|
-
--vscode-editorOverviewRuler-wordHighlightForeground: #a0a0a0cc;
|
|
1207
|
-
--vscode-editorOverviewRuler-wordHighlightStrongForeground: #c0a0c0cc;
|
|
1208
|
-
--vscode-peekViewTitle-background: #f3f3f3;
|
|
1209
|
-
--vscode-peekViewTitleLabel-foreground: #000000;
|
|
1210
|
-
--vscode-peekViewTitleDescription-foreground: #616161;
|
|
1211
|
-
--vscode-peekView-border: #1a85ff;
|
|
1212
|
-
--vscode-peekViewResult-background: #ffffff;
|
|
1213
|
-
--vscode-peekViewResult-lineForeground: #646465;
|
|
1214
|
-
--vscode-peekViewResult-fileForeground: #1e1e1e;
|
|
1215
|
-
--vscode-peekViewResult-selectionBackground: #3399ff33;
|
|
1216
|
-
--vscode-peekViewResult-selectionForeground: #6c6c6c;
|
|
1217
|
-
--vscode-peekViewEditor-background: #f2f8fc;
|
|
1218
|
-
--vscode-peekViewEditorGutter-background: #f2f8fc;
|
|
1219
|
-
--vscode-peekViewResult-matchHighlightBackground: #bb800966;
|
|
1220
|
-
--vscode-peekViewEditor-matchHighlightBackground: #bb800966;
|
|
1221
|
-
--vscode-editorMarkerNavigationError-background: #e51400;
|
|
1222
|
-
--vscode-editorMarkerNavigationError-headerBackground: #e514001a;
|
|
1223
|
-
--vscode-editorMarkerNavigationWarning-background: #bf8803;
|
|
1224
|
-
--vscode-editorMarkerNavigationWarning-headerBackground: #bf88031a;
|
|
1225
|
-
--vscode-editorMarkerNavigationInfo-background: #1a85ff;
|
|
1226
|
-
--vscode-editorMarkerNavigationInfo-headerBackground: #1a85ff1a;
|
|
1227
|
-
--vscode-editorMarkerNavigation-background: #ffffff;
|
|
1228
|
-
--vscode-tab-activeBackground: #ffffff;
|
|
1229
|
-
--vscode-tab-unfocusedActiveBackground: #ffffff;
|
|
1230
|
-
--vscode-tab-inactiveBackground: #f8f8f8;
|
|
1231
|
-
--vscode-tab-unfocusedInactiveBackground: #f8f8f8;
|
|
1232
|
-
--vscode-tab-activeForeground: #3b3b3b;
|
|
1233
|
-
--vscode-tab-inactiveForeground: #868686;
|
|
1234
|
-
--vscode-tab-unfocusedActiveForeground: #3b3b3bb3;
|
|
1235
|
-
--vscode-tab-unfocusedInactiveForeground: #86868680;
|
|
1236
|
-
--vscode-tab-border: #e5e5e5;
|
|
1237
|
-
--vscode-tab-lastPinnedBorder: #d4d4d4;
|
|
1238
|
-
--vscode-tab-activeModifiedBorder: #33aaee;
|
|
1239
|
-
--vscode-tab-inactiveModifiedBorder: #33aaee80;
|
|
1240
|
-
--vscode-tab-unfocusedActiveModifiedBorder: #33aaeeb3;
|
|
1241
|
-
--vscode-tab-unfocusedInactiveModifiedBorder: #33aaee40;
|
|
1242
|
-
--vscode-editorPane-background: #ffffff;
|
|
1243
|
-
--vscode-editorGroupHeader-tabsBackground: #f8f8f8;
|
|
1244
|
-
--vscode-editorGroupHeader-tabsBorder: #e5e5e5;
|
|
1245
|
-
--vscode-editorGroupHeader-noTabsBackground: #ffffff;
|
|
1246
|
-
--vscode-editorGroup-border: #e5e5e5;
|
|
1247
|
-
--vscode-editorGroup-dropBackground: #2677cb2e;
|
|
1248
|
-
--vscode-sideBySideEditor-horizontalBorder: #e5e5e5;
|
|
1249
|
-
--vscode-sideBySideEditor-verticalBorder: #e5e5e5;
|
|
1250
|
-
--vscode-panel-background: #f8f8f8;
|
|
1251
|
-
--vscode-panel-border: #e5e5e5;
|
|
1252
|
-
--vscode-panelTitle-activeForeground: #3b3b3b;
|
|
1253
|
-
--vscode-panelTitle-inactiveForeground: #3b3b3b;
|
|
1254
|
-
--vscode-panelTitle-activeBorder: #005fb8;
|
|
1255
|
-
--vscode-panel-dropBorder: #3b3b3b;
|
|
1256
|
-
--vscode-panelSection-dropBackground: #2677cb2e;
|
|
1257
|
-
--vscode-panelSectionHeader-background: #80808033;
|
|
1258
|
-
--vscode-panelSection-border: #e5e5e5;
|
|
1259
|
-
--vscode-banner-background: #a2a2a2;
|
|
1260
|
-
--vscode-banner-foreground: #000000;
|
|
1261
|
-
--vscode-banner-iconForeground: #1a85ff;
|
|
1262
|
-
--vscode-statusBar-foreground: #3b3b3b;
|
|
1263
|
-
--vscode-statusBar-noFolderForeground: #3b3b3b;
|
|
1264
|
-
--vscode-statusBar-background: #f8f8f8;
|
|
1265
|
-
--vscode-statusBar-noFolderBackground: #f8f8f8;
|
|
1266
|
-
--vscode-statusBar-border: #e5e5e5;
|
|
1267
|
-
--vscode-statusBar-noFolderBorder: #e5e5e5;
|
|
1268
|
-
--vscode-statusBarItem-activeBackground: #ffffff2e;
|
|
1269
|
-
--vscode-statusBarItem-hoverBackground: #1f1f1f11;
|
|
1270
|
-
--vscode-statusBarItem-prominentForeground: #3b3b3b;
|
|
1271
|
-
--vscode-statusBarItem-prominentBackground: #6e768166;
|
|
1272
|
-
--vscode-statusBarItem-prominentHoverBackground: #1f1f1f11;
|
|
1273
|
-
--vscode-statusBarItem-errorBackground: #c72e0f;
|
|
1274
|
-
--vscode-statusBarItem-errorForeground: #ffffff;
|
|
1275
|
-
--vscode-statusBarItem-warningBackground: #725102;
|
|
1276
|
-
--vscode-statusBarItem-warningForeground: #ffffff;
|
|
1277
|
-
--vscode-activityBar-background: #f8f8f8;
|
|
1278
|
-
--vscode-activityBar-foreground: #1f1f1f;
|
|
1279
|
-
--vscode-activityBar-inactiveForeground: #616161;
|
|
1280
|
-
--vscode-activityBar-border: #e5e5e5;
|
|
1281
|
-
--vscode-activityBar-activeBorder: #005fb8;
|
|
1282
|
-
--vscode-activityBar-activeFocusBorder: transparent;
|
|
1283
|
-
--vscode-activityBar-activeBackground: transparent;
|
|
1284
|
-
--vscode-activityBar-dropBorder: #1f1f1f;
|
|
1285
|
-
--vscode-activityBarBadge-background: #005fb8;
|
|
1286
|
-
--vscode-activityBarBadge-foreground: #ffffff;
|
|
1287
|
-
--vscode-statusBarItem-remoteBackground: #005fb8;
|
|
1288
|
-
--vscode-statusBarItem-remoteForeground: #ffffff;
|
|
1289
|
-
--vscode-extensionBadge-remoteBackground: #005fb8;
|
|
1290
|
-
--vscode-extensionBadge-remoteForeground: #ffffff;
|
|
1291
|
-
--vscode-sideBar-background: #f8f8f8;
|
|
1292
|
-
--vscode-sideBar-foreground: #3b3b3b;
|
|
1293
|
-
--vscode-sideBar-border: #e5e5e5;
|
|
1294
|
-
--vscode-sideBarTitle-foreground: #3b3b3b;
|
|
1295
|
-
--vscode-sideBar-dropBackground: #2677cb2e;
|
|
1296
|
-
--vscode-sideBarSectionHeader-background: #f8f8f8;
|
|
1297
|
-
--vscode-sideBarSectionHeader-foreground: #3b3b3b;
|
|
1298
|
-
--vscode-sideBarSectionHeader-border: #e5e5e5;
|
|
1299
|
-
--vscode-titleBar-activeForeground: #1e1e1e;
|
|
1300
|
-
--vscode-titleBar-inactiveForeground: #8b949e;
|
|
1301
|
-
--vscode-activityBar-background: #f8f8f8;
|
|
1302
|
-
--vscode-activityBar-foreground: #1f1f1f;
|
|
1303
|
-
--vscode-activityBar-inactiveForeground: #616161;
|
|
1304
|
-
--vscode-activityBar-border: #e5e5e5;
|
|
1305
|
-
--vscode-activityBar-activeBorder: #005fb8;
|
|
1306
|
-
--vscode-activityBar-activeFocusBorder: transparent;
|
|
1307
|
-
--vscode-activityBar-activeBackground: transparent;
|
|
1308
|
-
--vscode-activityBar-dropBorder: #1f1f1f;
|
|
1309
|
-
--vscode-activityBarBadge-background: #005fb8;
|
|
1310
|
-
--vscode-activityBarBadge-foreground: #ffffff;
|
|
1311
|
-
--vscode-statusBarItem-remoteBackground: #005fb8;
|
|
1312
|
-
--vscode-statusBarItem-remoteForeground: #ffffff;
|
|
1313
|
-
--vscode-extensionBadge-remoteBackground: #005fb8;
|
|
1314
|
-
--vscode-extensionBadge-remoteForeground: #ffffff;
|
|
1315
|
-
--vscode-sideBar-background: #f8f8f8;
|
|
1316
|
-
--vscode-sideBar-foreground: #3b3b3b;
|
|
1317
|
-
--vscode-sideBar-border: #e5e5e5;
|
|
1318
|
-
--vscode-sideBarTitle-foreground: #3b3b3b;
|
|
1319
|
-
--vscode-sideBar-dropBackground: #2677cb2e;
|
|
1320
|
-
--vscode-sideBarSectionHeader-background: #f8f8f8;
|
|
1321
|
-
--vscode-sideBarSectionHeader-foreground: #3b3b3b;
|
|
1322
|
-
--vscode-sideBarSectionHeader-border: #e5e5e5;
|
|
1323
|
-
--vscode-titleBar-activeForeground: #1e1e1e;
|
|
1324
|
-
--vscode-titleBar-inactiveForeground: #8b949e;
|
|
1325
|
-
--vscode-titleBar-activeBackground: #f8f8f8;
|
|
1326
|
-
--vscode-titleBar-inactiveBackground: #f8f8f8;
|
|
1327
|
-
--vscode-menubar-selectionForeground: #1e1e1e;
|
|
1328
|
-
--vscode-menubar-selectionBackground: #b8b8b850;
|
|
1329
|
-
--vscode-notificationCenter-border: #e5e5e5;
|
|
1330
|
-
--vscode-notificationToast-border: #e5e5e5;
|
|
1331
|
-
--vscode-notifications-foreground: #3b3b3b;
|
|
1332
|
-
--vscode-notifications-background: #ffffff;
|
|
1333
|
-
--vscode-notificationLink-foreground: #005fb8;
|
|
1334
|
-
--vscode-notificationCenterHeader-foreground: #3b3b3b;
|
|
1335
|
-
--vscode-notificationCenterHeader-background: #ffffff;
|
|
1336
|
-
--vscode-notifications-border: #e5e5e5;
|
|
1337
|
-
--vscode-notificationsErrorIcon-foreground: #e51400;
|
|
1338
|
-
--vscode-notificationsWarningIcon-foreground: #bf8803;
|
|
1339
|
-
--vscode-notificationsInfoIcon-foreground: #1a85ff;
|
|
1340
|
-
--vscode-editorGutter-commentRangeForeground: #d5d8e9;
|
|
1341
|
-
--vscode-debugToolBar-background: #f3f3f3;
|
|
1342
|
-
--vscode-debugToolBar-border: transparent;
|
|
1343
|
-
--vscode-debugIcon-startForeground: #388a34;
|
|
1344
|
-
--vscode-editor-stackFrameHighlightBackground: #ffff6673;
|
|
1345
|
-
--vscode-editor-focusedStackFrameHighlightBackground: #cee7ce73;
|
|
1346
|
-
--vscode-settings-headerForeground: #1f1f1f;
|
|
1347
|
-
--vscode-settings-modifiedItemIndicator: #bb800966;
|
|
1348
|
-
--vscode-settings-dropdownBackground: #ffffff;
|
|
1349
|
-
--vscode-settings-dropdownForeground: #3b3b3b;
|
|
1350
|
-
--vscode-settings-dropdownBorder: #cecece;
|
|
1351
|
-
--vscode-settings-dropdownListBorder: #c8c8c8;
|
|
1352
|
-
--vscode-settings-checkboxBackground: #f8f8f8;
|
|
1353
|
-
--vscode-settings-checkboxForeground: #3b3b3b;
|
|
1354
|
-
--vscode-settings-checkboxBorder: #cecece;
|
|
1355
|
-
--vscode-settings-textInputBackground: #ffffff;
|
|
1356
|
-
--vscode-settings-textInputForeground: #3b3b3b;
|
|
1357
|
-
--vscode-settings-numberInputBackground: #ffffff;
|
|
1358
|
-
--vscode-settings-numberInputForeground: #3b3b3b;
|
|
1359
|
-
--vscode-settings-focusedRowBackground: #f2f2f299;
|
|
1360
|
-
--vscode-settings-rowHoverBackground: #f2f2f24d;
|
|
1361
|
-
--vscode-settings-focusedRowBorder: #005fb8;
|
|
1362
|
-
--vscode-terminal-background: transparent;
|
|
1363
|
-
--vscode-terminal-foreground: #3b3b3b;
|
|
1364
|
-
--vscode-terminal-selectionBackground: #add6ff;
|
|
1365
|
-
--vscode-terminal-border: #e5e5e5;
|
|
1366
|
-
--vscode-terminal-dropBackground: #2677cb2e;
|
|
1367
|
-
--vscode-testing-iconFailed: #f14c4c;
|
|
1368
|
-
--vscode-testing-iconErrored: #f14c4c;
|
|
1369
|
-
--vscode-testing-iconPassed: #73c991;
|
|
1370
|
-
--vscode-testing-runAction: #73c991;
|
|
1371
|
-
--vscode-testing-iconQueued: #cca700;
|
|
1372
|
-
--vscode-testing-iconUnset: #848484;
|
|
1373
|
-
--vscode-testing-iconSkipped: #848484;
|
|
1374
|
-
--vscode-testing-peekBorder: #e51400;
|
|
1375
|
-
--vscode-testing-peekHeaderBackground: #e514001a;
|
|
1376
|
-
--vscode-testing-message\.error\.decorationForeground: transparent;
|
|
1377
|
-
--vscode-testing-message\.error\.lineBackground: transparent;
|
|
1378
|
-
--vscode-testing-message\.info\.decorationForeground: #3b3b3b80;
|
|
1379
|
-
--vscode-welcomePage-tileBackground: #f3f3f3;
|
|
1380
|
-
--vscode-welcomePage-tileHoverBackground: #dfdfdf;
|
|
1381
|
-
--vscode-welcomePage-tileShadow: transparent;
|
|
1382
|
-
--vscode-welcomePage-progress\.background: #ffffff;
|
|
1383
|
-
--vscode-welcomePage-progress\.foreground: #005fb8;
|
|
1384
|
-
--vscode-statusBar-debuggingBackground: #fd716c;
|
|
1385
|
-
--vscode-statusBar-debuggingForeground: #000000;
|
|
1386
|
-
--vscode-statusBar-debuggingBorder: #e5e5e5;
|
|
1387
|
-
--vscode-debugExceptionWidget-border: #a31515;
|
|
1388
|
-
--vscode-debugExceptionWidget-background: #f1dfde;
|
|
1389
|
-
--vscode-ports-iconRunningProcessForeground: #369432;
|
|
1390
|
-
--vscode-editor-inlineValuesForeground: #00000080;
|
|
1391
|
-
--vscode-editor-inlineValuesBackground: #ffc80033;
|
|
1392
|
-
--vscode-editorGutter-modifiedBackground: #005fb8;
|
|
1393
|
-
--vscode-editorGutter-addedBackground: #2ea043;
|
|
1394
|
-
--vscode-editorGutter-deletedBackground: #f85149;
|
|
1395
|
-
--vscode-minimapGutter-modifiedBackground: #005fb8;
|
|
1396
|
-
--vscode-minimapGutter-addedBackground: #2ea043;
|
|
1397
|
-
--vscode-minimapGutter-deletedBackground: #f85149;
|
|
1398
|
-
--vscode-editorOverviewRuler-modifiedForeground: #005fb899;
|
|
1399
|
-
--vscode-editorOverviewRuler-addedForeground: #2ea04399;
|
|
1400
|
-
--vscode-editorOverviewRuler-deletedForeground: #f8514999;
|
|
1401
|
-
--vscode-debugIcon-breakpointForeground: #e51400;
|
|
1402
|
-
--vscode-debugIcon-breakpointDisabledForeground: #848484;
|
|
1403
|
-
--vscode-debugIcon-breakpointUnverifiedForeground: #848484;
|
|
1404
|
-
--vscode-debugIcon-breakpointCurrentStackframeForeground: #be8700;
|
|
1405
|
-
--vscode-debugIcon-breakpointStackframeForeground: #89d185;
|
|
1406
|
-
--vscode-keybindingTable-headerBackground: #3b3b3b0a;
|
|
1407
|
-
--vscode-keybindingTable-rowsBackground: #3b3b3b0a;
|
|
1408
|
-
--vscode-notebook-cellBorderColor: #e5e5e5;
|
|
1409
|
-
--vscode-notebook-focusedEditorBorder: #005fb8;
|
|
1410
|
-
--vscode-notebookStatusSuccessIcon-foreground: #388a34;
|
|
1411
|
-
--vscode-notebookStatusErrorIcon-foreground: #f85149;
|
|
1412
|
-
--vscode-notebookStatusRunningIcon-foreground: #3b3b3b;
|
|
1413
|
-
--vscode-notebook-cellToolbarSeparator: #80808059;
|
|
1414
|
-
--vscode-notebook-selectedCellBackground: #c8ddf150;
|
|
1415
|
-
--vscode-notebook-selectedCellBorder: #e5e5e5;
|
|
1416
|
-
--vscode-notebook-focusedCellBorder: #005fb8;
|
|
1417
|
-
--vscode-notebook-inactiveFocusedCellBorder: #e5e5e5;
|
|
1418
|
-
--vscode-notebook-cellStatusBarItemHoverBackground: #00000014;
|
|
1419
|
-
--vscode-notebook-cellInsertionIndicator: #005fb8;
|
|
1420
|
-
--vscode-notebookScrollbarSlider-background: #64646466;
|
|
1421
|
-
--vscode-notebookScrollbarSlider-hoverBackground: #646464b3;
|
|
1422
|
-
--vscode-notebookScrollbarSlider-activeBackground: #00000099;
|
|
1423
|
-
--vscode-notebook-symbolHighlightBackground: #fdff0033;
|
|
1424
|
-
--vscode-notebook-cellEditorBackground: #f8f8f8;
|
|
1425
|
-
--vscode-scm-providerBorder: transparent;
|
|
1426
|
-
--vscode-debugTokenExpression-name: #9b46b0;
|
|
1427
|
-
--vscode-debugTokenExpression-value: #6c6c6ccc;
|
|
1428
|
-
--vscode-debugTokenExpression-string: #a31515;
|
|
1429
|
-
--vscode-debugTokenExpression-boolean: #0000ff;
|
|
1430
|
-
--vscode-debugTokenExpression-number: #098658;
|
|
1431
|
-
--vscode-debugTokenExpression-error: #e51400;
|
|
1432
|
-
--vscode-debugView-exceptionLabelForeground: #ffffff;
|
|
1433
|
-
--vscode-debugView-exceptionLabelBackground: #a31515;
|
|
1434
|
-
--vscode-debugView-stateLabelForeground: #3b3b3b;
|
|
1435
|
-
--vscode-debugView-stateLabelBackground: #88888844;
|
|
1436
|
-
--vscode-debugView-valueChangedHighlight: #569cd6;
|
|
1437
|
-
--vscode-debugConsole-infoForeground: #1a85ff;
|
|
1438
|
-
--vscode-debugConsole-warningForeground: #bf8803;
|
|
1439
|
-
--vscode-debugConsole-errorForeground: #f85149;
|
|
1440
|
-
--vscode-debugConsole-sourceForeground: #3b3b3b;
|
|
1441
|
-
--vscode-debugConsoleInputIcon-foreground: #3b3b3b;
|
|
1442
|
-
--vscode-debugIcon-pauseForeground: #007acc;
|
|
1443
|
-
--vscode-debugIcon-stopForeground: #a1260d;
|
|
1444
|
-
--vscode-debugIcon-disconnectForeground: #a1260d;
|
|
1445
|
-
--vscode-debugIcon-restartForeground: #388a34;
|
|
1446
|
-
--vscode-debugIcon-stepOverForeground: #007acc;
|
|
1447
|
-
--vscode-debugIcon-stepIntoForeground: #007acc;
|
|
1448
|
-
--vscode-debugIcon-stepOutForeground: #007acc;
|
|
1449
|
-
--vscode-debugIcon-continueForeground: #007acc;
|
|
1450
|
-
--vscode-debugIcon-stepBackForeground: #007acc;
|
|
1451
|
-
--vscode-extensionButton-prominentBackground: #005fb8;
|
|
1452
|
-
--vscode-extensionButton-prominentForeground: #ffffff;
|
|
1453
|
-
--vscode-extensionButton-prominentHoverBackground: #0258a8;
|
|
1454
|
-
--vscode-extensionIcon-starForeground: #df6100;
|
|
1455
|
-
--vscode-extensionIcon-verifiedForeground: #005fb8;
|
|
1456
|
-
--vscode-extensionIcon-preReleaseForeground: #1d9271;
|
|
1457
|
-
--vscode-terminal-ansiBlack: #000000;
|
|
1458
|
-
--vscode-terminal-ansiRed: #cd3131;
|
|
1459
|
-
--vscode-terminal-ansiGreen: #107c10;
|
|
1460
|
-
--vscode-terminal-ansiYellow: #949800;
|
|
1461
|
-
--vscode-terminal-ansiBlue: #0451a5;
|
|
1462
|
-
--vscode-terminal-ansiMagenta: #bc05bc;
|
|
1463
|
-
--vscode-terminal-ansiCyan: #0598bc;
|
|
1464
|
-
--vscode-terminal-ansiWhite: #555555;
|
|
1465
|
-
--vscode-terminal-ansiBrightBlack: #666666;
|
|
1466
|
-
--vscode-terminal-ansiBrightRed: #cd3131;
|
|
1467
|
-
--vscode-terminal-ansiBrightGreen: #14ce14;
|
|
1468
|
-
--vscode-terminal-ansiBrightYellow: #b5ba00;
|
|
1469
|
-
--vscode-terminal-ansiBrightBlue: #0451a5;
|
|
1470
|
-
--vscode-terminal-ansiBrightMagenta: #bc05bc;
|
|
1471
|
-
--vscode-terminal-ansiBrightCyan: #0598bc;
|
|
1472
|
-
--vscode-terminal-ansiBrightWhite: #a5a5a5;
|
|
1473
|
-
--vscode-interactive-activeCodeBorder: #007acc;
|
|
1474
|
-
--vscode-interactive-inactiveCodeBorder: #e4e6f1;
|
|
1475
|
-
--vscode-gitDecoration-addedResourceForeground: #587c0c;
|
|
1476
|
-
--vscode-gitDecoration-modifiedResourceForeground: #895503;
|
|
1477
|
-
--vscode-gitDecoration-deletedResourceForeground: #ad0707;
|
|
1478
|
-
--vscode-gitDecoration-renamedResourceForeground: #007100;
|
|
1479
|
-
--vscode-gitDecoration-untrackedResourceForeground: #007100;
|
|
1480
|
-
--vscode-gitDecoration-ignoredResourceForeground: #8e8e90;
|
|
1481
|
-
--vscode-gitDecoration-stageModifiedResourceForeground: #895503;
|
|
1482
|
-
--vscode-gitDecoration-stageDeletedResourceForeground: #ad0707;
|
|
1483
|
-
--vscode-gitDecoration-conflictingResourceForeground: #ad0707;
|
|
1484
|
-
--vscode-gitDecoration-submoduleResourceForeground: #1258a7;
|
|
1485
|
-
--vscode-testExplorer-errorDecorationBackground: transparent;
|
|
1486
|
-
--vscode-widget-border: #e5e5e5;
|
|
1487
|
-
--vscode-activityBarBadge-background: #005fb8;
|
|
1488
|
-
}
|
|
1489
|
-
`;var id=Object.defineProperty,sd=Object.getOwnPropertyDescriptor,Cn=e=>{throw TypeError(e)},le=(e,t,r,s)=>{for(var l=s>1?void 0:s?sd(t,r):t,_=e.length-1,m;_>=0;_--)(m=e[_])&&(l=(s?m(t,r,l):m(l))||l);return s&&l&&id(t,r,l),l},od=(e,t,r)=>t.has(e)||Cn("Cannot "+r),nd=(e,t,r)=>t.has(e)?Cn("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),te=(e,t,r)=>(od(e,t,"access private method"),r),ee,Or,wn,Pi,Ui,En,mr,Ye,fi,kn,Bn,gi,In,vi,Rn,An,xn,Tn,Ln,Dn,On,Nn,Fn=(e=>(e.OpenLink="Open",e.CopyToClipboard="Copy to clipboard",e.Cancel="Cancel",e))(Fn||{});const bt=(...e)=>`--vscode-${e.join("-")}`,_t=e=>bt("terminal",e),ad=e=>`ansi${e.charAt(0).toUpperCase()+e.slice(1)}`,cd=["terminal:","theme:",Q.platformApiRequest,Q.platformApiResponse,Q.onOptionsMessage,Q.optionsMessage,Q.onCopyTextToClipboard,Q.onProgramClose,Q.featuresResponse,Q.featuresUpdateAction],ld=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],dd="console-view";let se=class extends we{constructor(){super(...arguments),nd(this,ee),this.copyText="Copy",this.disposables=[],this.containerSize={height:0,width:0},this.rows=10,this.isShareReady=!1,this.buttons=!0,this.takeFocus=!0,this.theme="dark",this.isLoading=!1,this.isCreatingEscalation=!1,this.isUpdatedReady=!1,this.isAutoSaveEnabled=!1,this.isPlatformAuthEnabled=!1,this.isDaggerOutput=!1}applyThemeStyles(){if(this.shadowRoot){if(this.themeStyleSheet){const e=this.shadowRoot.adoptedStyleSheets.indexOf(this.themeStyleSheet);e!==-1&&(this.shadowRoot.adoptedStyleSheets=this.shadowRoot.adoptedStyleSheets.filter((t,r)=>r!==e)),this.themeStyleSheet=void 0}this.theme==="dark"?(this.themeStyleSheet=new CSSStyleSheet,this.themeStyleSheet.replaceSync(td.cssText),this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.themeStyleSheet]):this.theme==="light"&&(this.themeStyleSheet=new CSSStyleSheet,this.themeStyleSheet.replaceSync(rd.cssText),this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.themeStyleSheet])}}connectedCallback(){var e;if(super.connectedCallback(),this.applyThemeStyles(),!this.id)throw new Error("No id provided to terminal!");this.rows=this.initialRows??this.rows;const{rows:t,cursorBlink:r,fontSize:s,cursorStyle:l,cursorWidth:_,fontFamily:m,smoothScrollDuration:i,scrollback:a}=this;this.terminal=new Ac.Terminal({rows:t,fontSize:s,fontFamily:m,scrollback:a,cursorWidth:_,cursorBlink:r,cursorStyle:l,smoothScrollDuration:i,disableStdin:!1,convertEol:!0,allowProposedApi:!0,drawBoldTextInBrightColors:!1}),this.initialContent&&((e=this.terminal)==null||e.write(this.initialContent)),this.fitAddon=new Pl,this.fitAddon.activate(this.terminal),this.serializer=new Cc.SerializeAddon,this.terminal.loadAddon(this.serializer),this.terminal.loadAddon(new kc.Unicode11Addon),this.terminal.loadAddon(new Ic.WebLinksAddon(te(this,ee,Ln).bind(this))),this.terminal.attachCustomKeyEventHandler(f=>{var u;if(f.shiftKey&&f.ctrlKey&&f.code==="KeyC"){const v=(u=this==null?void 0:this.terminal)==null?void 0:u.getSelection();if(v)return navigator.clipboard.writeText(v),!1}return!0}),this.terminal.unicode.activeVersion="11",this.terminal.options.drawBoldTextInBrightColors;const h=Ie();this.disposables.push(Ul(h,async f=>{var u;if(cd.some(v=>f.type.startsWith(v)))switch(f.type){case Q.activeThemeChanged:te(this,ee,mr).call(this);break;case Q.terminalStdout:case Q.terminalStderr:{const{"runme.dev/id":v,data:y}=f.output;if(v!==this.id)return;this.isShareReady=!1,this.terminal.write(y),this.requestUpdate()}break;case Q.platformApiResponse:{if(f.output.id!==this.id)return;if(this.isLoading=!1,f.output.hasErrors)return ye(h,Q.errorMessage,f.output.data);if(f.output.data.hasOwnProperty("displayShare")&&f.output.data.displayShare===!1)return;const v=((u=f.output.data)==null?void 0:u.data)||{};if(v.createExtensionCellOutput||v.createCellExecution){const y=v.createCellExecution||v.createExtensionCellOutput||{},{exitCode:E,id:p,htmlUrl:o,isSlackReady:c}=y;return this.platformId=p,this.shareUrl=o||"",this.exitCode=E,this.isSlackReady=!!c,this.isShareReady=!0,ye(h,Q.tangleEvent,{webviewId:bn.RunmeCloud,data:{cellId:p}})}if(v.updateCellOutput){const{updateCellOutput:{exitCode:y,isSlackReady:E}}=v;this.isUpdatedReady=!0,this.exitCode=y,this.isSlackReady=!!E,te(this,ee,In).call(this)}v.createEscalation&&(this.escalationUrl=v.createEscalation.escalationUrl)}break;case Q.onOptionsMessage:{if(f.output.id!==this.id)return;const v=f.output.option;switch(this.isLoading=!1,v){case"Open":return ye(h,Q.openExternalLink,{link:this.shareUrl,telemetryEvent:"app.openLink"});case"Copy to clipboard":return ye(h,Q.copyTextToClipboard,{id:this.id,text:this.shareUrl})}}break;case Q.onCopyTextToClipboard:return f.output.id!==this.id?void 0:ye(h,Q.infoMessage,"Link copied!");case Q.onProgramClose:{const{"runme.dev/id":v,code:y}=f.output;if(v!==this.id)return;this.exitCode=y;return}}}),this.terminal.onData(f=>ye(h,Q.terminalStdin,{"runme.dev/id":this.id,input:f}))),ye(h,Q.featuresRequest,{})}disconnectedCallback(){super.disconnectedCallback(),this.dispose()}updated(e){super.updated(e),e.has("theme")&&(this.applyThemeStyles(),te(this,ee,mr).call(this))}firstUpdated(e){var t;super.firstUpdated(e);const r=te(this,ee,Pi).call(this);this.takeFocus&&window.addEventListener("focus",()=>{te(this,ee,gi).call(this)}),window.addEventListener("click",()=>{te(this,ee,gi).call(this,!1)}),this.terminal.open(r),this.takeFocus&&this.terminal.focus(),te(this,ee,Or).call(this),te(this,ee,En).call(this),te(this,ee,mr).call(this);const s=te(this,ee,wn).call(this),l=new ve(m=>{window.addEventListener("resize",()=>m.next(te(this,ee,fi).call(this,!0))),r.addEventListener("mouseup",()=>m.next(te(this,ee,fi).call(this,!1)))}).pipe(pn());te(this,ee,kn).call(this,l),te(this,ee,Bn).call(this,l),r.appendChild(s);const _=Ie();_.postMessage&&ye(_,Q.terminalOpen,{"runme.dev/id":this.id,terminalDimensions:Mn((t=this.fitAddon)==null?void 0:t.proposeDimensions())}),this.lastLine&&this.terminal.scrollToLine(this.lastLine)}render(){const e=K`
|
|
1490
|
-
<close-cell-button
|
|
1491
|
-
@closed="${()=>Vl({id:this.id,outputType:mn.terminal})}"
|
|
1492
|
-
></close-cell-button>
|
|
1493
|
-
<div class="button-group">
|
|
1494
|
-
<copy-button
|
|
1495
|
-
copyText="${this.copyText}"
|
|
1496
|
-
@onCopy="${async()=>te(this,ee,Nn).call(this)}"
|
|
1497
|
-
></copy-button>
|
|
1498
|
-
${ue(!0,()=>K`<gist-cell
|
|
1499
|
-
@onGist="${te(this,ee,xn)}"
|
|
1500
|
-
></gist-cell>`,()=>{})}
|
|
1501
|
-
${ue(this.shouldRenderSaveButton(),()=>K`<save-button
|
|
1502
|
-
?loading=${this.isLoading}
|
|
1503
|
-
?signedIn=${!1}
|
|
1504
|
-
@onClick="${te(this,ee,vi)}"
|
|
1505
|
-
>
|
|
1506
|
-
</save-button>`,()=>{})}
|
|
1507
|
-
${ue(this.shouldRenderShareButton(),()=>K`<share-button
|
|
1508
|
-
?loading=${this.isLoading}
|
|
1509
|
-
@onClick="${te(this,ee,vi)}"
|
|
1510
|
-
>
|
|
1511
|
-
</share-button>`,()=>{})}
|
|
1512
|
-
${ue(!1,()=>K`<action-button
|
|
1513
|
-
?loading=${this.isCreatingEscalation}
|
|
1514
|
-
?saveIcon="${!0}"
|
|
1515
|
-
text="Escalate"
|
|
1516
|
-
@onClick="${te(this,ee,Rn)}"
|
|
1517
|
-
@onClickDisabled=${te(this,ee,On)}
|
|
1518
|
-
>
|
|
1519
|
-
</action-button>`,()=>{})}
|
|
1520
|
-
${ue(!1,()=>K`<action-button
|
|
1521
|
-
?saveIcon="${!0}"
|
|
1522
|
-
text="Open Escalation"
|
|
1523
|
-
@onClick="${te(this,ee,An)}"
|
|
1524
|
-
>
|
|
1525
|
-
</action-button>`,()=>{})}
|
|
1526
|
-
${ue(this.platformId&&!this.isLoading,()=>K`<open-cell
|
|
1527
|
-
?disabled=${!this.isPlatformAuthEnabled}
|
|
1528
|
-
@onOpen="${te(this,ee,Dn)}"
|
|
1529
|
-
></open-cell>`,()=>{})}
|
|
1530
|
-
</div>
|
|
1531
|
-
`;return K`<section>
|
|
1532
|
-
<div id="terminal"></div>
|
|
1533
|
-
${ue(this.buttons,()=>e)}
|
|
1534
|
-
</section>`}dispose(){this.disposables.forEach(({dispose:e})=>e())}shouldRenderSaveButton(){return!1}shouldRenderShareButton(){return!1}};ee=new WeakSet;Or=function(e){var t;return e!==void 0&&(this.rows=e),(t=this.fitAddon)==null?void 0:t.fit(this.rows)};wn=function(){const e=document.createElement("div");e.setAttribute("class","xterm-drag-handle");let t;const r=_=>{var m;t={initialClientY:_.clientY,initialRows:this.rows},_.preventDefault(),(m=this.terminal)==null||m.focus()},s=()=>{t!==void 0&&(t=void 0)},l=_=>{var m;if(t===void 0||!this.fitAddon)return;const i=(_.clientY-t.initialClientY)/this.fitAddon.getCellSize().height,a=Math.round(t.initialRows+i);a!==this.rows&&(te(this,ee,Or).call(this,a),(m=this.terminal)==null||m.focus())};return e.addEventListener("mousedown",r),window.addEventListener("mouseup",s),window.addEventListener("mousemove",l),this.disposables.push({dispose:()=>{e.removeEventListener("mousedown",r),window.removeEventListener("mouseup",s),window.removeEventListener("mousemove",l)}}),e};Pi=function(){var e;return(e=this.shadowRoot)==null?void 0:e.querySelector("#terminal")};Ui=function(){const e=te(this,ee,Pi).call(this);if(!e)return;const{width:t,height:r}=e.getBoundingClientRect();return{width:t,height:r}};En=function(){const e=te(this,ee,Ui).call(this);e&&(this.containerSize=e)};mr=function(){const e=te(this,ee,Ye).call(this,_t("foreground")),t={foreground:e,cursor:te(this,ee,Ye).call(this,bt("terminalCursor","foreground"))||e,cursorAccent:te(this,ee,Ye).call(this,bt("terminalCursor","background")),selectionForeground:te(this,ee,Ye).call(this,_t("selectionForeground")),selectionBackground:te(this,ee,Ye).call(this,_t("selectionBackground")),selectionInactiveBackground:te(this,ee,Ye).call(this,_t("inactiveSelectionBackground")),...Object.fromEntries(ld.map(r=>[r,te(this,ee,Ye).call(this,_t(ad(r)))]))};this.terminal.options.theme=t};Ye=function(e){var t;const r=(t=this.shadowRoot)==null?void 0:t.querySelector("#terminal");return getComputedStyle(r).getPropertyValue(e)??void 0};fi=function(e){if(!this.fitAddon)return;const t=te(this,ee,Ui).call(this);if(!t||e&&Math.abs(this.containerSize.width-t.width)<=Number.EPSILON&&Math.abs(this.containerSize.height-t.height)<=Number.EPSILON)return;this.containerSize=t;const r=te(this,ee,Or).call(this);if(r)return Mn(r)};kn=async function(e){const t=e.pipe(Me(r=>!!r),vn(),gn(100)).subscribe(async r=>{const s=Ie();s.postMessage&&await ye(s,Q.terminalResize,{"runme.dev/id":this.id,terminalDimensions:r})});this.disposables.push({dispose:()=>t.unsubscribe()})};Bn=async function(e){const t=e.pipe(Re(r=>r==null?void 0:r.rows),Me(r=>!!r),vn(),gn(100)).subscribe(async r=>{const s=Ie();s.postMessage&&s.postMessage({type:Q.mutateAnnotations,output:{annotations:{"runme.dev/id":this.id,terminalRows:r}}})});this.disposables.push({dispose:()=>t.unsubscribe()})};gi=async function(e=!0){var t;e&&((t=this.terminal)==null||t.focus());const r=Ie();r.postMessage&&await ye(r,Q.terminalFocus,{"runme.dev/id":this.id})};In=async function(){const e=Ie();if(!(!e.postMessage||!this.shareUrl))return ye(e,Q.optionsMessage,{title:'Please share link with caution. Anyone with the link has access. Click "Open" to toggle visibility.',options:Object.values(Fn),id:this.id,telemetryEvent:"app.share"})};vi=async function(){return te(this,ee,Tn).call(this,!0)};Rn=async function(){this.isCreatingEscalation=!0};An=async function(){const e=Ie();if(this.escalationUrl)return ye(e,Q.openLink,this.escalationUrl)};xn=function(){const e=Ie();if(e.postMessage)return ye(e,Q.gistCell,{cellId:this.id,telemetryEvent:"app.cellGist"})};Tn=async function(e){Ie().postMessage};Ln=function(e,t){ye(Ie(),Q.openLink,t)};Dn=function(){ye(Ie(),Q.openLink,this.shareUrl)};On=function(){ye(Ie(),Q.errorMessage,`There is no Slack integration configured yet.
|
|
1535
|
-
Open Dashboard to configure it`)};Nn=function(){var e;const t=Ie();if(!t.postMessage)return;const r=hd(((e=this.serializer)==null?void 0:e.serialize({excludeModes:!0,excludeAltBuffer:!0}))??"");return navigator.clipboard.writeText(r).then(()=>{this.copyText="Copied!",this.requestUpdate()}).catch(s=>ye(t,Q.infoMessage,`Failed to copy to clipboard: ${s.message}!`))};se.styles=Ne`
|
|
1536
|
-
.xterm {
|
|
1537
|
-
cursor: text;
|
|
1538
|
-
position: relative;
|
|
1539
|
-
padding: 10px;
|
|
1540
|
-
user-select: none;
|
|
1541
|
-
-ms-user-select: none;
|
|
1542
|
-
-webkit-user-select: none;
|
|
1543
|
-
}
|
|
1544
|
-
|
|
1545
|
-
.xterm.focus,
|
|
1546
|
-
.xterm:focus {
|
|
1547
|
-
border: solid 1px var(--vscode-focusBorder);
|
|
1548
|
-
}
|
|
1549
|
-
|
|
1550
|
-
.xterm .xterm-helpers {
|
|
1551
|
-
position: absolute;
|
|
1552
|
-
top: 0;
|
|
1553
|
-
/**
|
|
1554
|
-
* The z-index of the helpers must be higher than the canvases in order for
|
|
1555
|
-
* IMEs to appear on top.
|
|
1556
|
-
*/
|
|
1557
|
-
z-index: 5;
|
|
1558
|
-
}
|
|
1559
|
-
|
|
1560
|
-
.xterm .xterm-helper-textarea {
|
|
1561
|
-
padding: 0;
|
|
1562
|
-
border: 0;
|
|
1563
|
-
margin: 0;
|
|
1564
|
-
/* Move textarea out of the screen to the far left, so that the cursor is not visible */
|
|
1565
|
-
position: absolute;
|
|
1566
|
-
opacity: 0;
|
|
1567
|
-
left: -9999em;
|
|
1568
|
-
top: 0;
|
|
1569
|
-
width: 0;
|
|
1570
|
-
height: 0;
|
|
1571
|
-
z-index: -5;
|
|
1572
|
-
/** Prevent wrapping so the IME appears against the textarea at the correct position */
|
|
1573
|
-
white-space: nowrap;
|
|
1574
|
-
overflow: hidden;
|
|
1575
|
-
resize: none;
|
|
1576
|
-
}
|
|
1577
|
-
|
|
1578
|
-
.xterm .composition-view {
|
|
1579
|
-
color: #fff;
|
|
1580
|
-
display: none;
|
|
1581
|
-
position: absolute;
|
|
1582
|
-
white-space: nowrap;
|
|
1583
|
-
z-index: 1;
|
|
1584
|
-
}
|
|
1585
|
-
|
|
1586
|
-
.xterm .composition-view.active {
|
|
1587
|
-
display: block;
|
|
1588
|
-
}
|
|
1589
|
-
|
|
1590
|
-
.xterm .xterm-viewport {
|
|
1591
|
-
background-color: var(${Nt(_t("background"))}) !important;
|
|
1592
|
-
border: solid 1px var(--vscode-terminal-border);
|
|
1593
|
-
/* On OS X this is required in order for the scroll bar to appear fully opaque */
|
|
1594
|
-
overflow-y: scroll;
|
|
1595
|
-
cursor: default;
|
|
1596
|
-
position: absolute;
|
|
1597
|
-
right: 0;
|
|
1598
|
-
left: 0;
|
|
1599
|
-
top: 0;
|
|
1600
|
-
bottom: 0;
|
|
1601
|
-
}
|
|
1602
|
-
|
|
1603
|
-
.xterm .xterm-screen {
|
|
1604
|
-
position: relative;
|
|
1605
|
-
}
|
|
1606
|
-
|
|
1607
|
-
.xterm .xterm-screen canvas {
|
|
1608
|
-
position: absolute;
|
|
1609
|
-
left: 0;
|
|
1610
|
-
top: 0;
|
|
1611
|
-
}
|
|
1612
|
-
|
|
1613
|
-
.xterm-viewport::-webkit-scrollbar {
|
|
1614
|
-
width: 10px;
|
|
1615
|
-
}
|
|
1616
|
-
|
|
1617
|
-
.xterm-viewport::-webkit-scrollbar-thumb {
|
|
1618
|
-
background-color: rgba(0, 0, 0, 0);
|
|
1619
|
-
min-height: 20px;
|
|
1620
|
-
}
|
|
1621
|
-
|
|
1622
|
-
.xterm:hover .xterm-viewport::-webkit-scrollbar-thumb {
|
|
1623
|
-
background-color: var(
|
|
1624
|
-
${Nt(bt("scrollbarSlider","background"))}
|
|
1625
|
-
);
|
|
1626
|
-
}
|
|
1627
|
-
|
|
1628
|
-
.xterm:hover .xterm-viewport::-webkit-scrollbar-thumb:hover {
|
|
1629
|
-
background-color: var(
|
|
1630
|
-
${Nt(bt("scrollbarSlider","hoverBackground"))}
|
|
1631
|
-
);
|
|
1632
|
-
}
|
|
1633
|
-
|
|
1634
|
-
.xterm:hover .xterm-viewport::-webkit-scrollbar-thumb:active {
|
|
1635
|
-
background-color: var(
|
|
1636
|
-
${Nt(bt("scrollbarSlider","activeBackground"))}
|
|
1637
|
-
);
|
|
1638
|
-
}
|
|
1639
|
-
|
|
1640
|
-
.xterm .xterm-scroll-area {
|
|
1641
|
-
visibility: hidden;
|
|
1642
|
-
}
|
|
1643
|
-
|
|
1644
|
-
.xterm-char-measure-element {
|
|
1645
|
-
display: inline-block;
|
|
1646
|
-
visibility: hidden;
|
|
1647
|
-
position: absolute;
|
|
1648
|
-
top: 0;
|
|
1649
|
-
left: -9999em;
|
|
1650
|
-
line-height: normal;
|
|
1651
|
-
}
|
|
1652
|
-
|
|
1653
|
-
.xterm.enable-mouse-events {
|
|
1654
|
-
/* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */
|
|
1655
|
-
cursor: default;
|
|
1656
|
-
}
|
|
1657
|
-
|
|
1658
|
-
.xterm.xterm-cursor-pointer,
|
|
1659
|
-
.xterm .xterm-cursor-pointer {
|
|
1660
|
-
cursor: pointer;
|
|
1661
|
-
}
|
|
1662
|
-
|
|
1663
|
-
.xterm.column-select.focus {
|
|
1664
|
-
/* Column selection mode */
|
|
1665
|
-
cursor: crosshair;
|
|
1666
|
-
}
|
|
1667
|
-
|
|
1668
|
-
.xterm .xterm-accessibility,
|
|
1669
|
-
.xterm .xterm-message {
|
|
1670
|
-
position: absolute;
|
|
1671
|
-
left: 0;
|
|
1672
|
-
top: 0;
|
|
1673
|
-
bottom: 0;
|
|
1674
|
-
z-index: 10;
|
|
1675
|
-
color: transparent;
|
|
1676
|
-
}
|
|
1677
|
-
|
|
1678
|
-
.xterm .live-region {
|
|
1679
|
-
position: absolute;
|
|
1680
|
-
left: -9999px;
|
|
1681
|
-
width: 1px;
|
|
1682
|
-
height: 1px;
|
|
1683
|
-
overflow: hidden;
|
|
1684
|
-
}
|
|
1685
|
-
|
|
1686
|
-
.xterm-dim {
|
|
1687
|
-
opacity: 0.5;
|
|
1688
|
-
}
|
|
1689
|
-
|
|
1690
|
-
.xterm-underline-1 {
|
|
1691
|
-
text-decoration: underline;
|
|
1692
|
-
}
|
|
1693
|
-
.xterm-underline-2 {
|
|
1694
|
-
text-decoration: double underline;
|
|
1695
|
-
}
|
|
1696
|
-
.xterm-underline-3 {
|
|
1697
|
-
text-decoration: wavy underline;
|
|
1698
|
-
}
|
|
1699
|
-
.xterm-underline-4 {
|
|
1700
|
-
text-decoration: dotted underline;
|
|
1701
|
-
}
|
|
1702
|
-
.xterm-underline-5 {
|
|
1703
|
-
text-decoration: dashed underline;
|
|
1704
|
-
}
|
|
1705
|
-
|
|
1706
|
-
.xterm-strikethrough {
|
|
1707
|
-
text-decoration: line-through;
|
|
1708
|
-
}
|
|
1709
|
-
|
|
1710
|
-
.xterm-screen .xterm-decoration-container .xterm-decoration {
|
|
1711
|
-
z-index: 6;
|
|
1712
|
-
position: absolute;
|
|
1713
|
-
}
|
|
1714
|
-
|
|
1715
|
-
.xterm-decoration-overview-ruler {
|
|
1716
|
-
z-index: 7;
|
|
1717
|
-
position: absolute;
|
|
1718
|
-
top: 0;
|
|
1719
|
-
right: 0;
|
|
1720
|
-
pointer-events: none;
|
|
1721
|
-
}
|
|
1722
|
-
|
|
1723
|
-
.xterm-decoration-top {
|
|
1724
|
-
z-index: 2;
|
|
1725
|
-
position: relative;
|
|
1726
|
-
}
|
|
1727
|
-
|
|
1728
|
-
vscode-button {
|
|
1729
|
-
color: var(--vscode-button-foreground);
|
|
1730
|
-
background-color: var(--vscode-button-background);
|
|
1731
|
-
transform: scale(0.9);
|
|
1732
|
-
}
|
|
1733
|
-
vscode-button:hover {
|
|
1734
|
-
background: var(--vscode-button-hoverBackground);
|
|
1735
|
-
}
|
|
1736
|
-
vscode-button:focus {
|
|
1737
|
-
outline: #007fd4 1px solid;
|
|
1738
|
-
}
|
|
1739
|
-
.icon {
|
|
1740
|
-
width: 13px;
|
|
1741
|
-
margin: 0 5px 0 -5px;
|
|
1742
|
-
padding: 0;
|
|
1743
|
-
}
|
|
1744
|
-
|
|
1745
|
-
.button-group {
|
|
1746
|
-
display: flex;
|
|
1747
|
-
flex-direction: row;
|
|
1748
|
-
justify-content: end;
|
|
1749
|
-
}
|
|
1750
|
-
|
|
1751
|
-
section {
|
|
1752
|
-
display: flex;
|
|
1753
|
-
flex-direction: column;
|
|
1754
|
-
gap: 5px;
|
|
1755
|
-
position: relative;
|
|
1756
|
-
}
|
|
1757
|
-
|
|
1758
|
-
.xterm-drag-handle {
|
|
1759
|
-
width: 100%;
|
|
1760
|
-
position: absolute;
|
|
1761
|
-
bottom: -5px;
|
|
1762
|
-
height: 10px;
|
|
1763
|
-
cursor: row-resize;
|
|
1764
|
-
}
|
|
1765
|
-
|
|
1766
|
-
#terminal {
|
|
1767
|
-
position: relative;
|
|
1768
|
-
}
|
|
1769
|
-
|
|
1770
|
-
/** xf styles */
|
|
1771
|
-
.xterm-bg-257,
|
|
1772
|
-
.xterm-bg-7 {
|
|
1773
|
-
background-color: var(--vscode-editor-selectionBackground) !important;
|
|
1774
|
-
}
|
|
1775
|
-
`;le([Y({type:String})],se.prototype,"id",2);le([Y({type:Boolean,converter:e=>e!=="false"})],se.prototype,"buttons",2);le([Y({type:Boolean,converter:e=>e!=="false"})],se.prototype,"takeFocus",2);le([Y({type:String})],se.prototype,"theme",2);le([Y({type:String})],se.prototype,"fontFamily",2);le([Y({type:Number})],se.prototype,"fontSize",2);le([Y({type:String})],se.prototype,"cursorStyle",2);le([Y({type:Boolean})],se.prototype,"cursorBlink",2);le([Y({type:Number})],se.prototype,"cursorWidth",2);le([Y({type:Number})],se.prototype,"smoothScrollDuration",2);le([Y({type:Number})],se.prototype,"scrollback",2);le([Y({type:String})],se.prototype,"initialContent",2);le([Y({type:Number})],se.prototype,"initialRows",2);le([Y({type:Number})],se.prototype,"lastLine",2);le([Y({type:Boolean})],se.prototype,"isLoading",2);le([Y({type:Boolean})],se.prototype,"isCreatingEscalation",2);le([Y()],se.prototype,"shareUrl",2);le([Y()],se.prototype,"escalationUrl",2);le([Y({type:Boolean})],se.prototype,"isUpdatedReady",2);le([Y({type:Boolean})],se.prototype,"isAutoSaveEnabled",2);le([Y({type:Boolean})],se.prototype,"isPlatformAuthEnabled",2);le([Y({type:Boolean})],se.prototype,"isDaggerOutput",2);se=le([xe(dd)],se);function Mn(e){if(!e)return;const{rows:t,cols:r}=e;return{columns:r,rows:t}}function hd(e){return e.replace(/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,"")}function Yt(e){let t=!1;const r=[];for(let s=0;s<e.length;s++){let l=e.charAt(s);switch(l){case"_":t=!0;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r.push(l),t=!1;break;default:t&&(t=!1,l=l.toUpperCase()),r.push(l);break}}return r.join("")}const ud=new Set(["constructor","toString","toJSON","valueOf"]);function Xt(e){return ud.has(e)?e+"$":e}function fd(){let e=0,t=0;for(let s=0;s<28;s+=7){let l=this.buf[this.pos++];if(e|=(l&127)<<s,(l&128)==0)return this.assertBounds(),[e,t]}let r=this.buf[this.pos++];if(e|=(r&15)<<28,t=(r&112)>>4,(r&128)==0)return this.assertBounds(),[e,t];for(let s=3;s<=31;s+=7){let l=this.buf[this.pos++];if(t|=(l&127)<<s,(l&128)==0)return this.assertBounds(),[e,t]}throw new Error("invalid varint")}function qr(e,t,r){for(let _=0;_<28;_=_+7){const m=e>>>_,i=!(!(m>>>7)&&t==0),a=(i?m|128:m)&255;if(r.push(a),!i)return}const s=e>>>28&15|(t&7)<<4,l=t>>3!=0;if(r.push((l?s|128:s)&255),!!l){for(let _=3;_<31;_=_+7){const m=t>>>_,i=!!(m>>>7),a=(i?m|128:m)&255;if(r.push(a),!i)return}r.push(t>>>31&1)}}const br=4294967296;function $s(e){const t=e[0]==="-";t&&(e=e.slice(1));const r=1e6;let s=0,l=0;function _(m,i){const a=Number(e.slice(m,i));l*=r,s=s*r+a,s>=br&&(l=l+(s/br|0),s=s%br)}return _(-24,-18),_(-18,-12),_(-12,-6),_(-6),t?Un(s,l):Vi(s,l)}function gd(e,t){let r=Vi(e,t);const s=r.hi&2147483648;s&&(r=Un(r.lo,r.hi));const l=Pn(r.lo,r.hi);return s?"-"+l:l}function Pn(e,t){if({lo:e,hi:t}=vd(e,t),t<=2097151)return String(br*t+e);const r=e&16777215,s=(e>>>24|t<<8)&16777215,l=t>>16&65535;let _=r+s*6777216+l*6710656,m=s+l*8147497,i=l*2;const a=1e7;return _>=a&&(m+=Math.floor(_/a),_%=a),m>=a&&(i+=Math.floor(m/a),m%=a),i.toString()+Ws(m)+Ws(_)}function vd(e,t){return{lo:e>>>0,hi:t>>>0}}function Vi(e,t){return{lo:e|0,hi:t|0}}function Un(e,t){return t=~t,e?e=~e+1:t+=1,Vi(e,t)}const Ws=e=>{const t=String(e);return"0000000".slice(t.length)+t};function pi(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e=e>>>7;t.push(e)}else{for(let r=0;r<9;r++)t.push(e&127|128),e=e>>7;t.push(1)}}function pd(){let e=this.buf[this.pos++],t=e&127;if((e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<7,(e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<14,(e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<21,(e&128)==0)return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let r=5;(e&128)!==0&&r<10;r++)e=this.buf[this.pos++];if((e&128)!=0)throw new Error("invalid varint");return this.assertBounds(),t>>>0}const ne=_d();function _d(){const e=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof e.getBigInt64=="function"&&typeof e.getBigUint64=="function"&&typeof e.setBigInt64=="function"&&typeof e.setBigUint64=="function"&&(globalThis.Deno||typeof process!="object"||typeof process.env!="object"||process.env.BUF_BIGINT_DISABLE!=="1")){const t=BigInt("-9223372036854775808"),r=BigInt("9223372036854775807"),s=BigInt("0"),l=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(_){const m=typeof _=="bigint"?_:BigInt(_);if(m>r||m<t)throw new Error(`invalid int64: ${_}`);return m},uParse(_){const m=typeof _=="bigint"?_:BigInt(_);if(m>l||m<s)throw new Error(`invalid uint64: ${_}`);return m},enc(_){return e.setBigInt64(0,this.parse(_),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},uEnc(_){return e.setBigInt64(0,this.uParse(_),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},dec(_,m){return e.setInt32(0,_,!0),e.setInt32(4,m,!0),e.getBigInt64(0,!0)},uDec(_,m){return e.setInt32(0,_,!0),e.setInt32(4,m,!0),e.getBigUint64(0,!0)}}}return{zero:"0",supported:!1,parse(t){return typeof t!="string"&&(t=t.toString()),Gs(t),t},uParse(t){return typeof t!="string"&&(t=t.toString()),js(t),t},enc(t){return typeof t!="string"&&(t=t.toString()),Gs(t),$s(t)},uEnc(t){return typeof t!="string"&&(t=t.toString()),js(t),$s(t)},dec(t,r){return gd(t,r)},uDec(t,r){return Pn(t,r)}}}function Gs(e){if(!/^-?[0-9]+$/.test(e))throw new Error("invalid int64: "+e)}function js(e){if(!/^[0-9]+$/.test(e))throw new Error("invalid uint64: "+e)}var F;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(F||(F={}));function ht(e,t){switch(e){case F.STRING:return"";case F.BOOL:return!1;case F.DOUBLE:case F.FLOAT:return 0;case F.INT64:case F.UINT64:case F.SFIXED64:case F.FIXED64:case F.SINT64:return t?"0":ne.zero;case F.BYTES:return new Uint8Array(0);default:return 0}}function md(e,t){switch(e){case F.BOOL:return t===!1;case F.STRING:return t==="";case F.BYTES:return t instanceof Uint8Array&&!t.byteLength;default:return t==0}}const Vn=2,We=Symbol.for("reflect unsafe local");function Hn(e,t){const r=e[t.localName].case;return r===void 0?r:t.fields.find(s=>s.localName===r)}function bd(e,t){const r=t.localName;if(t.oneof)return e[t.oneof.localName].case===r;if(t.presence!=Vn)return e[r]!==void 0&&Object.prototype.hasOwnProperty.call(e,r);switch(t.fieldKind){case"list":return e[r].length>0;case"map":return Object.keys(e[r]).length>0;case"scalar":return!md(t.scalar,e[r]);case"enum":return e[r]!==t.enum.values[0].number}throw new Error("message field with implicit presence")}function Jt(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&e[t]!==void 0}function $n(e,t){if(t.oneof){const r=e[t.oneof.localName];return r.case===t.localName?r.value:void 0}return e[t.localName]}function Wn(e,t,r){t.oneof?e[t.oneof.localName]={case:t.localName,value:r}:e[t.localName]=r}function Sd(e,t){const r=t.localName;if(t.oneof){const s=t.oneof.localName;e[s].case===r&&(e[s]={case:void 0})}else if(t.presence!=Vn)delete e[r];else switch(t.fieldKind){case"map":e[r]={};break;case"list":e[r]=[];break;case"enum":e[r]=t.enum.values[0].number;break;case"scalar":e[r]=ht(t.scalar,t.longAsString);break}}function Hi(e){for(const t of e.field)Jt(t,"jsonName")||(t.jsonName=Yt(t.name));e.nestedType.forEach(Hi)}function yd(e,t){const r=e.values.find(s=>s.name===t);if(!r)throw new Error(`cannot parse ${e} default value: ${t}`);return r.number}function Cd(e,t){switch(e){case F.STRING:return t;case F.BYTES:{const r=wd(t);if(r===!1)throw new Error(`cannot parse ${F[e]} default value: ${t}`);return r}case F.INT64:case F.SFIXED64:case F.SINT64:return ne.parse(t);case F.UINT64:case F.FIXED64:return ne.uParse(t);case F.DOUBLE:case F.FLOAT:switch(t){case"inf":return Number.POSITIVE_INFINITY;case"-inf":return Number.NEGATIVE_INFINITY;case"nan":return Number.NaN;default:return parseFloat(t)}case F.BOOL:return t==="true";case F.INT32:case F.UINT32:case F.SINT32:case F.FIXED32:case F.SFIXED32:return parseInt(t,10)}}function wd(e){const t=[],r={tail:e,c:"",next(){return this.tail.length==0?!1:(this.c=this.tail[0],this.tail=this.tail.substring(1),!0)},take(s){if(this.tail.length>=s){const l=this.tail.substring(0,s);return this.tail=this.tail.substring(s),l}return!1}};for(;r.next();)switch(r.c){case"\\":if(r.next())switch(r.c){case"\\":t.push(r.c.charCodeAt(0));break;case"b":t.push(8);break;case"f":t.push(12);break;case"n":t.push(10);break;case"r":t.push(13);break;case"t":t.push(9);break;case"v":t.push(11);break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":{const s=r.c,l=r.take(2);if(l===!1)return!1;const _=parseInt(s+l,8);if(Number.isNaN(_))return!1;t.push(_);break}case"x":{const s=r.c,l=r.take(2);if(l===!1)return!1;const _=parseInt(s+l,16);if(Number.isNaN(_))return!1;t.push(_);break}case"u":{const s=r.c,l=r.take(4);if(l===!1)return!1;const _=parseInt(s+l,16);if(Number.isNaN(_))return!1;const m=new Uint8Array(4);new DataView(m.buffer).setInt32(0,_,!0),t.push(m[0],m[1],m[2],m[3]);break}case"U":{const s=r.c,l=r.take(8);if(l===!1)return!1;const _=ne.uEnc(s+l),m=new Uint8Array(8),i=new DataView(m.buffer);i.setInt32(0,_.lo,!0),i.setInt32(4,_.hi,!0),t.push(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7]);break}}break;default:t.push(r.c.charCodeAt(0))}return new Uint8Array(t)}function*_i(e){switch(e.kind){case"file":for(const t of e.messages)yield t,yield*_i(t);yield*e.enums,yield*e.services,yield*e.extensions;break;case"message":for(const t of e.nestedMessages)yield t,yield*_i(t);yield*e.nestedEnums,yield*e.nestedExtensions;break}}function Gn(...e){const t=Ed();if(!e.length)return t;if("$typeName"in e[0]&&e[0].$typeName=="google.protobuf.FileDescriptorSet"){for(const r of e[0].file)Xs(r,t);return t}if("$typeName"in e[0]){let r=function(m){const i=[];for(const a of m.dependency){if(t.getFile(a)!=null||_.has(a))continue;const h=l(a);if(!h)throw new Error(`Unable to resolve ${a}, imported by ${m.name}`);"kind"in h?t.addFile(h,!1,!0):(_.add(h.name),i.push(h))}return i.concat(...i.map(r))};const s=e[0],l=e[1],_=new Set;for(const m of[s,...r(s)].reverse())Xs(m,t)}else for(const r of e)for(const s of r.files)t.addFile(s);return t}function Ed(){const e=new Map,t=new Map,r=new Map;return{kind:"registry",types:e,extendees:t,[Symbol.iterator](){return e.values()},get files(){return r.values()},addFile(s,l,_){if(r.set(s.proto.name,s),!l)for(const m of _i(s))this.add(m);if(_)for(const m of s.dependencies)this.addFile(m,l,_)},add(s){if(s.kind=="extension"){let l=t.get(s.extendee.typeName);l||t.set(s.extendee.typeName,l=new Map),l.set(s.number,s)}e.set(s.typeName,s)},get(s){return e.get(s)},getFile(s){return r.get(s)},getMessage(s){const l=e.get(s);return(l==null?void 0:l.kind)=="message"?l:void 0},getEnum(s){const l=e.get(s);return(l==null?void 0:l.kind)=="enum"?l:void 0},getExtension(s){const l=e.get(s);return(l==null?void 0:l.kind)=="extension"?l:void 0},getExtensionFor(s,l){var _;return(_=t.get(s.typeName))===null||_===void 0?void 0:_.get(l)},getService(s){const l=e.get(s);return(l==null?void 0:l.kind)=="service"?l:void 0}}}const kd=998,Bd=999,Id=9,qt=10,Vt=11,Rd=12,Zs=14,$i=3,Ad=2,zs=1,xd=0,Ks=1,Ys=2,Td=3,Ld=1,Dd=2,Od=1,jn={998:{fieldPresence:1,enumType:2,repeatedFieldEncoding:2,utf8Validation:3,messageEncoding:1,jsonFormat:2,enforceNamingStyle:2,defaultSymbolVisibility:1},999:{fieldPresence:2,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1,enforceNamingStyle:2,defaultSymbolVisibility:1},1e3:{fieldPresence:1,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1,enforceNamingStyle:2,defaultSymbolVisibility:1},1001:{fieldPresence:1,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1,enforceNamingStyle:1,defaultSymbolVisibility:2}};function Xs(e,t){var r,s;const l={kind:"file",proto:e,deprecated:(s=(r=e.options)===null||r===void 0?void 0:r.deprecated)!==null&&s!==void 0?s:!1,edition:Pd(e),name:e.name.replace(/\.proto$/,""),dependencies:Ud(e,t),enums:[],messages:[],extensions:[],services:[],toString(){return`file ${e.name}`}},_=new Map,m={get(i){return _.get(i)},add(i){var a;Oe(((a=i.proto.options)===null||a===void 0?void 0:a.mapEntry)===!0),_.set(i.typeName,i)}};for(const i of e.enumType)Zn(i,l,void 0,t);for(const i of e.messageType)zn(i,l,void 0,t,m);for(const i of e.service)Nd(i,l,t);mi(l,t);for(const i of _.values())bi(i,t,m);for(const i of l.messages)bi(i,t,m),mi(i,t);t.addFile(l,!0)}function mi(e,t){switch(e.kind){case"file":for(const r of e.proto.extension){const s=Si(r,e,t);e.extensions.push(s),t.add(s)}break;case"message":for(const r of e.proto.extension){const s=Si(r,e,t);e.nestedExtensions.push(s),t.add(s)}for(const r of e.nestedMessages)mi(r,t);break}}function bi(e,t,r){const s=e.proto.oneofDecl.map(_=>Md(_,e)),l=new Set;for(const _ of e.proto.field){const m=$d(_,s),i=Si(_,e,t,m,r);e.fields.push(i),e.field[i.localName]=i,m===void 0?e.members.push(i):(m.fields.push(i),l.has(m)||(l.add(m),e.members.push(m)))}for(const _ of s.filter(m=>l.has(m)))e.oneofs.push(_);for(const _ of e.nestedMessages)bi(_,t,r)}function Zn(e,t,r,s){var l,_,m,i,a;const h=Vd(e.name,e.value),f={kind:"enum",proto:e,deprecated:(_=(l=e.options)===null||l===void 0?void 0:l.deprecated)!==null&&_!==void 0?_:!1,file:t,parent:r,open:!0,name:e.name,typeName:Nr(e,r,t),value:{},values:[],sharedPrefix:h,toString(){return`enum ${this.typeName}`}};f.open=Zd(f),s.add(f);for(const u of e.value){const v=u.name;f.values.push(f.value[u.number]={kind:"enum_value",proto:u,deprecated:(i=(m=u.options)===null||m===void 0?void 0:m.deprecated)!==null&&i!==void 0?i:!1,parent:f,name:v,localName:Xt(h==null?v:v.substring(h.length)),number:u.number,toString(){return`enum value ${f.typeName}.${v}`}})}((a=r==null?void 0:r.nestedEnums)!==null&&a!==void 0?a:t.enums).push(f)}function zn(e,t,r,s,l){var _,m,i,a;const h={kind:"message",proto:e,deprecated:(m=(_=e.options)===null||_===void 0?void 0:_.deprecated)!==null&&m!==void 0?m:!1,file:t,parent:r,name:e.name,typeName:Nr(e,r,t),fields:[],field:{},oneofs:[],members:[],nestedEnums:[],nestedMessages:[],nestedExtensions:[],toString(){return`message ${this.typeName}`}};((i=e.options)===null||i===void 0?void 0:i.mapEntry)===!0?l.add(h):(((a=r==null?void 0:r.nestedMessages)!==null&&a!==void 0?a:t.messages).push(h),s.add(h));for(const f of e.enumType)Zn(f,t,h,s);for(const f of e.nestedType)zn(f,t,h,s,l)}function Nd(e,t,r){var s,l;const _={kind:"service",proto:e,deprecated:(l=(s=e.options)===null||s===void 0?void 0:s.deprecated)!==null&&l!==void 0?l:!1,file:t,name:e.name,typeName:Nr(e,void 0,t),methods:[],method:{},toString(){return`service ${this.typeName}`}};t.services.push(_),r.add(_);for(const m of e.method){const i=Fd(m,_,r);_.methods.push(i),_.method[i.localName]=i}}function Fd(e,t,r){var s,l,_,m;let i;e.clientStreaming&&e.serverStreaming?i="bidi_streaming":e.clientStreaming?i="client_streaming":e.serverStreaming?i="server_streaming":i="unary";const a=r.getMessage(He(e.inputType)),h=r.getMessage(He(e.outputType));Oe(a,`invalid MethodDescriptorProto: input_type ${e.inputType} not found`),Oe(h,`invalid MethodDescriptorProto: output_type ${e.inputType} not found`);const f=e.name;return{kind:"rpc",proto:e,deprecated:(l=(s=e.options)===null||s===void 0?void 0:s.deprecated)!==null&&l!==void 0?l:!1,parent:t,name:f,localName:Xt(f.length?Xt(f[0].toLowerCase()+f.substring(1)):f),methodKind:i,input:a,output:h,idempotency:(m=(_=e.options)===null||_===void 0?void 0:_.idempotencyLevel)!==null&&m!==void 0?m:xd,toString(){return`rpc ${t.typeName}.${f}`}}}function Md(e,t){return{kind:"oneof",proto:e,deprecated:!1,parent:t,fields:[],name:e.name,localName:Xt(Yt(e.name)),toString(){return`oneof ${t.typeName}.${this.name}`}}}function Si(e,t,r,s,l){var _,m,i;const a=l===void 0,h={kind:"field",proto:e,deprecated:(m=(_=e.options)===null||_===void 0?void 0:_.deprecated)!==null&&m!==void 0?m:!1,name:e.name,number:e.number,scalar:void 0,message:void 0,enum:void 0,presence:Wd(e,s,a,t),listKind:void 0,mapKind:void 0,mapKey:void 0,delimitedEncoding:void 0,packed:void 0,longAsString:!1,getDefaultValue:void 0};if(a){const y=t.kind=="file"?t:t.file,E=t.kind=="file"?void 0:t,p=Nr(e,E,y);h.kind="extension",h.file=y,h.parent=E,h.oneof=void 0,h.typeName=p,h.jsonName=`[${p}]`,h.toString=()=>`extension ${p}`;const o=r.getMessage(He(e.extendee));Oe(o,`invalid FieldDescriptorProto: extendee ${e.extendee} not found`),h.extendee=o}else{const y=t;Oe(y.kind=="message"),h.parent=y,h.oneof=s,h.localName=s?Yt(e.name):Xt(Yt(e.name)),h.jsonName=e.jsonName,h.toString=()=>`field ${y.typeName}.${e.name}`}const f=e.label,u=e.type,v=(i=e.options)===null||i===void 0?void 0:i.jstype;if(f===$i){const y=u==Vt?l==null?void 0:l.get(He(e.typeName)):void 0;if(y){h.fieldKind="map";const{key:E,value:p}=jd(y);return h.mapKey=E.scalar,h.mapKind=p.fieldKind,h.message=p.message,h.delimitedEncoding=!1,h.enum=p.enum,h.scalar=p.scalar,h}switch(h.fieldKind="list",u){case Vt:case qt:h.listKind="message",h.message=r.getMessage(He(e.typeName)),Oe(h.message),h.delimitedEncoding=Js(e,t);break;case Zs:h.listKind="enum",h.enum=r.getEnum(He(e.typeName)),Oe(h.enum);break;default:h.listKind="scalar",h.scalar=u,h.longAsString=v==zs;break}return h.packed=Gd(e,t),h}switch(u){case Vt:case qt:h.fieldKind="message",h.message=r.getMessage(He(e.typeName)),Oe(h.message,`invalid FieldDescriptorProto: type_name ${e.typeName} not found`),h.delimitedEncoding=Js(e,t),h.getDefaultValue=()=>{};break;case Zs:{const y=r.getEnum(He(e.typeName));Oe(y!==void 0,`invalid FieldDescriptorProto: type_name ${e.typeName} not found`),h.fieldKind="enum",h.enum=r.getEnum(He(e.typeName)),h.getDefaultValue=()=>Jt(e,"defaultValue")?yd(y,e.defaultValue):void 0;break}default:{h.fieldKind="scalar",h.scalar=u,h.longAsString=v==zs,h.getDefaultValue=()=>Jt(e,"defaultValue")?Cd(u,e.defaultValue):void 0;break}}return h}function Pd(e){switch(e.syntax){case"":case"proto2":return kd;case"proto3":return Bd;case"editions":if(e.edition in jn)return e.edition;throw new Error(`${e.name}: unsupported edition`);default:throw new Error(`${e.name}: unsupported syntax "${e.syntax}"`)}}function Ud(e,t){return e.dependency.map(r=>{const s=t.getFile(r);if(!s)throw new Error(`Cannot find ${r}, imported by ${e.name}`);return s})}function Vd(e,t){const r=Hd(e)+"_";for(const s of t){if(!s.name.toLowerCase().startsWith(r))return;const l=s.name.substring(r.length);if(l.length==0||/^\d/.test(l))return}return r}function Hd(e){return(e.substring(0,1)+e.substring(1).replace(/[A-Z]/g,t=>"_"+t)).toLowerCase()}function Nr(e,t,r){let s;return t?s=`${t.typeName}.${e.name}`:r.proto.package.length>0?s=`${r.proto.package}.${e.name}`:s=`${e.name}`,s}function He(e){return e.startsWith(".")?e.substring(1):e}function $d(e,t){if(!Jt(e,"oneofIndex")||e.proto3Optional)return;const r=t[e.oneofIndex];return Oe(r,`invalid FieldDescriptorProto: oneof #${e.oneofIndex} for field #${e.number} not found`),r}function Wd(e,t,r,s){if(e.label==Ad)return Td;if(e.label==$i)return Ys;if(t||e.proto3Optional||r)return Ks;const l=Et("fieldPresence",{proto:e,parent:s});return l==Ys&&(e.type==Vt||e.type==qt)?Ks:l}function Gd(e,t){if(e.label!=$i)return!1;switch(e.type){case Id:case Rd:case qt:case Vt:return!1}const r=e.options;return r&&Jt(r,"packed")?r.packed:Ld==Et("repeatedFieldEncoding",{proto:e,parent:t})}function jd(e){const t=e.fields.find(s=>s.number===1),r=e.fields.find(s=>s.number===2);return Oe(t&&t.fieldKind=="scalar"&&t.scalar!=F.BYTES&&t.scalar!=F.FLOAT&&t.scalar!=F.DOUBLE&&r&&r.fieldKind!="list"&&r.fieldKind!="map"),{key:t,value:r}}function Zd(e){var t;return Od==Et("enumType",{proto:e.proto,parent:(t=e.parent)!==null&&t!==void 0?t:e.file})}function Js(e,t){return e.type==qt?!0:Dd==Et("messageEncoding",{proto:e,parent:t})}function Et(e,t){var r,s;const l=(r=t.proto.options)===null||r===void 0?void 0:r.features;if(l){const _=l[e];if(_!=0)return _}if("kind"in t){if(t.kind=="message")return Et(e,(s=t.parent)!==null&&s!==void 0?s:t.file);const _=jn[t.edition];if(!_)throw new Error(`feature default for edition ${t.edition} not found`);return _[e]}return Et(e,t.parent)}function Oe(e,t){if(!e)throw new Error(t)}function zd(e){const t=Kd(e);return t.messageType.forEach(Hi),Gn(t,()=>{}).getFile(t.name)}function Kd(e){return Object.assign(Object.create({syntax:"",edition:0}),Object.assign(Object.assign({$typeName:"google.protobuf.FileDescriptorProto",dependency:[],publicDependency:[],weakDependency:[],optionDependency:[],service:[],extension:[]},e),{messageType:e.messageType.map(Kn),enumType:e.enumType.map(Yn)}))}function Kn(e){var t,r,s,l,_,m,i,a;return Object.assign(Object.create({visibility:0}),{$typeName:"google.protobuf.DescriptorProto",name:e.name,field:(r=(t=e.field)===null||t===void 0?void 0:t.map(Yd))!==null&&r!==void 0?r:[],extension:[],nestedType:(l=(s=e.nestedType)===null||s===void 0?void 0:s.map(Kn))!==null&&l!==void 0?l:[],enumType:(m=(_=e.enumType)===null||_===void 0?void 0:_.map(Yn))!==null&&m!==void 0?m:[],extensionRange:(a=(i=e.extensionRange)===null||i===void 0?void 0:i.map(h=>Object.assign({$typeName:"google.protobuf.DescriptorProto.ExtensionRange"},h)))!==null&&a!==void 0?a:[],oneofDecl:[],reservedRange:[],reservedName:[]})}function Yd(e){return Object.assign(Object.create({label:1,typeName:"",extendee:"",defaultValue:"",oneofIndex:0,jsonName:"",proto3Optional:!1}),Object.assign(Object.assign({$typeName:"google.protobuf.FieldDescriptorProto"},e),{options:e.options?Xd(e.options):void 0}))}function Xd(e){var t,r,s;return Object.assign(Object.create({ctype:0,packed:!1,jstype:0,lazy:!1,unverifiedLazy:!1,deprecated:!1,weak:!1,debugRedact:!1,retention:0}),Object.assign(Object.assign({$typeName:"google.protobuf.FieldOptions"},e),{targets:(t=e.targets)!==null&&t!==void 0?t:[],editionDefaults:(s=(r=e.editionDefaults)===null||r===void 0?void 0:r.map(l=>Object.assign({$typeName:"google.protobuf.FieldOptions.EditionDefault"},l)))!==null&&s!==void 0?s:[],uninterpretedOption:[]}))}function Yn(e){return Object.assign(Object.create({visibility:0}),{$typeName:"google.protobuf.EnumDescriptorProto",name:e.name,reservedName:[],reservedRange:[],value:e.value.map(t=>Object.assign({$typeName:"google.protobuf.EnumValueDescriptorProto"},t))})}function Xn(e){const t=qd();let r=e.length*3/4;e[e.length-2]=="="?r-=2:e[e.length-1]=="="&&(r-=1);let s=new Uint8Array(r),l=0,_=0,m,i=0;for(let a=0;a<e.length;a++){if(m=t[e.charCodeAt(a)],m===void 0)switch(e[a]){case"=":_=0;case`
|
|
1776
|
-
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string")}switch(_){case 0:i=m,_=1;break;case 1:s[l++]=i<<2|(m&48)>>4,i=m,_=2;break;case 2:s[l++]=(i&15)<<4|(m&60)>>2,i=m,_=3;break;case 3:s[l++]=(i&3)<<6|m,_=0;break}}if(_==1)throw Error("invalid base64 string");return s.subarray(0,l)}function Jd(e,t="std"){const r=Jn(t),s=t=="std";let l="",_=0,m,i=0;for(let a=0;a<e.length;a++)switch(m=e[a],_){case 0:l+=r[m>>2],i=(m&3)<<4,_=1;break;case 1:l+=r[i|m>>4],i=(m&15)<<2,_=2;break;case 2:l+=r[i|m>>6],l+=r[m&63],_=0;break}return _&&(l+=r[i],s&&(l+="=",_==1&&(l+="="))),l}let ur,qs,gt;function Jn(e){return ur||(ur="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),qs=ur.slice(0,-2).concat("-","_")),e=="url"?qs:ur}function qd(){if(!gt){gt=[];const e=Jn("std");for(let t=0;t<e.length;t++)gt[e[t].charCodeAt(0)]=t;gt[45]=e.indexOf("+"),gt[95]=e.indexOf("/")}return gt}function Wi(e,t){return e!==null&&typeof e=="object"&&"$typeName"in e&&typeof e.$typeName=="string"?t===void 0?!0:t.typeName===e.$typeName:!1}const Qd=["FieldValueInvalidError","FieldListRangeError","ForeignFieldError"];class Be extends Error{constructor(t,r,s="FieldValueInvalidError"){super(r),this.name=s,this.field=()=>t}}function eh(e){return e instanceof Error&&Qd.includes(e.name)&&"field"in e&&typeof e.field=="function"}function Qe(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Gi(e,t){var r,s,l,_;if(Qe(e)&&We in e&&"add"in e&&"field"in e&&typeof e.field=="function"){if(t!==void 0){const m=t,i=e.field();return m.listKind==i.listKind&&m.scalar===i.scalar&&((r=m.message)===null||r===void 0?void 0:r.typeName)===((s=i.message)===null||s===void 0?void 0:s.typeName)&&((l=m.enum)===null||l===void 0?void 0:l.typeName)===((_=i.enum)===null||_===void 0?void 0:_.typeName)}return!0}return!1}function ji(e,t){var r,s,l,_;if(Qe(e)&&We in e&&"has"in e&&"field"in e&&typeof e.field=="function"){if(t!==void 0){const m=t,i=e.field();return m.mapKey===i.mapKey&&m.mapKind==i.mapKind&&m.scalar===i.scalar&&((r=m.message)===null||r===void 0?void 0:r.typeName)===((s=i.message)===null||s===void 0?void 0:s.typeName)&&((l=m.enum)===null||l===void 0?void 0:l.typeName)===((_=i.enum)===null||_===void 0?void 0:_.typeName)}return!0}return!1}function Zi(e,t){return Qe(e)&&We in e&&"desc"in e&&Qe(e.desc)&&e.desc.kind==="message"&&(t===void 0||e.desc.typeName==t.typeName)}const Qr=Symbol.for("@bufbuild/protobuf/text-encoding");function zi(){if(globalThis[Qr]==null){const e=new globalThis.TextEncoder,t=new globalThis.TextDecoder;globalThis[Qr]={encodeUtf8(r){return e.encode(r)},decodeUtf8(r){return t.decode(r)},checkUtf8(r){try{return encodeURIComponent(r),!0}catch{return!1}}}}return globalThis[Qr]}var ge;(function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"})(ge||(ge={}));const qn=34028234663852886e22,Qn=-34028234663852886e22,ea=4294967295,ta=2147483647,ra=-2147483648;class ia{constructor(t=zi().encodeUtf8){this.encodeUtf8=t,this.stack=[],this.chunks=[],this.buf=[]}finish(){this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]);let t=0;for(let l=0;l<this.chunks.length;l++)t+=this.chunks[l].length;let r=new Uint8Array(t),s=0;for(let l=0;l<this.chunks.length;l++)r.set(this.chunks[l],s),s+=this.chunks[l].length;return this.chunks=[],r}fork(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}join(){let t=this.finish(),r=this.stack.pop();if(!r)throw new Error("invalid state, fork stack empty");return this.chunks=r.chunks,this.buf=r.buf,this.uint32(t.byteLength),this.raw(t)}tag(t,r){return this.uint32((t<<3|r)>>>0)}raw(t){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(t),this}uint32(t){for(Qs(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return ei(t),pi(t,this.buf),this}bool(t){return this.buf.push(t?1:0),this}bytes(t){return this.uint32(t.byteLength),this.raw(t)}string(t){let r=this.encodeUtf8(t);return this.uint32(r.byteLength),this.raw(r)}float(t){th(t);let r=new Uint8Array(4);return new DataView(r.buffer).setFloat32(0,t,!0),this.raw(r)}double(t){let r=new Uint8Array(8);return new DataView(r.buffer).setFloat64(0,t,!0),this.raw(r)}fixed32(t){Qs(t);let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,t,!0),this.raw(r)}sfixed32(t){ei(t);let r=new Uint8Array(4);return new DataView(r.buffer).setInt32(0,t,!0),this.raw(r)}sint32(t){return ei(t),t=(t<<1^t>>31)>>>0,pi(t,this.buf),this}sfixed64(t){let r=new Uint8Array(8),s=new DataView(r.buffer),l=ne.enc(t);return s.setInt32(0,l.lo,!0),s.setInt32(4,l.hi,!0),this.raw(r)}fixed64(t){let r=new Uint8Array(8),s=new DataView(r.buffer),l=ne.uEnc(t);return s.setInt32(0,l.lo,!0),s.setInt32(4,l.hi,!0),this.raw(r)}int64(t){let r=ne.enc(t);return qr(r.lo,r.hi,this.buf),this}sint64(t){const r=ne.enc(t),s=r.hi>>31,l=r.lo<<1^s,_=(r.hi<<1|r.lo>>>31)^s;return qr(l,_,this.buf),this}uint64(t){const r=ne.uEnc(t);return qr(r.lo,r.hi,this.buf),this}}class Ki{constructor(t,r=zi().decodeUtf8){this.decodeUtf8=r,this.varint64=fd,this.uint32=pd,this.buf=t,this.len=t.length,this.pos=0,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength)}tag(){let t=this.uint32(),r=t>>>3,s=t&7;if(r<=0||s<0||s>5)throw new Error("illegal tag: field no "+r+" wire type "+s);return[r,s]}skip(t,r){let s=this.pos;switch(t){case ge.Varint:for(;this.buf[this.pos++]&128;);break;case ge.Bit64:this.pos+=4;case ge.Bit32:this.pos+=4;break;case ge.LengthDelimited:let l=this.uint32();this.pos+=l;break;case ge.StartGroup:for(;;){const[_,m]=this.tag();if(m===ge.EndGroup){if(r!==void 0&&_!==r)throw new Error("invalid end group tag");break}this.skip(m,_)}break;default:throw new Error("cant skip wire type "+t)}return this.assertBounds(),this.buf.subarray(s,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let t=this.uint32();return t>>>1^-(t&1)}int64(){return ne.dec(...this.varint64())}uint64(){return ne.uDec(...this.varint64())}sint64(){let[t,r]=this.varint64(),s=-(t&1);return t=(t>>>1|(r&1)<<31)^s,r=r>>>1^s,ne.dec(t,r)}bool(){let[t,r]=this.varint64();return t!==0||r!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return ne.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return ne.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let t=this.uint32(),r=this.pos;return this.pos+=t,this.assertBounds(),this.buf.subarray(r,r+t)}string(){return this.decodeUtf8(this.bytes())}}function ei(e){if(typeof e=="string")e=Number(e);else if(typeof e!="number")throw new Error("invalid int32: "+typeof e);if(!Number.isInteger(e)||e>ta||e<ra)throw new Error("invalid int32: "+e)}function Qs(e){if(typeof e=="string")e=Number(e);else if(typeof e!="number")throw new Error("invalid uint32: "+typeof e);if(!Number.isInteger(e)||e>ea||e<0)throw new Error("invalid uint32: "+e)}function th(e){if(typeof e=="string"){const t=e;if(e=Number(e),Number.isNaN(e)&&t!=="NaN")throw new Error("invalid float32: "+t)}else if(typeof e!="number")throw new Error("invalid float32: "+typeof e);if(Number.isFinite(e)&&(e>qn||e<Qn))throw new Error("invalid float32: "+e)}function st(e,t){const r=e.fieldKind=="list"?Gi(t,e):e.fieldKind=="map"?ji(t,e):Yi(e,t);if(r===!0)return;let s;switch(e.fieldKind){case"list":s=`expected ${na(e)}, got ${me(t)}`;break;case"map":s=`expected ${aa(e)}, got ${me(t)}`;break;default:s=Ir(e,t,r)}return new Be(e,s)}function eo(e,t,r){const s=Yi(e,r);if(s!==!0)return new Be(e,`list item #${t+1}: ${Ir(e,r,s)}`)}function rh(e,t,r){const s=sa(t,e.mapKey);if(s!==!0)return new Be(e,`invalid map key: ${Ir({scalar:e.mapKey},t,s)}`);const l=Yi(e,r);if(l!==!0)return new Be(e,`map entry ${me(t)}: ${Ir(e,r,l)}`)}function Yi(e,t){return e.scalar!==void 0?sa(t,e.scalar):e.enum!==void 0?e.enum.open?Number.isInteger(t):e.enum.values.some(r=>r.number===t):Zi(t,e.message)}function sa(e,t){switch(t){case F.DOUBLE:return typeof e=="number";case F.FLOAT:return typeof e!="number"?!1:Number.isNaN(e)||!Number.isFinite(e)?!0:e>qn||e<Qn?`${e.toFixed()} out of range`:!0;case F.INT32:case F.SFIXED32:case F.SINT32:return typeof e!="number"||!Number.isInteger(e)?!1:e>ta||e<ra?`${e.toFixed()} out of range`:!0;case F.FIXED32:case F.UINT32:return typeof e!="number"||!Number.isInteger(e)?!1:e>ea||e<0?`${e.toFixed()} out of range`:!0;case F.BOOL:return typeof e=="boolean";case F.STRING:return typeof e!="string"?!1:zi().checkUtf8(e)||"invalid UTF8";case F.BYTES:return e instanceof Uint8Array;case F.INT64:case F.SFIXED64:case F.SINT64:if(typeof e=="bigint"||typeof e=="number"||typeof e=="string"&&e.length>0)try{return ne.parse(e),!0}catch{return`${e} out of range`}return!1;case F.FIXED64:case F.UINT64:if(typeof e=="bigint"||typeof e=="number"||typeof e=="string"&&e.length>0)try{return ne.uParse(e),!0}catch{return`${e} out of range`}return!1}}function Ir(e,t,r){return r=typeof r=="string"?`: ${r}`:`, got ${me(t)}`,e.scalar!==void 0?`expected ${ih(e.scalar)}`+r:e.enum!==void 0?`expected ${e.enum.toString()}`+r:`expected ${oa(e.message)}`+r}function me(e){switch(typeof e){case"object":return e===null?"null":e instanceof Uint8Array?`Uint8Array(${e.length})`:Array.isArray(e)?`Array(${e.length})`:Gi(e)?na(e.field()):ji(e)?aa(e.field()):Zi(e)?oa(e.desc):Wi(e)?`message ${e.$typeName}`:"object";case"string":return e.length>30?"string":`"${e.split('"').join('\\"')}"`;case"boolean":return String(e);case"number":return String(e);case"bigint":return String(e)+"n";default:return typeof e}}function oa(e){return`ReflectMessage (${e.typeName})`}function na(e){switch(e.listKind){case"message":return`ReflectList (${e.message.toString()})`;case"enum":return`ReflectList (${e.enum.toString()})`;case"scalar":return`ReflectList (${F[e.scalar]})`}}function aa(e){switch(e.mapKind){case"message":return`ReflectMap (${F[e.mapKey]}, ${e.message.toString()})`;case"enum":return`ReflectMap (${F[e.mapKey]}, ${e.enum.toString()})`;case"scalar":return`ReflectMap (${F[e.mapKey]}, ${F[e.scalar]})`}}function ih(e){switch(e){case F.STRING:return"string";case F.BOOL:return"boolean";case F.INT64:case F.SINT64:case F.SFIXED64:return"bigint (int64)";case F.UINT64:case F.FIXED64:return"bigint (uint64)";case F.BYTES:return"Uint8Array";case F.DOUBLE:return"number (float64)";case F.FLOAT:return"number (float32)";case F.FIXED32:case F.UINT32:return"number (uint32)";case F.INT32:case F.SFIXED32:case F.SINT32:return"number (int32)"}}function sh(e){return ca(e.$typeName)}function sr(e){const t=e.fields[0];return ca(e.typeName)&&t!==void 0&&t.fieldKind=="scalar"&&t.name=="value"&&t.number==1}function ca(e){return e.startsWith("google.protobuf.")&&["DoubleValue","FloatValue","Int64Value","UInt64Value","Int32Value","UInt32Value","BoolValue","StringValue","BytesValue"].includes(e.substring(16))}const oh=999,nh=998,Sr=2;function _e(e,t){if(Wi(t,e))return t;const r=hh(e);return t!==void 0&&ah(e,r,t),r}function ah(e,t,r){for(const s of e.members){let l=r[s.localName];if(l==null)continue;let _;if(s.kind=="oneof"){const m=Hn(r,s);if(!m)continue;_=m,l=$n(r,m)}else _=s;switch(_.fieldKind){case"message":l=Xi(_,l);break;case"scalar":l=la(_,l);break;case"list":l=lh(_,l);break;case"map":l=ch(_,l);break}Wn(t,_,l)}return t}function la(e,t){return e.scalar==F.BYTES?Ji(t):t}function ch(e,t){if(Qe(t)){if(e.scalar==F.BYTES)return to(t,Ji);if(e.mapKind=="message")return to(t,r=>Xi(e,r))}return t}function lh(e,t){if(Array.isArray(t)){if(e.scalar==F.BYTES)return t.map(Ji);if(e.listKind=="message")return t.map(r=>Xi(e,r))}return t}function Xi(e,t){if(e.fieldKind=="message"&&!e.oneof&&sr(e.message))return la(e.message.fields[0],t);if(Qe(t)){if(e.message.typeName=="google.protobuf.Struct"&&e.parent.typeName!=="google.protobuf.Value")return t;if(!Wi(t,e.message))return _e(e.message,t)}return t}function Ji(e){return Array.isArray(e)?new Uint8Array(e):e}function to(e,t){const r={};for(const s of Object.entries(e))r[s[0]]=t(s[1]);return r}const dh=Symbol(),ro=new WeakMap;function hh(e){let t;if(uh(e)){const r=ro.get(e);let s,l;if(r)({prototype:s,members:l}=r);else{s={},l=new Set;for(const _ of e.members)_.kind!="oneof"&&(_.fieldKind!="scalar"&&_.fieldKind!="enum"||_.presence!=Sr&&(l.add(_),s[_.localName]=ti(_)));ro.set(e,{prototype:s,members:l})}t=Object.create(s),t.$typeName=e.typeName;for(const _ of e.members)l.has(_)||_.kind=="field"&&(_.fieldKind=="message"||(_.fieldKind=="scalar"||_.fieldKind=="enum")&&_.presence!=Sr)||(t[_.localName]=ti(_))}else{t={$typeName:e.typeName};for(const r of e.members)(r.kind=="oneof"||r.presence==Sr)&&(t[r.localName]=ti(r))}return t}function uh(e){switch(e.file.edition){case oh:return!1;case nh:return!0;default:return e.fields.some(t=>t.presence!=Sr&&t.fieldKind!="message"&&!t.oneof)}}function ti(e){if(e.kind=="oneof")return{case:void 0};if(e.fieldKind=="list")return[];if(e.fieldKind=="map")return{};if(e.fieldKind=="message")return dh;const t=e.getDefaultValue();return t!==void 0?e.fieldKind=="scalar"&&e.longAsString?t.toString():t:e.fieldKind=="scalar"?ht(e.scalar,e.longAsString):e.enum.values[0].number}function De(e,t,r=!0){return new da(e,t,r)}class da{get sortedFields(){var t;return(t=this._sortedFields)!==null&&t!==void 0?t:this._sortedFields=this.desc.fields.concat().sort((r,s)=>r.number-s.number)}constructor(t,r,s=!0){this.lists=new Map,this.maps=new Map,this.check=s,this.desc=t,this.message=this[We]=r??_e(t),this.fields=t.fields,this.oneofs=t.oneofs,this.members=t.members}findNumber(t){return this._fieldsByNumber||(this._fieldsByNumber=new Map(this.desc.fields.map(r=>[r.number,r]))),this._fieldsByNumber.get(t)}oneofCase(t){return Ot(this.message,t),Hn(this.message,t)}isSet(t){return Ot(this.message,t),bd(this.message,t)}clear(t){Ot(this.message,t),Sd(this.message,t)}get(t){Ot(this.message,t);const r=$n(this.message,t);switch(t.fieldKind){case"list":let s=this.lists.get(t);return(!s||s[We]!==r)&&this.lists.set(t,s=new fh(t,r,this.check)),s;case"map":let l=this.maps.get(t);return(!l||l[We]!==r)&&this.maps.set(t,l=new gh(t,r,this.check)),l;case"message":return Qi(t,r,this.check);case"scalar":return r===void 0?ht(t.scalar,!1):es(t,r);case"enum":return r??t.enum.values[0].number}}set(t,r){if(Ot(this.message,t),this.check){const l=st(t,r);if(l)throw l}let s;t.fieldKind=="message"?s=qi(t,r):ji(r)||Gi(r)?s=r[We]:s=ts(t,r),Wn(this.message,t,s)}getUnknown(){return this.message.$unknown}setUnknown(t){this.message.$unknown=t}}function Ot(e,t){if(t.parent.typeName!==e.$typeName)throw new Be(t,`cannot use ${t.toString()} with message ${e.$typeName}`,"ForeignFieldError")}class fh{field(){return this._field}get size(){return this._arr.length}constructor(t,r,s){this._field=t,this._arr=this[We]=r,this.check=s}get(t){const r=this._arr[t];return r===void 0?void 0:ri(this._field,r,this.check)}set(t,r){if(t<0||t>=this._arr.length)throw new Be(this._field,`list item #${t+1}: out of range`);if(this.check){const s=eo(this._field,t,r);if(s)throw s}this._arr[t]=io(this._field,r)}add(t){if(this.check){const r=eo(this._field,this._arr.length,t);if(r)throw r}this._arr.push(io(this._field,t))}clear(){this._arr.splice(0,this._arr.length)}[Symbol.iterator](){return this.values()}keys(){return this._arr.keys()}*values(){for(const t of this._arr)yield ri(this._field,t,this.check)}*entries(){for(let t=0;t<this._arr.length;t++)yield[t,ri(this._field,this._arr[t],this.check)]}}class gh{constructor(t,r,s=!0){this.obj=this[We]=r??{},this.check=s,this._field=t}field(){return this._field}set(t,r){if(this.check){const s=rh(this._field,t,r);if(s)throw s}return this.obj[fr(t)]=vh(this._field,r),this}delete(t){const r=fr(t),s=Object.prototype.hasOwnProperty.call(this.obj,r);return s&&delete this.obj[r],s}clear(){for(const t of Object.keys(this.obj))delete this.obj[t]}get(t){let r=this.obj[fr(t)];return r!==void 0&&(r=ii(this._field,r,this.check)),r}has(t){return Object.prototype.hasOwnProperty.call(this.obj,fr(t))}*keys(){for(const t of Object.keys(this.obj))yield so(t,this._field.mapKey)}*entries(){for(const t of Object.entries(this.obj))yield[so(t[0],this._field.mapKey),ii(this._field,t[1],this.check)]}[Symbol.iterator](){return this.entries()}get size(){return Object.keys(this.obj).length}*values(){for(const t of Object.values(this.obj))yield ii(this._field,t,this.check)}forEach(t,r){for(const s of this.entries())t.call(r,s[1],s[0],this)}}function qi(e,t){return Zi(t)?sh(t.message)&&!e.oneof&&e.fieldKind=="message"?t.message.value:t.desc.typeName=="google.protobuf.Struct"&&e.parent.typeName!="google.protobuf.Value"?ua(t.message):t.message:t}function Qi(e,t,r){return t!==void 0&&(sr(e.message)&&!e.oneof&&e.fieldKind=="message"?t={$typeName:e.message.typeName,value:es(e.message.fields[0],t)}:e.message.typeName=="google.protobuf.Struct"&&e.parent.typeName!="google.protobuf.Value"&&Qe(t)&&(t=ha(t))),new da(e.message,t,r)}function io(e,t){return e.listKind=="message"?qi(e,t):ts(e,t)}function ri(e,t,r){return e.listKind=="message"?Qi(e,t,r):es(e,t)}function vh(e,t){return e.mapKind=="message"?qi(e,t):ts(e,t)}function ii(e,t,r){return e.mapKind=="message"?Qi(e,t,r):t}function fr(e){return typeof e=="string"||typeof e=="number"?e:String(e)}function so(e,t){switch(t){case F.STRING:return e;case F.INT32:case F.FIXED32:case F.UINT32:case F.SFIXED32:case F.SINT32:{const r=Number.parseInt(e);if(Number.isFinite(r))return r;break}case F.BOOL:switch(e){case"true":return!0;case"false":return!1}break;case F.UINT64:case F.FIXED64:try{return ne.uParse(e)}catch{}break;default:try{return ne.parse(e)}catch{}break}return e}function es(e,t){switch(e.scalar){case F.INT64:case F.SFIXED64:case F.SINT64:"longAsString"in e&&e.longAsString&&typeof t=="string"&&(t=ne.parse(t));break;case F.FIXED64:case F.UINT64:"longAsString"in e&&e.longAsString&&typeof t=="string"&&(t=ne.uParse(t));break}return t}function ts(e,t){switch(e.scalar){case F.INT64:case F.SFIXED64:case F.SINT64:"longAsString"in e&&e.longAsString?t=String(t):(typeof t=="string"||typeof t=="number")&&(t=ne.parse(t));break;case F.FIXED64:case F.UINT64:"longAsString"in e&&e.longAsString?t=String(t):(typeof t=="string"||typeof t=="number")&&(t=ne.uParse(t));break}return t}function ha(e){const t={$typeName:"google.protobuf.Struct",fields:{}};if(Qe(e))for(const[r,s]of Object.entries(e))t.fields[r]=ga(s);return t}function ua(e){const t={};for(const[r,s]of Object.entries(e.fields))t[r]=fa(s);return t}function fa(e){switch(e.kind.case){case"structValue":return ua(e.kind.value);case"listValue":return e.kind.value.values.map(fa);case"nullValue":case void 0:return null;default:return e.kind.value}}function ga(e){const t={$typeName:"google.protobuf.Value",kind:{case:void 0}};switch(typeof e){case"number":t.kind={case:"numberValue",value:e};break;case"string":t.kind={case:"stringValue",value:e};break;case"boolean":t.kind={case:"boolValue",value:e};break;case"object":if(e===null)t.kind={case:"nullValue",value:0};else if(Array.isArray(e)){const r={$typeName:"google.protobuf.ListValue",values:[]};if(Array.isArray(e))for(const s of e)r.values.push(ga(s));t.kind={case:"listValue",value:r}}else t.kind={case:"structValue",value:ha(e)};break}return t}const ph=3,oo={writeUnknownFields:!0};function _h(e){return e?Object.assign(Object.assign({},oo),e):oo}function mh(e,t,r){return Rr(new ia,_h(r),De(e,t)).finish()}function Rr(e,t,r){var s;for(const l of r.sortedFields){if(!r.isSet(l)){if(l.presence==ph)throw new Error(`cannot encode ${l} to binary: required field not set`);continue}va(e,t,r,l)}if(t.writeUnknownFields)for(const{no:l,wireType:_,data:m}of(s=r.getUnknown())!==null&&s!==void 0?s:[])e.tag(l,_).raw(m);return e}function va(e,t,r,s){var l;switch(s.fieldKind){case"scalar":case"enum":Ar(e,r.desc.typeName,s.name,(l=s.scalar)!==null&&l!==void 0?l:F.INT32,s.number,r.get(s));break;case"list":bh(e,t,s,r.get(s));break;case"message":pa(e,t,s,r.get(s));break;case"map":for(const[_,m]of r.get(s))Sh(e,t,s,_,m);break}}function Ar(e,t,r,s,l,_){_a(e.tag(l,yh(s)),t,r,s,_)}function pa(e,t,r,s){r.delimitedEncoding?Rr(e.tag(r.number,ge.StartGroup),t,s).tag(r.number,ge.EndGroup):Rr(e.tag(r.number,ge.LengthDelimited).fork(),t,s).join()}function bh(e,t,r,s){var l;if(r.listKind=="message"){for(const m of s)pa(e,t,r,m);return}const _=(l=r.scalar)!==null&&l!==void 0?l:F.INT32;if(r.packed){if(!s.size)return;e.tag(r.number,ge.LengthDelimited).fork();for(const m of s)_a(e,r.parent.typeName,r.name,_,m);e.join();return}for(const m of s)Ar(e,r.parent.typeName,r.name,_,r.number,m)}function Sh(e,t,r,s,l){var _;switch(e.tag(r.number,ge.LengthDelimited).fork(),Ar(e,r.parent.typeName,r.name,r.mapKey,1,s),r.mapKind){case"scalar":case"enum":Ar(e,r.parent.typeName,r.name,(_=r.scalar)!==null&&_!==void 0?_:F.INT32,2,l);break;case"message":Rr(e.tag(2,ge.LengthDelimited).fork(),t,l).join();break}e.join()}function _a(e,t,r,s,l){try{switch(s){case F.STRING:e.string(l);break;case F.BOOL:e.bool(l);break;case F.DOUBLE:e.double(l);break;case F.FLOAT:e.float(l);break;case F.INT32:e.int32(l);break;case F.INT64:e.int64(l);break;case F.UINT64:e.uint64(l);break;case F.FIXED64:e.fixed64(l);break;case F.BYTES:e.bytes(l);break;case F.FIXED32:e.fixed32(l);break;case F.SFIXED32:e.sfixed32(l);break;case F.SFIXED64:e.sfixed64(l);break;case F.SINT64:e.sint64(l);break;case F.UINT32:e.uint32(l);break;case F.SINT32:e.sint32(l);break}}catch(_){throw _ instanceof Error?new Error(`cannot encode field ${t}.${r} to binary: ${_.message}`):_}}function yh(e){switch(e){case F.BYTES:case F.STRING:return ge.LengthDelimited;case F.DOUBLE:case F.FIXED64:case F.SFIXED64:return ge.Bit64;case F.FIXED32:case F.SFIXED32:case F.FLOAT:return ge.Bit32;default:return ge.Varint}}function Ve(e,t,...r){return r.reduce((s,l)=>s.nestedMessages[l],e.messages[t])}function Fr(e,t,...r){if(r.length==0)return e.enums[t];const s=r.pop();return r.reduce((l,_)=>l.nestedMessages[_],e.messages[t]).nestedEnums[s]}function Mr(e){const t={};for(const r of e.values)t[r.localName]=r.number,t[r.number]=r.localName;return t}const Ch=zd({name:"google/protobuf/descriptor.proto",package:"google.protobuf",messageType:[{name:"FileDescriptorSet",field:[{name:"file",number:1,type:11,label:3,typeName:".google.protobuf.FileDescriptorProto"}],extensionRange:[{start:536e6,end:536000001}]},{name:"FileDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"package",number:2,type:9,label:1},{name:"dependency",number:3,type:9,label:3},{name:"public_dependency",number:10,type:5,label:3},{name:"weak_dependency",number:11,type:5,label:3},{name:"option_dependency",number:15,type:9,label:3},{name:"message_type",number:4,type:11,label:3,typeName:".google.protobuf.DescriptorProto"},{name:"enum_type",number:5,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto"},{name:"service",number:6,type:11,label:3,typeName:".google.protobuf.ServiceDescriptorProto"},{name:"extension",number:7,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"options",number:8,type:11,label:1,typeName:".google.protobuf.FileOptions"},{name:"source_code_info",number:9,type:11,label:1,typeName:".google.protobuf.SourceCodeInfo"},{name:"syntax",number:12,type:9,label:1},{name:"edition",number:14,type:14,label:1,typeName:".google.protobuf.Edition"}]},{name:"DescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"field",number:2,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"extension",number:6,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"nested_type",number:3,type:11,label:3,typeName:".google.protobuf.DescriptorProto"},{name:"enum_type",number:4,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto"},{name:"extension_range",number:5,type:11,label:3,typeName:".google.protobuf.DescriptorProto.ExtensionRange"},{name:"oneof_decl",number:8,type:11,label:3,typeName:".google.protobuf.OneofDescriptorProto"},{name:"options",number:7,type:11,label:1,typeName:".google.protobuf.MessageOptions"},{name:"reserved_range",number:9,type:11,label:3,typeName:".google.protobuf.DescriptorProto.ReservedRange"},{name:"reserved_name",number:10,type:9,label:3},{name:"visibility",number:11,type:14,label:1,typeName:".google.protobuf.SymbolVisibility"}],nestedType:[{name:"ExtensionRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.ExtensionRangeOptions"}]},{name:"ReservedRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1}]}]},{name:"ExtensionRangeOptions",field:[{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"},{name:"declaration",number:2,type:11,label:3,typeName:".google.protobuf.ExtensionRangeOptions.Declaration",options:{retention:2}},{name:"features",number:50,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"verification",number:3,type:14,label:1,typeName:".google.protobuf.ExtensionRangeOptions.VerificationState",defaultValue:"UNVERIFIED",options:{retention:2}}],nestedType:[{name:"Declaration",field:[{name:"number",number:1,type:5,label:1},{name:"full_name",number:2,type:9,label:1},{name:"type",number:3,type:9,label:1},{name:"reserved",number:5,type:8,label:1},{name:"repeated",number:6,type:8,label:1}]}],enumType:[{name:"VerificationState",value:[{name:"DECLARATION",number:0},{name:"UNVERIFIED",number:1}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"FieldDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"number",number:3,type:5,label:1},{name:"label",number:4,type:14,label:1,typeName:".google.protobuf.FieldDescriptorProto.Label"},{name:"type",number:5,type:14,label:1,typeName:".google.protobuf.FieldDescriptorProto.Type"},{name:"type_name",number:6,type:9,label:1},{name:"extendee",number:2,type:9,label:1},{name:"default_value",number:7,type:9,label:1},{name:"oneof_index",number:9,type:5,label:1},{name:"json_name",number:10,type:9,label:1},{name:"options",number:8,type:11,label:1,typeName:".google.protobuf.FieldOptions"},{name:"proto3_optional",number:17,type:8,label:1}],enumType:[{name:"Type",value:[{name:"TYPE_DOUBLE",number:1},{name:"TYPE_FLOAT",number:2},{name:"TYPE_INT64",number:3},{name:"TYPE_UINT64",number:4},{name:"TYPE_INT32",number:5},{name:"TYPE_FIXED64",number:6},{name:"TYPE_FIXED32",number:7},{name:"TYPE_BOOL",number:8},{name:"TYPE_STRING",number:9},{name:"TYPE_GROUP",number:10},{name:"TYPE_MESSAGE",number:11},{name:"TYPE_BYTES",number:12},{name:"TYPE_UINT32",number:13},{name:"TYPE_ENUM",number:14},{name:"TYPE_SFIXED32",number:15},{name:"TYPE_SFIXED64",number:16},{name:"TYPE_SINT32",number:17},{name:"TYPE_SINT64",number:18}]},{name:"Label",value:[{name:"LABEL_OPTIONAL",number:1},{name:"LABEL_REPEATED",number:3},{name:"LABEL_REQUIRED",number:2}]}]},{name:"OneofDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"options",number:2,type:11,label:1,typeName:".google.protobuf.OneofOptions"}]},{name:"EnumDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"value",number:2,type:11,label:3,typeName:".google.protobuf.EnumValueDescriptorProto"},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.EnumOptions"},{name:"reserved_range",number:4,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto.EnumReservedRange"},{name:"reserved_name",number:5,type:9,label:3},{name:"visibility",number:6,type:14,label:1,typeName:".google.protobuf.SymbolVisibility"}],nestedType:[{name:"EnumReservedRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1}]}]},{name:"EnumValueDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"number",number:2,type:5,label:1},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.EnumValueOptions"}]},{name:"ServiceDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"method",number:2,type:11,label:3,typeName:".google.protobuf.MethodDescriptorProto"},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.ServiceOptions"}]},{name:"MethodDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"input_type",number:2,type:9,label:1},{name:"output_type",number:3,type:9,label:1},{name:"options",number:4,type:11,label:1,typeName:".google.protobuf.MethodOptions"},{name:"client_streaming",number:5,type:8,label:1,defaultValue:"false"},{name:"server_streaming",number:6,type:8,label:1,defaultValue:"false"}]},{name:"FileOptions",field:[{name:"java_package",number:1,type:9,label:1},{name:"java_outer_classname",number:8,type:9,label:1},{name:"java_multiple_files",number:10,type:8,label:1,defaultValue:"false"},{name:"java_generate_equals_and_hash",number:20,type:8,label:1,options:{deprecated:!0}},{name:"java_string_check_utf8",number:27,type:8,label:1,defaultValue:"false"},{name:"optimize_for",number:9,type:14,label:1,typeName:".google.protobuf.FileOptions.OptimizeMode",defaultValue:"SPEED"},{name:"go_package",number:11,type:9,label:1},{name:"cc_generic_services",number:16,type:8,label:1,defaultValue:"false"},{name:"java_generic_services",number:17,type:8,label:1,defaultValue:"false"},{name:"py_generic_services",number:18,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:23,type:8,label:1,defaultValue:"false"},{name:"cc_enable_arenas",number:31,type:8,label:1,defaultValue:"true"},{name:"objc_class_prefix",number:36,type:9,label:1},{name:"csharp_namespace",number:37,type:9,label:1},{name:"swift_prefix",number:39,type:9,label:1},{name:"php_class_prefix",number:40,type:9,label:1},{name:"php_namespace",number:41,type:9,label:1},{name:"php_metadata_namespace",number:44,type:9,label:1},{name:"ruby_package",number:45,type:9,label:1},{name:"features",number:50,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],enumType:[{name:"OptimizeMode",value:[{name:"SPEED",number:1},{name:"CODE_SIZE",number:2},{name:"LITE_RUNTIME",number:3}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"MessageOptions",field:[{name:"message_set_wire_format",number:1,type:8,label:1,defaultValue:"false"},{name:"no_standard_descriptor_accessor",number:2,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"map_entry",number:7,type:8,label:1},{name:"deprecated_legacy_json_field_conflicts",number:11,type:8,label:1,options:{deprecated:!0}},{name:"features",number:12,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"FieldOptions",field:[{name:"ctype",number:1,type:14,label:1,typeName:".google.protobuf.FieldOptions.CType",defaultValue:"STRING"},{name:"packed",number:2,type:8,label:1},{name:"jstype",number:6,type:14,label:1,typeName:".google.protobuf.FieldOptions.JSType",defaultValue:"JS_NORMAL"},{name:"lazy",number:5,type:8,label:1,defaultValue:"false"},{name:"unverified_lazy",number:15,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"weak",number:10,type:8,label:1,defaultValue:"false",options:{deprecated:!0}},{name:"debug_redact",number:16,type:8,label:1,defaultValue:"false"},{name:"retention",number:17,type:14,label:1,typeName:".google.protobuf.FieldOptions.OptionRetention"},{name:"targets",number:19,type:14,label:3,typeName:".google.protobuf.FieldOptions.OptionTargetType"},{name:"edition_defaults",number:20,type:11,label:3,typeName:".google.protobuf.FieldOptions.EditionDefault"},{name:"features",number:21,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"feature_support",number:22,type:11,label:1,typeName:".google.protobuf.FieldOptions.FeatureSupport"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],nestedType:[{name:"EditionDefault",field:[{name:"edition",number:3,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"value",number:2,type:9,label:1}]},{name:"FeatureSupport",field:[{name:"edition_introduced",number:1,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"edition_deprecated",number:2,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"deprecation_warning",number:3,type:9,label:1},{name:"edition_removed",number:4,type:14,label:1,typeName:".google.protobuf.Edition"}]}],enumType:[{name:"CType",value:[{name:"STRING",number:0},{name:"CORD",number:1},{name:"STRING_PIECE",number:2}]},{name:"JSType",value:[{name:"JS_NORMAL",number:0},{name:"JS_STRING",number:1},{name:"JS_NUMBER",number:2}]},{name:"OptionRetention",value:[{name:"RETENTION_UNKNOWN",number:0},{name:"RETENTION_RUNTIME",number:1},{name:"RETENTION_SOURCE",number:2}]},{name:"OptionTargetType",value:[{name:"TARGET_TYPE_UNKNOWN",number:0},{name:"TARGET_TYPE_FILE",number:1},{name:"TARGET_TYPE_EXTENSION_RANGE",number:2},{name:"TARGET_TYPE_MESSAGE",number:3},{name:"TARGET_TYPE_FIELD",number:4},{name:"TARGET_TYPE_ONEOF",number:5},{name:"TARGET_TYPE_ENUM",number:6},{name:"TARGET_TYPE_ENUM_ENTRY",number:7},{name:"TARGET_TYPE_SERVICE",number:8},{name:"TARGET_TYPE_METHOD",number:9}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"OneofOptions",field:[{name:"features",number:1,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"EnumOptions",field:[{name:"allow_alias",number:2,type:8,label:1},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"deprecated_legacy_json_field_conflicts",number:6,type:8,label:1,options:{deprecated:!0}},{name:"features",number:7,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"EnumValueOptions",field:[{name:"deprecated",number:1,type:8,label:1,defaultValue:"false"},{name:"features",number:2,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"debug_redact",number:3,type:8,label:1,defaultValue:"false"},{name:"feature_support",number:4,type:11,label:1,typeName:".google.protobuf.FieldOptions.FeatureSupport"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"ServiceOptions",field:[{name:"features",number:34,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"deprecated",number:33,type:8,label:1,defaultValue:"false"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"MethodOptions",field:[{name:"deprecated",number:33,type:8,label:1,defaultValue:"false"},{name:"idempotency_level",number:34,type:14,label:1,typeName:".google.protobuf.MethodOptions.IdempotencyLevel",defaultValue:"IDEMPOTENCY_UNKNOWN"},{name:"features",number:35,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],enumType:[{name:"IdempotencyLevel",value:[{name:"IDEMPOTENCY_UNKNOWN",number:0},{name:"NO_SIDE_EFFECTS",number:1},{name:"IDEMPOTENT",number:2}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"UninterpretedOption",field:[{name:"name",number:2,type:11,label:3,typeName:".google.protobuf.UninterpretedOption.NamePart"},{name:"identifier_value",number:3,type:9,label:1},{name:"positive_int_value",number:4,type:4,label:1},{name:"negative_int_value",number:5,type:3,label:1},{name:"double_value",number:6,type:1,label:1},{name:"string_value",number:7,type:12,label:1},{name:"aggregate_value",number:8,type:9,label:1}],nestedType:[{name:"NamePart",field:[{name:"name_part",number:1,type:9,label:2},{name:"is_extension",number:2,type:8,label:2}]}]},{name:"FeatureSet",field:[{name:"field_presence",number:1,type:14,label:1,typeName:".google.protobuf.FeatureSet.FieldPresence",options:{retention:1,targets:[4,1],editionDefaults:[{value:"EXPLICIT",edition:900},{value:"IMPLICIT",edition:999},{value:"EXPLICIT",edition:1e3}]}},{name:"enum_type",number:2,type:14,label:1,typeName:".google.protobuf.FeatureSet.EnumType",options:{retention:1,targets:[6,1],editionDefaults:[{value:"CLOSED",edition:900},{value:"OPEN",edition:999}]}},{name:"repeated_field_encoding",number:3,type:14,label:1,typeName:".google.protobuf.FeatureSet.RepeatedFieldEncoding",options:{retention:1,targets:[4,1],editionDefaults:[{value:"EXPANDED",edition:900},{value:"PACKED",edition:999}]}},{name:"utf8_validation",number:4,type:14,label:1,typeName:".google.protobuf.FeatureSet.Utf8Validation",options:{retention:1,targets:[4,1],editionDefaults:[{value:"NONE",edition:900},{value:"VERIFY",edition:999}]}},{name:"message_encoding",number:5,type:14,label:1,typeName:".google.protobuf.FeatureSet.MessageEncoding",options:{retention:1,targets:[4,1],editionDefaults:[{value:"LENGTH_PREFIXED",edition:900}]}},{name:"json_format",number:6,type:14,label:1,typeName:".google.protobuf.FeatureSet.JsonFormat",options:{retention:1,targets:[3,6,1],editionDefaults:[{value:"LEGACY_BEST_EFFORT",edition:900},{value:"ALLOW",edition:999}]}},{name:"enforce_naming_style",number:7,type:14,label:1,typeName:".google.protobuf.FeatureSet.EnforceNamingStyle",options:{retention:2,targets:[1,2,3,4,5,6,7,8,9],editionDefaults:[{value:"STYLE_LEGACY",edition:900},{value:"STYLE2024",edition:1001}]}},{name:"default_symbol_visibility",number:8,type:14,label:1,typeName:".google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility",options:{retention:2,targets:[1],editionDefaults:[{value:"EXPORT_ALL",edition:900},{value:"EXPORT_TOP_LEVEL",edition:1001}]}}],nestedType:[{name:"VisibilityFeature",enumType:[{name:"DefaultSymbolVisibility",value:[{name:"DEFAULT_SYMBOL_VISIBILITY_UNKNOWN",number:0},{name:"EXPORT_ALL",number:1},{name:"EXPORT_TOP_LEVEL",number:2},{name:"LOCAL_ALL",number:3},{name:"STRICT",number:4}]}]}],enumType:[{name:"FieldPresence",value:[{name:"FIELD_PRESENCE_UNKNOWN",number:0},{name:"EXPLICIT",number:1},{name:"IMPLICIT",number:2},{name:"LEGACY_REQUIRED",number:3}]},{name:"EnumType",value:[{name:"ENUM_TYPE_UNKNOWN",number:0},{name:"OPEN",number:1},{name:"CLOSED",number:2}]},{name:"RepeatedFieldEncoding",value:[{name:"REPEATED_FIELD_ENCODING_UNKNOWN",number:0},{name:"PACKED",number:1},{name:"EXPANDED",number:2}]},{name:"Utf8Validation",value:[{name:"UTF8_VALIDATION_UNKNOWN",number:0},{name:"VERIFY",number:2},{name:"NONE",number:3}]},{name:"MessageEncoding",value:[{name:"MESSAGE_ENCODING_UNKNOWN",number:0},{name:"LENGTH_PREFIXED",number:1},{name:"DELIMITED",number:2}]},{name:"JsonFormat",value:[{name:"JSON_FORMAT_UNKNOWN",number:0},{name:"ALLOW",number:1},{name:"LEGACY_BEST_EFFORT",number:2}]},{name:"EnforceNamingStyle",value:[{name:"ENFORCE_NAMING_STYLE_UNKNOWN",number:0},{name:"STYLE2024",number:1},{name:"STYLE_LEGACY",number:2}]}],extensionRange:[{start:1e3,end:9995},{start:9995,end:1e4},{start:1e4,end:10001}]},{name:"FeatureSetDefaults",field:[{name:"defaults",number:1,type:11,label:3,typeName:".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault"},{name:"minimum_edition",number:4,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"maximum_edition",number:5,type:14,label:1,typeName:".google.protobuf.Edition"}],nestedType:[{name:"FeatureSetEditionDefault",field:[{name:"edition",number:3,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"overridable_features",number:4,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"fixed_features",number:5,type:11,label:1,typeName:".google.protobuf.FeatureSet"}]}]},{name:"SourceCodeInfo",field:[{name:"location",number:1,type:11,label:3,typeName:".google.protobuf.SourceCodeInfo.Location"}],nestedType:[{name:"Location",field:[{name:"path",number:1,type:5,label:3,options:{packed:!0}},{name:"span",number:2,type:5,label:3,options:{packed:!0}},{name:"leading_comments",number:3,type:9,label:1},{name:"trailing_comments",number:4,type:9,label:1},{name:"leading_detached_comments",number:6,type:9,label:3}]}],extensionRange:[{start:536e6,end:536000001}]},{name:"GeneratedCodeInfo",field:[{name:"annotation",number:1,type:11,label:3,typeName:".google.protobuf.GeneratedCodeInfo.Annotation"}],nestedType:[{name:"Annotation",field:[{name:"path",number:1,type:5,label:3,options:{packed:!0}},{name:"source_file",number:2,type:9,label:1},{name:"begin",number:3,type:5,label:1},{name:"end",number:4,type:5,label:1},{name:"semantic",number:5,type:14,label:1,typeName:".google.protobuf.GeneratedCodeInfo.Annotation.Semantic"}],enumType:[{name:"Semantic",value:[{name:"NONE",number:0},{name:"SET",number:1},{name:"ALIAS",number:2}]}]}]}],enumType:[{name:"Edition",value:[{name:"EDITION_UNKNOWN",number:0},{name:"EDITION_LEGACY",number:900},{name:"EDITION_PROTO2",number:998},{name:"EDITION_PROTO3",number:999},{name:"EDITION_2023",number:1e3},{name:"EDITION_2024",number:1001},{name:"EDITION_1_TEST_ONLY",number:1},{name:"EDITION_2_TEST_ONLY",number:2},{name:"EDITION_99997_TEST_ONLY",number:99997},{name:"EDITION_99998_TEST_ONLY",number:99998},{name:"EDITION_99999_TEST_ONLY",number:99999},{name:"EDITION_MAX",number:2147483647}]},{name:"SymbolVisibility",value:[{name:"VISIBILITY_UNSET",number:0},{name:"VISIBILITY_LOCAL",number:1},{name:"VISIBILITY_EXPORT",number:2}]}]}),wh=Ve(Ch,1);var no;(function(e){e[e.DECLARATION=0]="DECLARATION",e[e.UNVERIFIED=1]="UNVERIFIED"})(no||(no={}));var ao;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.GROUP=10]="GROUP",e[e.MESSAGE=11]="MESSAGE",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.ENUM=14]="ENUM",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(ao||(ao={}));var co;(function(e){e[e.OPTIONAL=1]="OPTIONAL",e[e.REPEATED=3]="REPEATED",e[e.REQUIRED=2]="REQUIRED"})(co||(co={}));var lo;(function(e){e[e.SPEED=1]="SPEED",e[e.CODE_SIZE=2]="CODE_SIZE",e[e.LITE_RUNTIME=3]="LITE_RUNTIME"})(lo||(lo={}));var ho;(function(e){e[e.STRING=0]="STRING",e[e.CORD=1]="CORD",e[e.STRING_PIECE=2]="STRING_PIECE"})(ho||(ho={}));var uo;(function(e){e[e.JS_NORMAL=0]="JS_NORMAL",e[e.JS_STRING=1]="JS_STRING",e[e.JS_NUMBER=2]="JS_NUMBER"})(uo||(uo={}));var fo;(function(e){e[e.RETENTION_UNKNOWN=0]="RETENTION_UNKNOWN",e[e.RETENTION_RUNTIME=1]="RETENTION_RUNTIME",e[e.RETENTION_SOURCE=2]="RETENTION_SOURCE"})(fo||(fo={}));var go;(function(e){e[e.TARGET_TYPE_UNKNOWN=0]="TARGET_TYPE_UNKNOWN",e[e.TARGET_TYPE_FILE=1]="TARGET_TYPE_FILE",e[e.TARGET_TYPE_EXTENSION_RANGE=2]="TARGET_TYPE_EXTENSION_RANGE",e[e.TARGET_TYPE_MESSAGE=3]="TARGET_TYPE_MESSAGE",e[e.TARGET_TYPE_FIELD=4]="TARGET_TYPE_FIELD",e[e.TARGET_TYPE_ONEOF=5]="TARGET_TYPE_ONEOF",e[e.TARGET_TYPE_ENUM=6]="TARGET_TYPE_ENUM",e[e.TARGET_TYPE_ENUM_ENTRY=7]="TARGET_TYPE_ENUM_ENTRY",e[e.TARGET_TYPE_SERVICE=8]="TARGET_TYPE_SERVICE",e[e.TARGET_TYPE_METHOD=9]="TARGET_TYPE_METHOD"})(go||(go={}));var vo;(function(e){e[e.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",e[e.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",e[e.IDEMPOTENT=2]="IDEMPOTENT"})(vo||(vo={}));var po;(function(e){e[e.DEFAULT_SYMBOL_VISIBILITY_UNKNOWN=0]="DEFAULT_SYMBOL_VISIBILITY_UNKNOWN",e[e.EXPORT_ALL=1]="EXPORT_ALL",e[e.EXPORT_TOP_LEVEL=2]="EXPORT_TOP_LEVEL",e[e.LOCAL_ALL=3]="LOCAL_ALL",e[e.STRICT=4]="STRICT"})(po||(po={}));var _o;(function(e){e[e.FIELD_PRESENCE_UNKNOWN=0]="FIELD_PRESENCE_UNKNOWN",e[e.EXPLICIT=1]="EXPLICIT",e[e.IMPLICIT=2]="IMPLICIT",e[e.LEGACY_REQUIRED=3]="LEGACY_REQUIRED"})(_o||(_o={}));var mo;(function(e){e[e.ENUM_TYPE_UNKNOWN=0]="ENUM_TYPE_UNKNOWN",e[e.OPEN=1]="OPEN",e[e.CLOSED=2]="CLOSED"})(mo||(mo={}));var bo;(function(e){e[e.REPEATED_FIELD_ENCODING_UNKNOWN=0]="REPEATED_FIELD_ENCODING_UNKNOWN",e[e.PACKED=1]="PACKED",e[e.EXPANDED=2]="EXPANDED"})(bo||(bo={}));var So;(function(e){e[e.UTF8_VALIDATION_UNKNOWN=0]="UTF8_VALIDATION_UNKNOWN",e[e.VERIFY=2]="VERIFY",e[e.NONE=3]="NONE"})(So||(So={}));var yo;(function(e){e[e.MESSAGE_ENCODING_UNKNOWN=0]="MESSAGE_ENCODING_UNKNOWN",e[e.LENGTH_PREFIXED=1]="LENGTH_PREFIXED",e[e.DELIMITED=2]="DELIMITED"})(yo||(yo={}));var Co;(function(e){e[e.JSON_FORMAT_UNKNOWN=0]="JSON_FORMAT_UNKNOWN",e[e.ALLOW=1]="ALLOW",e[e.LEGACY_BEST_EFFORT=2]="LEGACY_BEST_EFFORT"})(Co||(Co={}));var wo;(function(e){e[e.ENFORCE_NAMING_STYLE_UNKNOWN=0]="ENFORCE_NAMING_STYLE_UNKNOWN",e[e.STYLE2024=1]="STYLE2024",e[e.STYLE_LEGACY=2]="STYLE_LEGACY"})(wo||(wo={}));var Eo;(function(e){e[e.NONE=0]="NONE",e[e.SET=1]="SET",e[e.ALIAS=2]="ALIAS"})(Eo||(Eo={}));var ko;(function(e){e[e.EDITION_UNKNOWN=0]="EDITION_UNKNOWN",e[e.EDITION_LEGACY=900]="EDITION_LEGACY",e[e.EDITION_PROTO2=998]="EDITION_PROTO2",e[e.EDITION_PROTO3=999]="EDITION_PROTO3",e[e.EDITION_2023=1e3]="EDITION_2023",e[e.EDITION_2024=1001]="EDITION_2024",e[e.EDITION_1_TEST_ONLY=1]="EDITION_1_TEST_ONLY",e[e.EDITION_2_TEST_ONLY=2]="EDITION_2_TEST_ONLY",e[e.EDITION_99997_TEST_ONLY=99997]="EDITION_99997_TEST_ONLY",e[e.EDITION_99998_TEST_ONLY=99998]="EDITION_99998_TEST_ONLY",e[e.EDITION_99999_TEST_ONLY=99999]="EDITION_99999_TEST_ONLY",e[e.EDITION_MAX=2147483647]="EDITION_MAX"})(ko||(ko={}));var Bo;(function(e){e[e.VISIBILITY_UNSET=0]="VISIBILITY_UNSET",e[e.VISIBILITY_LOCAL=1]="VISIBILITY_LOCAL",e[e.VISIBILITY_EXPORT=2]="VISIBILITY_EXPORT"})(Bo||(Bo={}));const Eh={readUnknownFields:!0};function kh(e){return Eh}function ma(e,t,r){const s=De(e,void 0,!1);return ba(s,new Ki(t),kh(),!1,t.byteLength),s.message}function ba(e,t,r,s,l){var _;const m=s?t.len:t.pos+l;let i,a;const h=(_=e.getUnknown())!==null&&_!==void 0?_:[];for(;t.pos<m&&([i,a]=t.tag(),!(s&&a==ge.EndGroup));){const f=e.findNumber(i);if(!f){const u=t.skip(a,i);r.readUnknownFields&&h.push({no:i,wireType:a,data:u});continue}Sa(e,t,f,a,r)}if(s&&(a!=ge.EndGroup||i!==l))throw new Error("invalid end group tag");h.length>0&&e.setUnknown(h)}function Sa(e,t,r,s,l){var _;switch(r.fieldKind){case"scalar":e.set(r,kt(t,r.scalar));break;case"enum":const m=kt(t,F.INT32);if(r.enum.open)e.set(r,m);else if(r.enum.values.some(i=>i.number===m))e.set(r,m);else if(l.readUnknownFields){const i=[];pi(m,i);const a=(_=e.getUnknown())!==null&&_!==void 0?_:[];a.push({no:r.number,wireType:s,data:new Uint8Array(i)}),e.setUnknown(a)}break;case"message":e.set(r,rs(t,l,r,e.get(r)));break;case"list":Ih(t,s,e.get(r),l);break;case"map":Bh(t,e.get(r),l);break}}function Bh(e,t,r){const s=t.field();let l,_;const m=e.uint32(),i=e.pos+m;for(;e.pos<i;){const[a]=e.tag();switch(a){case 1:l=kt(e,s.mapKey);break;case 2:switch(s.mapKind){case"scalar":_=kt(e,s.scalar);break;case"enum":_=e.int32();break;case"message":_=rs(e,r,s);break}break}}if(l===void 0&&(l=ht(s.mapKey,!1)),_===void 0)switch(s.mapKind){case"scalar":_=ht(s.scalar,!1);break;case"enum":_=s.enum.values[0].number;break;case"message":_=De(s.message,void 0,!1);break}t.set(l,_)}function Ih(e,t,r,s){var l;const _=r.field();if(_.listKind==="message"){r.add(rs(e,s,_));return}const m=(l=_.scalar)!==null&&l!==void 0?l:F.INT32;if(!(t==ge.LengthDelimited&&m!=F.STRING&&m!=F.BYTES)){r.add(kt(e,m));return}const i=e.uint32()+e.pos;for(;e.pos<i;)r.add(kt(e,m))}function rs(e,t,r,s){const l=r.delimitedEncoding,_=s??De(r.message,void 0,!1);return ba(_,e,t,l,l?r.number:e.uint32()),_}function kt(e,t){switch(t){case F.STRING:return e.string();case F.BOOL:return e.bool();case F.DOUBLE:return e.double();case F.FLOAT:return e.float();case F.INT32:return e.int32();case F.INT64:return e.int64();case F.UINT64:return e.uint64();case F.FIXED64:return e.fixed64();case F.BYTES:return e.bytes();case F.FIXED32:return e.fixed32();case F.SFIXED32:return e.sfixed32();case F.SFIXED64:return e.sfixed64();case F.SINT64:return e.sint64();case F.UINT32:return e.uint32();case F.SINT32:return e.sint32()}}function ft(e,t){var r;const s=ma(wh,Xn(e));return s.messageType.forEach(Hi),s.dependency=(r=t==null?void 0:t.map(l=>l.proto.name))!==null&&r!==void 0?r:[],Gn(s,l=>t==null?void 0:t.find(_=>_.proto.name===l)).getFile(s.name)}const is=ft("ChxydW5tZS9ydW5uZXIvdjIvY29uZmlnLnByb3RvEg9ydW5tZS5ydW5uZXIudjIiigMKDVByb2dyYW1Db25maWcSFAoMcHJvZ3JhbV9uYW1lGAEgASgJEhEKCWFyZ3VtZW50cxgCIAMoCRIRCglkaXJlY3RvcnkYAyABKAkSEwoLbGFuZ3VhZ2VfaWQYBCABKAkSEgoKYmFja2dyb3VuZBgFIAEoCBIWCg5maWxlX2V4dGVuc2lvbhgGIAEoCRILCgNlbnYYByADKAkSPgoIY29tbWFuZHMYCCABKAsyKi5ydW5tZS5ydW5uZXIudjIuUHJvZ3JhbUNvbmZpZy5Db21tYW5kTGlzdEgAEhAKBnNjcmlwdBgJIAEoCUgAEhMKC2ludGVyYWN0aXZlGAogASgIEioKBG1vZGUYCyABKA4yHC5ydW5tZS5ydW5uZXIudjIuQ29tbWFuZE1vZGUSEAoIa25vd25faWQYDCABKAkSEgoKa25vd25fbmFtZRgNIAEoCRIOCgZydW5faWQYDiABKAkaHAoLQ29tbWFuZExpc3QSDQoFaXRlbXMYASADKAlCCAoGc291cmNlKowBCgtDb21tYW5kTW9kZRIcChhDT01NQU5EX01PREVfVU5TUEVDSUZJRUQQABIXChNDT01NQU5EX01PREVfSU5MSU5FEAESFQoRQ09NTUFORF9NT0RFX0ZJTEUQAhIZChVDT01NQU5EX01PREVfVEVSTUlOQUwQAxIUChBDT01NQU5EX01PREVfQ0xJEARCSFpGZ2l0aHViLmNvbS9ydW5tZWRldi9ydW5tZS92My9hcGkvZ2VuL3Byb3RvL2dvL3J1bm1lL3J1bm5lci92MjtydW5uZXJ2MmIGcHJvdG8z"),Io=Ve(is,0,0),Rh=Fr(is,0),si=Mr(Rh),Ah=ft("Chlnb29nbGUvcHJvdG9idWYvYW55LnByb3RvEg9nb29nbGUucHJvdG9idWYiJgoDQW55EhAKCHR5cGVfdXJsGAEgASgJEg0KBXZhbHVlGAIgASgMQnYKE2NvbS5nb29nbGUucHJvdG9idWZCCEFueVByb3RvUAFaLGdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL2FueXBiogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM"),xh=Ve(Ah,0);function Th(e,t,r){let s=!1;return r||(r=_e(xh),s=!0),r.value=mh(e,t),r.typeUrl=Oh(t.$typeName),s?r:void 0}function Lh(e,t){if(e.typeUrl==="")return!1;const r=typeof t=="string"?t:t.typeName,s=ya(e.typeUrl);return r===s}function Dh(e,t){if(e.typeUrl==="")return;const r=t.kind=="message"?t:t.getMessage(ya(e.typeUrl));if(!(!r||!Lh(e,r)))return ma(r,e.value)}function Oh(e){return`type.googleapis.com/${e}`}function ya(e){const t=e.lastIndexOf("/"),r=t>=0?e.substring(t+1):e;if(!r.length)throw new Error(`invalid type url: ${e}`);return r}const ss=ft("Chxnb29nbGUvcHJvdG9idWYvc3RydWN0LnByb3RvEg9nb29nbGUucHJvdG9idWYihAEKBlN0cnVjdBIzCgZmaWVsZHMYASADKAsyIy5nb29nbGUucHJvdG9idWYuU3RydWN0LkZpZWxkc0VudHJ5GkUKC0ZpZWxkc0VudHJ5EgsKA2tleRgBIAEoCRIlCgV2YWx1ZRgCIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZToCOAEi6gEKBVZhbHVlEjAKCm51bGxfdmFsdWUYASABKA4yGi5nb29nbGUucHJvdG9idWYuTnVsbFZhbHVlSAASFgoMbnVtYmVyX3ZhbHVlGAIgASgBSAASFgoMc3RyaW5nX3ZhbHVlGAMgASgJSAASFAoKYm9vbF92YWx1ZRgEIAEoCEgAEi8KDHN0cnVjdF92YWx1ZRgFIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3RIABIwCgpsaXN0X3ZhbHVlGAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLkxpc3RWYWx1ZUgAQgYKBGtpbmQiMwoJTGlzdFZhbHVlEiYKBnZhbHVlcxgBIAMoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZSobCglOdWxsVmFsdWUSDgoKTlVMTF9WQUxVRRAAQn8KE2NvbS5nb29nbGUucHJvdG9idWZCC1N0cnVjdFByb3RvUAFaL2dvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL3N0cnVjdHBi+AEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM"),Nh=Ve(ss,0),Ca=Ve(ss,1),Fh=Ve(ss,2);var yi;(function(e){e[e.NULL_VALUE=0]="NULL_VALUE"})(yi||(yi={}));const Mh=ft("Ch5nb29nbGUvcHJvdG9idWYvd3JhcHBlcnMucHJvdG8SD2dvb2dsZS5wcm90b2J1ZiIcCgtEb3VibGVWYWx1ZRINCgV2YWx1ZRgBIAEoASIbCgpGbG9hdFZhbHVlEg0KBXZhbHVlGAEgASgCIhsKCkludDY0VmFsdWUSDQoFdmFsdWUYASABKAMiHAoLVUludDY0VmFsdWUSDQoFdmFsdWUYASABKAQiGwoKSW50MzJWYWx1ZRINCgV2YWx1ZRgBIAEoBSIcCgtVSW50MzJWYWx1ZRINCgV2YWx1ZRgBIAEoDSIaCglCb29sVmFsdWUSDQoFdmFsdWUYASABKAgiHAoLU3RyaW5nVmFsdWUSDQoFdmFsdWUYASABKAkiGwoKQnl0ZXNWYWx1ZRINCgV2YWx1ZRgBIAEoDEKDAQoTY29tLmdvb2dsZS5wcm90b2J1ZkINV3JhcHBlcnNQcm90b1ABWjFnb29nbGUuZ29sYW5nLm9yZy9wcm90b2J1Zi90eXBlcy9rbm93bi93cmFwcGVyc3Bi+AEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM"),or=ft("ChxydW5tZS9ydW5uZXIvdjIvcnVubmVyLnByb3RvEg9ydW5tZS5ydW5uZXIudjIiLwoHUHJvamVjdBIMCgRyb290GAEgASgJEhYKDmVudl9sb2FkX29yZGVyGAIgAygJIo0BCgdTZXNzaW9uEgoKAmlkGAEgASgJEgsKA2VudhgCIAMoCRI4CghtZXRhZGF0YRgDIAMoCzImLnJ1bm1lLnJ1bm5lci52Mi5TZXNzaW9uLk1ldGFkYXRhRW50cnkaLwoNTWV0YWRhdGFFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIrIFChRDcmVhdGVTZXNzaW9uUmVxdWVzdBJFCghtZXRhZGF0YRgBIAMoCzIzLnJ1bm1lLnJ1bm5lci52Mi5DcmVhdGVTZXNzaW9uUmVxdWVzdC5NZXRhZGF0YUVudHJ5EgsKA2VudhgCIAMoCRIuCgdwcm9qZWN0GAMgASgLMhgucnVubWUucnVubmVyLnYyLlByb2plY3RIAIgBARJBCg5lbnZfc3RvcmVfdHlwZRgEIAEoDjIkLnJ1bm1lLnJ1bm5lci52Mi5TZXNzaW9uRW52U3RvcmVUeXBlSAGIAQESPAoGY29uZmlnGAUgASgLMiwucnVubWUucnVubmVyLnYyLkNyZWF0ZVNlc3Npb25SZXF1ZXN0LkNvbmZpZxovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEaxAIKBkNvbmZpZxJBCg5lbnZfc3RvcmVfdHlwZRgBIAEoDjIkLnJ1bm1lLnJ1bm5lci52Mi5TZXNzaW9uRW52U3RvcmVUeXBlSACIAQESYwoRZW52X3N0b3JlX3NlZWRpbmcYAiABKA4yQy5ydW5tZS5ydW5uZXIudjIuQ3JlYXRlU2Vzc2lvblJlcXVlc3QuQ29uZmlnLlNlc3Npb25FbnZTdG9yZVNlZWRpbmdIAYgBASJpChZTZXNzaW9uRW52U3RvcmVTZWVkaW5nEikKJVNFU1NJT05fRU5WX1NUT1JFX1NFRURJTkdfVU5TUEVDSUZJRUQQABIkCiBTRVNTSU9OX0VOVl9TVE9SRV9TRUVESU5HX1NZU1RFTRABQhEKD19lbnZfc3RvcmVfdHlwZUIUChJfZW52X3N0b3JlX3NlZWRpbmdCCgoIX3Byb2plY3RCEQoPX2Vudl9zdG9yZV90eXBlIkIKFUNyZWF0ZVNlc3Npb25SZXNwb25zZRIpCgdzZXNzaW9uGAEgASgLMhgucnVubWUucnVubmVyLnYyLlNlc3Npb24iHwoRR2V0U2Vzc2lvblJlcXVlc3QSCgoCaWQYASABKAkiPwoSR2V0U2Vzc2lvblJlc3BvbnNlEikKB3Nlc3Npb24YASABKAsyGC5ydW5tZS5ydW5uZXIudjIuU2Vzc2lvbiIVChNMaXN0U2Vzc2lvbnNSZXF1ZXN0IkIKFExpc3RTZXNzaW9uc1Jlc3BvbnNlEioKCHNlc3Npb25zGAEgAygLMhgucnVubWUucnVubmVyLnYyLlNlc3Npb24i4wEKFFVwZGF0ZVNlc3Npb25SZXF1ZXN0EgoKAmlkGAEgASgJEkUKCG1ldGFkYXRhGAIgAygLMjMucnVubWUucnVubmVyLnYyLlVwZGF0ZVNlc3Npb25SZXF1ZXN0Lk1ldGFkYXRhRW50cnkSCwoDZW52GAMgAygJEi4KB3Byb2plY3QYBCABKAsyGC5ydW5tZS5ydW5uZXIudjIuUHJvamVjdEgAiAEBGi8KDU1ldGFkYXRhRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4AUIKCghfcHJvamVjdCJCChVVcGRhdGVTZXNzaW9uUmVzcG9uc2USKQoHc2Vzc2lvbhgBIAEoCzIYLnJ1bm1lLnJ1bm5lci52Mi5TZXNzaW9uIiIKFERlbGV0ZVNlc3Npb25SZXF1ZXN0EgoKAmlkGAEgASgJIhcKFURlbGV0ZVNlc3Npb25SZXNwb25zZSI7CgdXaW5zaXplEgwKBHJvd3MYASABKA0SDAoEY29scxgCIAEoDRIJCgF4GAMgASgNEgkKAXkYBCABKA0i5QIKDkV4ZWN1dGVSZXF1ZXN0Ei4KBmNvbmZpZxgBIAEoCzIeLnJ1bm1lLnJ1bm5lci52Mi5Qcm9ncmFtQ29uZmlnEhIKCmlucHV0X2RhdGEYCCABKAwSKgoEc3RvcBgJIAEoDjIcLnJ1bm1lLnJ1bm5lci52Mi5FeGVjdXRlU3RvcBIuCgd3aW5zaXplGAogASgLMhgucnVubWUucnVubmVyLnYyLldpbnNpemVIAIgBARISCgpzZXNzaW9uX2lkGBQgASgJEjoKEHNlc3Npb25fc3RyYXRlZ3kYFSABKA4yIC5ydW5tZS5ydW5uZXIudjIuU2Vzc2lvblN0cmF0ZWd5Ei4KB3Byb2plY3QYFiABKAsyGC5ydW5tZS5ydW5uZXIudjIuUHJvamVjdEgBiAEBEhsKE3N0b3JlX3N0ZG91dF9pbl9lbnYYFyABKAhCCgoIX3dpbnNpemVCCgoIX3Byb2plY3QihwIKD0V4ZWN1dGVSZXNwb25zZRIvCglleGl0X2NvZGUYASABKAsyHC5nb29nbGUucHJvdG9idWYuVUludDMyVmFsdWUSEwoLc3Rkb3V0X2RhdGEYAiABKAwSEwoLc3RkZXJyX2RhdGEYAyABKAwSKQoDcGlkGAQgASgLMhwuZ29vZ2xlLnByb3RvYnVmLlVJbnQzMlZhbHVlEhEKCW1pbWVfdHlwZRgFIAEoCRIxCgNwd2QYByABKAsyJC5ydW5tZS5ydW5uZXIudjIuRXhlY3V0ZVJlc3BvbnNlLlB3ZBooCgNQd2QSDwoHY3VycmVudBgBIAEoCRIQCghwcmV2aW91cxgCIAEoCSIqChlSZXNvbHZlUHJvZ3JhbUNvbW1hbmRMaXN0Eg0KBWxpbmVzGAEgAygJIsAEChVSZXNvbHZlUHJvZ3JhbVJlcXVlc3QSPgoIY29tbWFuZHMYASABKAsyKi5ydW5tZS5ydW5uZXIudjIuUmVzb2x2ZVByb2dyYW1Db21tYW5kTGlzdEgAEhAKBnNjcmlwdBgCIAEoCUgAEjkKBG1vZGUYAyABKA4yKy5ydW5tZS5ydW5uZXIudjIuUmVzb2x2ZVByb2dyYW1SZXF1ZXN0Lk1vZGUSCwoDZW52GAQgAygJEhIKCnNlc3Npb25faWQYBSABKAkSOgoQc2Vzc2lvbl9zdHJhdGVneRgGIAEoDjIgLnJ1bm1lLnJ1bm5lci52Mi5TZXNzaW9uU3RyYXRlZ3kSLgoHcHJvamVjdBgHIAEoCzIYLnJ1bm1lLnJ1bm5lci52Mi5Qcm9qZWN0SAGIAQESEwoLbGFuZ3VhZ2VfaWQYCCABKAkSQwoJcmV0ZW50aW9uGAkgASgOMjAucnVubWUucnVubmVyLnYyLlJlc29sdmVQcm9ncmFtUmVxdWVzdC5SZXRlbnRpb24iRAoETW9kZRIUChBNT0RFX1VOU1BFQ0lGSUVEEAASEwoPTU9ERV9QUk9NUFRfQUxMEAESEQoNTU9ERV9TS0lQX0FMTBACIlcKCVJldGVudGlvbhIZChVSRVRFTlRJT05fVU5TUEVDSUZJRUQQABIXChNSRVRFTlRJT05fRklSU1RfUlVOEAESFgoSUkVURU5USU9OX0xBU1RfUlVOEAJCCAoGc291cmNlQgoKCF9wcm9qZWN0ItoDChZSZXNvbHZlUHJvZ3JhbVJlc3BvbnNlEg4KBnNjcmlwdBgBIAEoCRI8Cghjb21tYW5kcxgCIAEoCzIqLnJ1bm1lLnJ1bm5lci52Mi5SZXNvbHZlUHJvZ3JhbUNvbW1hbmRMaXN0Ej8KBHZhcnMYAyADKAsyMS5ydW5tZS5ydW5uZXIudjIuUmVzb2x2ZVByb2dyYW1SZXNwb25zZS5WYXJSZXN1bHQaiQEKCVZhclJlc3VsdBI+CgZzdGF0dXMYASABKA4yLi5ydW5tZS5ydW5uZXIudjIuUmVzb2x2ZVByb2dyYW1SZXNwb25zZS5TdGF0dXMSDAoEbmFtZRgCIAEoCRIWCg5vcmlnaW5hbF92YWx1ZRgDIAEoCRIWCg5yZXNvbHZlZF92YWx1ZRgEIAEoCSKkAQoGU3RhdHVzEhYKElNUQVRVU19VTlNQRUNJRklFRBAAEhMKD1NUQVRVU19SRVNPTFZFRBABEiIKHlNUQVRVU19VTlJFU09MVkVEX1dJVEhfTUVTU0FHRRACEiYKIlNUQVRVU19VTlJFU09MVkVEX1dJVEhfUExBQ0VIT0xERVIQAxIhCh1TVEFUVVNfVU5SRVNPTFZFRF9XSVRIX1NFQ1JFVBAEIkMKFk1vbml0b3JFbnZTdG9yZVJlcXVlc3QSKQoHc2Vzc2lvbhgBIAEoCzIYLnJ1bm1lLnJ1bm5lci52Mi5TZXNzaW9uIsIECh9Nb25pdG9yRW52U3RvcmVSZXNwb25zZVNuYXBzaG90EkoKBGVudnMYASADKAsyPC5ydW5tZS5ydW5uZXIudjIuTW9uaXRvckVudlN0b3JlUmVzcG9uc2VTbmFwc2hvdC5TbmFwc2hvdEVudhrOAgoLU25hcHNob3RFbnYSRwoGc3RhdHVzGAEgASgOMjcucnVubWUucnVubmVyLnYyLk1vbml0b3JFbnZTdG9yZVJlc3BvbnNlU25hcHNob3QuU3RhdHVzEgwKBG5hbWUYAiABKAkSEwoLZGVzY3JpcHRpb24YAyABKAkSDAoEc3BlYxgEIAEoCRITCgtpc19yZXF1aXJlZBgFIAEoCBIOCgZvcmlnaW4YBiABKAkSFgoOb3JpZ2luYWxfdmFsdWUYByABKAkSFgoOcmVzb2x2ZWRfdmFsdWUYCCABKAkSEwoLY3JlYXRlX3RpbWUYCSABKAkSEwoLdXBkYXRlX3RpbWUYCiABKAkSRgoGZXJyb3JzGAsgAygLMjYucnVubWUucnVubmVyLnYyLk1vbml0b3JFbnZTdG9yZVJlc3BvbnNlU25hcHNob3QuRXJyb3IaJgoFRXJyb3ISDAoEY29kZRgBIAEoDRIPCgdtZXNzYWdlGAIgASgJIloKBlN0YXR1cxIWChJTVEFUVVNfVU5TUEVDSUZJRUQQABISCg5TVEFUVVNfTElURVJBTBABEhEKDVNUQVRVU19ISURERU4QAhIRCg1TVEFUVVNfTUFTS0VEEAMimwEKF01vbml0b3JFbnZTdG9yZVJlc3BvbnNlEjIKBHR5cGUYASABKA4yJC5ydW5tZS5ydW5uZXIudjIuTW9uaXRvckVudlN0b3JlVHlwZRJECghzbmFwc2hvdBgCIAEoCzIwLnJ1bm1lLnJ1bm5lci52Mi5Nb25pdG9yRW52U3RvcmVSZXNwb25zZVNuYXBzaG90SABCBgoEZGF0YSpdChNTZXNzaW9uRW52U3RvcmVUeXBlEiYKIlNFU1NJT05fRU5WX1NUT1JFX1RZUEVfVU5TUEVDSUZJRUQQABIeChpTRVNTSU9OX0VOVl9TVE9SRV9UWVBFX09XTBABKl4KC0V4ZWN1dGVTdG9wEhwKGEVYRUNVVEVfU1RPUF9VTlNQRUNJRklFRBAAEhoKFkVYRUNVVEVfU1RPUF9JTlRFUlJVUFQQARIVChFFWEVDVVRFX1NUT1BfS0lMTBACKlUKD1Nlc3Npb25TdHJhdGVneRIgChxTRVNTSU9OX1NUUkFURUdZX1VOU1BFQ0lGSUVEEAASIAocU0VTU0lPTl9TVFJBVEVHWV9NT1NUX1JFQ0VOVBABKmIKE01vbml0b3JFbnZTdG9yZVR5cGUSJgoiTU9OSVRPUl9FTlZfU1RPUkVfVFlQRV9VTlNQRUNJRklFRBAAEiMKH01PTklUT1JfRU5WX1NUT1JFX1RZUEVfU05BUFNIT1QQATKQBgoNUnVubmVyU2VydmljZRJgCg1DcmVhdGVTZXNzaW9uEiUucnVubWUucnVubmVyLnYyLkNyZWF0ZVNlc3Npb25SZXF1ZXN0GiYucnVubWUucnVubmVyLnYyLkNyZWF0ZVNlc3Npb25SZXNwb25zZSIAElcKCkdldFNlc3Npb24SIi5ydW5tZS5ydW5uZXIudjIuR2V0U2Vzc2lvblJlcXVlc3QaIy5ydW5tZS5ydW5uZXIudjIuR2V0U2Vzc2lvblJlc3BvbnNlIgASXQoMTGlzdFNlc3Npb25zEiQucnVubWUucnVubmVyLnYyLkxpc3RTZXNzaW9uc1JlcXVlc3QaJS5ydW5tZS5ydW5uZXIudjIuTGlzdFNlc3Npb25zUmVzcG9uc2UiABJgCg1VcGRhdGVTZXNzaW9uEiUucnVubWUucnVubmVyLnYyLlVwZGF0ZVNlc3Npb25SZXF1ZXN0GiYucnVubWUucnVubmVyLnYyLlVwZGF0ZVNlc3Npb25SZXNwb25zZSIAEmAKDURlbGV0ZVNlc3Npb24SJS5ydW5tZS5ydW5uZXIudjIuRGVsZXRlU2Vzc2lvblJlcXVlc3QaJi5ydW5tZS5ydW5uZXIudjIuRGVsZXRlU2Vzc2lvblJlc3BvbnNlIgASaAoPTW9uaXRvckVudlN0b3JlEicucnVubWUucnVubmVyLnYyLk1vbml0b3JFbnZTdG9yZVJlcXVlc3QaKC5ydW5tZS5ydW5uZXIudjIuTW9uaXRvckVudlN0b3JlUmVzcG9uc2UiADABElIKB0V4ZWN1dGUSHy5ydW5tZS5ydW5uZXIudjIuRXhlY3V0ZVJlcXVlc3QaIC5ydW5tZS5ydW5uZXIudjIuRXhlY3V0ZVJlc3BvbnNlIgAoATABEmMKDlJlc29sdmVQcm9ncmFtEiYucnVubWUucnVubmVyLnYyLlJlc29sdmVQcm9ncmFtUmVxdWVzdBonLnJ1bm1lLnJ1bm5lci52Mi5SZXNvbHZlUHJvZ3JhbVJlc3BvbnNlIgBCSFpGZ2l0aHViLmNvbS9ydW5tZWRldi9ydW5tZS92My9hcGkvZ2VuL3Byb3RvL2dvL3J1bm1lL3J1bm5lci92MjtydW5uZXJ2MmIGcHJvdG8z",[Mh,is]),wa=Ve(or,12),Ci=Ve(or,13),Ph=Fr(or,19,0),$e=Mr(Ph),Uh=Fr(or,2),Vh=Mr(Uh);function Hh(e,t){Ea(t,e);const r=Wh(e.$unknown,t),[s,l,_]=Pr(t);for(const m of r)Sa(s,new Ki(m.data),l,m.wireType,{readUnknownFields:!0});return _()}function $h(e,t,r){var s;Ea(t,e);const l=((s=e.$unknown)!==null&&s!==void 0?s:[]).filter(h=>h.no!==t.number),[_,m]=Pr(t,r),i=new ia;va(i,{writeUnknownFields:!0},_,m);const a=new Ki(i.finish());for(;a.pos<a.len;){const[h,f]=a.tag(),u=a.skip(f,h);l.push({no:h,wireType:f,data:u})}e.$unknown=l}function Wh(e,t){if(e===void 0)return[];if(t.fieldKind==="enum"||t.fieldKind==="scalar"){for(let r=e.length-1;r>=0;--r)if(e[r].no==t.number)return[e[r]];return[]}return e.filter(r=>r.no===t.number)}function Pr(e,t){const r=e.typeName,s=Object.assign(Object.assign({},e),{kind:"field",parent:e.extendee,localName:r}),l=Object.assign(Object.assign({},e.extendee),{fields:[s],members:[s],oneofs:[]}),_=_e(l,t!==void 0?{[r]:t}:void 0);return[De(l,_),s,()=>{const m=_[r];if(m===void 0){const i=e.message;return sr(i)?ht(i.fields[0].scalar,i.fields[0].longAsString):_e(i)}return m}]}function Ea(e,t){if(e.extendee.typeName!=t.$typeName)throw new Error(`extension ${e.typeName} can only be applied to message ${e.extendee.typeName}`)}const Gh=3,jh=2,Ro={alwaysEmitImplicit:!1,enumAsInteger:!1,useProtoFieldName:!1};function Zh(e){return e?Object.assign(Object.assign({},Ro),e):Ro}function zh(e,t,r){return nr(De(e,t),Zh(r))}function nr(e,t){var r;const s=Jh(e,t);if(s!==void 0)return s;const l={};for(const _ of e.sortedFields){if(!e.isSet(_)){if(_.presence==Gh)throw new Error(`cannot encode ${_} to JSON: required field not set`);if(!t.alwaysEmitImplicit||_.presence!==jh)continue}const m=Ao(_,e.get(_),t);m!==void 0&&(l[Xh(_,t)]=m)}if(t.registry){const _=new Set;for(const{no:m}of(r=e.getUnknown())!==null&&r!==void 0?r:[])if(!_.has(m)){_.add(m);const i=t.registry.getExtensionFor(e.desc,m);if(!i)continue;const a=Hh(e.message,i),[h,f]=Pr(i,a),u=Ao(f,h.get(f),t);u!==void 0&&(l[i.jsonName]=u)}}return l}function Ao(e,t,r){switch(e.fieldKind){case"scalar":return Ur(e,t);case"message":return nr(t,r);case"enum":return os(e.enum,t,r.enumAsInteger);case"list":return Yh(t,r);case"map":return Kh(t,r)}}function Kh(e,t){const r=e.field(),s={};switch(r.mapKind){case"scalar":for(const[l,_]of e)s[l]=Ur(r,_);break;case"message":for(const[l,_]of e)s[l]=nr(_,t);break;case"enum":for(const[l,_]of e)s[l]=os(r.enum,_,t.enumAsInteger);break}return t.alwaysEmitImplicit||e.size>0?s:void 0}function Yh(e,t){const r=e.field(),s=[];switch(r.listKind){case"scalar":for(const l of e)s.push(Ur(r,l));break;case"enum":for(const l of e)s.push(os(r.enum,l,t.enumAsInteger));break;case"message":for(const l of e)s.push(nr(l,t));break}return t.alwaysEmitImplicit||s.length>0?s:void 0}function os(e,t,r){var s;if(typeof t!="number")throw new Error(`cannot encode ${e} to JSON: expected number, got ${me(t)}`);if(e.typeName=="google.protobuf.NullValue")return null;if(r)return t;const l=e.value[t];return(s=l==null?void 0:l.name)!==null&&s!==void 0?s:t}function Ur(e,t){var r,s,l,_,m,i;switch(e.scalar){case F.INT32:case F.SFIXED32:case F.SINT32:case F.FIXED32:case F.UINT32:if(typeof t!="number")throw new Error(`cannot encode ${e} to JSON: ${(r=st(e,t))===null||r===void 0?void 0:r.message}`);return t;case F.FLOAT:case F.DOUBLE:if(typeof t!="number")throw new Error(`cannot encode ${e} to JSON: ${(s=st(e,t))===null||s===void 0?void 0:s.message}`);return Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t;case F.STRING:if(typeof t!="string")throw new Error(`cannot encode ${e} to JSON: ${(l=st(e,t))===null||l===void 0?void 0:l.message}`);return t;case F.BOOL:if(typeof t!="boolean")throw new Error(`cannot encode ${e} to JSON: ${(_=st(e,t))===null||_===void 0?void 0:_.message}`);return t;case F.UINT64:case F.FIXED64:case F.INT64:case F.SFIXED64:case F.SINT64:if(typeof t!="bigint"&&typeof t!="string")throw new Error(`cannot encode ${e} to JSON: ${(m=st(e,t))===null||m===void 0?void 0:m.message}`);return t.toString();case F.BYTES:if(t instanceof Uint8Array)return Jd(t);throw new Error(`cannot encode ${e} to JSON: ${(i=st(e,t))===null||i===void 0?void 0:i.message}`)}}function Xh(e,t){return t.useProtoFieldName?e.name:e.jsonName}function Jh(e,t){if(e.desc.typeName.startsWith("google.protobuf."))switch(e.desc.typeName){case"google.protobuf.Any":return qh(e.message,t);case"google.protobuf.Timestamp":return tu(e.message);case"google.protobuf.Duration":return Qh(e.message);case"google.protobuf.FieldMask":return eu(e.message);case"google.protobuf.Struct":return ka(e.message);case"google.protobuf.Value":return ns(e.message);case"google.protobuf.ListValue":return Ba(e.message);default:if(sr(e.desc)){const r=e.desc.fields[0];return Ur(r,e.get(r))}return}}function qh(e,t){if(e.typeUrl==="")return{};const{registry:r}=t;let s,l;if(r&&(s=Dh(e,r),s&&(l=r.getMessage(s.$typeName))),!l||!s)throw new Error(`cannot encode message ${e.$typeName} to JSON: "${e.typeUrl}" is not in the type registry`);let _=nr(De(l,s),t);return(l.typeName.startsWith("google.protobuf.")||_===null||Array.isArray(_)||typeof _!="object")&&(_={value:_}),_["@type"]=e.typeUrl,_}function Qh(e){if(Number(e.seconds)>315576e6||Number(e.seconds)<-315576e6)throw new Error(`cannot encode message ${e.$typeName} to JSON: value out of range`);let t=e.seconds.toString();if(e.nanos!==0){let r=Math.abs(e.nanos).toString();r="0".repeat(9-r.length)+r,r.substring(3)==="000000"?r=r.substring(0,3):r.substring(6)==="000"&&(r=r.substring(0,6)),t+="."+r,e.nanos<0&&Number(e.seconds)==0&&(t="-"+t)}return t+"s"}function eu(e){return e.paths.map(t=>{if(t.match(/_[0-9]?_/g)||t.match(/[A-Z]/g))throw new Error(`cannot encode message ${e.$typeName} to JSON: lowerCamelCase of path name "`+t+'" is irreversible');return Yt(t)}).join(",")}function ka(e){const t={};for(const[r,s]of Object.entries(e.fields))t[r]=ns(s);return t}function ns(e){switch(e.kind.case){case"nullValue":return null;case"numberValue":if(!Number.isFinite(e.kind.value))throw new Error(`${e.$typeName} cannot be NaN or Infinity`);return e.kind.value;case"boolValue":return e.kind.value;case"stringValue":return e.kind.value;case"structValue":return ka(e.kind.value);case"listValue":return Ba(e.kind.value);default:throw new Error(`${e.$typeName} must have a value`)}}function Ba(e){return e.values.map(ns)}function tu(e){const t=Number(e.seconds)*1e3;if(t<Date.parse("0001-01-01T00:00:00Z")||t>Date.parse("9999-12-31T23:59:59Z"))throw new Error(`cannot encode message ${e.$typeName} to JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive`);if(e.nanos<0)throw new Error(`cannot encode message ${e.$typeName} to JSON: nanos must not be negative`);let r="Z";if(e.nanos>0){const s=(e.nanos+1e9).toString().substring(1);s.substring(3)==="000000"?r="."+s.substring(0,3)+"Z":s.substring(6)==="000"?r="."+s.substring(0,6)+"Z":r="."+s+"Z"}return new Date(t).toISOString().replace(".000Z",r)}const xo={ignoreUnknownFields:!1};function ru(e){return e?Object.assign(Object.assign({},xo),e):xo}function iu(e,t,r){const s=De(e);try{Bt(s,t,ru(r))}catch(l){throw eh(l)?new Error(`cannot decode ${l.field()} from JSON: ${l.message}`,{cause:l}):l}return s.message}function Bt(e,t,r){var s;if(du(e,t,r))return;if(t==null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode ${e.desc} from JSON: ${me(t)}`);const l=new Map,_=new Map;for(const m of e.desc.fields)_.set(m.name,m).set(m.jsonName,m);for(const[m,i]of Object.entries(t)){const a=_.get(m);if(a){if(a.oneof){if(i===null&&a.fieldKind=="scalar")continue;const h=l.get(a.oneof);if(h!==void 0)throw new Be(a.oneof,`oneof set multiple times by ${h.name} and ${a.name}`);l.set(a.oneof,a)}To(e,a,i,r)}else{let h;if(m.startsWith("[")&&m.endsWith("]")&&(h=(s=r.registry)===null||s===void 0?void 0:s.getExtension(m.substring(1,m.length-1)))&&h.extendee.typeName===e.desc.typeName){const[f,u,v]=Pr(h);To(f,u,i,r),$h(e.message,h,v())}if(!h&&!r.ignoreUnknownFields)throw new Error(`cannot decode ${e.desc} from JSON: key "${m}" is unknown`)}}}function To(e,t,r,s){switch(t.fieldKind){case"scalar":cu(e,t,r);break;case"enum":au(e,t,r,s);break;case"message":nu(e,t,r,s);break;case"list":ou(e.get(t),r,s);break;case"map":su(e.get(t),r,s);break}}function su(e,t,r){if(t===null)return;const s=e.field();if(typeof t!="object"||Array.isArray(t))throw new Be(s,"expected object, got "+me(t));for(const[l,_]of Object.entries(t)){if(_===null)throw new Be(s,"map value must not be null");let m;switch(s.mapKind){case"message":const a=De(s.message);Bt(a,_,r),m=a;break;case"enum":if(m=as(s.enum,_,r.ignoreUnknownFields,!0),m===Vr)return;break;case"scalar":m=$r(s,_,!0);break}const i=lu(s.mapKey,l);e.set(i,m)}}function ou(e,t,r){if(t===null)return;const s=e.field();if(!Array.isArray(t))throw new Be(s,"expected Array, got "+me(t));for(const l of t){if(l===null)throw new Be(s,"list item must not be null");switch(s.listKind){case"message":const _=De(s.message);Bt(_,l,r),e.add(_);break;case"enum":const m=as(s.enum,l,r.ignoreUnknownFields,!0);m!==Vr&&e.add(m);break;case"scalar":e.add($r(s,l,!0));break}}}function nu(e,t,r,s){if(r===null&&t.message.typeName!="google.protobuf.Value"){e.clear(t);return}const l=e.isSet(t)?e.get(t):De(t.message);Bt(l,r,s),e.set(t,l)}function au(e,t,r,s){const l=as(t.enum,r,s.ignoreUnknownFields,!1);l===Hr?e.clear(t):l!==Vr&&e.set(t,l)}function cu(e,t,r){const s=$r(t,r,!1);s===Hr?e.clear(t):e.set(t,s)}const Vr=Symbol();function as(e,t,r,s){if(t===null)return e.typeName=="google.protobuf.NullValue"?0:s?e.values[0].number:Hr;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":const l=e.values.find(_=>_.name===t);if(l!==void 0)return l.number;if(r)return Vr;break}throw new Error(`cannot decode ${e} from JSON: ${me(t)}`)}const Hr=Symbol();function $r(e,t,r){if(t===null)return r?ht(e.scalar,!1):Hr;switch(e.scalar){case F.DOUBLE:case F.FLOAT:if(t==="NaN")return NaN;if(t==="Infinity")return Number.POSITIVE_INFINITY;if(t==="-Infinity")return Number.NEGATIVE_INFINITY;if(typeof t=="number"){if(Number.isNaN(t))throw new Be(e,"unexpected NaN number");if(!Number.isFinite(t))throw new Be(e,"unexpected infinite number");break}if(typeof t=="string"){if(t===""||t.trim().length!==t.length)break;const s=Number(t);if(!Number.isFinite(s))break;return s}break;case F.INT32:case F.FIXED32:case F.SFIXED32:case F.SINT32:case F.UINT32:return Ia(t);case F.BYTES:if(typeof t=="string"){if(t==="")return new Uint8Array(0);try{return Xn(t)}catch(s){const l=s instanceof Error?s.message:String(s);throw new Be(e,l)}}break}return t}function lu(e,t){switch(e){case F.BOOL:switch(t){case"true":return!0;case"false":return!1}return t;case F.INT32:case F.FIXED32:case F.UINT32:case F.SFIXED32:case F.SINT32:return Ia(t);default:return t}}function Ia(e){if(typeof e=="string"){if(e===""||e.trim().length!==e.length)return e;const t=Number(e);return Number.isNaN(t)?e:t}return e}function du(e,t,r){if(!e.desc.typeName.startsWith("google.protobuf."))return!1;switch(e.desc.typeName){case"google.protobuf.Any":return hu(e.message,t,r),!0;case"google.protobuf.Timestamp":return uu(e.message,t),!0;case"google.protobuf.Duration":return fu(e.message,t),!0;case"google.protobuf.FieldMask":return gu(e.message,t),!0;case"google.protobuf.Struct":return Ra(e.message,t),!0;case"google.protobuf.Value":return cs(e.message,t),!0;case"google.protobuf.ListValue":return Aa(e.message,t),!0;default:if(sr(e.desc)){const s=e.desc.fields[0];return t===null?e.clear(s):e.set(s,$r(s,t,!0)),!0}return!1}}function hu(e,t,r){var s;if(t===null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode message ${e.$typeName} from JSON: expected object but got ${me(t)}`);if(Object.keys(t).length==0)return;const l=t["@type"];if(typeof l!="string"||l=="")throw new Error(`cannot decode message ${e.$typeName} from JSON: "@type" is empty`);const _=l.includes("/")?l.substring(l.lastIndexOf("/")+1):l;if(!_.length)throw new Error(`cannot decode message ${e.$typeName} from JSON: "@type" is invalid`);const m=(s=r.registry)===null||s===void 0?void 0:s.getMessage(_);if(!m)throw new Error(`cannot decode message ${e.$typeName} from JSON: ${l} is not in the type registry`);const i=De(m);if(_.startsWith("google.protobuf.")&&Object.prototype.hasOwnProperty.call(t,"value")){const a=t.value;Bt(i,a,r)}else{const a=Object.assign({},t);delete a["@type"],Bt(i,a,r)}Th(i.desc,i.message,e)}function uu(e,t){if(typeof t!="string")throw new Error(`cannot decode message ${e.$typeName} from JSON: ${me(t)}`);const r=t.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:\.([0-9]{1,9}))?(?:Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!r)throw new Error(`cannot decode message ${e.$typeName} from JSON: invalid RFC 3339 string`);const s=Date.parse(r[1]+"-"+r[2]+"-"+r[3]+"T"+r[4]+":"+r[5]+":"+r[6]+(r[8]?r[8]:"Z"));if(Number.isNaN(s))throw new Error(`cannot decode message ${e.$typeName} from JSON: invalid RFC 3339 string`);if(s<Date.parse("0001-01-01T00:00:00Z")||s>Date.parse("9999-12-31T23:59:59Z"))throw new Error(`cannot decode message ${e.$typeName} from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive`);e.seconds=ne.parse(s/1e3),e.nanos=0,r[7]&&(e.nanos=parseInt("1"+r[7]+"0".repeat(9-r[7].length))-1e9)}function fu(e,t){if(typeof t!="string")throw new Error(`cannot decode message ${e.$typeName} from JSON: ${me(t)}`);const r=t.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/);if(r===null)throw new Error(`cannot decode message ${e.$typeName} from JSON: ${me(t)}`);const s=Number(r[1]);if(s>315576e6||s<-315576e6)throw new Error(`cannot decode message ${e.$typeName} from JSON: ${me(t)}`);if(e.seconds=ne.parse(s),typeof r[2]!="string")return;const l=r[2]+"0".repeat(9-r[2].length);e.nanos=parseInt(l),(s<0||Object.is(s,-0))&&(e.nanos=-e.nanos)}function gu(e,t){if(typeof t!="string")throw new Error(`cannot decode message ${e.$typeName} from JSON: ${me(t)}`);if(t==="")return;function r(s){if(s.includes("_"))throw new Error(`cannot decode message ${e.$typeName} from JSON: path names must be lowerCamelCase`);const l=s.replace(/[A-Z]/g,_=>"_"+_.toLowerCase());return l[0]==="_"?l.substring(1):l}e.paths=t.split(",").map(r)}function Ra(e,t){if(typeof t!="object"||t==null||Array.isArray(t))throw new Error(`cannot decode message ${e.$typeName} from JSON ${me(t)}`);for(const[r,s]of Object.entries(t)){const l=_e(Ca);cs(l,s),e.fields[r]=l}}function cs(e,t){switch(typeof t){case"number":e.kind={case:"numberValue",value:t};break;case"string":e.kind={case:"stringValue",value:t};break;case"boolean":e.kind={case:"boolValue",value:t};break;case"object":if(t===null)e.kind={case:"nullValue",value:yi.NULL_VALUE};else if(Array.isArray(t)){const r=_e(Fh);Aa(r,t),e.kind={case:"listValue",value:r}}else{const r=_e(Nh);Ra(r,t),e.kind={case:"structValue",value:r}}break;default:throw new Error(`cannot decode message ${e.$typeName} from JSON ${me(t)}`)}return e}function Aa(e,t){if(!Array.isArray(t))throw new Error(`cannot decode message ${e.$typeName} from JSON ${me(t)}`);for(const r of t){const s=_e(Ca);cs(s,r),e.values.push(s)}}const xa=ft("ChVnb29nbGUvcnBjL2NvZGUucHJvdG8SCmdvb2dsZS5ycGMqtwIKBENvZGUSBgoCT0sQABINCglDQU5DRUxMRUQQARILCgdVTktOT1dOEAISFAoQSU5WQUxJRF9BUkdVTUVOVBADEhUKEURFQURMSU5FX0VYQ0VFREVEEAQSDQoJTk9UX0ZPVU5EEAUSEgoOQUxSRUFEWV9FWElTVFMQBhIVChFQRVJNSVNTSU9OX0RFTklFRBAHEhMKD1VOQVVUSEVOVElDQVRFRBAQEhYKElJFU09VUkNFX0VYSEFVU1RFRBAIEhcKE0ZBSUxFRF9QUkVDT05ESVRJT04QCRILCgdBQk9SVEVEEAoSEAoMT1VUX09GX1JBTkdFEAsSEQoNVU5JTVBMRU1FTlRFRBAMEgwKCElOVEVSTkFMEA0SDwoLVU5BVkFJTEFCTEUQDhINCglEQVRBX0xPU1MQD0JYCg5jb20uZ29vZ2xlLnJwY0IJQ29kZVByb3RvUAFaM2dvb2dsZS5nb2xhbmcub3JnL2dlbnByb3RvL2dvb2dsZWFwaXMvcnBjL2NvZGU7Y29kZaICA1JQQ2IGcHJvdG8z"),vu=Fr(xa,0),pu=Mr(vu),Ta=ft("CiBydW5tZS9zdHJlYW0vdjEvd2Vic29ja2V0cy5wcm90bxIPcnVubWUuc3RyZWFtLnYxIkIKD1dlYnNvY2tldFN0YXR1cxIeCgRjb2RlGAEgASgOMhAuZ29vZ2xlLnJwYy5Db2RlEg8KB21lc3NhZ2UYAiABKAkiGQoEUGluZxIRCgl0aW1lc3RhbXAYASABKAMiGQoEUG9uZxIRCgl0aW1lc3RhbXAYASABKAMiugEKEFdlYnNvY2tldFJlcXVlc3QSOgoPZXhlY3V0ZV9yZXF1ZXN0GAEgASgLMh8ucnVubWUucnVubmVyLnYyLkV4ZWN1dGVSZXF1ZXN0SAASIwoEcGluZxhkIAEoCzIVLnJ1bm1lLnN0cmVhbS52MS5QaW5nEhYKDWF1dGhvcml6YXRpb24YyAEgASgJEhEKCGtub3duX2lkGNIBIAEoCRIPCgZydW5faWQY3AEgASgJQgkKB3BheWxvYWQi2AEKEVdlYnNvY2tldFJlc3BvbnNlEjwKEGV4ZWN1dGVfcmVzcG9uc2UYASABKAsyIC5ydW5tZS5ydW5uZXIudjIuRXhlY3V0ZVJlc3BvbnNlSAASIwoEcG9uZxhkIAEoCzIVLnJ1bm1lLnN0cmVhbS52MS5Qb25nEjEKBnN0YXR1cxjIASABKAsyIC5ydW5tZS5zdHJlYW0udjEuV2Vic29ja2V0U3RhdHVzEhEKCGtub3duX2lkGNIBIAEoCRIPCgZydW5faWQY3AEgASgJQgkKB3BheWxvYWRCSFpGZ2l0aHViLmNvbS9ydW5tZWRldi9ydW5tZS92My9hcGkvZ2VuL3Byb3RvL2dvL3J1bm1lL3N0cmVhbS92MTtzdHJlYW12MWIGcHJvdG8z",[xa,or]),wi=Ve(Ta,3),_u=Ve(Ta,4),La="0123456789ABCDEFGHJKMNPQRSTVWXYZ",xr=32,mu=16,Da=10,Lo=0xffffffffffff;var at;(function(e){e.Base32IncorrectEncoding="B32_ENC_INVALID",e.DecodeTimeInvalidCharacter="DEC_TIME_CHAR",e.DecodeTimeValueMalformed="DEC_TIME_MALFORMED",e.EncodeTimeNegative="ENC_TIME_NEG",e.EncodeTimeSizeExceeded="ENC_TIME_SIZE_EXCEED",e.EncodeTimeValueMalformed="ENC_TIME_MALFORMED",e.PRNGDetectFailure="PRNG_DETECT",e.ULIDInvalid="ULID_INVALID",e.Unexpected="UNEXPECTED",e.UUIDInvalid="UUID_INVALID"})(at||(at={}));class Ft extends Error{constructor(t,r){super(`${r} (${t})`),this.name="ULIDError",this.code=t}}function bu(e){const t=Math.floor(e()*xr)%xr;return La.charAt(t)}function Su(e){const t=yu(),r=t&&(t.crypto||t.msCrypto)||null;if(typeof(r==null?void 0:r.getRandomValues)=="function")return()=>{const s=new Uint8Array(1);return r.getRandomValues(s),s[0]/255};if(typeof(r==null?void 0:r.randomBytes)=="function")return()=>r.randomBytes(1).readUInt8()/255;throw new Ft(at.PRNGDetectFailure,"Failed to find a reliable PRNG")}function yu(){return Eu()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function Cu(e,t){let r="";for(;e>0;e--)r=bu(t)+r;return r}function wu(e,t=Da){if(isNaN(e))throw new Ft(at.EncodeTimeValueMalformed,`Time must be a number: ${e}`);if(e>Lo)throw new Ft(at.EncodeTimeSizeExceeded,`Cannot encode a time larger than ${Lo}: ${e}`);if(e<0)throw new Ft(at.EncodeTimeNegative,`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new Ft(at.EncodeTimeValueMalformed,`Time must be an integer: ${e}`);let r,s="";for(let l=t;l>0;l--)r=e%xr,s=La.charAt(r)+s,e=(e-r)/xr;return s}function Eu(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function ku(e,t){const r=Su(),s=Date.now();return wu(s,Da)+Cu(mu,r)}const Se=[];for(let e=0;e<256;++e)Se.push((e+256).toString(16).slice(1));function Bu(e,t=0){return(Se[e[t+0]]+Se[e[t+1]]+Se[e[t+2]]+Se[e[t+3]]+"-"+Se[e[t+4]]+Se[e[t+5]]+"-"+Se[e[t+6]]+Se[e[t+7]]+"-"+Se[e[t+8]]+Se[e[t+9]]+"-"+Se[e[t+10]]+Se[e[t+11]]+Se[e[t+12]]+Se[e[t+13]]+Se[e[t+14]]+Se[e[t+15]]).toLowerCase()}let oi;const Iu=new Uint8Array(16);function Ru(){if(!oi){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");oi=crypto.getRandomValues.bind(crypto)}return oi(Iu)}const Au=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Do={randomUUID:Au};function xu(e,t,r){var s;if(Do.randomUUID&&!e)return Do.randomUUID();e=e||{};const l=e.random??((s=e.rng)==null?void 0:s.call(e))??Ru();if(l.length<16)throw new Error("Random bytes length must be >= 16");return l[6]=l[6]&15|64,l[8]=l[8]&63|128,Bu(l)}const Tu=5e3,Lu=1e3,gr=4e3,Oo=1e3;var Oa=(e=>(e.CONTINUOUS="CONTINUOUS",e.INITIAL="INITIAL",e))(Oa||{});class Na{constructor({knownID:t,runID:r,sequence:s,options:l}){this.queue=new Le,this.subscriptions=[],this.reconnect=new Le,this.client=new ve,this._latencies=new Le,this._latenciesConnectable=it(this._latencies.asObservable().pipe(Ll((_,m)=>{if(m.latency<0){const i=_.get(m.streamID);i&&_.set(m.streamID,{...i,readyState:m.readyState})}else _.set(m.streamID,m);return _},new Map))),this._errors=new Le,this._errorsConnectable=it(this._errors.asObservable()),this._stdout=new Le,this._stderr=new Le,this._exitCode=new Le,this._pid=new Le,this._mimeType=new Le,this._stdoutConnectable=it(this._stdout.asObservable()),this._stderrConnectable=it(this._stderr.asObservable()),this._exitCodeConnectable=it(this._exitCode.asObservable()),this._pidConnectable=it(this._pid.asObservable()),this._mimeTypeConnectable=it(this._mimeType.asObservable()),this.knownID=t,this.runID=r,this.sequence=s,this.runnerEndpoint=l.runnerEndpoint,this.interceptors=l.interceptors,this.autoReconnect=l.autoReconnect,this._latenciesConnectable.connect(),this._errorsConnectable.connect(),this._stdoutConnectable.connect(),this._stderrConnectable.connect(),this._exitCodeConnectable.connect(),this._pidConnectable.connect(),this._mimeTypeConnectable.connect(),this.client=this.reconnect.pipe(Vs(Oo,ir,{leading:!0,trailing:!0}),Us(_=>this.useSocketClient(_.streamID).pipe(Us(m=>this.useHeartbeat(m,_))))).pipe(pn()),this.subscriptions.push(this.monitor()),this.subscriptions.push(this.process())}get latencies(){return this._latenciesConnectable}get errors(){return this._errorsConnectable}get stdout(){return this._stdoutConnectable}get stderr(){return this._stderrConnectable}get exitCode(){return this._exitCodeConnectable}get pid(){return this._pidConnectable}get mimeType(){return this._mimeTypeConnectable}monitor(){return Cl(Lu).pipe(Me(()=>this.autoReconnect),Jr(this.reconnect),Me(([,t])=>t.heartbeat==="CONTINUOUS"),Jr(this.latencies),Re(([,t])=>Array.from(t.values()).filter(r=>r.readyState===WebSocket.OPEN&&r.latency>=gr)),Me(t=>t.length>0),Vs(Oo)).subscribe({next:t=>{console.log(new Date,"Triggering reconnect",t),this.connect()},complete:()=>{console.log("Monitor complete")},error:t=>{console.error("Error in monitor",t)}})}process(){const t=this.client.pipe(Me(l=>(l==null?void 0:l.readyState)===WebSocket.OPEN),Ps(1)),r=this.queue.pipe(Rl(()=>t),Me(l=>l.length>0),Re(l=>l.sort((_,m)=>{const i=a=>{var h;return!!((h=a.payload.value)!=null&&h.config)};return i(m)?1:i(_)?-1:0}))),s=this.queue.pipe(Dl(t));return wl(r.pipe(nt(l=>l)),s).pipe(Jr(this.client),hr(([,l])=>l.readyState===WebSocket.OPEN),nt(async([l,_])=>{await Fo({req:l,interceptors:this.interceptors,socket:_,knownID:this.knownID,runID:this.runID})})).subscribe({error:l=>{this._errors.next(l)}})}useSocketClient(t){return new ve(r=>{const s=new URL(this.runnerEndpoint);s.searchParams.set("id",t),s.searchParams.set("runID",this.runID);const l=new WebSocket(s.toString()),_=h=>{if(console.log(new Date,`WebSocket transport ${t} closed`,h),h.code===1005){r.complete();return}if(this.autoReconnect){this.connect();return}},m=h=>{console.log(new Date,`WebSocket transport ${t} error`,h),this.autoReconnect||r.error(h)},i=h=>{var f,u;if(typeof h.data!="string"){console.warn("Unexpected WebSocket message type:",typeof h.data);return}let v;try{v=No(h.data),console.log("Received WebsocketResponse:",v)}catch(p){console.error("Failed to parse WebsocketResponse:",p)}const y=v.status;if(y&&y.code!==pu.OK){r.error(y);return}if(v.pong)return;const E=v.payload.value;if(E.stdoutData&&E.stdoutData.length>0&&((f=this.callback)==null||f.call(this,{type:Q.terminalStdout,output:{"runme.dev/id":this.knownID,data:E.stdoutData}}),this._stdout.next(E.stdoutData)),E.stderrData&&E.stderrData.length>0&&((u=this.callback)==null||u.call(this,{type:Q.terminalStderr,output:{"runme.dev/id":this.knownID,data:E.stderrData}}),this._stderr.next(E.stderrData)),E.exitCode!==void 0&&(this._exitCode.next(E.exitCode),r.complete()),E.pid!==void 0&&this._pid.next(E.pid),E.mimeType){const p=E.mimeType.split(";")[0];this._mimeType.next(p)}},a=()=>{console.log(new Date,`✅ Connected WebSocket for cell ${this.knownID} (#${this.sequence}) with runID ${this.runID}`),r.next(l)};return l.addEventListener("close",_),l.addEventListener("error",m),l.addEventListener("message",i),l.addEventListener("open",a),()=>{console.log(new Date,`☑️ Cleanly disconnected WebSocket for cell ${this.knownID} (#${this.sequence}) with runID ${this.runID}`),l.removeEventListener("close",_),l.removeEventListener("error",m),l.removeEventListener("message",i),l.removeEventListener("open",a),l.close()}})}setCallback(t){this.callback=t}sendExecuteRequest(t){this.queue.next(_e(wi,{payload:{value:t,case:"executeRequest"}}))}useHeartbeat(t,{streamID:r,heartbeat:s}){return new ve(l=>{const _=di(t,"message").pipe(hr(()=>t.readyState===WebSocket.OPEN),Re(a=>No(a.data)),Re(a=>a.pong),Me(a=>a!==void 0),Re(a=>({receivedAt:BigInt(Date.now()),pong:a}))),m=(s==="INITIAL"?Ut(0):Ut(0,Tu)).pipe(hr(()=>t.readyState===WebSocket.OPEN),Re(()=>{const a={timestamp:BigInt(Date.now())};return _e(wi,{ping:a})}),nt(async a=>(await Fo({req:a,interceptors:this.interceptors,socket:t}),a)),Re(a=>a.ping)).pipe(Me(a=>(a==null?void 0:a.timestamp)!==void 0),nt(a=>Bl(_.pipe(Me(h=>h.pong.timestamp===a.timestamp),Ps(1),Re(h=>{const f=a.timestamp,u=h.receivedAt;return Number(u-f)})),Ut(gr).pipe(Re(()=>{throw new Error(`Pong not received within ${gr}ms for stream ${r}`)}))).pipe(fn(h=>(this._latencies.next({streamID:r,latency:gr,readyState:t.readyState,updatedAt:BigInt(Date.now())}),console.log(new Date,"Ping deadline exceeded",h.message),al(null))))),Tl(()=>{this._latencies.next({streamID:r,latency:-1,readyState:t.readyState,updatedAt:BigInt(Date.now())})}),Ol(a=>{a!==null&&this._latencies.next({streamID:r,latency:a,readyState:t.readyState,updatedAt:BigInt(Date.now())})})),i=[];return i.push(m.subscribe({error:a=>{console.error("Unexpected error sending heartbeat",a)}})),l.next(t),()=>{i.forEach(a=>a.unsubscribe())}})}connect(t="CONTINUOUS"){const r=Du(),s=this.latencies.pipe(Re(l=>{const _=l.get(r);return _===void 0?null:_}),hr(l=>(l==null?void 0:l.readyState)===WebSocket.OPEN));return this.reconnect.next({streamID:r,heartbeat:t}),s}close(){this.reconnect.complete(),this.queue.complete(),this._latencies.complete(),this.subscriptions.forEach(t=>t.unsubscribe())}}function No(e){const t=JSON.parse(e);return iu(_u,t)}async function Fo({req:e,interceptors:t,socket:r,knownID:s,runID:l}){s&&(e.knownId=s),l&&(e.runId=l);const _={stream:!1,message:{},method:{},service:{},requestMethod:"UPGRADE",url:r.url,signal:new AbortController().signal,header:new Headers,contextValues:{}};let m=async a=>({stream:!1,message:{},method:{},service:{},header:a.header});for(const a of t.concat().reverse())m=a(m);const i=(await m(_)).header.get("Authorization");i&&e&&(e.authorization=i),r.send(JSON.stringify(zh(wi,e)))}function Du(){return xu().replace(/-/g,"")}function Ou(){return`run_${ku()}`}var Nu=Object.defineProperty,Fu=Object.getOwnPropertyDescriptor,Fa=e=>{throw TypeError(e)},Ze=(e,t,r,s)=>{for(var l=s>1?void 0:s?Fu(t,r):t,_=e.length-1,m;_>=0;_--)(m=e[_])&&(l=(s?m(t,r,l):m(l))||l);return s&&l&&Nu(t,r,l),l},ls=(e,t,r)=>t.has(e)||Fa("Cannot "+r),oe=(e,t,r)=>(ls(e,t,"read from private field"),t.get(e)),vr=(e,t,r)=>t.has(e)?Fa("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Tr=(e,t,r,s)=>(ls(e,t,"write to private field"),t.set(e,r),r),Ae=(e,t,r)=>(ls(e,t,"access private method"),r),Ce,Pe,ct,Ee,Ma,ds,Pa,Ei,Lr,ki,Ua,Va;const Mu="runme-console";let Ue=class extends we{constructor(){super(),vr(this,Ee),this.disposables=[],vr(this,Ce),vr(this,Pe,[]),vr(this,ct,{rows:34,cols:100,x:0,y:0}),this.takeFocus=!0,this.view={theme:"dark",fontFamily:"monospace",fontSize:12,cursorStyle:"block",cursorBlink:!0,cursorWidth:1,smoothScrollDuration:0,scrollback:4e3},this.commands=[],this.interceptors=[],Ae(this,Ee,Va).call(this)}applyThemeStyles(){this.consoleView&&this.consoleView.applyThemeStyles()}connectedCallback(){if(super.connectedCallback(),!this.id)throw new Error("No id provided to terminal!");Ae(this,Ee,Ma).call(this),Ae(this,Ee,Ei).call(this),Ae(this,Ee,ki).call(this)}disconnectedCallback(){super.disconnectedCallback(),Ae(this,Ee,Lr).call(this),this.disposables.forEach(({dispose:e})=>e())}updated(e){super.updated(e),this.consoleView&&Ae(this,Ee,ds).call(this),(e.has("id")||e.has("stream")||e.has("commands"))&&(Ae(this,Ee,Ei).call(this),Ae(this,Ee,ki).call(this))}firstUpdated(e){super.firstUpdated(e)}render(){return K`<div></div>`}dispose(){Ae(this,Ee,Lr).call(this),this.disposables.forEach(({dispose:e})=>e())}};Ce=new WeakMap;Pe=new WeakMap;ct=new WeakMap;Ee=new WeakSet;Ma=function(){this.shadowRoot&&(this.consoleView=document.createElement("console-view"),Ae(this,Ee,ds).call(this),this.shadowRoot.appendChild(this.consoleView),Ae(this,Ee,Pa).call(this))};ds=function(){this.consoleView&&(this.consoleView.setAttribute("id",this.id),this.consoleView.setAttribute("buttons","false"),this.consoleView.setAttribute("takeFocus",this.takeFocus.toString()),this.consoleView.setAttribute("theme",this.view.theme),this.view.fontFamily&&this.consoleView.setAttribute("fontFamily",this.view.fontFamily),this.view.fontSize&&this.consoleView.setAttribute("fontSize",this.view.fontSize.toString()),this.view.cursorStyle&&this.consoleView.setAttribute("cursorStyle",this.view.cursorStyle),this.view.cursorBlink&&this.consoleView.setAttribute("cursorBlink",this.view.cursorBlink.toString()),this.view.cursorWidth&&this.consoleView.setAttribute("cursorWidth",this.view.cursorWidth.toString()),this.view.smoothScrollDuration&&this.consoleView.setAttribute("smoothScrollDuration",this.view.smoothScrollDuration.toString()),this.view.scrollback&&this.consoleView.setAttribute("scrollback",this.view.scrollback.toString()),this.initialContent&&this.consoleView.setAttribute("initialContent",this.initialContent),this.initialRows!==void 0&&this.consoleView.setAttribute("initialRows",this.initialRows.toString()))};Pa=function(){if(!this.consoleView)return;const e=t=>r=>{this.dispatchEvent(new CustomEvent(t,{detail:r.detail}))};this.consoleView.addEventListener("stdout",e("stdout")),this.consoleView.addEventListener("stderr",e("stderr")),this.consoleView.addEventListener("exitcode",e("exitcode")),this.consoleView.addEventListener("pid",e("pid")),this.consoleView.addEventListener("mimetype",e("mimetype"))};Ei=function(){if(oe(this,Ce)||!this.stream)return;const e=this.stream.knownID??this.id;if(!e||!this.stream.runID||!this.stream.runnerEndpoint)throw new Error("Missing required stream properties");Tr(this,Ce,new Na({knownID:e,runID:this.stream.runID,sequence:this.stream.sequence??0,options:{runnerEndpoint:this.stream.runnerEndpoint,autoReconnect:this.stream.reconnect,interceptors:this.interceptors??[]}}));const t=oe(this,Ce).connect().subscribe();oe(this,Pe).push(()=>t.unsubscribe());const r=oe(this,Ce).stdout.subscribe(i=>{this.dispatchEvent(new CustomEvent("stdout",{detail:i})),this.consoleView&&this.consoleView.terminal&&this.consoleView.terminal.write(i)}),s=oe(this,Ce).stderr.subscribe(i=>{this.dispatchEvent(new CustomEvent("stderr",{detail:i}))}),l=oe(this,Ce).exitCode.subscribe(i=>{this.dispatchEvent(new CustomEvent("exitcode",{detail:i})),Ae(this,Ee,Lr).call(this)}),_=oe(this,Ce).pid.subscribe(i=>{this.dispatchEvent(new CustomEvent("pid",{detail:i}))}),m=oe(this,Ce).mimeType.subscribe(i=>{this.dispatchEvent(new CustomEvent("mimetype",{detail:i}))});oe(this,Pe).push(()=>r.unsubscribe()),oe(this,Pe).push(()=>s.unsubscribe()),oe(this,Pe).push(()=>l.unsubscribe()),oe(this,Pe).push(()=>_.unsubscribe()),oe(this,Pe).push(()=>m.unsubscribe())};Lr=function(){var e;oe(this,Pe).forEach(t=>{try{t()}catch{}}),Tr(this,Pe,[]),(e=oe(this,Ce))==null||e.close(),Tr(this,Ce,void 0)};ki=function(){var e;if(!oe(this,Ce)||!this.commands.length||!((e=this.stream)!=null&&e.runID))return;const t=Ae(this,Ee,Ua).call(this);t&&oe(this,Ce).sendExecuteRequest(t)};Ua=function(){var e,t,r,s,l;const _=((e=this.stream)==null?void 0:e.languageID)||"sh",m=new Set(["sh","shell","bash","zsh","fish","ksh","csh","tcsh","dash","powershell","pwsh","cmd","ash","elvish","xonsh"]).has(_),i=_e(Ci,{sessionStrategy:Vh.MOST_RECENT,storeStdoutInEnv:!0,config:{languageId:_,background:!1,fileExtension:"",env:[`RUNME_ID=${((t=this.stream)==null?void 0:t.knownID)??this.id}`,"RUNME_RUNNER=v2","TERM=xterm-256color"],interactive:!0,runId:(r=this.stream)==null?void 0:r.runID,knownId:((s=this.stream)==null?void 0:s.knownID)??this.id},winsize:_e(wa,oe(this,ct))});return this.commands.length===0?(i.config.mode=si.INLINE,i.config.source={case:"commands",value:_e(Io,{items:["zsh -l"]})}):m?(i.config.source={case:"commands",value:_e(Io,{items:this.commands})},i.config.mode=si.INLINE):(i.config.source={case:"script",value:this.commands.join(`
|
|
1777
|
-
`)},i.config.mode=si.FILE,i.config.fileExtension=((l=this.stream)==null?void 0:l.languageID)??""),i};Va=function(){const e=new TextEncoder,t={postMessage:r=>{var s,l;if(r.type===Q.terminalOpen||r.type===Q.terminalResize){const _=Number(r.output.terminalDimensions.columns),m=Number(r.output.terminalDimensions.rows);if(Number.isFinite(_)&&Number.isFinite(m)){if(oe(this,ct).cols===_&&oe(this,ct).rows===m)return;Tr(this,ct,_e(wa,{cols:_,rows:m,x:0,y:0}));const i=_e(Ci,{winsize:oe(this,ct)});(s=oe(this,Ce))==null||s.sendExecuteRequest(i)}}if(r.type===Q.terminalStdin){const _=e.encode(r.output.input),m=_e(Ci,{inputData:_});(l=oe(this,Ce))==null||l.sendExecuteRequest(m)}},onDidReceiveMessage:r=>{var s;(s=oe(this,Ce))==null||s.setCallback(r)}};try{_n(t)}catch{console.error("Failed to set context bridge")}};Ze([Y({type:String})],Ue.prototype,"id",2);Ze([Y({type:Boolean,converter:e=>e!=="false"})],Ue.prototype,"takeFocus",2);Ze([Y({type:Object})],Ue.prototype,"view",2);Ze([Y({type:Array})],Ue.prototype,"commands",2);Ze([Y({type:String})],Ue.prototype,"initialContent",2);Ze([Y({type:Number})],Ue.prototype,"initialRows",2);Ze([Y({type:Object})],Ue.prototype,"stream",2);Ze([Y({attribute:!1})],Ue.prototype,"interceptors",2);Ue=Ze([xe(Mu)],Ue);var Pu=Object.defineProperty,Uu=Object.getOwnPropertyDescriptor,Wr=(e,t,r,s)=>{for(var l=s>1?void 0:s?Uu(t,r):t,_=e.length-1,m;_>=0;_--)(m=e[_])&&(l=(s?m(t,r,l):m(l))||l);return s&&l&&Pu(t,r,l),l};let It=class extends we{constructor(){super(...arguments),this.columns=[],this.rows=[],this.renderer=(e,t)=>K`${e[t]}`,this.displayable=()=>!0,this.hasErrors=()=>!1}get heading(){var e,t;return(e=this.columns)!=null&&e.length?K`
|
|
1778
|
-
<thead>
|
|
1779
|
-
<tr>
|
|
1780
|
-
${(t=this.columns)==null?void 0:t.map(r=>{if(typeof r=="string")return K`<th>${r}</th>`;if(typeof r=="object"){const{text:s,colspan:l}=r;return K`<th colspan="${l||1}">${s}</th>`}})}
|
|
1781
|
-
</tr>
|
|
1782
|
-
</thead>
|
|
1783
|
-
`:fe}render(){var e,t,r;return!((e=this.rows)!=null&&e.length)&&!((t=this.columns)!=null&&t.length)?fe:K`<table>
|
|
1784
|
-
${this.heading}
|
|
1785
|
-
<tbody>
|
|
1786
|
-
${(r=this.rows)==null?void 0:r.map(s=>K`<tr
|
|
1787
|
-
class="${ue(this.hasErrors&&this.hasErrors(s),()=>"row-error",()=>"")}"
|
|
1788
|
-
>
|
|
1789
|
-
${Object.keys(s).map(l=>{var _;return ue((_=this.displayable)==null?void 0:_.call(this,s,l),()=>{var m;return K`<td>${((m=this.renderer)==null?void 0:m.call(this,s,l))||s[l]}</td>`},()=>fe)})}
|
|
1790
|
-
</tr>`)}
|
|
1791
|
-
</tbody>
|
|
1792
|
-
</table>`}};It.styles=Ne`
|
|
1793
|
-
:host {
|
|
1794
|
-
width: 100%;
|
|
1795
|
-
}
|
|
1796
|
-
|
|
1797
|
-
.icon {
|
|
1798
|
-
width: 13px;
|
|
1799
|
-
margin: 0 5px 0 -5px;
|
|
1800
|
-
padding: 0;
|
|
1801
|
-
}
|
|
1802
|
-
|
|
1803
|
-
table {
|
|
1804
|
-
box-sizing: border-box;
|
|
1805
|
-
margin: 0px;
|
|
1806
|
-
padding: 10px;
|
|
1807
|
-
font-weight: 400;
|
|
1808
|
-
line-height: 20px;
|
|
1809
|
-
text-indent: 0px;
|
|
1810
|
-
vertical-align: baseline;
|
|
1811
|
-
background-color: var(--vscode-editor-inactiveSelectionBackground);
|
|
1812
|
-
width: 100%;
|
|
1813
|
-
border-collapse: collapse;
|
|
1814
|
-
}
|
|
1815
|
-
|
|
1816
|
-
tbody tr {
|
|
1817
|
-
text-align: left;
|
|
1818
|
-
}
|
|
1819
|
-
|
|
1820
|
-
thead {
|
|
1821
|
-
background-color: var(--vscode-editor-inactiveSelectionBackground);
|
|
1822
|
-
font-weight: 500;
|
|
1823
|
-
line-height: 20px;
|
|
1824
|
-
height: 20px;
|
|
1825
|
-
border: solid 1px var(--vscode-editorInlayHint-foreground);
|
|
1826
|
-
border-left: none;
|
|
1827
|
-
border-right: none;
|
|
1828
|
-
}
|
|
1829
|
-
|
|
1830
|
-
thead tr {
|
|
1831
|
-
background-color: var(--vscode-editor-inactiveSelectionBackground);
|
|
1832
|
-
color: var(--vscode-editor-selectionForeground);
|
|
1833
|
-
text-align: left;
|
|
1834
|
-
}
|
|
1835
|
-
|
|
1836
|
-
th {
|
|
1837
|
-
font-size: 10px;
|
|
1838
|
-
cursor: pointer;
|
|
1839
|
-
padding: 5px;
|
|
1840
|
-
}
|
|
1841
|
-
|
|
1842
|
-
tbody tr {
|
|
1843
|
-
background-color: var(--vscode-editor-background);
|
|
1844
|
-
border-bottom: solid 1px var(--vscode-editor-inactiveSelectionBackground);
|
|
1845
|
-
}
|
|
1846
|
-
|
|
1847
|
-
.label {
|
|
1848
|
-
padding: 2px;
|
|
1849
|
-
font-size: 8px;
|
|
1850
|
-
text-transform: lowercase;
|
|
1851
|
-
}
|
|
1852
|
-
|
|
1853
|
-
tbody tr {
|
|
1854
|
-
cursor: pointer;
|
|
1855
|
-
}
|
|
1856
|
-
|
|
1857
|
-
tbody tr:hover {
|
|
1858
|
-
background-color: var(--vscode-editor-inactiveSelectionBackground);
|
|
1859
|
-
color: var(--vscode-editor-selectionForeground);
|
|
1860
|
-
}
|
|
1861
|
-
|
|
1862
|
-
.actions {
|
|
1863
|
-
display: flex;
|
|
1864
|
-
align-items: center;
|
|
1865
|
-
flex-wrap: wrap;
|
|
1866
|
-
justify-content: center;
|
|
1867
|
-
}
|
|
1868
|
-
|
|
1869
|
-
.flex-column {
|
|
1870
|
-
display: flex;
|
|
1871
|
-
flex-wrap: nowrap;
|
|
1872
|
-
flex-direction: column;
|
|
1873
|
-
justify-content: space-around;
|
|
1874
|
-
align-items: stretch;
|
|
1875
|
-
}
|
|
1876
|
-
|
|
1877
|
-
.list {
|
|
1878
|
-
list-style: none;
|
|
1879
|
-
padding: 0;
|
|
1880
|
-
margin: 0;
|
|
1881
|
-
}
|
|
1882
|
-
|
|
1883
|
-
.grouped-row {
|
|
1884
|
-
display: flex;
|
|
1885
|
-
flex-wrap: wrap;
|
|
1886
|
-
flex-direction: column;
|
|
1887
|
-
}
|
|
1888
|
-
|
|
1889
|
-
.long-word {
|
|
1890
|
-
max-width: 100px;
|
|
1891
|
-
overflow: hidden;
|
|
1892
|
-
text-overflow: ellipsis;
|
|
1893
|
-
white-space: normal;
|
|
1894
|
-
}
|
|
1895
|
-
|
|
1896
|
-
vscode-button {
|
|
1897
|
-
color: var(--vscode-button-foreground);
|
|
1898
|
-
background-color: var(--vscode-button-background);
|
|
1899
|
-
transform: scale(0.9);
|
|
1900
|
-
}
|
|
1901
|
-
vscode-button:hover {
|
|
1902
|
-
background: var(--vscode-button-hoverBackground);
|
|
1903
|
-
}
|
|
1904
|
-
|
|
1905
|
-
tbody tr td {
|
|
1906
|
-
max-width: 100px;
|
|
1907
|
-
text-overflow: ellipsis;
|
|
1908
|
-
overflow: hidden;
|
|
1909
|
-
text-wrap: nowrap;
|
|
1910
|
-
}
|
|
1911
|
-
|
|
1912
|
-
.row-error {
|
|
1913
|
-
background-color: var(--vscode-inputValidation-errorBackground);
|
|
1914
|
-
border: solid 2px var(--vscode-inputValidation-errorBorder);
|
|
1915
|
-
}
|
|
1916
|
-
|
|
1917
|
-
.flex {
|
|
1918
|
-
display: flex;
|
|
1919
|
-
align-items: baseline;
|
|
1920
|
-
gap: 1px;
|
|
1921
|
-
}
|
|
1922
|
-
|
|
1923
|
-
.status {
|
|
1924
|
-
display: flex;
|
|
1925
|
-
align-items: center;
|
|
1926
|
-
flex-wrap: wrap;
|
|
1927
|
-
place-content: stretch space-evenly;
|
|
1928
|
-
}
|
|
1929
|
-
|
|
1930
|
-
.flex-center {
|
|
1931
|
-
align-items: center;
|
|
1932
|
-
}
|
|
1933
|
-
`;Wr([Y({type:Array})],It.prototype,"columns",2);Wr([Y({type:Array})],It.prototype,"rows",2);Wr([Y({type:Object})],It.prototype,"renderer",2);It=Wr([xe("table-view")],It);const Vu=K`
|
|
1934
|
-
<svg
|
|
1935
|
-
width="16"
|
|
1936
|
-
height="16"
|
|
1937
|
-
viewBox="0 0 16 16"
|
|
1938
|
-
fill="currentColor"
|
|
1939
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1940
|
-
>
|
|
1941
|
-
<path
|
|
1942
|
-
fill-rule="evenodd"
|
|
1943
|
-
clip-rule="evenodd"
|
|
1944
|
-
d="M14.4318 3.3232L5.96175 13.3232L5.17104 13.2874L1.82104 8.5174L2.63939 7.94268L5.61722 12.1827L13.6687 2.67688L14.4318 3.3232Z"
|
|
1945
|
-
fill="currentColor"
|
|
1946
|
-
/>
|
|
1947
|
-
</svg>
|
|
1948
|
-
`,Hu=K`
|
|
1949
|
-
<svg
|
|
1950
|
-
width="16"
|
|
1951
|
-
height="16"
|
|
1952
|
-
viewBox="0 0 16 16"
|
|
1953
|
-
fill="currentColor"
|
|
1954
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1955
|
-
>
|
|
1956
|
-
<path
|
|
1957
|
-
fill-rule="evenodd"
|
|
1958
|
-
clip-rule="evenodd"
|
|
1959
|
-
d="M8.00024 2C6.50024 2 5.20024 2.4 4.10024 3.2L4.90024 3.9C5.80024 3.3 6.80024 3 8.00024 3C11.3002 3 14.0002 5.7 14.0002 9H15.0002C15.0002 5.1 11.9002 2 8.00024 2ZM1.00024 3.00005L2.60024 4.50005C1.60024 5.70005 1.00024 7.30005 1.00024 9.00005H2.00024C2.00024 7.50005 2.50024 6.20005 3.40024 5.20005L5.60024 7.20005C5.20024 7.70005 5.00024 8.30005 5.00024 9.00005C5.00024 10.7 6.30024 12 8.00024 12C8.80024 12 9.50024 11.7 10.0002 11.2L13.0002 14L13.7002 13.3L1.70024 2.30005L1.00024 3.00005ZM6.30024 7.90005L9.20024 10.6C8.90024 10.8 8.50024 11 8.00024 11C6.90024 11 6.00024 10.1 6.00024 9.00005C6.00024 8.60005 6.10024 8.20005 6.30024 7.90005ZM11.0002 9.5L10.0002 8.6C9.80024 7.8 9.10024 7.1 8.20024 7L7.20024 6.1C7.50024 6 7.70024 6 8.00024 6C9.70024 6 11.0002 7.3 11.0002 9V9.5Z"
|
|
1960
|
-
fill="currentColor"
|
|
1961
|
-
/>
|
|
1962
|
-
</svg>
|
|
1963
|
-
`;var $u=Object.defineProperty,Wu=Object.getOwnPropertyDescriptor,hs=(e,t,r,s)=>{for(var l=s>1?void 0:s?Wu(t,r):t,_=e.length-1,m;_>=0;_--)(m=e[_])&&(l=(s?m(t,r,l):m(l))||l);return s&&l&&$u(t,r,l),l};let Qt=class extends we{render(){return K`<div class="tooltip">
|
|
1964
|
-
<div
|
|
1965
|
-
.class="${ue(this.classList,()=>this.classList,()=>"")}"
|
|
1966
|
-
>
|
|
1967
|
-
${this.value}
|
|
1968
|
-
</div>
|
|
1969
|
-
<div class="tooltiptext">${this.tooltipText}</div>
|
|
1970
|
-
</div>`}};Qt.styles=Ne`
|
|
1971
|
-
.tooltip .tooltiptext {
|
|
1972
|
-
background-color: var(--vscode-notifications-background);
|
|
1973
|
-
box-shadow: 2px 2px 4px -2px var(--vscode-notifications-border);
|
|
1974
|
-
display: none;
|
|
1975
|
-
padding: 5px;
|
|
1976
|
-
color: var(--vscode-notifications-foreground);
|
|
1977
|
-
border-radius: 5px;
|
|
1978
|
-
position: absolute;
|
|
1979
|
-
z-index: 100;
|
|
1980
|
-
box-shadow: var(--vscode-inputValidation-errorBorder) 0px 0px 8px 2px;
|
|
1981
|
-
}
|
|
1982
|
-
|
|
1983
|
-
.tooltip .tooltiptext::after {
|
|
1984
|
-
content: ' ';
|
|
1985
|
-
position: absolute;
|
|
1986
|
-
bottom: 100%; /* At the top of the tooltip */
|
|
1987
|
-
left: 10px;
|
|
1988
|
-
margin-left: -5px;
|
|
1989
|
-
border-width: 5px;
|
|
1990
|
-
border-style: solid;
|
|
1991
|
-
border-color: transparent transparent
|
|
1992
|
-
var(--vscode-notifications-background) transparent;
|
|
1993
|
-
}
|
|
1994
|
-
|
|
1995
|
-
.tooltip .tooltiptext {
|
|
1996
|
-
transition-delay: 1s;
|
|
1997
|
-
}
|
|
1998
|
-
|
|
1999
|
-
.tooltip:hover .tooltiptext {
|
|
2000
|
-
display: block;
|
|
2001
|
-
}
|
|
2002
|
-
|
|
2003
|
-
.tooltip:not(:hover) .tooltiptext {
|
|
2004
|
-
transition-delay: 0s;
|
|
2005
|
-
}
|
|
2006
|
-
|
|
2007
|
-
.flex {
|
|
2008
|
-
display: flex;
|
|
2009
|
-
flex-direction: column;
|
|
2010
|
-
}
|
|
2011
|
-
|
|
2012
|
-
.required {
|
|
2013
|
-
font-weight: 600;
|
|
2014
|
-
}
|
|
2015
|
-
|
|
2016
|
-
.optional {
|
|
2017
|
-
font-weight: 400;
|
|
2018
|
-
}
|
|
2019
|
-
`;hs([Y({type:String})],Qt.prototype,"tooltipText",2);hs([Y({type:String})],Qt.prototype,"value",2);Qt=hs([xe("tooltip-text")],Qt);var Gu=Object.defineProperty,ju=Object.getOwnPropertyDescriptor,Rt=(e,t,r,s)=>{for(var l=s>1?void 0:s?ju(t,r):t,_=e.length-1,m;_>=0;_--)(m=e[_])&&(l=(s?m(t,r,l):m(l))||l);return s&&l&&Gu(t,r,l),l};let et=class extends we{constructor(){super(...arguments),this.disposables=[],this.displaySecret=!1,this._copied=!1}onCopy(e){e.defaultPrevented&&e.preventDefault();const t=new CustomEvent("onCopy");this.dispatchEvent(t),this._copied=!0,setTimeout(()=>this._copied=!1,1e3)}toggleVisibility(){this.displaySecret=!this.displaySecret}dispose(){this.disposables.forEach(e=>e.dispose())}render(){const e=[void 0,$e.MASKED,$e.LITERAL,$e.UNSPECIFIED].includes(this.status);return K`
|
|
2020
|
-
<div class="secret-container">
|
|
2021
|
-
${ue(this.displaySecret,()=>K`<span class="secret-text">${this.value}</span>`,()=>ue(this.maskedValue,()=>K`<span class="secret-text"
|
|
2022
|
-
>${this.maskedValue}</span
|
|
2023
|
-
>`,()=>Array.from({length:20},(t,r)=>r+1).map(()=>"*").join("")))}
|
|
2024
|
-
<div class="actions">
|
|
2025
|
-
${ue(e,()=>K``,()=>ue(this.displaySecret,()=>K` <vscode-button
|
|
2026
|
-
appearance="icon"
|
|
2027
|
-
class="cursor-pointer"
|
|
2028
|
-
@click=${this.toggleVisibility}
|
|
2029
|
-
>
|
|
2030
|
-
${Hu}
|
|
2031
|
-
</vscode-button>`,()=>K` <vscode-button
|
|
2032
|
-
appearance="icon"
|
|
2033
|
-
class="cursor-pointer"
|
|
2034
|
-
@click=${this.toggleVisibility}
|
|
2035
|
-
>
|
|
2036
|
-
${Sn}
|
|
2037
|
-
</vscode-button>`))}
|
|
2038
|
-
${ue([$e.LITERAL,$e.HIDDEN].includes(this.status),()=>K` <vscode-button
|
|
2039
|
-
appearance="icon"
|
|
2040
|
-
class="cursor-pointer"
|
|
2041
|
-
@click=${this.onCopy}
|
|
2042
|
-
>${ue(this._copied,()=>K`${Vu}`,()=>K`${Wo}`)}</vscode-button
|
|
2043
|
-
>`,()=>K``)}
|
|
2044
|
-
</div>
|
|
2045
|
-
</div>
|
|
2046
|
-
`}};et.styles=Ne`
|
|
2047
|
-
vscode-button {
|
|
2048
|
-
color: var(--vscode-button-foreground);
|
|
2049
|
-
background-color: var(--vscode-button-background);
|
|
2050
|
-
transform: scale(0.9);
|
|
2051
|
-
}
|
|
2052
|
-
vscode-button:hover {
|
|
2053
|
-
background: var(--vscode-button-hoverBackground);
|
|
2054
|
-
}
|
|
2055
|
-
|
|
2056
|
-
.secret-container {
|
|
2057
|
-
display: flex;
|
|
2058
|
-
gap: 1px;
|
|
2059
|
-
justify-content: space-between;
|
|
2060
|
-
}
|
|
2061
|
-
|
|
2062
|
-
.secret-text {
|
|
2063
|
-
overflow: hidden;
|
|
2064
|
-
text-overflow: ellipsis;
|
|
2065
|
-
white-space: nowrap;
|
|
2066
|
-
max-height: 100px;
|
|
2067
|
-
}
|
|
2068
|
-
|
|
2069
|
-
.actions {
|
|
2070
|
-
display: flex;
|
|
2071
|
-
gap: 1px;
|
|
2072
|
-
padding-right: 4px;
|
|
2073
|
-
}
|
|
2074
|
-
|
|
2075
|
-
.cursor-pointer {
|
|
2076
|
-
cursor: pointer;
|
|
2077
|
-
}
|
|
2078
|
-
`;Rt([Y({type:String})],et.prototype,"value",2);Rt([Y({type:Number})],et.prototype,"status",2);Rt([Y({type:Boolean})],et.prototype,"displaySecret",2);Rt([Y({type:String})],et.prototype,"maskedValue",2);Rt([pc()],et.prototype,"_copied",2);et=Rt([xe("env-viewer")],et);K`
|
|
2079
|
-
<svg
|
|
2080
|
-
width="16"
|
|
2081
|
-
height="16"
|
|
2082
|
-
viewBox="0 0 16 16"
|
|
2083
|
-
fill="none"
|
|
2084
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
2085
|
-
>
|
|
2086
|
-
<path
|
|
2087
|
-
fill-rule="evenodd"
|
|
2088
|
-
clip-rule="evenodd"
|
|
2089
|
-
d="M8.60012 0.999985C10.2001 1.09999 11.7001 1.89999 12.8001 2.99999C14.1001 4.39999 14.8001 6.09999 14.8001 8.09999C14.8001 9.69999 14.2001 11.2 13.2001 12.5C12.2001 13.7 10.8001 14.6 9.20012 14.9C7.60012 15.2 6.00012 15 4.60012 14.2C3.20012 13.4 2.10012 12.2 1.50012 10.7C0.900119 9.19999 0.80012 7.49999 1.30012 5.99999C1.80012 4.39999 2.70012 3.09999 4.10012 2.19999C5.40012 1.29999 7.00012 0.899985 8.60012 0.999985ZM9.10012 13.9C10.4001 13.6 11.6001 12.9 12.5001 11.8C13.3001 10.7 13.8001 9.39999 13.7001 7.99999C13.7001 6.39999 13.1001 4.79999 12.0001 3.69999C11.0001 2.69999 9.80012 2.09999 8.40012 1.99999C7.10012 1.89999 5.70012 2.19999 4.60012 2.99999C3.50012 3.79999 2.70012 4.89999 2.30012 6.29999C1.90012 7.59999 1.90012 8.99999 2.50012 10.3C3.10012 11.6 4.00012 12.6 5.20012 13.3C6.40012 14 7.80012 14.2 9.10012 13.9ZM7.90011 7.5L10.3001 5L11.0001 5.7L8.60011 8.2L11.0001 10.7L10.3001 11.4L7.90011 8.9L5.50011 11.4L4.80011 10.7L7.20011 8.2L4.80011 5.7L5.50011 5L7.90011 7.5Z"
|
|
2090
|
-
fill="#A1260D"
|
|
2091
|
-
/>
|
|
2092
|
-
</svg>
|
|
2093
|
-
`;const Zu=(e,t)=>K`
|
|
2094
|
-
<svg
|
|
2095
|
-
width="${t}px"
|
|
2096
|
-
height="${e}px"
|
|
2097
|
-
viewBox="0 0 16 16"
|
|
2098
|
-
fill="none"
|
|
2099
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
2100
|
-
>
|
|
2101
|
-
<path
|
|
2102
|
-
fill-rule="evenodd"
|
|
2103
|
-
clip-rule="evenodd"
|
|
2104
|
-
d="M8.60012 0.999985C10.2001 1.09999 11.7001 1.89999 12.8001 2.99999C14.1001 4.39999 14.8001 6.09999 14.8001 8.09999C14.8001 9.69999 14.2001 11.2 13.2001 12.5C12.2001 13.7 10.8001 14.6 9.20012 14.9C7.60012 15.2 6.00012 15 4.60012 14.2C3.20012 13.4 2.10012 12.2 1.50012 10.7C0.900119 9.19999 0.80012 7.49999 1.30012 5.99999C1.80012 4.39999 2.70012 3.09999 4.10012 2.19999C5.40012 1.29999 7.00012 0.899985 8.60012 0.999985ZM9.10012 13.9C10.4001 13.6 11.6001 12.9 12.5001 11.8C13.3001 10.7 13.8001 9.39999 13.7001 7.99999C13.7001 6.39999 13.1001 4.79999 12.0001 3.69999C11.0001 2.69999 9.80012 2.09999 8.40012 1.99999C7.10012 1.89999 5.70012 2.19999 4.60012 2.99999C3.50012 3.79999 2.70012 4.89999 2.30012 6.29999C1.90012 7.59999 1.90012 8.99999 2.50012 10.3C3.10012 11.6 4.00012 12.6 5.20012 13.3C6.40012 14 7.80012 14.2 9.10012 13.9ZM7.90011 7.5L10.3001 5L11.0001 5.7L8.60011 8.2L11.0001 10.7L10.3001 11.4L7.90011 8.9L5.50011 11.4L4.80011 10.7L7.20011 8.2L4.80011 5.7L5.50011 5L7.90011 7.5Z"
|
|
2105
|
-
fill="#A1260D"
|
|
2106
|
-
/>
|
|
2107
|
-
</svg>
|
|
2108
|
-
`;var zu=Object.defineProperty,Ku=Object.getOwnPropertyDescriptor,Ha=e=>{throw TypeError(e)},$a=(e,t,r,s)=>{for(var l=s>1?void 0:s?Ku(t,r):t,_=e.length-1,m;_>=0;_--)(m=e[_])&&(l=(s?m(t,r,l):m(l))||l);return s&&l&&zu(t,r,l),l},Yu=(e,t,r)=>t.has(e)||Ha("Cannot "+r),Xu=(e,t,r)=>t.has(e)?Ha("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),vt=(e,t,r)=>(Yu(e,t,"access private method"),r),Xe,Wa,Ga,Mt;const Ju="__",qu=[{text:"Name"},{text:"Value"},{text:"Description"},{text:"Spec"},{text:"Source"},{text:"Updated"}],Qu=["resolvedValue","errors","status","specClass"];let Bi=class extends we{constructor(){super(...arguments),Xu(this,Xe),this.disposables=[]}dispose(){this.disposables.forEach(({dispose:e})=>e())}render(){var e;return vt(this,Xe,Ga).call(this),K` <div>
|
|
2109
|
-
<table-view
|
|
2110
|
-
.columns="${qu}"
|
|
2111
|
-
.rows="${(e=this.variables)==null?void 0:e.map(t=>({name:t.name,status:t.status,originalValue:t.originalValue,description:t.description,spec:t.spec,specClass:t.isRequired?"required":"optional",source:t.origin,updatedAt:Hl(new Date(t.updateTime)),resolvedValue:t.resolvedValue,errors:t.errors}))}"
|
|
2112
|
-
.displayable="${(t,r)=>!Qu.includes(r)}"
|
|
2113
|
-
.hasErrors="${t=>{var r;return!(!((r=t.errors)!=null&&r.length)||t.name===Ju)}}"
|
|
2114
|
-
.renderer="${(t,r)=>{switch(r){case"originalValue":const s=t.status===$e.LITERAL;let l=t.status===$e.MASKED?`${t.resolvedValue} [masked]`:t.resolvedValue;return t.status===$e.UNSPECIFIED?l="[unset]":t.status===$e.HIDDEN&&(l="[hidden]"),l=l.replace(/\n/g," ").replace(/\r/g,""),K`<env-viewer
|
|
2115
|
-
.displaySecret="${s}"
|
|
2116
|
-
.value="${t.originalValue}"
|
|
2117
|
-
.maskedValue="${vt(this,Xe,Mt).call(this,t,r,()=>l)}"
|
|
2118
|
-
.status="${t.status}"
|
|
2119
|
-
@onCopy="${async()=>vt(this,Xe,Wa).call(this,t.originalValue)}"
|
|
2120
|
-
></env-viewer>`;case"updatedAt":return vt(this,Xe,Mt).call(this,t,r,()=>t[r]?$l(new Date(t[r])):"");case"spec":return vt(this,Xe,Mt).call(this,t,r,()=>K`<span class="${t.specClass}">${t[r]}</span>`);default:return vt(this,Xe,Mt).call(this,t,r,()=>t[r])}}}"
|
|
2121
|
-
></table-view>
|
|
2122
|
-
</div>`}};Xe=new WeakSet;Wa=function(e){return navigator.clipboard.writeText(e)};Ga=function(){var e;(e=this.variables)==null||e.sort((t,r)=>t.errors.length>0?-1:r.errors.length>0?1:0)};Mt=function(e,t,r){var s;const l=t==="name"?K`${Zu(10,10)}`:K``;return(s=e.errors)!=null&&s.length?K`<div class="flex">
|
|
2123
|
-
<tooltip-text
|
|
2124
|
-
.tooltipText="${K`<div class="flex">
|
|
2125
|
-
${e.errors.map(_=>K`<span>${l}${_.message}</span>`)}
|
|
2126
|
-
</div>`}"
|
|
2127
|
-
.value="${K`${l} ${r()}`}"
|
|
2128
|
-
></tooltip-text>
|
|
2129
|
-
</div>`:t==="spec"?K`<div class="flex">
|
|
2130
|
-
<tooltip-text
|
|
2131
|
-
.tooltipText="${K`<div class="flex">
|
|
2132
|
-
Info: Variable is ${e.specClass}
|
|
2133
|
-
</div>`}"
|
|
2134
|
-
.value="${r()}"
|
|
2135
|
-
></tooltip-text>
|
|
2136
|
-
</div>`:K`${r()}`};$a([Y({type:Array})],Bi.prototype,"variables",2);Bi=$a([xe("env-store")],Bi);function ef({cellID:e,runID:t,sequence:r,languageID:s,commands:l,content:_,runner:m,settings:i={},onStdout:a,onStderr:h,onExitCode:f,onPid:u,onMimeType:v}){const{rows:y=20,className:E,fontSize:p=12,fontFamily:o="monospace",takeFocus:c=!0,scrollToFit:n=!0}=i,d=lr.useRef(null),g=lr.useMemo(()=>({id:e,takeFocus:c,initialContent:_||"",initialRows:y,view:{theme:"dark",fontFamily:o||"monospace",fontSize:p||12,cursorStyle:"block",cursorBlink:!0,cursorWidth:1,smoothScrollDuration:0,scrollback:4e3}}),[e,o,p,c,n,y,_]),C=lr.useMemo(()=>({knownID:e,runID:t,sequence:r,languageID:s,runnerEndpoint:m.endpoint,reconnect:m.reconnect}),[e,t,r,s,m.endpoint,m.reconnect]);return lr.useEffect(()=>{const S=d.current;if(!S)return;const w=L=>a==null?void 0:a(L.detail),b=L=>h==null?void 0:h(L.detail),k=L=>f==null?void 0:f(L.detail),A=L=>u==null?void 0:u(L.detail),T=L=>v==null?void 0:v(L.detail);return S.addEventListener("stdout",w),S.addEventListener("stderr",b),S.addEventListener("exitcode",k),S.addEventListener("pid",A),S.addEventListener("mimetype",T),()=>{S.removeEventListener("stdout",w),S.removeEventListener("stderr",b),S.removeEventListener("exitcode",k),S.removeEventListener("pid",A),S.removeEventListener("mimetype",T)}},[a,h,f,u,v]),Za.jsx("div",{className:E,ref:S=>{if(!S||S.hasChildNodes())return;const w=document.createElement("runme-console");d.current=w,w.setAttribute("id",g.id),typeof g.takeFocus=="boolean"&&w.setAttribute("takeFocus",g.takeFocus?"true":"false"),g.view&&w.setAttribute("view",JSON.stringify(g.view)),g.initialRows!==void 0&&w.setAttribute("initialRows",g.initialRows.toString()),g.initialContent!==void 0&&w.setAttribute("initialContent",g.initialContent),C.runID&&w.setAttribute("stream",JSON.stringify(C)),w.interceptors=m.interceptors,w.commands=l,S.appendChild(w);const b=document.createElement("div");b.setAttribute("className","h-1"),S.appendChild(b),setTimeout(()=>{n&&!tf(b)&&b.scrollIntoView({behavior:"smooth"})},0)}})}function tf(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}exports.ClientMessages=Q;exports.Console=ef;exports.Heartbeat=Oa;exports.Streams=Na;exports.genRunID=Ou;exports.getContext=Ie;exports.setContext=_n;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react/jsx-runtime"),f=require("react"),H=require("@runmedev/renderers");function W({cellID:n,runID:o,sequence:v,languageID:b,commands:O,content:p,runner:c,settings:j={},streamCreator:w,onStdout:a,onStderr:l,onExitCode:d,onPid:u,onMimeType:m}){const{rows:h=20,className:N,fontSize:E=12,fontFamily:g="monospace",takeFocus:L=!0,scrollToFit:y=!0}=j,C=f.useRef(null),i=f.useMemo(()=>({id:n,takeFocus:L,initialContent:p||"",initialRows:h,view:{theme:"dark",fontFamily:g||"monospace",fontSize:E||12,cursorStyle:"block",cursorBlink:!0,cursorWidth:1,smoothScrollDuration:0,scrollback:4e3}}),[n,g,E,L,y,h,p]);console.log("Creating RunmeConsoleStream: rendering with cellID",n,"runID",o);const R=f.useMemo(()=>({knownID:n,runID:o,sequence:v,languageID:b,runnerEndpoint:c.endpoint,reconnect:c.reconnect}),[n,o,v,b,c.endpoint,c.reconnect]);return f.useEffect(()=>{const e=C.current;if(!e)return;const t=r=>a==null?void 0:a(r.detail),s=r=>l==null?void 0:l(r.detail),k=r=>d==null?void 0:d(r.detail),A=r=>u==null?void 0:u(r.detail),F=r=>m==null?void 0:m(r.detail);return e.addEventListener("stdout",t),e.addEventListener("stderr",s),e.addEventListener("exitcode",k),e.addEventListener("pid",A),e.addEventListener("mimetype",F),()=>{e.removeEventListener("stdout",t),e.removeEventListener("stderr",s),e.removeEventListener("exitcode",k),e.removeEventListener("pid",A),e.removeEventListener("mimetype",F)}},[a,l,d,u,m]),S.jsx("div",{className:N,ref:e=>{if(!e||e.hasChildNodes())return;const t=document.createElement("runme-console");C.current=t,t.setAttribute("id",i.id),typeof i.takeFocus=="boolean"&&t.setAttribute("takeFocus",i.takeFocus?"true":"false"),i.view&&t.setAttribute("view",JSON.stringify(i.view)),i.initialRows!==void 0&&t.setAttribute("initialRows",i.initialRows.toString()),i.initialContent!==void 0&&t.setAttribute("initialContent",i.initialContent),R.runID&&t.setAttribute("stream",JSON.stringify(R)),t.interceptors=c.interceptors,t.commands=O,w&&(t.StreamCreator=w),e.appendChild(t);const s=document.createElement("div");s.setAttribute("className","h-1"),e.appendChild(s),setTimeout(()=>{y&&!q(s)&&s.scrollIntoView({behavior:"smooth"})},0)}})}function q(n){const o=n.getBoundingClientRect();return o.top>=0&&o.left>=0&&o.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&o.right<=(window.innerWidth||document.documentElement.clientWidth)}exports.Console=W;Object.keys(H).forEach(n=>{n!=="default"&&!Object.prototype.hasOwnProperty.call(exports,n)&&Object.defineProperty(exports,n,{enumerable:!0,get:()=>H[n]})});
|