@runmedev/renderers 3.15.11 → 3.16.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/closeCellButton.d.ts.map +1 -1
- package/dist/components/console/actionButton.d.ts.map +1 -0
- package/dist/components/console/gistCell.d.ts.map +1 -0
- package/dist/components/console/index.d.ts +3 -0
- package/dist/components/console/index.d.ts.map +1 -0
- package/dist/components/console/open.d.ts.map +1 -0
- package/dist/components/console/runme.d.ts +49 -0
- package/dist/components/console/runme.d.ts.map +1 -0
- package/dist/components/console/saveButton.d.ts.map +1 -0
- package/dist/components/console/shareButton.d.ts.map +1 -0
- package/dist/components/{terminal/index.d.ts → console/view.d.ts} +5 -5
- package/dist/components/console/view.d.ts.map +1 -0
- package/dist/components/console/vscode.css.d.ts.map +1 -0
- package/dist/components/dropdownlist.d.ts.map +1 -1
- package/dist/components/env/store.d.ts +3 -3
- package/dist/components/env/store.d.ts.map +1 -1
- package/dist/components/envViewer.d.ts +2 -2
- package/dist/components/envViewer.d.ts.map +1 -1
- package/dist/components/icons/arrowLeft.d.ts.map +1 -1
- package/dist/components/icons/arrowUp.d.ts.map +1 -1
- package/dist/components/icons/artifactRegistry.d.ts.map +1 -1
- package/dist/components/icons/branch.d.ts.map +1 -1
- package/dist/components/icons/cloudLogs.d.ts.map +1 -1
- package/dist/components/icons/cloudRunIcon.d.ts.map +1 -1
- package/dist/components/icons/cluster.d.ts.map +1 -1
- package/dist/components/icons/copy.d.ts.map +1 -1
- package/dist/components/icons/docker.d.ts.map +1 -1
- package/dist/components/icons/eks.d.ts.map +1 -1
- package/dist/components/icons/error.d.ts.map +1 -1
- package/dist/components/icons/filter.d.ts.map +1 -1
- package/dist/components/icons/gcloud.d.ts.map +1 -1
- package/dist/components/icons/gkeIcon.d.ts.map +1 -1
- package/dist/components/icons/index.d.ts.map +1 -1
- package/dist/components/icons/info.d.ts.map +1 -1
- package/dist/components/icons/pass.d.ts.map +1 -1
- package/dist/components/icons/stop.d.ts.map +1 -1
- package/dist/components/icons/suspend.d.ts.map +1 -1
- package/dist/components/icons/sync.d.ts.map +1 -1
- package/dist/components/icons/trash.d.ts.map +1 -1
- package/dist/components/icons/warning.d.ts.map +1 -1
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/table/index.d.ts.map +1 -1
- package/dist/components/tooltip.d.ts.map +1 -1
- package/dist/fitAddon.d.ts +1 -1
- package/dist/fitAddon.d.ts.map +1 -1
- package/dist/index.cjs +2136 -0
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/{runme-renderers.mjs → index.mjs} +9786 -8535
- package/dist/messaging.d.ts +1 -1
- package/dist/messaging.d.ts.map +1 -1
- package/dist/streams.d.ts +77 -0
- package/dist/streams.d.ts.map +1 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/utils.d.ts.map +1 -1
- package/package.json +13 -6
- package/dist/components/loadingBar/index.d.ts +0 -6
- package/dist/components/loadingBar/index.d.ts.map +0 -1
- package/dist/components/loadingBar/styles/loadingBar.css.d.ts +0 -3
- package/dist/components/loadingBar/styles/loadingBar.css.d.ts.map +0 -1
- package/dist/components/spinner.d.ts +0 -6
- package/dist/components/spinner.d.ts.map +0 -1
- package/dist/components/terminal/actionButton.d.ts.map +0 -1
- package/dist/components/terminal/gistCell.d.ts.map +0 -1
- package/dist/components/terminal/index.d.ts.map +0 -1
- package/dist/components/terminal/open.d.ts.map +0 -1
- package/dist/components/terminal/saveButton.d.ts.map +0 -1
- package/dist/components/terminal/shareButton.d.ts.map +0 -1
- package/dist/components/terminal/vscode.css.d.ts.map +0 -1
- package/dist/runme-renderers.cjs +0 -2077
- /package/dist/components/{terminal → console}/actionButton.d.ts +0 -0
- /package/dist/components/{terminal → console}/gistCell.d.ts +0 -0
- /package/dist/components/{terminal → console}/open.d.ts +0 -0
- /package/dist/components/{terminal → console}/saveButton.d.ts +0 -0
- /package/dist/components/{terminal → console}/shareButton.d.ts +0 -0
- /package/dist/components/{terminal → console}/vscode.css.d.ts +0 -0
package/dist/runme-renderers.cjs
DELETED
|
@@ -1,2077 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _o=require("@bufbuild/protobuf/wkt");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||{}),Qi=(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))(Qi||{}),es=(e=>(e.RunmeCloud="runme.cloud",e.RunmeChat="runme.chat",e.RunmeSearch="runme.search",e.NotebookEnvStore="runme.notebook.envStore",e))(es||{});let vr;async function de(e,t,r){var v;const h={type:t,output:r};return await((v=e.postMessage)==null?void 0:v.call(e,h))}function go(e,t){var r;return((r=e.onDidReceiveMessage)==null?void 0:r.call(e,t))??{dispose:()=>{}}}function ge(){if(!vr)throw new Error("Renderer context not defined");return vr}function vo(e){vr=e}var pr=function(e,t){return pr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,h){r.__proto__=h}||function(r,h){for(var v in h)Object.prototype.hasOwnProperty.call(h,v)&&(r[v]=h[v])},pr(e,t)};function Oe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");pr(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function po(e,t,r,h){function v(E){return E instanceof r?E:new r(function(C){C(E)})}return new(r||(r=Promise))(function(E,C){function i(g){try{d(h.next(g))}catch(l){C(l)}}function c(g){try{d(h.throw(g))}catch(l){C(l)}}function d(g){g.done?E(g.value):v(g.value).then(i,c)}d((h=h.apply(e,t||[])).next())})}function ts(e,t){var r={label:0,sent:function(){if(E[0]&1)throw E[1];return E[1]},trys:[],ops:[]},h,v,E,C=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return C.next=i(0),C.throw=i(1),C.return=i(2),typeof Symbol=="function"&&(C[Symbol.iterator]=function(){return this}),C;function i(d){return function(g){return c([d,g])}}function c(d){if(h)throw new TypeError("Generator is already executing.");for(;C&&(C=0,d[0]&&(r=0)),r;)try{if(h=1,v&&(E=d[0]&2?v.return:d[0]?v.throw||((E=v.return)&&E.call(v),0):v.next)&&!(E=E.call(v,d[1])).done)return E;switch(v=0,E&&(d=[d[0]&2,E.value]),d[0]){case 0:case 1:E=d;break;case 4:return r.label++,{value:d[1],done:!1};case 5:r.label++,v=d[1],d=[0];continue;case 7:d=r.ops.pop(),r.trys.pop();continue;default:if(E=r.trys,!(E=E.length>0&&E[E.length-1])&&(d[0]===6||d[0]===2)){r=0;continue}if(d[0]===3&&(!E||d[1]>E[0]&&d[1]<E[3])){r.label=d[1];break}if(d[0]===6&&r.label<E[1]){r.label=E[1],E=d;break}if(E&&r.label<E[2]){r.label=E[2],r.ops.push(d);break}E[2]&&r.ops.pop(),r.trys.pop();continue}d=t.call(e,r)}catch(g){d=[6,g],v=0}finally{h=E=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function Ke(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],h=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&h>=e.length&&(e=void 0),{value:e&&e[h++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ut(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var h=r.call(e),v,E=[],C;try{for(;(t===void 0||t-- >0)&&!(v=h.next()).done;)E.push(v.value)}catch(i){C={error:i}}finally{try{v&&!v.done&&(r=h.return)&&r.call(h)}finally{if(C)throw C.error}}return E}function ft(e,t,r){if(r||arguments.length===2)for(var h=0,v=t.length,E;h<v;h++)(E||!(h in t))&&(E||(E=Array.prototype.slice.call(t,0,h)),E[h]=t[h]);return e.concat(E||Array.prototype.slice.call(t))}function je(e){return this instanceof je?(this.v=e,this):new je(e)}function mo(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var h=r.apply(e,t||[]),v,E=[];return v=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),i("next"),i("throw"),i("return",C),v[Symbol.asyncIterator]=function(){return this},v;function C(b){return function(w){return Promise.resolve(w).then(b,l)}}function i(b,w){h[b]&&(v[b]=function(f){return new Promise(function(s,n){E.push([b,f,s,n])>1||c(b,f)})},w&&(v[b]=w(v[b])))}function c(b,w){try{d(h[b](w))}catch(f){_(E[0][3],f)}}function d(b){b.value instanceof je?Promise.resolve(b.value.v).then(g,l):_(E[0][2],b)}function g(b){c("next",b)}function l(b){c("throw",b)}function _(b,w){b(w),E.shift(),E.length&&c(E[0][0],E[0][1])}}function bo(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof Ke=="function"?Ke(e):e[Symbol.iterator](),r={},h("next"),h("throw"),h("return"),r[Symbol.asyncIterator]=function(){return this},r);function h(E){r[E]=e[E]&&function(C){return new Promise(function(i,c){C=e[E](C),v(i,c,C.done,C.value)})}}function v(E,C,i,c){Promise.resolve(c).then(function(d){E({value:d,done:i})},C)}}/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2019 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/const Dt=globalThis,Rr=Dt.ShadowRoot&&(Dt.ShadyCSS===void 0||Dt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,xr=Symbol(),Jr=new WeakMap;let rs=class{constructor(t,r,h){if(this._$cssResult$=!0,h!==xr)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o;const r=this.t;if(Rr&&t===void 0){const h=r!==void 0&&r.length===1;h&&(t=Jr.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),h&&Jr.set(r,t))}return t}toString(){return this.cssText}};const at=e=>new rs(typeof e=="string"?e:e+"",void 0,xr),Se=(e,...t)=>{const r=e.length===1?e[0]:t.reduce(((h,v,E)=>h+(C=>{if(C._$cssResult$===!0)return C.cssText;if(typeof C=="number")return C;throw Error("Value passed to 'css' function must be a 'css' function result: "+C+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(v)+e[E+1]),e[0]);return new rs(r,e,xr)},So=(e,t)=>{if(Rr)e.adoptedStyleSheets=t.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(const r of t){const h=document.createElement("style"),v=Dt.litNonce;v!==void 0&&h.setAttribute("nonce",v),h.textContent=r.cssText,e.appendChild(h)}},qr=Rr?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(const h of t.cssRules)r+=h.cssText;return at(r)})(e):e;/**
|
|
6
|
-
* @license
|
|
7
|
-
* Copyright 2017 Google LLC
|
|
8
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/const{is:yo,defineProperty:Co,getOwnPropertyDescriptor:wo,getOwnPropertyNames:Eo,getOwnPropertySymbols:ko,getPrototypeOf:Bo}=Object,Te=globalThis,Qr=Te.trustedTypes,Io=Qr?Qr.emptyScript:"",ir=Te.reactiveElementPolyfillSupport,lt=(e,t)=>e,Ut={toAttribute(e,t){switch(t){case Boolean:e=e?Io: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}},Ar=(e,t)=>!yo(e,t),ei={attribute:!0,type:String,converter:Ut,reflect:!1,useDefault:!1,hasChanged:Ar};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Te.litPropertyMetadata??(Te.litPropertyMetadata=new WeakMap);let We=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=ei){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(t,r),!r.noAccessor){const h=Symbol(),v=this.getPropertyDescriptor(t,h,r);v!==void 0&&Co(this.prototype,t,v)}}static getPropertyDescriptor(t,r,h){const{get:v,set:E}=wo(this.prototype,t)??{get(){return this[r]},set(C){this[r]=C}};return{get:v,set(C){const i=v==null?void 0:v.call(this);E==null||E.call(this,C),this.requestUpdate(t,i,h)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ei}static _$Ei(){if(this.hasOwnProperty(lt("elementProperties")))return;const t=Bo(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(lt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(lt("properties"))){const r=this.properties,h=[...Eo(r),...ko(r)];for(const v of h)this.createProperty(v,r[v])}const t=this[Symbol.metadata];if(t!==null){const r=litPropertyMetadata.get(t);if(r!==void 0)for(const[h,v]of r)this.elementProperties.set(h,v)}this._$Eh=new Map;for(const[r,h]of this.elementProperties){const v=this._$Eu(r,h);v!==void 0&&this._$Eh.set(v,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const r=[];if(Array.isArray(t)){const h=new Set(t.flat(1/0).reverse());for(const v of h)r.unshift(qr(v))}else t!==void 0&&r.push(qr(t));return r}static _$Eu(t,r){const h=r.attribute;return h===!1?void 0:typeof h=="string"?h:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise((r=>this.enableUpdating=r)),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach((r=>r(this)))}addController(t){var r;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((r=t.hostConnected)==null||r.call(t))}removeController(t){var r;(r=this._$EO)==null||r.delete(t)}_$E_(){const t=new Map,r=this.constructor.elementProperties;for(const h of r.keys())this.hasOwnProperty(h)&&(t.set(h,this[h]),delete this[h]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return So(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach((r=>{var h;return(h=r.hostConnected)==null?void 0:h.call(r)}))}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach((r=>{var h;return(h=r.hostDisconnected)==null?void 0:h.call(r)}))}attributeChangedCallback(t,r,h){this._$AK(t,h)}_$ET(t,r){var E;const h=this.constructor.elementProperties.get(t),v=this.constructor._$Eu(t,h);if(v!==void 0&&h.reflect===!0){const C=(((E=h.converter)==null?void 0:E.toAttribute)!==void 0?h.converter:Ut).toAttribute(r,h.type);this._$Em=t,C==null?this.removeAttribute(v):this.setAttribute(v,C),this._$Em=null}}_$AK(t,r){var E,C;const h=this.constructor,v=h._$Eh.get(t);if(v!==void 0&&this._$Em!==v){const i=h.getPropertyOptions(v),c=typeof i.converter=="function"?{fromAttribute:i.converter}:((E=i.converter)==null?void 0:E.fromAttribute)!==void 0?i.converter:Ut;this._$Em=v;const d=c.fromAttribute(r,i.type);this[v]=d??((C=this._$Ej)==null?void 0:C.get(v))??d,this._$Em=null}}requestUpdate(t,r,h){var v;if(t!==void 0){const E=this.constructor,C=this[t];if(h??(h=E.getPropertyOptions(t)),!((h.hasChanged??Ar)(C,r)||h.useDefault&&h.reflect&&C===((v=this._$Ej)==null?void 0:v.get(t))&&!this.hasAttribute(E._$Eu(t,h))))return;this.C(t,r,h)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,r,{useDefault:h,reflect:v,wrapped:E},C){h&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,C??r??this[t]),E!==!0||C!==void 0)||(this._$AL.has(t)||(this.hasUpdated||h||(r=void 0),this._$AL.set(t,r)),v===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var h;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[E,C]of this._$Ep)this[E]=C;this._$Ep=void 0}const v=this.constructor.elementProperties;if(v.size>0)for(const[E,C]of v){const{wrapped:i}=C,c=this[E];i!==!0||this._$AL.has(E)||c===void 0||this.C(E,void 0,C,c)}}let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),(h=this._$EO)==null||h.forEach((v=>{var E;return(E=v.hostUpdate)==null?void 0:E.call(v)})),this.update(r)):this._$EM()}catch(v){throw t=!1,this._$EM(),v}t&&this._$AE(r)}willUpdate(t){}_$AE(t){var r;(r=this._$EO)==null||r.forEach((h=>{var v;return(v=h.hostUpdated)==null?void 0:v.call(h)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach((r=>this._$ET(r,this[r])))),this._$EM()}updated(t){}firstUpdated(t){}};We.elementStyles=[],We.shadowRootOptions={mode:"open"},We[lt("elementProperties")]=new Map,We[lt("finalized")]=new Map,ir==null||ir({ReactiveElement:We}),(Te.reactiveElementVersions??(Te.reactiveElementVersions=[])).push("2.1.1");/**
|
|
10
|
-
* @license
|
|
11
|
-
* Copyright 2017 Google LLC
|
|
12
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const dt=globalThis,$t=dt.trustedTypes,ti=$t?$t.createPolicy("lit-html",{createHTML:e=>e}):void 0,is="$lit$",Le=`lit$${Math.random().toFixed(9).slice(2)}$`,ss="?"+Le,Ro=`<${ss}>`,Fe=document,_t=()=>Fe.createComment(""),gt=e=>e===null||typeof e!="object"&&typeof e!="function",Lr=Array.isArray,xo=e=>Lr(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",sr=`[
|
|
14
|
-
\f\r]`,ot=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ri=/-->/g,ii=/>/g,Ne=RegExp(`>|${sr}(?:([^\\s"'>=/]+)(${sr}*=${sr}*(?:[^
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),si=/'/g,oi=/"/g,os=/^(?:script|style|textarea|title)$/i,Ao=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),Z=Ao(1),ze=Symbol.for("lit-noChange"),le=Symbol.for("lit-nothing"),ni=new WeakMap,Me=Fe.createTreeWalker(Fe,129);function ns(e,t){if(!Lr(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return ti!==void 0?ti.createHTML(t):t}const Lo=(e,t)=>{const r=e.length-1,h=[];let v,E=t===2?"<svg>":t===3?"<math>":"",C=ot;for(let i=0;i<r;i++){const c=e[i];let d,g,l=-1,_=0;for(;_<c.length&&(C.lastIndex=_,g=C.exec(c),g!==null);)_=C.lastIndex,C===ot?g[1]==="!--"?C=ri:g[1]!==void 0?C=ii:g[2]!==void 0?(os.test(g[2])&&(v=RegExp("</"+g[2],"g")),C=Ne):g[3]!==void 0&&(C=Ne):C===Ne?g[0]===">"?(C=v??ot,l=-1):g[1]===void 0?l=-2:(l=C.lastIndex-g[2].length,d=g[1],C=g[3]===void 0?Ne:g[3]==='"'?oi:si):C===oi||C===si?C=Ne:C===ri||C===ii?C=ot:(C=Ne,v=void 0);const b=C===Ne&&e[i+1].startsWith("/>")?" ":"";E+=C===ot?c+Ro:l>=0?(h.push(d),c.slice(0,l)+is+c.slice(l)+Le+b):c+Le+(l===-2?i:b)}return[ns(e,E+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),h]};class vt{constructor({strings:t,_$litType$:r},h){let v;this.parts=[];let E=0,C=0;const i=t.length-1,c=this.parts,[d,g]=Lo(t,r);if(this.el=vt.createElement(d,h),Me.currentNode=this.el.content,r===2||r===3){const l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(v=Me.nextNode())!==null&&c.length<i;){if(v.nodeType===1){if(v.hasAttributes())for(const l of v.getAttributeNames())if(l.endsWith(is)){const _=g[C++],b=v.getAttribute(l).split(Le),w=/([.?@])?(.*)/.exec(_);c.push({type:1,index:E,name:w[2],strings:b,ctor:w[1]==="."?Do:w[1]==="?"?Oo:w[1]==="@"?No:Zt}),v.removeAttribute(l)}else l.startsWith(Le)&&(c.push({type:6,index:E}),v.removeAttribute(l));if(os.test(v.tagName)){const l=v.textContent.split(Le),_=l.length-1;if(_>0){v.textContent=$t?$t.emptyScript:"";for(let b=0;b<_;b++)v.append(l[b],_t()),Me.nextNode(),c.push({type:2,index:++E});v.append(l[_],_t())}}}else if(v.nodeType===8)if(v.data===ss)c.push({type:2,index:E});else{let l=-1;for(;(l=v.data.indexOf(Le,l+1))!==-1;)c.push({type:7,index:E}),l+=Le.length-1}E++}}static createElement(t,r){const h=Fe.createElement("template");return h.innerHTML=t,h}}function Ze(e,t,r=e,h){var C,i;if(t===ze)return t;let v=h!==void 0?(C=r._$Co)==null?void 0:C[h]:r._$Cl;const E=gt(t)?void 0:t._$litDirective$;return(v==null?void 0:v.constructor)!==E&&((i=v==null?void 0:v._$AO)==null||i.call(v,!1),E===void 0?v=void 0:(v=new E(e),v._$AT(e,r,h)),h!==void 0?(r._$Co??(r._$Co=[]))[h]=v:r._$Cl=v),v!==void 0&&(t=Ze(e,v._$AS(e,t.values),v,h)),t}class To{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:h}=this._$AD,v=((t==null?void 0:t.creationScope)??Fe).importNode(r,!0);Me.currentNode=v;let E=Me.nextNode(),C=0,i=0,c=h[0];for(;c!==void 0;){if(C===c.index){let d;c.type===2?d=new kt(E,E.nextSibling,this,t):c.type===1?d=new c.ctor(E,c.name,c.strings,this,t):c.type===6&&(d=new Mo(E,this,t)),this._$AV.push(d),c=h[++i]}C!==(c==null?void 0:c.index)&&(E=Me.nextNode(),C++)}return Me.currentNode=Fe,v}p(t){let r=0;for(const h of this._$AV)h!==void 0&&(h.strings!==void 0?(h._$AI(t,h,r),r+=h.strings.length-2):h._$AI(t[r])),r++}}class kt{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,r,h,v){this.type=2,this._$AH=le,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=h,this.options=v,this._$Cv=(v==null?void 0:v.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=Ze(this,t,r),gt(t)?t===le||t==null||t===""?(this._$AH!==le&&this._$AR(),this._$AH=le):t!==this._$AH&&t!==ze&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):xo(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!==le&>(this._$AH)?this._$AA.nextSibling.data=t:this.T(Fe.createTextNode(t)),this._$AH=t}$(t){var E;const{values:r,_$litType$:h}=t,v=typeof h=="number"?this._$AC(t):(h.el===void 0&&(h.el=vt.createElement(ns(h.h,h.h[0]),this.options)),h);if(((E=this._$AH)==null?void 0:E._$AD)===v)this._$AH.p(r);else{const C=new To(v,this),i=C.u(this.options);C.p(r),this.T(i),this._$AH=C}}_$AC(t){let r=ni.get(t.strings);return r===void 0&&ni.set(t.strings,r=new vt(t)),r}k(t){Lr(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let h,v=0;for(const E of t)v===r.length?r.push(h=new kt(this.O(_t()),this.O(_t()),this,this.options)):h=r[v],h._$AI(E),v++;v<r.length&&(this._$AR(h&&h._$AB.nextSibling,v),r.length=v)}_$AR(t=this._$AA.nextSibling,r){var h;for((h=this._$AP)==null?void 0:h.call(this,!1,!0,r);t!==this._$AB;){const v=t.nextSibling;t.remove(),t=v}}setConnected(t){var r;this._$AM===void 0&&(this._$Cv=t,(r=this._$AP)==null||r.call(this,t))}}class Zt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,h,v,E){this.type=1,this._$AH=le,this._$AN=void 0,this.element=t,this.name=r,this._$AM=v,this.options=E,h.length>2||h[0]!==""||h[1]!==""?(this._$AH=Array(h.length-1).fill(new String),this.strings=h):this._$AH=le}_$AI(t,r=this,h,v){const E=this.strings;let C=!1;if(E===void 0)t=Ze(this,t,r,0),C=!gt(t)||t!==this._$AH&&t!==ze,C&&(this._$AH=t);else{const i=t;let c,d;for(t=E[0],c=0;c<E.length-1;c++)d=Ze(this,i[h+c],r,c),d===ze&&(d=this._$AH[c]),C||(C=!gt(d)||d!==this._$AH[c]),d===le?t=le:t!==le&&(t+=(d??"")+E[c+1]),this._$AH[c]=d}C&&!v&&this.j(t)}j(t){t===le?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Do extends Zt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===le?void 0:t}}class Oo extends Zt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==le)}}class No extends Zt{constructor(t,r,h,v,E){super(t,r,h,v,E),this.type=5}_$AI(t,r=this){if((t=Ze(this,t,r,0)??le)===ze)return;const h=this._$AH,v=t===le&&h!==le||t.capture!==h.capture||t.once!==h.once||t.passive!==h.passive,E=t!==le&&(h===le||v);v&&this.element.removeEventListener(this.name,this,h),E&&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 Mo{constructor(t,r,h){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=h}get _$AU(){return this._$AM._$AU}_$AI(t){Ze(this,t)}}const or=dt.litHtmlPolyfillSupport;or==null||or(vt,kt),(dt.litHtmlVersions??(dt.litHtmlVersions=[])).push("3.3.1");const Po=(e,t,r)=>{const h=(r==null?void 0:r.renderBefore)??t;let v=h._$litPart$;if(v===void 0){const E=(r==null?void 0:r.renderBefore)??null;h._$litPart$=v=new kt(t.insertBefore(_t(),E),E,void 0,r??{})}return v._$AI(e),v};/**
|
|
16
|
-
* @license
|
|
17
|
-
* Copyright 2017 Google LLC
|
|
18
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
-
*/const Pe=globalThis;class ue extends We{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var r;const t=super.createRenderRoot();return(r=this.renderOptions).renderBefore??(r.renderBefore=t.firstChild),t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Po(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 ze}}var qi;ue._$litElement$=!0,ue.finalized=!0,(qi=Pe.litElementHydrateSupport)==null||qi.call(Pe,{LitElement:ue});const nr=Pe.litElementPolyfillSupport;nr==null||nr({LitElement:ue});(Pe.litElementVersions??(Pe.litElementVersions=[])).push("4.2.1");/**
|
|
20
|
-
* @license
|
|
21
|
-
* Copyright 2017 Google LLC
|
|
22
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
-
*/const pe=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 Fo={attribute:!0,type:String,converter:Ut,reflect:!1,hasChanged:Ar},Ho=(e=Fo,t,r)=>{const{kind:h,metadata:v}=r;let E=globalThis.litPropertyMetadata.get(v);if(E===void 0&&globalThis.litPropertyMetadata.set(v,E=new Map),h==="setter"&&((e=Object.create(e)).wrapped=!0),E.set(r.name,e),h==="accessor"){const{name:C}=r;return{set(i){const c=t.get.call(this);t.set.call(this,i),this.requestUpdate(C,c,e)},init(i){return i!==void 0&&this.C(C,void 0,e,i),i}}}if(h==="setter"){const{name:C}=r;return function(i){const c=this[C];t.call(this,i),this.requestUpdate(C,c,e)}}throw Error("Unsupported decorator location: "+h)};function J(e){return(t,r)=>typeof r=="object"?Ho(e,t,r):((h,v,E)=>{const C=v.hasOwnProperty(E);return v.constructor.createProperty(E,h),C?Object.getOwnPropertyDescriptor(v,E):void 0})(e,t,r)}/**
|
|
28
|
-
* @license
|
|
29
|
-
* Copyright 2017 Google LLC
|
|
30
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
|
-
*/function Uo(e){return J({...e,state:!0,attribute:!1})}/**
|
|
32
|
-
* @license
|
|
33
|
-
* Copyright 2021 Google LLC
|
|
34
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
35
|
-
*/function ce(e,t,r){return e?t(e):r==null?void 0:r(e)}var ar={exports:{}},ai;function $o(){return ai||(ai=1,(function(e,t){(function(r,h){e.exports=h()})(globalThis,(()=>(()=>{var r={4567:function(C,i,c){var d=this&&this.__decorate||function(o,a,u,S){var m,y=arguments.length,p=y<3?a:S===null?S=Object.getOwnPropertyDescriptor(a,u):S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(o,a,u,S);else for(var k=o.length-1;k>=0;k--)(m=o[k])&&(p=(y<3?m(p):y>3?m(a,u,p):m(a,u))||p);return y>3&&p&&Object.defineProperty(a,u,p),p},g=this&&this.__param||function(o,a){return function(u,S){a(u,S,o)}};Object.defineProperty(i,"__esModule",{value:!0}),i.AccessibilityManager=void 0;const l=c(9042),_=c(9924),b=c(844),w=c(4725),f=c(2585),s=c(3656);let n=i.AccessibilityManager=class extends b.Disposable{constructor(o,a,u,S){super(),this._terminal=o,this._coreBrowserService=u,this._renderService=S,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 m=0;m<this._terminal.rows;m++)this._rowElements[m]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[m]);if(this._topBoundaryFocusListener=m=>this._handleBoundaryFocus(m,0),this._bottomBoundaryFocusListener=m=>this._handleBoundaryFocus(m,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 _.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((m=>this._handleResize(m.rows)))),this.register(this._terminal.onRender((m=>this._refreshRows(m.start,m.end)))),this.register(this._terminal.onScroll((()=>this._refreshRows()))),this.register(this._terminal.onA11yChar((m=>this._handleChar(m)))),this.register(this._terminal.onLineFeed((()=>this._handleChar(`
|
|
36
|
-
`)))),this.register(this._terminal.onA11yTab((m=>this._handleTab(m)))),this.register(this._terminal.onKey((m=>this._handleKey(m.key)))),this.register(this._terminal.onBlur((()=>this._clearLiveRegion()))),this.register(this._renderService.onDimensionsChange((()=>this._refreshRowsDimensions()))),this.register((0,s.addDisposableDomListener)(document,"selectionchange",(()=>this._handleSelectionChange()))),this.register(this._coreBrowserService.onDprChange((()=>this._refreshRowsDimensions()))),this._refreshRows(),this.register((0,b.toDisposable)((()=>{this._accessibilityContainer.remove(),this._rowElements.length=0})))}_handleTab(o){for(let a=0;a<o;a++)this._handleChar(" ")}_handleChar(o){this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==o&&(this._charsToAnnounce+=o):this._charsToAnnounce+=o,o===`
|
|
37
|
-
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=l.tooMuchOutput)))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0}_handleKey(o){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(o)||this._charsToConsume.push(o)}_refreshRows(o,a){this._liveRegionDebouncer.refresh(o,a,this._terminal.rows)}_renderRows(o,a){const u=this._terminal.buffer,S=u.lines.length.toString();for(let m=o;m<=a;m++){const y=u.lines.get(u.ydisp+m),p=[],k=(y==null?void 0:y.translateToString(!0,void 0,void 0,p))||"",x=(u.ydisp+m+1).toString(),L=this._rowElements[m];L&&(k.length===0?(L.innerText=" ",this._rowColumns.set(L,[0,1])):(L.textContent=k,this._rowColumns.set(L,p)),L.setAttribute("aria-posinset",x),L.setAttribute("aria-setsize",S))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(o,a){const u=o.target,S=this._rowElements[a===0?1:this._rowElements.length-2];if(u.getAttribute("aria-posinset")===(a===0?"1":`${this._terminal.buffer.lines.length}`)||o.relatedTarget!==S)return;let m,y;if(a===0?(m=u,y=this._rowElements.pop(),this._rowContainer.removeChild(y)):(m=this._rowElements.shift(),y=u,this._rowContainer.removeChild(m)),m.removeEventListener("focus",this._topBoundaryFocusListener),y.removeEventListener("focus",this._bottomBoundaryFocusListener),a===0){const p=this._createAccessibilityTreeNode();this._rowElements.unshift(p),this._rowContainer.insertAdjacentElement("afterbegin",p)}else{const p=this._createAccessibilityTreeNode();this._rowElements.push(p),this._rowContainer.appendChild(p)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(a===0?-1:1),this._rowElements[a===0?1:this._rowElements.length-2].focus(),o.preventDefault(),o.stopImmediatePropagation()}_handleSelectionChange(){var k;if(this._rowElements.length===0)return;const o=document.getSelection();if(!o)return;if(o.isCollapsed)return void(this._rowContainer.contains(o.anchorNode)&&this._terminal.clearSelection());if(!o.anchorNode||!o.focusNode)return void console.error("anchorNode and/or focusNode are null");let a={node:o.anchorNode,offset:o.anchorOffset},u={node:o.focusNode,offset:o.focusOffset};if((a.node.compareDocumentPosition(u.node)&Node.DOCUMENT_POSITION_PRECEDING||a.node===u.node&&a.offset>u.offset)&&([a,u]=[u,a]),a.node.compareDocumentPosition(this._rowElements[0])&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING)&&(a={node:this._rowElements[0].childNodes[0],offset:0}),!this._rowContainer.contains(a.node))return;const S=this._rowElements.slice(-1)[0];if(u.node.compareDocumentPosition(S)&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_PRECEDING)&&(u={node:S,offset:((k=S.textContent)==null?void 0:k.length)??0}),!this._rowContainer.contains(u.node))return;const m=({node:x,offset:L})=>{const T=x instanceof Text?x.parentNode:x;let R=parseInt(T==null?void 0:T.getAttribute("aria-posinset"),10)-1;if(isNaN(R))return console.warn("row is invalid. Race condition?"),null;const M=this._rowColumns.get(T);if(!M)return console.warn("columns is null. Race condition?"),null;let F=L<M.length?M[L]:M.slice(-1)[0]+1;return F>=this._terminal.cols&&(++R,F=0),{row:R,column:F}},y=m(a),p=m(u);if(y&&p){if(y.row>p.row||y.row===p.row&&y.column>=p.column)throw new Error("invalid range");this._terminal.select(y.column,y.row,(p.row-y.row)*this._terminal.cols-y.column+p.column)}}_handleResize(o){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let a=this._rowContainer.children.length;a<this._terminal.rows;a++)this._rowElements[a]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[a]);for(;this._rowElements.length>o;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const o=this._coreBrowserService.mainDocument.createElement("div");return o.setAttribute("role","listitem"),o.tabIndex=-1,this._refreshRowDimensions(o),o}_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 o=0;o<this._terminal.rows;o++)this._refreshRowDimensions(this._rowElements[o])}}_refreshRowDimensions(o){o.style.height=`${this._renderService.dimensions.css.cell.height}px`}};i.AccessibilityManager=n=d([g(1,f.IInstantiationService),g(2,w.ICoreBrowserService),g(3,w.IRenderService)],n)},3614:(C,i)=>{function c(_){return _.replace(/\r?\n/g,"\r")}function d(_,b){return b?"\x1B[200~"+_+"\x1B[201~":_}function g(_,b,w,f){_=d(_=c(_),w.decPrivateModes.bracketedPasteMode&&f.rawOptions.ignoreBracketedPasteMode!==!0),w.triggerDataEvent(_,!0),b.value=""}function l(_,b,w){const f=w.getBoundingClientRect(),s=_.clientX-f.left-10,n=_.clientY-f.top-10;b.style.width="20px",b.style.height="20px",b.style.left=`${s}px`,b.style.top=`${n}px`,b.style.zIndex="1000",b.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=c,i.bracketTextForPaste=d,i.copyHandler=function(_,b){_.clipboardData&&_.clipboardData.setData("text/plain",b.selectionText),_.preventDefault()},i.handlePasteEvent=function(_,b,w,f){_.stopPropagation(),_.clipboardData&&g(_.clipboardData.getData("text/plain"),b,w,f)},i.paste=g,i.moveTextAreaUnderMouseCursor=l,i.rightClickHandler=function(_,b,w,f,s){l(_,b,w),s&&f.rightClickSelect(_),b.value=f.selectionText,b.select()}},7239:(C,i,c)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.ColorContrastCache=void 0;const d=c(1505);i.ColorContrastCache=class{constructor(){this._color=new d.TwoKeyMap,this._css=new d.TwoKeyMap}setCss(g,l,_){this._css.set(g,l,_)}getCss(g,l){return this._css.get(g,l)}setColor(g,l,_){this._color.set(g,l,_)}getColor(g,l){return this._color.get(g,l)}clear(){this._color.clear(),this._css.clear()}}},3656:(C,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.addDisposableDomListener=void 0,i.addDisposableDomListener=function(c,d,g,l){c.addEventListener(d,g,l);let _=!1;return{dispose:()=>{_||(_=!0,c.removeEventListener(d,g,l))}}}},3551:function(C,i,c){var d=this&&this.__decorate||function(n,o,a,u){var S,m=arguments.length,y=m<3?o:u===null?u=Object.getOwnPropertyDescriptor(o,a):u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(n,o,a,u);else for(var p=n.length-1;p>=0;p--)(S=n[p])&&(y=(m<3?S(y):m>3?S(o,a,y):S(o,a))||y);return m>3&&y&&Object.defineProperty(o,a,y),y},g=this&&this.__param||function(n,o){return function(a,u){o(a,u,n)}};Object.defineProperty(i,"__esModule",{value:!0}),i.Linkifier=void 0;const l=c(3656),_=c(8460),b=c(844),w=c(2585),f=c(4725);let s=i.Linkifier=class extends b.Disposable{get currentLink(){return this._currentLink}constructor(n,o,a,u,S){super(),this._element=n,this._mouseService=o,this._renderService=a,this._bufferService=u,this._linkProviderService=S,this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new _.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new _.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,b.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,b.toDisposable)((()=>{var m;this._lastMouseEvent=void 0,(m=this._activeProviderReplies)==null||m.clear()}))),this.register(this._bufferService.onResize((()=>{this._clearCurrentLink(),this._wasResized=!0}))),this.register((0,l.addDisposableDomListener)(this._element,"mouseleave",(()=>{this._isMouseOut=!0,this._clearCurrentLink()}))),this.register((0,l.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,l.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,l.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(n){this._lastMouseEvent=n;const o=this._positionFromMouseEvent(n,this._element,this._mouseService);if(!o)return;this._isMouseOut=!1;const a=n.composedPath();for(let u=0;u<a.length;u++){const S=a[u];if(S.classList.contains("xterm"))break;if(S.classList.contains("xterm-hover"))return}this._lastBufferCell&&o.x===this._lastBufferCell.x&&o.y===this._lastBufferCell.y||(this._handleHover(o),this._lastBufferCell=o)}_handleHover(n){if(this._activeLine!==n.y||this._wasResized)return this._clearCurrentLink(),this._askForLink(n,!1),void(this._wasResized=!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,n)||(this._clearCurrentLink(),this._askForLink(n,!0))}_askForLink(n,o){var u,S;this._activeProviderReplies&&o||((u=this._activeProviderReplies)==null||u.forEach((m=>{m==null||m.forEach((y=>{y.link.dispose&&y.link.dispose()}))})),this._activeProviderReplies=new Map,this._activeLine=n.y);let a=!1;for(const[m,y]of this._linkProviderService.linkProviders.entries())o?(S=this._activeProviderReplies)!=null&&S.get(m)&&(a=this._checkLinkProviderResult(m,n,a)):y.provideLinks(n.y,(p=>{var x,L;if(this._isMouseOut)return;const k=p==null?void 0:p.map((T=>({link:T})));(x=this._activeProviderReplies)==null||x.set(m,k),a=this._checkLinkProviderResult(m,n,a),((L=this._activeProviderReplies)==null?void 0:L.size)===this._linkProviderService.linkProviders.length&&this._removeIntersectingLinks(n.y,this._activeProviderReplies)}))}_removeIntersectingLinks(n,o){const a=new Set;for(let u=0;u<o.size;u++){const S=o.get(u);if(S)for(let m=0;m<S.length;m++){const y=S[m],p=y.link.range.start.y<n?0:y.link.range.start.x,k=y.link.range.end.y>n?this._bufferService.cols:y.link.range.end.x;for(let x=p;x<=k;x++){if(a.has(x)){S.splice(m--,1);break}a.add(x)}}}}_checkLinkProviderResult(n,o,a){var m;if(!this._activeProviderReplies)return a;const u=this._activeProviderReplies.get(n);let S=!1;for(let y=0;y<n;y++)this._activeProviderReplies.has(y)&&!this._activeProviderReplies.get(y)||(S=!0);if(!S&&u){const y=u.find((p=>this._linkAtPosition(p.link,o)));y&&(a=!0,this._handleNewLink(y))}if(this._activeProviderReplies.size===this._linkProviderService.linkProviders.length&&!a)for(let y=0;y<this._activeProviderReplies.size;y++){const p=(m=this._activeProviderReplies.get(y))==null?void 0:m.find((k=>this._linkAtPosition(k.link,o)));if(p){a=!0,this._handleNewLink(p);break}}return a}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(n){if(!this._currentLink)return;const o=this._positionFromMouseEvent(n,this._element,this._mouseService);o&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,o)&&this._currentLink.link.activate(n,this._currentLink.link.text)}_clearCurrentLink(n,o){this._currentLink&&this._lastMouseEvent&&(!n||!o||this._currentLink.link.range.start.y>=n&&this._currentLink.link.range.end.y<=o)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,b.disposeArray)(this._linkCacheDisposables))}_handleNewLink(n){if(!this._lastMouseEvent)return;const o=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);o&&this._linkAtPosition(n.link,o)&&(this._currentLink=n,this._currentLink.state={decorations:{underline:n.link.decorations===void 0||n.link.decorations.underline,pointerCursor:n.link.decorations===void 0||n.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,n.link,this._lastMouseEvent),n.link.decorations={},Object.defineProperties(n.link.decorations,{pointerCursor:{get:()=>{var a,u;return(u=(a=this._currentLink)==null?void 0:a.state)==null?void 0:u.decorations.pointerCursor},set:a=>{var u;(u=this._currentLink)!=null&&u.state&&this._currentLink.state.decorations.pointerCursor!==a&&(this._currentLink.state.decorations.pointerCursor=a,this._currentLink.state.isHovered&&this._element.classList.toggle("xterm-cursor-pointer",a))}},underline:{get:()=>{var a,u;return(u=(a=this._currentLink)==null?void 0:a.state)==null?void 0:u.decorations.underline},set:a=>{var u,S,m;(u=this._currentLink)!=null&&u.state&&((m=(S=this._currentLink)==null?void 0:S.state)==null?void 0:m.decorations.underline)!==a&&(this._currentLink.state.decorations.underline=a,this._currentLink.state.isHovered&&this._fireUnderlineEvent(n.link,a))}}}),this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange((a=>{if(!this._currentLink)return;const u=a.start===0?0:a.start+1+this._bufferService.buffer.ydisp,S=this._bufferService.buffer.ydisp+1+a.end;if(this._currentLink.link.range.start.y>=u&&this._currentLink.link.range.end.y<=S&&(this._clearCurrentLink(u,S),this._lastMouseEvent)){const m=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);m&&this._askForLink(m,!1)}}))))}_linkHover(n,o,a){var u;(u=this._currentLink)!=null&&u.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(o,!0),this._currentLink.state.decorations.pointerCursor&&n.classList.add("xterm-cursor-pointer")),o.hover&&o.hover(a,o.text)}_fireUnderlineEvent(n,o){const a=n.range,u=this._bufferService.buffer.ydisp,S=this._createLinkUnderlineEvent(a.start.x-1,a.start.y-u-1,a.end.x,a.end.y-u-1,void 0);(o?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(S)}_linkLeave(n,o,a){var u;(u=this._currentLink)!=null&&u.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(o,!1),this._currentLink.state.decorations.pointerCursor&&n.classList.remove("xterm-cursor-pointer")),o.leave&&o.leave(a,o.text)}_linkAtPosition(n,o){const a=n.range.start.y*this._bufferService.cols+n.range.start.x,u=n.range.end.y*this._bufferService.cols+n.range.end.x,S=o.y*this._bufferService.cols+o.x;return a<=S&&S<=u}_positionFromMouseEvent(n,o,a){const u=a.getCoords(n,o,this._bufferService.cols,this._bufferService.rows);if(u)return{x:u[0],y:u[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(n,o,a,u,S){return{x1:n,y1:o,x2:a,y2:u,cols:this._bufferService.cols,fg:S}}};i.Linkifier=s=d([g(1,f.IMouseService),g(2,f.IRenderService),g(3,w.IBufferService),g(4,f.ILinkProviderService)],s)},9042:(C,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(C,i,c){var d=this&&this.__decorate||function(f,s,n,o){var a,u=arguments.length,S=u<3?s:o===null?o=Object.getOwnPropertyDescriptor(s,n):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(f,s,n,o);else for(var m=f.length-1;m>=0;m--)(a=f[m])&&(S=(u<3?a(S):u>3?a(s,n,S):a(s,n))||S);return u>3&&S&&Object.defineProperty(s,n,S),S},g=this&&this.__param||function(f,s){return function(n,o){s(n,o,f)}};Object.defineProperty(i,"__esModule",{value:!0}),i.OscLinkProvider=void 0;const l=c(511),_=c(2585);let b=i.OscLinkProvider=class{constructor(f,s,n){this._bufferService=f,this._optionsService=s,this._oscLinkService=n}provideLinks(f,s){var k;const n=this._bufferService.buffer.lines.get(f-1);if(!n)return void s(void 0);const o=[],a=this._optionsService.rawOptions.linkHandler,u=new l.CellData,S=n.getTrimmedLength();let m=-1,y=-1,p=!1;for(let x=0;x<S;x++)if(y!==-1||n.hasContent(x)){if(n.loadCell(x,u),u.hasExtendedAttrs()&&u.extended.urlId){if(y===-1){y=x,m=u.extended.urlId;continue}p=u.extended.urlId!==m}else y!==-1&&(p=!0);if(p||y!==-1&&x===S-1){const L=(k=this._oscLinkService.getLinkData(m))==null?void 0:k.uri;if(L){const T={start:{x:y+1,y:f},end:{x:x+(p||x!==S-1?0:1),y:f}};let R=!1;if(!(a!=null&&a.allowNonHttpProtocols))try{const M=new URL(L);["http:","https:"].includes(M.protocol)||(R=!0)}catch{R=!0}R||o.push({text:L,range:T,activate:(M,F)=>a?a.activate(M,F,T):w(0,F),hover:(M,F)=>{var W;return(W=a==null?void 0:a.hover)==null?void 0:W.call(a,M,F,T)},leave:(M,F)=>{var W;return(W=a==null?void 0:a.leave)==null?void 0:W.call(a,M,F,T)}})}p=!1,u.hasExtendedAttrs()&&u.extended.urlId?(y=x,m=u.extended.urlId):(y=-1,m=-1)}}s(o)}};function w(f,s){if(confirm(`Do you want to navigate to ${s}?
|
|
38
|
-
|
|
39
|
-
WARNING: This link could potentially be dangerous`)){const n=window.open();if(n){try{n.opener=null}catch{}n.location.href=s}else console.warn("Opening link blocked as opener could not be cleared")}}i.OscLinkProvider=b=d([g(0,_.IBufferService),g(1,_.IOptionsService),g(2,_.IOscLinkService)],b)},6193:(C,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.RenderDebouncer=void 0,i.RenderDebouncer=class{constructor(c,d){this._renderCallback=c,this._coreBrowserService=d,this._refreshCallbacks=[]}dispose(){this._animationFrame&&(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}addRefreshCallback(c){return this._refreshCallbacks.push(c),this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._innerRefresh()))),this._animationFrame}refresh(c,d,g){this._rowCount=g,c=c!==void 0?c:0,d=d!==void 0?d:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,c):c,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,d):d,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 c=Math.max(this._rowStart,0),d=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(c,d),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(const c of this._refreshCallbacks)c(0);this._refreshCallbacks=[]}}},3236:(C,i,c)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.Terminal=void 0;const d=c(3614),g=c(3656),l=c(3551),_=c(9042),b=c(3730),w=c(1680),f=c(3107),s=c(5744),n=c(2950),o=c(1296),a=c(428),u=c(4269),S=c(5114),m=c(8934),y=c(3230),p=c(9312),k=c(4725),x=c(6731),L=c(8055),T=c(8969),R=c(8460),M=c(844),F=c(6114),W=c(8437),z=c(2584),V=c(7399),B=c(5941),A=c(9074),D=c(2585),O=c(5435),U=c(4567),j=c(779);class X extends T.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=F,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(A.DecorationService),this._instantiationService.setService(D.IDecorationService,this._decorationService),this._linkProviderService=this._instantiationService.createInstance(j.LinkProviderService),this._instantiationService.setService(k.ILinkProviderService,this._linkProviderService),this._linkProviderService.registerLinkProvider(this._instantiationService.createInstance(b.OscLinkProvider)),this.register(this._inputHandler.onRequestBell((()=>this._onBell.fire()))),this.register(this._inputHandler.onRequestRefreshRows(((I,$)=>this.refresh(I,$)))),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,$;this._customKeyEventHandler=void 0,($=(I=this.element)==null?void 0:I.parentNode)==null||$.removeChild(this.element)})))}_handleColorEvent(N){if(this._themeService)for(const I of N){let $,P="";switch(I.index){case 256:$="foreground",P="10";break;case 257:$="background",P="11";break;case 258:$="cursor",P="12";break;default:$="ansi",P="4;"+I.index}switch(I.type){case 0:const K=L.color.toColorRGB($==="ansi"?this._themeService.colors.ansi[I.index]:this._themeService.colors[$]);this.coreService.triggerDataEvent(`${z.C0.ESC}]${P};${(0,B.toRgbString)(K)}${z.C1_ESCAPED.ST}`);break;case 1:if($==="ansi")this._themeService.modifyColors((G=>G.ansi[I.index]=L.channels.toColor(...I.color)));else{const G=$;this._themeService.modifyColors((ee=>ee[G]=L.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(U.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 $=Math.min(this.buffer.x,this.cols-1),P=this._renderService.dimensions.css.cell.height,K=I.getWidth($),G=this._renderService.dimensions.css.cell.width*K,ee=this.buffer.y*this._renderService.dimensions.css.cell.height,ne=$*this._renderService.dimensions.css.cell.width;this.textarea.style.left=ne+"px",this.textarea.style.top=ee+"px",this.textarea.style.width=G+"px",this.textarea.style.height=P+"px",this.textarea.style.lineHeight=P+"px",this.textarea.style.zIndex="-5"}_initGlobal(){this._bindKeys(),this.register((0,g.addDisposableDomListener)(this.element,"copy",(I=>{this.hasSelection()&&(0,d.copyHandler)(I,this._selectionService)})));const N=I=>(0,d.handlePasteEvent)(I,this.textarea,this.coreService,this.optionsService);this.register((0,g.addDisposableDomListener)(this.textarea,"paste",N)),this.register((0,g.addDisposableDomListener)(this.element,"paste",N)),F.isFirefox?this.register((0,g.addDisposableDomListener)(this.element,"mousedown",(I=>{I.button===2&&(0,d.rightClickHandler)(I,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)}))):this.register((0,g.addDisposableDomListener)(this.element,"contextmenu",(I=>{(0,d.rightClickHandler)(I,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)}))),F.isLinux&&this.register((0,g.addDisposableDomListener)(this.element,"auxclick",(I=>{I.button===1&&(0,d.moveTextAreaUnderMouseCursor)(I,this.textarea,this.screenElement)})))}_bindKeys(){this.register((0,g.addDisposableDomListener)(this.textarea,"keyup",(N=>this._keyUp(N)),!0)),this.register((0,g.addDisposableDomListener)(this.textarea,"keydown",(N=>this._keyDown(N)),!0)),this.register((0,g.addDisposableDomListener)(this.textarea,"keypress",(N=>this._keyPress(N)),!0)),this.register((0,g.addDisposableDomListener)(this.textarea,"compositionstart",(()=>this._compositionHelper.compositionstart()))),this.register((0,g.addDisposableDomListener)(this.textarea,"compositionupdate",(N=>this._compositionHelper.compositionupdate(N)))),this.register((0,g.addDisposableDomListener)(this.textarea,"compositionend",(()=>this._compositionHelper.compositionend()))),this.register((0,g.addDisposableDomListener)(this.textarea,"input",(N=>this._inputEvent(N)),!0)),this.register(this.onRender((()=>this._compositionHelper.updateCompositionElements())))}open(N){var $;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"),(($=this.element)==null?void 0:$.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 I=this._document.createDocumentFragment();this._viewportElement=this._document.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),I.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,g.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),I.appendChild(this.screenElement),this.textarea=this._document.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",_.promptLabel),F.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(S.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,g.addDisposableDomListener)(this.textarea,"focus",(P=>this._handleTextAreaFocus(P)))),this.register((0,g.addDisposableDomListener)(this.textarea,"blur",(()=>this._handleTextAreaBlur()))),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(a.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(k.ICharSizeService,this._charSizeService),this._themeService=this._instantiationService.createInstance(x.ThemeService),this._instantiationService.setService(k.IThemeService,this._themeService),this._characterJoinerService=this._instantiationService.createInstance(u.CharacterJoinerService),this._instantiationService.setService(k.ICharacterJoinerService,this._characterJoinerService),this._renderService=this.register(this._instantiationService.createInstance(y.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(n.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this._mouseService=this._instantiationService.createInstance(m.MouseService),this._instantiationService.setService(k.IMouseService,this._mouseService),this.linkifier=this.register(this._instantiationService.createInstance(l.Linkifier,this.screenElement)),this.element.appendChild(I);try{this._onWillOpen.fire(this.element)}catch{}this._renderService.hasRenderer()||this._renderService.setRenderer(this._createRenderer()),this.viewport=this._instantiationService.createInstance(w.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(p.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,g.addDisposableDomListener)(this._viewportElement,"scroll",(()=>this._selectionService.refresh()))),this.register(this._instantiationService.createInstance(f.BufferDecorationRenderer,this.screenElement)),this.register((0,g.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(U.AccessibilityManager,this)),this.register(this.optionsService.onSpecificOptionChange("screenReaderMode",(P=>this._handleScreenReaderModeOptionChange(P)))),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(s.OverviewRulerRenderer,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange("overviewRulerWidth",(P=>{!this._overviewRulerRenderer&&P&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(s.OverviewRulerRenderer,this._viewportElement,this.screenElement)))})),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(o.DomRenderer,this,this._document,this.element,this.screenElement,this._viewportElement,this._helperContainer,this.linkifier)}bindMouse(){const N=this,I=this.element;function $(G){const ee=N._mouseService.getMouseReportCoords(G,N.screenElement);if(!ee)return!1;let ne,ae;switch(G.overrideType||G.type){case"mousemove":ae=32,G.buttons===void 0?(ne=3,G.button!==void 0&&(ne=G.button<3?G.button:3)):ne=1&G.buttons?0:4&G.buttons?1:2&G.buttons?2:3;break;case"mouseup":ae=0,ne=G.button<3?G.button:3;break;case"mousedown":ae=1,ne=G.button<3?G.button:3;break;case"wheel":if(N._customWheelEventHandler&&N._customWheelEventHandler(G)===!1||N.viewport.getLinesScrolled(G)===0)return!1;ae=G.deltaY<0?0:1,ne=4;break;default:return!1}return!(ae===void 0||ne===void 0||ne>4)&&N.coreMouseService.triggerMouseEvent({col:ee.col,row:ee.row,x:ee.x,y:ee.y,button:ne,action:ae,ctrl:G.ctrlKey,alt:G.altKey,shift:G.shiftKey})}const P={mouseup:null,wheel:null,mousedrag:null,mousemove:null},K={mouseup:G=>($(G),G.buttons||(this._document.removeEventListener("mouseup",P.mouseup),P.mousedrag&&this._document.removeEventListener("mousemove",P.mousedrag)),this.cancel(G)),wheel:G=>($(G),this.cancel(G,!0)),mousedrag:G=>{G.buttons&&$(G)},mousemove:G=>{G.buttons||$(G)}};this.register(this.coreMouseService.onProtocolChange((G=>{G?(this.optionsService.rawOptions.logLevel==="debug"&&this._logService.debug("Binding to mouse events:",this.coreMouseService.explainEvents(G)),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&G?P.mousemove||(I.addEventListener("mousemove",K.mousemove),P.mousemove=K.mousemove):(I.removeEventListener("mousemove",P.mousemove),P.mousemove=null),16&G?P.wheel||(I.addEventListener("wheel",K.wheel,{passive:!1}),P.wheel=K.wheel):(I.removeEventListener("wheel",P.wheel),P.wheel=null),2&G?P.mouseup||(P.mouseup=K.mouseup):(this._document.removeEventListener("mouseup",P.mouseup),P.mouseup=null),4&G?P.mousedrag||(P.mousedrag=K.mousedrag):(this._document.removeEventListener("mousemove",P.mousedrag),P.mousedrag=null)}))),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,g.addDisposableDomListener)(I,"mousedown",(G=>{if(G.preventDefault(),this.focus(),this.coreMouseService.areMouseEventsActive&&!this._selectionService.shouldForceSelection(G))return $(G),P.mouseup&&this._document.addEventListener("mouseup",P.mouseup),P.mousedrag&&this._document.addEventListener("mousemove",P.mousedrag),this.cancel(G)}))),this.register((0,g.addDisposableDomListener)(I,"wheel",(G=>{if(!P.wheel){if(this._customWheelEventHandler&&this._customWheelEventHandler(G)===!1)return!1;if(!this.buffer.hasScrollback){const ee=this.viewport.getLinesScrolled(G);if(ee===0)return;const ne=z.C0.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(G.deltaY<0?"A":"B");let ae="";for(let _e=0;_e<Math.abs(ee);_e++)ae+=ne;return this.coreService.triggerDataEvent(ae,!0),this.cancel(G,!0)}return this.viewport.handleWheel(G)?this.cancel(G):void 0}}),{passive:!1})),this.register((0,g.addDisposableDomListener)(I,"touchstart",(G=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchStart(G),this.cancel(G)}),{passive:!0})),this.register((0,g.addDisposableDomListener)(I,"touchmove",(G=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchMove(G)?void 0:this.cancel(G)}),{passive:!1}))}refresh(N,I){var $;($=this._renderService)==null||$.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,$=0){var P;$===1?(super.scrollLines(N,I,$),this.refresh(0,this.rows-1)):(P=this.viewport)==null||P.scrollLines(N)}paste(N){(0,d.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,$){this._selectionService.setSelection(N,I,$)}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 $;($=this._selectionService)==null||$.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 $=(0,V.evaluateKeyboardEvent)(N,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(N),$.type===3||$.type===2){const P=this.rows-1;return this.scrollLines($.type===2?-P:P),this.cancel(N,!0)}return $.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,N)||($.cancel&&this.cancel(N,!0),!$.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):($.key!==z.C0.ETX&&$.key!==z.C0.CR||(this.textarea.value=""),this._onKey.fire({key:$.key,domEvent:N}),this._showCursor(),this.coreService.triggerDataEvent($.key,!0),!this.optionsService.rawOptions.screenReaderMode||N.altKey||N.ctrlKey?this.cancel(N,!0):void(this._keyDownHandled=!0))))}_isThirdLevelShift(N,I){const $=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"?$:$&&(!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 $,P;($=this._charSizeService)==null||$.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(W.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 I,$;this.options.rows=this.rows,this.options.cols=this.cols;const N=this._customKeyEventHandler;this._setup(),super.reset(),(I=this._selectionService)==null||I.reset(),this._decorationService.reset(),($=this.viewport)==null||$.reset(),this._customKeyEventHandler=N,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),$=this._renderService.dimensions.css.canvas.height.toFixed(0);this.coreService.triggerDataEvent(`${z.C0.ESC}[4;${$};${I}t`);break;case O.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:const P=this._renderService.dimensions.css.cell.width.toFixed(0),K=this._renderService.dimensions.css.cell.height.toFixed(0);this.coreService.triggerDataEvent(`${z.C0.ESC}[6;${K};${P}t`)}}cancel(N,I){if(this.options.cancelEvents||I)return N.preventDefault(),N.stopPropagation(),!1}}i.Terminal=X},9924:(C,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.TimeBasedDebouncer=void 0,i.TimeBasedDebouncer=class{constructor(c,d=1e3){this._renderCallback=c,this._debounceThresholdMS=d,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}dispose(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}refresh(c,d,g){this._rowCount=g,c=c!==void 0?c:0,d=d!==void 0?d:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,c):c,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,d):d;const l=Date.now();if(l-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=l,this._innerRefresh();else if(!this._additionalRefreshRequested){const _=l-this._lastRefreshMs,b=this._debounceThresholdMS-_;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout((()=>{this._lastRefreshMs=Date.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0}),b)}}_innerRefresh(){if(this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return;const c=Math.max(this._rowStart,0),d=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(c,d)}}},1680:function(C,i,c){var d=this&&this.__decorate||function(n,o,a,u){var S,m=arguments.length,y=m<3?o:u===null?u=Object.getOwnPropertyDescriptor(o,a):u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(n,o,a,u);else for(var p=n.length-1;p>=0;p--)(S=n[p])&&(y=(m<3?S(y):m>3?S(o,a,y):S(o,a))||y);return m>3&&y&&Object.defineProperty(o,a,y),y},g=this&&this.__param||function(n,o){return function(a,u){o(a,u,n)}};Object.defineProperty(i,"__esModule",{value:!0}),i.Viewport=void 0;const l=c(3656),_=c(4725),b=c(8460),w=c(844),f=c(2585);let s=i.Viewport=class extends w.Disposable{constructor(n,o,a,u,S,m,y,p){super(),this._viewportElement=n,this._scrollArea=o,this._bufferService=a,this._optionsService=u,this._charSizeService=S,this._renderService=m,this._coreBrowserService=y,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 b.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this.register((0,l.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(p.colors),this.register(p.onChangeColors((k=>this._handleThemeChange(k)))),this.register(this._optionsService.onSpecificOptionChange("scrollback",(()=>this.syncScrollArea()))),setTimeout((()=>this.syncScrollArea()))}_handleThemeChange(n){this._viewportElement.style.backgroundColor=n.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(n){if(n)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 o=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderDimensions.css.canvas.height);this._lastRecordedBufferHeight!==o&&(this._lastRecordedBufferHeight=o,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}const n=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==n&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=n),this._refreshAnimationFrame=null}syncScrollArea(n=!1){if(this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(n);this._lastRecordedViewportHeight===this._renderService.dimensions.css.canvas.height&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.device.cell.height===this._currentDeviceCellHeight||this._refresh(n)}_handleScroll(n){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 o=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._onRequestScrollLines.fire({amount:o,suppressScrollEvent:!0})}_smoothScroll(){if(this._isDisposed||this._smoothScrollState.origin===-1||this._smoothScrollState.target===-1)return;const n=this._smoothScrollPercent();this._viewportElement.scrollTop=this._smoothScrollState.origin+Math.round(n*(this._smoothScrollState.target-this._smoothScrollState.origin)),n<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(n,o){const a=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(o<0&&this._viewportElement.scrollTop!==0||o>0&&a<this._lastRecordedBufferHeight)||(n.cancelable&&n.preventDefault(),!1)}handleWheel(n){const o=this._getPixelsScrolled(n);return o!==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+o:this._smoothScrollState.target+=o,this._smoothScrollState.target=Math.max(Math.min(this._smoothScrollState.target,this._viewportElement.scrollHeight),0),this._smoothScroll()):this._clearSmoothScrollState()):this._viewportElement.scrollTop+=o,this._bubbleScroll(n,o))}scrollLines(n){if(n!==0)if(this._optionsService.rawOptions.smoothScrollDuration){const o=n*this._currentRowHeight;this._smoothScrollState.startTime=Date.now(),this._smoothScrollPercent()<1?(this._smoothScrollState.origin=this._viewportElement.scrollTop,this._smoothScrollState.target=this._smoothScrollState.origin+o,this._smoothScrollState.target=Math.max(Math.min(this._smoothScrollState.target,this._viewportElement.scrollHeight),0),this._smoothScroll()):this._clearSmoothScrollState()}else this._onRequestScrollLines.fire({amount:n,suppressScrollEvent:!1})}_getPixelsScrolled(n){if(n.deltaY===0||n.shiftKey)return 0;let o=this._applyScrollModifier(n.deltaY,n);return n.deltaMode===WheelEvent.DOM_DELTA_LINE?o*=this._currentRowHeight:n.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(o*=this._currentRowHeight*this._bufferService.rows),o}getBufferElements(n,o){var p;let a,u="";const S=[],m=o??this._bufferService.buffer.lines.length,y=this._bufferService.buffer.lines;for(let k=n;k<m;k++){const x=y.get(k);if(!x)continue;const L=(p=y.get(k+1))==null?void 0:p.isWrapped;if(u+=x.translateToString(!L),!L||k===y.length-1){const T=document.createElement("div");T.textContent=u,S.push(T),u.length>0&&(a=T),u=""}}return{bufferElements:S,cursorElement:a}}getLinesScrolled(n){if(n.deltaY===0||n.shiftKey)return 0;let o=this._applyScrollModifier(n.deltaY,n);return n.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(o/=this._currentRowHeight+0,this._wheelPartialScroll+=o,o=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):n.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(o*=this._bufferService.rows),o}_applyScrollModifier(n,o){const a=this._optionsService.rawOptions.fastScrollModifier;return a==="alt"&&o.altKey||a==="ctrl"&&o.ctrlKey||a==="shift"&&o.shiftKey?n*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:n*this._optionsService.rawOptions.scrollSensitivity}handleTouchStart(n){this._lastTouchY=n.touches[0].pageY}handleTouchMove(n){const o=this._lastTouchY-n.touches[0].pageY;return this._lastTouchY=n.touches[0].pageY,o!==0&&(this._viewportElement.scrollTop+=o,this._bubbleScroll(n,o))}};i.Viewport=s=d([g(2,f.IBufferService),g(3,f.IOptionsService),g(4,_.ICharSizeService),g(5,_.IRenderService),g(6,_.ICoreBrowserService),g(7,_.IThemeService)],s)},3107:function(C,i,c){var d=this&&this.__decorate||function(f,s,n,o){var a,u=arguments.length,S=u<3?s:o===null?o=Object.getOwnPropertyDescriptor(s,n):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(f,s,n,o);else for(var m=f.length-1;m>=0;m--)(a=f[m])&&(S=(u<3?a(S):u>3?a(s,n,S):a(s,n))||S);return u>3&&S&&Object.defineProperty(s,n,S),S},g=this&&this.__param||function(f,s){return function(n,o){s(n,o,f)}};Object.defineProperty(i,"__esModule",{value:!0}),i.BufferDecorationRenderer=void 0;const l=c(4725),_=c(844),b=c(2585);let w=i.BufferDecorationRenderer=class extends _.Disposable{constructor(f,s,n,o,a){super(),this._screenElement=f,this._bufferService=s,this._coreBrowserService=n,this._decorationService=o,this._renderService=a,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((u=>this._removeDecoration(u)))),this.register((0,_.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 f of this._decorationService.decorations)this._renderDecoration(f);this._dimensionsChanged=!1}_renderDecoration(f){this._refreshStyle(f),this._dimensionsChanged&&this._refreshXPosition(f)}_createElement(f){var o;const s=this._coreBrowserService.mainDocument.createElement("div");s.classList.add("xterm-decoration"),s.classList.toggle("xterm-decoration-top-layer",((o=f==null?void 0:f.options)==null?void 0:o.layer)==="top"),s.style.width=`${Math.round((f.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,s.style.height=(f.options.height||1)*this._renderService.dimensions.css.cell.height+"px",s.style.top=(f.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.css.cell.height+"px",s.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`;const n=f.options.x??0;return n&&n>this._bufferService.cols&&(s.style.display="none"),this._refreshXPosition(f,s),s}_refreshStyle(f){const s=f.marker.line-this._bufferService.buffers.active.ydisp;if(s<0||s>=this._bufferService.rows)f.element&&(f.element.style.display="none",f.onRenderEmitter.fire(f.element));else{let n=this._decorationElements.get(f);n||(n=this._createElement(f),f.element=n,this._decorationElements.set(f,n),this._container.appendChild(n),f.onDispose((()=>{this._decorationElements.delete(f),n.remove()}))),n.style.top=s*this._renderService.dimensions.css.cell.height+"px",n.style.display=this._altBufferIsActive?"none":"block",f.onRenderEmitter.fire(n)}}_refreshXPosition(f,s=f.element){if(!s)return;const n=f.options.x??0;(f.options.anchor||"left")==="right"?s.style.right=n?n*this._renderService.dimensions.css.cell.width+"px":"":s.style.left=n?n*this._renderService.dimensions.css.cell.width+"px":""}_removeDecoration(f){var s;(s=this._decorationElements.get(f))==null||s.remove(),this._decorationElements.delete(f),f.dispose()}};i.BufferDecorationRenderer=w=d([g(1,b.IBufferService),g(2,l.ICoreBrowserService),g(3,b.IDecorationService),g(4,l.IRenderService)],w)},5871:(C,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(c){if(c.options.overviewRulerOptions){for(const d of this._zones)if(d.color===c.options.overviewRulerOptions.color&&d.position===c.options.overviewRulerOptions.position){if(this._lineIntersectsZone(d,c.marker.line))return;if(this._lineAdjacentToZone(d,c.marker.line,c.options.overviewRulerOptions.position))return void this._addLineToZone(d,c.marker.line)}if(this._zonePoolIndex<this._zonePool.length)return this._zonePool[this._zonePoolIndex].color=c.options.overviewRulerOptions.color,this._zonePool[this._zonePoolIndex].position=c.options.overviewRulerOptions.position,this._zonePool[this._zonePoolIndex].startBufferLine=c.marker.line,this._zonePool[this._zonePoolIndex].endBufferLine=c.marker.line,void this._zones.push(this._zonePool[this._zonePoolIndex++]);this._zones.push({color:c.options.overviewRulerOptions.color,position:c.options.overviewRulerOptions.position,startBufferLine:c.marker.line,endBufferLine:c.marker.line}),this._zonePool.push(this._zones[this._zones.length-1]),this._zonePoolIndex++}}setPadding(c){this._linePadding=c}_lineIntersectsZone(c,d){return d>=c.startBufferLine&&d<=c.endBufferLine}_lineAdjacentToZone(c,d,g){return d>=c.startBufferLine-this._linePadding[g||"full"]&&d<=c.endBufferLine+this._linePadding[g||"full"]}_addLineToZone(c,d){c.startBufferLine=Math.min(c.startBufferLine,d),c.endBufferLine=Math.max(c.endBufferLine,d)}}},5744:function(C,i,c){var d=this&&this.__decorate||function(a,u,S,m){var y,p=arguments.length,k=p<3?u:m===null?m=Object.getOwnPropertyDescriptor(u,S):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(a,u,S,m);else for(var x=a.length-1;x>=0;x--)(y=a[x])&&(k=(p<3?y(k):p>3?y(u,S,k):y(u,S))||k);return p>3&&k&&Object.defineProperty(u,S,k),k},g=this&&this.__param||function(a,u){return function(S,m){u(S,m,a)}};Object.defineProperty(i,"__esModule",{value:!0}),i.OverviewRulerRenderer=void 0;const l=c(5871),_=c(4725),b=c(844),w=c(2585),f={full:0,left:0,center:0,right:0},s={full:0,left:0,center:0,right:0},n={full:0,left:0,center:0,right:0};let o=i.OverviewRulerRenderer=class extends b.Disposable{get _width(){return this._optionsService.options.overviewRulerWidth||0}constructor(a,u,S,m,y,p,k){var L;super(),this._viewportElement=a,this._screenElement=u,this._bufferService=S,this._decorationService=m,this._renderService=y,this._optionsService=p,this._coreBrowserService=k,this._colorZoneStore=new l.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(),(L=this._viewportElement.parentElement)==null||L.insertBefore(this._canvas,this._viewportElement);const x=this._canvas.getContext("2d");if(!x)throw new Error("Ctx cannot be null");this._ctx=x,this._registerDecorationListeners(),this._registerBufferChangeListeners(),this._registerDimensionChangeListeners(),this.register((0,b.toDisposable)((()=>{var T;(T=this._canvas)==null||T.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 a=Math.floor(this._canvas.width/3),u=Math.ceil(this._canvas.width/3);s.full=this._canvas.width,s.left=a,s.center=u,s.right=a,this._refreshDrawHeightConstants(),n.full=0,n.left=0,n.center=s.left,n.right=s.left+s.center}_refreshDrawHeightConstants(){f.full=Math.round(2*this._coreBrowserService.dpr);const a=this._canvas.height/this._bufferService.buffer.lines.length,u=Math.round(Math.max(Math.min(a,12),6)*this._coreBrowserService.dpr);f.left=u,f.center=u,f.right=u}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*f.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*f.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*f.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*f.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 u of this._decorationService.decorations)this._colorZoneStore.addDecoration(u);this._ctx.lineWidth=1;const a=this._colorZoneStore.zones;for(const u of a)u.position!=="full"&&this._renderColorZone(u);for(const u of a)u.position==="full"&&this._renderColorZone(u);this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}_renderColorZone(a){this._ctx.fillStyle=a.color,this._ctx.fillRect(n[a.position||"full"],Math.round((this._canvas.height-1)*(a.startBufferLine/this._bufferService.buffers.active.lines.length)-f[a.position||"full"]/2),s[a.position||"full"],Math.round((this._canvas.height-1)*((a.endBufferLine-a.startBufferLine)/this._bufferService.buffers.active.lines.length)+f[a.position||"full"]))}_queueRefresh(a,u){this._shouldUpdateDimensions=a||this._shouldUpdateDimensions,this._shouldUpdateAnchor=u||this._shouldUpdateAnchor,this._animationFrame===void 0&&(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._refreshDecorations(),this._animationFrame=void 0})))}};i.OverviewRulerRenderer=o=d([g(2,w.IBufferService),g(3,w.IDecorationService),g(4,_.IRenderService),g(5,w.IOptionsService),g(6,_.ICoreBrowserService)],o)},2950:function(C,i,c){var d=this&&this.__decorate||function(f,s,n,o){var a,u=arguments.length,S=u<3?s:o===null?o=Object.getOwnPropertyDescriptor(s,n):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(f,s,n,o);else for(var m=f.length-1;m>=0;m--)(a=f[m])&&(S=(u<3?a(S):u>3?a(s,n,S):a(s,n))||S);return u>3&&S&&Object.defineProperty(s,n,S),S},g=this&&this.__param||function(f,s){return function(n,o){s(n,o,f)}};Object.defineProperty(i,"__esModule",{value:!0}),i.CompositionHelper=void 0;const l=c(4725),_=c(2585),b=c(2584);let w=i.CompositionHelper=class{get isComposing(){return this._isComposing}constructor(f,s,n,o,a,u){this._textarea=f,this._compositionView=s,this._bufferService=n,this._optionsService=o,this._coreService=a,this._renderService=u,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(f){this._compositionView.textContent=f.data,this.updateCompositionElements(),setTimeout((()=>{this._compositionPosition.end=this._textarea.value.length}),0)}compositionend(){this._finalizeComposition(!0)}keydown(f){if(this._isComposing||this._isSendingComposition){if(f.keyCode===229||f.keyCode===16||f.keyCode===17||f.keyCode===18)return!1;this._finalizeComposition(!1)}return f.keyCode!==229||(this._handleAnyTextareaChanges(),!1)}_finalizeComposition(f){if(this._compositionView.classList.remove("active"),this._isComposing=!1,f){const s={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout((()=>{if(this._isSendingComposition){let n;this._isSendingComposition=!1,s.start+=this._dataAlreadySent.length,n=this._isComposing?this._textarea.value.substring(s.start,s.end):this._textarea.value.substring(s.start),n.length>0&&this._coreService.triggerDataEvent(n,!0)}}),0)}else{this._isSendingComposition=!1;const s=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(s,!0)}}_handleAnyTextareaChanges(){const f=this._textarea.value;setTimeout((()=>{if(!this._isComposing){const s=this._textarea.value,n=s.replace(f,"");this._dataAlreadySent=n,s.length>f.length?this._coreService.triggerDataEvent(n,!0):s.length<f.length?this._coreService.triggerDataEvent(`${b.C0.DEL}`,!0):s.length===f.length&&s!==f&&this._coreService.triggerDataEvent(s,!0)}}),0)}updateCompositionElements(f){if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){const s=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),n=this._renderService.dimensions.css.cell.height,o=this._bufferService.buffer.y*this._renderService.dimensions.css.cell.height,a=s*this._renderService.dimensions.css.cell.width;this._compositionView.style.left=a+"px",this._compositionView.style.top=o+"px",this._compositionView.style.height=n+"px",this._compositionView.style.lineHeight=n+"px",this._compositionView.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._compositionView.style.fontSize=this._optionsService.rawOptions.fontSize+"px";const u=this._compositionView.getBoundingClientRect();this._textarea.style.left=a+"px",this._textarea.style.top=o+"px",this._textarea.style.width=Math.max(u.width,1)+"px",this._textarea.style.height=Math.max(u.height,1)+"px",this._textarea.style.lineHeight=u.height+"px"}f||setTimeout((()=>this.updateCompositionElements(!0)),0)}}};i.CompositionHelper=w=d([g(2,_.IBufferService),g(3,_.IOptionsService),g(4,_.ICoreService),g(5,l.IRenderService)],w)},9806:(C,i)=>{function c(d,g,l){const _=l.getBoundingClientRect(),b=d.getComputedStyle(l),w=parseInt(b.getPropertyValue("padding-left")),f=parseInt(b.getPropertyValue("padding-top"));return[g.clientX-_.left-w,g.clientY-_.top-f]}Object.defineProperty(i,"__esModule",{value:!0}),i.getCoords=i.getCoordsRelativeToElement=void 0,i.getCoordsRelativeToElement=c,i.getCoords=function(d,g,l,_,b,w,f,s,n){if(!w)return;const o=c(d,g,l);return o?(o[0]=Math.ceil((o[0]+(n?f/2:0))/f),o[1]=Math.ceil(o[1]/s),o[0]=Math.min(Math.max(o[0],1),_+(n?1:0)),o[1]=Math.min(Math.max(o[1],1),b),o):void 0}},9504:(C,i,c)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.moveToCellSequence=void 0;const d=c(2584);function g(s,n,o,a){const u=s-l(s,o),S=n-l(n,o),m=Math.abs(u-S)-(function(y,p,k){let x=0;const L=y-l(y,k),T=p-l(p,k);for(let R=0;R<Math.abs(L-T);R++){const M=_(y,p)==="A"?-1:1,F=k.buffer.lines.get(L+M*R);F!=null&&F.isWrapped&&x++}return x})(s,n,o);return f(m,w(_(s,n),a))}function l(s,n){let o=0,a=n.buffer.lines.get(s),u=a==null?void 0:a.isWrapped;for(;u&&s>=0&&s<n.rows;)o++,a=n.buffer.lines.get(--s),u=a==null?void 0:a.isWrapped;return o}function _(s,n){return s>n?"A":"B"}function b(s,n,o,a,u,S){let m=s,y=n,p="";for(;m!==o||y!==a;)m+=u?1:-1,u&&m>S.cols-1?(p+=S.buffer.translateBufferLineToString(y,!1,s,m),m=0,s=0,y++):!u&&m<0&&(p+=S.buffer.translateBufferLineToString(y,!1,0,s+1),m=S.cols-1,s=m,y--);return p+S.buffer.translateBufferLineToString(y,!1,s,m)}function w(s,n){const o=n?"O":"[";return d.C0.ESC+o+s}function f(s,n){s=Math.floor(s);let o="";for(let a=0;a<s;a++)o+=n;return o}i.moveToCellSequence=function(s,n,o,a){const u=o.buffer.x,S=o.buffer.y;if(!o.buffer.hasScrollback)return(function(p,k,x,L,T,R){return g(k,L,T,R).length===0?"":f(b(p,k,p,k-l(k,T),!1,T).length,w("D",R))})(u,S,0,n,o,a)+g(S,n,o,a)+(function(p,k,x,L,T,R){let M;M=g(k,L,T,R).length>0?L-l(L,T):k;const F=L,W=(function(z,V,B,A,D,O){let U;return U=g(B,A,D,O).length>0?A-l(A,D):V,z<B&&U<=A||z>=B&&U<A?"C":"D"})(p,k,x,L,T,R);return f(b(p,M,x,F,W==="C",T).length,w(W,R))})(u,S,s,n,o,a);let m;if(S===n)return m=u>s?"D":"C",f(Math.abs(u-s),w(m,a));m=S>n?"D":"C";const y=Math.abs(S-n);return f((function(p,k){return k.cols-p})(S>n?s:u,o)+(y-1)*o.cols+1+((S>n?u:s)-1),w(m,a))}},1296:function(C,i,c){var d=this&&this.__decorate||function(R,M,F,W){var z,V=arguments.length,B=V<3?M:W===null?W=Object.getOwnPropertyDescriptor(M,F):W;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")B=Reflect.decorate(R,M,F,W);else for(var A=R.length-1;A>=0;A--)(z=R[A])&&(B=(V<3?z(B):V>3?z(M,F,B):z(M,F))||B);return V>3&&B&&Object.defineProperty(M,F,B),B},g=this&&this.__param||function(R,M){return function(F,W){M(F,W,R)}};Object.defineProperty(i,"__esModule",{value:!0}),i.DomRenderer=void 0;const l=c(3787),_=c(2550),b=c(2223),w=c(6171),f=c(6052),s=c(4725),n=c(8055),o=c(8460),a=c(844),u=c(2585),S="xterm-dom-renderer-owner-",m="xterm-rows",y="xterm-fg-",p="xterm-bg-",k="xterm-focus",x="xterm-selection";let L=1,T=i.DomRenderer=class extends a.Disposable{constructor(R,M,F,W,z,V,B,A,D,O,U,j,X){super(),this._terminal=R,this._document=M,this._element=F,this._screenElement=W,this._viewportElement=z,this._helperContainer=V,this._linkifier2=B,this._charSizeService=D,this._optionsService=O,this._bufferService=U,this._coreBrowserService=j,this._themeService=X,this._terminalClass=L++,this._rowElements=[],this._selectionRenderModel=(0,f.createSelectionRenderModel)(),this.onRequestRedraw=this.register(new o.EventEmitter).event,this._rowContainer=this._document.createElement("div"),this._rowContainer.classList.add(m),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(x),this._selectionContainer.setAttribute("aria-hidden","true"),this.dimensions=(0,w.createRenderDimensions)(),this._updateDimensions(),this.register(this._optionsService.onOptionChange((()=>this._handleOptionsChanged()))),this.register(this._themeService.onChangeColors((Y=>this._injectCss(Y)))),this._injectCss(this._themeService.colors),this._rowFactory=A.createInstance(l.DomRendererRowFactory,document),this._element.classList.add(S+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this.register(this._linkifier2.onShowLinkUnderline((Y=>this._handleLinkHover(Y)))),this.register(this._linkifier2.onHideLinkUnderline((Y=>this._handleLinkLeave(Y)))),this.register((0,a.toDisposable)((()=>{this._element.classList.remove(S+this._terminalClass),this._rowContainer.remove(),this._selectionContainer.remove(),this._widthCache.dispose(),this._themeStyleElement.remove(),this._dimensionsStyleElement.remove()}))),this._widthCache=new _.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 F of this._rowElements)F.style.width=`${this.dimensions.css.canvas.width}px`,F.style.height=`${this.dimensions.css.cell.height}px`,F.style.lineHeight=`${this.dimensions.css.cell.height}px`,F.style.overflow="hidden";this._dimensionsStyleElement||(this._dimensionsStyleElement=this._document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));const M=`${this._terminalSelector} .${m} 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} .${m} { 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} .${m} .xterm-dim { color: ${n.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 F=`blink_underline_${this._terminalClass}`,W=`blink_bar_${this._terminalClass}`,z=`blink_block_${this._terminalClass}`;M+=`@keyframes ${F} { 50% { border-bottom-style: hidden; }}`,M+=`@keyframes ${W} { 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} .${m}.${k} .xterm-cursor.xterm-cursor-blink.xterm-cursor-underline { animation: ${F} 1s step-end infinite;}${this._terminalSelector} .${m}.${k} .xterm-cursor.xterm-cursor-blink.xterm-cursor-bar { animation: ${W} 1s step-end infinite;}${this._terminalSelector} .${m}.${k} .xterm-cursor.xterm-cursor-blink.xterm-cursor-block { animation: ${z} 1s step-end infinite;}${this._terminalSelector} .${m} .xterm-cursor.xterm-cursor-block { background-color: ${R.cursor.css}; color: ${R.cursorAccent.css};}${this._terminalSelector} .${m} .xterm-cursor.xterm-cursor-block:not(.xterm-cursor-blink) { background-color: ${R.cursor.css} !important; color: ${R.cursorAccent.css} !important;}${this._terminalSelector} .${m} .xterm-cursor.xterm-cursor-outline { outline: 1px solid ${R.cursor.css}; outline-offset: -1px;}${this._terminalSelector} .${m} .xterm-cursor.xterm-cursor-bar { box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${R.cursor.css} inset;}${this._terminalSelector} .${m} .xterm-cursor.xterm-cursor-underline { border-bottom: 1px ${R.cursor.css}; border-bottom-style: solid; height: calc(100% - 1px);}`,M+=`${this._terminalSelector} .${x} { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .${x} div { position: absolute; background-color: ${R.selectionBackgroundOpaque.css};}${this._terminalSelector} .${x} div { position: absolute; background-color: ${R.selectionInactiveBackgroundOpaque.css};}`;for(const[V,B]of R.ansi.entries())M+=`${this._terminalSelector} .${y}${V} { color: ${B.css}; }${this._terminalSelector} .${y}${V}.xterm-dim { color: ${n.color.multiplyOpacity(B,.5).css}; }${this._terminalSelector} .${p}${V} { background-color: ${B.css}; }`;M+=`${this._terminalSelector} .${y}${b.INVERTED_DEFAULT_COLOR} { color: ${n.color.opaque(R.background).css}; }${this._terminalSelector} .${y}${b.INVERTED_DEFAULT_COLOR}.xterm-dim { color: ${n.color.multiplyOpacity(n.color.opaque(R.background),.5).css}; }${this._terminalSelector} .${p}${b.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 F=this._rowElements.length;F<=M;F++){const W=this._document.createElement("div");this._rowContainer.appendChild(W),this._rowElements.push(W)}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,F){if(this._selectionContainer.replaceChildren(),this._rowFactory.handleSelectionChanged(R,M,F),this.renderRows(0,this._bufferService.rows-1),!R||!M)return;this._selectionRenderModel.update(this._terminal,R,M,F);const W=this._selectionRenderModel.viewportStartRow,z=this._selectionRenderModel.viewportEndRow,V=this._selectionRenderModel.viewportCappedStartRow,B=this._selectionRenderModel.viewportCappedEndRow;if(V>=this._bufferService.rows||B<0)return;const A=this._document.createDocumentFragment();if(F){const D=R[0]>M[0];A.appendChild(this._createSelectionElement(V,D?M[0]:R[0],D?R[0]:M[0],B-V+1))}else{const D=W===V?R[0]:0,O=V===z?M[0]:this._bufferService.cols;A.appendChild(this._createSelectionElement(V,D,O));const U=B-V-1;if(A.appendChild(this._createSelectionElement(V+1,0,this._bufferService.cols,U)),V!==B){const j=z===B?M[0]:this._bufferService.cols;A.appendChild(this._createSelectionElement(B,0,j))}}this._selectionContainer.appendChild(A)}_createSelectionElement(R,M,F,W=1){const z=this._document.createElement("div"),V=M*this.dimensions.css.cell.width;let B=this.dimensions.css.cell.width*(F-M);return V+B>this.dimensions.css.canvas.width&&(B=this.dimensions.css.canvas.width-V),z.style.height=W*this.dimensions.css.cell.height+"px",z.style.top=R*this.dimensions.css.cell.height+"px",z.style.left=`${V}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 F=this._bufferService.buffer,W=F.ybase+F.y,z=Math.min(F.x,this._bufferService.cols-1),V=this._optionsService.rawOptions.cursorBlink,B=this._optionsService.rawOptions.cursorStyle,A=this._optionsService.rawOptions.cursorInactiveStyle;for(let D=R;D<=M;D++){const O=D+F.ydisp,U=this._rowElements[D],j=F.lines.get(O);if(!U||!j)break;U.replaceChildren(...this._rowFactory.createRow(j,O,O===W,B,A,z,V,this.dimensions.css.cell.width,this._widthCache,-1,-1))}}get _terminalSelector(){return`.${S}${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,F,W,z,V){F<0&&(R=0),W<0&&(M=0);const B=this._bufferService.rows-1;F=Math.max(Math.min(F,B),0),W=Math.max(Math.min(W,B),0),z=Math.min(z,this._bufferService.cols);const A=this._bufferService.buffer,D=A.ybase+A.y,O=Math.min(A.x,z-1),U=this._optionsService.rawOptions.cursorBlink,j=this._optionsService.rawOptions.cursorStyle,X=this._optionsService.rawOptions.cursorInactiveStyle;for(let Y=F;Y<=W;++Y){const N=Y+A.ydisp,I=this._rowElements[Y],$=A.lines.get(N);if(!I||!$)break;I.replaceChildren(...this._rowFactory.createRow($,N,N===D,j,X,O,U,this.dimensions.css.cell.width,this._widthCache,V?Y===F?R:0:-1,V?(Y===W?M:z)-1:-1))}}};i.DomRenderer=T=d([g(7,u.IInstantiationService),g(8,s.ICharSizeService),g(9,u.IOptionsService),g(10,u.IBufferService),g(11,s.ICoreBrowserService),g(12,s.IThemeService)],T)},3787:function(C,i,c){var d=this&&this.__decorate||function(m,y,p,k){var x,L=arguments.length,T=L<3?y:k===null?k=Object.getOwnPropertyDescriptor(y,p):k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(m,y,p,k);else for(var R=m.length-1;R>=0;R--)(x=m[R])&&(T=(L<3?x(T):L>3?x(y,p,T):x(y,p))||T);return L>3&&T&&Object.defineProperty(y,p,T),T},g=this&&this.__param||function(m,y){return function(p,k){y(p,k,m)}};Object.defineProperty(i,"__esModule",{value:!0}),i.DomRendererRowFactory=void 0;const l=c(2223),_=c(643),b=c(511),w=c(2585),f=c(8055),s=c(4725),n=c(4269),o=c(6171),a=c(3734);let u=i.DomRendererRowFactory=class{constructor(m,y,p,k,x,L,T){this._document=m,this._characterJoinerService=y,this._optionsService=p,this._coreBrowserService=k,this._coreService=x,this._decorationService=L,this._themeService=T,this._workCell=new b.CellData,this._columnSelectMode=!1,this.defaultSpacing=0}handleSelectionChanged(m,y,p){this._selectionStart=m,this._selectionEnd=y,this._columnSelectMode=p}createRow(m,y,p,k,x,L,T,R,M,F,W){const z=[],V=this._characterJoinerService.getJoinedCharacters(y),B=this._themeService.colors;let A,D=m.getNoBgTrimmedLength();p&&D<L+1&&(D=L+1);let O=0,U="",j=0,X=0,Y=0,N=!1,I=0,$=!1,P=0;const K=[],G=F!==-1&&W!==-1;for(let ee=0;ee<D;ee++){m.loadCell(ee,this._workCell);let ne=this._workCell.getWidth();if(ne===0)continue;let ae=!1,_e=ee,q=this._workCell;if(V.length>0&&ee===V[0][0]){ae=!0;const se=V.shift();q=new n.JoinedCellData(this._workCell,m.translateToString(!0,se[0],se[1]),se[1]-se[0]),_e=se[1]-1,ne=q.getWidth()}const tt=this._isCellInSelection(ee,y),Qt=p&&ee===L,er=G&&ee>=F&&ee<=W;let tr=!1;this._decorationService.forEachDecorationAtCell(ee,y,void 0,(se=>{tr=!0}));let Rt=q.getChars()||_.WHITESPACE_CELL_CHAR;if(Rt===" "&&(q.isUnderline()||q.isOverline())&&(Rt=" "),P=ne*R-M.get(Rt,q.isBold(),q.isItalic()),A){if(O&&(tt&&$||!tt&&!$&&q.bg===j)&&(tt&&$&&B.selectionForeground||q.fg===X)&&q.extended.ext===Y&&er===N&&P===I&&!Qt&&!ae&&!tr){q.isInvisible()?U+=_.WHITESPACE_CELL_CHAR:U+=Rt,O++;continue}O&&(A.textContent=U),A=this._document.createElement("span"),O=0,U=""}else A=this._document.createElement("span");if(j=q.bg,X=q.fg,Y=q.extended.ext,N=er,I=P,$=tt,ae&&L>=ee&&L<=_e&&(L=ee),!this._coreService.isCursorHidden&&Qt&&this._coreService.isCursorInitialized){if(K.push("xterm-cursor"),this._coreBrowserService.isFocused)T&&K.push("xterm-cursor-blink"),K.push(k==="bar"?"xterm-cursor-bar":k==="underline"?"xterm-cursor-underline":"xterm-cursor-block");else if(x)switch(x){case"outline":K.push("xterm-cursor-outline");break;case"block":K.push("xterm-cursor-block");break;case"bar":K.push("xterm-cursor-bar");break;case"underline":K.push("xterm-cursor-underline")}}if(q.isBold()&&K.push("xterm-bold"),q.isItalic()&&K.push("xterm-italic"),q.isDim()&&K.push("xterm-dim"),U=q.isInvisible()?_.WHITESPACE_CELL_CHAR:q.getChars()||_.WHITESPACE_CELL_CHAR,q.isUnderline()&&(K.push(`xterm-underline-${q.extended.underlineStyle}`),U===" "&&(U=" "),!q.isUnderlineColorDefault()))if(q.isUnderlineColorRGB())A.style.textDecorationColor=`rgb(${a.AttributeData.toColorRGB(q.getUnderlineColor()).join(",")})`;else{let se=q.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&q.isBold()&&se<8&&(se+=8),A.style.textDecorationColor=B.ansi[se].css}q.isOverline()&&(K.push("xterm-overline"),U===" "&&(U=" ")),q.isStrikethrough()&&K.push("xterm-strikethrough"),er&&(A.style.textDecoration="underline");let ve=q.getFgColor(),rt=q.getFgColorMode(),ye=q.getBgColor(),it=q.getBgColorMode();const rr=!!q.isInverse();if(rr){const se=ve;ve=ye,ye=se;const fo=rt;rt=it,it=fo}let Ie,xt,Re,st=!1;switch(this._decorationService.forEachDecorationAtCell(ee,y,void 0,(se=>{se.options.layer!=="top"&&st||(se.backgroundColorRGB&&(it=50331648,ye=se.backgroundColorRGB.rgba>>8&16777215,Ie=se.backgroundColorRGB),se.foregroundColorRGB&&(rt=50331648,ve=se.foregroundColorRGB.rgba>>8&16777215,xt=se.foregroundColorRGB),st=se.options.layer==="top")})),!st&&tt&&(Ie=this._coreBrowserService.isFocused?B.selectionBackgroundOpaque:B.selectionInactiveBackgroundOpaque,ye=Ie.rgba>>8&16777215,it=50331648,st=!0,B.selectionForeground&&(rt=50331648,ve=B.selectionForeground.rgba>>8&16777215,xt=B.selectionForeground)),st&&K.push("xterm-decoration-top"),it){case 16777216:case 33554432:Re=B.ansi[ye],K.push(`xterm-bg-${ye}`);break;case 50331648:Re=f.channels.toColor(ye>>16,ye>>8&255,255&ye),this._addStyle(A,`background-color:#${S((ye>>>0).toString(16),"0",6)}`);break;default:rr?(Re=B.foreground,K.push(`xterm-bg-${l.INVERTED_DEFAULT_COLOR}`)):Re=B.background}switch(Ie||q.isDim()&&(Ie=f.color.multiplyOpacity(Re,.5)),rt){case 16777216:case 33554432:q.isBold()&&ve<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(ve+=8),this._applyMinimumContrast(A,Re,B.ansi[ve],q,Ie,void 0)||K.push(`xterm-fg-${ve}`);break;case 50331648:const se=f.channels.toColor(ve>>16&255,ve>>8&255,255&ve);this._applyMinimumContrast(A,Re,se,q,Ie,xt)||this._addStyle(A,`color:#${S(ve.toString(16),"0",6)}`);break;default:this._applyMinimumContrast(A,Re,B.foreground,q,Ie,xt)||rr&&K.push(`xterm-fg-${l.INVERTED_DEFAULT_COLOR}`)}K.length&&(A.className=K.join(" "),K.length=0),Qt||ae||tr?A.textContent=U:O++,P!==this.defaultSpacing&&(A.style.letterSpacing=`${P}px`),z.push(A),ee=_e}return A&&O&&(A.textContent=U),z}_applyMinimumContrast(m,y,p,k,x,L){if(this._optionsService.rawOptions.minimumContrastRatio===1||(0,o.treatGlyphAsBackgroundColor)(k.getCode()))return!1;const T=this._getContrastCache(k);let R;if(x||L||(R=T.getColor(y.rgba,p.rgba)),R===void 0){const M=this._optionsService.rawOptions.minimumContrastRatio/(k.isDim()?2:1);R=f.color.ensureContrastRatio(x||y,L||p,M),T.setColor((x||y).rgba,(L||p).rgba,R??null)}return!!R&&(this._addStyle(m,`color:${R.css}`),!0)}_getContrastCache(m){return m.isDim()?this._themeService.colors.halfContrastCache:this._themeService.colors.contrastCache}_addStyle(m,y){m.setAttribute("style",`${m.getAttribute("style")||""}${y};`)}_isCellInSelection(m,y){const p=this._selectionStart,k=this._selectionEnd;return!(!p||!k)&&(this._columnSelectMode?p[0]<=k[0]?m>=p[0]&&y>=p[1]&&m<k[0]&&y<=k[1]:m<p[0]&&y>=p[1]&&m>=k[0]&&y<=k[1]:y>p[1]&&y<k[1]||p[1]===k[1]&&y===p[1]&&m>=p[0]&&m<k[0]||p[1]<k[1]&&y===k[1]&&m<k[0]||p[1]<k[1]&&y===p[1]&&m>=p[0])}};function S(m,y,p){for(;m.length<p;)m=y+m;return m}i.DomRendererRowFactory=u=d([g(1,s.ICharacterJoinerService),g(2,w.IOptionsService),g(3,s.ICoreBrowserService),g(4,w.ICoreService),g(5,w.IDecorationService),g(6,s.IThemeService)],u)},2550:(C,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.WidthCache=void 0,i.WidthCache=class{constructor(c,d){this._flat=new Float32Array(256),this._font="",this._fontSize=0,this._weight="normal",this._weightBold="bold",this._measureElements=[],this._container=c.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 g=c.createElement("span");g.classList.add("xterm-char-measure-element");const l=c.createElement("span");l.classList.add("xterm-char-measure-element"),l.style.fontWeight="bold";const _=c.createElement("span");_.classList.add("xterm-char-measure-element"),_.style.fontStyle="italic";const b=c.createElement("span");b.classList.add("xterm-char-measure-element"),b.style.fontWeight="bold",b.style.fontStyle="italic",this._measureElements=[g,l,_,b],this._container.appendChild(g),this._container.appendChild(l),this._container.appendChild(_),this._container.appendChild(b),d.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(c,d,g,l){c===this._font&&d===this._fontSize&&g===this._weight&&l===this._weightBold||(this._font=c,this._fontSize=d,this._weight=g,this._weightBold=l,this._container.style.fontFamily=this._font,this._container.style.fontSize=`${this._fontSize}px`,this._measureElements[0].style.fontWeight=`${g}`,this._measureElements[1].style.fontWeight=`${l}`,this._measureElements[2].style.fontWeight=`${g}`,this._measureElements[3].style.fontWeight=`${l}`,this.clear())}get(c,d,g){let l=0;if(!d&&!g&&c.length===1&&(l=c.charCodeAt(0))<256){if(this._flat[l]!==-9999)return this._flat[l];const w=this._measure(c,0);return w>0&&(this._flat[l]=w),w}let _=c;d&&(_+="B"),g&&(_+="I");let b=this._holey.get(_);if(b===void 0){let w=0;d&&(w|=1),g&&(w|=2),b=this._measure(c,w),b>0&&this._holey.set(_,b)}return b}_measure(c,d){const g=this._measureElements[d];return g.textContent=c.repeat(32),g.offsetWidth/32}}},2223:(C,i,c)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.TEXT_BASELINE=i.DIM_OPACITY=i.INVERTED_DEFAULT_COLOR=void 0;const d=c(6114);i.INVERTED_DEFAULT_COLOR=257,i.DIM_OPACITY=.5,i.TEXT_BASELINE=d.isFirefox||d.isLegacyEdge?"bottom":"ideographic"},6171:(C,i)=>{function c(g){return 57508<=g&&g<=57558}function d(g){return g>=128512&&g<=128591||g>=127744&&g<=128511||g>=128640&&g<=128767||g>=9728&&g<=9983||g>=9984&&g<=10175||g>=65024&&g<=65039||g>=129280&&g<=129535||g>=127462&&g<=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(g){if(!g)throw new Error("value must not be falsy");return g},i.isPowerlineGlyph=c,i.isRestrictedPowerlineGlyph=function(g){return 57520<=g&&g<=57527},i.isEmoji=d,i.allowRescaling=function(g,l,_,b){return l===1&&_>Math.ceil(1.5*b)&&g!==void 0&&g>255&&!d(g)&&!c(g)&&!(function(w){return 57344<=w&&w<=63743})(g)},i.treatGlyphAsBackgroundColor=function(g){return c(g)||(function(l){return 9472<=l&&l<=9631})(g)},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(g,l,_=0){return(g-(2*Math.round(l)-_))%(2*Math.round(l))}},6052:(C,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.createSelectionRenderModel=void 0;class c{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(g,l,_,b=!1){if(this.selectionStart=l,this.selectionEnd=_,!l||!_||l[0]===_[0]&&l[1]===_[1])return void this.clear();const w=g.buffers.active.ydisp,f=l[1]-w,s=_[1]-w,n=Math.max(f,0),o=Math.min(s,g.rows-1);n>=g.rows||o<0?this.clear():(this.hasSelection=!0,this.columnSelectMode=b,this.viewportStartRow=f,this.viewportEndRow=s,this.viewportCappedStartRow=n,this.viewportCappedEndRow=o,this.startCol=l[0],this.endCol=_[0])}isCellSelected(g,l,_){return!!this.hasSelection&&(_-=g.buffer.active.viewportY,this.columnSelectMode?this.startCol<=this.endCol?l>=this.startCol&&_>=this.viewportCappedStartRow&&l<this.endCol&&_<=this.viewportCappedEndRow:l<this.startCol&&_>=this.viewportCappedStartRow&&l>=this.endCol&&_<=this.viewportCappedEndRow:_>this.viewportStartRow&&_<this.viewportEndRow||this.viewportStartRow===this.viewportEndRow&&_===this.viewportStartRow&&l>=this.startCol&&l<this.endCol||this.viewportStartRow<this.viewportEndRow&&_===this.viewportEndRow&&l<this.endCol||this.viewportStartRow<this.viewportEndRow&&_===this.viewportStartRow&&l>=this.startCol)}}i.createSelectionRenderModel=function(){return new c}},456:(C,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.SelectionModel=void 0,i.SelectionModel=class{constructor(c){this._bufferService=c,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 c=this.selectionStart[0]+this.selectionStartLength;return c>this._bufferService.cols?c%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(c/this._bufferService.cols)-1]:[c%this._bufferService.cols,this.selectionStart[1]+Math.floor(c/this._bufferService.cols)]:[c,this.selectionStart[1]]}if(this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]){const c=this.selectionStart[0]+this.selectionStartLength;return c>this._bufferService.cols?[c%this._bufferService.cols,this.selectionStart[1]+Math.floor(c/this._bufferService.cols)]:[Math.max(c,this.selectionEnd[0]),this.selectionEnd[1]]}return this.selectionEnd}}areSelectionValuesReversed(){const c=this.selectionStart,d=this.selectionEnd;return!(!c||!d)&&(c[1]>d[1]||c[1]===d[1]&&c[0]>d[0])}handleTrim(c){return this.selectionStart&&(this.selectionStart[1]-=c),this.selectionEnd&&(this.selectionEnd[1]-=c),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}}},428:function(C,i,c){var d=this&&this.__decorate||function(o,a,u,S){var m,y=arguments.length,p=y<3?a:S===null?S=Object.getOwnPropertyDescriptor(a,u):S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(o,a,u,S);else for(var k=o.length-1;k>=0;k--)(m=o[k])&&(p=(y<3?m(p):y>3?m(a,u,p):m(a,u))||p);return y>3&&p&&Object.defineProperty(a,u,p),p},g=this&&this.__param||function(o,a){return function(u,S){a(u,S,o)}};Object.defineProperty(i,"__esModule",{value:!0}),i.CharSizeService=void 0;const l=c(2585),_=c(8460),b=c(844);let w=i.CharSizeService=class extends b.Disposable{get hasValidSize(){return this.width>0&&this.height>0}constructor(o,a,u){super(),this._optionsService=u,this.width=0,this.height=0,this._onCharSizeChange=this.register(new _.EventEmitter),this.onCharSizeChange=this._onCharSizeChange.event;try{this._measureStrategy=this.register(new n(this._optionsService))}catch{this._measureStrategy=this.register(new s(o,a,this._optionsService))}this.register(this._optionsService.onMultipleOptionChange(["fontFamily","fontSize"],(()=>this.measure())))}measure(){const o=this._measureStrategy.measure();o.width===this.width&&o.height===this.height||(this.width=o.width,this.height=o.height,this._onCharSizeChange.fire())}};i.CharSizeService=w=d([g(2,l.IOptionsService)],w);class f extends b.Disposable{constructor(){super(...arguments),this._result={width:0,height:0}}_validateAndSet(a,u){a!==void 0&&a>0&&u!==void 0&&u>0&&(this._result.width=a,this._result.height=u)}}class s extends f{constructor(a,u,S){super(),this._document=a,this._parentElement=u,this._optionsService=S,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 n extends f{constructor(a){super(),this._optionsService=a,this._canvas=new OffscreenCanvas(100,100),this._ctx=this._canvas.getContext("2d");const u=this._ctx.measureText("W");if(!("width"in u&&"fontBoundingBoxAscent"in u&&"fontBoundingBoxDescent"in u))throw new Error("Required font metrics not supported")}measure(){this._ctx.font=`${this._optionsService.rawOptions.fontSize}px ${this._optionsService.rawOptions.fontFamily}`;const a=this._ctx.measureText("W");return this._validateAndSet(a.width,a.fontBoundingBoxAscent+a.fontBoundingBoxDescent),this._result}}},4269:function(C,i,c){var d=this&&this.__decorate||function(n,o,a,u){var S,m=arguments.length,y=m<3?o:u===null?u=Object.getOwnPropertyDescriptor(o,a):u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(n,o,a,u);else for(var p=n.length-1;p>=0;p--)(S=n[p])&&(y=(m<3?S(y):m>3?S(o,a,y):S(o,a))||y);return m>3&&y&&Object.defineProperty(o,a,y),y},g=this&&this.__param||function(n,o){return function(a,u){o(a,u,n)}};Object.defineProperty(i,"__esModule",{value:!0}),i.CharacterJoinerService=i.JoinedCellData=void 0;const l=c(3734),_=c(643),b=c(511),w=c(2585);class f extends l.AttributeData{constructor(o,a,u){super(),this.content=0,this.combinedData="",this.fg=o.fg,this.bg=o.bg,this.combinedData=a,this._width=u}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(o){throw new Error("not implemented")}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}i.JoinedCellData=f;let s=i.CharacterJoinerService=class as{constructor(o){this._bufferService=o,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new b.CellData}register(o){const a={id:this._nextCharacterJoinerId++,handler:o};return this._characterJoiners.push(a),a.id}deregister(o){for(let a=0;a<this._characterJoiners.length;a++)if(this._characterJoiners[a].id===o)return this._characterJoiners.splice(a,1),!0;return!1}getJoinedCharacters(o){if(this._characterJoiners.length===0)return[];const a=this._bufferService.buffer.lines.get(o);if(!a||a.length===0)return[];const u=[],S=a.translateToString(!0);let m=0,y=0,p=0,k=a.getFg(0),x=a.getBg(0);for(let L=0;L<a.getTrimmedLength();L++)if(a.loadCell(L,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==k||this._workCell.bg!==x){if(L-m>1){const T=this._getJoinedRanges(S,p,y,a,m);for(let R=0;R<T.length;R++)u.push(T[R])}m=L,p=y,k=this._workCell.fg,x=this._workCell.bg}y+=this._workCell.getChars().length||_.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-m>1){const L=this._getJoinedRanges(S,p,y,a,m);for(let T=0;T<L.length;T++)u.push(L[T])}return u}_getJoinedRanges(o,a,u,S,m){const y=o.substring(a,u);let p=[];try{p=this._characterJoiners[0].handler(y)}catch(k){console.error(k)}for(let k=1;k<this._characterJoiners.length;k++)try{const x=this._characterJoiners[k].handler(y);for(let L=0;L<x.length;L++)as._mergeRanges(p,x[L])}catch(x){console.error(x)}return this._stringRangesToCellRanges(p,S,m),p}_stringRangesToCellRanges(o,a,u){let S=0,m=!1,y=0,p=o[S];if(p){for(let k=u;k<this._bufferService.cols;k++){const x=a.getWidth(k),L=a.getString(k).length||_.WHITESPACE_CELL_CHAR.length;if(x!==0){if(!m&&p[0]<=y&&(p[0]=k,m=!0),p[1]<=y){if(p[1]=k,p=o[++S],!p)break;p[0]<=y?(p[0]=k,m=!0):m=!1}y+=L}}p&&(p[1]=this._bufferService.cols)}}static _mergeRanges(o,a){let u=!1;for(let S=0;S<o.length;S++){const m=o[S];if(u){if(a[1]<=m[0])return o[S-1][1]=a[1],o;if(a[1]<=m[1])return o[S-1][1]=Math.max(a[1],m[1]),o.splice(S,1),o;o.splice(S,1),S--}else{if(a[1]<=m[0])return o.splice(S,0,a),o;if(a[1]<=m[1])return m[0]=Math.min(a[0],m[0]),o;a[0]<m[1]&&(m[0]=Math.min(a[0],m[0]),u=!0)}}return u?o[o.length-1][1]=a[1]:o.push(a),o}};i.CharacterJoinerService=s=d([g(0,w.IBufferService)],s)},5114:(C,i,c)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.CoreBrowserService=void 0;const d=c(844),g=c(8460),l=c(3656);class _ extends d.Disposable{constructor(f,s,n){super(),this._textarea=f,this._window=s,this.mainDocument=n,this._isFocused=!1,this._cachedIsFocused=void 0,this._screenDprMonitor=new b(this._window),this._onDprChange=this.register(new g.EventEmitter),this.onDprChange=this._onDprChange.event,this._onWindowChange=this.register(new g.EventEmitter),this.onWindowChange=this._onWindowChange.event,this.register(this.onWindowChange((o=>this._screenDprMonitor.setWindow(o)))),this.register((0,g.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(f){this._window!==f&&(this._window=f,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=_;class b extends d.Disposable{constructor(f){super(),this._parentWindow=f,this._windowResizeListener=this.register(new d.MutableDisposable),this._onDprChange=this.register(new g.EventEmitter),this.onDprChange=this._onDprChange.event,this._outerListener=()=>this._setDprAndFireIfDiffers(),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._updateDpr(),this._setWindowResizeListener(),this.register((0,d.toDisposable)((()=>this.clearListener())))}setWindow(f){this._parentWindow=f,this._setWindowResizeListener(),this._setDprAndFireIfDiffers()}_setWindowResizeListener(){this._windowResizeListener.value=(0,l.addDisposableDomListener)(this._parentWindow,"resize",(()=>this._setDprAndFireIfDiffers()))}_setDprAndFireIfDiffers(){this._parentWindow.devicePixelRatio!==this._currentDevicePixelRatio&&this._onDprChange.fire(this._parentWindow.devicePixelRatio),this._updateDpr()}_updateDpr(){var f;this._outerListener&&((f=this._resolutionMediaMatchList)==null||f.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:(C,i,c)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.LinkProviderService=void 0;const d=c(844);class g extends d.Disposable{constructor(){super(),this.linkProviders=[],this.register((0,d.toDisposable)((()=>this.linkProviders.length=0)))}registerLinkProvider(_){return this.linkProviders.push(_),{dispose:()=>{const b=this.linkProviders.indexOf(_);b!==-1&&this.linkProviders.splice(b,1)}}}}i.LinkProviderService=g},8934:function(C,i,c){var d=this&&this.__decorate||function(w,f,s,n){var o,a=arguments.length,u=a<3?f:n===null?n=Object.getOwnPropertyDescriptor(f,s):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(w,f,s,n);else for(var S=w.length-1;S>=0;S--)(o=w[S])&&(u=(a<3?o(u):a>3?o(f,s,u):o(f,s))||u);return a>3&&u&&Object.defineProperty(f,s,u),u},g=this&&this.__param||function(w,f){return function(s,n){f(s,n,w)}};Object.defineProperty(i,"__esModule",{value:!0}),i.MouseService=void 0;const l=c(4725),_=c(9806);let b=i.MouseService=class{constructor(w,f){this._renderService=w,this._charSizeService=f}getCoords(w,f,s,n,o){return(0,_.getCoords)(window,w,f,s,n,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,o)}getMouseReportCoords(w,f){const s=(0,_.getCoordsRelativeToElement)(window,w,f);if(this._charSizeService.hasValidSize)return s[0]=Math.min(Math.max(s[0],0),this._renderService.dimensions.css.canvas.width-1),s[1]=Math.min(Math.max(s[1],0),this._renderService.dimensions.css.canvas.height-1),{col:Math.floor(s[0]/this._renderService.dimensions.css.cell.width),row:Math.floor(s[1]/this._renderService.dimensions.css.cell.height),x:Math.floor(s[0]),y:Math.floor(s[1])}}};i.MouseService=b=d([g(0,l.IRenderService),g(1,l.ICharSizeService)],b)},3230:function(C,i,c){var d=this&&this.__decorate||function(o,a,u,S){var m,y=arguments.length,p=y<3?a:S===null?S=Object.getOwnPropertyDescriptor(a,u):S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(o,a,u,S);else for(var k=o.length-1;k>=0;k--)(m=o[k])&&(p=(y<3?m(p):y>3?m(a,u,p):m(a,u))||p);return y>3&&p&&Object.defineProperty(a,u,p),p},g=this&&this.__param||function(o,a){return function(u,S){a(u,S,o)}};Object.defineProperty(i,"__esModule",{value:!0}),i.RenderService=void 0;const l=c(6193),_=c(4725),b=c(8460),w=c(844),f=c(7226),s=c(2585);let n=i.RenderService=class extends w.Disposable{get dimensions(){return this._renderer.value.dimensions}constructor(o,a,u,S,m,y,p,k){super(),this._rowCount=o,this._charSizeService=S,this._renderer=this.register(new w.MutableDisposable),this._pausedResizeTask=new f.DebouncedIdleTask,this._observerDisposable=this.register(new w.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 b.EventEmitter),this.onDimensionsChange=this._onDimensionsChange.event,this._onRenderedViewportChange=this.register(new b.EventEmitter),this.onRenderedViewportChange=this._onRenderedViewportChange.event,this._onRender=this.register(new b.EventEmitter),this.onRender=this._onRender.event,this._onRefreshRequest=this.register(new b.EventEmitter),this.onRefreshRequest=this._onRefreshRequest.event,this._renderDebouncer=new l.RenderDebouncer(((x,L)=>this._renderRows(x,L)),p),this.register(this._renderDebouncer),this.register(p.onDprChange((()=>this.handleDevicePixelRatioChange()))),this.register(y.onResize((()=>this._fullRefresh()))),this.register(y.buffers.onBufferActivate((()=>{var x;return(x=this._renderer.value)==null?void 0:x.clear()}))),this.register(u.onOptionChange((()=>this._handleOptionsChanged()))),this.register(this._charSizeService.onCharSizeChange((()=>this.handleCharSizeChanged()))),this.register(m.onDecorationRegistered((()=>this._fullRefresh()))),this.register(m.onDecorationRemoved((()=>this._fullRefresh()))),this.register(u.onMultipleOptionChange(["customGlyphs","drawBoldTextInBrightColors","letterSpacing","lineHeight","fontFamily","fontSize","fontWeight","fontWeightBold","minimumContrastRatio","rescaleOverlappingGlyphs"],(()=>{this.clear(),this.handleResize(y.cols,y.rows),this._fullRefresh()}))),this.register(u.onMultipleOptionChange(["cursorBlink","cursorStyle"],(()=>this.refreshRows(y.buffer.y,y.buffer.y,!0)))),this.register(k.onChangeColors((()=>this._fullRefresh()))),this._registerIntersectionObserver(p.window,a),this.register(p.onWindowChange((x=>this._registerIntersectionObserver(x,a))))}_registerIntersectionObserver(o,a){if("IntersectionObserver"in o){const u=new o.IntersectionObserver((S=>this._handleIntersectionChange(S[S.length-1])),{threshold:0});u.observe(a),this._observerDisposable.value=(0,w.toDisposable)((()=>u.disconnect()))}}_handleIntersectionChange(o){this._isPaused=o.isIntersecting===void 0?o.intersectionRatio===0:!o.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(o,a,u=!1){this._isPaused?this._needsFullRefresh=!0:(u||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(o,a,this._rowCount))}_renderRows(o,a){this._renderer.value&&(o=Math.min(o,this._rowCount-1),a=Math.min(a,this._rowCount-1),this._renderer.value.renderRows(o,a),this._needsSelectionRefresh&&(this._renderer.value.handleSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:o,end:a}),this._onRender.fire({start:o,end:a}),this._isNextRenderRedrawOnly=!0)}resize(o,a){this._rowCount=a,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(o){this._renderer.value=o,this._renderer.value&&(this._renderer.value.onRequestRedraw((a=>this.refreshRows(a.start,a.end,!0))),this._needsSelectionRefresh=!0,this._fullRefresh())}addRefreshCallback(o){return this._renderDebouncer.addRefreshCallback(o)}_fullRefresh(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}clearTextureAtlas(){var o,a;this._renderer.value&&((a=(o=this._renderer.value).clearTextureAtlas)==null||a.call(o),this._fullRefresh())}handleDevicePixelRatioChange(){this._charSizeService.measure(),this._renderer.value&&(this._renderer.value.handleDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1))}handleResize(o,a){this._renderer.value&&(this._isPaused?this._pausedResizeTask.set((()=>{var u;return(u=this._renderer.value)==null?void 0:u.handleResize(o,a)})):this._renderer.value.handleResize(o,a),this._fullRefresh())}handleCharSizeChanged(){var o;(o=this._renderer.value)==null||o.handleCharSizeChanged()}handleBlur(){var o;(o=this._renderer.value)==null||o.handleBlur()}handleFocus(){var o;(o=this._renderer.value)==null||o.handleFocus()}handleSelectionChanged(o,a,u){var S;this._selectionState.start=o,this._selectionState.end=a,this._selectionState.columnSelectMode=u,(S=this._renderer.value)==null||S.handleSelectionChanged(o,a,u)}handleCursorMove(){var o;(o=this._renderer.value)==null||o.handleCursorMove()}clear(){var o;(o=this._renderer.value)==null||o.clear()}};i.RenderService=n=d([g(2,s.IOptionsService),g(3,_.ICharSizeService),g(4,s.IDecorationService),g(5,s.IBufferService),g(6,_.ICoreBrowserService),g(7,_.IThemeService)],n)},9312:function(C,i,c){var d=this&&this.__decorate||function(p,k,x,L){var T,R=arguments.length,M=R<3?k:L===null?L=Object.getOwnPropertyDescriptor(k,x):L;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")M=Reflect.decorate(p,k,x,L);else for(var F=p.length-1;F>=0;F--)(T=p[F])&&(M=(R<3?T(M):R>3?T(k,x,M):T(k,x))||M);return R>3&&M&&Object.defineProperty(k,x,M),M},g=this&&this.__param||function(p,k){return function(x,L){k(x,L,p)}};Object.defineProperty(i,"__esModule",{value:!0}),i.SelectionService=void 0;const l=c(9806),_=c(9504),b=c(456),w=c(4725),f=c(8460),s=c(844),n=c(6114),o=c(4841),a=c(511),u=c(2585),S=" ",m=new RegExp(S,"g");let y=i.SelectionService=class extends s.Disposable{constructor(p,k,x,L,T,R,M,F,W){super(),this._element=p,this._screenElement=k,this._linkifier=x,this._bufferService=L,this._coreService=T,this._mouseService=R,this._optionsService=M,this._renderService=F,this._coreBrowserService=W,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new a.CellData,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this.register(new f.EventEmitter),this.onLinuxMouseSelection=this._onLinuxMouseSelection.event,this._onRedrawRequest=this.register(new f.EventEmitter),this.onRequestRedraw=this._onRedrawRequest.event,this._onSelectionChange=this.register(new f.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onRequestScrollLines=this.register(new f.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 b.SelectionModel(this._bufferService),this._activeSelectionMode=0,this.register((0,s.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 p=this._model.finalSelectionStart,k=this._model.finalSelectionEnd;return!(!p||!k||p[0]===k[0]&&p[1]===k[1])}get selectionText(){const p=this._model.finalSelectionStart,k=this._model.finalSelectionEnd;if(!p||!k)return"";const x=this._bufferService.buffer,L=[];if(this._activeSelectionMode===3){if(p[0]===k[0])return"";const T=p[0]<k[0]?p[0]:k[0],R=p[0]<k[0]?k[0]:p[0];for(let M=p[1];M<=k[1];M++){const F=x.translateBufferLineToString(M,!0,T,R);L.push(F)}}else{const T=p[1]===k[1]?k[0]:void 0;L.push(x.translateBufferLineToString(p[1],!0,p[0],T));for(let R=p[1]+1;R<=k[1]-1;R++){const M=x.lines.get(R),F=x.translateBufferLineToString(R,!0);M!=null&&M.isWrapped?L[L.length-1]+=F:L.push(F)}if(p[1]!==k[1]){const R=x.lines.get(k[1]),M=x.translateBufferLineToString(k[1],!0,0,k[0]);R&&R.isWrapped?L[L.length-1]+=M:L.push(M)}}return L.map((T=>T.replace(m," "))).join(n.isWindows?`\r
|
|
40
|
-
`:`
|
|
41
|
-
`)}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(p){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._refresh()))),n.isLinux&&p&&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(p){const k=this._getMouseBufferCoords(p),x=this._model.finalSelectionStart,L=this._model.finalSelectionEnd;return!!(x&&L&&k)&&this._areCoordsInSelection(k,x,L)}isCellInSelection(p,k){const x=this._model.finalSelectionStart,L=this._model.finalSelectionEnd;return!(!x||!L)&&this._areCoordsInSelection([p,k],x,L)}_areCoordsInSelection(p,k,x){return p[1]>k[1]&&p[1]<x[1]||k[1]===x[1]&&p[1]===k[1]&&p[0]>=k[0]&&p[0]<x[0]||k[1]<x[1]&&p[1]===x[1]&&p[0]<x[0]||k[1]<x[1]&&p[1]===k[1]&&p[0]>=k[0]}_selectWordAtCursor(p,k){var T,R;const x=(R=(T=this._linkifier.currentLink)==null?void 0:T.link)==null?void 0:R.range;if(x)return this._model.selectionStart=[x.start.x-1,x.start.y-1],this._model.selectionStartLength=(0,o.getRangeLength)(x,this._bufferService.cols),this._model.selectionEnd=void 0,!0;const L=this._getMouseBufferCoords(p);return!!L&&(this._selectWordAt(L,k),this._model.selectionEnd=void 0,!0)}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(p,k){this._model.clearSelection(),p=Math.max(p,0),k=Math.min(k,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,p],this._model.selectionEnd=[this._bufferService.cols,k],this.refresh(),this._onSelectionChange.fire()}_handleTrim(p){this._model.handleTrim(p)&&this.refresh()}_getMouseBufferCoords(p){const k=this._mouseService.getCoords(p,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(k)return k[0]--,k[1]--,k[1]+=this._bufferService.buffer.ydisp,k}_getMouseEventScrollAmount(p){let k=(0,l.getCoordsRelativeToElement)(this._coreBrowserService.window,p,this._screenElement)[1];const x=this._renderService.dimensions.css.canvas.height;return k>=0&&k<=x?0:(k>x&&(k-=x),k=Math.min(Math.max(k,-50),50),k/=50,k/Math.abs(k)+Math.round(14*k))}shouldForceSelection(p){return n.isMac?p.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:p.shiftKey}handleMouseDown(p){if(this._mouseDownTimeStamp=p.timeStamp,(p.button!==2||!this.hasSelection)&&p.button===0){if(!this._enabled){if(!this.shouldForceSelection(p))return;p.stopPropagation()}p.preventDefault(),this._dragScrollAmount=0,this._enabled&&p.shiftKey?this._handleIncrementalClick(p):p.detail===1?this._handleSingleClick(p):p.detail===2?this._handleDoubleClick(p):p.detail===3&&this._handleTripleClick(p),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(p){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(p))}_handleSingleClick(p){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(p)?3:0,this._model.selectionStart=this._getMouseBufferCoords(p),!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(p){this._selectWordAtCursor(p,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(p){const k=this._getMouseBufferCoords(p);k&&(this._activeSelectionMode=2,this._selectLineAt(k[1]))}shouldColumnSelect(p){return p.altKey&&!(n.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(p){if(p.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(p),!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(p),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));const x=this._bufferService.buffer;if(this._model.selectionEnd[1]<x.lines.length){const L=x.lines.get(this._model.selectionEnd[1]);L&&L.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 p=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(p.ydisp+this._bufferService.rows,p.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=p.ydisp),this.refresh()}}_handleMouseUp(p){const k=p.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&k<500&&p.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){const x=this._mouseService.getCoords(p,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(x&&x[0]!==void 0&&x[1]!==void 0){const L=(0,_.moveToCellSequence)(x[0]-1,x[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(L,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){const p=this._model.finalSelectionStart,k=this._model.finalSelectionEnd,x=!(!p||!k||p[0]===k[0]&&p[1]===k[1]);x?p&&k&&(this._oldSelectionStart&&this._oldSelectionEnd&&p[0]===this._oldSelectionStart[0]&&p[1]===this._oldSelectionStart[1]&&k[0]===this._oldSelectionEnd[0]&&k[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(p,k,x)):this._oldHasSelection&&this._fireOnSelectionChange(p,k,x)}_fireOnSelectionChange(p,k,x){this._oldSelectionStart=p,this._oldSelectionEnd=k,this._oldHasSelection=x,this._onSelectionChange.fire()}_handleBufferActivate(p){this.clearSelection(),this._trimListener.dispose(),this._trimListener=p.activeBuffer.lines.onTrim((k=>this._handleTrim(k)))}_convertViewportColToCharacterIndex(p,k){let x=k;for(let L=0;k>=L;L++){const T=p.loadCell(L,this._workCell).getChars().length;this._workCell.getWidth()===0?x--:T>1&&k!==L&&(x+=T-1)}return x}setSelection(p,k,x){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[p,k],this._model.selectionStartLength=x,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(p){this._isClickInSelection(p)||(this._selectWordAtCursor(p,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(p,k,x=!0,L=!0){if(p[0]>=this._bufferService.cols)return;const T=this._bufferService.buffer,R=T.lines.get(p[1]);if(!R)return;const M=T.translateBufferLineToString(p[1],!1);let F=this._convertViewportColToCharacterIndex(R,p[0]),W=F;const z=p[0]-F;let V=0,B=0,A=0,D=0;if(M.charAt(F)===" "){for(;F>0&&M.charAt(F-1)===" ";)F--;for(;W<M.length&&M.charAt(W+1)===" ";)W++}else{let j=p[0],X=p[0];R.getWidth(j)===0&&(V++,j--),R.getWidth(X)===2&&(B++,X++);const Y=R.getString(X).length;for(Y>1&&(D+=Y-1,W+=Y-1);j>0&&F>0&&!this._isCharWordSeparator(R.loadCell(j-1,this._workCell));){R.loadCell(j-1,this._workCell);const N=this._workCell.getChars().length;this._workCell.getWidth()===0?(V++,j--):N>1&&(A+=N-1,F-=N-1),F--,j--}for(;X<R.length&&W+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,W+=N-1),W++,X++}}W++;let O=F+z-V+A,U=Math.min(this._bufferService.cols,W-F+V+B-A-D);if(k||M.slice(F,W).trim()!==""){if(x&&O===0&&R.getCodePoint(0)!==32){const j=T.lines.get(p[1]-1);if(j&&R.isWrapped&&j.getCodePoint(this._bufferService.cols-1)!==32){const X=this._getWordAt([this._bufferService.cols-1,p[1]-1],!1,!0,!1);if(X){const Y=this._bufferService.cols-X.start;O-=Y,U+=Y}}}if(L&&O+U===this._bufferService.cols&&R.getCodePoint(this._bufferService.cols-1)!==32){const j=T.lines.get(p[1]+1);if(j!=null&&j.isWrapped&&j.getCodePoint(0)!==32){const X=this._getWordAt([0,p[1]+1],!1,!1,!0);X&&(U+=X.length)}}return{start:O,length:U}}}_selectWordAt(p,k){const x=this._getWordAt(p,k);if(x){for(;x.start<0;)x.start+=this._bufferService.cols,p[1]--;this._model.selectionStart=[x.start,p[1]],this._model.selectionStartLength=x.length}}_selectToWordAt(p){const k=this._getWordAt(p,!0);if(k){let x=p[1];for(;k.start<0;)k.start+=this._bufferService.cols,x--;if(!this._model.areSelectionValuesReversed())for(;k.start+k.length>this._bufferService.cols;)k.length-=this._bufferService.cols,x++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?k.start:k.start+k.length,x]}}_isCharWordSeparator(p){return p.getWidth()!==0&&this._optionsService.rawOptions.wordSeparator.indexOf(p.getChars())>=0}_selectLineAt(p){const k=this._bufferService.buffer.getWrappedRangeForLine(p),x={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,o.getRangeLength)(x,this._bufferService.cols)}};i.SelectionService=y=d([g(3,u.IBufferService),g(4,u.ICoreService),g(5,w.IMouseService),g(6,u.IOptionsService),g(7,w.IRenderService),g(8,w.ICoreBrowserService)],y)},4725:(C,i,c)=>{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 d=c(8343);i.ICharSizeService=(0,d.createDecorator)("CharSizeService"),i.ICoreBrowserService=(0,d.createDecorator)("CoreBrowserService"),i.IMouseService=(0,d.createDecorator)("MouseService"),i.IRenderService=(0,d.createDecorator)("RenderService"),i.ISelectionService=(0,d.createDecorator)("SelectionService"),i.ICharacterJoinerService=(0,d.createDecorator)("CharacterJoinerService"),i.IThemeService=(0,d.createDecorator)("ThemeService"),i.ILinkProviderService=(0,d.createDecorator)("LinkProviderService")},6731:function(C,i,c){var d=this&&this.__decorate||function(y,p,k,x){var L,T=arguments.length,R=T<3?p:x===null?x=Object.getOwnPropertyDescriptor(p,k):x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")R=Reflect.decorate(y,p,k,x);else for(var M=y.length-1;M>=0;M--)(L=y[M])&&(R=(T<3?L(R):T>3?L(p,k,R):L(p,k))||R);return T>3&&R&&Object.defineProperty(p,k,R),R},g=this&&this.__param||function(y,p){return function(k,x){p(k,x,y)}};Object.defineProperty(i,"__esModule",{value:!0}),i.ThemeService=i.DEFAULT_ANSI_COLORS=void 0;const l=c(7239),_=c(8055),b=c(8460),w=c(844),f=c(2585),s=_.css.toColor("#ffffff"),n=_.css.toColor("#000000"),o=_.css.toColor("#ffffff"),a=_.css.toColor("#000000"),u={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};i.DEFAULT_ANSI_COLORS=Object.freeze((()=>{const y=[_.css.toColor("#2e3436"),_.css.toColor("#cc0000"),_.css.toColor("#4e9a06"),_.css.toColor("#c4a000"),_.css.toColor("#3465a4"),_.css.toColor("#75507b"),_.css.toColor("#06989a"),_.css.toColor("#d3d7cf"),_.css.toColor("#555753"),_.css.toColor("#ef2929"),_.css.toColor("#8ae234"),_.css.toColor("#fce94f"),_.css.toColor("#729fcf"),_.css.toColor("#ad7fa8"),_.css.toColor("#34e2e2"),_.css.toColor("#eeeeec")],p=[0,95,135,175,215,255];for(let k=0;k<216;k++){const x=p[k/36%6|0],L=p[k/6%6|0],T=p[k%6];y.push({css:_.channels.toCss(x,L,T),rgba:_.channels.toRgba(x,L,T)})}for(let k=0;k<24;k++){const x=8+10*k;y.push({css:_.channels.toCss(x,x,x),rgba:_.channels.toRgba(x,x,x)})}return y})());let S=i.ThemeService=class extends w.Disposable{get colors(){return this._colors}constructor(y){super(),this._optionsService=y,this._contrastCache=new l.ColorContrastCache,this._halfContrastCache=new l.ColorContrastCache,this._onChangeColors=this.register(new b.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:s,background:n,cursor:o,cursorAccent:a,selectionForeground:void 0,selectionBackgroundTransparent:u,selectionBackgroundOpaque:_.color.blend(n,u),selectionInactiveBackgroundTransparent:u,selectionInactiveBackgroundOpaque:_.color.blend(n,u),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(y={}){const p=this._colors;if(p.foreground=m(y.foreground,s),p.background=m(y.background,n),p.cursor=m(y.cursor,o),p.cursorAccent=m(y.cursorAccent,a),p.selectionBackgroundTransparent=m(y.selectionBackground,u),p.selectionBackgroundOpaque=_.color.blend(p.background,p.selectionBackgroundTransparent),p.selectionInactiveBackgroundTransparent=m(y.selectionInactiveBackground,p.selectionBackgroundTransparent),p.selectionInactiveBackgroundOpaque=_.color.blend(p.background,p.selectionInactiveBackgroundTransparent),p.selectionForeground=y.selectionForeground?m(y.selectionForeground,_.NULL_COLOR):void 0,p.selectionForeground===_.NULL_COLOR&&(p.selectionForeground=void 0),_.color.isOpaque(p.selectionBackgroundTransparent)&&(p.selectionBackgroundTransparent=_.color.opacity(p.selectionBackgroundTransparent,.3)),_.color.isOpaque(p.selectionInactiveBackgroundTransparent)&&(p.selectionInactiveBackgroundTransparent=_.color.opacity(p.selectionInactiveBackgroundTransparent,.3)),p.ansi=i.DEFAULT_ANSI_COLORS.slice(),p.ansi[0]=m(y.black,i.DEFAULT_ANSI_COLORS[0]),p.ansi[1]=m(y.red,i.DEFAULT_ANSI_COLORS[1]),p.ansi[2]=m(y.green,i.DEFAULT_ANSI_COLORS[2]),p.ansi[3]=m(y.yellow,i.DEFAULT_ANSI_COLORS[3]),p.ansi[4]=m(y.blue,i.DEFAULT_ANSI_COLORS[4]),p.ansi[5]=m(y.magenta,i.DEFAULT_ANSI_COLORS[5]),p.ansi[6]=m(y.cyan,i.DEFAULT_ANSI_COLORS[6]),p.ansi[7]=m(y.white,i.DEFAULT_ANSI_COLORS[7]),p.ansi[8]=m(y.brightBlack,i.DEFAULT_ANSI_COLORS[8]),p.ansi[9]=m(y.brightRed,i.DEFAULT_ANSI_COLORS[9]),p.ansi[10]=m(y.brightGreen,i.DEFAULT_ANSI_COLORS[10]),p.ansi[11]=m(y.brightYellow,i.DEFAULT_ANSI_COLORS[11]),p.ansi[12]=m(y.brightBlue,i.DEFAULT_ANSI_COLORS[12]),p.ansi[13]=m(y.brightMagenta,i.DEFAULT_ANSI_COLORS[13]),p.ansi[14]=m(y.brightCyan,i.DEFAULT_ANSI_COLORS[14]),p.ansi[15]=m(y.brightWhite,i.DEFAULT_ANSI_COLORS[15]),y.extendedAnsi){const k=Math.min(p.ansi.length-16,y.extendedAnsi.length);for(let x=0;x<k;x++)p.ansi[x+16]=m(y.extendedAnsi[x],i.DEFAULT_ANSI_COLORS[x+16])}this._contrastCache.clear(),this._halfContrastCache.clear(),this._updateRestoreColors(),this._onChangeColors.fire(this.colors)}restoreColor(y){this._restoreColor(y),this._onChangeColors.fire(this.colors)}_restoreColor(y){if(y!==void 0)switch(y){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[y]=this._restoreColors.ansi[y]}else for(let p=0;p<this._restoreColors.ansi.length;++p)this._colors.ansi[p]=this._restoreColors.ansi[p]}modifyColors(y){y(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 m(y,p){if(y!==void 0)try{return _.css.toColor(y)}catch{}return p}i.ThemeService=S=d([g(0,f.IOptionsService)],S)},6349:(C,i,c)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.CircularList=void 0;const d=c(8460),g=c(844);class l extends g.Disposable{constructor(b){super(),this._maxLength=b,this.onDeleteEmitter=this.register(new d.EventEmitter),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this.register(new d.EventEmitter),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this.register(new d.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(b){if(this._maxLength===b)return;const w=new Array(b);for(let f=0;f<Math.min(b,this.length);f++)w[f]=this._array[this._getCyclicIndex(f)];this._array=w,this._maxLength=b,this._startIndex=0}get length(){return this._length}set length(b){if(b>this._length)for(let w=this._length;w<b;w++)this._array[w]=void 0;this._length=b}get(b){return this._array[this._getCyclicIndex(b)]}set(b,w){this._array[this._getCyclicIndex(b)]=w}push(b){this._array[this._getCyclicIndex(this._length)]=b,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(b,w,...f){if(w){for(let s=b;s<this._length-w;s++)this._array[this._getCyclicIndex(s)]=this._array[this._getCyclicIndex(s+w)];this._length-=w,this.onDeleteEmitter.fire({index:b,amount:w})}for(let s=this._length-1;s>=b;s--)this._array[this._getCyclicIndex(s+f.length)]=this._array[this._getCyclicIndex(s)];for(let s=0;s<f.length;s++)this._array[this._getCyclicIndex(b+s)]=f[s];if(f.length&&this.onInsertEmitter.fire({index:b,amount:f.length}),this._length+f.length>this._maxLength){const s=this._length+f.length-this._maxLength;this._startIndex+=s,this._length=this._maxLength,this.onTrimEmitter.fire(s)}else this._length+=f.length}trimStart(b){b>this._length&&(b=this._length),this._startIndex+=b,this._length-=b,this.onTrimEmitter.fire(b)}shiftElements(b,w,f){if(!(w<=0)){if(b<0||b>=this._length)throw new Error("start argument out of range");if(b+f<0)throw new Error("Cannot shift elements in list beyond index 0");if(f>0){for(let n=w-1;n>=0;n--)this.set(b+n+f,this.get(b+n));const s=b+w+f-this._length;if(s>0)for(this._length+=s;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let s=0;s<w;s++)this.set(b+s+f,this.get(b+s))}}_getCyclicIndex(b){return(this._startIndex+b)%this._maxLength}}i.CircularList=l},1439:(C,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.clone=void 0,i.clone=function c(d,g=5){if(typeof d!="object")return d;const l=Array.isArray(d)?[]:{};for(const _ in d)l[_]=g<=1?d[_]:d[_]&&c(d[_],g-1);return l}},8055:(C,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 c=0,d=0,g=0,l=0;var _,b,w,f,s;function n(a){const u=a.toString(16);return u.length<2?"0"+u:u}function o(a,u){return a<u?(u+.05)/(a+.05):(a+.05)/(u+.05)}i.NULL_COLOR={css:"#00000000",rgba:0},(function(a){a.toCss=function(u,S,m,y){return y!==void 0?`#${n(u)}${n(S)}${n(m)}${n(y)}`:`#${n(u)}${n(S)}${n(m)}`},a.toRgba=function(u,S,m,y=255){return(u<<24|S<<16|m<<8|y)>>>0},a.toColor=function(u,S,m,y){return{css:a.toCss(u,S,m,y),rgba:a.toRgba(u,S,m,y)}}})(_||(i.channels=_={})),(function(a){function u(S,m){return l=Math.round(255*m),[c,d,g]=s.toChannels(S.rgba),{css:_.toCss(c,d,g,l),rgba:_.toRgba(c,d,g,l)}}a.blend=function(S,m){if(l=(255&m.rgba)/255,l===1)return{css:m.css,rgba:m.rgba};const y=m.rgba>>24&255,p=m.rgba>>16&255,k=m.rgba>>8&255,x=S.rgba>>24&255,L=S.rgba>>16&255,T=S.rgba>>8&255;return c=x+Math.round((y-x)*l),d=L+Math.round((p-L)*l),g=T+Math.round((k-T)*l),{css:_.toCss(c,d,g),rgba:_.toRgba(c,d,g)}},a.isOpaque=function(S){return(255&S.rgba)==255},a.ensureContrastRatio=function(S,m,y){const p=s.ensureContrastRatio(S.rgba,m.rgba,y);if(p)return _.toColor(p>>24&255,p>>16&255,p>>8&255)},a.opaque=function(S){const m=(255|S.rgba)>>>0;return[c,d,g]=s.toChannels(m),{css:_.toCss(c,d,g),rgba:m}},a.opacity=u,a.multiplyOpacity=function(S,m){return l=255&S.rgba,u(S,l*m/255)},a.toColorRGB=function(S){return[S.rgba>>24&255,S.rgba>>16&255,S.rgba>>8&255]}})(b||(i.color=b={})),(function(a){let u,S;try{const m=document.createElement("canvas");m.width=1,m.height=1;const y=m.getContext("2d",{willReadFrequently:!0});y&&(u=y,u.globalCompositeOperation="copy",S=u.createLinearGradient(0,0,1,1))}catch{}a.toColor=function(m){if(m.match(/#[\da-f]{3,8}/i))switch(m.length){case 4:return c=parseInt(m.slice(1,2).repeat(2),16),d=parseInt(m.slice(2,3).repeat(2),16),g=parseInt(m.slice(3,4).repeat(2),16),_.toColor(c,d,g);case 5:return c=parseInt(m.slice(1,2).repeat(2),16),d=parseInt(m.slice(2,3).repeat(2),16),g=parseInt(m.slice(3,4).repeat(2),16),l=parseInt(m.slice(4,5).repeat(2),16),_.toColor(c,d,g,l);case 7:return{css:m,rgba:(parseInt(m.slice(1),16)<<8|255)>>>0};case 9:return{css:m,rgba:parseInt(m.slice(1),16)>>>0}}const y=m.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(y)return c=parseInt(y[1]),d=parseInt(y[2]),g=parseInt(y[3]),l=Math.round(255*(y[5]===void 0?1:parseFloat(y[5]))),_.toColor(c,d,g,l);if(!u||!S)throw new Error("css.toColor: Unsupported css format");if(u.fillStyle=S,u.fillStyle=m,typeof u.fillStyle!="string")throw new Error("css.toColor: Unsupported css format");if(u.fillRect(0,0,1,1),[c,d,g,l]=u.getImageData(0,0,1,1).data,l!==255)throw new Error("css.toColor: Unsupported css format");return{rgba:_.toRgba(c,d,g,l),css:m}}})(w||(i.css=w={})),(function(a){function u(S,m,y){const p=S/255,k=m/255,x=y/255;return .2126*(p<=.03928?p/12.92:Math.pow((p+.055)/1.055,2.4))+.7152*(k<=.03928?k/12.92:Math.pow((k+.055)/1.055,2.4))+.0722*(x<=.03928?x/12.92:Math.pow((x+.055)/1.055,2.4))}a.relativeLuminance=function(S){return u(S>>16&255,S>>8&255,255&S)},a.relativeLuminance2=u})(f||(i.rgb=f={})),(function(a){function u(m,y,p){const k=m>>24&255,x=m>>16&255,L=m>>8&255;let T=y>>24&255,R=y>>16&255,M=y>>8&255,F=o(f.relativeLuminance2(T,R,M),f.relativeLuminance2(k,x,L));for(;F<p&&(T>0||R>0||M>0);)T-=Math.max(0,Math.ceil(.1*T)),R-=Math.max(0,Math.ceil(.1*R)),M-=Math.max(0,Math.ceil(.1*M)),F=o(f.relativeLuminance2(T,R,M),f.relativeLuminance2(k,x,L));return(T<<24|R<<16|M<<8|255)>>>0}function S(m,y,p){const k=m>>24&255,x=m>>16&255,L=m>>8&255;let T=y>>24&255,R=y>>16&255,M=y>>8&255,F=o(f.relativeLuminance2(T,R,M),f.relativeLuminance2(k,x,L));for(;F<p&&(T<255||R<255||M<255);)T=Math.min(255,T+Math.ceil(.1*(255-T))),R=Math.min(255,R+Math.ceil(.1*(255-R))),M=Math.min(255,M+Math.ceil(.1*(255-M))),F=o(f.relativeLuminance2(T,R,M),f.relativeLuminance2(k,x,L));return(T<<24|R<<16|M<<8|255)>>>0}a.blend=function(m,y){if(l=(255&y)/255,l===1)return y;const p=y>>24&255,k=y>>16&255,x=y>>8&255,L=m>>24&255,T=m>>16&255,R=m>>8&255;return c=L+Math.round((p-L)*l),d=T+Math.round((k-T)*l),g=R+Math.round((x-R)*l),_.toRgba(c,d,g)},a.ensureContrastRatio=function(m,y,p){const k=f.relativeLuminance(m>>8),x=f.relativeLuminance(y>>8);if(o(k,x)<p){if(x<k){const R=u(m,y,p),M=o(k,f.relativeLuminance(R>>8));if(M<p){const F=S(m,y,p);return M>o(k,f.relativeLuminance(F>>8))?R:F}return R}const L=S(m,y,p),T=o(k,f.relativeLuminance(L>>8));if(T<p){const R=u(m,y,p);return T>o(k,f.relativeLuminance(R>>8))?L:R}return L}},a.reduceLuminance=u,a.increaseLuminance=S,a.toChannels=function(m){return[m>>24&255,m>>16&255,m>>8&255,255&m]}})(s||(i.rgba=s={})),i.toPaddedHex=n,i.contrastRatio=o},8969:(C,i,c)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.CoreTerminal=void 0;const d=c(844),g=c(2585),l=c(4348),_=c(7866),b=c(744),w=c(7302),f=c(6975),s=c(8460),n=c(1753),o=c(1480),a=c(7994),u=c(9282),S=c(5435),m=c(5981),y=c(2660);let p=!1;class k extends d.Disposable{get onScroll(){return this._onScrollApi||(this._onScrollApi=this.register(new s.EventEmitter),this._onScroll.event((L=>{var T;(T=this._onScrollApi)==null||T.fire(L.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(L){for(const T in L)this.optionsService.options[T]=L[T]}constructor(L){super(),this._windowsWrappingHeuristics=this.register(new d.MutableDisposable),this._onBinary=this.register(new s.EventEmitter),this.onBinary=this._onBinary.event,this._onData=this.register(new s.EventEmitter),this.onData=this._onData.event,this._onLineFeed=this.register(new s.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onResize=this.register(new s.EventEmitter),this.onResize=this._onResize.event,this._onWriteParsed=this.register(new s.EventEmitter),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this.register(new s.EventEmitter),this._instantiationService=new l.InstantiationService,this.optionsService=this.register(new w.OptionsService(L)),this._instantiationService.setService(g.IOptionsService,this.optionsService),this._bufferService=this.register(this._instantiationService.createInstance(b.BufferService)),this._instantiationService.setService(g.IBufferService,this._bufferService),this._logService=this.register(this._instantiationService.createInstance(_.LogService)),this._instantiationService.setService(g.ILogService,this._logService),this.coreService=this.register(this._instantiationService.createInstance(f.CoreService)),this._instantiationService.setService(g.ICoreService,this.coreService),this.coreMouseService=this.register(this._instantiationService.createInstance(n.CoreMouseService)),this._instantiationService.setService(g.ICoreMouseService,this.coreMouseService),this.unicodeService=this.register(this._instantiationService.createInstance(o.UnicodeService)),this._instantiationService.setService(g.IUnicodeService,this.unicodeService),this._charsetService=this._instantiationService.createInstance(a.CharsetService),this._instantiationService.setService(g.ICharsetService,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(y.OscLinkService),this._instantiationService.setService(g.IOscLinkService,this._oscLinkService),this._inputHandler=this.register(new S.InputHandler(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this.register((0,s.forwardEvent)(this._inputHandler.onLineFeed,this._onLineFeed)),this.register(this._inputHandler),this.register((0,s.forwardEvent)(this._bufferService.onResize,this._onResize)),this.register((0,s.forwardEvent)(this.coreService.onData,this._onData)),this.register((0,s.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((T=>{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((T=>{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 m.WriteBuffer(((T,R)=>this._inputHandler.parse(T,R)))),this.register((0,s.forwardEvent)(this._writeBuffer.onWriteParsed,this._onWriteParsed))}write(L,T){this._writeBuffer.write(L,T)}writeSync(L,T){this._logService.logLevel<=g.LogLevelEnum.WARN&&!p&&(this._logService.warn("writeSync is unreliable and will be removed soon."),p=!0),this._writeBuffer.writeSync(L,T)}input(L,T=!0){this.coreService.triggerDataEvent(L,T)}resize(L,T){isNaN(L)||isNaN(T)||(L=Math.max(L,b.MINIMUM_COLS),T=Math.max(T,b.MINIMUM_ROWS),this._bufferService.resize(L,T))}scroll(L,T=!1){this._bufferService.scroll(L,T)}scrollLines(L,T,R){this._bufferService.scrollLines(L,T,R)}scrollPages(L){this.scrollLines(L*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(L){const T=L-this._bufferService.buffer.ydisp;T!==0&&this.scrollLines(T)}registerEscHandler(L,T){return this._inputHandler.registerEscHandler(L,T)}registerDcsHandler(L,T){return this._inputHandler.registerDcsHandler(L,T)}registerCsiHandler(L,T){return this._inputHandler.registerCsiHandler(L,T)}registerOscHandler(L,T){return this._inputHandler.registerOscHandler(L,T)}_setup(){this._handleWindowsPtyOptionChange()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsPtyOptionChange(){let L=!1;const T=this.optionsService.rawOptions.windowsPty;T&&T.buildNumber!==void 0&&T.buildNumber!==void 0?L=T.backend==="conpty"&&T.buildNumber<21376:this.optionsService.rawOptions.windowsMode&&(L=!0),L?this._enableWindowsWrappingHeuristics():this._windowsWrappingHeuristics.clear()}_enableWindowsWrappingHeuristics(){if(!this._windowsWrappingHeuristics.value){const L=[];L.push(this.onLineFeed(u.updateWindowsModeWrappedState.bind(null,this._bufferService))),L.push(this.registerCsiHandler({final:"H"},(()=>((0,u.updateWindowsModeWrappedState)(this._bufferService),!1)))),this._windowsWrappingHeuristics.value=(0,d.toDisposable)((()=>{for(const T of L)T.dispose()}))}}}i.CoreTerminal=k},8460:(C,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=c=>(this._listeners.push(c),{dispose:()=>{if(!this._disposed){for(let d=0;d<this._listeners.length;d++)if(this._listeners[d]===c)return void this._listeners.splice(d,1)}}})),this._event}fire(c,d){const g=[];for(let l=0;l<this._listeners.length;l++)g.push(this._listeners[l]);for(let l=0;l<g.length;l++)g[l].call(void 0,c,d)}dispose(){this.clearListeners(),this._disposed=!0}clearListeners(){this._listeners&&(this._listeners.length=0)}},i.forwardEvent=function(c,d){return c((g=>d.fire(g)))},i.runAndSubscribe=function(c,d){return d(void 0),c((g=>d(g)))}},5435:function(C,i,c){var d=this&&this.__decorate||function(V,B,A,D){var O,U=arguments.length,j=U<3?B:D===null?D=Object.getOwnPropertyDescriptor(B,A):D;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")j=Reflect.decorate(V,B,A,D);else for(var X=V.length-1;X>=0;X--)(O=V[X])&&(j=(U<3?O(j):U>3?O(B,A,j):O(B,A))||j);return U>3&&j&&Object.defineProperty(B,A,j),j},g=this&&this.__param||function(V,B){return function(A,D){B(A,D,V)}};Object.defineProperty(i,"__esModule",{value:!0}),i.InputHandler=i.WindowsOptionsReportType=void 0;const l=c(2584),_=c(7116),b=c(2015),w=c(844),f=c(482),s=c(8437),n=c(8460),o=c(643),a=c(511),u=c(3734),S=c(2585),m=c(1480),y=c(6242),p=c(6351),k=c(5941),x={"(":0,")":1,"*":2,"+":3,"-":1,".":2},L=131072;function T(V,B){if(V>24)return B.setWinLines||!1;switch(V){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(V){V[V.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",V[V.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(R||(i.WindowsOptionsReportType=R={}));let M=0;class F extends w.Disposable{getAttrData(){return this._curAttrData}constructor(B,A,D,O,U,j,X,Y,N=new b.EscapeSequenceParser){super(),this._bufferService=B,this._charsetService=A,this._coreService=D,this._logService=O,this._optionsService=U,this._oscLinkService=j,this._coreMouseService=X,this._unicodeService=Y,this._parser=N,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new f.StringToUtf32,this._utf8Decoder=new f.Utf8ToUtf32,this._workCell=new a.CellData,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=s.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=s.DEFAULT_ATTR_DATA.clone(),this._onRequestBell=this.register(new n.EventEmitter),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this.register(new n.EventEmitter),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this.register(new n.EventEmitter),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this.register(new n.EventEmitter),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this.register(new n.EventEmitter),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this.register(new n.EventEmitter),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this.register(new n.EventEmitter),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this.register(new n.EventEmitter),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this.register(new n.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this.register(new n.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onScroll=this.register(new n.EventEmitter),this.onScroll=this._onScroll.event,this._onTitleChange=this.register(new n.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onColor=this.register(new n.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 W(this._bufferService),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate((I=>this._activeBuffer=I.activeBuffer))),this._parser.setCsiHandlerFallback(((I,$)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(I),params:$.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,$,P)=>{this._logService.debug("Unknown OSC code: ",{identifier:I,action:$,data:P})})),this._parser.setDcsHandlerFallback(((I,$,P)=>{$==="HOOK"&&(P=P.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(I),action:$,payload:P})})),this._parser.setPrintHandler(((I,$,P)=>this.print(I,$,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(l.C0.BEL,(()=>this.bell())),this._parser.setExecuteHandler(l.C0.LF,(()=>this.lineFeed())),this._parser.setExecuteHandler(l.C0.VT,(()=>this.lineFeed())),this._parser.setExecuteHandler(l.C0.FF,(()=>this.lineFeed())),this._parser.setExecuteHandler(l.C0.CR,(()=>this.carriageReturn())),this._parser.setExecuteHandler(l.C0.BS,(()=>this.backspace())),this._parser.setExecuteHandler(l.C0.HT,(()=>this.tab())),this._parser.setExecuteHandler(l.C0.SO,(()=>this.shiftOut())),this._parser.setExecuteHandler(l.C0.SI,(()=>this.shiftIn())),this._parser.setExecuteHandler(l.C1.IND,(()=>this.index())),this._parser.setExecuteHandler(l.C1.NEL,(()=>this.nextLine())),this._parser.setExecuteHandler(l.C1.HTS,(()=>this.tabSet())),this._parser.registerOscHandler(0,new y.OscHandler((I=>(this.setTitle(I),this.setIconName(I),!0)))),this._parser.registerOscHandler(1,new y.OscHandler((I=>this.setIconName(I)))),this._parser.registerOscHandler(2,new y.OscHandler((I=>this.setTitle(I)))),this._parser.registerOscHandler(4,new y.OscHandler((I=>this.setOrReportIndexedColor(I)))),this._parser.registerOscHandler(8,new y.OscHandler((I=>this.setHyperlink(I)))),this._parser.registerOscHandler(10,new y.OscHandler((I=>this.setOrReportFgColor(I)))),this._parser.registerOscHandler(11,new y.OscHandler((I=>this.setOrReportBgColor(I)))),this._parser.registerOscHandler(12,new y.OscHandler((I=>this.setOrReportCursorColor(I)))),this._parser.registerOscHandler(104,new y.OscHandler((I=>this.restoreIndexedColor(I)))),this._parser.registerOscHandler(110,new y.OscHandler((I=>this.restoreFgColor(I)))),this._parser.registerOscHandler(111,new y.OscHandler((I=>this.restoreBgColor(I)))),this._parser.registerOscHandler(112,new y.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 _.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 p.DcsHandler(((I,$)=>this.requestStatusString(I,$))))}_preserveStack(B,A,D,O){this._parseStack.paused=!0,this._parseStack.cursorStartX=B,this._parseStack.cursorStartY=A,this._parseStack.decodedLength=D,this._parseStack.position=O}_logSlowResolvingAsync(B){this._logService.logLevel<=S.LogLevelEnum.WARN&&Promise.race([B,new Promise(((A,D)=>setTimeout((()=>D("#SLOW_TIMEOUT")),5e3)))]).catch((A=>{if(A!=="#SLOW_TIMEOUT")throw A;console.warn("async parser handler taking longer than 5000 ms")}))}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(B,A){let D,O=this._activeBuffer.x,U=this._activeBuffer.y,j=0;const X=this._parseStack.paused;if(X){if(D=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,A))return this._logSlowResolvingAsync(D),D;O=this._parseStack.cursorStartX,U=this._parseStack.cursorStartY,this._parseStack.paused=!1,B.length>L&&(j=this._parseStack.position+L)}if(this._logService.logLevel<=S.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<L&&(this._parseBuffer=new Uint32Array(Math.min(B.length,L))),X||this._dirtyRowTracker.clearRange(),B.length>L)for(let I=j;I<B.length;I+=L){const $=I+L<B.length?I+L:B.length,P=typeof B=="string"?this._stringDecoder.decode(B.substring(I,$),this._parseBuffer):this._utf8Decoder.decode(B.subarray(I,$),this._parseBuffer);if(D=this._parser.parse(this._parseBuffer,P))return this._preserveStack(O,U,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,U,I,0),this._logSlowResolvingAsync(D),D}this._activeBuffer.x===O&&this._activeBuffer.y===U||this._onCursorMove.fire();const Y=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(Y,this._bufferService.rows-1))}print(B,A,D){let O,U;const j=this._charsetService.charset,X=this._optionsService.rawOptions.screenReaderMode,Y=this._bufferService.cols,N=this._coreService.decPrivateModes.wraparound,I=this._coreService.modes.insertMode,$=this._curAttrData;let P=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._activeBuffer.x&&D-A>0&&P.getWidth(this._activeBuffer.x-1)===2&&P.setCellFromCodepoint(this._activeBuffer.x-1,0,1,$);let K=this._parser.precedingJoinState;for(let G=A;G<D;++G){if(O=B[G],O<127&&j){const _e=j[String.fromCharCode(O)];_e&&(O=_e.charCodeAt(0))}const ee=this._unicodeService.charProperties(O,K);U=m.UnicodeService.extractWidth(ee);const ne=m.UnicodeService.extractShouldJoin(ee),ae=ne?m.UnicodeService.extractWidth(K):0;if(K=ee,X&&this._onA11yChar.fire((0,f.stringFromCodePoint)(O)),this._getCurrentLinkId()&&this._oscLinkService.addLineToLink(this._getCurrentLinkId(),this._activeBuffer.ybase+this._activeBuffer.y),this._activeBuffer.x+U-ae>Y){if(N){const _e=P;let q=this._activeBuffer.x-ae;for(this._activeBuffer.x=ae,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),ae>0&&P instanceof s.BufferLine&&P.copyCellsFrom(_e,q,0,ae,!1);q<Y;)_e.setCellFromCodepoint(q++,0,1,$)}else if(this._activeBuffer.x=Y-1,U===2)continue}if(ne&&this._activeBuffer.x){const _e=P.getWidth(this._activeBuffer.x-1)?1:2;P.addCodepointToCell(this._activeBuffer.x-_e,O,U);for(let q=U-ae;--q>=0;)P.setCellFromCodepoint(this._activeBuffer.x++,0,0,$)}else if(I&&(P.insertCells(this._activeBuffer.x,U-ae,this._activeBuffer.getNullCell($)),P.getWidth(Y-1)===2&&P.setCellFromCodepoint(Y-1,o.NULL_CELL_CODE,o.NULL_CELL_WIDTH,$)),P.setCellFromCodepoint(this._activeBuffer.x++,O,U,$),U>0)for(;--U;)P.setCellFromCodepoint(this._activeBuffer.x++,0,0,$)}this._parser.precedingJoinState=K,this._activeBuffer.x<Y&&D-A>0&&P.getWidth(this._activeBuffer.x)===0&&!P.hasContent(this._activeBuffer.x)&&P.setCellFromCodepoint(this._activeBuffer.x,0,1,$),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(B,A){return B.final!=="t"||B.prefix||B.intermediates?this._parser.registerCsiHandler(B,A):this._parser.registerCsiHandler(B,(D=>!T(D.params[0],this._optionsService.rawOptions.windowOptions)||A(D)))}registerDcsHandler(B,A){return this._parser.registerDcsHandler(B,new p.DcsHandler(A))}registerEscHandler(B,A){return this._parser.registerEscHandler(B,A)}registerOscHandler(B,A){return this._parser.registerOscHandler(B,new y.OscHandler(A))}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 A=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);A.hasWidth(this._activeBuffer.x)&&!A.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,A){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=B,this._activeBuffer.y=this._activeBuffer.scrollTop+A):(this._activeBuffer.x=B,this._activeBuffer.y=A),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(B,A){this._restrictCursor(),this._setCursor(this._activeBuffer.x+B,this._activeBuffer.y+A)}cursorUp(B){const A=this._activeBuffer.y-this._activeBuffer.scrollTop;return A>=0?this._moveCursor(0,-Math.min(A,B.params[0]||1)):this._moveCursor(0,-(B.params[0]||1)),!0}cursorDown(B){const A=this._activeBuffer.scrollBottom-this._activeBuffer.y;return A>=0?this._moveCursor(0,Math.min(A,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 A=B.params[0];return A===0?delete this._activeBuffer.tabs[this._activeBuffer.x]:A===3&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(B){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let A=B.params[0]||1;for(;A--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(B){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let A=B.params[0]||1;for(;A--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(B){const A=B.params[0];return A===1&&(this._curAttrData.bg|=536870912),A!==2&&A!==0||(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(B,A,D,O=!1,U=!1){const j=this._activeBuffer.lines.get(this._activeBuffer.ybase+B);j.replaceCells(A,D,this._activeBuffer.getNullCell(this._eraseAttrData()),U),O&&(j.isWrapped=!1)}_resetBufferLine(B,A=!1){const D=this._activeBuffer.lines.get(this._activeBuffer.ybase+B);D&&(D.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),A),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+B),D.isWrapped=!1)}eraseInDisplay(B,A=!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,A);D<this._bufferService.rows;D++)this._resetBufferLine(D,A);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,A),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get(D+1).isWrapped=!1);D--;)this._resetBufferLine(D,A);this._dirtyRowTracker.markDirty(0);break;case 2:for(D=this._bufferService.rows,this._dirtyRowTracker.markDirty(D-1);D--;)this._resetBufferLine(D,A);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,A=!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,A);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,A);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,A)}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(B){this._restrictCursor();let A=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,U=this._bufferService.rows-1+this._activeBuffer.ybase-O+1;for(;A--;)this._activeBuffer.lines.splice(U-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 A=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;A--;)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 A=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return A&&(A.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 A=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return A&&(A.deleteCells(this._activeBuffer.x,B.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData())),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}scrollUp(B){let A=B.params[0]||1;for(;A--;)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 A=B.params[0]||1;for(;A--;)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(s.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 A=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,A,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 A=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,A,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 A=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,A,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 A=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,A,this._activeBuffer.getNullCell(this._eraseAttrData())),O.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}eraseChars(B){this._restrictCursor();const A=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return A&&(A.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 A=this._parser.precedingJoinState;if(!A)return!0;const D=B.params[0]||1,O=m.UnicodeService.extractWidth(A),U=this._activeBuffer.x-O,j=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).getString(U),X=new Uint32Array(j.length*D);let Y=0;for(let I=0;I<j.length;){const $=j.codePointAt(I)||0;X[Y++]=$,I+=$>65535?2:1}let N=Y;for(let I=1;I<D;++I)X.copyWithin(N,0,Y),N+=Y;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(l.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(l.C0.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(B){return B.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(l.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(l.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(B.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(l.C0.ESC+"[>83;40003;0c")),!0}_is(B){return(this._optionsService.rawOptions.termName+"").indexOf(B)===0}setMode(B){for(let A=0;A<B.length;A++)switch(B.params[A]){case 4:this._coreService.modes.insertMode=!0;break;case 20:this._optionsService.options.convertEol=!0}return!0}setModePrivate(B){for(let A=0;A<B.length;A++)switch(B.params[A]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,_.DEFAULT_CHARSET),this._charsetService.setgCharset(1,_.DEFAULT_CHARSET),this._charsetService.setgCharset(2,_.DEFAULT_CHARSET),this._charsetService.setgCharset(3,_.DEFAULT_CHARSET);break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12: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 A=0;A<B.length;A++)switch(B.params[A]){case 4:this._coreService.modes.insertMode=!1;break;case 20:this._optionsService.options.convertEol=!1}return!0}resetModePrivate(B){for(let A=0;A<B.length;A++)switch(B.params[A]){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[A]===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,A){const D=this._coreService.decPrivateModes,{activeProtocol:O,activeEncoding:U}=this._coreMouseService,j=this._coreService,{buffers:X,cols:Y}=this._bufferService,{active:N,alt:I}=X,$=this._optionsService.rawOptions,P=ne=>ne?1:2,K=B.params[0];return G=K,ee=A?K===2?4:K===4?P(j.modes.insertMode):K===12?3:K===20?P($.convertEol):0:K===1?P(D.applicationCursorKeys):K===3?$.windowOptions.setWinLines?Y===80?2:Y===132?1:0:0:K===6?P(D.origin):K===7?P(D.wraparound):K===8?3:K===9?P(O==="X10"):K===12?P($.cursorBlink):K===25?P(!j.isCursorHidden):K===45?P(D.reverseWraparound):K===66?P(D.applicationKeypad):K===67?4:K===1e3?P(O==="VT200"):K===1002?P(O==="DRAG"):K===1003?P(O==="ANY"):K===1004?P(D.sendFocus):K===1005?4:K===1006?P(U==="SGR"):K===1015?4:K===1016?P(U==="SGR_PIXELS"):K===1048?1:K===47||K===1047||K===1049?P(N===I):K===2004?P(D.bracketedPasteMode):0,j.triggerDataEvent(`${l.C0.ESC}[${A?"":"?"}${G};${ee}$y`),!0;var G,ee}_updateAttrColor(B,A,D,O,U){return A===2?(B|=50331648,B&=-16777216,B|=u.AttributeData.fromColorRGB([D,O,U])):A===5&&(B&=-50331904,B|=33554432|255&D),B}_extractColor(B,A,D){const O=[0,0,-1,0,0,0];let U=0,j=0;do{if(O[j+U]=B.params[A+j],B.hasSubParams(A+j)){const X=B.getSubParams(A+j);let Y=0;do O[1]===5&&(U=1),O[j+Y+1+U]=X[Y];while(++Y<X.length&&Y+j+1+U<O.length);break}if(O[1]===5&&j+U>=2||O[1]===2&&j+U>=5)break;O[1]&&(U=1)}while(++j+A<B.length&&j+U<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 j}_processUnderline(B,A){A.extended=A.extended.clone(),(!~B||B>5)&&(B=1),A.extended.underlineStyle=B,A.fg|=268435456,B===0&&(A.fg&=-268435457),A.updateExtended()}_processSGR0(B){B.fg=s.DEFAULT_ATTR_DATA.fg,B.bg=s.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 A=B.length;let D;const O=this._curAttrData;for(let U=0;U<A;U++)D=B.params[U],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(U)?B.getSubParams(U)[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&s.DEFAULT_ATTR_DATA.fg):D===49?(O.bg&=-67108864,O.bg|=16777215&s.DEFAULT_ATTR_DATA.bg):D===38||D===48||D===58?U+=this._extractColor(B,U,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&s.DEFAULT_ATTR_DATA.fg,O.bg&=-67108864,O.bg|=16777215&s.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(`${l.C0.ESC}[0n`);break;case 6:const A=this._activeBuffer.y+1,D=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${l.C0.ESC}[${A};${D}R`)}return!0}deviceStatusPrivate(B){if(B.params[0]===6){const A=this._activeBuffer.y+1,D=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${l.C0.ESC}[?${A};${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=s.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 A=B.params[0]||1;switch(A){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=A%2==1;return this._optionsService.options.cursorBlink=D,!0}setScrollRegion(B){const A=B.params[0]||1;let D;return(B.length<2||(D=B.params[1])>this._bufferService.rows||D===0)&&(D=this._bufferService.rows),D>A&&(this._activeBuffer.scrollTop=A-1,this._activeBuffer.scrollBottom=D-1,this._setCursor(0,0)),!0}windowOptions(B){if(!T(B.params[0],this._optionsService.rawOptions.windowOptions))return!0;const A=B.length>1?B.params[1]:0;switch(B.params[0]){case 14:A!==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(`${l.C0.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:A!==0&&A!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),A!==0&&A!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:A!==0&&A!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),A!==0&&A!==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 A=[],D=B.split(";");for(;D.length>1;){const O=D.shift(),U=D.shift();if(/^\d+$/.exec(O)){const j=parseInt(O);if(z(j))if(U==="?")A.push({type:0,index:j});else{const X=(0,k.parseColor)(U);X&&A.push({type:1,index:j,color:X})}}}return A.length&&this._onColor.fire(A),!0}setHyperlink(B){const A=B.split(";");return!(A.length<2)&&(A[1]?this._createHyperlink(A[0],A[1]):!A[0]&&this._finishHyperlink())}_createHyperlink(B,A){this._getCurrentLinkId()&&this._finishHyperlink();const D=B.split(":");let O;const U=D.findIndex((j=>j.startsWith("id=")));return U!==-1&&(O=D[U].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:O,uri:A}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(B,A){const D=B.split(";");for(let O=0;O<D.length&&!(A>=this._specialColors.length);++O,++A)if(D[O]==="?")this._onColor.fire([{type:0,index:this._specialColors[A]}]);else{const U=(0,k.parseColor)(D[O]);U&&this._onColor.fire([{type:1,index:this._specialColors[A],color:U}])}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 A=[],D=B.split(";");for(let O=0;O<D.length;++O)if(/^\d+$/.exec(D[O])){const U=parseInt(D[O]);z(U)&&A.push({type:2,index:U})}return A.length&&this._onColor.fire(A),!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,_.DEFAULT_CHARSET),!0}selectCharset(B){return B.length!==2?(this.selectDefaultCharset(),!0):(B[0]==="/"||this._charsetService.setgCharset(x[B[0]],_.CHARSETS[B[1]]||_.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=s.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=s.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 a.CellData;B.content=4194373,B.fg=this._curAttrData.fg,B.bg=this._curAttrData.bg,this._setCursor(0,0);for(let A=0;A<this._bufferService.rows;++A){const D=this._activeBuffer.ybase+this._activeBuffer.y+A,O=this._activeBuffer.lines.get(D);O&&(O.fill(B),O.isWrapped=!1)}return this._dirtyRowTracker.markAllDirty(),this._setCursor(0,0),!0}requestStatusString(B,A){const D=this._bufferService.buffer,O=this._optionsService.rawOptions;return(U=>(this._coreService.triggerDataEvent(`${l.C0.ESC}${U}${l.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,A){this._dirtyRowTracker.markRangeDirty(B,A)}}i.InputHandler=F;let W=class{constructor(V){this._bufferService=V,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty(V){V<this.start?this.start=V:V>this.end&&(this.end=V)}markRangeDirty(V,B){V>B&&(M=V,V=B,B=M),V<this.start&&(this.start=V),B>this.end&&(this.end=B)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};function z(V){return 0<=V&&V<256}W=d([g(0,S.IBufferService)],W)},844:(C,i)=>{function c(d){for(const g of d)g.dispose();d.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 d of this._disposables)d.dispose();this._disposables.length=0}register(d){return this._disposables.push(d),d}unregister(d){const g=this._disposables.indexOf(d);g!==-1&&this._disposables.splice(g,1)}},i.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(d){var g;this._isDisposed||d===this._value||((g=this._value)==null||g.dispose(),this._value=d)}clear(){this.value=void 0}dispose(){var d;this._isDisposed=!0,(d=this._value)==null||d.dispose(),this._value=void 0}},i.toDisposable=function(d){return{dispose:d}},i.disposeArray=c,i.getDisposeArrayDisposable=function(d){return{dispose:()=>c(d)}}},1505:(C,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.FourKeyMap=i.TwoKeyMap=void 0;class c{constructor(){this._data={}}set(g,l,_){this._data[g]||(this._data[g]={}),this._data[g][l]=_}get(g,l){return this._data[g]?this._data[g][l]:void 0}clear(){this._data={}}}i.TwoKeyMap=c,i.FourKeyMap=class{constructor(){this._data=new c}set(d,g,l,_,b){this._data.get(d,g)||this._data.set(d,g,new c),this._data.get(d,g).set(l,_,b)}get(d,g,l,_){var b;return(b=this._data.get(d,g))==null?void 0:b.get(l,_)}clear(){this._data.clear()}}},6114:(C,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 c=i.isNode?"node":navigator.userAgent,d=i.isNode?"node":navigator.platform;i.isFirefox=c.includes("Firefox"),i.isLegacyEdge=c.includes("Edge"),i.isSafari=/^((?!chrome|android).)*safari/i.test(c),i.getSafariVersion=function(){if(!i.isSafari)return 0;const g=c.match(/Version\/(\d+)/);return g===null||g.length<2?0:parseInt(g[1])},i.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(d),i.isIpad=d==="iPad",i.isIphone=d==="iPhone",i.isWindows=["Windows","Win16","Win32","WinCE"].includes(d),i.isLinux=d.indexOf("Linux")>=0,i.isChromeOS=/\bCrOS\b/.test(c)},6106:(C,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.SortedList=void 0;let c=0;i.SortedList=class{constructor(d){this._getKey=d,this._array=[]}clear(){this._array.length=0}insert(d){this._array.length!==0?(c=this._search(this._getKey(d)),this._array.splice(c,0,d)):this._array.push(d)}delete(d){if(this._array.length===0)return!1;const g=this._getKey(d);if(g===void 0||(c=this._search(g),c===-1)||this._getKey(this._array[c])!==g)return!1;do if(this._array[c]===d)return this._array.splice(c,1),!0;while(++c<this._array.length&&this._getKey(this._array[c])===g);return!1}*getKeyIterator(d){if(this._array.length!==0&&(c=this._search(d),!(c<0||c>=this._array.length)&&this._getKey(this._array[c])===d))do yield this._array[c];while(++c<this._array.length&&this._getKey(this._array[c])===d)}forEachByKey(d,g){if(this._array.length!==0&&(c=this._search(d),!(c<0||c>=this._array.length)&&this._getKey(this._array[c])===d))do g(this._array[c]);while(++c<this._array.length&&this._getKey(this._array[c])===d)}values(){return[...this._array].values()}_search(d){let g=0,l=this._array.length-1;for(;l>=g;){let _=g+l>>1;const b=this._getKey(this._array[_]);if(b>d)l=_-1;else{if(!(b<d)){for(;_>0&&this._getKey(this._array[_-1])===d;)_--;return _}g=_+1}}return g}}},7226:(C,i,c)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.DebouncedIdleTask=i.IdleTaskQueue=i.PriorityTaskQueue=void 0;const d=c(6114);class g{constructor(){this._tasks=[],this._i=0}enqueue(b){this._tasks.push(b),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(b){this._idleCallback=void 0;let w=0,f=0,s=b.timeRemaining(),n=0;for(;this._i<this._tasks.length;){if(w=Date.now(),this._tasks[this._i]()||this._i++,w=Math.max(1,Date.now()-w),f=Math.max(w,f),n=b.timeRemaining(),1.5*f>n)return s-w<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(s-w))}ms`),void this._start();s=n}this.clear()}}class l extends g{_requestCallback(b){return setTimeout((()=>b(this._createDeadline(16))))}_cancelCallback(b){clearTimeout(b)}_createDeadline(b){const w=Date.now()+b;return{timeRemaining:()=>Math.max(0,w-Date.now())}}}i.PriorityTaskQueue=l,i.IdleTaskQueue=!d.isNode&&"requestIdleCallback"in window?class extends g{_requestCallback(_){return requestIdleCallback(_)}_cancelCallback(_){cancelIdleCallback(_)}}:l,i.DebouncedIdleTask=class{constructor(){this._queue=new i.IdleTaskQueue}set(_){this._queue.clear(),this._queue.enqueue(_)}flush(){this._queue.flush()}}},9282:(C,i,c)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.updateWindowsModeWrappedState=void 0;const d=c(643);i.updateWindowsModeWrappedState=function(g){const l=g.buffer.lines.get(g.buffer.ybase+g.buffer.y-1),_=l==null?void 0:l.get(g.cols-1),b=g.buffer.lines.get(g.buffer.ybase+g.buffer.y);b&&_&&(b.isWrapped=_[d.CHAR_DATA_CODE_INDEX]!==d.NULL_CELL_CODE&&_[d.CHAR_DATA_CODE_INDEX]!==d.WHITESPACE_CELL_CODE)}},3734:(C,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.ExtendedAttrs=i.AttributeData=void 0;class c{constructor(){this.fg=0,this.bg=0,this.extended=new d}static toColorRGB(l){return[l>>>16&255,l>>>8&255,255&l]}static fromColorRGB(l){return(255&l[0])<<16|(255&l[1])<<8|255&l[2]}clone(){const l=new c;return l.fg=this.fg,l.bg=this.bg,l.extended=this.extended.clone(),l}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=c;class d{get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(l){this._ext=l}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(l){this._ext&=-469762049,this._ext|=l<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(l){this._ext&=-67108864,this._ext|=67108863&l}get urlId(){return this._urlId}set urlId(l){this._urlId=l}get underlineVariantOffset(){const l=(3758096384&this._ext)>>29;return l<0?4294967288^l:l}set underlineVariantOffset(l){this._ext&=536870911,this._ext|=l<<29&3758096384}constructor(l=0,_=0){this._ext=0,this._urlId=0,this._ext=l,this._urlId=_}clone(){return new d(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}}i.ExtendedAttrs=d},9092:(C,i,c)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.Buffer=i.MAX_BUFFER_SIZE=void 0;const d=c(6349),g=c(7226),l=c(3734),_=c(8437),b=c(4634),w=c(511),f=c(643),s=c(4863),n=c(7116);i.MAX_BUFFER_SIZE=4294967295,i.Buffer=class{constructor(o,a,u){this._hasScrollback=o,this._optionsService=a,this._bufferService=u,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=_.DEFAULT_ATTR_DATA.clone(),this.savedCharset=n.DEFAULT_CHARSET,this.markers=[],this._nullCell=w.CellData.fromCharData([0,f.NULL_CELL_CHAR,f.NULL_CELL_WIDTH,f.NULL_CELL_CODE]),this._whitespaceCell=w.CellData.fromCharData([0,f.WHITESPACE_CELL_CHAR,f.WHITESPACE_CELL_WIDTH,f.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._memoryCleanupQueue=new g.IdleTaskQueue,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new d.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(o){return o?(this._nullCell.fg=o.fg,this._nullCell.bg=o.bg,this._nullCell.extended=o.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new l.ExtendedAttrs),this._nullCell}getWhitespaceCell(o){return o?(this._whitespaceCell.fg=o.fg,this._whitespaceCell.bg=o.bg,this._whitespaceCell.extended=o.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new l.ExtendedAttrs),this._whitespaceCell}getBlankLine(o,a){return new _.BufferLine(this._bufferService.cols,this.getNullCell(o),a)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){const o=this.ybase+this.y-this.ydisp;return o>=0&&o<this._rows}_getCorrectBufferLength(o){if(!this._hasScrollback)return o;const a=o+this._optionsService.rawOptions.scrollback;return a>i.MAX_BUFFER_SIZE?i.MAX_BUFFER_SIZE:a}fillViewportRows(o){if(this.lines.length===0){o===void 0&&(o=_.DEFAULT_ATTR_DATA);let a=this._rows;for(;a--;)this.lines.push(this.getBlankLine(o))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new d.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(o,a){const u=this.getNullCell(_.DEFAULT_ATTR_DATA);let S=0;const m=this._getCorrectBufferLength(a);if(m>this.lines.maxLength&&(this.lines.maxLength=m),this.lines.length>0){if(this._cols<o)for(let p=0;p<this.lines.length;p++)S+=+this.lines.get(p).resize(o,u);let y=0;if(this._rows<a)for(let p=this._rows;p<a;p++)this.lines.length<a+this.ybase&&(this._optionsService.rawOptions.windowsMode||this._optionsService.rawOptions.windowsPty.backend!==void 0||this._optionsService.rawOptions.windowsPty.buildNumber!==void 0?this.lines.push(new _.BufferLine(o,u)):this.ybase>0&&this.lines.length<=this.ybase+this.y+y+1?(this.ybase--,y++,this.ydisp>0&&this.ydisp--):this.lines.push(new _.BufferLine(o,u)));else for(let p=this._rows;p>a;p--)this.lines.length>a+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(m<this.lines.maxLength){const p=this.lines.length-m;p>0&&(this.lines.trimStart(p),this.ybase=Math.max(this.ybase-p,0),this.ydisp=Math.max(this.ydisp-p,0),this.savedY=Math.max(this.savedY-p,0)),this.lines.maxLength=m}this.x=Math.min(this.x,o-1),this.y=Math.min(this.y,a-1),y&&(this.y+=y),this.savedX=Math.min(this.savedX,o-1),this.scrollTop=0}if(this.scrollBottom=a-1,this._isReflowEnabled&&(this._reflow(o,a),this._cols>o))for(let y=0;y<this.lines.length;y++)S+=+this.lines.get(y).resize(o,u);this._cols=o,this._rows=a,this._memoryCleanupQueue.clear(),S>.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue((()=>this._batchedMemoryCleanup())))}_batchedMemoryCleanup(){let o=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,o=!1);let a=0;for(;this._memoryCleanupPosition<this.lines.length;)if(a+=this.lines.get(this._memoryCleanupPosition++).cleanupMemory(),a>100)return!0;return o}get _isReflowEnabled(){const o=this._optionsService.rawOptions.windowsPty;return o&&o.buildNumber?this._hasScrollback&&o.backend==="conpty"&&o.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(o,a){this._cols!==o&&(o>this._cols?this._reflowLarger(o,a):this._reflowSmaller(o,a))}_reflowLarger(o,a){const u=(0,b.reflowLargerGetLinesToRemove)(this.lines,this._cols,o,this.ybase+this.y,this.getNullCell(_.DEFAULT_ATTR_DATA));if(u.length>0){const S=(0,b.reflowLargerCreateNewLayout)(this.lines,u);(0,b.reflowLargerApplyNewLayout)(this.lines,S.layout),this._reflowLargerAdjustViewport(o,a,S.countRemoved)}}_reflowLargerAdjustViewport(o,a,u){const S=this.getNullCell(_.DEFAULT_ATTR_DATA);let m=u;for(;m-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<a&&this.lines.push(new _.BufferLine(o,S))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-u,0)}_reflowSmaller(o,a){const u=this.getNullCell(_.DEFAULT_ATTR_DATA),S=[];let m=0;for(let y=this.lines.length-1;y>=0;y--){let p=this.lines.get(y);if(!p||!p.isWrapped&&p.getTrimmedLength()<=o)continue;const k=[p];for(;p.isWrapped&&y>0;)p=this.lines.get(--y),k.unshift(p);const x=this.ybase+this.y;if(x>=y&&x<y+k.length)continue;const L=k[k.length-1].getTrimmedLength(),T=(0,b.reflowSmallerGetNewLineLengths)(k,this._cols,o),R=T.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 F=[];for(let D=0;D<R;D++){const O=this.getBlankLine(_.DEFAULT_ATTR_DATA,!0);F.push(O)}F.length>0&&(S.push({start:y+k.length+m,newLines:F}),m+=F.length),k.push(...F);let W=T.length-1,z=T[W];z===0&&(W--,z=T[W]);let V=k.length-R-1,B=L;for(;V>=0;){const D=Math.min(B,z);if(k[W]===void 0)break;if(k[W].copyCellsFrom(k[V],B-D,z-D,D,!0),z-=D,z===0&&(W--,z=T[W]),B-=D,B===0){V--;const O=Math.max(V,0);B=(0,b.getWrappedLineTrimmedLength)(k,O,this._cols)}}for(let D=0;D<k.length;D++)T[D]<o&&k[D].setCell(T[D],u);let A=R-M;for(;A-- >0;)this.ybase===0?this.y<a-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+m)-a&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+R,this.ybase+a-1)}if(S.length>0){const y=[],p=[];for(let W=0;W<this.lines.length;W++)p.push(this.lines.get(W));const k=this.lines.length;let x=k-1,L=0,T=S[L];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+m);let R=0;for(let W=Math.min(this.lines.maxLength-1,k+m-1);W>=0;W--)if(T&&T.start>x+R){for(let z=T.newLines.length-1;z>=0;z--)this.lines.set(W--,T.newLines[z]);W++,y.push({index:x+1,amount:T.newLines.length}),R+=T.newLines.length,T=S[++L]}else this.lines.set(W,p[x--]);let M=0;for(let W=y.length-1;W>=0;W--)y[W].index+=M,this.lines.onInsertEmitter.fire(y[W]),M+=y[W].amount;const F=Math.max(0,k+m-this.lines.maxLength);F>0&&this.lines.onTrimEmitter.fire(F)}}translateBufferLineToString(o,a,u=0,S){const m=this.lines.get(o);return m?m.translateToString(a,u,S):""}getWrappedRangeForLine(o){let a=o,u=o;for(;a>0&&this.lines.get(a).isWrapped;)a--;for(;u+1<this.lines.length&&this.lines.get(u+1).isWrapped;)u++;return{first:a,last:u}}setupTabStops(o){for(o!=null?this.tabs[o]||(o=this.prevStop(o)):(this.tabs={},o=0);o<this._cols;o+=this._optionsService.rawOptions.tabStopWidth)this.tabs[o]=!0}prevStop(o){for(o==null&&(o=this.x);!this.tabs[--o]&&o>0;);return o>=this._cols?this._cols-1:o<0?0:o}nextStop(o){for(o==null&&(o=this.x);!this.tabs[++o]&&o<this._cols;);return o>=this._cols?this._cols-1:o<0?0:o}clearMarkers(o){this._isClearing=!0;for(let a=0;a<this.markers.length;a++)this.markers[a].line===o&&(this.markers[a].dispose(),this.markers.splice(a--,1));this._isClearing=!1}clearAllMarkers(){this._isClearing=!0;for(let o=0;o<this.markers.length;o++)this.markers[o].dispose(),this.markers.splice(o--,1);this._isClearing=!1}addMarker(o){const a=new s.Marker(o);return this.markers.push(a),a.register(this.lines.onTrim((u=>{a.line-=u,a.line<0&&a.dispose()}))),a.register(this.lines.onInsert((u=>{a.line>=u.index&&(a.line+=u.amount)}))),a.register(this.lines.onDelete((u=>{a.line>=u.index&&a.line<u.index+u.amount&&a.dispose(),a.line>u.index&&(a.line-=u.amount)}))),a.register(a.onDispose((()=>this._removeMarker(a)))),a}_removeMarker(o){this._isClearing||this.markers.splice(this.markers.indexOf(o),1)}}},8437:(C,i,c)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.BufferLine=i.DEFAULT_ATTR_DATA=void 0;const d=c(3734),g=c(511),l=c(643),_=c(482);i.DEFAULT_ATTR_DATA=Object.freeze(new d.AttributeData);let b=0;class w{constructor(s,n,o=!1){this.isWrapped=o,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*s);const a=n||g.CellData.fromCharData([0,l.NULL_CELL_CHAR,l.NULL_CELL_WIDTH,l.NULL_CELL_CODE]);for(let u=0;u<s;++u)this.setCell(u,a);this.length=s}get(s){const n=this._data[3*s+0],o=2097151&n;return[this._data[3*s+1],2097152&n?this._combined[s]:o?(0,_.stringFromCodePoint)(o):"",n>>22,2097152&n?this._combined[s].charCodeAt(this._combined[s].length-1):o]}set(s,n){this._data[3*s+1]=n[l.CHAR_DATA_ATTR_INDEX],n[l.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[s]=n[1],this._data[3*s+0]=2097152|s|n[l.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*s+0]=n[l.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|n[l.CHAR_DATA_WIDTH_INDEX]<<22}getWidth(s){return this._data[3*s+0]>>22}hasWidth(s){return 12582912&this._data[3*s+0]}getFg(s){return this._data[3*s+1]}getBg(s){return this._data[3*s+2]}hasContent(s){return 4194303&this._data[3*s+0]}getCodePoint(s){const n=this._data[3*s+0];return 2097152&n?this._combined[s].charCodeAt(this._combined[s].length-1):2097151&n}isCombined(s){return 2097152&this._data[3*s+0]}getString(s){const n=this._data[3*s+0];return 2097152&n?this._combined[s]:2097151&n?(0,_.stringFromCodePoint)(2097151&n):""}isProtected(s){return 536870912&this._data[3*s+2]}loadCell(s,n){return b=3*s,n.content=this._data[b+0],n.fg=this._data[b+1],n.bg=this._data[b+2],2097152&n.content&&(n.combinedData=this._combined[s]),268435456&n.bg&&(n.extended=this._extendedAttrs[s]),n}setCell(s,n){2097152&n.content&&(this._combined[s]=n.combinedData),268435456&n.bg&&(this._extendedAttrs[s]=n.extended),this._data[3*s+0]=n.content,this._data[3*s+1]=n.fg,this._data[3*s+2]=n.bg}setCellFromCodepoint(s,n,o,a){268435456&a.bg&&(this._extendedAttrs[s]=a.extended),this._data[3*s+0]=n|o<<22,this._data[3*s+1]=a.fg,this._data[3*s+2]=a.bg}addCodepointToCell(s,n,o){let a=this._data[3*s+0];2097152&a?this._combined[s]+=(0,_.stringFromCodePoint)(n):2097151&a?(this._combined[s]=(0,_.stringFromCodePoint)(2097151&a)+(0,_.stringFromCodePoint)(n),a&=-2097152,a|=2097152):a=n|4194304,o&&(a&=-12582913,a|=o<<22),this._data[3*s+0]=a}insertCells(s,n,o){if((s%=this.length)&&this.getWidth(s-1)===2&&this.setCellFromCodepoint(s-1,0,1,o),n<this.length-s){const a=new g.CellData;for(let u=this.length-s-n-1;u>=0;--u)this.setCell(s+n+u,this.loadCell(s+u,a));for(let u=0;u<n;++u)this.setCell(s+u,o)}else for(let a=s;a<this.length;++a)this.setCell(a,o);this.getWidth(this.length-1)===2&&this.setCellFromCodepoint(this.length-1,0,1,o)}deleteCells(s,n,o){if(s%=this.length,n<this.length-s){const a=new g.CellData;for(let u=0;u<this.length-s-n;++u)this.setCell(s+u,this.loadCell(s+n+u,a));for(let u=this.length-n;u<this.length;++u)this.setCell(u,o)}else for(let a=s;a<this.length;++a)this.setCell(a,o);s&&this.getWidth(s-1)===2&&this.setCellFromCodepoint(s-1,0,1,o),this.getWidth(s)!==0||this.hasContent(s)||this.setCellFromCodepoint(s,0,1,o)}replaceCells(s,n,o,a=!1){if(a)for(s&&this.getWidth(s-1)===2&&!this.isProtected(s-1)&&this.setCellFromCodepoint(s-1,0,1,o),n<this.length&&this.getWidth(n-1)===2&&!this.isProtected(n)&&this.setCellFromCodepoint(n,0,1,o);s<n&&s<this.length;)this.isProtected(s)||this.setCell(s,o),s++;else for(s&&this.getWidth(s-1)===2&&this.setCellFromCodepoint(s-1,0,1,o),n<this.length&&this.getWidth(n-1)===2&&this.setCellFromCodepoint(n,0,1,o);s<n&&s<this.length;)this.setCell(s++,o)}resize(s,n){if(s===this.length)return 4*this._data.length*2<this._data.buffer.byteLength;const o=3*s;if(s>this.length){if(this._data.buffer.byteLength>=4*o)this._data=new Uint32Array(this._data.buffer,0,o);else{const a=new Uint32Array(o);a.set(this._data),this._data=a}for(let a=this.length;a<s;++a)this.setCell(a,n)}else{this._data=this._data.subarray(0,o);const a=Object.keys(this._combined);for(let S=0;S<a.length;S++){const m=parseInt(a[S],10);m>=s&&delete this._combined[m]}const u=Object.keys(this._extendedAttrs);for(let S=0;S<u.length;S++){const m=parseInt(u[S],10);m>=s&&delete this._extendedAttrs[m]}}return this.length=s,4*o*2<this._data.buffer.byteLength}cleanupMemory(){if(4*this._data.length*2<this._data.buffer.byteLength){const s=new Uint32Array(this._data.length);return s.set(this._data),this._data=s,1}return 0}fill(s,n=!1){if(n)for(let o=0;o<this.length;++o)this.isProtected(o)||this.setCell(o,s);else{this._combined={},this._extendedAttrs={};for(let o=0;o<this.length;++o)this.setCell(o,s)}}copyFrom(s){this.length!==s.length?this._data=new Uint32Array(s._data):this._data.set(s._data),this.length=s.length,this._combined={};for(const n in s._combined)this._combined[n]=s._combined[n];this._extendedAttrs={};for(const n in s._extendedAttrs)this._extendedAttrs[n]=s._extendedAttrs[n];this.isWrapped=s.isWrapped}clone(){const s=new w(0);s._data=new Uint32Array(this._data),s.length=this.length;for(const n in this._combined)s._combined[n]=this._combined[n];for(const n in this._extendedAttrs)s._extendedAttrs[n]=this._extendedAttrs[n];return s.isWrapped=this.isWrapped,s}getTrimmedLength(){for(let s=this.length-1;s>=0;--s)if(4194303&this._data[3*s+0])return s+(this._data[3*s+0]>>22);return 0}getNoBgTrimmedLength(){for(let s=this.length-1;s>=0;--s)if(4194303&this._data[3*s+0]||50331648&this._data[3*s+2])return s+(this._data[3*s+0]>>22);return 0}copyCellsFrom(s,n,o,a,u){const S=s._data;if(u)for(let y=a-1;y>=0;y--){for(let p=0;p<3;p++)this._data[3*(o+y)+p]=S[3*(n+y)+p];268435456&S[3*(n+y)+2]&&(this._extendedAttrs[o+y]=s._extendedAttrs[n+y])}else for(let y=0;y<a;y++){for(let p=0;p<3;p++)this._data[3*(o+y)+p]=S[3*(n+y)+p];268435456&S[3*(n+y)+2]&&(this._extendedAttrs[o+y]=s._extendedAttrs[n+y])}const m=Object.keys(s._combined);for(let y=0;y<m.length;y++){const p=parseInt(m[y],10);p>=n&&(this._combined[p-n+o]=s._combined[p])}}translateToString(s,n,o,a){n=n??0,o=o??this.length,s&&(o=Math.min(o,this.getTrimmedLength())),a&&(a.length=0);let u="";for(;n<o;){const S=this._data[3*n+0],m=2097151&S,y=2097152&S?this._combined[n]:m?(0,_.stringFromCodePoint)(m):l.WHITESPACE_CELL_CHAR;if(u+=y,a)for(let p=0;p<y.length;++p)a.push(n);n+=S>>22||1}return a&&a.push(n),u}}i.BufferLine=w},4841:(C,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.getRangeLength=void 0,i.getRangeLength=function(c,d){if(c.start.y>c.end.y)throw new Error(`Buffer range end (${c.end.x}, ${c.end.y}) cannot be before start (${c.start.x}, ${c.start.y})`);return d*(c.end.y-c.start.y)+(c.end.x-c.start.x+1)}},4634:(C,i)=>{function c(d,g,l){if(g===d.length-1)return d[g].getTrimmedLength();const _=!d[g].hasContent(l-1)&&d[g].getWidth(l-1)===1,b=d[g+1].getWidth(0)===2;return _&&b?l-1:l}Object.defineProperty(i,"__esModule",{value:!0}),i.getWrappedLineTrimmedLength=i.reflowSmallerGetNewLineLengths=i.reflowLargerApplyNewLayout=i.reflowLargerCreateNewLayout=i.reflowLargerGetLinesToRemove=void 0,i.reflowLargerGetLinesToRemove=function(d,g,l,_,b){const w=[];for(let f=0;f<d.length-1;f++){let s=f,n=d.get(++s);if(!n.isWrapped)continue;const o=[d.get(f)];for(;s<d.length&&n.isWrapped;)o.push(n),n=d.get(++s);if(_>=f&&_<s){f+=o.length-1;continue}let a=0,u=c(o,a,g),S=1,m=0;for(;S<o.length;){const p=c(o,S,g),k=p-m,x=l-u,L=Math.min(k,x);o[a].copyCellsFrom(o[S],m,u,L,!1),u+=L,u===l&&(a++,u=0),m+=L,m===p&&(S++,m=0),u===0&&a!==0&&o[a-1].getWidth(l-1)===2&&(o[a].copyCellsFrom(o[a-1],l-1,u++,1,!1),o[a-1].setCell(l-1,b))}o[a].replaceCells(u,l,b);let y=0;for(let p=o.length-1;p>0&&(p>a||o[p].getTrimmedLength()===0);p--)y++;y>0&&(w.push(f+o.length-y),w.push(y)),f+=o.length-1}return w},i.reflowLargerCreateNewLayout=function(d,g){const l=[];let _=0,b=g[_],w=0;for(let f=0;f<d.length;f++)if(b===f){const s=g[++_];d.onDeleteEmitter.fire({index:f-w,amount:s}),f+=s-1,w+=s,b=g[++_]}else l.push(f);return{layout:l,countRemoved:w}},i.reflowLargerApplyNewLayout=function(d,g){const l=[];for(let _=0;_<g.length;_++)l.push(d.get(g[_]));for(let _=0;_<l.length;_++)d.set(_,l[_]);d.length=g.length},i.reflowSmallerGetNewLineLengths=function(d,g,l){const _=[],b=d.map(((n,o)=>c(d,o,g))).reduce(((n,o)=>n+o));let w=0,f=0,s=0;for(;s<b;){if(b-s<l){_.push(b-s);break}w+=l;const n=c(d,f,g);w>n&&(w-=n,f++);const o=d[f].getWidth(w-1)===2;o&&w--;const a=o?l-1:l;_.push(a),s+=a}return _},i.getWrappedLineTrimmedLength=c},5295:(C,i,c)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.BufferSet=void 0;const d=c(8460),g=c(844),l=c(9092);class _ extends g.Disposable{constructor(w,f){super(),this._optionsService=w,this._bufferService=f,this._onBufferActivate=this.register(new d.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 l.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new l.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(w){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(w),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(w,f){this._normal.resize(w,f),this._alt.resize(w,f),this.setupTabStops(w)}setupTabStops(w){this._normal.setupTabStops(w),this._alt.setupTabStops(w)}}i.BufferSet=_},511:(C,i,c)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.CellData=void 0;const d=c(482),g=c(643),l=c(3734);class _ extends l.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new l.ExtendedAttrs,this.combinedData=""}static fromCharData(w){const f=new _;return f.setFromCharData(w),f}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,d.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(w){this.fg=w[g.CHAR_DATA_ATTR_INDEX],this.bg=0;let f=!1;if(w[g.CHAR_DATA_CHAR_INDEX].length>2)f=!0;else if(w[g.CHAR_DATA_CHAR_INDEX].length===2){const s=w[g.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=s&&s<=56319){const n=w[g.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=n&&n<=57343?this.content=1024*(s-55296)+n-56320+65536|w[g.CHAR_DATA_WIDTH_INDEX]<<22:f=!0}else f=!0}else this.content=w[g.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|w[g.CHAR_DATA_WIDTH_INDEX]<<22;f&&(this.combinedData=w[g.CHAR_DATA_CHAR_INDEX],this.content=2097152|w[g.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}i.CellData=_},643:(C,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:(C,i,c)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.Marker=void 0;const d=c(8460),g=c(844);class l{get id(){return this._id}constructor(b){this.line=b,this.isDisposed=!1,this._disposables=[],this._id=l._nextId++,this._onDispose=this.register(new d.EventEmitter),this.onDispose=this._onDispose.event}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),(0,g.disposeArray)(this._disposables),this._disposables.length=0)}register(b){return this._disposables.push(b),b}}i.Marker=l,l._nextId=1},7116:(C,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:(C,i)=>{var c,d,g;Object.defineProperty(i,"__esModule",{value:!0}),i.C1_ESCAPED=i.C1=i.C0=void 0,(function(l){l.NUL="\0",l.SOH="",l.STX="",l.ETX="",l.EOT="",l.ENQ="",l.ACK="",l.BEL="\x07",l.BS="\b",l.HT=" ",l.LF=`
|
|
42
|
-
`,l.VT="\v",l.FF="\f",l.CR="\r",l.SO="",l.SI="",l.DLE="",l.DC1="",l.DC2="",l.DC3="",l.DC4="",l.NAK="",l.SYN="",l.ETB="",l.CAN="",l.EM="",l.SUB="",l.ESC="\x1B",l.FS="",l.GS="",l.RS="",l.US="",l.SP=" ",l.DEL=""})(c||(i.C0=c={})),(function(l){l.PAD="",l.HOP="",l.BPH="",l.NBH="",l.IND="",l.NEL="
",l.SSA="",l.ESA="",l.HTS="",l.HTJ="",l.VTS="",l.PLD="",l.PLU="",l.RI="",l.SS2="",l.SS3="",l.DCS="",l.PU1="",l.PU2="",l.STS="",l.CCH="",l.MW="",l.SPA="",l.EPA="",l.SOS="",l.SGCI="",l.SCI="",l.CSI="",l.ST="",l.OSC="",l.PM="",l.APC=""})(d||(i.C1=d={})),(function(l){l.ST=`${c.ESC}\\`})(g||(i.C1_ESCAPED=g={}))},7399:(C,i,c)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.evaluateKeyboardEvent=void 0;const d=c(2584),g={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(l,_,b,w){const f={type:0,cancel:!1,key:void 0},s=(l.shiftKey?1:0)|(l.altKey?2:0)|(l.ctrlKey?4:0)|(l.metaKey?8:0);switch(l.keyCode){case 0:l.key==="UIKeyInputUpArrow"?f.key=_?d.C0.ESC+"OA":d.C0.ESC+"[A":l.key==="UIKeyInputLeftArrow"?f.key=_?d.C0.ESC+"OD":d.C0.ESC+"[D":l.key==="UIKeyInputRightArrow"?f.key=_?d.C0.ESC+"OC":d.C0.ESC+"[C":l.key==="UIKeyInputDownArrow"&&(f.key=_?d.C0.ESC+"OB":d.C0.ESC+"[B");break;case 8:f.key=l.ctrlKey?"\b":d.C0.DEL,l.altKey&&(f.key=d.C0.ESC+f.key);break;case 9:if(l.shiftKey){f.key=d.C0.ESC+"[Z";break}f.key=d.C0.HT,f.cancel=!0;break;case 13:f.key=l.altKey?d.C0.ESC+d.C0.CR:d.C0.CR,f.cancel=!0;break;case 27:f.key=d.C0.ESC,l.altKey&&(f.key=d.C0.ESC+d.C0.ESC),f.cancel=!0;break;case 37:if(l.metaKey)break;s?(f.key=d.C0.ESC+"[1;"+(s+1)+"D",f.key===d.C0.ESC+"[1;3D"&&(f.key=d.C0.ESC+(b?"b":"[1;5D"))):f.key=_?d.C0.ESC+"OD":d.C0.ESC+"[D";break;case 39:if(l.metaKey)break;s?(f.key=d.C0.ESC+"[1;"+(s+1)+"C",f.key===d.C0.ESC+"[1;3C"&&(f.key=d.C0.ESC+(b?"f":"[1;5C"))):f.key=_?d.C0.ESC+"OC":d.C0.ESC+"[C";break;case 38:if(l.metaKey)break;s?(f.key=d.C0.ESC+"[1;"+(s+1)+"A",b||f.key!==d.C0.ESC+"[1;3A"||(f.key=d.C0.ESC+"[1;5A")):f.key=_?d.C0.ESC+"OA":d.C0.ESC+"[A";break;case 40:if(l.metaKey)break;s?(f.key=d.C0.ESC+"[1;"+(s+1)+"B",b||f.key!==d.C0.ESC+"[1;3B"||(f.key=d.C0.ESC+"[1;5B")):f.key=_?d.C0.ESC+"OB":d.C0.ESC+"[B";break;case 45:l.shiftKey||l.ctrlKey||(f.key=d.C0.ESC+"[2~");break;case 46:f.key=s?d.C0.ESC+"[3;"+(s+1)+"~":d.C0.ESC+"[3~";break;case 36:f.key=s?d.C0.ESC+"[1;"+(s+1)+"H":_?d.C0.ESC+"OH":d.C0.ESC+"[H";break;case 35:f.key=s?d.C0.ESC+"[1;"+(s+1)+"F":_?d.C0.ESC+"OF":d.C0.ESC+"[F";break;case 33:l.shiftKey?f.type=2:l.ctrlKey?f.key=d.C0.ESC+"[5;"+(s+1)+"~":f.key=d.C0.ESC+"[5~";break;case 34:l.shiftKey?f.type=3:l.ctrlKey?f.key=d.C0.ESC+"[6;"+(s+1)+"~":f.key=d.C0.ESC+"[6~";break;case 112:f.key=s?d.C0.ESC+"[1;"+(s+1)+"P":d.C0.ESC+"OP";break;case 113:f.key=s?d.C0.ESC+"[1;"+(s+1)+"Q":d.C0.ESC+"OQ";break;case 114:f.key=s?d.C0.ESC+"[1;"+(s+1)+"R":d.C0.ESC+"OR";break;case 115:f.key=s?d.C0.ESC+"[1;"+(s+1)+"S":d.C0.ESC+"OS";break;case 116:f.key=s?d.C0.ESC+"[15;"+(s+1)+"~":d.C0.ESC+"[15~";break;case 117:f.key=s?d.C0.ESC+"[17;"+(s+1)+"~":d.C0.ESC+"[17~";break;case 118:f.key=s?d.C0.ESC+"[18;"+(s+1)+"~":d.C0.ESC+"[18~";break;case 119:f.key=s?d.C0.ESC+"[19;"+(s+1)+"~":d.C0.ESC+"[19~";break;case 120:f.key=s?d.C0.ESC+"[20;"+(s+1)+"~":d.C0.ESC+"[20~";break;case 121:f.key=s?d.C0.ESC+"[21;"+(s+1)+"~":d.C0.ESC+"[21~";break;case 122:f.key=s?d.C0.ESC+"[23;"+(s+1)+"~":d.C0.ESC+"[23~";break;case 123:f.key=s?d.C0.ESC+"[24;"+(s+1)+"~":d.C0.ESC+"[24~";break;default:if(!l.ctrlKey||l.shiftKey||l.altKey||l.metaKey)if(b&&!w||!l.altKey||l.metaKey)!b||l.altKey||l.ctrlKey||l.shiftKey||!l.metaKey?l.key&&!l.ctrlKey&&!l.altKey&&!l.metaKey&&l.keyCode>=48&&l.key.length===1?f.key=l.key:l.key&&l.ctrlKey&&(l.key==="_"&&(f.key=d.C0.US),l.key==="@"&&(f.key=d.C0.NUL)):l.keyCode===65&&(f.type=1);else{const n=g[l.keyCode],o=n==null?void 0:n[l.shiftKey?1:0];if(o)f.key=d.C0.ESC+o;else if(l.keyCode>=65&&l.keyCode<=90){const a=l.ctrlKey?l.keyCode-64:l.keyCode+32;let u=String.fromCharCode(a);l.shiftKey&&(u=u.toUpperCase()),f.key=d.C0.ESC+u}else if(l.keyCode===32)f.key=d.C0.ESC+(l.ctrlKey?d.C0.NUL:" ");else if(l.key==="Dead"&&l.code.startsWith("Key")){let a=l.code.slice(3,4);l.shiftKey||(a=a.toLowerCase()),f.key=d.C0.ESC+a,f.cancel=!0}}else l.keyCode>=65&&l.keyCode<=90?f.key=String.fromCharCode(l.keyCode-64):l.keyCode===32?f.key=d.C0.NUL:l.keyCode>=51&&l.keyCode<=55?f.key=String.fromCharCode(l.keyCode-51+27):l.keyCode===56?f.key=d.C0.DEL:l.keyCode===219?f.key=d.C0.ESC:l.keyCode===220?f.key=d.C0.FS:l.keyCode===221&&(f.key=d.C0.GS)}return f}},482:(C,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.Utf8ToUtf32=i.StringToUtf32=i.utf32ToString=i.stringFromCodePoint=void 0,i.stringFromCodePoint=function(c){return c>65535?(c-=65536,String.fromCharCode(55296+(c>>10))+String.fromCharCode(c%1024+56320)):String.fromCharCode(c)},i.utf32ToString=function(c,d=0,g=c.length){let l="";for(let _=d;_<g;++_){let b=c[_];b>65535?(b-=65536,l+=String.fromCharCode(55296+(b>>10))+String.fromCharCode(b%1024+56320)):l+=String.fromCharCode(b)}return l},i.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(c,d){const g=c.length;if(!g)return 0;let l=0,_=0;if(this._interim){const b=c.charCodeAt(_++);56320<=b&&b<=57343?d[l++]=1024*(this._interim-55296)+b-56320+65536:(d[l++]=this._interim,d[l++]=b),this._interim=0}for(let b=_;b<g;++b){const w=c.charCodeAt(b);if(55296<=w&&w<=56319){if(++b>=g)return this._interim=w,l;const f=c.charCodeAt(b);56320<=f&&f<=57343?d[l++]=1024*(w-55296)+f-56320+65536:(d[l++]=w,d[l++]=f)}else w!==65279&&(d[l++]=w)}return l}},i.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(c,d){const g=c.length;if(!g)return 0;let l,_,b,w,f=0,s=0,n=0;if(this.interim[0]){let u=!1,S=this.interim[0];S&=(224&S)==192?31:(240&S)==224?15:7;let m,y=0;for(;(m=63&this.interim[++y])&&y<4;)S<<=6,S|=m;const p=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,k=p-y;for(;n<k;){if(n>=g)return 0;if(m=c[n++],(192&m)!=128){n--,u=!0;break}this.interim[y++]=m,S<<=6,S|=63&m}u||(p===2?S<128?n--:d[f++]=S:p===3?S<2048||S>=55296&&S<=57343||S===65279||(d[f++]=S):S<65536||S>1114111||(d[f++]=S)),this.interim.fill(0)}const o=g-4;let a=n;for(;a<g;){for(;!(!(a<o)||128&(l=c[a])||128&(_=c[a+1])||128&(b=c[a+2])||128&(w=c[a+3]));)d[f++]=l,d[f++]=_,d[f++]=b,d[f++]=w,a+=4;if(l=c[a++],l<128)d[f++]=l;else if((224&l)==192){if(a>=g)return this.interim[0]=l,f;if(_=c[a++],(192&_)!=128){a--;continue}if(s=(31&l)<<6|63&_,s<128){a--;continue}d[f++]=s}else if((240&l)==224){if(a>=g)return this.interim[0]=l,f;if(_=c[a++],(192&_)!=128){a--;continue}if(a>=g)return this.interim[0]=l,this.interim[1]=_,f;if(b=c[a++],(192&b)!=128){a--;continue}if(s=(15&l)<<12|(63&_)<<6|63&b,s<2048||s>=55296&&s<=57343||s===65279)continue;d[f++]=s}else if((248&l)==240){if(a>=g)return this.interim[0]=l,f;if(_=c[a++],(192&_)!=128){a--;continue}if(a>=g)return this.interim[0]=l,this.interim[1]=_,f;if(b=c[a++],(192&b)!=128){a--;continue}if(a>=g)return this.interim[0]=l,this.interim[1]=_,this.interim[2]=b,f;if(w=c[a++],(192&w)!=128){a--;continue}if(s=(7&l)<<18|(63&_)<<12|(63&b)<<6|63&w,s<65536||s>1114111)continue;d[f++]=s}}return f}}},225:(C,i,c)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.UnicodeV6=void 0;const d=c(1480),g=[[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]],l=[[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 _;i.UnicodeV6=class{constructor(){if(this.version="6",!_){_=new Uint8Array(65536),_.fill(1),_[0]=0,_.fill(0,1,32),_.fill(0,127,160),_.fill(2,4352,4448),_[9001]=2,_[9002]=2,_.fill(2,11904,42192),_[12351]=1,_.fill(2,44032,55204),_.fill(2,63744,64256),_.fill(2,65040,65050),_.fill(2,65072,65136),_.fill(2,65280,65377),_.fill(2,65504,65511);for(let b=0;b<g.length;++b)_.fill(0,g[b][0],g[b][1]+1)}}wcwidth(b){return b<32?0:b<127?1:b<65536?_[b]:(function(w,f){let s,n=0,o=f.length-1;if(w<f[0][0]||w>f[o][1])return!1;for(;o>=n;)if(s=n+o>>1,w>f[s][1])n=s+1;else{if(!(w<f[s][0]))return!0;o=s-1}return!1})(b,l)?0:b>=131072&&b<=196605||b>=196608&&b<=262141?2:1}charProperties(b,w){let f=this.wcwidth(b),s=f===0&&w!==0;if(s){const n=d.UnicodeService.extractWidth(w);n===0?s=!1:n>f&&(f=n)}return d.UnicodeService.createPropertyValue(0,f,s)}}},5981:(C,i,c)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.WriteBuffer=void 0;const d=c(8460),g=c(844);class l extends g.Disposable{constructor(b){super(),this._action=b,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this.register(new d.EventEmitter),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(b,w){if(w!==void 0&&this._syncCalls>w)return void(this._syncCalls=0);if(this._pendingData+=b.length,this._writeBuffer.push(b),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;let f;for(this._isSyncWriting=!0;f=this._writeBuffer.shift();){this._action(f);const s=this._callbacks.shift();s&&s()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(b,w){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+=b.length,this._writeBuffer.push(b),this._callbacks.push(w),void this._innerWrite();setTimeout((()=>this._innerWrite()))}this._pendingData+=b.length,this._writeBuffer.push(b),this._callbacks.push(w)}_innerWrite(b=0,w=!0){const f=b||Date.now();for(;this._writeBuffer.length>this._bufferOffset;){const s=this._writeBuffer[this._bufferOffset],n=this._action(s,w);if(n){const a=u=>Date.now()-f>=12?setTimeout((()=>this._innerWrite(0,u))):this._innerWrite(f,u);return void n.catch((u=>(queueMicrotask((()=>{throw u})),Promise.resolve(!1)))).then(a)}const o=this._callbacks[this._bufferOffset];if(o&&o(),this._bufferOffset++,this._pendingData-=s.length,Date.now()-f>=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=l},5941:(C,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.toRgbString=i.parseColor=void 0;const c=/^([\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})$/,d=/^[\da-f]+$/;function g(l,_){const b=l.toString(16),w=b.length<2?"0"+b:b;switch(_){case 4:return b[0];case 8:return w;case 12:return(w+w).slice(0,3);default:return w+w}}i.parseColor=function(l){if(!l)return;let _=l.toLowerCase();if(_.indexOf("rgb:")===0){_=_.slice(4);const b=c.exec(_);if(b){const w=b[1]?15:b[4]?255:b[7]?4095:65535;return[Math.round(parseInt(b[1]||b[4]||b[7]||b[10],16)/w*255),Math.round(parseInt(b[2]||b[5]||b[8]||b[11],16)/w*255),Math.round(parseInt(b[3]||b[6]||b[9]||b[12],16)/w*255)]}}else if(_.indexOf("#")===0&&(_=_.slice(1),d.exec(_)&&[3,6,9,12].includes(_.length))){const b=_.length/3,w=[0,0,0];for(let f=0;f<3;++f){const s=parseInt(_.slice(b*f,b*f+b),16);w[f]=b===1?s<<4:b===2?s:b===3?s>>4:s>>8}return w}},i.toRgbString=function(l,_=16){const[b,w,f]=l;return`rgb:${g(b,_)}/${g(w,_)}/${g(f,_)}`}},5770:(C,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.PAYLOAD_LIMIT=void 0,i.PAYLOAD_LIMIT=1e7},6351:(C,i,c)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.DcsHandler=i.DcsParser=void 0;const d=c(482),g=c(8742),l=c(5770),_=[];i.DcsParser=class{constructor(){this._handlers=Object.create(null),this._active=_,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=_}registerHandler(w,f){this._handlers[w]===void 0&&(this._handlers[w]=[]);const s=this._handlers[w];return s.push(f),{dispose:()=>{const n=s.indexOf(f);n!==-1&&s.splice(n,1)}}}clearHandler(w){this._handlers[w]&&delete this._handlers[w]}setHandlerFallback(w){this._handlerFb=w}reset(){if(this._active.length)for(let w=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;w>=0;--w)this._active[w].unhook(!1);this._stack.paused=!1,this._active=_,this._ident=0}hook(w,f){if(this.reset(),this._ident=w,this._active=this._handlers[w]||_,this._active.length)for(let s=this._active.length-1;s>=0;s--)this._active[s].hook(f);else this._handlerFb(this._ident,"HOOK",f)}put(w,f,s){if(this._active.length)for(let n=this._active.length-1;n>=0;n--)this._active[n].put(w,f,s);else this._handlerFb(this._ident,"PUT",(0,d.utf32ToString)(w,f,s))}unhook(w,f=!0){if(this._active.length){let s=!1,n=this._active.length-1,o=!1;if(this._stack.paused&&(n=this._stack.loopPosition-1,s=f,o=this._stack.fallThrough,this._stack.paused=!1),!o&&s===!1){for(;n>=0&&(s=this._active[n].unhook(w),s!==!0);n--)if(s instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!1,s;n--}for(;n>=0;n--)if(s=this._active[n].unhook(!1),s instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=n,this._stack.fallThrough=!0,s}else this._handlerFb(this._ident,"UNHOOK",w);this._active=_,this._ident=0}};const b=new g.Params;b.addParam(0),i.DcsHandler=class{constructor(w){this._handler=w,this._data="",this._params=b,this._hitLimit=!1}hook(w){this._params=w.length>1||w.params[0]?w.clone():b,this._data="",this._hitLimit=!1}put(w,f,s){this._hitLimit||(this._data+=(0,d.utf32ToString)(w,f,s),this._data.length>l.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}unhook(w){let f=!1;if(this._hitLimit)f=!1;else if(w&&(f=this._handler(this._data,this._params),f instanceof Promise))return f.then((s=>(this._params=b,this._data="",this._hitLimit=!1,s)));return this._params=b,this._data="",this._hitLimit=!1,f}}},2015:(C,i,c)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.EscapeSequenceParser=i.VT500_TRANSITION_TABLE=i.TransitionTable=void 0;const d=c(844),g=c(8742),l=c(6242),_=c(6351);class b{constructor(n){this.table=new Uint8Array(n)}setDefault(n,o){this.table.fill(n<<4|o)}add(n,o,a,u){this.table[o<<8|n]=a<<4|u}addMany(n,o,a,u){for(let S=0;S<n.length;S++)this.table[o<<8|n[S]]=a<<4|u}}i.TransitionTable=b;const w=160;i.VT500_TRANSITION_TABLE=(function(){const s=new b(4095),n=Array.apply(null,Array(256)).map(((y,p)=>p)),o=(y,p)=>n.slice(y,p),a=o(32,127),u=o(0,24);u.push(25),u.push.apply(u,o(28,32));const S=o(0,14);let m;for(m in s.setDefault(1,0),s.addMany(a,0,2,0),S)s.addMany([24,26,153,154],m,3,0),s.addMany(o(128,144),m,3,0),s.addMany(o(144,152),m,3,0),s.add(156,m,0,0),s.add(27,m,11,1),s.add(157,m,4,8),s.addMany([152,158,159],m,0,7),s.add(155,m,11,3),s.add(144,m,11,9);return s.addMany(u,0,3,0),s.addMany(u,1,3,1),s.add(127,1,0,1),s.addMany(u,8,0,8),s.addMany(u,3,3,3),s.add(127,3,0,3),s.addMany(u,4,3,4),s.add(127,4,0,4),s.addMany(u,6,3,6),s.addMany(u,5,3,5),s.add(127,5,0,5),s.addMany(u,2,3,2),s.add(127,2,0,2),s.add(93,1,4,8),s.addMany(a,8,5,8),s.add(127,8,5,8),s.addMany([156,27,24,26,7],8,6,0),s.addMany(o(28,32),8,0,8),s.addMany([88,94,95],1,0,7),s.addMany(a,7,0,7),s.addMany(u,7,0,7),s.add(156,7,0,0),s.add(127,7,0,7),s.add(91,1,11,3),s.addMany(o(64,127),3,7,0),s.addMany(o(48,60),3,8,4),s.addMany([60,61,62,63],3,9,4),s.addMany(o(48,60),4,8,4),s.addMany(o(64,127),4,7,0),s.addMany([60,61,62,63],4,0,6),s.addMany(o(32,64),6,0,6),s.add(127,6,0,6),s.addMany(o(64,127),6,0,0),s.addMany(o(32,48),3,9,5),s.addMany(o(32,48),5,9,5),s.addMany(o(48,64),5,0,6),s.addMany(o(64,127),5,7,0),s.addMany(o(32,48),4,9,5),s.addMany(o(32,48),1,9,2),s.addMany(o(32,48),2,9,2),s.addMany(o(48,127),2,10,0),s.addMany(o(48,80),1,10,0),s.addMany(o(81,88),1,10,0),s.addMany([89,90,92],1,10,0),s.addMany(o(96,127),1,10,0),s.add(80,1,11,9),s.addMany(u,9,0,9),s.add(127,9,0,9),s.addMany(o(28,32),9,0,9),s.addMany(o(32,48),9,9,12),s.addMany(o(48,60),9,8,10),s.addMany([60,61,62,63],9,9,10),s.addMany(u,11,0,11),s.addMany(o(32,128),11,0,11),s.addMany(o(28,32),11,0,11),s.addMany(u,10,0,10),s.add(127,10,0,10),s.addMany(o(28,32),10,0,10),s.addMany(o(48,60),10,8,10),s.addMany([60,61,62,63],10,0,11),s.addMany(o(32,48),10,9,12),s.addMany(u,12,0,12),s.add(127,12,0,12),s.addMany(o(28,32),12,0,12),s.addMany(o(32,48),12,9,12),s.addMany(o(48,64),12,0,11),s.addMany(o(64,127),12,12,13),s.addMany(o(64,127),10,12,13),s.addMany(o(64,127),9,12,13),s.addMany(u,13,13,13),s.addMany(a,13,13,13),s.add(127,13,0,13),s.addMany([27,156,24,26],13,14,0),s.add(w,0,2,0),s.add(w,8,5,8),s.add(w,6,0,6),s.add(w,11,0,11),s.add(w,13,13,13),s})();class f extends d.Disposable{constructor(n=i.VT500_TRANSITION_TABLE){super(),this._transitions=n,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new g.Params,this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._printHandlerFb=(o,a,u)=>{},this._executeHandlerFb=o=>{},this._csiHandlerFb=(o,a)=>{},this._escHandlerFb=o=>{},this._errorHandlerFb=o=>o,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this.register((0,d.toDisposable)((()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)}))),this._oscParser=this.register(new l.OscParser),this._dcsParser=this.register(new _.DcsParser),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},(()=>!0))}_identifier(n,o=[64,126]){let a=0;if(n.prefix){if(n.prefix.length>1)throw new Error("only one byte as prefix supported");if(a=n.prefix.charCodeAt(0),a&&60>a||a>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(n.intermediates){if(n.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(let S=0;S<n.intermediates.length;++S){const m=n.intermediates.charCodeAt(S);if(32>m||m>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");a<<=8,a|=m}}if(n.final.length!==1)throw new Error("final must be a single byte");const u=n.final.charCodeAt(0);if(o[0]>u||u>o[1])throw new Error(`final must be in range ${o[0]} .. ${o[1]}`);return a<<=8,a|=u,a}identToString(n){const o=[];for(;n;)o.push(String.fromCharCode(255&n)),n>>=8;return o.reverse().join("")}setPrintHandler(n){this._printHandler=n}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(n,o){const a=this._identifier(n,[48,126]);this._escHandlers[a]===void 0&&(this._escHandlers[a]=[]);const u=this._escHandlers[a];return u.push(o),{dispose:()=>{const S=u.indexOf(o);S!==-1&&u.splice(S,1)}}}clearEscHandler(n){this._escHandlers[this._identifier(n,[48,126])]&&delete this._escHandlers[this._identifier(n,[48,126])]}setEscHandlerFallback(n){this._escHandlerFb=n}setExecuteHandler(n,o){this._executeHandlers[n.charCodeAt(0)]=o}clearExecuteHandler(n){this._executeHandlers[n.charCodeAt(0)]&&delete this._executeHandlers[n.charCodeAt(0)]}setExecuteHandlerFallback(n){this._executeHandlerFb=n}registerCsiHandler(n,o){const a=this._identifier(n);this._csiHandlers[a]===void 0&&(this._csiHandlers[a]=[]);const u=this._csiHandlers[a];return u.push(o),{dispose:()=>{const S=u.indexOf(o);S!==-1&&u.splice(S,1)}}}clearCsiHandler(n){this._csiHandlers[this._identifier(n)]&&delete this._csiHandlers[this._identifier(n)]}setCsiHandlerFallback(n){this._csiHandlerFb=n}registerDcsHandler(n,o){return this._dcsParser.registerHandler(this._identifier(n),o)}clearDcsHandler(n){this._dcsParser.clearHandler(this._identifier(n))}setDcsHandlerFallback(n){this._dcsParser.setHandlerFallback(n)}registerOscHandler(n,o){return this._oscParser.registerHandler(n,o)}clearOscHandler(n){this._oscParser.clearHandler(n)}setOscHandlerFallback(n){this._oscParser.setHandlerFallback(n)}setErrorHandler(n){this._errorHandler=n}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(n,o,a,u,S){this._parseStack.state=n,this._parseStack.handlers=o,this._parseStack.handlerPos=a,this._parseStack.transition=u,this._parseStack.chunkPos=S}parse(n,o,a){let u,S=0,m=0,y=0;if(this._parseStack.state)if(this._parseStack.state===2)this._parseStack.state=0,y=this._parseStack.chunkPos+1;else{if(a===void 0||this._parseStack.state===1)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");const p=this._parseStack.handlers;let k=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(a===!1&&k>-1){for(;k>=0&&(u=p[k](this._params),u!==!0);k--)if(u instanceof Promise)return this._parseStack.handlerPos=k,u}this._parseStack.handlers=[];break;case 4:if(a===!1&&k>-1){for(;k>=0&&(u=p[k](),u!==!0);k--)if(u instanceof Promise)return this._parseStack.handlerPos=k,u}this._parseStack.handlers=[];break;case 6:if(S=n[this._parseStack.chunkPos],u=this._dcsParser.unhook(S!==24&&S!==26,a),u)return u;S===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(S=n[this._parseStack.chunkPos],u=this._oscParser.end(S!==24&&S!==26,a),u)return u;S===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,y=this._parseStack.chunkPos+1,this.precedingJoinState=0,this.currentState=15&this._parseStack.transition}for(let p=y;p<o;++p){switch(S=n[p],m=this._transitions.table[this.currentState<<8|(S<160?S:w)],m>>4){case 2:for(let R=p+1;;++R){if(R>=o||(S=n[R])<32||S>126&&S<w){this._printHandler(n,p,R),p=R-1;break}if(++R>=o||(S=n[R])<32||S>126&&S<w){this._printHandler(n,p,R),p=R-1;break}if(++R>=o||(S=n[R])<32||S>126&&S<w){this._printHandler(n,p,R),p=R-1;break}if(++R>=o||(S=n[R])<32||S>126&&S<w){this._printHandler(n,p,R),p=R-1;break}}break;case 3:this._executeHandlers[S]?this._executeHandlers[S]():this._executeHandlerFb(S),this.precedingJoinState=0;break;case 0:break;case 1:if(this._errorHandler({position:p,code:S,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:const k=this._csiHandlers[this._collect<<8|S];let x=k?k.length-1:-1;for(;x>=0&&(u=k[x](this._params),u!==!0);x--)if(u instanceof Promise)return this._preserveStack(3,k,x,m,p),u;x<0&&this._csiHandlerFb(this._collect<<8|S,this._params),this.precedingJoinState=0;break;case 8:do switch(S){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(S-48)}while(++p<o&&(S=n[p])>47&&S<60);p--;break;case 9:this._collect<<=8,this._collect|=S;break;case 10:const L=this._escHandlers[this._collect<<8|S];let T=L?L.length-1:-1;for(;T>=0&&(u=L[T](),u!==!0);T--)if(u instanceof Promise)return this._preserveStack(4,L,T,m,p),u;T<0&&this._escHandlerFb(this._collect<<8|S),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|S,this._params);break;case 13:for(let R=p+1;;++R)if(R>=o||(S=n[R])===24||S===26||S===27||S>127&&S<w){this._dcsParser.put(n,p,R),p=R-1;break}break;case 14:if(u=this._dcsParser.unhook(S!==24&&S!==26),u)return this._preserveStack(6,[],0,m,p),u;S===27&&(m|=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=p+1;;R++)if(R>=o||(S=n[R])<32||S>127&&S<w){this._oscParser.put(n,p,R),p=R-1;break}break;case 6:if(u=this._oscParser.end(S!==24&&S!==26),u)return this._preserveStack(5,[],0,m,p),u;S===27&&(m|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0}this.currentState=15&m}}}i.EscapeSequenceParser=f},6242:(C,i,c)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.OscHandler=i.OscParser=void 0;const d=c(5770),g=c(482),l=[];i.OscParser=class{constructor(){this._state=0,this._active=l,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(_,b){this._handlers[_]===void 0&&(this._handlers[_]=[]);const w=this._handlers[_];return w.push(b),{dispose:()=>{const f=w.indexOf(b);f!==-1&&w.splice(f,1)}}}clearHandler(_){this._handlers[_]&&delete this._handlers[_]}setHandlerFallback(_){this._handlerFb=_}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=l}reset(){if(this._state===2)for(let _=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;_>=0;--_)this._active[_].end(!1);this._stack.paused=!1,this._active=l,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||l,this._active.length)for(let _=this._active.length-1;_>=0;_--)this._active[_].start();else this._handlerFb(this._id,"START")}_put(_,b,w){if(this._active.length)for(let f=this._active.length-1;f>=0;f--)this._active[f].put(_,b,w);else this._handlerFb(this._id,"PUT",(0,g.utf32ToString)(_,b,w))}start(){this.reset(),this._state=1}put(_,b,w){if(this._state!==3){if(this._state===1)for(;b<w;){const f=_[b++];if(f===59){this._state=2,this._start();break}if(f<48||57<f)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+f-48}this._state===2&&w-b>0&&this._put(_,b,w)}}end(_,b=!0){if(this._state!==0){if(this._state!==3)if(this._state===1&&this._start(),this._active.length){let w=!1,f=this._active.length-1,s=!1;if(this._stack.paused&&(f=this._stack.loopPosition-1,w=b,s=this._stack.fallThrough,this._stack.paused=!1),!s&&w===!1){for(;f>=0&&(w=this._active[f].end(_),w!==!0);f--)if(w instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=f,this._stack.fallThrough=!1,w;f--}for(;f>=0;f--)if(w=this._active[f].end(!1),w instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=f,this._stack.fallThrough=!0,w}else this._handlerFb(this._id,"END",_);this._active=l,this._id=-1,this._state=0}}},i.OscHandler=class{constructor(_){this._handler=_,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(_,b,w){this._hitLimit||(this._data+=(0,g.utf32ToString)(_,b,w),this._data.length>d.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}end(_){let b=!1;if(this._hitLimit)b=!1;else if(_&&(b=this._handler(this._data),b instanceof Promise))return b.then((w=>(this._data="",this._hitLimit=!1,w)));return this._data="",this._hitLimit=!1,b}}},8742:(C,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.Params=void 0;const c=2147483647;class d{static fromArray(l){const _=new d;if(!l.length)return _;for(let b=Array.isArray(l[0])?1:0;b<l.length;++b){const w=l[b];if(Array.isArray(w))for(let f=0;f<w.length;++f)_.addSubParam(w[f]);else _.addParam(w)}return _}constructor(l=32,_=32){if(this.maxLength=l,this.maxSubParamsLength=_,_>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(l),this.length=0,this._subParams=new Int32Array(_),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(l),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}clone(){const l=new d(this.maxLength,this.maxSubParamsLength);return l.params.set(this.params),l.length=this.length,l._subParams.set(this._subParams),l._subParamsLength=this._subParamsLength,l._subParamsIdx.set(this._subParamsIdx),l._rejectDigits=this._rejectDigits,l._rejectSubDigits=this._rejectSubDigits,l._digitIsSub=this._digitIsSub,l}toArray(){const l=[];for(let _=0;_<this.length;++_){l.push(this.params[_]);const b=this._subParamsIdx[_]>>8,w=255&this._subParamsIdx[_];w-b>0&&l.push(Array.prototype.slice.call(this._subParams,b,w))}return l}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(l){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(l<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=l>c?c:l}}addSubParam(l){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(l<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=l>c?c:l,this._subParamsIdx[this.length-1]++}}hasSubParams(l){return(255&this._subParamsIdx[l])-(this._subParamsIdx[l]>>8)>0}getSubParams(l){const _=this._subParamsIdx[l]>>8,b=255&this._subParamsIdx[l];return b-_>0?this._subParams.subarray(_,b):null}getSubParamsAll(){const l={};for(let _=0;_<this.length;++_){const b=this._subParamsIdx[_]>>8,w=255&this._subParamsIdx[_];w-b>0&&(l[_]=this._subParams.slice(b,w))}return l}addDigit(l){let _;if(this._rejectDigits||!(_=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;const b=this._digitIsSub?this._subParams:this.params,w=b[_-1];b[_-1]=~w?Math.min(10*w+l,c):l}}i.Params=d},5741:(C,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.AddonManager=void 0,i.AddonManager=class{constructor(){this._addons=[]}dispose(){for(let c=this._addons.length-1;c>=0;c--)this._addons[c].instance.dispose()}loadAddon(c,d){const g={instance:d,dispose:d.dispose,isDisposed:!1};this._addons.push(g),d.dispose=()=>this._wrappedAddonDispose(g),d.activate(c)}_wrappedAddonDispose(c){if(c.isDisposed)return;let d=-1;for(let g=0;g<this._addons.length;g++)if(this._addons[g]===c){d=g;break}if(d===-1)throw new Error("Could not dispose an addon that has not been loaded");c.isDisposed=!0,c.dispose.apply(c.instance),this._addons.splice(d,1)}}},8771:(C,i,c)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.BufferApiView=void 0;const d=c(3785),g=c(511);i.BufferApiView=class{constructor(l,_){this._buffer=l,this.type=_}init(l){return this._buffer=l,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(l){const _=this._buffer.lines.get(l);if(_)return new d.BufferLineApiView(_)}getNullCell(){return new g.CellData}}},3785:(C,i,c)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.BufferLineApiView=void 0;const d=c(511);i.BufferLineApiView=class{constructor(g){this._line=g}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(g,l){if(!(g<0||g>=this._line.length))return l?(this._line.loadCell(g,l),l):this._line.loadCell(g,new d.CellData)}translateToString(g,l,_){return this._line.translateToString(g,l,_)}}},8285:(C,i,c)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.BufferNamespaceApi=void 0;const d=c(8771),g=c(8460),l=c(844);class _ extends l.Disposable{constructor(w){super(),this._core=w,this._onBufferChange=this.register(new g.EventEmitter),this.onBufferChange=this._onBufferChange.event,this._normal=new d.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new d.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=_},7975:(C,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.ParserApi=void 0,i.ParserApi=class{constructor(c){this._core=c}registerCsiHandler(c,d){return this._core.registerCsiHandler(c,(g=>d(g.toArray())))}addCsiHandler(c,d){return this.registerCsiHandler(c,d)}registerDcsHandler(c,d){return this._core.registerDcsHandler(c,((g,l)=>d(g,l.toArray())))}addDcsHandler(c,d){return this.registerDcsHandler(c,d)}registerEscHandler(c,d){return this._core.registerEscHandler(c,d)}addEscHandler(c,d){return this.registerEscHandler(c,d)}registerOscHandler(c,d){return this._core.registerOscHandler(c,d)}addOscHandler(c,d){return this.registerOscHandler(c,d)}}},7090:(C,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.UnicodeApi=void 0,i.UnicodeApi=class{constructor(c){this._core=c}register(c){this._core.unicodeService.register(c)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(c){this._core.unicodeService.activeVersion=c}}},744:function(C,i,c){var d=this&&this.__decorate||function(s,n,o,a){var u,S=arguments.length,m=S<3?n:a===null?a=Object.getOwnPropertyDescriptor(n,o):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(s,n,o,a);else for(var y=s.length-1;y>=0;y--)(u=s[y])&&(m=(S<3?u(m):S>3?u(n,o,m):u(n,o))||m);return S>3&&m&&Object.defineProperty(n,o,m),m},g=this&&this.__param||function(s,n){return function(o,a){n(o,a,s)}};Object.defineProperty(i,"__esModule",{value:!0}),i.BufferService=i.MINIMUM_ROWS=i.MINIMUM_COLS=void 0;const l=c(8460),_=c(844),b=c(5295),w=c(2585);i.MINIMUM_COLS=2,i.MINIMUM_ROWS=1;let f=i.BufferService=class extends _.Disposable{get buffer(){return this.buffers.active}constructor(s){super(),this.isUserScrolling=!1,this._onResize=this.register(new l.EventEmitter),this.onResize=this._onResize.event,this._onScroll=this.register(new l.EventEmitter),this.onScroll=this._onScroll.event,this.cols=Math.max(s.rawOptions.cols||0,i.MINIMUM_COLS),this.rows=Math.max(s.rawOptions.rows||0,i.MINIMUM_ROWS),this.buffers=this.register(new b.BufferSet(s,this))}resize(s,n){this.cols=s,this.rows=n,this.buffers.resize(s,n),this._onResize.fire({cols:s,rows:n})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(s,n=!1){const o=this.buffer;let a;a=this._cachedBlankLine,a&&a.length===this.cols&&a.getFg(0)===s.fg&&a.getBg(0)===s.bg||(a=o.getBlankLine(s,n),this._cachedBlankLine=a),a.isWrapped=n;const u=o.ybase+o.scrollTop,S=o.ybase+o.scrollBottom;if(o.scrollTop===0){const m=o.lines.isFull;S===o.lines.length-1?m?o.lines.recycle().copyFrom(a):o.lines.push(a.clone()):o.lines.splice(S+1,0,a.clone()),m?this.isUserScrolling&&(o.ydisp=Math.max(o.ydisp-1,0)):(o.ybase++,this.isUserScrolling||o.ydisp++)}else{const m=S-u+1;o.lines.shiftElements(u+1,m-1,-1),o.lines.set(S,a.clone())}this.isUserScrolling||(o.ydisp=o.ybase),this._onScroll.fire(o.ydisp)}scrollLines(s,n,o){const a=this.buffer;if(s<0){if(a.ydisp===0)return;this.isUserScrolling=!0}else s+a.ydisp>=a.ybase&&(this.isUserScrolling=!1);const u=a.ydisp;a.ydisp=Math.max(Math.min(a.ydisp+s,a.ybase),0),u!==a.ydisp&&(n||this._onScroll.fire(a.ydisp))}};i.BufferService=f=d([g(0,w.IOptionsService)],f)},7994:(C,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(c){this.glevel=c,this.charset=this._charsets[c]}setgCharset(c,d){this._charsets[c]=d,this.glevel===c&&(this.charset=d)}}},1753:function(C,i,c){var d=this&&this.__decorate||function(a,u,S,m){var y,p=arguments.length,k=p<3?u:m===null?m=Object.getOwnPropertyDescriptor(u,S):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(a,u,S,m);else for(var x=a.length-1;x>=0;x--)(y=a[x])&&(k=(p<3?y(k):p>3?y(u,S,k):y(u,S))||k);return p>3&&k&&Object.defineProperty(u,S,k),k},g=this&&this.__param||function(a,u){return function(S,m){u(S,m,a)}};Object.defineProperty(i,"__esModule",{value:!0}),i.CoreMouseService=void 0;const l=c(2585),_=c(8460),b=c(844),w={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:a=>a.button!==4&&a.action===1&&(a.ctrl=!1,a.alt=!1,a.shift=!1,!0)},VT200:{events:19,restrict:a=>a.action!==32},DRAG:{events:23,restrict:a=>a.action!==32||a.button!==3},ANY:{events:31,restrict:a=>!0}};function f(a,u){let S=(a.ctrl?16:0)|(a.shift?4:0)|(a.alt?8:0);return a.button===4?(S|=64,S|=a.action):(S|=3&a.button,4&a.button&&(S|=64),8&a.button&&(S|=128),a.action===32?S|=32:a.action!==0||u||(S|=3)),S}const s=String.fromCharCode,n={DEFAULT:a=>{const u=[f(a,!1)+32,a.col+32,a.row+32];return u[0]>255||u[1]>255||u[2]>255?"":`\x1B[M${s(u[0])}${s(u[1])}${s(u[2])}`},SGR:a=>{const u=a.action===0&&a.button!==4?"m":"M";return`\x1B[<${f(a,!0)};${a.col};${a.row}${u}`},SGR_PIXELS:a=>{const u=a.action===0&&a.button!==4?"m":"M";return`\x1B[<${f(a,!0)};${a.x};${a.y}${u}`}};let o=i.CoreMouseService=class extends b.Disposable{constructor(a,u){super(),this._bufferService=a,this._coreService=u,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._lastEvent=null,this._onProtocolChange=this.register(new _.EventEmitter),this.onProtocolChange=this._onProtocolChange.event;for(const S of Object.keys(w))this.addProtocol(S,w[S]);for(const S of Object.keys(n))this.addEncoding(S,n[S]);this.reset()}addProtocol(a,u){this._protocols[a]=u}addEncoding(a,u){this._encodings[a]=u}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return this._protocols[this._activeProtocol].events!==0}set activeProtocol(a){if(!this._protocols[a])throw new Error(`unknown protocol "${a}"`);this._activeProtocol=a,this._onProtocolChange.fire(this._protocols[a].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(a){if(!this._encodings[a])throw new Error(`unknown encoding "${a}"`);this._activeEncoding=a}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null}triggerMouseEvent(a){if(a.col<0||a.col>=this._bufferService.cols||a.row<0||a.row>=this._bufferService.rows||a.button===4&&a.action===32||a.button===3&&a.action!==32||a.button!==4&&(a.action===2||a.action===3)||(a.col++,a.row++,a.action===32&&this._lastEvent&&this._equalEvents(this._lastEvent,a,this._activeEncoding==="SGR_PIXELS"))||!this._protocols[this._activeProtocol].restrict(a))return!1;const u=this._encodings[this._activeEncoding](a);return u&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(u):this._coreService.triggerDataEvent(u,!0)),this._lastEvent=a,!0}explainEvents(a){return{down:!!(1&a),up:!!(2&a),drag:!!(4&a),move:!!(8&a),wheel:!!(16&a)}}_equalEvents(a,u,S){if(S){if(a.x!==u.x||a.y!==u.y)return!1}else if(a.col!==u.col||a.row!==u.row)return!1;return a.button===u.button&&a.action===u.action&&a.ctrl===u.ctrl&&a.alt===u.alt&&a.shift===u.shift}};i.CoreMouseService=o=d([g(0,l.IBufferService),g(1,l.ICoreService)],o)},6975:function(C,i,c){var d=this&&this.__decorate||function(o,a,u,S){var m,y=arguments.length,p=y<3?a:S===null?S=Object.getOwnPropertyDescriptor(a,u):S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(o,a,u,S);else for(var k=o.length-1;k>=0;k--)(m=o[k])&&(p=(y<3?m(p):y>3?m(a,u,p):m(a,u))||p);return y>3&&p&&Object.defineProperty(a,u,p),p},g=this&&this.__param||function(o,a){return function(u,S){a(u,S,o)}};Object.defineProperty(i,"__esModule",{value:!0}),i.CoreService=void 0;const l=c(1439),_=c(8460),b=c(844),w=c(2585),f=Object.freeze({insertMode:!1}),s=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0});let n=i.CoreService=class extends b.Disposable{constructor(o,a,u){super(),this._bufferService=o,this._logService=a,this._optionsService=u,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this.register(new _.EventEmitter),this.onData=this._onData.event,this._onUserInput=this.register(new _.EventEmitter),this.onUserInput=this._onUserInput.event,this._onBinary=this.register(new _.EventEmitter),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this.register(new _.EventEmitter),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=(0,l.clone)(f),this.decPrivateModes=(0,l.clone)(s)}reset(){this.modes=(0,l.clone)(f),this.decPrivateModes=(0,l.clone)(s)}triggerDataEvent(o,a=!1){if(this._optionsService.rawOptions.disableStdin)return;const u=this._bufferService.buffer;a&&this._optionsService.rawOptions.scrollOnUserInput&&u.ybase!==u.ydisp&&this._onRequestScrollToBottom.fire(),a&&this._onUserInput.fire(),this._logService.debug(`sending data "${o}"`,(()=>o.split("").map((S=>S.charCodeAt(0))))),this._onData.fire(o)}triggerBinaryEvent(o){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${o}"`,(()=>o.split("").map((a=>a.charCodeAt(0))))),this._onBinary.fire(o))}};i.CoreService=n=d([g(0,w.IBufferService),g(1,w.ILogService),g(2,w.IOptionsService)],n)},9074:(C,i,c)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.DecorationService=void 0;const d=c(8055),g=c(8460),l=c(844),_=c(6106);let b=0,w=0;class f extends l.Disposable{get decorations(){return this._decorations.values()}constructor(){super(),this._decorations=new _.SortedList((o=>o==null?void 0:o.marker.line)),this._onDecorationRegistered=this.register(new g.EventEmitter),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this.register(new g.EventEmitter),this.onDecorationRemoved=this._onDecorationRemoved.event,this.register((0,l.toDisposable)((()=>this.reset())))}registerDecoration(o){if(o.marker.isDisposed)return;const a=new s(o);if(a){const u=a.marker.onDispose((()=>a.dispose()));a.onDispose((()=>{a&&(this._decorations.delete(a)&&this._onDecorationRemoved.fire(a),u.dispose())})),this._decorations.insert(a),this._onDecorationRegistered.fire(a)}return a}reset(){for(const o of this._decorations.values())o.dispose();this._decorations.clear()}*getDecorationsAtCell(o,a,u){let S=0,m=0;for(const y of this._decorations.getKeyIterator(a))S=y.options.x??0,m=S+(y.options.width??1),o>=S&&o<m&&(!u||(y.options.layer??"bottom")===u)&&(yield y)}forEachDecorationAtCell(o,a,u,S){this._decorations.forEachByKey(a,(m=>{b=m.options.x??0,w=b+(m.options.width??1),o>=b&&o<w&&(!u||(m.options.layer??"bottom")===u)&&S(m)}))}}i.DecorationService=f;class s extends l.Disposable{get isDisposed(){return this._isDisposed}get backgroundColorRGB(){return this._cachedBg===null&&(this.options.backgroundColor?this._cachedBg=d.css.toColor(this.options.backgroundColor):this._cachedBg=void 0),this._cachedBg}get foregroundColorRGB(){return this._cachedFg===null&&(this.options.foregroundColor?this._cachedFg=d.css.toColor(this.options.foregroundColor):this._cachedFg=void 0),this._cachedFg}constructor(o){super(),this.options=o,this.onRenderEmitter=this.register(new g.EventEmitter),this.onRender=this.onRenderEmitter.event,this._onDispose=this.register(new g.EventEmitter),this.onDispose=this._onDispose.event,this._cachedBg=null,this._cachedFg=null,this.marker=o.marker,this.options.overviewRulerOptions&&!this.options.overviewRulerOptions.position&&(this.options.overviewRulerOptions.position="full")}dispose(){this._onDispose.fire(),super.dispose()}}},4348:(C,i,c)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.InstantiationService=i.ServiceCollection=void 0;const d=c(2585),g=c(8343);class l{constructor(...b){this._entries=new Map;for(const[w,f]of b)this.set(w,f)}set(b,w){const f=this._entries.get(b);return this._entries.set(b,w),f}forEach(b){for(const[w,f]of this._entries.entries())b(w,f)}has(b){return this._entries.has(b)}get(b){return this._entries.get(b)}}i.ServiceCollection=l,i.InstantiationService=class{constructor(){this._services=new l,this._services.set(d.IInstantiationService,this)}setService(_,b){this._services.set(_,b)}getService(_){return this._services.get(_)}createInstance(_,...b){const w=(0,g.getServiceDependencies)(_).sort(((n,o)=>n.index-o.index)),f=[];for(const n of w){const o=this._services.get(n.id);if(!o)throw new Error(`[createInstance] ${_.name} depends on UNKNOWN service ${n.id}.`);f.push(o)}const s=w.length>0?w[0].index:b.length;if(b.length!==s)throw new Error(`[createInstance] First service dependency of ${_.name} at position ${s+1} conflicts with ${b.length} static arguments`);return new _(...b,...f)}}},7866:function(C,i,c){var d=this&&this.__decorate||function(s,n,o,a){var u,S=arguments.length,m=S<3?n:a===null?a=Object.getOwnPropertyDescriptor(n,o):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(s,n,o,a);else for(var y=s.length-1;y>=0;y--)(u=s[y])&&(m=(S<3?u(m):S>3?u(n,o,m):u(n,o))||m);return S>3&&m&&Object.defineProperty(n,o,m),m},g=this&&this.__param||function(s,n){return function(o,a){n(o,a,s)}};Object.defineProperty(i,"__esModule",{value:!0}),i.traceCall=i.setTraceLogger=i.LogService=void 0;const l=c(844),_=c(2585),b={trace:_.LogLevelEnum.TRACE,debug:_.LogLevelEnum.DEBUG,info:_.LogLevelEnum.INFO,warn:_.LogLevelEnum.WARN,error:_.LogLevelEnum.ERROR,off:_.LogLevelEnum.OFF};let w,f=i.LogService=class extends l.Disposable{get logLevel(){return this._logLevel}constructor(s){super(),this._optionsService=s,this._logLevel=_.LogLevelEnum.OFF,this._updateLogLevel(),this.register(this._optionsService.onSpecificOptionChange("logLevel",(()=>this._updateLogLevel()))),w=this}_updateLogLevel(){this._logLevel=b[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(s){for(let n=0;n<s.length;n++)typeof s[n]=="function"&&(s[n]=s[n]())}_log(s,n,o){this._evalLazyOptionalParams(o),s.call(console,(this._optionsService.options.logger?"":"xterm.js: ")+n,...o)}trace(s,...n){var o;this._logLevel<=_.LogLevelEnum.TRACE&&this._log(((o=this._optionsService.options.logger)==null?void 0:o.trace.bind(this._optionsService.options.logger))??console.log,s,n)}debug(s,...n){var o;this._logLevel<=_.LogLevelEnum.DEBUG&&this._log(((o=this._optionsService.options.logger)==null?void 0:o.debug.bind(this._optionsService.options.logger))??console.log,s,n)}info(s,...n){var o;this._logLevel<=_.LogLevelEnum.INFO&&this._log(((o=this._optionsService.options.logger)==null?void 0:o.info.bind(this._optionsService.options.logger))??console.info,s,n)}warn(s,...n){var o;this._logLevel<=_.LogLevelEnum.WARN&&this._log(((o=this._optionsService.options.logger)==null?void 0:o.warn.bind(this._optionsService.options.logger))??console.warn,s,n)}error(s,...n){var o;this._logLevel<=_.LogLevelEnum.ERROR&&this._log(((o=this._optionsService.options.logger)==null?void 0:o.error.bind(this._optionsService.options.logger))??console.error,s,n)}};i.LogService=f=d([g(0,_.IOptionsService)],f),i.setTraceLogger=function(s){w=s},i.traceCall=function(s,n,o){if(typeof o.value!="function")throw new Error("not supported");const a=o.value;o.value=function(...u){if(w.logLevel!==_.LogLevelEnum.TRACE)return a.apply(this,u);w.trace(`GlyphRenderer#${a.name}(${u.map((m=>JSON.stringify(m))).join(", ")})`);const S=a.apply(this,u);return w.trace(`GlyphRenderer#${a.name} return`,S),S}}},7302:(C,i,c)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.OptionsService=i.DEFAULT_OPTIONS=void 0;const d=c(8460),g=c(844),l=c(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:l.isMac,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:0};const _=["normal","bold","100","200","300","400","500","600","700","800","900"];class b extends g.Disposable{constructor(f){super(),this._onOptionChange=this.register(new d.EventEmitter),this.onOptionChange=this._onOptionChange.event;const s={...i.DEFAULT_OPTIONS};for(const n in f)if(n in s)try{const o=f[n];s[n]=this._sanitizeAndValidateOption(n,o)}catch(o){console.error(o)}this.rawOptions=s,this.options={...s},this._setupOptions(),this.register((0,g.toDisposable)((()=>{this.rawOptions.linkHandler=null,this.rawOptions.documentOverride=null})))}onSpecificOptionChange(f,s){return this.onOptionChange((n=>{n===f&&s(this.rawOptions[f])}))}onMultipleOptionChange(f,s){return this.onOptionChange((n=>{f.indexOf(n)!==-1&&s()}))}_setupOptions(){const f=n=>{if(!(n in i.DEFAULT_OPTIONS))throw new Error(`No option with key "${n}"`);return this.rawOptions[n]},s=(n,o)=>{if(!(n in i.DEFAULT_OPTIONS))throw new Error(`No option with key "${n}"`);o=this._sanitizeAndValidateOption(n,o),this.rawOptions[n]!==o&&(this.rawOptions[n]=o,this._onOptionChange.fire(n))};for(const n in this.rawOptions){const o={get:f.bind(this,n),set:s.bind(this,n)};Object.defineProperty(this.options,n,o)}}_sanitizeAndValidateOption(f,s){switch(f){case"cursorStyle":if(s||(s=i.DEFAULT_OPTIONS[f]),!(function(n){return n==="block"||n==="underline"||n==="bar"})(s))throw new Error(`"${s}" is not a valid value for ${f}`);break;case"wordSeparator":s||(s=i.DEFAULT_OPTIONS[f]);break;case"fontWeight":case"fontWeightBold":if(typeof s=="number"&&1<=s&&s<=1e3)break;s=_.includes(s)?s:i.DEFAULT_OPTIONS[f];break;case"cursorWidth":s=Math.floor(s);case"lineHeight":case"tabStopWidth":if(s<1)throw new Error(`${f} cannot be less than 1, value: ${s}`);break;case"minimumContrastRatio":s=Math.max(1,Math.min(21,Math.round(10*s)/10));break;case"scrollback":if((s=Math.min(s,4294967295))<0)throw new Error(`${f} cannot be less than 0, value: ${s}`);break;case"fastScrollSensitivity":case"scrollSensitivity":if(s<=0)throw new Error(`${f} cannot be less than or equal to 0, value: ${s}`);break;case"rows":case"cols":if(!s&&s!==0)throw new Error(`${f} must be numeric, value: ${s}`);break;case"windowsPty":s=s??{}}return s}}i.OptionsService=b},2660:function(C,i,c){var d=this&&this.__decorate||function(b,w,f,s){var n,o=arguments.length,a=o<3?w:s===null?s=Object.getOwnPropertyDescriptor(w,f):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(b,w,f,s);else for(var u=b.length-1;u>=0;u--)(n=b[u])&&(a=(o<3?n(a):o>3?n(w,f,a):n(w,f))||a);return o>3&&a&&Object.defineProperty(w,f,a),a},g=this&&this.__param||function(b,w){return function(f,s){w(f,s,b)}};Object.defineProperty(i,"__esModule",{value:!0}),i.OscLinkService=void 0;const l=c(2585);let _=i.OscLinkService=class{constructor(b){this._bufferService=b,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(b){const w=this._bufferService.buffer;if(b.id===void 0){const u=w.addMarker(w.ybase+w.y),S={data:b,id:this._nextId++,lines:[u]};return u.onDispose((()=>this._removeMarkerFromLink(S,u))),this._dataByLinkId.set(S.id,S),S.id}const f=b,s=this._getEntryIdKey(f),n=this._entriesWithId.get(s);if(n)return this.addLineToLink(n.id,w.ybase+w.y),n.id;const o=w.addMarker(w.ybase+w.y),a={id:this._nextId++,key:this._getEntryIdKey(f),data:f,lines:[o]};return o.onDispose((()=>this._removeMarkerFromLink(a,o))),this._entriesWithId.set(a.key,a),this._dataByLinkId.set(a.id,a),a.id}addLineToLink(b,w){const f=this._dataByLinkId.get(b);if(f&&f.lines.every((s=>s.line!==w))){const s=this._bufferService.buffer.addMarker(w);f.lines.push(s),s.onDispose((()=>this._removeMarkerFromLink(f,s)))}}getLinkData(b){var w;return(w=this._dataByLinkId.get(b))==null?void 0:w.data}_getEntryIdKey(b){return`${b.id};;${b.uri}`}_removeMarkerFromLink(b,w){const f=b.lines.indexOf(w);f!==-1&&(b.lines.splice(f,1),b.lines.length===0&&(b.data.id!==void 0&&this._entriesWithId.delete(b.key),this._dataByLinkId.delete(b.id)))}};i.OscLinkService=_=d([g(0,l.IBufferService)],_)},8343:(C,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.createDecorator=i.getServiceDependencies=i.serviceRegistry=void 0;const c="di$target",d="di$dependencies";i.serviceRegistry=new Map,i.getServiceDependencies=function(g){return g[d]||[]},i.createDecorator=function(g){if(i.serviceRegistry.has(g))return i.serviceRegistry.get(g);const l=function(_,b,w){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");(function(f,s,n){s[c]===s?s[d].push({id:f,index:n}):(s[d]=[{id:f,index:n}],s[c]=s)})(l,_,w)};return l.toString=()=>g,i.serviceRegistry.set(g,l),l}},2585:(C,i,c)=>{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 d=c(8343);var g;i.IBufferService=(0,d.createDecorator)("BufferService"),i.ICoreMouseService=(0,d.createDecorator)("CoreMouseService"),i.ICoreService=(0,d.createDecorator)("CoreService"),i.ICharsetService=(0,d.createDecorator)("CharsetService"),i.IInstantiationService=(0,d.createDecorator)("InstantiationService"),(function(l){l[l.TRACE=0]="TRACE",l[l.DEBUG=1]="DEBUG",l[l.INFO=2]="INFO",l[l.WARN=3]="WARN",l[l.ERROR=4]="ERROR",l[l.OFF=5]="OFF"})(g||(i.LogLevelEnum=g={})),i.ILogService=(0,d.createDecorator)("LogService"),i.IOptionsService=(0,d.createDecorator)("OptionsService"),i.IOscLinkService=(0,d.createDecorator)("OscLinkService"),i.IUnicodeService=(0,d.createDecorator)("UnicodeService"),i.IDecorationService=(0,d.createDecorator)("DecorationService")},1480:(C,i,c)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.UnicodeService=void 0;const d=c(8460),g=c(225);class l{static extractShouldJoin(b){return(1&b)!=0}static extractWidth(b){return b>>1&3}static extractCharKind(b){return b>>3}static createPropertyValue(b,w,f=!1){return(16777215&b)<<3|(3&w)<<1|(f?1:0)}constructor(){this._providers=Object.create(null),this._active="",this._onChange=new d.EventEmitter,this.onChange=this._onChange.event;const b=new g.UnicodeV6;this.register(b),this._active=b.version,this._activeProvider=b}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(b){if(!this._providers[b])throw new Error(`unknown Unicode version "${b}"`);this._active=b,this._activeProvider=this._providers[b],this._onChange.fire(b)}register(b){this._providers[b.version]=b}wcwidth(b){return this._activeProvider.wcwidth(b)}getStringCellWidth(b){let w=0,f=0;const s=b.length;for(let n=0;n<s;++n){let o=b.charCodeAt(n);if(55296<=o&&o<=56319){if(++n>=s)return w+this.wcwidth(o);const S=b.charCodeAt(n);56320<=S&&S<=57343?o=1024*(o-55296)+S-56320+65536:w+=this.wcwidth(S)}const a=this.charProperties(o,f);let u=l.extractWidth(a);l.extractShouldJoin(a)&&(u-=l.extractWidth(f)),w+=u,f=a}return w}charProperties(b,w){return this._activeProvider.charProperties(b,w)}}i.UnicodeService=l}},h={};function v(C){var i=h[C];if(i!==void 0)return i.exports;var c=h[C]={exports:{}};return r[C].call(c.exports,c,c.exports,v),c.exports}var E={};return(()=>{var C=E;Object.defineProperty(C,"__esModule",{value:!0}),C.Terminal=void 0;const i=v(9042),c=v(3236),d=v(844),g=v(5741),l=v(8285),_=v(7975),b=v(7090),w=["cols","rows"];class f extends d.Disposable{constructor(n){super(),this._core=this.register(new c.Terminal(n)),this._addonManager=this.register(new g.AddonManager),this._publicOptions={...this._core.options};const o=u=>this._core.options[u],a=(u,S)=>{this._checkReadonlyOptions(u),this._core.options[u]=S};for(const u in this._core.options){const S={get:o.bind(this,u),set:a.bind(this,u)};Object.defineProperty(this._publicOptions,u,S)}}_checkReadonlyOptions(n){if(w.includes(n))throw new Error(`Option "${n}" 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 _.ParserApi(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new b.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 l.BufferNamespaceApi(this._core))),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){const n=this._core.coreService.decPrivateModes;let o="none";switch(this._core.coreMouseService.activeProtocol){case"X10":o="x10";break;case"VT200":o="vt200";break;case"DRAG":o="drag";break;case"ANY":o="any"}return{applicationCursorKeysMode:n.applicationCursorKeys,applicationKeypadMode:n.applicationKeypad,bracketedPasteMode:n.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:o,originMode:n.origin,reverseWraparoundMode:n.reverseWraparound,sendFocusMode:n.sendFocus,wraparoundMode:n.wraparound}}get options(){return this._publicOptions}set options(n){for(const o in n)this._publicOptions[o]=n[o]}blur(){this._core.blur()}focus(){this._core.focus()}input(n,o=!0){this._core.input(n,o)}resize(n,o){this._verifyIntegers(n,o),this._core.resize(n,o)}open(n){this._core.open(n)}attachCustomKeyEventHandler(n){this._core.attachCustomKeyEventHandler(n)}attachCustomWheelEventHandler(n){this._core.attachCustomWheelEventHandler(n)}registerLinkProvider(n){return this._core.registerLinkProvider(n)}registerCharacterJoiner(n){return this._checkProposedApi(),this._core.registerCharacterJoiner(n)}deregisterCharacterJoiner(n){this._checkProposedApi(),this._core.deregisterCharacterJoiner(n)}registerMarker(n=0){return this._verifyIntegers(n),this._core.registerMarker(n)}registerDecoration(n){return this._checkProposedApi(),this._verifyPositiveIntegers(n.x??0,n.width??0,n.height??0),this._core.registerDecoration(n)}hasSelection(){return this._core.hasSelection()}select(n,o,a){this._verifyIntegers(n,o,a),this._core.select(n,o,a)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(n,o){this._verifyIntegers(n,o),this._core.selectLines(n,o)}dispose(){super.dispose()}scrollLines(n){this._verifyIntegers(n),this._core.scrollLines(n)}scrollPages(n){this._verifyIntegers(n),this._core.scrollPages(n)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(n){this._verifyIntegers(n),this._core.scrollToLine(n)}clear(){this._core.clear()}write(n,o){this._core.write(n,o)}writeln(n,o){this._core.write(n),this._core.write(`\r
|
|
43
|
-
`,o)}paste(n){this._core.paste(n)}refresh(n,o){this._verifyIntegers(n,o),this._core.refresh(n,o)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(n){this._addonManager.loadAddon(this,n)}static get strings(){return i}_verifyIntegers(...n){for(const o of n)if(o===1/0||isNaN(o)||o%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...n){for(const o of n)if(o&&(o===1/0||isNaN(o)||o%1!=0||o<0))throw new Error("This API only accepts positive integers")}}C.Terminal=f})(),E})()))})(ar)),ar.exports}var Wo=$o(),Ot={exports:{}},Vo=Ot.exports,ci;function jo(){return ci||(ci=1,(function(e,t){(function(r,h){e.exports=h()})(Vo,(()=>(()=>{var r={930:(C,i,c)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.ColorContrastCache=void 0;const d=c(485);i.ColorContrastCache=class{constructor(){this._color=new d.TwoKeyMap,this._css=new d.TwoKeyMap}setCss(g,l,_){this._css.set(g,l,_)}getCss(g,l){return this._css.get(g,l)}setColor(g,l,_){this._color.set(g,l,_)}getColor(g,l){return this._color.get(g,l)}clear(){this._color.clear(),this._css.clear()}}},997:function(C,i,c){var d=this&&this.__decorate||function(y,p,k,x){var L,T=arguments.length,R=T<3?p:x===null?x=Object.getOwnPropertyDescriptor(p,k):x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")R=Reflect.decorate(y,p,k,x);else for(var M=y.length-1;M>=0;M--)(L=y[M])&&(R=(T<3?L(R):T>3?L(p,k,R):L(p,k))||R);return T>3&&R&&Object.defineProperty(p,k,R),R},g=this&&this.__param||function(y,p){return function(k,x){p(k,x,y)}};Object.defineProperty(i,"__esModule",{value:!0}),i.ThemeService=i.DEFAULT_ANSI_COLORS=void 0;const l=c(930),_=c(160),b=c(345),w=c(859),f=c(97),s=_.css.toColor("#ffffff"),n=_.css.toColor("#000000"),o=_.css.toColor("#ffffff"),a=_.css.toColor("#000000"),u={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};i.DEFAULT_ANSI_COLORS=Object.freeze((()=>{const y=[_.css.toColor("#2e3436"),_.css.toColor("#cc0000"),_.css.toColor("#4e9a06"),_.css.toColor("#c4a000"),_.css.toColor("#3465a4"),_.css.toColor("#75507b"),_.css.toColor("#06989a"),_.css.toColor("#d3d7cf"),_.css.toColor("#555753"),_.css.toColor("#ef2929"),_.css.toColor("#8ae234"),_.css.toColor("#fce94f"),_.css.toColor("#729fcf"),_.css.toColor("#ad7fa8"),_.css.toColor("#34e2e2"),_.css.toColor("#eeeeec")],p=[0,95,135,175,215,255];for(let k=0;k<216;k++){const x=p[k/36%6|0],L=p[k/6%6|0],T=p[k%6];y.push({css:_.channels.toCss(x,L,T),rgba:_.channels.toRgba(x,L,T)})}for(let k=0;k<24;k++){const x=8+10*k;y.push({css:_.channels.toCss(x,x,x),rgba:_.channels.toRgba(x,x,x)})}return y})());let S=i.ThemeService=class extends w.Disposable{get colors(){return this._colors}constructor(y){super(),this._optionsService=y,this._contrastCache=new l.ColorContrastCache,this._halfContrastCache=new l.ColorContrastCache,this._onChangeColors=this.register(new b.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:s,background:n,cursor:o,cursorAccent:a,selectionForeground:void 0,selectionBackgroundTransparent:u,selectionBackgroundOpaque:_.color.blend(n,u),selectionInactiveBackgroundTransparent:u,selectionInactiveBackgroundOpaque:_.color.blend(n,u),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(y={}){const p=this._colors;if(p.foreground=m(y.foreground,s),p.background=m(y.background,n),p.cursor=m(y.cursor,o),p.cursorAccent=m(y.cursorAccent,a),p.selectionBackgroundTransparent=m(y.selectionBackground,u),p.selectionBackgroundOpaque=_.color.blend(p.background,p.selectionBackgroundTransparent),p.selectionInactiveBackgroundTransparent=m(y.selectionInactiveBackground,p.selectionBackgroundTransparent),p.selectionInactiveBackgroundOpaque=_.color.blend(p.background,p.selectionInactiveBackgroundTransparent),p.selectionForeground=y.selectionForeground?m(y.selectionForeground,_.NULL_COLOR):void 0,p.selectionForeground===_.NULL_COLOR&&(p.selectionForeground=void 0),_.color.isOpaque(p.selectionBackgroundTransparent)&&(p.selectionBackgroundTransparent=_.color.opacity(p.selectionBackgroundTransparent,.3)),_.color.isOpaque(p.selectionInactiveBackgroundTransparent)&&(p.selectionInactiveBackgroundTransparent=_.color.opacity(p.selectionInactiveBackgroundTransparent,.3)),p.ansi=i.DEFAULT_ANSI_COLORS.slice(),p.ansi[0]=m(y.black,i.DEFAULT_ANSI_COLORS[0]),p.ansi[1]=m(y.red,i.DEFAULT_ANSI_COLORS[1]),p.ansi[2]=m(y.green,i.DEFAULT_ANSI_COLORS[2]),p.ansi[3]=m(y.yellow,i.DEFAULT_ANSI_COLORS[3]),p.ansi[4]=m(y.blue,i.DEFAULT_ANSI_COLORS[4]),p.ansi[5]=m(y.magenta,i.DEFAULT_ANSI_COLORS[5]),p.ansi[6]=m(y.cyan,i.DEFAULT_ANSI_COLORS[6]),p.ansi[7]=m(y.white,i.DEFAULT_ANSI_COLORS[7]),p.ansi[8]=m(y.brightBlack,i.DEFAULT_ANSI_COLORS[8]),p.ansi[9]=m(y.brightRed,i.DEFAULT_ANSI_COLORS[9]),p.ansi[10]=m(y.brightGreen,i.DEFAULT_ANSI_COLORS[10]),p.ansi[11]=m(y.brightYellow,i.DEFAULT_ANSI_COLORS[11]),p.ansi[12]=m(y.brightBlue,i.DEFAULT_ANSI_COLORS[12]),p.ansi[13]=m(y.brightMagenta,i.DEFAULT_ANSI_COLORS[13]),p.ansi[14]=m(y.brightCyan,i.DEFAULT_ANSI_COLORS[14]),p.ansi[15]=m(y.brightWhite,i.DEFAULT_ANSI_COLORS[15]),y.extendedAnsi){const k=Math.min(p.ansi.length-16,y.extendedAnsi.length);for(let x=0;x<k;x++)p.ansi[x+16]=m(y.extendedAnsi[x],i.DEFAULT_ANSI_COLORS[x+16])}this._contrastCache.clear(),this._halfContrastCache.clear(),this._updateRestoreColors(),this._onChangeColors.fire(this.colors)}restoreColor(y){this._restoreColor(y),this._onChangeColors.fire(this.colors)}_restoreColor(y){if(y!==void 0)switch(y){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[y]=this._restoreColors.ansi[y]}else for(let p=0;p<this._restoreColors.ansi.length;++p)this._colors.ansi[p]=this._restoreColors.ansi[p]}modifyColors(y){y(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 m(y,p){if(y!==void 0)try{return _.css.toColor(y)}catch{}return p}i.ThemeService=S=d([g(0,f.IOptionsService)],S)},160:(C,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 c=0,d=0,g=0,l=0;var _,b,w,f,s;function n(a){const u=a.toString(16);return u.length<2?"0"+u:u}function o(a,u){return a<u?(u+.05)/(a+.05):(a+.05)/(u+.05)}i.NULL_COLOR={css:"#00000000",rgba:0},(function(a){a.toCss=function(u,S,m,y){return y!==void 0?`#${n(u)}${n(S)}${n(m)}${n(y)}`:`#${n(u)}${n(S)}${n(m)}`},a.toRgba=function(u,S,m,y=255){return(u<<24|S<<16|m<<8|y)>>>0},a.toColor=function(u,S,m,y){return{css:a.toCss(u,S,m,y),rgba:a.toRgba(u,S,m,y)}}})(_||(i.channels=_={})),(function(a){function u(S,m){return l=Math.round(255*m),[c,d,g]=s.toChannels(S.rgba),{css:_.toCss(c,d,g,l),rgba:_.toRgba(c,d,g,l)}}a.blend=function(S,m){if(l=(255&m.rgba)/255,l===1)return{css:m.css,rgba:m.rgba};const y=m.rgba>>24&255,p=m.rgba>>16&255,k=m.rgba>>8&255,x=S.rgba>>24&255,L=S.rgba>>16&255,T=S.rgba>>8&255;return c=x+Math.round((y-x)*l),d=L+Math.round((p-L)*l),g=T+Math.round((k-T)*l),{css:_.toCss(c,d,g),rgba:_.toRgba(c,d,g)}},a.isOpaque=function(S){return(255&S.rgba)==255},a.ensureContrastRatio=function(S,m,y){const p=s.ensureContrastRatio(S.rgba,m.rgba,y);if(p)return _.toColor(p>>24&255,p>>16&255,p>>8&255)},a.opaque=function(S){const m=(255|S.rgba)>>>0;return[c,d,g]=s.toChannels(m),{css:_.toCss(c,d,g),rgba:m}},a.opacity=u,a.multiplyOpacity=function(S,m){return l=255&S.rgba,u(S,l*m/255)},a.toColorRGB=function(S){return[S.rgba>>24&255,S.rgba>>16&255,S.rgba>>8&255]}})(b||(i.color=b={})),(function(a){let u,S;try{const m=document.createElement("canvas");m.width=1,m.height=1;const y=m.getContext("2d",{willReadFrequently:!0});y&&(u=y,u.globalCompositeOperation="copy",S=u.createLinearGradient(0,0,1,1))}catch{}a.toColor=function(m){if(m.match(/#[\da-f]{3,8}/i))switch(m.length){case 4:return c=parseInt(m.slice(1,2).repeat(2),16),d=parseInt(m.slice(2,3).repeat(2),16),g=parseInt(m.slice(3,4).repeat(2),16),_.toColor(c,d,g);case 5:return c=parseInt(m.slice(1,2).repeat(2),16),d=parseInt(m.slice(2,3).repeat(2),16),g=parseInt(m.slice(3,4).repeat(2),16),l=parseInt(m.slice(4,5).repeat(2),16),_.toColor(c,d,g,l);case 7:return{css:m,rgba:(parseInt(m.slice(1),16)<<8|255)>>>0};case 9:return{css:m,rgba:parseInt(m.slice(1),16)>>>0}}const y=m.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(y)return c=parseInt(y[1]),d=parseInt(y[2]),g=parseInt(y[3]),l=Math.round(255*(y[5]===void 0?1:parseFloat(y[5]))),_.toColor(c,d,g,l);if(!u||!S)throw new Error("css.toColor: Unsupported css format");if(u.fillStyle=S,u.fillStyle=m,typeof u.fillStyle!="string")throw new Error("css.toColor: Unsupported css format");if(u.fillRect(0,0,1,1),[c,d,g,l]=u.getImageData(0,0,1,1).data,l!==255)throw new Error("css.toColor: Unsupported css format");return{rgba:_.toRgba(c,d,g,l),css:m}}})(w||(i.css=w={})),(function(a){function u(S,m,y){const p=S/255,k=m/255,x=y/255;return .2126*(p<=.03928?p/12.92:Math.pow((p+.055)/1.055,2.4))+.7152*(k<=.03928?k/12.92:Math.pow((k+.055)/1.055,2.4))+.0722*(x<=.03928?x/12.92:Math.pow((x+.055)/1.055,2.4))}a.relativeLuminance=function(S){return u(S>>16&255,S>>8&255,255&S)},a.relativeLuminance2=u})(f||(i.rgb=f={})),(function(a){function u(m,y,p){const k=m>>24&255,x=m>>16&255,L=m>>8&255;let T=y>>24&255,R=y>>16&255,M=y>>8&255,F=o(f.relativeLuminance2(T,R,M),f.relativeLuminance2(k,x,L));for(;F<p&&(T>0||R>0||M>0);)T-=Math.max(0,Math.ceil(.1*T)),R-=Math.max(0,Math.ceil(.1*R)),M-=Math.max(0,Math.ceil(.1*M)),F=o(f.relativeLuminance2(T,R,M),f.relativeLuminance2(k,x,L));return(T<<24|R<<16|M<<8|255)>>>0}function S(m,y,p){const k=m>>24&255,x=m>>16&255,L=m>>8&255;let T=y>>24&255,R=y>>16&255,M=y>>8&255,F=o(f.relativeLuminance2(T,R,M),f.relativeLuminance2(k,x,L));for(;F<p&&(T<255||R<255||M<255);)T=Math.min(255,T+Math.ceil(.1*(255-T))),R=Math.min(255,R+Math.ceil(.1*(255-R))),M=Math.min(255,M+Math.ceil(.1*(255-M))),F=o(f.relativeLuminance2(T,R,M),f.relativeLuminance2(k,x,L));return(T<<24|R<<16|M<<8|255)>>>0}a.blend=function(m,y){if(l=(255&y)/255,l===1)return y;const p=y>>24&255,k=y>>16&255,x=y>>8&255,L=m>>24&255,T=m>>16&255,R=m>>8&255;return c=L+Math.round((p-L)*l),d=T+Math.round((k-T)*l),g=R+Math.round((x-R)*l),_.toRgba(c,d,g)},a.ensureContrastRatio=function(m,y,p){const k=f.relativeLuminance(m>>8),x=f.relativeLuminance(y>>8);if(o(k,x)<p){if(x<k){const R=u(m,y,p),M=o(k,f.relativeLuminance(R>>8));if(M<p){const F=S(m,y,p);return M>o(k,f.relativeLuminance(F>>8))?R:F}return R}const L=S(m,y,p),T=o(k,f.relativeLuminance(L>>8));if(T<p){const R=u(m,y,p);return T>o(k,f.relativeLuminance(R>>8))?L:R}return L}},a.reduceLuminance=u,a.increaseLuminance=S,a.toChannels=function(m){return[m>>24&255,m>>16&255,m>>8&255,255&m]}})(s||(i.rgba=s={})),i.toPaddedHex=n,i.contrastRatio=o},345:(C,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=c=>(this._listeners.push(c),{dispose:()=>{if(!this._disposed){for(let d=0;d<this._listeners.length;d++)if(this._listeners[d]===c)return void this._listeners.splice(d,1)}}})),this._event}fire(c,d){const g=[];for(let l=0;l<this._listeners.length;l++)g.push(this._listeners[l]);for(let l=0;l<g.length;l++)g[l].call(void 0,c,d)}dispose(){this.clearListeners(),this._disposed=!0}clearListeners(){this._listeners&&(this._listeners.length=0)}},i.forwardEvent=function(c,d){return c((g=>d.fire(g)))},i.runAndSubscribe=function(c,d){return d(void 0),c((g=>d(g)))}},859:(C,i)=>{function c(d){for(const g of d)g.dispose();d.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 d of this._disposables)d.dispose();this._disposables.length=0}register(d){return this._disposables.push(d),d}unregister(d){const g=this._disposables.indexOf(d);g!==-1&&this._disposables.splice(g,1)}},i.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(d){var g;this._isDisposed||d===this._value||((g=this._value)==null||g.dispose(),this._value=d)}clear(){this.value=void 0}dispose(){var d;this._isDisposed=!0,(d=this._value)==null||d.dispose(),this._value=void 0}},i.toDisposable=function(d){return{dispose:d}},i.disposeArray=c,i.getDisposeArrayDisposable=function(d){return{dispose:()=>c(d)}}},485:(C,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.FourKeyMap=i.TwoKeyMap=void 0;class c{constructor(){this._data={}}set(g,l,_){this._data[g]||(this._data[g]={}),this._data[g][l]=_}get(g,l){return this._data[g]?this._data[g][l]:void 0}clear(){this._data={}}}i.TwoKeyMap=c,i.FourKeyMap=class{constructor(){this._data=new c}set(d,g,l,_,b){this._data.get(d,g)||this._data.set(d,g,new c),this._data.get(d,g).set(l,_,b)}get(d,g,l,_){var b;return(b=this._data.get(d,g))==null?void 0:b.get(l,_)}clear(){this._data.clear()}}},726:(C,i)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.createDecorator=i.getServiceDependencies=i.serviceRegistry=void 0;const c="di$target",d="di$dependencies";i.serviceRegistry=new Map,i.getServiceDependencies=function(g){return g[d]||[]},i.createDecorator=function(g){if(i.serviceRegistry.has(g))return i.serviceRegistry.get(g);const l=function(_,b,w){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");(function(f,s,n){s[c]===s?s[d].push({id:f,index:n}):(s[d]=[{id:f,index:n}],s[c]=s)})(l,_,w)};return l.toString=()=>g,i.serviceRegistry.set(g,l),l}},97:(C,i,c)=>{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 d=c(726);var g;i.IBufferService=(0,d.createDecorator)("BufferService"),i.ICoreMouseService=(0,d.createDecorator)("CoreMouseService"),i.ICoreService=(0,d.createDecorator)("CoreService"),i.ICharsetService=(0,d.createDecorator)("CharsetService"),i.IInstantiationService=(0,d.createDecorator)("InstantiationService"),(function(l){l[l.TRACE=0]="TRACE",l[l.DEBUG=1]="DEBUG",l[l.INFO=2]="INFO",l[l.WARN=3]="WARN",l[l.ERROR=4]="ERROR",l[l.OFF=5]="OFF"})(g||(i.LogLevelEnum=g={})),i.ILogService=(0,d.createDecorator)("LogService"),i.IOptionsService=(0,d.createDecorator)("OptionsService"),i.IOscLinkService=(0,d.createDecorator)("OscLinkService"),i.IUnicodeService=(0,d.createDecorator)("UnicodeService"),i.IDecorationService=(0,d.createDecorator)("DecorationService")}},h={};function v(C){var i=h[C];if(i!==void 0)return i.exports;var c=h[C]={exports:{}};return r[C].call(c.exports,c,c.exports,v),c.exports}var E={};return(()=>{var C=E;Object.defineProperty(C,"__esModule",{value:!0}),C.HTMLSerializeHandler=C.SerializeAddon=void 0;const i=v(997);function c(f,s,n){return Math.max(s,Math.min(f,n))}class d{constructor(s){this._buffer=s}serialize(s,n){const o=this._buffer.getNullCell(),a=this._buffer.getNullCell();let u=o;const S=s.start.y,m=s.end.y,y=s.start.x,p=s.end.x;this._beforeSerialize(m-S,S,m);for(let k=S;k<=m;k++){const x=this._buffer.getLine(k);if(x){const L=k===s.start.y?y:0,T=k===s.end.y?p:x.length;for(let R=L;R<T;R++){const M=x.getCell(R,u===o?a:o);M?(this._nextCell(M,u,k,R),u=M):console.warn(`Can't get cell at row=${k}, col=${R}`)}}this._rowEnd(k,k===m)}return this._afterSerialize(),this._serializeString(n)}_nextCell(s,n,o,a){}_rowEnd(s,n){}_beforeSerialize(s,n,o){}_afterSerialize(){}_serializeString(s){return""}}function g(f,s){return f.getFgColorMode()===s.getFgColorMode()&&f.getFgColor()===s.getFgColor()}function l(f,s){return f.getBgColorMode()===s.getBgColorMode()&&f.getBgColor()===s.getBgColor()}function _(f,s){return f.isInverse()===s.isInverse()&&f.isBold()===s.isBold()&&f.isUnderline()===s.isUnderline()&&f.isOverline()===s.isOverline()&&f.isBlink()===s.isBlink()&&f.isInvisible()===s.isInvisible()&&f.isItalic()===s.isItalic()&&f.isDim()===s.isDim()&&f.isStrikethrough()===s.isStrikethrough()}class b extends d{constructor(s,n){super(s),this._terminal=n,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(s,n,o){this._allRows=new Array(s),this._lastContentCursorRow=n,this._lastCursorRow=n,this._firstRow=n}_rowEnd(s,n){var a;this._nullCellCount>0&&!l(this._cursorStyle,this._backgroundCell)&&(this._currentRow+=`\x1B[${this._nullCellCount}X`);let o="";if(!n){s-this._firstRow>=this._terminal.rows&&((a=this._buffer.getLine(this._cursorStyleRow))==null||a.getCell(this._cursorStyleCol,this._backgroundCell));const u=this._buffer.getLine(s),S=this._buffer.getLine(s+1);if(S.isWrapped){o="";const m=u.getCell(u.length-1,this._thisRowLastChar),y=u.getCell(u.length-2,this._thisRowLastSecondChar),p=S.getCell(0,this._nextRowFirstChar),k=p.getWidth()>1;let x=!1;(p.getChars()&&k?this._nullCellCount<=1:this._nullCellCount<=0)&&((m.getChars()||m.getWidth()===0)&&l(m,p)&&(x=!0),k&&(y.getChars()||y.getWidth()===0)&&l(m,p)&&l(y,p)&&(x=!0)),x||(o="-".repeat(this._nullCellCount+1),o+="\x1B[1D\x1B[1X",this._nullCellCount>0&&(o+="\x1B[A",o+=`\x1B[${u.length-this._nullCellCount}C`,o+=`\x1B[${this._nullCellCount}X`,o+=`\x1B[${u.length-this._nullCellCount}D`,o+="\x1B[B"),this._lastContentCursorRow=s+1,this._lastContentCursorCol=0,this._lastCursorRow=s+1,this._lastCursorCol=0)}else o=`\r
|
|
44
|
-
`,this._lastCursorRow=s+1,this._lastCursorCol=0}this._allRows[this._rowIndex]=this._currentRow,this._allRowSeparators[this._rowIndex++]=o,this._currentRow="",this._nullCellCount=0}_diffStyle(s,n){const o=[],a=!g(s,n),u=!l(s,n),S=!_(s,n);if(a||u||S)if(s.isAttributeDefault())n.isAttributeDefault()||o.push(0);else{if(a){const m=s.getFgColor();s.isFgRGB()?o.push(38,2,m>>>16&255,m>>>8&255,255&m):s.isFgPalette()?m>=16?o.push(38,5,m):o.push(8&m?90+(7&m):30+(7&m)):o.push(39)}if(u){const m=s.getBgColor();s.isBgRGB()?o.push(48,2,m>>>16&255,m>>>8&255,255&m):s.isBgPalette()?m>=16?o.push(48,5,m):o.push(8&m?100+(7&m):40+(7&m)):o.push(49)}S&&(s.isInverse()!==n.isInverse()&&o.push(s.isInverse()?7:27),s.isBold()!==n.isBold()&&o.push(s.isBold()?1:22),s.isUnderline()!==n.isUnderline()&&o.push(s.isUnderline()?4:24),s.isOverline()!==n.isOverline()&&o.push(s.isOverline()?53:55),s.isBlink()!==n.isBlink()&&o.push(s.isBlink()?5:25),s.isInvisible()!==n.isInvisible()&&o.push(s.isInvisible()?8:28),s.isItalic()!==n.isItalic()&&o.push(s.isItalic()?3:23),s.isDim()!==n.isDim()&&o.push(s.isDim()?2:22),s.isStrikethrough()!==n.isStrikethrough()&&o.push(s.isStrikethrough()?9:29))}return o}_nextCell(s,n,o,a){if(s.getWidth()===0)return;const u=s.getChars()==="",S=this._diffStyle(s,this._cursorStyle);if(u?!l(this._cursorStyle,s):S.length>0){this._nullCellCount>0&&(l(this._cursorStyle,this._backgroundCell)||(this._currentRow+=`\x1B[${this._nullCellCount}X`),this._currentRow+=`\x1B[${this._nullCellCount}C`,this._nullCellCount=0),this._lastContentCursorRow=this._lastCursorRow=o,this._lastContentCursorCol=this._lastCursorCol=a,this._currentRow+=`\x1B[${S.join(";")}m`;const m=this._buffer.getLine(o);m!==void 0&&(m.getCell(a,this._cursorStyle),this._cursorStyleRow=o,this._cursorStyleCol=a)}u?this._nullCellCount+=s.getWidth():(this._nullCellCount>0&&(l(this._cursorStyle,this._backgroundCell)||(this._currentRow+=`\x1B[${this._nullCellCount}X`),this._currentRow+=`\x1B[${this._nullCellCount}C`,this._nullCellCount=0),this._currentRow+=s.getChars(),this._lastContentCursorRow=this._lastCursorRow=o,this._lastContentCursorCol=this._lastCursorCol=a+s.getWidth())}_serializeString(s){let n=this._allRows.length;this._buffer.length-this._firstRow<=this._terminal.rows&&(n=this._lastContentCursorRow+1-this._firstRow,this._lastCursorCol=this._lastContentCursorCol,this._lastCursorRow=this._lastContentCursorRow);let o="";for(let m=0;m<n;m++)o+=this._allRows[m],m+1<n&&(o+=this._allRowSeparators[m]);if(!s){const m=this._buffer.baseY+this._buffer.cursorY,y=this._buffer.cursorX,p=k=>{k>0?o+=`\x1B[${k}C`:k<0&&(o+=`\x1B[${-k}D`)};(m!==this._lastCursorRow||y!==this._lastCursorCol)&&((a=m-this._lastCursorRow)>0?o+=`\x1B[${a}B`:a<0&&(o+=`\x1B[${-a}A`),p(y-this._lastCursorCol))}var a;const u=this._terminal._core._inputHandler._curAttrData,S=this._diffStyle(u,this._cursorStyle);return S.length>0&&(o+=`\x1B[${S.join(";")}m`),o}}C.SerializeAddon=class{activate(f){this._terminal=f}_serializeBufferByScrollback(f,s,n){const o=s.length,a=n===void 0?o:c(n+f.rows,0,o);return this._serializeBufferByRange(f,s,{start:o-a,end:o-1},!1)}_serializeBufferByRange(f,s,n,o){return new b(s,f).serialize({start:{x:0,y:typeof n.start=="number"?n.start:n.start.line},end:{x:f.cols,y:typeof n.end=="number"?n.end:n.end.line}},o)}_serializeBufferAsHTML(f,s){var u;const n=f.buffer.active,o=new w(n,f,s);if(!s.onlySelection){const S=n.length,m=s.scrollback,y=m===void 0?S:c(m+f.rows,0,S);return o.serialize({start:{x:0,y:S-y},end:{x:f.cols,y:S-1}})}const a=(u=this._terminal)==null?void 0:u.getSelectionPosition();return a!==void 0?o.serialize({start:{x:a.start.x,y:a.start.y},end:{x:a.end.x,y:a.end.y}}):""}_serializeModes(f){let s="";const n=f.modes;if(n.applicationCursorKeysMode&&(s+="\x1B[?1h"),n.applicationKeypadMode&&(s+="\x1B[?66h"),n.bracketedPasteMode&&(s+="\x1B[?2004h"),n.insertMode&&(s+="\x1B[4h"),n.originMode&&(s+="\x1B[?6h"),n.reverseWraparoundMode&&(s+="\x1B[?45h"),n.sendFocusMode&&(s+="\x1B[?1004h"),n.wraparoundMode===!1&&(s+="\x1B[?7l"),n.mouseTrackingMode!=="none")switch(n.mouseTrackingMode){case"x10":s+="\x1B[?9h";break;case"vt200":s+="\x1B[?1000h";break;case"drag":s+="\x1B[?1002h";break;case"any":s+="\x1B[?1003h"}return s}serialize(f){if(!this._terminal)throw new Error("Cannot use addon until it has been loaded");let s=f!=null&&f.range?this._serializeBufferByRange(this._terminal,this._terminal.buffer.normal,f.range,!0):this._serializeBufferByScrollback(this._terminal,this._terminal.buffer.normal,f==null?void 0:f.scrollback);return f!=null&&f.excludeAltBuffer||this._terminal.buffer.active.type!=="alternate"||(s+=`\x1B[?1049h\x1B[H${this._serializeBufferByScrollback(this._terminal,this._terminal.buffer.alternate,void 0)}`),f!=null&&f.excludeModes||(s+=this._serializeModes(this._terminal)),s}serializeAsHTML(f){if(!this._terminal)throw new Error("Cannot use addon until it has been loaded");return this._serializeBufferAsHTML(this._terminal,f||{})}dispose(){}};class w extends d{constructor(s,n,o){super(s),this._terminal=n,this._options=o,this._currentRow="",this._htmlContent="",n._core._themeService?this._ansiColors=n._core._themeService.colors.ansi:this._ansiColors=i.DEFAULT_ANSI_COLORS}_padStart(s,n,o){return n>>=0,o=o??" ",s.length>n?s:((n-=s.length)>o.length&&(o+=o.repeat(n/o.length)),o.slice(0,n)+s)}_beforeSerialize(s,n,o){var m,y;this._htmlContent+="<html><body><!--StartFragment--><pre>";let a="#000000",u="#ffffff";this._options.includeGlobalBackground&&(a=((m=this._terminal.options.theme)==null?void 0:m.foreground)??"#ffffff",u=((y=this._terminal.options.theme)==null?void 0:y.background)??"#000000");const S=[];S.push("color: "+a+";"),S.push("background-color: "+u+";"),S.push("font-family: "+this._terminal.options.fontFamily+";"),S.push("font-size: "+this._terminal.options.fontSize+"px;"),this._htmlContent+="<div style='"+S.join(" ")+"'>"}_afterSerialize(){this._htmlContent+="</div>",this._htmlContent+="</pre><!--EndFragment--></body></html>"}_rowEnd(s,n){this._htmlContent+="<div><span>"+this._currentRow+"</span></div>",this._currentRow=""}_getHexColor(s,n){const o=n?s.getFgColor():s.getBgColor();return(n?s.isFgRGB():s.isBgRGB())?"#"+[o>>16&255,o>>8&255,255&o].map((a=>this._padStart(a.toString(16),2,"0"))).join(""):(n?s.isFgPalette():s.isBgPalette())?this._ansiColors[o].css:void 0}_diffStyle(s,n){const o=[],a=!g(s,n),u=!l(s,n),S=!_(s,n);if(a||u||S){const m=this._getHexColor(s,!0);m&&o.push("color: "+m+";");const y=this._getHexColor(s,!1);return y&&o.push("background-color: "+y+";"),s.isInverse()&&o.push("color: #000000; background-color: #BFBFBF;"),s.isBold()&&o.push("font-weight: bold;"),s.isUnderline()&&s.isOverline()?o.push("text-decoration: overline underline;"):s.isUnderline()?o.push("text-decoration: underline;"):s.isOverline()&&o.push("text-decoration: overline;"),s.isBlink()&&o.push("text-decoration: blink;"),s.isInvisible()&&o.push("visibility: hidden;"),s.isItalic()&&o.push("font-style: italic;"),s.isDim()&&o.push("opacity: 0.5;"),s.isStrikethrough()&&o.push("text-decoration: line-through;"),o}}_nextCell(s,n,o,a){if(s.getWidth()===0)return;const u=s.getChars()==="",S=this._diffStyle(s,n);S&&(this._currentRow+=S.length===0?"</span><span>":"</span><span style='"+S.join(" ")+"'>"),this._currentRow+=u?" ":s.getChars()}_serializeString(){return this._htmlContent}}C.HTMLSerializeHandler=w})(),E})()))})(Ot)),Ot.exports}var Go=jo(),Nt={exports:{}},Ko=Nt.exports,li;function zo(){return li||(li=1,(function(e,t){(function(r,h){e.exports=h()})(Ko,(()=>(()=>{var r={433:(C,i,c)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.UnicodeV11=void 0;const d=c(938),g=[[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]],l=[[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]],_=[[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]],b=[[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 w;function f(s,n){let o,a=0,u=n.length-1;if(s<n[0][0]||s>n[u][1])return!1;for(;u>=a;)if(o=a+u>>1,s>n[o][1])a=o+1;else{if(!(s<n[o][0]))return!0;u=o-1}return!1}i.UnicodeV11=class{constructor(){if(this.version="11",!w){w=new Uint8Array(65536),w.fill(1),w[0]=0,w.fill(0,1,32),w.fill(0,127,160);for(let s=0;s<g.length;++s)w.fill(0,g[s][0],g[s][1]+1);for(let s=0;s<_.length;++s)w.fill(2,_[s][0],_[s][1]+1)}}wcwidth(s){return s<32?0:s<127?1:s<65536?w[s]:f(s,l)?0:f(s,b)?2:1}charProperties(s,n){let o=this.wcwidth(s),a=o===0&&n!==0;if(a){const u=d.UnicodeService.extractWidth(n);u===0?a=!1:u>o&&(o=u)}return d.UnicodeService.createPropertyValue(0,o,a)}}},345:(C,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=c=>(this._listeners.push(c),{dispose:()=>{if(!this._disposed){for(let d=0;d<this._listeners.length;d++)if(this._listeners[d]===c)return void this._listeners.splice(d,1)}}})),this._event}fire(c,d){const g=[];for(let l=0;l<this._listeners.length;l++)g.push(this._listeners[l]);for(let l=0;l<g.length;l++)g[l].call(void 0,c,d)}dispose(){this.clearListeners(),this._disposed=!0}clearListeners(){this._listeners&&(this._listeners.length=0)}},i.forwardEvent=function(c,d){return c((g=>d.fire(g)))},i.runAndSubscribe=function(c,d){return d(void 0),c((g=>d(g)))}},490:(C,i,c)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.UnicodeV6=void 0;const d=c(938),g=[[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]],l=[[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 _;i.UnicodeV6=class{constructor(){if(this.version="6",!_){_=new Uint8Array(65536),_.fill(1),_[0]=0,_.fill(0,1,32),_.fill(0,127,160),_.fill(2,4352,4448),_[9001]=2,_[9002]=2,_.fill(2,11904,42192),_[12351]=1,_.fill(2,44032,55204),_.fill(2,63744,64256),_.fill(2,65040,65050),_.fill(2,65072,65136),_.fill(2,65280,65377),_.fill(2,65504,65511);for(let b=0;b<g.length;++b)_.fill(0,g[b][0],g[b][1]+1)}}wcwidth(b){return b<32?0:b<127?1:b<65536?_[b]:(function(w,f){let s,n=0,o=f.length-1;if(w<f[0][0]||w>f[o][1])return!1;for(;o>=n;)if(s=n+o>>1,w>f[s][1])n=s+1;else{if(!(w<f[s][0]))return!0;o=s-1}return!1})(b,l)?0:b>=131072&&b<=196605||b>=196608&&b<=262141?2:1}charProperties(b,w){let f=this.wcwidth(b),s=f===0&&w!==0;if(s){const n=d.UnicodeService.extractWidth(w);n===0?s=!1:n>f&&(f=n)}return d.UnicodeService.createPropertyValue(0,f,s)}}},938:(C,i,c)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.UnicodeService=void 0;const d=c(345),g=c(490);class l{static extractShouldJoin(b){return(1&b)!=0}static extractWidth(b){return b>>1&3}static extractCharKind(b){return b>>3}static createPropertyValue(b,w,f=!1){return(16777215&b)<<3|(3&w)<<1|(f?1:0)}constructor(){this._providers=Object.create(null),this._active="",this._onChange=new d.EventEmitter,this.onChange=this._onChange.event;const b=new g.UnicodeV6;this.register(b),this._active=b.version,this._activeProvider=b}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(b){if(!this._providers[b])throw new Error(`unknown Unicode version "${b}"`);this._active=b,this._activeProvider=this._providers[b],this._onChange.fire(b)}register(b){this._providers[b.version]=b}wcwidth(b){return this._activeProvider.wcwidth(b)}getStringCellWidth(b){let w=0,f=0;const s=b.length;for(let n=0;n<s;++n){let o=b.charCodeAt(n);if(55296<=o&&o<=56319){if(++n>=s)return w+this.wcwidth(o);const S=b.charCodeAt(n);56320<=S&&S<=57343?o=1024*(o-55296)+S-56320+65536:w+=this.wcwidth(S)}const a=this.charProperties(o,f);let u=l.extractWidth(a);l.extractShouldJoin(a)&&(u-=l.extractWidth(f)),w+=u,f=a}return w}charProperties(b,w){return this._activeProvider.charProperties(b,w)}}i.UnicodeService=l}},h={};function v(C){var i=h[C];if(i!==void 0)return i.exports;var c=h[C]={exports:{}};return r[C](c,c.exports,v),c.exports}var E={};return(()=>{var C=E;Object.defineProperty(C,"__esModule",{value:!0}),C.Unicode11Addon=void 0;const i=v(433);C.Unicode11Addon=class{activate(c){c.unicode.register(new i.UnicodeV11)}dispose(){}}})(),E})()))})(Nt)),Nt.exports}var Zo=zo(),cr={exports:{}},di;function Xo(){return di||(di=1,(function(e,t){(function(r,h){e.exports=h()})(self,(()=>(()=>{var r={6:(C,i)=>{function c(g){try{const l=new URL(g),_=l.password&&l.username?`${l.protocol}//${l.username}:${l.password}@${l.host}`:l.username?`${l.protocol}//${l.username}@${l.host}`:`${l.protocol}//${l.host}`;return g.toLocaleLowerCase().startsWith(_.toLocaleLowerCase())}catch{return!1}}Object.defineProperty(i,"__esModule",{value:!0}),i.LinkComputer=i.WebLinkProvider=void 0,i.WebLinkProvider=class{constructor(g,l,_,b={}){this._terminal=g,this._regex=l,this._handler=_,this._options=b}provideLinks(g,l){const _=d.computeLink(g,this._regex,this._terminal,this._handler);l(this._addCallbacks(_))}_addCallbacks(g){return g.map((l=>(l.leave=this._options.leave,l.hover=(_,b)=>{if(this._options.hover){const{range:w}=l;this._options.hover(_,b,w)}},l)))}};class d{static computeLink(l,_,b,w){const f=new RegExp(_.source,(_.flags||"")+"g"),[s,n]=d._getWindowedLineStrings(l-1,b),o=s.join("");let a;const u=[];for(;a=f.exec(o);){const S=a[0];if(!c(S))continue;const[m,y]=d._mapStrIdx(b,n,0,a.index),[p,k]=d._mapStrIdx(b,m,y,S.length);if(m===-1||y===-1||p===-1||k===-1)continue;const x={start:{x:y+1,y:m+1},end:{x:k,y:p+1}};u.push({range:x,text:S,activate:w})}return u}static _getWindowedLineStrings(l,_){let b,w=l,f=l,s=0,n="";const o=[];if(b=_.buffer.active.getLine(l)){const a=b.translateToString(!0);if(b.isWrapped&&a[0]!==" "){for(s=0;(b=_.buffer.active.getLine(--w))&&s<2048&&(n=b.translateToString(!0),s+=n.length,o.push(n),b.isWrapped&&n.indexOf(" ")===-1););o.reverse()}for(o.push(a),s=0;(b=_.buffer.active.getLine(++f))&&b.isWrapped&&s<2048&&(n=b.translateToString(!0),s+=n.length,o.push(n),n.indexOf(" ")===-1););}return[o,w]}static _mapStrIdx(l,_,b,w){const f=l.buffer.active,s=f.getNullCell();let n=b;for(;w;){const o=f.getLine(_);if(!o)return[-1,-1];for(let a=n;a<o.length;++a){o.getCell(a,s);const u=s.getChars();if(s.getWidth()&&(w-=u.length||1,a===o.length-1&&u==="")){const S=f.getLine(_+1);S&&S.isWrapped&&(S.getCell(0,s),s.getWidth()===2&&(w+=1))}if(w<0)return[_,a]}_++,n=0}return[_,n]}}i.LinkComputer=d}},h={};function v(C){var i=h[C];if(i!==void 0)return i.exports;var c=h[C]={exports:{}};return r[C](c,c.exports,v),c.exports}var E={};return(()=>{var C=E;Object.defineProperty(C,"__esModule",{value:!0}),C.WebLinksAddon=void 0;const i=v(6),c=/(https?|HTTPS?):[/]{2}[^\s"'!*(){}|\\\^<>`]*[^\s"':,.!?{}|\\\^~\[\]`()<>]/;function d(g,l){const _=window.open();if(_){try{_.opener=null}catch{}_.location.href=l}else console.warn("Opening link blocked as opener could not be cleared")}C.WebLinksAddon=class{constructor(g=d,l={}){this._handler=g,this._options=l}activate(g){this._terminal=g;const l=this._options,_=l.urlRegex||c;this._linkProvider=this._terminal.registerLinkProvider(new i.WebLinkProvider(this._terminal,_,this._handler,l))}dispose(){var g;(g=this._linkProvider)==null||g.dispose()}}})(),E})()))})(cr)),cr.exports}var Yo=Xo();function fe(e){return typeof e=="function"}function cs(e){var t=function(h){Error.call(h),h.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var lr=cs(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
45
|
-
`+r.map(function(h,v){return v+1+") "+h.toString()}).join(`
|
|
46
|
-
`):"",this.name="UnsubscriptionError",this.errors=r}});function Wt(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Bt=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,h,v,E;if(!this.closed){this.closed=!0;var C=this._parentage;if(C)if(this._parentage=null,Array.isArray(C))try{for(var i=Ke(C),c=i.next();!c.done;c=i.next()){var d=c.value;d.remove(this)}}catch(f){t={error:f}}finally{try{c&&!c.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}else C.remove(this);var g=this.initialTeardown;if(fe(g))try{g()}catch(f){E=f instanceof lr?f.errors:[f]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var _=Ke(l),b=_.next();!b.done;b=_.next()){var w=b.value;try{hi(w)}catch(f){E=E??[],f instanceof lr?E=ft(ft([],ut(E)),ut(f.errors)):E.push(f)}}}catch(f){h={error:f}}finally{try{b&&!b.done&&(v=_.return)&&v.call(_)}finally{if(h)throw h.error}}}if(E)throw new lr(E)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)hi(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)&&Wt(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Wt(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),ls=Bt.EMPTY;function ds(e){return e instanceof Bt||e&&"closed"in e&&fe(e.remove)&&fe(e.add)&&fe(e.unsubscribe)}function hi(e){fe(e)?e():e.unsubscribe()}var Jo={Promise:void 0},qo={setTimeout:function(e,t){for(var r=[],h=2;h<arguments.length;h++)r[h-2]=arguments[h];return setTimeout.apply(void 0,ft([e,t],ut(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function hs(e){qo.setTimeout(function(){throw e})}function ui(){}function Mt(e){e()}var Tr=(function(e){Oe(t,e);function t(r){var h=e.call(this)||this;return h.isStopped=!1,r?(h.destination=r,ds(r)&&r.add(h)):h.destination=tn,h}return t.create=function(r,h,v){return new pt(r,h,v)},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})(Bt),Qo=(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(h){At(h)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(h){At(h)}else At(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){At(r)}},e})(),pt=(function(e){Oe(t,e);function t(r,h,v){var E=e.call(this)||this,C;return fe(r)||!r?C={next:r??void 0,error:h??void 0,complete:v??void 0}:C=r,E.destination=new Qo(C),E}return t})(Tr);function At(e){hs(e)}function en(e){throw e}var tn={closed:!0,next:ui,error:en,complete:ui},Dr=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function us(e){return e}function rn(e){return e.length===0?us:e.length===1?e[0]:function(r){return e.reduce(function(h,v){return v(h)},r)}}var ke=(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,h){var v=this,E=on(t)?t:new pt(t,r,h);return Mt(function(){var C=v,i=C.operator,c=C.source;E.add(i?i.call(E,c):c?v._subscribe(E):v._trySubscribe(E))}),E},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var h=this;return r=fi(r),new r(function(v,E){var C=new pt({next:function(i){try{t(i)}catch(c){E(c),C.unsubscribe()}},error:E,complete:v});h.subscribe(C)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[Dr]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return rn(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=fi(t),new t(function(h,v){var E;r.subscribe(function(C){return E=C},function(C){return v(C)},function(){return h(E)})})},e.create=function(t){return new e(t)},e})();function fi(e){var t;return(t=e??Jo.Promise)!==null&&t!==void 0?t:Promise}function sn(e){return e&&fe(e.next)&&fe(e.error)&&fe(e.complete)}function on(e){return e&&e instanceof Tr||sn(e)&&ds(e)}function nn(e){return fe(e==null?void 0:e.lift)}function It(e){return function(t){if(nn(t))return t.lift(function(r){try{return e(r,this)}catch(h){this.error(h)}});throw new TypeError("Unable to lift unknown Observable type")}}function Xt(e,t,r,h,v){return new an(e,t,r,h,v)}var an=(function(e){Oe(t,e);function t(r,h,v,E,C,i){var c=e.call(this,r)||this;return c.onFinalize=C,c.shouldUnsubscribe=i,c._next=h?function(d){try{h(d)}catch(g){r.error(g)}}:e.prototype._next,c._error=E?function(d){try{E(d)}catch(g){r.error(g)}finally{this.unsubscribe()}}:e.prototype._error,c._complete=v?function(){try{v()}catch(d){r.error(d)}finally{this.unsubscribe()}}:e.prototype._complete,c}return t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var h=this.closed;e.prototype.unsubscribe.call(this),!h&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t})(Tr),cn=cs(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),fs=(function(e){Oe(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 h=new _i(this,this);return h.operator=r,h},t.prototype._throwIfClosed=function(){if(this.closed)throw new cn},t.prototype.next=function(r){var h=this;Mt(function(){var v,E;if(h._throwIfClosed(),!h.isStopped){h.currentObservers||(h.currentObservers=Array.from(h.observers));try{for(var C=Ke(h.currentObservers),i=C.next();!i.done;i=C.next()){var c=i.value;c.next(r)}}catch(d){v={error:d}}finally{try{i&&!i.done&&(E=C.return)&&E.call(C)}finally{if(v)throw v.error}}}})},t.prototype.error=function(r){var h=this;Mt(function(){if(h._throwIfClosed(),!h.isStopped){h.hasError=h.isStopped=!0,h.thrownError=r;for(var v=h.observers;v.length;)v.shift().error(r)}})},t.prototype.complete=function(){var r=this;Mt(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var h=r.observers;h.length;)h.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 h=this,v=this,E=v.hasError,C=v.isStopped,i=v.observers;return E||C?ls:(this.currentObservers=null,i.push(r),new Bt(function(){h.currentObservers=null,Wt(i,r)}))},t.prototype._checkFinalizedStatuses=function(r){var h=this,v=h.hasError,E=h.thrownError,C=h.isStopped;v?r.error(E):C&&r.complete()},t.prototype.asObservable=function(){var r=new ke;return r.source=this,r},t.create=function(r,h){return new _i(r,h)},t})(ke),_i=(function(e){Oe(t,e);function t(r,h){var v=e.call(this)||this;return v.destination=r,v.source=h,v}return t.prototype.next=function(r){var h,v;(v=(h=this.destination)===null||h===void 0?void 0:h.next)===null||v===void 0||v.call(h,r)},t.prototype.error=function(r){var h,v;(v=(h=this.destination)===null||h===void 0?void 0:h.error)===null||v===void 0||v.call(h,r)},t.prototype.complete=function(){var r,h;(h=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||h===void 0||h.call(r)},t.prototype._subscribe=function(r){var h,v;return(v=(h=this.source)===null||h===void 0?void 0:h.subscribe(r))!==null&&v!==void 0?v:ls},t})(fs),ln={now:function(){return Date.now()}},dn=(function(e){Oe(t,e);function t(r,h){return e.call(this)||this}return t.prototype.schedule=function(r,h){return this},t})(Bt),gi={setInterval:function(e,t){for(var r=[],h=2;h<arguments.length;h++)r[h-2]=arguments[h];return setInterval.apply(void 0,ft([e,t],ut(r)))},clearInterval:function(e){return clearInterval(e)},delegate:void 0},hn=(function(e){Oe(t,e);function t(r,h){var v=e.call(this,r,h)||this;return v.scheduler=r,v.work=h,v.pending=!1,v}return t.prototype.schedule=function(r,h){var v;if(h===void 0&&(h=0),this.closed)return this;this.state=r;var E=this.id,C=this.scheduler;return E!=null&&(this.id=this.recycleAsyncId(C,E,h)),this.pending=!0,this.delay=h,this.id=(v=this.id)!==null&&v!==void 0?v:this.requestAsyncId(C,this.id,h),this},t.prototype.requestAsyncId=function(r,h,v){return v===void 0&&(v=0),gi.setInterval(r.flush.bind(r,this),v)},t.prototype.recycleAsyncId=function(r,h,v){if(v===void 0&&(v=0),v!=null&&this.delay===v&&this.pending===!1)return h;h!=null&&gi.clearInterval(h)},t.prototype.execute=function(r,h){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var v=this._execute(r,h);if(v)return v;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,h){var v=!1,E;try{this.work(r)}catch(C){v=!0,E=C||new Error("Scheduled action threw falsy error")}if(v)return this.unsubscribe(),E},t.prototype.unsubscribe=function(){if(!this.closed){var r=this,h=r.id,v=r.scheduler,E=v.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Wt(E,this),h!=null&&(this.id=this.recycleAsyncId(v,h,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t})(dn),vi=(function(){function e(t,r){r===void 0&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(t,r,h){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(h,r)},e.now=ln.now,e})(),un=(function(e){Oe(t,e);function t(r,h){h===void 0&&(h=vi.now);var v=e.call(this,r,h)||this;return v.actions=[],v._active=!1,v}return t.prototype.flush=function(r){var h=this.actions;if(this._active){h.push(r);return}var v;this._active=!0;do if(v=r.execute(r.state,r.delay))break;while(r=h.shift());if(this._active=!1,v){for(;r=h.shift();)r.unsubscribe();throw v}},t})(vi),fn=new un(hn),_n=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"});function gn(e){return fe(e==null?void 0:e.then)}function vn(e){return fe(e[Dr])}function pn(e){return Symbol.asyncIterator&&fe(e==null?void 0:e[Symbol.asyncIterator])}function mn(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 bn(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Sn=bn();function yn(e){return fe(e==null?void 0:e[Sn])}function Cn(e){return mo(this,arguments,function(){var r,h,v,E;return ts(this,function(C){switch(C.label){case 0:r=e.getReader(),C.label=1;case 1:C.trys.push([1,,9,10]),C.label=2;case 2:return[4,je(r.read())];case 3:return h=C.sent(),v=h.value,E=h.done,E?[4,je(void 0)]:[3,5];case 4:return[2,C.sent()];case 5:return[4,je(v)];case 6:return[4,C.sent()];case 7:return C.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function wn(e){return fe(e==null?void 0:e.getReader)}function _s(e){if(e instanceof ke)return e;if(e!=null){if(vn(e))return En(e);if(_n(e))return kn(e);if(gn(e))return Bn(e);if(pn(e))return gs(e);if(yn(e))return In(e);if(wn(e))return Rn(e)}throw mn(e)}function En(e){return new ke(function(t){var r=e[Dr]();if(fe(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function kn(e){return new ke(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()})}function Bn(e){return new ke(function(t){e.then(function(r){t.closed||(t.next(r),t.complete())},function(r){return t.error(r)}).then(null,hs)})}function In(e){return new ke(function(t){var r,h;try{for(var v=Ke(e),E=v.next();!E.done;E=v.next()){var C=E.value;if(t.next(C),t.closed)return}}catch(i){r={error:i}}finally{try{E&&!E.done&&(h=v.return)&&h.call(v)}finally{if(r)throw r.error}}t.complete()})}function gs(e){return new ke(function(t){xn(e,t).catch(function(r){return t.error(r)})})}function Rn(e){return gs(Cn(e))}function xn(e,t){var r,h,v,E;return po(this,void 0,void 0,function(){var C,i;return ts(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=bo(e),c.label=1;case 1:return[4,r.next()];case 2:if(h=c.sent(),!!h.done)return[3,4];if(C=h.value,t.next(C),t.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i=c.sent(),v={error:i},[3,11];case 6:return c.trys.push([6,,9,10]),h&&!h.done&&(E=r.return)?[4,E.call(r)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(v)throw v.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function An(e,t){return It(function(r,h){var v=0;r.subscribe(Xt(h,function(E){h.next(e.call(t,E,v++))}))})}function vs(e,t){return It(function(r,h){var v=0;r.subscribe(Xt(h,function(E){return e.call(t,E,v++)&&h.next(E)}))})}function ps(e,t){return t===void 0&&(t=fn),It(function(r,h){var v=null,E=null,C=null,i=function(){if(v){v.unsubscribe(),v=null;var d=E;E=null,h.next(d)}};function c(){var d=C+e,g=t.now();if(g<d){v=this.schedule(void 0,d-g),h.add(v);return}i()}r.subscribe(Xt(h,function(d){E=d,C=t.now(),v||(v=t.schedule(c,e),h.add(v))},function(){i(),h.complete()},void 0,function(){E=v=null}))})}function ms(e,t){return t===void 0&&(t=us),e=e??Ln,It(function(r,h){var v,E=!0;r.subscribe(Xt(h,function(C){var i=t(C);(E||!e(v,i))&&(E=!1,v=i,h.next(C))}))})}function Ln(e,t){return e===t}function Tn(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new fs}:t,h=e.resetOnError,v=h===void 0?!0:h,E=e.resetOnComplete,C=E===void 0?!0:E,i=e.resetOnRefCountZero,c=i===void 0?!0:i;return function(d){var g,l,_,b=0,w=!1,f=!1,s=function(){l==null||l.unsubscribe(),l=void 0},n=function(){s(),g=_=void 0,w=f=!1},o=function(){var a=g;n(),a==null||a.unsubscribe()};return It(function(a,u){b++,!f&&!w&&s();var S=_=_??r();u.add(function(){b--,b===0&&!f&&!w&&(l=dr(o,c))}),S.subscribe(u),!g&&b>0&&(g=new pt({next:function(m){return S.next(m)},error:function(m){f=!0,s(),l=dr(n,v,m),S.error(m)},complete:function(){w=!0,s(),l=dr(n,C),S.complete()}}),_s(a).subscribe(g))})(d)}}function dr(e,t){for(var r=[],h=2;h<arguments.length;h++)r[h-2]=arguments[h];if(t===!0){e();return}if(t!==!1){var v=new pt({next:function(){v.unsubscribe(),e()}});return _s(t.apply(void 0,ft([],ut(r)))).subscribe(v)}}/**
|
|
47
|
-
* Copyright (c) 2017 The xterm.js authors. All rights reserved.
|
|
48
|
-
* @license MIT
|
|
49
|
-
*/const Dn=2,On=1;class Nn{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 h=this._terminal._core;return(this._terminal.rows!==r.rows||this._terminal.cols!==r.cols)&&(h._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 h=this._terminal.options.scrollback===0?0:t.viewport.scrollBarWidth,v=window.getComputedStyle(this._terminal.element.parentElement),E=parseInt(v.getPropertyValue("height")),C=Math.max(0,parseInt(v.getPropertyValue("width"))),i=window.getComputedStyle(this._terminal.element),c={top:parseInt(i.getPropertyValue("padding-top")),bottom:parseInt(i.getPropertyValue("padding-bottom")),right:parseInt(i.getPropertyValue("padding-right")),left:parseInt(i.getPropertyValue("padding-left"))},d=c.top+c.bottom,g=c.right+c.left,l=E-d,_=C-g-h,{width:b,height:w}=this.getCellSize();return{cols:Math.max(Dn,Math.floor(_/b)),rows:Math.max(On,Math.floor(l/w))}}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}}function Mn({}){}function Pn(e){return e.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit",hour12:!0})}function Fn(e){const r=new Date().getTime()-e.getTime(),h=Math.floor(r/1e3)*-1,v=new Intl.RelativeTimeFormat("en",{numeric:"auto"});return Math.abs(h)<60?v.format(Math.round(h),"second"):Math.abs(h)<3600?v.format(Math.round(h/60),"minute"):Math.abs(h)<86400?v.format(Math.round(h/3600),"hour"):v.format(Math.round(h/86400),"day")}var Hn=Object.getOwnPropertyDescriptor,Un=(e,t,r,h)=>{for(var v=h>1?void 0:h?Hn(t,r):t,E=e.length-1,C;E>=0;E--)(C=e[E])&&(v=C(v)||v);return v};let mr=class extends ue{onClose(e){e.defaultPrevented&&e.preventDefault();const t=new CustomEvent("closed");this.dispatchEvent(t)}render(){return Z`
|
|
50
|
-
<div class="close-button tooltip">
|
|
51
|
-
<span class="tooltiptext">Close</span>
|
|
52
|
-
<vscode-button
|
|
53
|
-
class="control"
|
|
54
|
-
appearance="icon"
|
|
55
|
-
aria-label="Close"
|
|
56
|
-
@click="${this.onClose}"
|
|
57
|
-
>
|
|
58
|
-
<span class="icon icon-close"></span>
|
|
59
|
-
</vscode-button>
|
|
60
|
-
</div>
|
|
61
|
-
`}};mr.styles=Se`
|
|
62
|
-
:host {
|
|
63
|
-
--button-icon-hover-background: var(--vscode-toolbar-hoverBackground);
|
|
64
|
-
--tooltip-background: #343434;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.close-button .control {
|
|
68
|
-
outline: none;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.close-button {
|
|
72
|
-
position: absolute;
|
|
73
|
-
top: 5px;
|
|
74
|
-
right: 5px;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.close-button,
|
|
78
|
-
.close-button:hover {
|
|
79
|
-
border: none;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
@media (prefers-color-scheme: light) {
|
|
83
|
-
.icon-close {
|
|
84
|
-
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");
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
@media (prefers-color-scheme: dark) {
|
|
89
|
-
.icon-close {
|
|
90
|
-
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");
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.tooltip .tooltiptext {
|
|
95
|
-
visibility: hidden;
|
|
96
|
-
width: 50px;
|
|
97
|
-
background-color: var(--tooltip-background);
|
|
98
|
-
color: #fff;
|
|
99
|
-
text-align: center;
|
|
100
|
-
padding: 5px 0;
|
|
101
|
-
position: absolute;
|
|
102
|
-
z-index: 1;
|
|
103
|
-
bottom: 150%;
|
|
104
|
-
right: -60%;
|
|
105
|
-
margin-left: -60px;
|
|
106
|
-
top: 126%;
|
|
107
|
-
height: 15px;
|
|
108
|
-
box-shadow: 2px 2px 4px -2px var(--vscode-input-border);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.tooltip .tooltiptext::after {
|
|
112
|
-
content: ' ';
|
|
113
|
-
position: absolute;
|
|
114
|
-
bottom: 100%; /* At the top of the tooltip */
|
|
115
|
-
left: 50%;
|
|
116
|
-
margin-left: -5px;
|
|
117
|
-
border-width: 5px;
|
|
118
|
-
border-style: solid;
|
|
119
|
-
border-color: transparent transparent var(--tooltip-background) transparent;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.tooltip .tooltiptext {
|
|
123
|
-
transition-delay: 1s;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.tooltip:hover .tooltiptext {
|
|
127
|
-
visibility: visible;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.tooltip:not(:hover) .tooltiptext {
|
|
131
|
-
transition-delay: 0s;
|
|
132
|
-
}
|
|
133
|
-
`;mr=Un([pe("close-cell-button")],mr);const bs=Z`
|
|
134
|
-
<svg
|
|
135
|
-
class="icon"
|
|
136
|
-
width="16"
|
|
137
|
-
height="16"
|
|
138
|
-
viewBox="0 0 16 16"
|
|
139
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
140
|
-
fill="currentColor"
|
|
141
|
-
>
|
|
142
|
-
<path
|
|
143
|
-
fill-rule="evenodd"
|
|
144
|
-
clip-rule="evenodd"
|
|
145
|
-
d="M4 4l1-1h5.414L14 6.586V14l-1 1H5l-1-1V4zm9 3l-3-3H5v10h8V7z"
|
|
146
|
-
/>
|
|
147
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M3 1L2 2v10l1 1V2h6.414l-1-1H3z" />
|
|
148
|
-
</svg>
|
|
149
|
-
`;var $n=Object.defineProperty,Wn=Object.getOwnPropertyDescriptor,Ss=(e,t,r,h)=>{for(var v=h>1?void 0:h?Wn(t,r):t,E=e.length-1,C;E>=0;E--)(C=e[E])&&(v=(h?C(t,r,v):C(v))||v);return h&&v&&$n(t,r,v),v};let Vt=class extends ue{constructor(){super(...arguments),this.copyText="Copy"}onCopy(e){e.defaultPrevented&&e.preventDefault();const t=new CustomEvent("onCopy");this.dispatchEvent(t)}render(){return Z`
|
|
150
|
-
<vscode-button appearance="secondary" @click=${this.onCopy}>
|
|
151
|
-
${bs} ${this.copyText}
|
|
152
|
-
</vscode-button>
|
|
153
|
-
`}};Vt.styles=Se`
|
|
154
|
-
vscode-button {
|
|
155
|
-
color: var(--vscode-button-foreground);
|
|
156
|
-
background-color: var(--vscode-button-background);
|
|
157
|
-
transform: scale(0.9);
|
|
158
|
-
}
|
|
159
|
-
vscode-button:hover {
|
|
160
|
-
background: var(--vscode-button-hoverBackground);
|
|
161
|
-
}
|
|
162
|
-
vscode-button:focus {
|
|
163
|
-
outline: #007fd4 1px solid;
|
|
164
|
-
}
|
|
165
|
-
.icon {
|
|
166
|
-
width: 13px;
|
|
167
|
-
margin: 0 5px 0 -5px;
|
|
168
|
-
padding: 0;
|
|
169
|
-
}
|
|
170
|
-
`;Ss([J({type:String})],Vt.prototype,"copyText",2);Vt=Ss([pe("copy-button")],Vt);const Vn=Z`<svg
|
|
171
|
-
class="icon"
|
|
172
|
-
width="16"
|
|
173
|
-
height="16"
|
|
174
|
-
viewBox="0 0 16 16"
|
|
175
|
-
fill="currentColor"
|
|
176
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
177
|
-
>
|
|
178
|
-
<path
|
|
179
|
-
fill-rule="evenodd"
|
|
180
|
-
clip-rule="evenodd"
|
|
181
|
-
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"
|
|
182
|
-
/>
|
|
183
|
-
</svg>`,jn=Z`
|
|
184
|
-
<svg
|
|
185
|
-
class="icon"
|
|
186
|
-
width="16"
|
|
187
|
-
height="16"
|
|
188
|
-
viewBox="0 0 16 16"
|
|
189
|
-
fill="currentColor"
|
|
190
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
191
|
-
>
|
|
192
|
-
<path
|
|
193
|
-
fill-rule="evenodd"
|
|
194
|
-
clip-rule="evenodd"
|
|
195
|
-
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"
|
|
196
|
-
/>
|
|
197
|
-
</svg>
|
|
198
|
-
`;var Gn=Object.defineProperty,Kn=Object.getOwnPropertyDescriptor,He=(e,t,r,h)=>{for(var v=h>1?void 0:h?Kn(t,r):t,E=e.length-1,C;E>=0;E--)(C=e[E])&&(v=(h?C(t,r,v):C(v))||v);return h&&v&&Gn(t,r,v),v};let Be=class extends ue{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 Z`
|
|
199
|
-
<vscode-button
|
|
200
|
-
?disabled=${this.loading}
|
|
201
|
-
class=${e}
|
|
202
|
-
appearance="secondary"
|
|
203
|
-
@click=${this.onClick}
|
|
204
|
-
>
|
|
205
|
-
${ce(this.shareIcon,()=>Vn)} ${ce(this.saveIcon,()=>jn)}
|
|
206
|
-
${ce(this.loading,()=>Z`${this.loadingText}`,()=>Z`${this.text}`)}
|
|
207
|
-
</vscode-button>
|
|
208
|
-
`}};Be.styles=Se`
|
|
209
|
-
vscode-button {
|
|
210
|
-
color: var(--vscode-button-foreground);
|
|
211
|
-
background-color: var(--vscode-button-background);
|
|
212
|
-
transform: scale(0.9);
|
|
213
|
-
}
|
|
214
|
-
vscode-button:hover {
|
|
215
|
-
background: var(--vscode-button-hoverBackground);
|
|
216
|
-
}
|
|
217
|
-
vscode-button:focus {
|
|
218
|
-
outline: #007fd4 1px solid;
|
|
219
|
-
}
|
|
220
|
-
vscode-button.escalate {
|
|
221
|
-
background-color: var(--vscode-errorForeground);
|
|
222
|
-
}
|
|
223
|
-
.icon {
|
|
224
|
-
width: 13px;
|
|
225
|
-
margin: 0 5px 0 -5px;
|
|
226
|
-
padding: 0;
|
|
227
|
-
}
|
|
228
|
-
`;He([J({type:String})],Be.prototype,"text",2);He([J({type:String})],Be.prototype,"loadingText",2);He([J({type:Boolean,reflect:!0})],Be.prototype,"loading",2);He([J({type:Boolean,reflect:!0})],Be.prototype,"disabled",2);He([J({type:Boolean,reflect:!0})],Be.prototype,"shareIcon",2);He([J({type:Boolean,reflect:!0})],Be.prototype,"saveIcon",2);Be=He([pe("action-button")],Be);const pi=Z`
|
|
229
|
-
<svg
|
|
230
|
-
height="16"
|
|
231
|
-
aria-hidden="true"
|
|
232
|
-
viewBox="0 0 16 16"
|
|
233
|
-
version="1.1"
|
|
234
|
-
width="16"
|
|
235
|
-
class="icon"
|
|
236
|
-
data-view-component="true"
|
|
237
|
-
fill="currentColor"
|
|
238
|
-
>
|
|
239
|
-
<path
|
|
240
|
-
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"
|
|
241
|
-
></path>
|
|
242
|
-
</svg>
|
|
243
|
-
`;var zn=Object.defineProperty,Zn=Object.getOwnPropertyDescriptor,Or=(e,t,r,h)=>{for(var v=h>1?void 0:h?Zn(t,r):t,E=e.length-1,C;E>=0;E--)(C=e[E])&&(v=(h?C(t,r,v):C(v))||v);return h&&v&&zn(t,r,v),v};let mt=class extends ue{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 ce(this.disabled,()=>Z`
|
|
244
|
-
<vscode-button class=${e} disabled appearance="secondary">
|
|
245
|
-
${pi} ${this.text}
|
|
246
|
-
</vscode-button>
|
|
247
|
-
`,()=>Z`
|
|
248
|
-
<vscode-button class=${e} appearance="secondary" @click=${this.onGistClick}>
|
|
249
|
-
${pi} ${this.text}
|
|
250
|
-
</vscode-button>
|
|
251
|
-
`)}};mt.styles=Se`
|
|
252
|
-
vscode-button {
|
|
253
|
-
color: var(--vscode-button-foreground);
|
|
254
|
-
background-color: var(--vscode-button-background);
|
|
255
|
-
transform: scale(0.9);
|
|
256
|
-
}
|
|
257
|
-
vscode-button:hover {
|
|
258
|
-
background: var(--vscode-button-hoverBackground);
|
|
259
|
-
}
|
|
260
|
-
vscode-button:focus {
|
|
261
|
-
outline: #007fd4 1px solid;
|
|
262
|
-
}
|
|
263
|
-
vscode-button.escalate {
|
|
264
|
-
background-color: var(--vscode-errorForeground);
|
|
265
|
-
}
|
|
266
|
-
.icon {
|
|
267
|
-
width: 13px;
|
|
268
|
-
margin: 0 5px 0 -5px;
|
|
269
|
-
padding: 0;
|
|
270
|
-
}
|
|
271
|
-
`;Or([J({type:String})],mt.prototype,"text",2);Or([J({type:Boolean,reflect:!0})],mt.prototype,"disabled",2);mt=Or([pe("gist-cell")],mt);const ys=Z`
|
|
272
|
-
<svg
|
|
273
|
-
width="16"
|
|
274
|
-
height="16"
|
|
275
|
-
viewBox="0 0 16 16"
|
|
276
|
-
fill="currentColor"
|
|
277
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
278
|
-
class="icon"
|
|
279
|
-
>
|
|
280
|
-
<path
|
|
281
|
-
fill-rule="evenodd"
|
|
282
|
-
clip-rule="evenodd"
|
|
283
|
-
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"
|
|
284
|
-
fill="currentColor"
|
|
285
|
-
/>
|
|
286
|
-
</svg>
|
|
287
|
-
`;var Xn=Object.defineProperty,Yn=Object.getOwnPropertyDescriptor,Nr=(e,t,r,h)=>{for(var v=h>1?void 0:h?Yn(t,r):t,E=e.length-1,C;E>=0;E--)(C=e[E])&&(v=(h?C(t,r,v):C(v))||v);return h&&v&&Xn(t,r,v),v};let bt=class extends ue{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 ce(this.disabled,()=>{},()=>Z`
|
|
288
|
-
<vscode-button class=${e} appearance="secondary" @click=${this.onOpenClick}>
|
|
289
|
-
${ys} ${this.openText}
|
|
290
|
-
</vscode-button>
|
|
291
|
-
`)}};bt.styles=Se`
|
|
292
|
-
vscode-button {
|
|
293
|
-
color: var(--vscode-button-foreground);
|
|
294
|
-
background-color: var(--vscode-button-background);
|
|
295
|
-
transform: scale(0.9);
|
|
296
|
-
}
|
|
297
|
-
vscode-button:hover {
|
|
298
|
-
background: var(--vscode-button-hoverBackground);
|
|
299
|
-
}
|
|
300
|
-
vscode-button:focus {
|
|
301
|
-
outline: #007fd4 1px solid;
|
|
302
|
-
}
|
|
303
|
-
.icon {
|
|
304
|
-
width: 13px;
|
|
305
|
-
margin: 0 5px 0 -5px;
|
|
306
|
-
padding: 0;
|
|
307
|
-
}
|
|
308
|
-
`;Nr([J({type:String})],bt.prototype,"openText",2);Nr([J({type:Boolean,reflect:!0})],bt.prototype,"disabled",2);bt=Nr([pe("open-cell")],bt);var Jn=Object.defineProperty,qn=Object.getOwnPropertyDescriptor,Mr=(e,t,r,h)=>{for(var v=h>1?void 0:h?qn(t,r):t,E=e.length-1,C;E>=0;E--)(C=e[E])&&(v=(h?C(t,r,v):C(v))||v);return h&&v&&Jn(t,r,v),v};let jt=class extends ue{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 Z`
|
|
309
|
-
<action-button
|
|
310
|
-
?loading=${this.loading}
|
|
311
|
-
text="${e}"
|
|
312
|
-
?saveIcon=${!0}
|
|
313
|
-
@onClick="${this.handleClick}"
|
|
314
|
-
>
|
|
315
|
-
</action-button>
|
|
316
|
-
`}};Mr([J({type:Boolean,reflect:!0})],jt.prototype,"loading",2);Mr([J({type:Boolean,reflect:!0})],jt.prototype,"signedIn",2);jt=Mr([pe("save-button")],jt);var Qn=Object.defineProperty,ea=Object.getOwnPropertyDescriptor,Cs=(e,t,r,h)=>{for(var v=h>1?void 0:h?ea(t,r):t,E=e.length-1,C;E>=0;E--)(C=e[E])&&(v=(h?C(t,r,v):C(v))||v);return h&&v&&Qn(t,r,v),v};let br=class extends ue{constructor(){super(...arguments),this.loading=!1}handleClick(e){e.defaultPrevented&&e.preventDefault(),this.dispatchEvent(new CustomEvent("onClick"))}render(){return Z`
|
|
317
|
-
<action-button
|
|
318
|
-
?loading=${this.loading}
|
|
319
|
-
text="Share"
|
|
320
|
-
?shareIcon=${!0}
|
|
321
|
-
@onClick="${this.handleClick}"
|
|
322
|
-
>
|
|
323
|
-
</action-button>
|
|
324
|
-
`}};Cs([J({type:Boolean,reflect:!0})],br.prototype,"loading",2);br=Cs([pe("share-button")],br);const ta=Se`
|
|
325
|
-
:host {
|
|
326
|
-
--vscode-font-weight: normal;
|
|
327
|
-
--vscode-font-size: 13px;
|
|
328
|
-
--vscode-editor-font-family: "Operator Mono Lig", "Cascadia Code";
|
|
329
|
-
--vscode-editor-font-weight: normal;
|
|
330
|
-
--vscode-editor-font-size: 15px;
|
|
331
|
-
--vscode-foreground: #cccccc;
|
|
332
|
-
--vscode-errorForeground: #f85149;
|
|
333
|
-
--vscode-descriptionForeground: #9d9d9d;
|
|
334
|
-
--vscode-icon-foreground: #cccccc;
|
|
335
|
-
--vscode-focusBorder: #0078d4;
|
|
336
|
-
--vscode-selection-background: rgba(243, 239, 245, 0.31);
|
|
337
|
-
--vscode-textSeparator-foreground: #21262d;
|
|
338
|
-
--vscode-textLink-foreground: #4daafc;
|
|
339
|
-
--vscode-textLink-activeForeground: #4daafc;
|
|
340
|
-
--vscode-textPreformat-foreground: #d0d0d0;
|
|
341
|
-
--vscode-textBlockQuote-background: #2b2b2b;
|
|
342
|
-
--vscode-textBlockQuote-border: #616161;
|
|
343
|
-
--vscode-textCodeBlock-background: #2b2b2b;
|
|
344
|
-
--vscode-widget-shadow: rgba(0, 0, 0, 0.36);
|
|
345
|
-
--vscode-input-background: #313131;
|
|
346
|
-
--vscode-input-foreground: #cccccc;
|
|
347
|
-
--vscode-inputOption-activeBorder: #2488db;
|
|
348
|
-
--vscode-inputOption-hoverBackground: rgba(90, 93, 94, 0.5);
|
|
349
|
-
--vscode-inputOption-activeBackground: #2489db82;
|
|
350
|
-
--vscode-inputOption-activeForeground: #ffffff;
|
|
351
|
-
--vscode-input-placeholderForeground: #a6a6a6;
|
|
352
|
-
--vscode-inputValidation-infoBackground: #063b49;
|
|
353
|
-
--vscode-inputValidation-infoBorder: #007acc;
|
|
354
|
-
--vscode-inputValidation-warningBackground: #352a05;
|
|
355
|
-
--vscode-inputValidation-warningBorder: #b89500;
|
|
356
|
-
--vscode-inputValidation-errorBackground: #5a1d1d;
|
|
357
|
-
--vscode-inputValidation-errorBorder: #be1100;
|
|
358
|
-
--vscode-dropdown-background: #313131;
|
|
359
|
-
--vscode-dropdown-foreground: #cccccc;
|
|
360
|
-
--vscode-dropdown-border: #3c3c3c;
|
|
361
|
-
--vscode-checkbox-background: #313131;
|
|
362
|
-
--vscode-checkbox-foreground: #cccccc;
|
|
363
|
-
--vscode-checkbox-border: #6b6b6b;
|
|
364
|
-
--vscode-button-foreground: #ffffff;
|
|
365
|
-
--vscode-button-background: #0078d4;
|
|
366
|
-
--vscode-button-hoverBackground: #026ec1;
|
|
367
|
-
--vscode-button-secondaryForeground: #cccccc;
|
|
368
|
-
--vscode-button-secondaryBackground: #313131;
|
|
369
|
-
--vscode-button-secondaryHoverBackground: #3c3c3c;
|
|
370
|
-
--vscode-badge-background: #616161;
|
|
371
|
-
--vscode-badge-foreground: #f8f8f8;
|
|
372
|
-
--vscode-scrollbar-shadow: #010409;
|
|
373
|
-
--vscode-scrollbarSlider-background: rgba(121, 121, 121, 0.4);
|
|
374
|
-
--vscode-scrollbarSlider-hoverBackground: rgba(100, 100, 100, 0.7);
|
|
375
|
-
--vscode-scrollbarSlider-activeBackground: rgba(191, 191, 191, 0.4);
|
|
376
|
-
--vscode-progressBar-background: #0078d4;
|
|
377
|
-
--vscode-editorError-foreground: #f85149;
|
|
378
|
-
--vscode-editorWarning-foreground: #ffe45e;
|
|
379
|
-
--vscode-editorInfo-foreground: #5eadf2;
|
|
380
|
-
--vscode-editorHint-foreground: rgba(238, 238, 238, 0.7);
|
|
381
|
-
--vscode-sash-hoverBorder: #0078d4;
|
|
382
|
-
--vscode-editor-background: #1e1e1e;
|
|
383
|
-
--vscode-editor-foreground: #d4d4d4;
|
|
384
|
-
--vscode-editorWidget-background: #202020;
|
|
385
|
-
--vscode-editorWidget-foreground: #cccccc;
|
|
386
|
-
--vscode-editorWidget-border: #3c3c3c;
|
|
387
|
-
--vscode-quickInput-background: #222222;
|
|
388
|
-
--vscode-quickInput-foreground: #cccccc;
|
|
389
|
-
--vscode-quickInputTitle-background: rgba(255, 255, 255, 0.1);
|
|
390
|
-
--vscode-pickerGroup-foreground: #3794ff;
|
|
391
|
-
--vscode-pickerGroup-border: #3c3c3c;
|
|
392
|
-
--vscode-keybindingLabel-background: rgba(128, 128, 128, 0.17);
|
|
393
|
-
--vscode-keybindingLabel-foreground: #cccccc;
|
|
394
|
-
--vscode-keybindingLabel-border: rgba(51, 51, 51, 0.6);
|
|
395
|
-
--vscode-keybindingLabel-bottomBorder: rgba(68, 68, 68, 0.6);
|
|
396
|
-
--vscode-editor-selectionBackground: rgba(243, 239, 245, 0.2);
|
|
397
|
-
--vscode-editor-selectionForeground: #f3eff5;
|
|
398
|
-
--vscode-editor-inactiveSelectionBackground: #3a3d41;
|
|
399
|
-
--vscode-editor-selectionHighlightBackground: #add6ff26;
|
|
400
|
-
--vscode-editor-findMatchBackground: #9e6a03;
|
|
401
|
-
--vscode-editor-findMatchHighlightBackground: rgba(237, 18, 146, 0.4);
|
|
402
|
-
--vscode-editor-findRangeHighlightBackground: rgba(58, 61, 65, 0.4);
|
|
403
|
-
--vscode-editor-findMatchBorder: rgba(237, 18, 146, 0.6);
|
|
404
|
-
--vscode-searchEditor-findMatchBackground: rgba(237, 18, 146, 0.26);
|
|
405
|
-
--vscode-editor-hoverHighlightBackground: rgba(38, 79, 120, 0.25);
|
|
406
|
-
--vscode-editorHoverWidget-background: #202020;
|
|
407
|
-
--vscode-editorHoverWidget-foreground: #cccccc;
|
|
408
|
-
--vscode-editorHoverWidget-border: #3c3c3c;
|
|
409
|
-
--vscode-editorHoverWidget-statusBarBackground: #202020;
|
|
410
|
-
--vscode-editorLink-activeForeground: #4e94ce;
|
|
411
|
-
--vscode-editorInlayHint-foreground: rgba(243, 239, 245, 0.8);
|
|
412
|
-
--vscode-editorInlayHint-background: rgba(237, 18, 146, 0.6);
|
|
413
|
-
--vscode-editorInlayHint-typeForeground: rgba(243, 239, 245, 0.8);
|
|
414
|
-
--vscode-editorInlayHint-typeBackground: rgba(237, 18, 146, 0.6);
|
|
415
|
-
--vscode-editorInlayHint-parameterForeground: rgba(243, 239, 245, 0.8);
|
|
416
|
-
--vscode-editorInlayHint-parameterBackground: rgba(237, 18, 146, 0.6);
|
|
417
|
-
--vscode-editorLightBulb-foreground: #ffcc00;
|
|
418
|
-
--vscode-editorLightBulbAutoFix-foreground: #75beff;
|
|
419
|
-
--vscode-diffEditor-insertedTextBackground: rgba(155, 185, 85, 0.2);
|
|
420
|
-
--vscode-diffEditor-removedTextBackground: rgba(255, 0, 0, 0.2);
|
|
421
|
-
--vscode-diffEditor-diagonalFill: rgba(204, 204, 204, 0.2);
|
|
422
|
-
--vscode-list-focusOutline: rgba(243, 239, 245, 0.2);
|
|
423
|
-
--vscode-list-activeSelectionBackground: rgba(243, 239, 245, 0.2);
|
|
424
|
-
--vscode-list-activeSelectionForeground: #ffffff;
|
|
425
|
-
--vscode-list-inactiveSelectionBackground: rgba(243, 239, 245, 0.13);
|
|
426
|
-
--vscode-list-inactiveSelectionForeground: rgba(243, 239, 245, 0.8);
|
|
427
|
-
--vscode-list-inactiveFocusOutline: rgba(243, 239, 245, 0.13);
|
|
428
|
-
--vscode-list-hoverBackground: rgba(243, 239, 245, 0.13);
|
|
429
|
-
--vscode-list-dropBackground: #383b3d;
|
|
430
|
-
--vscode-list-highlightForeground: #0078d4;
|
|
431
|
-
--vscode-list-focusHighlightForeground: #0078d4;
|
|
432
|
-
--vscode-list-invalidItemForeground: #b89500;
|
|
433
|
-
--vscode-list-errorForeground: #f85149;
|
|
434
|
-
--vscode-list-warningForeground: #cca700;
|
|
435
|
-
--vscode-listFilterWidget-background: #760949;
|
|
436
|
-
--vscode-listFilterWidget-outline: rgba(0, 0, 0, 0);
|
|
437
|
-
--vscode-listFilterWidget-noMatchesOutline: #f85149;
|
|
438
|
-
--vscode-list-filterMatchBackground: rgba(237, 18, 146, 0.4);
|
|
439
|
-
--vscode-tree-indentGuidesStroke: rgba(243, 239, 245, 0.4);
|
|
440
|
-
--vscode-tree-tableColumnsBorder: rgba(204, 204, 204, 0.13);
|
|
441
|
-
--vscode-tree-tableOddRowsBackground: rgba(243, 239, 245, 0.04);
|
|
442
|
-
--vscode-list-deemphasizedForeground: #8c8c8c;
|
|
443
|
-
--vscode-quickInputList-focusForeground: #ffffff;
|
|
444
|
-
--vscode-quickInputList-focusBackground: #0078d4;
|
|
445
|
-
--vscode-menu-border: #454545;
|
|
446
|
-
--vscode-menu-foreground: #cccccc;
|
|
447
|
-
--vscode-menu-background: #252526;
|
|
448
|
-
--vscode-menu-selectionForeground: #cccccc;
|
|
449
|
-
--vscode-menu-selectionBackground: #0078d4;
|
|
450
|
-
--vscode-menu-separatorBackground: #454545;
|
|
451
|
-
--vscode-toolbar-hoverBackground: rgba(90, 93, 94, 0.31);
|
|
452
|
-
--vscode-toolbar-activeBackground: rgba(99, 102, 103, 0.31);
|
|
453
|
-
--vscode-editor-snippetTabstopHighlightBackground: rgba(124, 124, 124, 0.3);
|
|
454
|
-
--vscode-editor-snippetFinalTabstopHighlightBorder: #525252;
|
|
455
|
-
--vscode-breadcrumb-foreground: #aaaaaa;
|
|
456
|
-
--vscode-breadcrumb-background: #1f1f1f;
|
|
457
|
-
--vscode-breadcrumb-focusForeground: #ffffff;
|
|
458
|
-
--vscode-breadcrumb-activeSelectionForeground: #ffffff;
|
|
459
|
-
--vscode-breadcrumbPicker-background: #202020;
|
|
460
|
-
--vscode-merge-currentHeaderBackground: #005c65;
|
|
461
|
-
--vscode-merge-currentContentBackground: #00434c;
|
|
462
|
-
--vscode-merge-incomingHeaderBackground: #474f60;
|
|
463
|
-
--vscode-merge-incomingContentBackground: #2e3647;
|
|
464
|
-
--vscode-merge-commonHeaderBackground: #282d39;
|
|
465
|
-
--vscode-merge-commonContentBackground: #414652;
|
|
466
|
-
--vscode-editorOverviewRuler-currentContentForeground: #005c65;
|
|
467
|
-
--vscode-editorOverviewRuler-incomingContentForeground: #474f60;
|
|
468
|
-
--vscode-editorOverviewRuler-commonContentForeground: #282d39;
|
|
469
|
-
--vscode-editorOverviewRuler-findMatchForeground: rgba(209, 134, 22, 0.49);
|
|
470
|
-
--vscode-editorOverviewRuler-selectionHighlightForeground: rgba(
|
|
471
|
-
160,
|
|
472
|
-
160,
|
|
473
|
-
160,
|
|
474
|
-
0.8
|
|
475
|
-
);
|
|
476
|
-
--vscode-editorOverviewRuler-unicodeForeground: rgba(209, 134, 22, 0.49);
|
|
477
|
-
--vscode-minimap-findMatchHighlight: #d18616;
|
|
478
|
-
--vscode-minimap-selectionOccurrenceHighlight: #676767;
|
|
479
|
-
--vscode-minimap-selectionHighlight: #264f78;
|
|
480
|
-
--vscode-minimap-errorHighlight: rgba(255, 18, 18, 0.7);
|
|
481
|
-
--vscode-minimap-warningHighlight: #ffe45e;
|
|
482
|
-
--vscode-minimap-foregroundOpacity: #000000;
|
|
483
|
-
--vscode-minimap-unicodeHighlight: #d18616;
|
|
484
|
-
--vscode-minimapSlider-background: rgba(121, 121, 121, 0.2);
|
|
485
|
-
--vscode-minimapSlider-hoverBackground: rgba(100, 100, 100, 0.35);
|
|
486
|
-
--vscode-minimapSlider-activeBackground: rgba(191, 191, 191, 0.2);
|
|
487
|
-
--vscode-problemsErrorIcon-foreground: #f85149;
|
|
488
|
-
--vscode-problemsWarningIcon-foreground: #ffe45e;
|
|
489
|
-
--vscode-problemsInfoIcon-foreground: #5eadf2;
|
|
490
|
-
--vscode-charts-foreground: #cccccc;
|
|
491
|
-
--vscode-charts-lines: rgba(243, 239, 245, 0.5);
|
|
492
|
-
--vscode-charts-red: #f85149;
|
|
493
|
-
--vscode-charts-blue: #5eadf2;
|
|
494
|
-
--vscode-charts-yellow: #ffe45e;
|
|
495
|
-
--vscode-charts-orange: #d18616;
|
|
496
|
-
--vscode-charts-green: #89d185;
|
|
497
|
-
--vscode-charts-purple: #b180d7;
|
|
498
|
-
--vscode-editor-lineHighlightBackground: #242d34;
|
|
499
|
-
--vscode-editor-lineHighlightBorder: #242d34;
|
|
500
|
-
--vscode-editor-rangeHighlightBackground: rgba(255, 255, 255, 0.04);
|
|
501
|
-
--vscode-editor-symbolHighlightBackground: rgba(237, 18, 146, 0.4);
|
|
502
|
-
--vscode-editorCursor-foreground: #44ffd2;
|
|
503
|
-
--vscode-editorWhitespace-foreground: rgba(227, 228, 226, 0.16);
|
|
504
|
-
--vscode-editorIndentGuide-background: #404040;
|
|
505
|
-
--vscode-editorIndentGuide-activeBackground: #707070;
|
|
506
|
-
--vscode-editorLineNumber-foreground: #6e7681;
|
|
507
|
-
--vscode-editorActiveLineNumber-foreground: #cccccc;
|
|
508
|
-
--vscode-editorLineNumber-activeForeground: #cccccc;
|
|
509
|
-
--vscode-editorRuler-foreground: #5a5a5a;
|
|
510
|
-
--vscode-editorCodeLens-foreground: #999999;
|
|
511
|
-
--vscode-editorBracketMatch-background: rgba(0, 100, 0, 0.1);
|
|
512
|
-
--vscode-editorBracketMatch-border: #888888;
|
|
513
|
-
--vscode-editorOverviewRuler-border: #010409;
|
|
514
|
-
--vscode-editorGutter-background: #1f1f1f;
|
|
515
|
-
--vscode-editorUnnecessaryCode-opacity: rgba(0, 0, 0, 0.67);
|
|
516
|
-
--vscode-editorGhostText-foreground: rgba(255, 255, 255, 0.34);
|
|
517
|
-
--vscode-editorOverviewRuler-rangeHighlightForeground: rgba(0, 122, 204, 0.6);
|
|
518
|
-
--vscode-editorOverviewRuler-errorForeground: rgba(255, 18, 18, 0.7);
|
|
519
|
-
--vscode-editorOverviewRuler-warningForeground: #ffe45e;
|
|
520
|
-
--vscode-editorOverviewRuler-infoForeground: #5eadf2;
|
|
521
|
-
--vscode-editorBracketHighlight-foreground1: #ffd700;
|
|
522
|
-
--vscode-editorBracketHighlight-foreground2: #da70d6;
|
|
523
|
-
--vscode-editorBracketHighlight-foreground3: #179fff;
|
|
524
|
-
--vscode-editorBracketHighlight-foreground4: rgba(0, 0, 0, 0);
|
|
525
|
-
--vscode-editorBracketHighlight-foreground5: rgba(0, 0, 0, 0);
|
|
526
|
-
--vscode-editorBracketHighlight-foreground6: rgba(0, 0, 0, 0);
|
|
527
|
-
--vscode-editorBracketHighlight-unexpectedBracket\.foreground: rgba(
|
|
528
|
-
255,
|
|
529
|
-
18,
|
|
530
|
-
18,
|
|
531
|
-
0.8
|
|
532
|
-
);
|
|
533
|
-
--vscode-editorBracketPairGuide-background1: rgba(0, 0, 0, 0);
|
|
534
|
-
--vscode-editorBracketPairGuide-background2: rgba(0, 0, 0, 0);
|
|
535
|
-
--vscode-editorBracketPairGuide-background3: rgba(0, 0, 0, 0);
|
|
536
|
-
--vscode-editorBracketPairGuide-background4: rgba(0, 0, 0, 0);
|
|
537
|
-
--vscode-editorBracketPairGuide-background5: rgba(0, 0, 0, 0);
|
|
538
|
-
--vscode-editorBracketPairGuide-background6: rgba(0, 0, 0, 0);
|
|
539
|
-
--vscode-editorBracketPairGuide-activeBackground1: rgba(0, 0, 0, 0);
|
|
540
|
-
--vscode-editorBracketPairGuide-activeBackground2: rgba(0, 0, 0, 0);
|
|
541
|
-
--vscode-editorBracketPairGuide-activeBackground3: rgba(0, 0, 0, 0);
|
|
542
|
-
--vscode-editorBracketPairGuide-activeBackground4: rgba(0, 0, 0, 0);
|
|
543
|
-
--vscode-editorBracketPairGuide-activeBackground5: rgba(0, 0, 0, 0);
|
|
544
|
-
--vscode-editorBracketPairGuide-activeBackground6: rgba(0, 0, 0, 0);
|
|
545
|
-
--vscode-editorUnicodeHighlight-border: #bd9b03;
|
|
546
|
-
--vscode-symbolIcon-arrayForeground: #cccccc;
|
|
547
|
-
--vscode-symbolIcon-booleanForeground: #cccccc;
|
|
548
|
-
--vscode-symbolIcon-classForeground: #ee9d28;
|
|
549
|
-
--vscode-symbolIcon-colorForeground: #cccccc;
|
|
550
|
-
--vscode-symbolIcon-constantForeground: #cccccc;
|
|
551
|
-
--vscode-symbolIcon-constructorForeground: #b180d7;
|
|
552
|
-
--vscode-symbolIcon-enumeratorForeground: #ee9d28;
|
|
553
|
-
--vscode-symbolIcon-enumeratorMemberForeground: #75beff;
|
|
554
|
-
--vscode-symbolIcon-eventForeground: #ee9d28;
|
|
555
|
-
--vscode-symbolIcon-fieldForeground: #75beff;
|
|
556
|
-
--vscode-symbolIcon-fileForeground: #cccccc;
|
|
557
|
-
--vscode-symbolIcon-folderForeground: #cccccc;
|
|
558
|
-
--vscode-symbolIcon-functionForeground: #b180d7;
|
|
559
|
-
--vscode-symbolIcon-interfaceForeground: #75beff;
|
|
560
|
-
--vscode-symbolIcon-keyForeground: #cccccc;
|
|
561
|
-
--vscode-symbolIcon-keywordForeground: #cccccc;
|
|
562
|
-
--vscode-symbolIcon-methodForeground: #b180d7;
|
|
563
|
-
--vscode-symbolIcon-moduleForeground: #cccccc;
|
|
564
|
-
--vscode-symbolIcon-namespaceForeground: #cccccc;
|
|
565
|
-
--vscode-symbolIcon-nullForeground: #cccccc;
|
|
566
|
-
--vscode-symbolIcon-numberForeground: #cccccc;
|
|
567
|
-
--vscode-symbolIcon-objectForeground: #cccccc;
|
|
568
|
-
--vscode-symbolIcon-operatorForeground: #cccccc;
|
|
569
|
-
--vscode-symbolIcon-packageForeground: #cccccc;
|
|
570
|
-
--vscode-symbolIcon-propertyForeground: #cccccc;
|
|
571
|
-
--vscode-symbolIcon-referenceForeground: #cccccc;
|
|
572
|
-
--vscode-symbolIcon-snippetForeground: #cccccc;
|
|
573
|
-
--vscode-symbolIcon-stringForeground: #cccccc;
|
|
574
|
-
--vscode-symbolIcon-structForeground: #cccccc;
|
|
575
|
-
--vscode-symbolIcon-textForeground: #cccccc;
|
|
576
|
-
--vscode-symbolIcon-typeParameterForeground: #cccccc;
|
|
577
|
-
--vscode-symbolIcon-unitForeground: #cccccc;
|
|
578
|
-
--vscode-symbolIcon-variableForeground: #75beff;
|
|
579
|
-
--vscode-editorHoverWidget-highlightForeground: #0078d4;
|
|
580
|
-
--vscode-editorOverviewRuler-bracketMatchForeground: #a0a0a0;
|
|
581
|
-
--vscode-editor-foldBackground: rgba(243, 239, 245, 0.06);
|
|
582
|
-
--vscode-editorGutter-foldingControlForeground: #c5c5c5;
|
|
583
|
-
--vscode-editor-linkedEditingBackground: rgba(255, 0, 0, 0.3);
|
|
584
|
-
--vscode-editorSuggestWidget-background: #202020;
|
|
585
|
-
--vscode-editorSuggestWidget-border: #3c3c3c;
|
|
586
|
-
--vscode-editorSuggestWidget-foreground: #cccccc;
|
|
587
|
-
--vscode-editorSuggestWidget-selectedForeground: #ffffff;
|
|
588
|
-
--vscode-editorSuggestWidget-selectedBackground: #0078d4;
|
|
589
|
-
--vscode-editorSuggestWidget-highlightForeground: #0078d4;
|
|
590
|
-
--vscode-editorSuggestWidget-focusHighlightForeground: #0078d4;
|
|
591
|
-
--vscode-editorSuggestWidgetStatus-foreground: #9d9d9d;
|
|
592
|
-
--vscode-editor-wordHighlightBackground: rgba(87, 87, 87, 0.72);
|
|
593
|
-
--vscode-editor-wordHighlightStrongBackground: rgba(0, 73, 114, 0.72);
|
|
594
|
-
--vscode-editorOverviewRuler-wordHighlightForeground: rgba(
|
|
595
|
-
160,
|
|
596
|
-
160,
|
|
597
|
-
160,
|
|
598
|
-
0.8
|
|
599
|
-
);
|
|
600
|
-
--vscode-editorOverviewRuler-wordHighlightStrongForeground: rgba(
|
|
601
|
-
192,
|
|
602
|
-
160,
|
|
603
|
-
192,
|
|
604
|
-
0.8
|
|
605
|
-
);
|
|
606
|
-
--vscode-peekViewTitle-background: #1f1f1f;
|
|
607
|
-
--vscode-peekViewTitleLabel-foreground: #ffffff;
|
|
608
|
-
--vscode-peekViewTitleDescription-foreground: rgba(204, 204, 204, 0.7);
|
|
609
|
-
--vscode-peekView-border: #0078d4;
|
|
610
|
-
--vscode-peekViewResult-background: #1f1f1f;
|
|
611
|
-
--vscode-peekViewResult-lineForeground: #cccccc;
|
|
612
|
-
--vscode-peekViewResult-fileForeground: #cccccc;
|
|
613
|
-
--vscode-peekViewResult-selectionBackground: #0078d4;
|
|
614
|
-
--vscode-peekViewResult-selectionForeground: #ffffff;
|
|
615
|
-
--vscode-peekViewEditor-background: #1f1f1f;
|
|
616
|
-
--vscode-peekViewEditorGutter-background: #1f1f1f;
|
|
617
|
-
--vscode-peekViewResult-matchHighlightBackground: #bb800966;
|
|
618
|
-
--vscode-peekViewEditor-matchHighlightBackground: #bb800966;
|
|
619
|
-
--vscode-editorMarkerNavigationError-background: #f85149;
|
|
620
|
-
--vscode-editorMarkerNavigationError-headerBackground: rgba(254, 74, 73, 0.1);
|
|
621
|
-
--vscode-editorMarkerNavigationWarning-background: #ffe45e;
|
|
622
|
-
--vscode-editorMarkerNavigationWarning-headerBackground: rgba(
|
|
623
|
-
255,
|
|
624
|
-
228,
|
|
625
|
-
94,
|
|
626
|
-
0.1
|
|
627
|
-
);
|
|
628
|
-
--vscode-editorMarkerNavigationInfo-background: #5eadf2;
|
|
629
|
-
--vscode-editorMarkerNavigationInfo-headerBackground: rgba(94, 173, 242, 0.1);
|
|
630
|
-
--vscode-editorMarkerNavigation-background: #1f1f1f;
|
|
631
|
-
--vscode-tab-activeBackground: #222222;
|
|
632
|
-
--vscode-tab-unfocusedActiveBackground: #1f1f1f;
|
|
633
|
-
--vscode-tab-inactiveBackground: #181818;
|
|
634
|
-
--vscode-tab-unfocusedInactiveBackground: #181818;
|
|
635
|
-
--vscode-tab-activeForeground: #ffffffa0;
|
|
636
|
-
--vscode-tab-inactiveForeground: #9d9d9d;
|
|
637
|
-
--vscode-tab-unfocusedActiveForeground: #9d9d9d;
|
|
638
|
-
--vscode-tab-unfocusedInactiveForeground: #9d9d9d;
|
|
639
|
-
--vscode-tab-border: #2b2b2b;
|
|
640
|
-
--vscode-tab-lastPinnedBorder: #cccccc33;
|
|
641
|
-
--vscode-tab-activeModifiedBorder: #3399cc;
|
|
642
|
-
--vscode-tab-inactiveModifiedBorder: rgba(51, 153, 204, 0.5);
|
|
643
|
-
--vscode-tab-unfocusedActiveModifiedBorder: rgba(51, 153, 204, 0.5);
|
|
644
|
-
--vscode-tab-unfocusedInactiveModifiedBorder: rgba(51, 153, 204, 0.25);
|
|
645
|
-
--vscode-editorPane-background: #1f1f1f;
|
|
646
|
-
--vscode-editorGroupHeader-tabsBackground: #181818;
|
|
647
|
-
--vscode-editorGroupHeader-tabsBorder: #2b2b2b;
|
|
648
|
-
--vscode-editorGroupHeader-noTabsBackground: #1f1f1f;
|
|
649
|
-
--vscode-editorGroup-border: #ffffff17;
|
|
650
|
-
--vscode-editorGroup-dropBackground: rgba(83, 89, 93, 0.5);
|
|
651
|
-
--vscode-sideBySideEditor-horizontalBorder: #444444;
|
|
652
|
-
--vscode-sideBySideEditor-verticalBorder: #444444;
|
|
653
|
-
--vscode-panel-background: #181818;
|
|
654
|
-
--vscode-panel-border: #2b2b2b;
|
|
655
|
-
--vscode-panelTitle-activeForeground: #cccccc;
|
|
656
|
-
--vscode-panelTitle-inactiveForeground: #9d9d9d;
|
|
657
|
-
--vscode-panelTitle-activeBorder: #0078d4;
|
|
658
|
-
--vscode-panel-dropBorder: #e7e7e7;
|
|
659
|
-
--vscode-panelSection-dropBackground: rgba(83, 89, 93, 0.5);
|
|
660
|
-
--vscode-panelSectionHeader-background: rgba(128, 128, 128, 0.2);
|
|
661
|
-
--vscode-panelSection-border: #2b2b2b;
|
|
662
|
-
--vscode-banner-background: rgba(243, 239, 245, 0.2);
|
|
663
|
-
--vscode-banner-foreground: #cccccc;
|
|
664
|
-
--vscode-banner-iconForeground: #5eadf2;
|
|
665
|
-
--vscode-statusBar-foreground: #cccccc;
|
|
666
|
-
--vscode-statusBar-noFolderForeground: #cccccc;
|
|
667
|
-
--vscode-statusBar-background: #181818;
|
|
668
|
-
--vscode-statusBar-noFolderBackground: #1f1f1f;
|
|
669
|
-
--vscode-statusBar-border: #2b2b2b;
|
|
670
|
-
--vscode-statusBar-noFolderBorder: #2b2b2b;
|
|
671
|
-
--vscode-statusBarItem-activeBackground: rgba(255, 255, 255, 0.18);
|
|
672
|
-
--vscode-statusBarItem-hoverBackground: rgba(255, 255, 255, 0.12);
|
|
673
|
-
--vscode-statusBarItem-prominentForeground: #cccccc;
|
|
674
|
-
--vscode-statusBarItem-prominentBackground: #6e768166;
|
|
675
|
-
--vscode-statusBarItem-prominentHoverBackground: rgba(0, 0, 0, 0.3);
|
|
676
|
-
--vscode-statusBarItem-errorBackground: #c72e0f;
|
|
677
|
-
--vscode-statusBarItem-errorForeground: #ffffff;
|
|
678
|
-
--vscode-statusBarItem-warningBackground: #d1ae00;
|
|
679
|
-
--vscode-statusBarItem-warningForeground: #ffffff;
|
|
680
|
-
--vscode-activityBar-background: #181818;
|
|
681
|
-
--vscode-activityBar-foreground: #d7d7d7;
|
|
682
|
-
--vscode-activityBar-inactiveForeground: #868686;
|
|
683
|
-
--vscode-activityBar-border: #2b2b2b;
|
|
684
|
-
--vscode-activityBar-activeBorder: #0078d4;
|
|
685
|
-
--vscode-activityBar-activeFocusBorder: #0078d4;
|
|
686
|
-
--vscode-activityBar-activeBackground: rgba(255, 255, 255, 0);
|
|
687
|
-
--vscode-activityBar-dropBorder: #d7d7d7;
|
|
688
|
-
--vscode-activityBarBadge-background: #0078d4;
|
|
689
|
-
--vscode-activityBarBadge-foreground: #ffffff;
|
|
690
|
-
--vscode-statusBarItem-remoteBackground: #16825d;
|
|
691
|
-
--vscode-statusBarItem-remoteForeground: #ffffff;
|
|
692
|
-
--vscode-extensionBadge-remoteBackground: #0078d4;
|
|
693
|
-
--vscode-extensionBadge-remoteForeground: #ffffff;
|
|
694
|
-
--vscode-sideBar-background: #181818;
|
|
695
|
-
--vscode-sideBar-foreground: #cccccc;
|
|
696
|
-
--vscode-sideBar-border: #2b2b2b;
|
|
697
|
-
--vscode-sideBarTitle-foreground: #bbbbbb;
|
|
698
|
-
--vscode-sideBar-dropBackground: rgba(83, 89, 93, 0.5);
|
|
699
|
-
--vscode-sideBarSectionHeader-background: #00000000;
|
|
700
|
-
--vscode-sideBarSectionHeader-foreground: #cccccc;
|
|
701
|
-
--vscode-sideBarSectionHeader-border: #cccccc33;
|
|
702
|
-
--vscode-titleBar-activeForeground: #cccccc;
|
|
703
|
-
--vscode-titleBar-inactiveForeground: #9d9d9d;
|
|
704
|
-
--vscode-activityBar-background: #0e131f;
|
|
705
|
-
--vscode-activityBar-foreground: #f3eff5;
|
|
706
|
-
--vscode-activityBar-inactiveForeground: rgba(243, 239, 245, 0.4);
|
|
707
|
-
--vscode-activityBar-border: #242d34;
|
|
708
|
-
--vscode-activityBar-activeBorder: #ed1292;
|
|
709
|
-
--vscode-activityBar-activeFocusBorder: #d61084;
|
|
710
|
-
--vscode-activityBar-activeBackground: rgba(255, 255, 255, 0);
|
|
711
|
-
--vscode-activityBar-dropBorder: #f3eff5;
|
|
712
|
-
--vscode-activityBarBadge-background: #ed1292;
|
|
713
|
-
--vscode-activityBarBadge-foreground: #f3eff5;
|
|
714
|
-
--vscode-statusBarItem-remoteBackground: #ed1292;
|
|
715
|
-
--vscode-statusBarItem-remoteForeground: #f3eff5;
|
|
716
|
-
--vscode-extensionBadge-remoteBackground: #ed1292;
|
|
717
|
-
--vscode-extensionBadge-remoteForeground: #f3eff5;
|
|
718
|
-
--vscode-sideBar-background: #141c2d;
|
|
719
|
-
--vscode-sideBar-foreground: rgba(243, 239, 245, 0.8);
|
|
720
|
-
--vscode-sideBar-border: #242d34;
|
|
721
|
-
--vscode-sideBarTitle-foreground: rgba(243, 239, 245, 0.8);
|
|
722
|
-
--vscode-sideBar-dropBackground: rgba(83, 89, 93, 0.5);
|
|
723
|
-
--vscode-sideBarSectionHeader-background: #0d1217;
|
|
724
|
-
--vscode-sideBarSectionHeader-foreground: rgba(243, 239, 245, 0.8);
|
|
725
|
-
--vscode-sideBarSectionHeader-border: #212c36;
|
|
726
|
-
--vscode-titleBar-activeForeground: #f3eff5;
|
|
727
|
-
--vscode-titleBar-inactiveForeground: rgba(243, 239, 245, 0.6);
|
|
728
|
-
--vscode-titleBar-activeBackground: #0e131f;
|
|
729
|
-
--vscode-titleBar-inactiveBackground: rgba(14, 19, 31, 0.6);
|
|
730
|
-
--vscode-menubar-selectionForeground: #f3eff5;
|
|
731
|
-
--vscode-menubar-selectionBackground: rgba(255, 255, 255, 0.1);
|
|
732
|
-
--vscode-notificationCenter-border: #212c36;
|
|
733
|
-
--vscode-notificationToast-border: #212c36;
|
|
734
|
-
--vscode-notifications-foreground: #f3eff5;
|
|
735
|
-
--vscode-notifications-background: #141c2d;
|
|
736
|
-
--vscode-notificationLink-foreground: #46a1f0;
|
|
737
|
-
--vscode-notificationCenterHeader-foreground: #f3eff5;
|
|
738
|
-
--vscode-notificationCenterHeader-background: #0e131f;
|
|
739
|
-
--vscode-notifications-border: #212c36;
|
|
740
|
-
--vscode-notificationsErrorIcon-foreground: #fe4a49;
|
|
741
|
-
--vscode-notificationsWarningIcon-foreground: #ffe45e;
|
|
742
|
-
--vscode-notificationsInfoIcon-foreground: #5eadf2;
|
|
743
|
-
--vscode-editorGutter-commentRangeForeground: #c5c5c5;
|
|
744
|
-
--vscode-debugToolBar-background: #1e2942;
|
|
745
|
-
--vscode-debugToolBar-border: #3e474e;
|
|
746
|
-
--vscode-debugIcon-startForeground: #89d185;
|
|
747
|
-
--vscode-editor-stackFrameHighlightBackground: rgba(255, 255, 0, 0.2);
|
|
748
|
-
--vscode-editor-focusedStackFrameHighlightBackground: rgba(
|
|
749
|
-
122,
|
|
750
|
-
189,
|
|
751
|
-
122,
|
|
752
|
-
0.3
|
|
753
|
-
);
|
|
754
|
-
--vscode-settings-headerForeground: #e7e7e7;
|
|
755
|
-
--vscode-settings-modifiedItemIndicator: #0c7d9d;
|
|
756
|
-
--vscode-settings-dropdownBackground: #141c2d;
|
|
757
|
-
--vscode-settings-dropdownForeground: #f0f0f0;
|
|
758
|
-
--vscode-settings-dropdownBorder: #242d34;
|
|
759
|
-
--vscode-settings-dropdownListBorder: #212c36;
|
|
760
|
-
--vscode-settings-checkboxBackground: #141c2d;
|
|
761
|
-
--vscode-settings-checkboxForeground: #f0f0f0;
|
|
762
|
-
--vscode-settings-checkboxBorder: #242d34;
|
|
763
|
-
--vscode-settings-textInputBackground: #0d1217;
|
|
764
|
-
--vscode-settings-textInputForeground: #f3eff5;
|
|
765
|
-
--vscode-settings-numberInputBackground: #0d1217;
|
|
766
|
-
--vscode-settings-numberInputForeground: #f3eff5;
|
|
767
|
-
--vscode-settings-focusedRowBackground: rgba(128, 128, 128, 0.14);
|
|
768
|
-
--vscode-settings-rowHoverBackground: rgba(128, 128, 128, 0.07);
|
|
769
|
-
--vscode-settings-focusedRowBorder: rgba(255, 255, 255, 0.12);
|
|
770
|
-
--vscode-terminal-background: #1e1e1e;
|
|
771
|
-
--vscode-terminal-foreground: #d4d4d4;
|
|
772
|
-
--vscode-terminal-selectionBackground: #3a3d41;
|
|
773
|
-
--vscode-terminal-border: #2b2b2b;
|
|
774
|
-
--vscode-terminal-dropBackground: rgba(83, 89, 93, 0.5);
|
|
775
|
-
--vscode-testing-iconFailed: #f14c4c;
|
|
776
|
-
--vscode-testing-iconErrored: #f14c4c;
|
|
777
|
-
--vscode-testing-iconPassed: #73c991;
|
|
778
|
-
--vscode-testing-runAction: #73c991;
|
|
779
|
-
--vscode-testing-iconQueued: #cca700;
|
|
780
|
-
--vscode-testing-iconUnset: #848484;
|
|
781
|
-
--vscode-testing-iconSkipped: #848484;
|
|
782
|
-
--vscode-testing-peekBorder: #fe4a49;
|
|
783
|
-
--vscode-testing-peekHeaderBackground: rgba(254, 74, 73, 0.1);
|
|
784
|
-
--vscode-testing-message\.error\.decorationForeground: #fe4a49;
|
|
785
|
-
--vscode-testing-message\.error\.lineBackground: rgba(255, 0, 0, 0.2);
|
|
786
|
-
--vscode-testing-message\.info\.decorationForeground: rgba(
|
|
787
|
-
243,
|
|
788
|
-
239,
|
|
789
|
-
245,
|
|
790
|
-
0.5
|
|
791
|
-
);
|
|
792
|
-
--vscode-welcomePage-tileBackground: #141c2d;
|
|
793
|
-
--vscode-welcomePage-tileHoverBackground: #182136;
|
|
794
|
-
--vscode-welcomePage-tileShadow: rgba(0, 0, 0, 0.36);
|
|
795
|
-
--vscode-welcomePage-progress\.background: #0d1217;
|
|
796
|
-
--vscode-welcomePage-progress\.foreground: #46a1f0;
|
|
797
|
-
--vscode-statusBar-debuggingBackground: #fe4a49;
|
|
798
|
-
--vscode-statusBar-debuggingForeground: #0e131f;
|
|
799
|
-
--vscode-statusBar-debuggingBorder: #212c36;
|
|
800
|
-
--vscode-debugExceptionWidget-border: #a31515;
|
|
801
|
-
--vscode-debugExceptionWidget-background: #420b0d;
|
|
802
|
-
--vscode-ports-iconRunningProcessForeground: #369432;
|
|
803
|
-
--vscode-editor-inlineValuesForeground: rgba(255, 255, 255, 0.5);
|
|
804
|
-
--vscode-editor-inlineValuesBackground: rgba(255, 200, 0, 0.2);
|
|
805
|
-
--vscode-editorGutter-modifiedBackground: #0c7d9d;
|
|
806
|
-
--vscode-editorGutter-addedBackground: #587c0c;
|
|
807
|
-
--vscode-editorGutter-deletedBackground: #94151b;
|
|
808
|
-
--vscode-minimapGutter-modifiedBackground: #0c7d9d;
|
|
809
|
-
--vscode-minimapGutter-addedBackground: #587c0c;
|
|
810
|
-
--vscode-minimapGutter-deletedBackground: #94151b;
|
|
811
|
-
--vscode-editorOverviewRuler-modifiedForeground: rgba(12, 125, 157, 0.6);
|
|
812
|
-
--vscode-editorOverviewRuler-addedForeground: rgba(88, 124, 12, 0.6);
|
|
813
|
-
--vscode-editorOverviewRuler-deletedForeground: rgba(148, 21, 27, 0.6);
|
|
814
|
-
--vscode-debugIcon-breakpointForeground: #e51400;
|
|
815
|
-
--vscode-debugIcon-breakpointDisabledForeground: #848484;
|
|
816
|
-
--vscode-debugIcon-breakpointUnverifiedForeground: #848484;
|
|
817
|
-
--vscode-debugIcon-breakpointCurrentStackframeForeground: #ffcc00;
|
|
818
|
-
--vscode-debugIcon-breakpointStackframeForeground: #89d185;
|
|
819
|
-
--vscode-keybindingTable-headerBackground: rgba(243, 239, 245, 0.04);
|
|
820
|
-
--vscode-keybindingTable-rowsBackground: rgba(243, 239, 245, 0.04);
|
|
821
|
-
--vscode-notebook-cellBorderColor: rgba(243, 239, 245, 0.13);
|
|
822
|
-
--vscode-notebook-focusedEditorBorder: #263354;
|
|
823
|
-
--vscode-notebookStatusSuccessIcon-foreground: #89d185;
|
|
824
|
-
--vscode-notebookStatusErrorIcon-foreground: #f48771;
|
|
825
|
-
--vscode-notebookStatusRunningIcon-foreground: #f3eff5;
|
|
826
|
-
--vscode-notebook-cellToolbarSeparator: rgba(128, 128, 128, 0.35);
|
|
827
|
-
--vscode-notebook-selectedCellBackground: rgba(243, 239, 245, 0.13);
|
|
828
|
-
--vscode-notebook-selectedCellBorder: rgba(243, 239, 245, 0.13);
|
|
829
|
-
--vscode-notebook-focusedCellBorder: #263354;
|
|
830
|
-
--vscode-notebook-inactiveFocusedCellBorder: rgba(243, 239, 245, 0.13);
|
|
831
|
-
--vscode-notebook-cellStatusBarItemHoverBackground: rgba(255, 255, 255, 0.15);
|
|
832
|
-
--vscode-notebook-cellInsertionIndicator: #263354;
|
|
833
|
-
--vscode-notebookScrollbarSlider-background: rgba(121, 121, 121, 0.4);
|
|
834
|
-
--vscode-notebookScrollbarSlider-hoverBackground: rgba(100, 100, 100, 0.7);
|
|
835
|
-
--vscode-notebookScrollbarSlider-activeBackground: rgba(191, 191, 191, 0.4);
|
|
836
|
-
--vscode-notebook-symbolHighlightBackground: rgba(255, 255, 255, 0.04);
|
|
837
|
-
--vscode-notebook-cellEditorBackground: #141c2d;
|
|
838
|
-
--vscode-scm-providerBorder: #454545;
|
|
839
|
-
--vscode-debugTokenExpression-name: #c586c0;
|
|
840
|
-
--vscode-debugTokenExpression-value: rgba(204, 204, 204, 0.6);
|
|
841
|
-
--vscode-debugTokenExpression-string: #ce9178;
|
|
842
|
-
--vscode-debugTokenExpression-boolean: #4e94ce;
|
|
843
|
-
--vscode-debugTokenExpression-number: #b5cea8;
|
|
844
|
-
--vscode-debugTokenExpression-error: #f48771;
|
|
845
|
-
--vscode-debugView-exceptionLabelForeground: #f3eff5;
|
|
846
|
-
--vscode-debugView-exceptionLabelBackground: #6c2022;
|
|
847
|
-
--vscode-debugView-stateLabelForeground: #f3eff5;
|
|
848
|
-
--vscode-debugView-stateLabelBackground: rgba(136, 136, 136, 0.27);
|
|
849
|
-
--vscode-debugView-valueChangedHighlight: #569cd6;
|
|
850
|
-
--vscode-debugConsole-infoForeground: #5eadf2;
|
|
851
|
-
--vscode-debugConsole-warningForeground: #ffe45e;
|
|
852
|
-
--vscode-debugConsole-errorForeground: #f48771;
|
|
853
|
-
--vscode-debugConsole-sourceForeground: #f3eff5;
|
|
854
|
-
--vscode-debugConsoleInputIcon-foreground: #f3eff5;
|
|
855
|
-
--vscode-debugIcon-pauseForeground: #75beff;
|
|
856
|
-
--vscode-debugIcon-stopForeground: #f48771;
|
|
857
|
-
--vscode-debugIcon-disconnectForeground: #f48771;
|
|
858
|
-
--vscode-debugIcon-restartForeground: #89d185;
|
|
859
|
-
--vscode-debugIcon-stepOverForeground: #75beff;
|
|
860
|
-
--vscode-debugIcon-stepIntoForeground: #75beff;
|
|
861
|
-
--vscode-debugIcon-stepOutForeground: #75beff;
|
|
862
|
-
--vscode-debugIcon-continueForeground: #75beff;
|
|
863
|
-
--vscode-debugIcon-stepBackForeground: #75beff;
|
|
864
|
-
--vscode-extensionButton-prominentBackground: #15c2cb;
|
|
865
|
-
--vscode-extensionButton-prominentForeground: #0e131f;
|
|
866
|
-
--vscode-extensionButton-prominentHoverBackground: #24dfe8;
|
|
867
|
-
--vscode-extensionIcon-starForeground: #ff8e00;
|
|
868
|
-
--vscode-extensionIcon-verifiedForeground: #46a1f0;
|
|
869
|
-
--vscode-extensionIcon-preReleaseForeground: #1d9271;
|
|
870
|
-
--vscode-terminal-ansiBlack: #141c2d;
|
|
871
|
-
--vscode-terminal-ansiRed: #fe4a49;
|
|
872
|
-
--vscode-terminal-ansiGreen: #11ffc6;
|
|
873
|
-
--vscode-terminal-ansiYellow: #f5cc00;
|
|
874
|
-
--vscode-terminal-ansiBlue: #46a1f0;
|
|
875
|
-
--vscode-terminal-ansiMagenta: #ed1292;
|
|
876
|
-
--vscode-terminal-ansiCyan: #0accd6;
|
|
877
|
-
--vscode-terminal-ansiWhite: #dad6dc;
|
|
878
|
-
--vscode-terminal-ansiBrightBlack: #676965;
|
|
879
|
-
--vscode-terminal-ansiBrightRed: #fe6362;
|
|
880
|
-
--vscode-terminal-ansiBrightGreen: #44ffd2;
|
|
881
|
-
--vscode-terminal-ansiBrightYellow: #ffe45e;
|
|
882
|
-
--vscode-terminal-ansiBrightBlue: #5eadf2;
|
|
883
|
-
--vscode-terminal-ansiBrightMagenta: #f141a8;
|
|
884
|
-
--vscode-terminal-ansiBrightCyan: #15c2cb;
|
|
885
|
-
--vscode-terminal-ansiBrightWhite: #f3eff5;
|
|
886
|
-
--vscode-interactive-activeCodeBorder: #5eadf2;
|
|
887
|
-
--vscode-interactive-inactiveCodeBorder: rgba(243, 239, 245, 0.13);
|
|
888
|
-
--vscode-gitDecoration-addedResourceForeground: rgba(68, 255, 210, 0.8);
|
|
889
|
-
--vscode-gitDecoration-modifiedResourceForeground: rgba(255, 228, 94, 0.8);
|
|
890
|
-
--vscode-gitDecoration-deletedResourceForeground: rgba(254, 74, 73, 0.8);
|
|
891
|
-
--vscode-gitDecoration-renamedResourceForeground: #73c991;
|
|
892
|
-
--vscode-gitDecoration-untrackedResourceForeground: rgba(68, 255, 210, 0.8);
|
|
893
|
-
--vscode-gitDecoration-ignoredResourceForeground: #8c8c8c;
|
|
894
|
-
--vscode-gitDecoration-stageModifiedResourceForeground: rgba(
|
|
895
|
-
255,
|
|
896
|
-
228,
|
|
897
|
-
94,
|
|
898
|
-
0.8
|
|
899
|
-
);
|
|
900
|
-
--vscode-gitDecoration-stageDeletedResourceForeground: rgba(254, 74, 73, 0.8);
|
|
901
|
-
--vscode-gitDecoration-conflictingResourceForeground: #e4676b;
|
|
902
|
-
--vscode-gitDecoration-submoduleResourceForeground: rgba(94, 173, 242, 0.8);
|
|
903
|
-
--vscode-testExplorer-errorDecorationBackground: #5a1d1d;
|
|
904
|
-
--vscode-widget-border: #303031;
|
|
905
|
-
--vscode-activityBarBadge-background: #007acc;
|
|
906
|
-
}
|
|
907
|
-
`,ra=Se`
|
|
908
|
-
:host {
|
|
909
|
-
--vscode-font-weight: normal;
|
|
910
|
-
--vscode-font-size: 13px;
|
|
911
|
-
--vscode-editor-font-family: "Operator Mono Lig", "Cascadia Code";
|
|
912
|
-
--vscode-editor-font-weight: normal;
|
|
913
|
-
--vscode-editor-font-size: 15px;
|
|
914
|
-
--vscode-foreground: #3b3b3b;
|
|
915
|
-
--vscode-errorForeground: #f85149;
|
|
916
|
-
--vscode-descriptionForeground: #3b3b3b;
|
|
917
|
-
--vscode-icon-foreground: #3b3b3b;
|
|
918
|
-
--vscode-focusBorder: #005fb8;
|
|
919
|
-
--vscode-selection-background: #add6ff;
|
|
920
|
-
--vscode-textSeparator-foreground: #21262d;
|
|
921
|
-
--vscode-textLink-foreground: #005fb8;
|
|
922
|
-
--vscode-textLink-activeForeground: #005fb8;
|
|
923
|
-
--vscode-textPreformat-foreground: #3b3b3b;
|
|
924
|
-
--vscode-textBlockQuote-background: #f8f8f8;
|
|
925
|
-
--vscode-textBlockQuote-border: #e5e5e5;
|
|
926
|
-
--vscode-textCodeBlock-background: #f8f8f8;
|
|
927
|
-
--vscode-widget-shadow: #00000029;
|
|
928
|
-
--vscode-input-background: #ffffff;
|
|
929
|
-
--vscode-input-foreground: #3b3b3b;
|
|
930
|
-
--vscode-inputOption-activeBorder: #005fb8;
|
|
931
|
-
--vscode-inputOption-hoverBackground: #b8b8b850;
|
|
932
|
-
--vscode-inputOption-activeBackground: #bed6ed;
|
|
933
|
-
--vscode-inputOption-activeForeground: #000000;
|
|
934
|
-
--vscode-input-placeholderForeground: #767676;
|
|
935
|
-
--vscode-inputValidation-infoBackground: #d6ecf2;
|
|
936
|
-
--vscode-inputValidation-infoBorder: #007acc;
|
|
937
|
-
--vscode-inputValidation-warningBackground: #f6f5d2;
|
|
938
|
-
--vscode-inputValidation-warningBorder: #b89500;
|
|
939
|
-
--vscode-inputValidation-errorBackground: #f2dede;
|
|
940
|
-
--vscode-inputValidation-errorBorder: #be1100;
|
|
941
|
-
--vscode-dropdown-background: #ffffff;
|
|
942
|
-
--vscode-dropdown-foreground: #3b3b3b;
|
|
943
|
-
--vscode-dropdown-border: #cecece;
|
|
944
|
-
--vscode-checkbox-background: #f8f8f8;
|
|
945
|
-
--vscode-checkbox-foreground: #3b3b3b;
|
|
946
|
-
--vscode-checkbox-border: #cecece;
|
|
947
|
-
--vscode-button-foreground: #ffffff;
|
|
948
|
-
--vscode-button-background: #005fb8;
|
|
949
|
-
--vscode-button-hoverBackground: #0258a8;
|
|
950
|
-
--vscode-button-secondaryForeground: #3b3b3b;
|
|
951
|
-
--vscode-button-secondaryBackground: #e5e5e5;
|
|
952
|
-
--vscode-button-secondaryHoverBackground: #cccccc;
|
|
953
|
-
--vscode-badge-background: #cccccc;
|
|
954
|
-
--vscode-badge-foreground: #3b3b3b;
|
|
955
|
-
--vscode-scrollbar-shadow: #dddddd;
|
|
956
|
-
--vscode-scrollbarSlider-background: #64646466;
|
|
957
|
-
--vscode-scrollbarSlider-hoverBackground: #646464b3;
|
|
958
|
-
--vscode-scrollbarSlider-activeBackground: #00000099;
|
|
959
|
-
--vscode-progressBar-background: #005fb8;
|
|
960
|
-
--vscode-editorError-foreground: #e51400;
|
|
961
|
-
--vscode-editorWarning-foreground: #bf8803;
|
|
962
|
-
--vscode-editorInfo-foreground: #1a85ff;
|
|
963
|
-
--vscode-editorHint-foreground: #6c6c6c;
|
|
964
|
-
--vscode-sash-hoverBorder: #005fb8;
|
|
965
|
-
--vscode-editor-background: #ffffff;
|
|
966
|
-
--vscode-editor-foreground: #3b3b3b;
|
|
967
|
-
--vscode-editorWidget-background: #f8f8f8;
|
|
968
|
-
--vscode-editorWidget-foreground: #3b3b3b;
|
|
969
|
-
--vscode-editorWidget-border: #c8c8c8;
|
|
970
|
-
--vscode-quickInput-background: #f8f8f8;
|
|
971
|
-
--vscode-quickInput-foreground: #3b3b3b;
|
|
972
|
-
--vscode-quickInputTitle-background: #0000000f;
|
|
973
|
-
--vscode-pickerGroup-foreground: #8b949e;
|
|
974
|
-
--vscode-pickerGroup-border: #e5e5e5;
|
|
975
|
-
--vscode-keybindingLabel-background: #dddddd66;
|
|
976
|
-
--vscode-keybindingLabel-foreground: #3b3b3b;
|
|
977
|
-
--vscode-keybindingLabel-border: #cccccc66;
|
|
978
|
-
--vscode-keybindingLabel-bottomBorder: #bbbbbb66;
|
|
979
|
-
--vscode-editor-selectionBackground: #add6ff;
|
|
980
|
-
--vscode-editor-selectionForeground: transparent;
|
|
981
|
-
--vscode-editor-inactiveSelectionBackground: #e5ebf1;
|
|
982
|
-
--vscode-editor-selectionHighlightBackground: #add6ff80;
|
|
983
|
-
--vscode-editor-findMatchBackground: #a8ac94;
|
|
984
|
-
--vscode-editor-findMatchHighlightBackground: #ea5c0055;
|
|
985
|
-
--vscode-editor-findRangeHighlightBackground: #b4b4b44d;
|
|
986
|
-
--vscode-editor-findMatchBorder: transparent;
|
|
987
|
-
--vscode-searchEditor-findMatchBackground: #ea5c0038;
|
|
988
|
-
--vscode-editor-hoverHighlightBackground: #add6ff26;
|
|
989
|
-
--vscode-editorHoverWidget-background: #f8f8f8;
|
|
990
|
-
--vscode-editorHoverWidget-foreground: #3b3b3b;
|
|
991
|
-
--vscode-editorHoverWidget-border: #c8c8c8;
|
|
992
|
-
--vscode-editorHoverWidget-statusBarBackground: #ececec;
|
|
993
|
-
--vscode-editorLink-activeForeground: #0000ff;
|
|
994
|
-
--vscode-editorInlayHint-foreground: #969696;
|
|
995
|
-
--vscode-editorInlayHint-background: #cccccc1a;
|
|
996
|
-
--vscode-editorInlayHint-typeForeground: #969696;
|
|
997
|
-
--vscode-editorInlayHint-typeBackground: #cccccc1a;
|
|
998
|
-
--vscode-editorInlayHint-parameterForeground: #969696;
|
|
999
|
-
--vscode-editorInlayHint-parameterBackground: #cccccc1a;
|
|
1000
|
-
--vscode-editorLightBulb-foreground: #ddb100;
|
|
1001
|
-
--vscode-editorLightBulbAutoFix-foreground: #007acc;
|
|
1002
|
-
--vscode-diffEditor-insertedTextBackground: #9ccc2c40;
|
|
1003
|
-
--vscode-diffEditor-removedTextBackground: #ff000033;
|
|
1004
|
-
--vscode-diffEditor-diagonalFill: #22222233;
|
|
1005
|
-
--vscode-list-focusOutline: #005fb8;
|
|
1006
|
-
--vscode-list-activeSelectionBackground: #e8e8e8;
|
|
1007
|
-
--vscode-list-activeSelectionForeground: #000000;
|
|
1008
|
-
--vscode-list-inactiveSelectionBackground: #e4e6f1;
|
|
1009
|
-
--vscode-list-inactiveSelectionForeground: transparent;
|
|
1010
|
-
--vscode-list-inactiveFocusOutline: transparent;
|
|
1011
|
-
--vscode-list-hoverBackground: #f2f2f2;
|
|
1012
|
-
--vscode-list-dropBackground: #d6ebff;
|
|
1013
|
-
--vscode-list-highlightForeground: #0066bf;
|
|
1014
|
-
--vscode-list-focusHighlightForeground: #0066bf;
|
|
1015
|
-
--vscode-list-invalidItemForeground: #b89500;
|
|
1016
|
-
--vscode-list-errorForeground: #b01011;
|
|
1017
|
-
--vscode-list-warningForeground: #855f00;
|
|
1018
|
-
--vscode-listFilterWidget-background: #f8f8f8;
|
|
1019
|
-
--vscode-listFilterWidget-outline: #00000000;
|
|
1020
|
-
--vscode-listFilterWidget-noMatchesOutline: #be1100;
|
|
1021
|
-
--vscode-list-filterMatchBackground: #ea5c0055;
|
|
1022
|
-
--vscode-tree-indentGuidesStroke: #a9a9a9;
|
|
1023
|
-
--vscode-tree-tableColumnsBorder: #61616120;
|
|
1024
|
-
--vscode-tree-tableOddRowsBackground: #3b3b3b0a;
|
|
1025
|
-
--vscode-list-deemphasizedForeground: #8e8e90;
|
|
1026
|
-
--vscode-quickInputList-focusForeground: #000000;
|
|
1027
|
-
--vscode-quickInputList-focusBackground: #e8e8e8;
|
|
1028
|
-
--vscode-menu-border: #cecece;
|
|
1029
|
-
--vscode-menu-foreground: #3b3b3b;
|
|
1030
|
-
--vscode-menu-background: #ffffff;
|
|
1031
|
-
--vscode-menu-selectionForeground: #ffffff;
|
|
1032
|
-
--vscode-menu-selectionBackground: #005fb8;
|
|
1033
|
-
--vscode-menu-separatorBackground: #d4d4d4;
|
|
1034
|
-
--vscode-toolbar-hoverBackground: #b8b8b850;
|
|
1035
|
-
--vscode-toolbar-activeBackground: #a6a6a650;
|
|
1036
|
-
--vscode-editor-snippetTabstopHighlightBackground: #0a326433;
|
|
1037
|
-
--vscode-editor-snippetFinalTabstopHighlightBorder: #0a326480;
|
|
1038
|
-
--vscode-breadcrumb-foreground: #3b3b3bcc;
|
|
1039
|
-
--vscode-breadcrumb-background: #ffffff;
|
|
1040
|
-
--vscode-breadcrumb-focusForeground: #2f2f2f;
|
|
1041
|
-
--vscode-breadcrumb-activeSelectionForeground: #2f2f2f;
|
|
1042
|
-
--vscode-breadcrumbPicker-background: #f8f8f8;
|
|
1043
|
-
--vscode-merge-currentHeaderBackground: #40c8ae80;
|
|
1044
|
-
--vscode-merge-currentContentBackground: #40c8ae33;
|
|
1045
|
-
--vscode-merge-incomingHeaderBackground: #40a6ff80;
|
|
1046
|
-
--vscode-merge-incomingContentBackground: #40a6ff33;
|
|
1047
|
-
--vscode-merge-commonHeaderBackground: #60606066;
|
|
1048
|
-
--vscode-merge-commonContentBackground: #60606029;
|
|
1049
|
-
--vscode-editorOverviewRuler-currentContentForeground: #40c8ae80;
|
|
1050
|
-
--vscode-editorOverviewRuler-incomingContentForeground: #40a6ff80;
|
|
1051
|
-
--vscode-editorOverviewRuler-commonContentForeground: #60606066;
|
|
1052
|
-
--vscode-editorOverviewRuler-findMatchForeground: #d186167e;
|
|
1053
|
-
--vscode-editorOverviewRuler-selectionHighlightForeground: #a0a0a0cc;
|
|
1054
|
-
--vscode-editorOverviewRuler-unicodeForeground: transparent;
|
|
1055
|
-
--vscode-minimap-findMatchHighlight: #d18616;
|
|
1056
|
-
--vscode-minimap-selectionOccurrenceHighlight: #c9c9c9;
|
|
1057
|
-
--vscode-minimap-selectionHighlight: #add6ff;
|
|
1058
|
-
--vscode-minimap-errorHighlight: #ff1212b3;
|
|
1059
|
-
--vscode-minimap-warningHighlight: #bf8803;
|
|
1060
|
-
--vscode-minimap-foregroundOpacity: #000000;
|
|
1061
|
-
--vscode-minimap-unicodeHighlight: transparent;
|
|
1062
|
-
--vscode-minimapSlider-background: #64646433;
|
|
1063
|
-
--vscode-minimapSlider-hoverBackground: #64646459;
|
|
1064
|
-
--vscode-minimapSlider-activeBackground: #0000004d;
|
|
1065
|
-
--vscode-problemsErrorIcon-foreground: #e51400;
|
|
1066
|
-
--vscode-problemsWarningIcon-foreground: #bf8803;
|
|
1067
|
-
--vscode-problemsInfoIcon-foreground: #1a85ff;
|
|
1068
|
-
--vscode-charts-foreground: #3b3b3b;
|
|
1069
|
-
--vscode-charts-lines: #3b3b3b80;
|
|
1070
|
-
--vscode-charts-red: #e51400;
|
|
1071
|
-
--vscode-charts-blue: #1a85ff;
|
|
1072
|
-
--vscode-charts-yellow: #bf8803;
|
|
1073
|
-
--vscode-charts-orange: #d18616;
|
|
1074
|
-
--vscode-charts-green: #388a34;
|
|
1075
|
-
--vscode-charts-purple: #652d90;
|
|
1076
|
-
--vscode-editor-lineHighlightBackground: transparent;
|
|
1077
|
-
--vscode-editor-lineHighlightBorder: #eeeeee;
|
|
1078
|
-
--vscode-editor-rangeHighlightBackground: #fdff0033;
|
|
1079
|
-
--vscode-editor-symbolHighlightBackground: #ea5c0055;
|
|
1080
|
-
--vscode-editorCursor-foreground: #000000;
|
|
1081
|
-
--vscode-editorWhitespace-foreground: #33333333;
|
|
1082
|
-
--vscode-editorIndentGuide-background: #d3d3d3;
|
|
1083
|
-
--vscode-editorIndentGuide-activeBackground: #939393;
|
|
1084
|
-
--vscode-editorLineNumber-foreground: #6e7681;
|
|
1085
|
-
--vscode-editorActiveLineNumber-foreground: #171184;
|
|
1086
|
-
--vscode-editorLineNumber-activeForeground: #171184;
|
|
1087
|
-
--vscode-editorRuler-foreground: #d3d3d3;
|
|
1088
|
-
--vscode-editorCodeLens-foreground: #919191;
|
|
1089
|
-
--vscode-editorBracketMatch-background: #0064001a;
|
|
1090
|
-
--vscode-editorBracketMatch-border: #b9b9b9;
|
|
1091
|
-
--vscode-editorOverviewRuler-border: #e5e5e5;
|
|
1092
|
-
--vscode-editorGutter-background: #ffffff;
|
|
1093
|
-
--vscode-editorUnnecessaryCode-opacity: #00000077;
|
|
1094
|
-
--vscode-editorGhostText-foreground: #00000077;
|
|
1095
|
-
--vscode-editorOverviewRuler-rangeHighlightForeground: #007acc99;
|
|
1096
|
-
--vscode-editorOverviewRuler-errorForeground: #ff1212b3;
|
|
1097
|
-
--vscode-editorOverviewRuler-warningForeground: #bf8803;
|
|
1098
|
-
--vscode-editorOverviewRuler-infoForeground: #1a85ff;
|
|
1099
|
-
--vscode-editorBracketHighlight-foreground1: #0431fa;
|
|
1100
|
-
--vscode-editorBracketHighlight-foreground2: #319331;
|
|
1101
|
-
--vscode-editorBracketHighlight-foreground3: #7b3814;
|
|
1102
|
-
--vscode-editorBracketHighlight-foreground4: #00000000;
|
|
1103
|
-
--vscode-editorBracketHighlight-foreground5: #00000000;
|
|
1104
|
-
--vscode-editorBracketHighlight-foreground6: #00000000;
|
|
1105
|
-
--vscode-editorBracketHighlight-unexpectedBracket\.foreground: #ff1212cc;
|
|
1106
|
-
--vscode-editorBracketPairGuide-background1: #00000000;
|
|
1107
|
-
--vscode-editorBracketPairGuide-background2: #00000000;
|
|
1108
|
-
--vscode-editorBracketPairGuide-background3: #00000000;
|
|
1109
|
-
--vscode-editorBracketPairGuide-background4: #00000000;
|
|
1110
|
-
--vscode-editorBracketPairGuide-background5: #00000000;
|
|
1111
|
-
--vscode-editorBracketPairGuide-background6: #00000000;
|
|
1112
|
-
--vscode-editorBracketPairGuide-activeBackground1: #00000000;
|
|
1113
|
-
--vscode-editorBracketPairGuide-activeBackground2: #00000000;
|
|
1114
|
-
--vscode-editorBracketPairGuide-activeBackground3: #00000000;
|
|
1115
|
-
--vscode-editorBracketPairGuide-activeBackground4: #00000000;
|
|
1116
|
-
--vscode-editorBracketPairGuide-activeBackground5: #00000000;
|
|
1117
|
-
--vscode-editorBracketPairGuide-activeBackground6: #00000000;
|
|
1118
|
-
--vscode-editorUnicodeHighlight-border: #bf8803;
|
|
1119
|
-
--vscode-symbolIcon-arrayForeground: #3b3b3b;
|
|
1120
|
-
--vscode-symbolIcon-booleanForeground: #3b3b3b;
|
|
1121
|
-
--vscode-symbolIcon-classForeground: #d67e00;
|
|
1122
|
-
--vscode-symbolIcon-colorForeground: #3b3b3b;
|
|
1123
|
-
--vscode-symbolIcon-constantForeground: #3b3b3b;
|
|
1124
|
-
--vscode-symbolIcon-constructorForeground: #652d90;
|
|
1125
|
-
--vscode-symbolIcon-enumeratorForeground: #d67e00;
|
|
1126
|
-
--vscode-symbolIcon-enumeratorMemberForeground: #007acc;
|
|
1127
|
-
--vscode-symbolIcon-eventForeground: #d67e00;
|
|
1128
|
-
--vscode-symbolIcon-fieldForeground: #007acc;
|
|
1129
|
-
--vscode-symbolIcon-fileForeground: #3b3b3b;
|
|
1130
|
-
--vscode-symbolIcon-folderForeground: #3b3b3b;
|
|
1131
|
-
--vscode-symbolIcon-functionForeground: #652d90;
|
|
1132
|
-
--vscode-symbolIcon-interfaceForeground: #007acc;
|
|
1133
|
-
--vscode-symbolIcon-keyForeground: #3b3b3b;
|
|
1134
|
-
--vscode-symbolIcon-keywordForeground: #3b3b3b;
|
|
1135
|
-
--vscode-symbolIcon-methodForeground: #652d90;
|
|
1136
|
-
--vscode-symbolIcon-moduleForeground: #3b3b3b;
|
|
1137
|
-
--vscode-symbolIcon-namespaceForeground: #3b3b3b;
|
|
1138
|
-
--vscode-symbolIcon-nullForeground: #3b3b3b;
|
|
1139
|
-
--vscode-symbolIcon-numberForeground: #3b3b3b;
|
|
1140
|
-
--vscode-symbolIcon-objectForeground: #3b3b3b;
|
|
1141
|
-
--vscode-symbolIcon-operatorForeground: #3b3b3b;
|
|
1142
|
-
--vscode-symbolIcon-packageForeground: #3b3b3b;
|
|
1143
|
-
--vscode-symbolIcon-propertyForeground: #3b3b3b;
|
|
1144
|
-
--vscode-symbolIcon-referenceForeground: #3b3b3b;
|
|
1145
|
-
--vscode-symbolIcon-snippetForeground: #3b3b3b;
|
|
1146
|
-
--vscode-symbolIcon-stringForeground: #3b3b3b;
|
|
1147
|
-
--vscode-symbolIcon-structForeground: #3b3b3b;
|
|
1148
|
-
--vscode-symbolIcon-textForeground: #3b3b3b;
|
|
1149
|
-
--vscode-symbolIcon-typeParameterForeground: #3b3b3b;
|
|
1150
|
-
--vscode-symbolIcon-unitForeground: #3b3b3b;
|
|
1151
|
-
--vscode-symbolIcon-variableForeground: #007acc;
|
|
1152
|
-
--vscode-editorHoverWidget-highlightForeground: #0066bf;
|
|
1153
|
-
--vscode-editorOverviewRuler-bracketMatchForeground: #a0a0a0;
|
|
1154
|
-
--vscode-editor-foldBackground: #add6ff4d;
|
|
1155
|
-
--vscode-editorGutter-foldingControlForeground: #3b3b3b;
|
|
1156
|
-
--vscode-editor-linkedEditingBackground: #ff00004d;
|
|
1157
|
-
--vscode-editorSuggestWidget-background: #f8f8f8;
|
|
1158
|
-
--vscode-editorSuggestWidget-border: #c8c8c8;
|
|
1159
|
-
--vscode-editorSuggestWidget-foreground: #3b3b3b;
|
|
1160
|
-
--vscode-editorSuggestWidget-selectedForeground: #000000;
|
|
1161
|
-
--vscode-editorSuggestWidget-selectedBackground: #e8e8e8;
|
|
1162
|
-
--vscode-editorSuggestWidget-highlightForeground: #0066bf;
|
|
1163
|
-
--vscode-editorSuggestWidget-focusHighlightForeground: #0066bf;
|
|
1164
|
-
--vscode-editorSuggestWidgetStatus-foreground: #3b3b3b80;
|
|
1165
|
-
--vscode-editor-wordHighlightBackground: #57575740;
|
|
1166
|
-
--vscode-editor-wordHighlightStrongBackground: #0e639c40;
|
|
1167
|
-
--vscode-editorOverviewRuler-wordHighlightForeground: #a0a0a0cc;
|
|
1168
|
-
--vscode-editorOverviewRuler-wordHighlightStrongForeground: #c0a0c0cc;
|
|
1169
|
-
--vscode-peekViewTitle-background: #f3f3f3;
|
|
1170
|
-
--vscode-peekViewTitleLabel-foreground: #000000;
|
|
1171
|
-
--vscode-peekViewTitleDescription-foreground: #616161;
|
|
1172
|
-
--vscode-peekView-border: #1a85ff;
|
|
1173
|
-
--vscode-peekViewResult-background: #ffffff;
|
|
1174
|
-
--vscode-peekViewResult-lineForeground: #646465;
|
|
1175
|
-
--vscode-peekViewResult-fileForeground: #1e1e1e;
|
|
1176
|
-
--vscode-peekViewResult-selectionBackground: #3399ff33;
|
|
1177
|
-
--vscode-peekViewResult-selectionForeground: #6c6c6c;
|
|
1178
|
-
--vscode-peekViewEditor-background: #f2f8fc;
|
|
1179
|
-
--vscode-peekViewEditorGutter-background: #f2f8fc;
|
|
1180
|
-
--vscode-peekViewResult-matchHighlightBackground: #bb800966;
|
|
1181
|
-
--vscode-peekViewEditor-matchHighlightBackground: #bb800966;
|
|
1182
|
-
--vscode-editorMarkerNavigationError-background: #e51400;
|
|
1183
|
-
--vscode-editorMarkerNavigationError-headerBackground: #e514001a;
|
|
1184
|
-
--vscode-editorMarkerNavigationWarning-background: #bf8803;
|
|
1185
|
-
--vscode-editorMarkerNavigationWarning-headerBackground: #bf88031a;
|
|
1186
|
-
--vscode-editorMarkerNavigationInfo-background: #1a85ff;
|
|
1187
|
-
--vscode-editorMarkerNavigationInfo-headerBackground: #1a85ff1a;
|
|
1188
|
-
--vscode-editorMarkerNavigation-background: #ffffff;
|
|
1189
|
-
--vscode-tab-activeBackground: #ffffff;
|
|
1190
|
-
--vscode-tab-unfocusedActiveBackground: #ffffff;
|
|
1191
|
-
--vscode-tab-inactiveBackground: #f8f8f8;
|
|
1192
|
-
--vscode-tab-unfocusedInactiveBackground: #f8f8f8;
|
|
1193
|
-
--vscode-tab-activeForeground: #3b3b3b;
|
|
1194
|
-
--vscode-tab-inactiveForeground: #868686;
|
|
1195
|
-
--vscode-tab-unfocusedActiveForeground: #3b3b3bb3;
|
|
1196
|
-
--vscode-tab-unfocusedInactiveForeground: #86868680;
|
|
1197
|
-
--vscode-tab-border: #e5e5e5;
|
|
1198
|
-
--vscode-tab-lastPinnedBorder: #d4d4d4;
|
|
1199
|
-
--vscode-tab-activeModifiedBorder: #33aaee;
|
|
1200
|
-
--vscode-tab-inactiveModifiedBorder: #33aaee80;
|
|
1201
|
-
--vscode-tab-unfocusedActiveModifiedBorder: #33aaeeb3;
|
|
1202
|
-
--vscode-tab-unfocusedInactiveModifiedBorder: #33aaee40;
|
|
1203
|
-
--vscode-editorPane-background: #ffffff;
|
|
1204
|
-
--vscode-editorGroupHeader-tabsBackground: #f8f8f8;
|
|
1205
|
-
--vscode-editorGroupHeader-tabsBorder: #e5e5e5;
|
|
1206
|
-
--vscode-editorGroupHeader-noTabsBackground: #ffffff;
|
|
1207
|
-
--vscode-editorGroup-border: #e5e5e5;
|
|
1208
|
-
--vscode-editorGroup-dropBackground: #2677cb2e;
|
|
1209
|
-
--vscode-sideBySideEditor-horizontalBorder: #e5e5e5;
|
|
1210
|
-
--vscode-sideBySideEditor-verticalBorder: #e5e5e5;
|
|
1211
|
-
--vscode-panel-background: #f8f8f8;
|
|
1212
|
-
--vscode-panel-border: #e5e5e5;
|
|
1213
|
-
--vscode-panelTitle-activeForeground: #3b3b3b;
|
|
1214
|
-
--vscode-panelTitle-inactiveForeground: #3b3b3b;
|
|
1215
|
-
--vscode-panelTitle-activeBorder: #005fb8;
|
|
1216
|
-
--vscode-panel-dropBorder: #3b3b3b;
|
|
1217
|
-
--vscode-panelSection-dropBackground: #2677cb2e;
|
|
1218
|
-
--vscode-panelSectionHeader-background: #80808033;
|
|
1219
|
-
--vscode-panelSection-border: #e5e5e5;
|
|
1220
|
-
--vscode-banner-background: #a2a2a2;
|
|
1221
|
-
--vscode-banner-foreground: #000000;
|
|
1222
|
-
--vscode-banner-iconForeground: #1a85ff;
|
|
1223
|
-
--vscode-statusBar-foreground: #3b3b3b;
|
|
1224
|
-
--vscode-statusBar-noFolderForeground: #3b3b3b;
|
|
1225
|
-
--vscode-statusBar-background: #f8f8f8;
|
|
1226
|
-
--vscode-statusBar-noFolderBackground: #f8f8f8;
|
|
1227
|
-
--vscode-statusBar-border: #e5e5e5;
|
|
1228
|
-
--vscode-statusBar-noFolderBorder: #e5e5e5;
|
|
1229
|
-
--vscode-statusBarItem-activeBackground: #ffffff2e;
|
|
1230
|
-
--vscode-statusBarItem-hoverBackground: #1f1f1f11;
|
|
1231
|
-
--vscode-statusBarItem-prominentForeground: #3b3b3b;
|
|
1232
|
-
--vscode-statusBarItem-prominentBackground: #6e768166;
|
|
1233
|
-
--vscode-statusBarItem-prominentHoverBackground: #1f1f1f11;
|
|
1234
|
-
--vscode-statusBarItem-errorBackground: #c72e0f;
|
|
1235
|
-
--vscode-statusBarItem-errorForeground: #ffffff;
|
|
1236
|
-
--vscode-statusBarItem-warningBackground: #725102;
|
|
1237
|
-
--vscode-statusBarItem-warningForeground: #ffffff;
|
|
1238
|
-
--vscode-activityBar-background: #f8f8f8;
|
|
1239
|
-
--vscode-activityBar-foreground: #1f1f1f;
|
|
1240
|
-
--vscode-activityBar-inactiveForeground: #616161;
|
|
1241
|
-
--vscode-activityBar-border: #e5e5e5;
|
|
1242
|
-
--vscode-activityBar-activeBorder: #005fb8;
|
|
1243
|
-
--vscode-activityBar-activeFocusBorder: transparent;
|
|
1244
|
-
--vscode-activityBar-activeBackground: transparent;
|
|
1245
|
-
--vscode-activityBar-dropBorder: #1f1f1f;
|
|
1246
|
-
--vscode-activityBarBadge-background: #005fb8;
|
|
1247
|
-
--vscode-activityBarBadge-foreground: #ffffff;
|
|
1248
|
-
--vscode-statusBarItem-remoteBackground: #005fb8;
|
|
1249
|
-
--vscode-statusBarItem-remoteForeground: #ffffff;
|
|
1250
|
-
--vscode-extensionBadge-remoteBackground: #005fb8;
|
|
1251
|
-
--vscode-extensionBadge-remoteForeground: #ffffff;
|
|
1252
|
-
--vscode-sideBar-background: #f8f8f8;
|
|
1253
|
-
--vscode-sideBar-foreground: #3b3b3b;
|
|
1254
|
-
--vscode-sideBar-border: #e5e5e5;
|
|
1255
|
-
--vscode-sideBarTitle-foreground: #3b3b3b;
|
|
1256
|
-
--vscode-sideBar-dropBackground: #2677cb2e;
|
|
1257
|
-
--vscode-sideBarSectionHeader-background: #f8f8f8;
|
|
1258
|
-
--vscode-sideBarSectionHeader-foreground: #3b3b3b;
|
|
1259
|
-
--vscode-sideBarSectionHeader-border: #e5e5e5;
|
|
1260
|
-
--vscode-titleBar-activeForeground: #1e1e1e;
|
|
1261
|
-
--vscode-titleBar-inactiveForeground: #8b949e;
|
|
1262
|
-
--vscode-activityBar-background: #f8f8f8;
|
|
1263
|
-
--vscode-activityBar-foreground: #1f1f1f;
|
|
1264
|
-
--vscode-activityBar-inactiveForeground: #616161;
|
|
1265
|
-
--vscode-activityBar-border: #e5e5e5;
|
|
1266
|
-
--vscode-activityBar-activeBorder: #005fb8;
|
|
1267
|
-
--vscode-activityBar-activeFocusBorder: transparent;
|
|
1268
|
-
--vscode-activityBar-activeBackground: transparent;
|
|
1269
|
-
--vscode-activityBar-dropBorder: #1f1f1f;
|
|
1270
|
-
--vscode-activityBarBadge-background: #005fb8;
|
|
1271
|
-
--vscode-activityBarBadge-foreground: #ffffff;
|
|
1272
|
-
--vscode-statusBarItem-remoteBackground: #005fb8;
|
|
1273
|
-
--vscode-statusBarItem-remoteForeground: #ffffff;
|
|
1274
|
-
--vscode-extensionBadge-remoteBackground: #005fb8;
|
|
1275
|
-
--vscode-extensionBadge-remoteForeground: #ffffff;
|
|
1276
|
-
--vscode-sideBar-background: #f8f8f8;
|
|
1277
|
-
--vscode-sideBar-foreground: #3b3b3b;
|
|
1278
|
-
--vscode-sideBar-border: #e5e5e5;
|
|
1279
|
-
--vscode-sideBarTitle-foreground: #3b3b3b;
|
|
1280
|
-
--vscode-sideBar-dropBackground: #2677cb2e;
|
|
1281
|
-
--vscode-sideBarSectionHeader-background: #f8f8f8;
|
|
1282
|
-
--vscode-sideBarSectionHeader-foreground: #3b3b3b;
|
|
1283
|
-
--vscode-sideBarSectionHeader-border: #e5e5e5;
|
|
1284
|
-
--vscode-titleBar-activeForeground: #1e1e1e;
|
|
1285
|
-
--vscode-titleBar-inactiveForeground: #8b949e;
|
|
1286
|
-
--vscode-titleBar-activeBackground: #f8f8f8;
|
|
1287
|
-
--vscode-titleBar-inactiveBackground: #f8f8f8;
|
|
1288
|
-
--vscode-menubar-selectionForeground: #1e1e1e;
|
|
1289
|
-
--vscode-menubar-selectionBackground: #b8b8b850;
|
|
1290
|
-
--vscode-notificationCenter-border: #e5e5e5;
|
|
1291
|
-
--vscode-notificationToast-border: #e5e5e5;
|
|
1292
|
-
--vscode-notifications-foreground: #3b3b3b;
|
|
1293
|
-
--vscode-notifications-background: #ffffff;
|
|
1294
|
-
--vscode-notificationLink-foreground: #005fb8;
|
|
1295
|
-
--vscode-notificationCenterHeader-foreground: #3b3b3b;
|
|
1296
|
-
--vscode-notificationCenterHeader-background: #ffffff;
|
|
1297
|
-
--vscode-notifications-border: #e5e5e5;
|
|
1298
|
-
--vscode-notificationsErrorIcon-foreground: #e51400;
|
|
1299
|
-
--vscode-notificationsWarningIcon-foreground: #bf8803;
|
|
1300
|
-
--vscode-notificationsInfoIcon-foreground: #1a85ff;
|
|
1301
|
-
--vscode-editorGutter-commentRangeForeground: #d5d8e9;
|
|
1302
|
-
--vscode-debugToolBar-background: #f3f3f3;
|
|
1303
|
-
--vscode-debugToolBar-border: transparent;
|
|
1304
|
-
--vscode-debugIcon-startForeground: #388a34;
|
|
1305
|
-
--vscode-editor-stackFrameHighlightBackground: #ffff6673;
|
|
1306
|
-
--vscode-editor-focusedStackFrameHighlightBackground: #cee7ce73;
|
|
1307
|
-
--vscode-settings-headerForeground: #1f1f1f;
|
|
1308
|
-
--vscode-settings-modifiedItemIndicator: #bb800966;
|
|
1309
|
-
--vscode-settings-dropdownBackground: #ffffff;
|
|
1310
|
-
--vscode-settings-dropdownForeground: #3b3b3b;
|
|
1311
|
-
--vscode-settings-dropdownBorder: #cecece;
|
|
1312
|
-
--vscode-settings-dropdownListBorder: #c8c8c8;
|
|
1313
|
-
--vscode-settings-checkboxBackground: #f8f8f8;
|
|
1314
|
-
--vscode-settings-checkboxForeground: #3b3b3b;
|
|
1315
|
-
--vscode-settings-checkboxBorder: #cecece;
|
|
1316
|
-
--vscode-settings-textInputBackground: #ffffff;
|
|
1317
|
-
--vscode-settings-textInputForeground: #3b3b3b;
|
|
1318
|
-
--vscode-settings-numberInputBackground: #ffffff;
|
|
1319
|
-
--vscode-settings-numberInputForeground: #3b3b3b;
|
|
1320
|
-
--vscode-settings-focusedRowBackground: #f2f2f299;
|
|
1321
|
-
--vscode-settings-rowHoverBackground: #f2f2f24d;
|
|
1322
|
-
--vscode-settings-focusedRowBorder: #005fb8;
|
|
1323
|
-
--vscode-terminal-background: transparent;
|
|
1324
|
-
--vscode-terminal-foreground: #3b3b3b;
|
|
1325
|
-
--vscode-terminal-selectionBackground: #add6ff;
|
|
1326
|
-
--vscode-terminal-border: #e5e5e5;
|
|
1327
|
-
--vscode-terminal-dropBackground: #2677cb2e;
|
|
1328
|
-
--vscode-testing-iconFailed: #f14c4c;
|
|
1329
|
-
--vscode-testing-iconErrored: #f14c4c;
|
|
1330
|
-
--vscode-testing-iconPassed: #73c991;
|
|
1331
|
-
--vscode-testing-runAction: #73c991;
|
|
1332
|
-
--vscode-testing-iconQueued: #cca700;
|
|
1333
|
-
--vscode-testing-iconUnset: #848484;
|
|
1334
|
-
--vscode-testing-iconSkipped: #848484;
|
|
1335
|
-
--vscode-testing-peekBorder: #e51400;
|
|
1336
|
-
--vscode-testing-peekHeaderBackground: #e514001a;
|
|
1337
|
-
--vscode-testing-message\.error\.decorationForeground: transparent;
|
|
1338
|
-
--vscode-testing-message\.error\.lineBackground: transparent;
|
|
1339
|
-
--vscode-testing-message\.info\.decorationForeground: #3b3b3b80;
|
|
1340
|
-
--vscode-welcomePage-tileBackground: #f3f3f3;
|
|
1341
|
-
--vscode-welcomePage-tileHoverBackground: #dfdfdf;
|
|
1342
|
-
--vscode-welcomePage-tileShadow: transparent;
|
|
1343
|
-
--vscode-welcomePage-progress\.background: #ffffff;
|
|
1344
|
-
--vscode-welcomePage-progress\.foreground: #005fb8;
|
|
1345
|
-
--vscode-statusBar-debuggingBackground: #fd716c;
|
|
1346
|
-
--vscode-statusBar-debuggingForeground: #000000;
|
|
1347
|
-
--vscode-statusBar-debuggingBorder: #e5e5e5;
|
|
1348
|
-
--vscode-debugExceptionWidget-border: #a31515;
|
|
1349
|
-
--vscode-debugExceptionWidget-background: #f1dfde;
|
|
1350
|
-
--vscode-ports-iconRunningProcessForeground: #369432;
|
|
1351
|
-
--vscode-editor-inlineValuesForeground: #00000080;
|
|
1352
|
-
--vscode-editor-inlineValuesBackground: #ffc80033;
|
|
1353
|
-
--vscode-editorGutter-modifiedBackground: #005fb8;
|
|
1354
|
-
--vscode-editorGutter-addedBackground: #2ea043;
|
|
1355
|
-
--vscode-editorGutter-deletedBackground: #f85149;
|
|
1356
|
-
--vscode-minimapGutter-modifiedBackground: #005fb8;
|
|
1357
|
-
--vscode-minimapGutter-addedBackground: #2ea043;
|
|
1358
|
-
--vscode-minimapGutter-deletedBackground: #f85149;
|
|
1359
|
-
--vscode-editorOverviewRuler-modifiedForeground: #005fb899;
|
|
1360
|
-
--vscode-editorOverviewRuler-addedForeground: #2ea04399;
|
|
1361
|
-
--vscode-editorOverviewRuler-deletedForeground: #f8514999;
|
|
1362
|
-
--vscode-debugIcon-breakpointForeground: #e51400;
|
|
1363
|
-
--vscode-debugIcon-breakpointDisabledForeground: #848484;
|
|
1364
|
-
--vscode-debugIcon-breakpointUnverifiedForeground: #848484;
|
|
1365
|
-
--vscode-debugIcon-breakpointCurrentStackframeForeground: #be8700;
|
|
1366
|
-
--vscode-debugIcon-breakpointStackframeForeground: #89d185;
|
|
1367
|
-
--vscode-keybindingTable-headerBackground: #3b3b3b0a;
|
|
1368
|
-
--vscode-keybindingTable-rowsBackground: #3b3b3b0a;
|
|
1369
|
-
--vscode-notebook-cellBorderColor: #e5e5e5;
|
|
1370
|
-
--vscode-notebook-focusedEditorBorder: #005fb8;
|
|
1371
|
-
--vscode-notebookStatusSuccessIcon-foreground: #388a34;
|
|
1372
|
-
--vscode-notebookStatusErrorIcon-foreground: #f85149;
|
|
1373
|
-
--vscode-notebookStatusRunningIcon-foreground: #3b3b3b;
|
|
1374
|
-
--vscode-notebook-cellToolbarSeparator: #80808059;
|
|
1375
|
-
--vscode-notebook-selectedCellBackground: #c8ddf150;
|
|
1376
|
-
--vscode-notebook-selectedCellBorder: #e5e5e5;
|
|
1377
|
-
--vscode-notebook-focusedCellBorder: #005fb8;
|
|
1378
|
-
--vscode-notebook-inactiveFocusedCellBorder: #e5e5e5;
|
|
1379
|
-
--vscode-notebook-cellStatusBarItemHoverBackground: #00000014;
|
|
1380
|
-
--vscode-notebook-cellInsertionIndicator: #005fb8;
|
|
1381
|
-
--vscode-notebookScrollbarSlider-background: #64646466;
|
|
1382
|
-
--vscode-notebookScrollbarSlider-hoverBackground: #646464b3;
|
|
1383
|
-
--vscode-notebookScrollbarSlider-activeBackground: #00000099;
|
|
1384
|
-
--vscode-notebook-symbolHighlightBackground: #fdff0033;
|
|
1385
|
-
--vscode-notebook-cellEditorBackground: #f8f8f8;
|
|
1386
|
-
--vscode-scm-providerBorder: transparent;
|
|
1387
|
-
--vscode-debugTokenExpression-name: #9b46b0;
|
|
1388
|
-
--vscode-debugTokenExpression-value: #6c6c6ccc;
|
|
1389
|
-
--vscode-debugTokenExpression-string: #a31515;
|
|
1390
|
-
--vscode-debugTokenExpression-boolean: #0000ff;
|
|
1391
|
-
--vscode-debugTokenExpression-number: #098658;
|
|
1392
|
-
--vscode-debugTokenExpression-error: #e51400;
|
|
1393
|
-
--vscode-debugView-exceptionLabelForeground: #ffffff;
|
|
1394
|
-
--vscode-debugView-exceptionLabelBackground: #a31515;
|
|
1395
|
-
--vscode-debugView-stateLabelForeground: #3b3b3b;
|
|
1396
|
-
--vscode-debugView-stateLabelBackground: #88888844;
|
|
1397
|
-
--vscode-debugView-valueChangedHighlight: #569cd6;
|
|
1398
|
-
--vscode-debugConsole-infoForeground: #1a85ff;
|
|
1399
|
-
--vscode-debugConsole-warningForeground: #bf8803;
|
|
1400
|
-
--vscode-debugConsole-errorForeground: #f85149;
|
|
1401
|
-
--vscode-debugConsole-sourceForeground: #3b3b3b;
|
|
1402
|
-
--vscode-debugConsoleInputIcon-foreground: #3b3b3b;
|
|
1403
|
-
--vscode-debugIcon-pauseForeground: #007acc;
|
|
1404
|
-
--vscode-debugIcon-stopForeground: #a1260d;
|
|
1405
|
-
--vscode-debugIcon-disconnectForeground: #a1260d;
|
|
1406
|
-
--vscode-debugIcon-restartForeground: #388a34;
|
|
1407
|
-
--vscode-debugIcon-stepOverForeground: #007acc;
|
|
1408
|
-
--vscode-debugIcon-stepIntoForeground: #007acc;
|
|
1409
|
-
--vscode-debugIcon-stepOutForeground: #007acc;
|
|
1410
|
-
--vscode-debugIcon-continueForeground: #007acc;
|
|
1411
|
-
--vscode-debugIcon-stepBackForeground: #007acc;
|
|
1412
|
-
--vscode-extensionButton-prominentBackground: #005fb8;
|
|
1413
|
-
--vscode-extensionButton-prominentForeground: #ffffff;
|
|
1414
|
-
--vscode-extensionButton-prominentHoverBackground: #0258a8;
|
|
1415
|
-
--vscode-extensionIcon-starForeground: #df6100;
|
|
1416
|
-
--vscode-extensionIcon-verifiedForeground: #005fb8;
|
|
1417
|
-
--vscode-extensionIcon-preReleaseForeground: #1d9271;
|
|
1418
|
-
--vscode-terminal-ansiBlack: #000000;
|
|
1419
|
-
--vscode-terminal-ansiRed: #cd3131;
|
|
1420
|
-
--vscode-terminal-ansiGreen: #107c10;
|
|
1421
|
-
--vscode-terminal-ansiYellow: #949800;
|
|
1422
|
-
--vscode-terminal-ansiBlue: #0451a5;
|
|
1423
|
-
--vscode-terminal-ansiMagenta: #bc05bc;
|
|
1424
|
-
--vscode-terminal-ansiCyan: #0598bc;
|
|
1425
|
-
--vscode-terminal-ansiWhite: #555555;
|
|
1426
|
-
--vscode-terminal-ansiBrightBlack: #666666;
|
|
1427
|
-
--vscode-terminal-ansiBrightRed: #cd3131;
|
|
1428
|
-
--vscode-terminal-ansiBrightGreen: #14ce14;
|
|
1429
|
-
--vscode-terminal-ansiBrightYellow: #b5ba00;
|
|
1430
|
-
--vscode-terminal-ansiBrightBlue: #0451a5;
|
|
1431
|
-
--vscode-terminal-ansiBrightMagenta: #bc05bc;
|
|
1432
|
-
--vscode-terminal-ansiBrightCyan: #0598bc;
|
|
1433
|
-
--vscode-terminal-ansiBrightWhite: #a5a5a5;
|
|
1434
|
-
--vscode-interactive-activeCodeBorder: #007acc;
|
|
1435
|
-
--vscode-interactive-inactiveCodeBorder: #e4e6f1;
|
|
1436
|
-
--vscode-gitDecoration-addedResourceForeground: #587c0c;
|
|
1437
|
-
--vscode-gitDecoration-modifiedResourceForeground: #895503;
|
|
1438
|
-
--vscode-gitDecoration-deletedResourceForeground: #ad0707;
|
|
1439
|
-
--vscode-gitDecoration-renamedResourceForeground: #007100;
|
|
1440
|
-
--vscode-gitDecoration-untrackedResourceForeground: #007100;
|
|
1441
|
-
--vscode-gitDecoration-ignoredResourceForeground: #8e8e90;
|
|
1442
|
-
--vscode-gitDecoration-stageModifiedResourceForeground: #895503;
|
|
1443
|
-
--vscode-gitDecoration-stageDeletedResourceForeground: #ad0707;
|
|
1444
|
-
--vscode-gitDecoration-conflictingResourceForeground: #ad0707;
|
|
1445
|
-
--vscode-gitDecoration-submoduleResourceForeground: #1258a7;
|
|
1446
|
-
--vscode-testExplorer-errorDecorationBackground: transparent;
|
|
1447
|
-
--vscode-widget-border: #e5e5e5;
|
|
1448
|
-
--vscode-activityBarBadge-background: #005fb8;
|
|
1449
|
-
}
|
|
1450
|
-
`;var ia=Object.defineProperty,sa=Object.getOwnPropertyDescriptor,ws=e=>{throw TypeError(e)},oe=(e,t,r,h)=>{for(var v=h>1?void 0:h?sa(t,r):t,E=e.length-1,C;E>=0;E--)(C=e[E])&&(v=(h?C(t,r,v):C(v))||v);return h&&v&&ia(t,r,v),v},oa=(e,t,r)=>t.has(e)||ws("Cannot "+r),na=(e,t,r)=>t.has(e)?ws("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),re=(e,t,r)=>(oa(e,t,"access private method"),r),te,Yt,Es,ks,Pt,xe,Sr,Bs,Is,yr,Rs,Cr,xs,As,Ls,Ts,Ds,Os,Ns,Ms,Ps=(e=>(e.OpenLink="Open",e.CopyToClipboard="Copy to clipboard",e.Cancel="Cancel",e))(Ps||{});const Ge=(...e)=>`--vscode-${e.join("-")}`,Ve=e=>Ge("terminal",e),aa=e=>`ansi${e.charAt(0).toUpperCase()+e.slice(1)}`,ca=["terminal:","theme:",Q.platformApiRequest,Q.platformApiResponse,Q.onOptionsMessage,Q.optionsMessage,Q.onCopyTextToClipboard,Q.onProgramClose,Q.featuresResponse,Q.featuresUpdateAction],la=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],da="terminal-view";let ie=class extends ue{constructor(){super(),na(this,te),this.copyText="Copy",this.disposables=[],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,this.windowSize={height:window.innerHeight,width:window.innerWidth}}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(ta.cssText),this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.themeStyleSheet]):this.theme==="light"&&(this.themeStyleSheet=new CSSStyleSheet,this.themeStyleSheet.replaceSync(ra.cssText),this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.themeStyleSheet])}}connectedCallback(){var d;if(super.connectedCallback(),this.applyThemeStyles(),!this.id)throw new Error("No id provided to terminal!");this.rows=this.initialRows??this.rows;const{rows:e,cursorBlink:t,fontSize:r,cursorStyle:h,cursorWidth:v,fontFamily:E,smoothScrollDuration:C,scrollback:i}=this;this.terminal=new Wo.Terminal({rows:e,fontSize:r,fontFamily:E,scrollback:i,cursorWidth:v,cursorBlink:t,cursorStyle:h,smoothScrollDuration:C,disableStdin:!1,convertEol:!0,allowProposedApi:!0,drawBoldTextInBrightColors:!1}),this.initialContent&&((d=this.terminal)==null||d.write(this.initialContent)),this.fitAddon=new Nn,this.fitAddon.activate(this.terminal),this.serializer=new Go.SerializeAddon,this.terminal.loadAddon(this.serializer),this.terminal.loadAddon(new Zo.Unicode11Addon),this.terminal.loadAddon(new Yo.WebLinksAddon(re(this,te,Ds).bind(this))),this.terminal.attachCustomKeyEventHandler(g=>{var l;if(g.shiftKey&&g.ctrlKey&&g.code==="KeyC"){const _=(l=this==null?void 0:this.terminal)==null?void 0:l.getSelection();if(_)return navigator.clipboard.writeText(_),!1}return!0}),this.terminal.unicode.activeVersion="11",this.terminal.options.drawBoldTextInBrightColors;const c=ge();this.disposables.push(go(c,async g=>{var l;if(ca.some(_=>g.type.startsWith(_)))switch(g.type){case Q.activeThemeChanged:re(this,te,Pt).call(this);break;case Q.terminalStdout:case Q.terminalStderr:{const{"runme.dev/id":_,data:b}=g.output;if(_!==this.id)return;this.isShareReady=!1,this.terminal.write(b),this.requestUpdate()}break;case Q.platformApiResponse:{if(g.output.id!==this.id)return;if(this.isLoading=!1,g.output.hasErrors)return de(c,Q.errorMessage,g.output.data);if(g.output.data.hasOwnProperty("displayShare")&&g.output.data.displayShare===!1)return;const _=((l=g.output.data)==null?void 0:l.data)||{};if(_.createExtensionCellOutput||_.createCellExecution){const b=_.createCellExecution||_.createExtensionCellOutput||{},{exitCode:w,id:f,htmlUrl:s,isSlackReady:n}=b;return this.platformId=f,this.shareUrl=s||"",this.exitCode=w,this.isSlackReady=!!n,this.isShareReady=!0,de(c,Q.tangleEvent,{webviewId:es.RunmeCloud,data:{cellId:f}})}if(_.updateCellOutput){const{updateCellOutput:{exitCode:b,isSlackReady:w}}=_;this.isUpdatedReady=!0,this.exitCode=b,this.isSlackReady=!!w,re(this,te,Rs).call(this)}_.createEscalation&&(this.escalationUrl=_.createEscalation.escalationUrl)}break;case Q.onOptionsMessage:{if(g.output.id!==this.id)return;const _=g.output.option;switch(this.isLoading=!1,_){case"Open":return de(c,Q.openExternalLink,{link:this.shareUrl,telemetryEvent:"app.openLink"});case"Copy to clipboard":return de(c,Q.copyTextToClipboard,{id:this.id,text:this.shareUrl})}}break;case Q.onCopyTextToClipboard:return g.output.id!==this.id?void 0:de(c,Q.infoMessage,"Link copied!");case Q.onProgramClose:{const{"runme.dev/id":_,code:b}=g.output;if(_!==this.id)return;this.exitCode=b;return}}}),this.terminal.onData(g=>de(c,Q.terminalStdin,{"runme.dev/id":this.id,input:g}))),de(c,Q.featuresRequest,{})}disconnectedCallback(){super.disconnectedCallback(),this.dispose()}updated(e){super.updated(e),e.has("theme")&&(this.applyThemeStyles(),re(this,te,Pt).call(this))}firstUpdated(e){var E;super.firstUpdated(e);const t=re(this,te,ks).call(this);this.takeFocus&&window.addEventListener("focus",()=>{re(this,te,yr).call(this)}),window.addEventListener("click",()=>{re(this,te,yr).call(this,!1)}),this.terminal.open(t),this.takeFocus&&this.terminal.focus(),re(this,te,Yt).call(this),re(this,te,Pt).call(this);const r=re(this,te,Es).call(this),h=new ke(C=>{window.addEventListener("resize",()=>C.next(re(this,te,Sr).call(this,!0))),t.addEventListener("mouseup",()=>C.next(re(this,te,Sr).call(this,!1)))}).pipe(Tn());re(this,te,Bs).call(this,h),re(this,te,Is).call(this,h),t.appendChild(r);const v=ge();v.postMessage&&de(v,Q.terminalOpen,{"runme.dev/id":this.id,terminalDimensions:Fs((E=this.fitAddon)==null?void 0:E.proposeDimensions())}),this.lastLine&&this.terminal.scrollToLine(this.lastLine)}render(){const h=Z`
|
|
1451
|
-
<close-cell-button
|
|
1452
|
-
@closed="${()=>Mn({id:this.id,outputType:Qi.terminal})}"
|
|
1453
|
-
></close-cell-button>
|
|
1454
|
-
<div class="button-group">
|
|
1455
|
-
<copy-button
|
|
1456
|
-
copyText="${this.copyText}"
|
|
1457
|
-
@onCopy="${async()=>re(this,te,Ms).call(this)}"
|
|
1458
|
-
></copy-button>
|
|
1459
|
-
${ce(!0,()=>Z`<gist-cell @onGist="${re(this,te,Ls)}"></gist-cell>`,()=>{})}
|
|
1460
|
-
${ce(this.shouldRenderSaveButton(),()=>Z`<save-button
|
|
1461
|
-
?loading=${this.isLoading}
|
|
1462
|
-
?signedIn=${!1}
|
|
1463
|
-
@onClick="${re(this,te,Cr)}"
|
|
1464
|
-
>
|
|
1465
|
-
</save-button>`,()=>{})}
|
|
1466
|
-
${ce(this.shouldRenderShareButton(),()=>Z`<share-button
|
|
1467
|
-
?loading=${this.isLoading}
|
|
1468
|
-
@onClick="${re(this,te,Cr)}"
|
|
1469
|
-
>
|
|
1470
|
-
</share-button>`,()=>{})}
|
|
1471
|
-
${ce(!1,()=>Z`<action-button
|
|
1472
|
-
?loading=${this.isCreatingEscalation}
|
|
1473
|
-
?saveIcon="${!0}"
|
|
1474
|
-
text="Escalate"
|
|
1475
|
-
@onClick="${re(this,te,xs)}"
|
|
1476
|
-
@onClickDisabled=${re(this,te,Ns)}
|
|
1477
|
-
>
|
|
1478
|
-
</action-button>`,()=>{})}
|
|
1479
|
-
${ce(!1,()=>Z`<action-button
|
|
1480
|
-
?saveIcon="${!0}"
|
|
1481
|
-
text="Open Escalation"
|
|
1482
|
-
@onClick="${re(this,te,As)}"
|
|
1483
|
-
>
|
|
1484
|
-
</action-button>`,()=>{})}
|
|
1485
|
-
${ce(this.platformId&&!this.isLoading,()=>Z`<open-cell
|
|
1486
|
-
?disabled=${!this.isPlatformAuthEnabled}
|
|
1487
|
-
@onOpen="${re(this,te,Os)}"
|
|
1488
|
-
></open-cell>`,()=>{})}
|
|
1489
|
-
</div>
|
|
1490
|
-
`;return Z`<section>
|
|
1491
|
-
<div id="terminal"></div>
|
|
1492
|
-
${ce(this.buttons,()=>h)}
|
|
1493
|
-
</section>`}dispose(){this.disposables.forEach(({dispose:e})=>e())}shouldRenderSaveButton(){return!1}shouldRenderShareButton(){return!1}};te=new WeakSet;Yt=function(e){var t;return e!==void 0&&(this.rows=e),(t=this.fitAddon)==null?void 0:t.fit(this.rows)};Es=function(){const e=document.createElement("div");e.setAttribute("class","xterm-drag-handle");let t;const r=E=>{var C;t={initialClientY:E.clientY,initialRows:this.rows},E.preventDefault(),(C=this.terminal)==null||C.focus()},h=()=>{t!==void 0&&(t=void 0)},v=E=>{var d;if(t===void 0||!this.fitAddon)return;const i=(E.clientY-t.initialClientY)/this.fitAddon.getCellSize().height,c=Math.round(t.initialRows+i);c!==this.rows&&(re(this,te,Yt).call(this,c),(d=this.terminal)==null||d.focus())};return e.addEventListener("mousedown",r),window.addEventListener("mouseup",h),window.addEventListener("mousemove",v),this.disposables.push({dispose:()=>{e.removeEventListener("mousedown",r),window.removeEventListener("mouseup",h),window.removeEventListener("mousemove",v)}}),e};ks=function(){var e;return(e=this.shadowRoot)==null?void 0:e.querySelector("#terminal")};Pt=function(){const e=re(this,te,xe).call(this,Ve("foreground")),t={foreground:e,cursor:re(this,te,xe).call(this,Ge("terminalCursor","foreground"))||e,cursorAccent:re(this,te,xe).call(this,Ge("terminalCursor","background")),selectionForeground:re(this,te,xe).call(this,Ve("selectionForeground")),selectionBackground:re(this,te,xe).call(this,Ve("selectionBackground")),selectionInactiveBackground:re(this,te,xe).call(this,Ve("inactiveSelectionBackground")),...Object.fromEntries(la.map(r=>[r,re(this,te,xe).call(this,Ve(aa(r)))]))};this.terminal.options.theme=t};xe=function(e){var r;const t=(r=this.shadowRoot)==null?void 0:r.querySelector("#terminal");return getComputedStyle(t).getPropertyValue(e)??void 0};Sr=function(e){if(!this.fitAddon)return;const{innerWidth:t,innerHeight:r}=window;if(e&&Math.abs(this.windowSize.width-t)<=Number.EPSILON&&Math.abs(this.windowSize.height-r)<=Number.EPSILON)return;this.windowSize.width=t;const h=re(this,te,Yt).call(this);if(h)return Fs(h)};Bs=async function(e){const r=e.pipe(vs(h=>!!h),ms(),ps(100)).subscribe(async h=>{const v=ge();v.postMessage&&await de(v,Q.terminalResize,{"runme.dev/id":this.id,terminalDimensions:h})});this.disposables.push({dispose:()=>r.unsubscribe()})};Is=async function(e){const r=e.pipe(An(h=>h==null?void 0:h.rows),vs(h=>!!h),ms(),ps(100)).subscribe(async h=>{const v=ge();v.postMessage&&v.postMessage({type:Q.mutateAnnotations,output:{annotations:{"runme.dev/id":this.id,terminalRows:h}}})});this.disposables.push({dispose:()=>r.unsubscribe()})};yr=async function(e=!0){var r;e&&((r=this.terminal)==null||r.focus());const t=ge();t.postMessage&&await de(t,Q.terminalFocus,{"runme.dev/id":this.id})};Rs=async function(){const e=ge();if(!(!e.postMessage||!this.shareUrl))return de(e,Q.optionsMessage,{title:'Please share link with caution. Anyone with the link has access. Click "Open" to toggle visibility.',options:Object.values(Ps),id:this.id,telemetryEvent:"app.share"})};Cr=async function(){return re(this,te,Ts).call(this,!0)};xs=async function(){this.isCreatingEscalation=!0};As=async function(){const e=ge();if(this.escalationUrl)return de(e,Q.openLink,this.escalationUrl)};Ls=function(){const e=ge();if(e.postMessage)return de(e,Q.gistCell,{cellId:this.id,telemetryEvent:"app.cellGist"})};Ts=async function(e){ge().postMessage};Ds=function(e,t){de(ge(),Q.openLink,t)};Os=function(){de(ge(),Q.openLink,this.shareUrl)};Ns=function(){de(ge(),Q.errorMessage,`There is no Slack integration configured yet.
|
|
1494
|
-
Open Dashboard to configure it`)};Ms=function(){var r;const e=ge();if(!e.postMessage)return;const t=ha(((r=this.serializer)==null?void 0:r.serialize({excludeModes:!0,excludeAltBuffer:!0}))??"");return navigator.clipboard.writeText(t).then(()=>{this.copyText="Copied!",this.requestUpdate()}).catch(h=>de(e,Q.infoMessage,`Failed to copy to clipboard: ${h.message}!`))};ie.styles=Se`
|
|
1495
|
-
.xterm {
|
|
1496
|
-
cursor: text;
|
|
1497
|
-
position: relative;
|
|
1498
|
-
padding: 10px;
|
|
1499
|
-
user-select: none;
|
|
1500
|
-
-ms-user-select: none;
|
|
1501
|
-
-webkit-user-select: none;
|
|
1502
|
-
}
|
|
1503
|
-
|
|
1504
|
-
.xterm.focus,
|
|
1505
|
-
.xterm:focus {
|
|
1506
|
-
border: solid 1px var(--vscode-focusBorder);
|
|
1507
|
-
}
|
|
1508
|
-
|
|
1509
|
-
.xterm .xterm-helpers {
|
|
1510
|
-
position: absolute;
|
|
1511
|
-
top: 0;
|
|
1512
|
-
/**
|
|
1513
|
-
* The z-index of the helpers must be higher than the canvases in order for
|
|
1514
|
-
* IMEs to appear on top.
|
|
1515
|
-
*/
|
|
1516
|
-
z-index: 5;
|
|
1517
|
-
}
|
|
1518
|
-
|
|
1519
|
-
.xterm .xterm-helper-textarea {
|
|
1520
|
-
padding: 0;
|
|
1521
|
-
border: 0;
|
|
1522
|
-
margin: 0;
|
|
1523
|
-
/* Move textarea out of the screen to the far left, so that the cursor is not visible */
|
|
1524
|
-
position: absolute;
|
|
1525
|
-
opacity: 0;
|
|
1526
|
-
left: -9999em;
|
|
1527
|
-
top: 0;
|
|
1528
|
-
width: 0;
|
|
1529
|
-
height: 0;
|
|
1530
|
-
z-index: -5;
|
|
1531
|
-
/** Prevent wrapping so the IME appears against the textarea at the correct position */
|
|
1532
|
-
white-space: nowrap;
|
|
1533
|
-
overflow: hidden;
|
|
1534
|
-
resize: none;
|
|
1535
|
-
}
|
|
1536
|
-
|
|
1537
|
-
.xterm .composition-view {
|
|
1538
|
-
color: #fff;
|
|
1539
|
-
display: none;
|
|
1540
|
-
position: absolute;
|
|
1541
|
-
white-space: nowrap;
|
|
1542
|
-
z-index: 1;
|
|
1543
|
-
}
|
|
1544
|
-
|
|
1545
|
-
.xterm .composition-view.active {
|
|
1546
|
-
display: block;
|
|
1547
|
-
}
|
|
1548
|
-
|
|
1549
|
-
.xterm .xterm-viewport {
|
|
1550
|
-
background-color: var(${at(Ve("background"))}) !important;
|
|
1551
|
-
border: solid 1px var(--vscode-terminal-border);
|
|
1552
|
-
/* On OS X this is required in order for the scroll bar to appear fully opaque */
|
|
1553
|
-
overflow-y: scroll;
|
|
1554
|
-
cursor: default;
|
|
1555
|
-
position: absolute;
|
|
1556
|
-
right: 0;
|
|
1557
|
-
left: 0;
|
|
1558
|
-
top: 0;
|
|
1559
|
-
bottom: 0;
|
|
1560
|
-
}
|
|
1561
|
-
|
|
1562
|
-
.xterm .xterm-screen {
|
|
1563
|
-
position: relative;
|
|
1564
|
-
}
|
|
1565
|
-
|
|
1566
|
-
.xterm .xterm-screen canvas {
|
|
1567
|
-
position: absolute;
|
|
1568
|
-
left: 0;
|
|
1569
|
-
top: 0;
|
|
1570
|
-
}
|
|
1571
|
-
|
|
1572
|
-
.xterm-viewport::-webkit-scrollbar {
|
|
1573
|
-
width: 10px;
|
|
1574
|
-
}
|
|
1575
|
-
|
|
1576
|
-
.xterm-viewport::-webkit-scrollbar-thumb {
|
|
1577
|
-
background-color: rgba(0, 0, 0, 0);
|
|
1578
|
-
min-height: 20px;
|
|
1579
|
-
}
|
|
1580
|
-
|
|
1581
|
-
.xterm:hover .xterm-viewport::-webkit-scrollbar-thumb {
|
|
1582
|
-
background-color: var(${at(Ge("scrollbarSlider","background"))});
|
|
1583
|
-
}
|
|
1584
|
-
|
|
1585
|
-
.xterm:hover .xterm-viewport::-webkit-scrollbar-thumb:hover {
|
|
1586
|
-
background-color: var(${at(Ge("scrollbarSlider","hoverBackground"))});
|
|
1587
|
-
}
|
|
1588
|
-
|
|
1589
|
-
.xterm:hover .xterm-viewport::-webkit-scrollbar-thumb:active {
|
|
1590
|
-
background-color: var(${at(Ge("scrollbarSlider","activeBackground"))});
|
|
1591
|
-
}
|
|
1592
|
-
|
|
1593
|
-
.xterm .xterm-scroll-area {
|
|
1594
|
-
visibility: hidden;
|
|
1595
|
-
}
|
|
1596
|
-
|
|
1597
|
-
.xterm-char-measure-element {
|
|
1598
|
-
display: inline-block;
|
|
1599
|
-
visibility: hidden;
|
|
1600
|
-
position: absolute;
|
|
1601
|
-
top: 0;
|
|
1602
|
-
left: -9999em;
|
|
1603
|
-
line-height: normal;
|
|
1604
|
-
}
|
|
1605
|
-
|
|
1606
|
-
.xterm.enable-mouse-events {
|
|
1607
|
-
/* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */
|
|
1608
|
-
cursor: default;
|
|
1609
|
-
}
|
|
1610
|
-
|
|
1611
|
-
.xterm.xterm-cursor-pointer,
|
|
1612
|
-
.xterm .xterm-cursor-pointer {
|
|
1613
|
-
cursor: pointer;
|
|
1614
|
-
}
|
|
1615
|
-
|
|
1616
|
-
.xterm.column-select.focus {
|
|
1617
|
-
/* Column selection mode */
|
|
1618
|
-
cursor: crosshair;
|
|
1619
|
-
}
|
|
1620
|
-
|
|
1621
|
-
.xterm .xterm-accessibility,
|
|
1622
|
-
.xterm .xterm-message {
|
|
1623
|
-
position: absolute;
|
|
1624
|
-
left: 0;
|
|
1625
|
-
top: 0;
|
|
1626
|
-
bottom: 0;
|
|
1627
|
-
z-index: 10;
|
|
1628
|
-
color: transparent;
|
|
1629
|
-
}
|
|
1630
|
-
|
|
1631
|
-
.xterm .live-region {
|
|
1632
|
-
position: absolute;
|
|
1633
|
-
left: -9999px;
|
|
1634
|
-
width: 1px;
|
|
1635
|
-
height: 1px;
|
|
1636
|
-
overflow: hidden;
|
|
1637
|
-
}
|
|
1638
|
-
|
|
1639
|
-
.xterm-dim {
|
|
1640
|
-
opacity: 0.5;
|
|
1641
|
-
}
|
|
1642
|
-
|
|
1643
|
-
.xterm-underline-1 {
|
|
1644
|
-
text-decoration: underline;
|
|
1645
|
-
}
|
|
1646
|
-
.xterm-underline-2 {
|
|
1647
|
-
text-decoration: double underline;
|
|
1648
|
-
}
|
|
1649
|
-
.xterm-underline-3 {
|
|
1650
|
-
text-decoration: wavy underline;
|
|
1651
|
-
}
|
|
1652
|
-
.xterm-underline-4 {
|
|
1653
|
-
text-decoration: dotted underline;
|
|
1654
|
-
}
|
|
1655
|
-
.xterm-underline-5 {
|
|
1656
|
-
text-decoration: dashed underline;
|
|
1657
|
-
}
|
|
1658
|
-
|
|
1659
|
-
.xterm-strikethrough {
|
|
1660
|
-
text-decoration: line-through;
|
|
1661
|
-
}
|
|
1662
|
-
|
|
1663
|
-
.xterm-screen .xterm-decoration-container .xterm-decoration {
|
|
1664
|
-
z-index: 6;
|
|
1665
|
-
position: absolute;
|
|
1666
|
-
}
|
|
1667
|
-
|
|
1668
|
-
.xterm-decoration-overview-ruler {
|
|
1669
|
-
z-index: 7;
|
|
1670
|
-
position: absolute;
|
|
1671
|
-
top: 0;
|
|
1672
|
-
right: 0;
|
|
1673
|
-
pointer-events: none;
|
|
1674
|
-
}
|
|
1675
|
-
|
|
1676
|
-
.xterm-decoration-top {
|
|
1677
|
-
z-index: 2;
|
|
1678
|
-
position: relative;
|
|
1679
|
-
}
|
|
1680
|
-
|
|
1681
|
-
vscode-button {
|
|
1682
|
-
color: var(--vscode-button-foreground);
|
|
1683
|
-
background-color: var(--vscode-button-background);
|
|
1684
|
-
transform: scale(0.9);
|
|
1685
|
-
}
|
|
1686
|
-
vscode-button:hover {
|
|
1687
|
-
background: var(--vscode-button-hoverBackground);
|
|
1688
|
-
}
|
|
1689
|
-
vscode-button:focus {
|
|
1690
|
-
outline: #007fd4 1px solid;
|
|
1691
|
-
}
|
|
1692
|
-
.icon {
|
|
1693
|
-
width: 13px;
|
|
1694
|
-
margin: 0 5px 0 -5px;
|
|
1695
|
-
padding: 0;
|
|
1696
|
-
}
|
|
1697
|
-
|
|
1698
|
-
.button-group {
|
|
1699
|
-
display: flex;
|
|
1700
|
-
flex-direction: row;
|
|
1701
|
-
justify-content: end;
|
|
1702
|
-
}
|
|
1703
|
-
|
|
1704
|
-
section {
|
|
1705
|
-
display: flex;
|
|
1706
|
-
flex-direction: column;
|
|
1707
|
-
gap: 5px;
|
|
1708
|
-
position: relative;
|
|
1709
|
-
}
|
|
1710
|
-
|
|
1711
|
-
.xterm-drag-handle {
|
|
1712
|
-
width: 100%;
|
|
1713
|
-
position: absolute;
|
|
1714
|
-
bottom: -5px;
|
|
1715
|
-
height: 10px;
|
|
1716
|
-
cursor: row-resize;
|
|
1717
|
-
}
|
|
1718
|
-
|
|
1719
|
-
#terminal {
|
|
1720
|
-
position: relative;
|
|
1721
|
-
}
|
|
1722
|
-
|
|
1723
|
-
/** xf styles */
|
|
1724
|
-
.xterm-bg-257,
|
|
1725
|
-
.xterm-bg-7 {
|
|
1726
|
-
background-color: var(--vscode-editor-selectionBackground) !important;
|
|
1727
|
-
}
|
|
1728
|
-
`;oe([J({type:String})],ie.prototype,"id",2);oe([J({type:Boolean,converter:e=>e!=="false"})],ie.prototype,"buttons",2);oe([J({type:Boolean,converter:e=>e!=="false"})],ie.prototype,"takeFocus",2);oe([J({type:String})],ie.prototype,"theme",2);oe([J({type:String})],ie.prototype,"fontFamily",2);oe([J({type:Number})],ie.prototype,"fontSize",2);oe([J({type:String})],ie.prototype,"cursorStyle",2);oe([J({type:Boolean})],ie.prototype,"cursorBlink",2);oe([J({type:Number})],ie.prototype,"cursorWidth",2);oe([J({type:Number})],ie.prototype,"smoothScrollDuration",2);oe([J({type:Number})],ie.prototype,"scrollback",2);oe([J({type:String})],ie.prototype,"initialContent",2);oe([J({type:Number})],ie.prototype,"initialRows",2);oe([J({type:Number})],ie.prototype,"lastLine",2);oe([J({type:Boolean})],ie.prototype,"isLoading",2);oe([J({type:Boolean})],ie.prototype,"isCreatingEscalation",2);oe([J()],ie.prototype,"shareUrl",2);oe([J()],ie.prototype,"escalationUrl",2);oe([J({type:Boolean})],ie.prototype,"isUpdatedReady",2);oe([J({type:Boolean})],ie.prototype,"isAutoSaveEnabled",2);oe([J({type:Boolean})],ie.prototype,"isPlatformAuthEnabled",2);oe([J({type:Boolean})],ie.prototype,"isDaggerOutput",2);ie=oe([pe(da)],ie);function Fs(e){if(!e)return;const{rows:t,cols:r}=e;return{columns:r,rows:t}}function ha(e){return e.replace(/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,"")}var ua=Object.defineProperty,fa=Object.getOwnPropertyDescriptor,Jt=(e,t,r,h)=>{for(var v=h>1?void 0:h?fa(t,r):t,E=e.length-1,C;E>=0;E--)(C=e[E])&&(v=(h?C(t,r,v):C(v))||v);return h&&v&&ua(t,r,v),v};let Xe=class extends ue{constructor(){super(...arguments),this.columns=[],this.rows=[],this.renderer=(t,r)=>Z`${t[r]}`,this.displayable=()=>!0,this.hasErrors=()=>!1}get heading(){var t,r;return(t=this.columns)!=null&&t.length?Z`
|
|
1729
|
-
<thead>
|
|
1730
|
-
<tr>
|
|
1731
|
-
${(r=this.columns)==null?void 0:r.map(h=>{if(typeof h=="string")return Z`<th>${h}</th>`;if(typeof h=="object"){const{text:v,colspan:E}=h;return Z`<th colspan="${E||1}">${v}</th>`}})}
|
|
1732
|
-
</tr>
|
|
1733
|
-
</thead>
|
|
1734
|
-
`:le}render(){var t,r,h;return!((t=this.rows)!=null&&t.length)&&!((r=this.columns)!=null&&r.length)?le:Z`<table>
|
|
1735
|
-
${this.heading}
|
|
1736
|
-
<tbody>
|
|
1737
|
-
${(h=this.rows)==null?void 0:h.map(v=>Z`<tr
|
|
1738
|
-
class="${ce(this.hasErrors&&this.hasErrors(v),()=>"row-error",()=>"")}"
|
|
1739
|
-
>
|
|
1740
|
-
${Object.keys(v).map(E=>{var C;return ce((C=this.displayable)==null?void 0:C.call(this,v,E),()=>{var i;return Z`<td>${((i=this.renderer)==null?void 0:i.call(this,v,E))||v[E]}</td>`},()=>le)})}
|
|
1741
|
-
</tr>`)}
|
|
1742
|
-
</tbody>
|
|
1743
|
-
</table>`}};Xe.styles=Se`
|
|
1744
|
-
:host {
|
|
1745
|
-
width: 100%;
|
|
1746
|
-
}
|
|
1747
|
-
|
|
1748
|
-
.icon {
|
|
1749
|
-
width: 13px;
|
|
1750
|
-
margin: 0 5px 0 -5px;
|
|
1751
|
-
padding: 0;
|
|
1752
|
-
}
|
|
1753
|
-
|
|
1754
|
-
table {
|
|
1755
|
-
box-sizing: border-box;
|
|
1756
|
-
margin: 0px;
|
|
1757
|
-
padding: 10px;
|
|
1758
|
-
font-weight: 400;
|
|
1759
|
-
line-height: 20px;
|
|
1760
|
-
text-indent: 0px;
|
|
1761
|
-
vertical-align: baseline;
|
|
1762
|
-
background-color: var(--vscode-editor-inactiveSelectionBackground);
|
|
1763
|
-
width: 100%;
|
|
1764
|
-
border-collapse: collapse;
|
|
1765
|
-
}
|
|
1766
|
-
|
|
1767
|
-
tbody tr {
|
|
1768
|
-
text-align: left;
|
|
1769
|
-
}
|
|
1770
|
-
|
|
1771
|
-
thead {
|
|
1772
|
-
background-color: var(--vscode-editor-inactiveSelectionBackground);
|
|
1773
|
-
font-weight: 500;
|
|
1774
|
-
line-height: 20px;
|
|
1775
|
-
height: 20px;
|
|
1776
|
-
border: solid 1px var(--vscode-editorInlayHint-foreground);
|
|
1777
|
-
border-left: none;
|
|
1778
|
-
border-right: none;
|
|
1779
|
-
}
|
|
1780
|
-
|
|
1781
|
-
thead tr {
|
|
1782
|
-
background-color: var(--vscode-editor-inactiveSelectionBackground);
|
|
1783
|
-
color: var(--vscode-editor-selectionForeground);
|
|
1784
|
-
text-align: left;
|
|
1785
|
-
}
|
|
1786
|
-
|
|
1787
|
-
th {
|
|
1788
|
-
font-size: 10px;
|
|
1789
|
-
cursor: pointer;
|
|
1790
|
-
padding: 5px;
|
|
1791
|
-
}
|
|
1792
|
-
|
|
1793
|
-
tbody tr {
|
|
1794
|
-
background-color: var(--vscode-editor-background);
|
|
1795
|
-
border-bottom: solid 1px var(--vscode-editor-inactiveSelectionBackground);
|
|
1796
|
-
}
|
|
1797
|
-
|
|
1798
|
-
.label {
|
|
1799
|
-
padding: 2px;
|
|
1800
|
-
font-size: 8px;
|
|
1801
|
-
text-transform: lowercase;
|
|
1802
|
-
}
|
|
1803
|
-
|
|
1804
|
-
tbody tr {
|
|
1805
|
-
cursor: pointer;
|
|
1806
|
-
}
|
|
1807
|
-
|
|
1808
|
-
tbody tr:hover {
|
|
1809
|
-
background-color: var(--vscode-editor-inactiveSelectionBackground);
|
|
1810
|
-
color: var(--vscode-editor-selectionForeground);
|
|
1811
|
-
}
|
|
1812
|
-
|
|
1813
|
-
.actions {
|
|
1814
|
-
display: flex;
|
|
1815
|
-
align-items: center;
|
|
1816
|
-
flex-wrap: wrap;
|
|
1817
|
-
justify-content: center;
|
|
1818
|
-
}
|
|
1819
|
-
|
|
1820
|
-
.flex-column {
|
|
1821
|
-
display: flex;
|
|
1822
|
-
flex-wrap: nowrap;
|
|
1823
|
-
flex-direction: column;
|
|
1824
|
-
justify-content: space-around;
|
|
1825
|
-
align-items: stretch;
|
|
1826
|
-
}
|
|
1827
|
-
|
|
1828
|
-
.list {
|
|
1829
|
-
list-style: none;
|
|
1830
|
-
padding: 0;
|
|
1831
|
-
margin: 0;
|
|
1832
|
-
}
|
|
1833
|
-
|
|
1834
|
-
.grouped-row {
|
|
1835
|
-
display: flex;
|
|
1836
|
-
flex-wrap: wrap;
|
|
1837
|
-
flex-direction: column;
|
|
1838
|
-
}
|
|
1839
|
-
|
|
1840
|
-
.long-word {
|
|
1841
|
-
max-width: 100px;
|
|
1842
|
-
overflow: hidden;
|
|
1843
|
-
text-overflow: ellipsis;
|
|
1844
|
-
white-space: normal;
|
|
1845
|
-
}
|
|
1846
|
-
|
|
1847
|
-
vscode-button {
|
|
1848
|
-
color: var(--vscode-button-foreground);
|
|
1849
|
-
background-color: var(--vscode-button-background);
|
|
1850
|
-
transform: scale(0.9);
|
|
1851
|
-
}
|
|
1852
|
-
vscode-button:hover {
|
|
1853
|
-
background: var(--vscode-button-hoverBackground);
|
|
1854
|
-
}
|
|
1855
|
-
|
|
1856
|
-
tbody tr td {
|
|
1857
|
-
max-width: 100px;
|
|
1858
|
-
text-overflow: ellipsis;
|
|
1859
|
-
overflow: hidden;
|
|
1860
|
-
text-wrap: nowrap;
|
|
1861
|
-
}
|
|
1862
|
-
|
|
1863
|
-
.row-error {
|
|
1864
|
-
background-color: var(--vscode-inputValidation-errorBackground);
|
|
1865
|
-
border: solid 2px var(--vscode-inputValidation-errorBorder);
|
|
1866
|
-
}
|
|
1867
|
-
|
|
1868
|
-
.flex {
|
|
1869
|
-
display: flex;
|
|
1870
|
-
align-items: baseline;
|
|
1871
|
-
gap: 1px;
|
|
1872
|
-
}
|
|
1873
|
-
|
|
1874
|
-
.status {
|
|
1875
|
-
display: flex;
|
|
1876
|
-
align-items: center;
|
|
1877
|
-
flex-wrap: wrap;
|
|
1878
|
-
place-content: stretch space-evenly;
|
|
1879
|
-
}
|
|
1880
|
-
|
|
1881
|
-
.flex-center {
|
|
1882
|
-
align-items: center;
|
|
1883
|
-
}
|
|
1884
|
-
`;Jt([J({type:Array})],Xe.prototype,"columns",2);Jt([J({type:Array})],Xe.prototype,"rows",2);Jt([J({type:Object})],Xe.prototype,"renderer",2);Xe=Jt([pe("table-view")],Xe);function Gt(e){let t=!1;const r=[];for(let h=0;h<e.length;h++){let v=e.charAt(h);switch(v){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(v),t=!1;break;default:t&&(t=!1,v=v.toUpperCase()),r.push(v);break}}return r.join("")}const _a=new Set(["constructor","toString","toJSON","valueOf"]);function St(e){return _a.has(e)?e+"$":e}function ga(){let e=0,t=0;for(let h=0;h<28;h+=7){let v=this.buf[this.pos++];if(e|=(v&127)<<h,(v&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 h=3;h<=31;h+=7){let v=this.buf[this.pos++];if(t|=(v&127)<<h,(v&128)==0)return this.assertBounds(),[e,t]}throw new Error("invalid varint")}const Ft=4294967296;function mi(e){const t=e[0]==="-";t&&(e=e.slice(1));const r=1e6;let h=0,v=0;function E(C,i){const c=Number(e.slice(C,i));v*=r,h=h*r+c,h>=Ft&&(v=v+(h/Ft|0),h=h%Ft)}return E(-24,-18),E(-18,-12),E(-12,-6),E(-6),t?Us(h,v):Pr(h,v)}function va(e,t){let r=Pr(e,t);const h=r.hi&2147483648;h&&(r=Us(r.lo,r.hi));const v=Hs(r.lo,r.hi);return h?"-"+v:v}function Hs(e,t){if({lo:e,hi:t}=pa(e,t),t<=2097151)return String(Ft*t+e);const r=e&16777215,h=(e>>>24|t<<8)&16777215,v=t>>16&65535;let E=r+h*6777216+v*6710656,C=h+v*8147497,i=v*2;const c=1e7;return E>=c&&(C+=Math.floor(E/c),E%=c),C>=c&&(i+=Math.floor(C/c),C%=c),i.toString()+bi(C)+bi(E)}function pa(e,t){return{lo:e>>>0,hi:t>>>0}}function Pr(e,t){return{lo:e|0,hi:t|0}}function Us(e,t){return t=~t,e?e=~e+1:t+=1,Pr(e,t)}const bi=e=>{const t=String(e);return"0000000".slice(t.length)+t};function ma(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 ba(){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 he=Sa();function Sa(){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 r=BigInt("-9223372036854775808"),h=BigInt("9223372036854775807"),v=BigInt("0"),E=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(C){const i=typeof C=="bigint"?C:BigInt(C);if(i>h||i<r)throw new Error(`invalid int64: ${C}`);return i},uParse(C){const i=typeof C=="bigint"?C:BigInt(C);if(i>E||i<v)throw new Error(`invalid uint64: ${C}`);return i},enc(C){return e.setBigInt64(0,this.parse(C),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},uEnc(C){return e.setBigInt64(0,this.uParse(C),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},dec(C,i){return e.setInt32(0,C,!0),e.setInt32(4,i,!0),e.getBigInt64(0,!0)},uDec(C,i){return e.setInt32(0,C,!0),e.setInt32(4,i,!0),e.getBigUint64(0,!0)}}}return{zero:"0",supported:!1,parse(r){return typeof r!="string"&&(r=r.toString()),Si(r),r},uParse(r){return typeof r!="string"&&(r=r.toString()),yi(r),r},enc(r){return typeof r!="string"&&(r=r.toString()),Si(r),mi(r)},uEnc(r){return typeof r!="string"&&(r=r.toString()),yi(r),mi(r)},dec(r,h){return va(r,h)},uDec(r,h){return Hs(r,h)}}}function Si(e){if(!/^-?[0-9]+$/.test(e))throw new Error("invalid int64: "+e)}function yi(e){if(!/^[0-9]+$/.test(e))throw new Error("invalid uint64: "+e)}var H;(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"})(H||(H={}));function yt(e,t){switch(e){case H.STRING:return"";case H.BOOL:return!1;case H.DOUBLE:case H.FLOAT:return 0;case H.INT64:case H.UINT64:case H.SFIXED64:case H.FIXED64:case H.SINT64:return t?"0":he.zero;case H.BYTES:return new Uint8Array(0);default:return 0}}function ya(e,t){switch(e){case H.BOOL:return t===!1;case H.STRING:return t==="";case H.BYTES:return t instanceof Uint8Array&&!t.byteLength;default:return t==0}}const $s=2,Ee=Symbol.for("reflect unsafe local");function Ca(e,t){const r=e[t.localName].case;return r===void 0?r:t.fields.find(h=>h.localName===r)}function wa(e,t){const r=t.localName;if(t.oneof)return e[t.oneof.localName].case===r;if(t.presence!=$s)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!ya(t.scalar,e[r]);case"enum":return e[r]!==t.enum.values[0].number}throw new Error("message field with implicit presence")}function Ct(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&e[t]!==void 0}function Ea(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 ka(e,t,r){t.oneof?e[t.oneof.localName]={case:t.localName,value:r}:e[t.localName]=r}function Ba(e,t){const r=t.localName;if(t.oneof){const h=t.oneof.localName;e[h].case===r&&(e[h]={case:void 0})}else if(t.presence!=$s)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]=yt(t.scalar,t.longAsString);break}}function Fr(e){for(const t of e.field)Ct(t,"jsonName")||(t.jsonName=Gt(t.name));e.nestedType.forEach(Fr)}function Ia(e,t){const r=e.values.find(h=>h.name===t);if(!r)throw new Error(`cannot parse ${e} default value: ${t}`);return r.number}function Ra(e,t){switch(e){case H.STRING:return t;case H.BYTES:{const r=xa(t);if(r===!1)throw new Error(`cannot parse ${H[e]} default value: ${t}`);return r}case H.INT64:case H.SFIXED64:case H.SINT64:return he.parse(t);case H.UINT64:case H.FIXED64:return he.uParse(t);case H.DOUBLE:case H.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 H.BOOL:return t==="true";case H.INT32:case H.UINT32:case H.SINT32:case H.FIXED32:case H.SFIXED32:return parseInt(t,10)}}function xa(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(h){if(this.tail.length>=h){const v=this.tail.substring(0,h);return this.tail=this.tail.substring(h),v}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 h=r.c,v=r.take(2);if(v===!1)return!1;const E=parseInt(h+v,8);if(Number.isNaN(E))return!1;t.push(E);break}case"x":{const h=r.c,v=r.take(2);if(v===!1)return!1;const E=parseInt(h+v,16);if(Number.isNaN(E))return!1;t.push(E);break}case"u":{const h=r.c,v=r.take(4);if(v===!1)return!1;const E=parseInt(h+v,16);if(Number.isNaN(E))return!1;const C=new Uint8Array(4);new DataView(C.buffer).setInt32(0,E,!0),t.push(C[0],C[1],C[2],C[3]);break}case"U":{const h=r.c,v=r.take(8);if(v===!1)return!1;const E=he.uEnc(h+v),C=new Uint8Array(8),i=new DataView(C.buffer);i.setInt32(0,E.lo,!0),i.setInt32(4,E.hi,!0),t.push(C[0],C[1],C[2],C[3],C[4],C[5],C[6],C[7]);break}}break;default:t.push(r.c.charCodeAt(0))}return new Uint8Array(t)}function*wr(e){switch(e.kind){case"file":for(const t of e.messages)yield t,yield*wr(t);yield*e.enums,yield*e.services,yield*e.extensions;break;case"message":for(const t of e.nestedMessages)yield t,yield*wr(t);yield*e.nestedEnums,yield*e.nestedExtensions;break}}function Ws(...e){const t=Aa();if(!e.length)return t;if("$typeName"in e[0]&&e[0].$typeName=="google.protobuf.FileDescriptorSet"){for(const r of e[0].file)ki(r,t);return t}if("$typeName"in e[0]){let E=function(C){const i=[];for(const c of C.dependency){if(t.getFile(c)!=null||v.has(c))continue;const d=h(c);if(!d)throw new Error(`Unable to resolve ${c}, imported by ${C.name}`);"kind"in d?t.addFile(d,!1,!0):(v.add(d.name),i.push(d))}return i.concat(...i.map(E))};const r=e[0],h=e[1],v=new Set;for(const C of[r,...E(r)].reverse())ki(C,t)}else for(const r of e)for(const h of r.files)t.addFile(h);return t}function Aa(){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(h,v,E){if(r.set(h.proto.name,h),!v)for(const C of wr(h))this.add(C);if(E)for(const C of h.dependencies)this.addFile(C,v,E)},add(h){if(h.kind=="extension"){let v=t.get(h.extendee.typeName);v||t.set(h.extendee.typeName,v=new Map),v.set(h.number,h)}e.set(h.typeName,h)},get(h){return e.get(h)},getFile(h){return r.get(h)},getMessage(h){const v=e.get(h);return(v==null?void 0:v.kind)=="message"?v:void 0},getEnum(h){const v=e.get(h);return(v==null?void 0:v.kind)=="enum"?v:void 0},getExtension(h){const v=e.get(h);return(v==null?void 0:v.kind)=="extension"?v:void 0},getExtensionFor(h,v){var E;return(E=t.get(h.typeName))===null||E===void 0?void 0:E.get(v)},getService(h){const v=e.get(h);return(v==null?void 0:v.kind)=="service"?v:void 0}}}const La=998,Ta=999,Da=9,wt=10,ht=11,Oa=12,Ci=14,Hr=3,Na=2,wi=1,Ma=0,hr=1,Ei=2,Pa=3,Fa=1,Ha=2,Ua=1,Vs={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 ki(e,t){var r,h;const v={kind:"file",proto:e,deprecated:(h=(r=e.options)===null||r===void 0?void 0:r.deprecated)!==null&&h!==void 0?h:!1,edition:ja(e),name:e.name.replace(/\.proto$/,""),dependencies:Ga(e,t),enums:[],messages:[],extensions:[],services:[],toString(){return`file ${e.name}`}},E=new Map,C={get(i){return E.get(i)},add(i){var c;me(((c=i.proto.options)===null||c===void 0?void 0:c.mapEntry)===!0),E.set(i.typeName,i)}};for(const i of e.enumType)js(i,v,void 0,t);for(const i of e.messageType)Gs(i,v,void 0,t,C);for(const i of e.service)$a(i,v,t);Er(v,t);for(const i of E.values())kr(i,t,C);for(const i of v.messages)kr(i,t,C),Er(i,t);t.addFile(v,!0)}function Er(e,t){switch(e.kind){case"file":for(const r of e.proto.extension){const h=Br(r,e,t);e.extensions.push(h),t.add(h)}break;case"message":for(const r of e.proto.extension){const h=Br(r,e,t);e.nestedExtensions.push(h),t.add(h)}for(const r of e.nestedMessages)Er(r,t);break}}function kr(e,t,r){const h=e.proto.oneofDecl.map(E=>Va(E,e)),v=new Set;for(const E of e.proto.field){const C=Za(E,h),i=Br(E,e,t,C,r);e.fields.push(i),e.field[i.localName]=i,C===void 0?e.members.push(i):(C.fields.push(i),v.has(C)||(v.add(C),e.members.push(C)))}for(const E of h.filter(C=>v.has(C)))e.oneofs.push(E);for(const E of e.nestedMessages)kr(E,t,r)}function js(e,t,r,h){var v,E,C,i,c;const d=Ka(e.name,e.value),g={kind:"enum",proto:e,deprecated:(E=(v=e.options)===null||v===void 0?void 0:v.deprecated)!==null&&E!==void 0?E:!1,file:t,parent:r,open:!0,name:e.name,typeName:qt(e,r,t),value:{},values:[],sharedPrefix:d,toString(){return`enum ${this.typeName}`}};g.open=qa(g),h.add(g);for(const l of e.value){const _=l.name;g.values.push(g.value[l.number]={kind:"enum_value",proto:l,deprecated:(i=(C=l.options)===null||C===void 0?void 0:C.deprecated)!==null&&i!==void 0?i:!1,parent:g,name:_,localName:St(d==null?_:_.substring(d.length)),number:l.number,toString(){return`enum value ${g.typeName}.${_}`}})}((c=r==null?void 0:r.nestedEnums)!==null&&c!==void 0?c:t.enums).push(g)}function Gs(e,t,r,h,v){var E,C,i,c;const d={kind:"message",proto:e,deprecated:(C=(E=e.options)===null||E===void 0?void 0:E.deprecated)!==null&&C!==void 0?C:!1,file:t,parent:r,name:e.name,typeName:qt(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?v.add(d):(((c=r==null?void 0:r.nestedMessages)!==null&&c!==void 0?c:t.messages).push(d),h.add(d));for(const g of e.enumType)js(g,t,d,h);for(const g of e.nestedType)Gs(g,t,d,h,v)}function $a(e,t,r){var h,v;const E={kind:"service",proto:e,deprecated:(v=(h=e.options)===null||h===void 0?void 0:h.deprecated)!==null&&v!==void 0?v:!1,file:t,name:e.name,typeName:qt(e,void 0,t),methods:[],method:{},toString(){return`service ${this.typeName}`}};t.services.push(E),r.add(E);for(const C of e.method){const i=Wa(C,E,r);E.methods.push(i),E.method[i.localName]=i}}function Wa(e,t,r){var h,v,E,C;let i;e.clientStreaming&&e.serverStreaming?i="bidi_streaming":e.clientStreaming?i="client_streaming":e.serverStreaming?i="server_streaming":i="unary";const c=r.getMessage(Ce(e.inputType)),d=r.getMessage(Ce(e.outputType));me(c,`invalid MethodDescriptorProto: input_type ${e.inputType} not found`),me(d,`invalid MethodDescriptorProto: output_type ${e.inputType} not found`);const g=e.name;return{kind:"rpc",proto:e,deprecated:(v=(h=e.options)===null||h===void 0?void 0:h.deprecated)!==null&&v!==void 0?v:!1,parent:t,name:g,localName:St(g.length?St(g[0].toLowerCase()+g.substring(1)):g),methodKind:i,input:c,output:d,idempotency:(C=(E=e.options)===null||E===void 0?void 0:E.idempotencyLevel)!==null&&C!==void 0?C:Ma,toString(){return`rpc ${t.typeName}.${g}`}}}function Va(e,t){return{kind:"oneof",proto:e,deprecated:!1,parent:t,fields:[],name:e.name,localName:St(Gt(e.name)),toString(){return`oneof ${t.typeName}.${this.name}`}}}function Br(e,t,r,h,v){var E,C,i;const c=v===void 0,d={kind:"field",proto:e,deprecated:(C=(E=e.options)===null||E===void 0?void 0:E.deprecated)!==null&&C!==void 0?C:!1,name:e.name,number:e.number,scalar:void 0,message:void 0,enum:void 0,presence:Xa(e,h,c,t),listKind:void 0,mapKind:void 0,mapKey:void 0,delimitedEncoding:void 0,packed:void 0,longAsString:!1,getDefaultValue:void 0};if(c){const b=t.kind=="file"?t:t.file,w=t.kind=="file"?void 0:t,f=qt(e,w,b);d.kind="extension",d.file=b,d.parent=w,d.oneof=void 0,d.typeName=f,d.jsonName=`[${f}]`,d.toString=()=>`extension ${f}`;const s=r.getMessage(Ce(e.extendee));me(s,`invalid FieldDescriptorProto: extendee ${e.extendee} not found`),d.extendee=s}else{const b=t;me(b.kind=="message"),d.parent=b,d.oneof=h,d.localName=h?Gt(e.name):St(Gt(e.name)),d.jsonName=e.jsonName,d.toString=()=>`field ${b.typeName}.${e.name}`}const g=e.label,l=e.type,_=(i=e.options)===null||i===void 0?void 0:i.jstype;if(g===Hr){const b=l==ht?v==null?void 0:v.get(Ce(e.typeName)):void 0;if(b){d.fieldKind="map";const{key:w,value:f}=Ja(b);return d.mapKey=w.scalar,d.mapKind=f.fieldKind,d.message=f.message,d.delimitedEncoding=!1,d.enum=f.enum,d.scalar=f.scalar,d}switch(d.fieldKind="list",l){case ht:case wt:d.listKind="message",d.message=r.getMessage(Ce(e.typeName)),me(d.message),d.delimitedEncoding=Bi(e,t);break;case Ci:d.listKind="enum",d.enum=r.getEnum(Ce(e.typeName)),me(d.enum);break;default:d.listKind="scalar",d.scalar=l,d.longAsString=_==wi;break}return d.packed=Ya(e,t),d}switch(l){case ht:case wt:d.fieldKind="message",d.message=r.getMessage(Ce(e.typeName)),me(d.message,`invalid FieldDescriptorProto: type_name ${e.typeName} not found`),d.delimitedEncoding=Bi(e,t),d.getDefaultValue=()=>{};break;case Ci:{const b=r.getEnum(Ce(e.typeName));me(b!==void 0,`invalid FieldDescriptorProto: type_name ${e.typeName} not found`),d.fieldKind="enum",d.enum=r.getEnum(Ce(e.typeName)),d.getDefaultValue=()=>Ct(e,"defaultValue")?Ia(b,e.defaultValue):void 0;break}default:{d.fieldKind="scalar",d.scalar=l,d.longAsString=_==wi,d.getDefaultValue=()=>Ct(e,"defaultValue")?Ra(l,e.defaultValue):void 0;break}}return d}function ja(e){switch(e.syntax){case"":case"proto2":return La;case"proto3":return Ta;case"editions":if(e.edition in Vs)return e.edition;throw new Error(`${e.name}: unsupported edition`);default:throw new Error(`${e.name}: unsupported syntax "${e.syntax}"`)}}function Ga(e,t){return e.dependency.map(r=>{const h=t.getFile(r);if(!h)throw new Error(`Cannot find ${r}, imported by ${e.name}`);return h})}function Ka(e,t){const r=za(e)+"_";for(const h of t){if(!h.name.toLowerCase().startsWith(r))return;const v=h.name.substring(r.length);if(v.length==0||/^\d/.test(v))return}return r}function za(e){return(e.substring(0,1)+e.substring(1).replace(/[A-Z]/g,t=>"_"+t)).toLowerCase()}function qt(e,t,r){let h;return t?h=`${t.typeName}.${e.name}`:r.proto.package.length>0?h=`${r.proto.package}.${e.name}`:h=`${e.name}`,h}function Ce(e){return e.startsWith(".")?e.substring(1):e}function Za(e,t){if(!Ct(e,"oneofIndex")||e.proto3Optional)return;const r=t[e.oneofIndex];return me(r,`invalid FieldDescriptorProto: oneof #${e.oneofIndex} for field #${e.number} not found`),r}function Xa(e,t,r,h){if(e.label==Na)return Pa;if(e.label==Hr)return Ei;if(t||e.proto3Optional||r)return hr;const v=Ye("fieldPresence",{proto:e,parent:h});return v==Ei&&(e.type==ht||e.type==wt)?hr:v}function Ya(e,t){if(e.label!=Hr)return!1;switch(e.type){case Da:case Oa:case wt:case ht:return!1}const r=e.options;return r&&Ct(r,"packed")?r.packed:Fa==Ye("repeatedFieldEncoding",{proto:e,parent:t})}function Ja(e){const t=e.fields.find(h=>h.number===1),r=e.fields.find(h=>h.number===2);return me(t&&t.fieldKind=="scalar"&&t.scalar!=H.BYTES&&t.scalar!=H.FLOAT&&t.scalar!=H.DOUBLE&&r&&r.fieldKind!="list"&&r.fieldKind!="map"),{key:t,value:r}}function qa(e){var t;return Ua==Ye("enumType",{proto:e.proto,parent:(t=e.parent)!==null&&t!==void 0?t:e.file})}function Bi(e,t){return e.type==wt?!0:Ha==Ye("messageEncoding",{proto:e,parent:t})}function Ye(e,t){var r,h;const v=(r=t.proto.options)===null||r===void 0?void 0:r.features;if(v){const E=v[e];if(E!=0)return E}if("kind"in t){if(t.kind=="message")return Ye(e,(h=t.parent)!==null&&h!==void 0?h:t.file);const E=Vs[t.edition];if(!E)throw new Error(`feature default for edition ${t.edition} not found`);return E[e]}return Ye(e,t.parent)}function me(e,t){if(!e)throw new Error(t)}function Qa(e){const t=ec(e);return t.messageType.forEach(Fr),Ws(t,()=>{}).getFile(t.name)}function ec(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(Ks),enumType:e.enumType.map(zs)}))}function Ks(e){var t,r,h,v,E,C,i,c;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(tc))!==null&&r!==void 0?r:[],extension:[],nestedType:(v=(h=e.nestedType)===null||h===void 0?void 0:h.map(Ks))!==null&&v!==void 0?v:[],enumType:(C=(E=e.enumType)===null||E===void 0?void 0:E.map(zs))!==null&&C!==void 0?C:[],extensionRange:(c=(i=e.extensionRange)===null||i===void 0?void 0:i.map(g=>Object.assign({$typeName:"google.protobuf.DescriptorProto.ExtensionRange"},g)))!==null&&c!==void 0?c:[],oneofDecl:[],reservedRange:[],reservedName:[]})}function tc(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?rc(e.options):void 0}))}function rc(e){var t,r,h;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:(h=(r=e.editionDefaults)===null||r===void 0?void 0:r.map(E=>Object.assign({$typeName:"google.protobuf.FieldOptions.EditionDefault"},E)))!==null&&h!==void 0?h:[],uninterpretedOption:[]}))}function zs(e){return Object.assign(Object.create({visibility:0}),{$typeName:"google.protobuf.EnumDescriptorProto",name:e.name,reservedName:[],reservedRange:[],value:e.value.map(r=>Object.assign({$typeName:"google.protobuf.EnumValueDescriptorProto"},r))})}function ic(e){const t=oc();let r=e.length*3/4;e[e.length-2]=="="?r-=2:e[e.length-1]=="="&&(r-=1);let h=new Uint8Array(r),v=0,E=0,C,i=0;for(let c=0;c<e.length;c++){if(C=t[e.charCodeAt(c)],C===void 0)switch(e[c]){case"=":E=0;case`
|
|
1885
|
-
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string")}switch(E){case 0:i=C,E=1;break;case 1:h[v++]=i<<2|(C&48)>>4,i=C,E=2;break;case 2:h[v++]=(i&15)<<4|(C&60)>>2,i=C,E=3;break;case 3:h[v++]=(i&3)<<6|C,E=0;break}}if(E==1)throw Error("invalid base64 string");return h.subarray(0,v)}let Lt,Ue;function sc(e){return Lt||(Lt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Lt.slice(0,-2).concat("-","_")),Lt}function oc(){if(!Ue){Ue=[];const e=sc();for(let t=0;t<e.length;t++)Ue[e[t].charCodeAt(0)]=t;Ue[45]=e.indexOf("+"),Ue[95]=e.indexOf("/")}return Ue}function Zs(e,t){return e!==null&&typeof e=="object"&&"$typeName"in e&&typeof e.$typeName=="string"?t===void 0?!0:t.typeName===e.$typeName:!1}class Je extends Error{constructor(t,r,h="FieldValueInvalidError"){super(r),this.name=h,this.field=()=>t}}function qe(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Ur(e,t){var r,h,v,E;if(qe(e)&&Ee in e&&"add"in e&&"field"in e&&typeof e.field=="function"){if(t!==void 0){const C=t,i=e.field();return C.listKind==i.listKind&&C.scalar===i.scalar&&((r=C.message)===null||r===void 0?void 0:r.typeName)===((h=i.message)===null||h===void 0?void 0:h.typeName)&&((v=C.enum)===null||v===void 0?void 0:v.typeName)===((E=i.enum)===null||E===void 0?void 0:E.typeName)}return!0}return!1}function $r(e,t){var r,h,v,E;if(qe(e)&&Ee in e&&"has"in e&&"field"in e&&typeof e.field=="function"){if(t!==void 0){const C=t,i=e.field();return C.mapKey===i.mapKey&&C.mapKind==i.mapKind&&C.scalar===i.scalar&&((r=C.message)===null||r===void 0?void 0:r.typeName)===((h=i.message)===null||h===void 0?void 0:h.typeName)&&((v=C.enum)===null||v===void 0?void 0:v.typeName)===((E=i.enum)===null||E===void 0?void 0:E.typeName)}return!0}return!1}function Wr(e,t){return qe(e)&&Ee in e&&"desc"in e&&qe(e.desc)&&e.desc.kind==="message"&&(t===void 0||e.desc.typeName==t.typeName)}const ur=Symbol.for("@bufbuild/protobuf/text-encoding");function Xs(){if(globalThis[ur]==null){const e=new globalThis.TextEncoder,t=new globalThis.TextDecoder;globalThis[ur]={encodeUtf8(r){return e.encode(r)},decodeUtf8(r){return t.decode(r)},checkUtf8(r){try{return encodeURIComponent(r),!0}catch{return!1}}}}return globalThis[ur]}var be;(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"})(be||(be={}));const nc=34028234663852886e22,ac=-34028234663852886e22,cc=4294967295,lc=2147483647,dc=-2147483648;class hc{constructor(t,r=Xs().decodeUtf8){this.decodeUtf8=r,this.varint64=ga,this.uint32=ba,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,h=t&7;if(r<=0||h<0||h>5)throw new Error("illegal tag: field no "+r+" wire type "+h);return[r,h]}skip(t,r){let h=this.pos;switch(t){case be.Varint:for(;this.buf[this.pos++]&128;);break;case be.Bit64:this.pos+=4;case be.Bit32:this.pos+=4;break;case be.LengthDelimited:let v=this.uint32();this.pos+=v;break;case be.StartGroup:for(;;){const[E,C]=this.tag();if(C===be.EndGroup){if(r!==void 0&&E!==r)throw new Error("invalid end group tag");break}this.skip(C,E)}break;default:throw new Error("cant skip wire type "+t)}return this.assertBounds(),this.buf.subarray(h,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 he.dec(...this.varint64())}uint64(){return he.uDec(...this.varint64())}sint64(){let[t,r]=this.varint64(),h=-(t&1);return t=(t>>>1|(r&1)<<31)^h,r=r>>>1^h,he.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 he.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return he.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 uc(e,t){const r=e.fieldKind=="list"?Ur(t,e):e.fieldKind=="map"?$r(t,e):Vr(e,t);if(r===!0)return;let h;switch(e.fieldKind){case"list":h=`expected ${qs(e)}, got ${zt(t)}`;break;case"map":h=`expected ${Qs(e)}, got ${zt(t)}`;break;default:h=Kt(e,t,r)}return new Je(e,h)}function Ii(e,t,r){const h=Vr(e,r);if(h!==!0)return new Je(e,`list item #${t+1}: ${Kt(e,r,h)}`)}function fc(e,t,r){const h=Ys(t,e.mapKey);if(h!==!0)return new Je(e,`invalid map key: ${Kt({scalar:e.mapKey},t,h)}`);const v=Vr(e,r);if(v!==!0)return new Je(e,`map entry ${zt(t)}: ${Kt(e,r,v)}`)}function Vr(e,t){return e.scalar!==void 0?Ys(t,e.scalar):e.enum!==void 0?e.enum.open?Number.isInteger(t):e.enum.values.some(r=>r.number===t):Wr(t,e.message)}function Ys(e,t){switch(t){case H.DOUBLE:return typeof e=="number";case H.FLOAT:return typeof e!="number"?!1:Number.isNaN(e)||!Number.isFinite(e)?!0:e>nc||e<ac?`${e.toFixed()} out of range`:!0;case H.INT32:case H.SFIXED32:case H.SINT32:return typeof e!="number"||!Number.isInteger(e)?!1:e>lc||e<dc?`${e.toFixed()} out of range`:!0;case H.FIXED32:case H.UINT32:return typeof e!="number"||!Number.isInteger(e)?!1:e>cc||e<0?`${e.toFixed()} out of range`:!0;case H.BOOL:return typeof e=="boolean";case H.STRING:return typeof e!="string"?!1:Xs().checkUtf8(e)||"invalid UTF8";case H.BYTES:return e instanceof Uint8Array;case H.INT64:case H.SFIXED64:case H.SINT64:if(typeof e=="bigint"||typeof e=="number"||typeof e=="string"&&e.length>0)try{return he.parse(e),!0}catch{return`${e} out of range`}return!1;case H.FIXED64:case H.UINT64:if(typeof e=="bigint"||typeof e=="number"||typeof e=="string"&&e.length>0)try{return he.uParse(e),!0}catch{return`${e} out of range`}return!1}}function Kt(e,t,r){return r=typeof r=="string"?`: ${r}`:`, got ${zt(t)}`,e.scalar!==void 0?`expected ${_c(e.scalar)}`+r:e.enum!==void 0?`expected ${e.enum.toString()}`+r:`expected ${Js(e.message)}`+r}function zt(e){switch(typeof e){case"object":return e===null?"null":e instanceof Uint8Array?`Uint8Array(${e.length})`:Array.isArray(e)?`Array(${e.length})`:Ur(e)?qs(e.field()):$r(e)?Qs(e.field()):Wr(e)?Js(e.desc):Zs(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 Js(e){return`ReflectMessage (${e.typeName})`}function qs(e){switch(e.listKind){case"message":return`ReflectList (${e.message.toString()})`;case"enum":return`ReflectList (${e.enum.toString()})`;case"scalar":return`ReflectList (${H[e.scalar]})`}}function Qs(e){switch(e.mapKind){case"message":return`ReflectMap (${H[e.mapKey]}, ${e.message.toString()})`;case"enum":return`ReflectMap (${H[e.mapKey]}, ${e.enum.toString()})`;case"scalar":return`ReflectMap (${H[e.mapKey]}, ${H[e.scalar]})`}}function _c(e){switch(e){case H.STRING:return"string";case H.BOOL:return"boolean";case H.INT64:case H.SINT64:case H.SFIXED64:return"bigint (int64)";case H.UINT64:case H.FIXED64:return"bigint (uint64)";case H.BYTES:return"Uint8Array";case H.DOUBLE:return"number (float64)";case H.FLOAT:return"number (float32)";case H.FIXED32:case H.UINT32:return"number (uint32)";case H.INT32:case H.SFIXED32:case H.SINT32:return"number (int32)"}}function gc(e){return eo(e.$typeName)}function vc(e){const t=e.fields[0];return eo(e.typeName)&&t!==void 0&&t.fieldKind=="scalar"&&t.name=="value"&&t.number==1}function eo(e){return e.startsWith("google.protobuf.")&&["DoubleValue","FloatValue","Int64Value","UInt64Value","Int32Value","UInt32Value","BoolValue","StringValue","BytesValue"].includes(e.substring(16))}const pc=999,mc=998,Ht=2;function bc(e,t){return Zs(t,e)?t:yc(e)}const Sc=Symbol(),Ri=new WeakMap;function yc(e){let t;if(Cc(e)){const r=Ri.get(e);let h,v;if(r)({prototype:h,members:v}=r);else{h={},v=new Set;for(const E of e.members)E.kind!="oneof"&&(E.fieldKind!="scalar"&&E.fieldKind!="enum"||E.presence!=Ht&&(v.add(E),h[E.localName]=fr(E)));Ri.set(e,{prototype:h,members:v})}t=Object.create(h),t.$typeName=e.typeName;for(const E of e.members)v.has(E)||E.kind=="field"&&(E.fieldKind=="message"||(E.fieldKind=="scalar"||E.fieldKind=="enum")&&E.presence!=Ht)||(t[E.localName]=fr(E))}else{t={$typeName:e.typeName};for(const r of e.members)(r.kind=="oneof"||r.presence==Ht)&&(t[r.localName]=fr(r))}return t}function Cc(e){switch(e.file.edition){case pc:return!1;case mc:return!0;default:return e.fields.some(t=>t.presence!=Ht&&t.fieldKind!="message"&&!t.oneof)}}function fr(e){if(e.kind=="oneof")return{case:void 0};if(e.fieldKind=="list")return[];if(e.fieldKind=="map")return{};if(e.fieldKind=="message")return Sc;const t=e.getDefaultValue();return t!==void 0?e.fieldKind=="scalar"&&e.longAsString?t.toString():t:e.fieldKind=="scalar"?yt(e.scalar,e.longAsString):e.enum.values[0].number}function jr(e,t,r=!0){return new to(e,t,r)}class to{get sortedFields(){var t;return(t=this._sortedFields)!==null&&t!==void 0?t:this._sortedFields=this.desc.fields.concat().sort((r,h)=>r.number-h.number)}constructor(t,r,h=!0){this.lists=new Map,this.maps=new Map,this.check=h,this.desc=t,this.message=this[Ee]=r??bc(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 nt(this.message,t),Ca(this.message,t)}isSet(t){return nt(this.message,t),wa(this.message,t)}clear(t){nt(this.message,t),Ba(this.message,t)}get(t){nt(this.message,t);const r=Ea(this.message,t);switch(t.fieldKind){case"list":let h=this.lists.get(t);return(!h||h[Ee]!==r)&&this.lists.set(t,h=new wc(t,r,this.check)),h;case"map":let v=this.maps.get(t);return(!v||v[Ee]!==r)&&this.maps.set(t,v=new Ec(t,r,this.check)),v;case"message":return Kr(t,r,this.check);case"scalar":return r===void 0?yt(t.scalar,!1):zr(t,r);case"enum":return r??t.enum.values[0].number}}set(t,r){if(nt(this.message,t),this.check){const v=uc(t,r);if(v)throw v}let h;t.fieldKind=="message"?h=Gr(t,r):$r(r)||Ur(r)?h=r[Ee]:h=Zr(t,r),ka(this.message,t,h)}getUnknown(){return this.message.$unknown}setUnknown(t){this.message.$unknown=t}}function nt(e,t){if(t.parent.typeName!==e.$typeName)throw new Je(t,`cannot use ${t.toString()} with message ${e.$typeName}`,"ForeignFieldError")}class wc{field(){return this._field}get size(){return this._arr.length}constructor(t,r,h){this._field=t,this._arr=this[Ee]=r,this.check=h}get(t){const r=this._arr[t];return r===void 0?void 0:_r(this._field,r,this.check)}set(t,r){if(t<0||t>=this._arr.length)throw new Je(this._field,`list item #${t+1}: out of range`);if(this.check){const h=Ii(this._field,t,r);if(h)throw h}this._arr[t]=xi(this._field,r)}add(t){if(this.check){const r=Ii(this._field,this._arr.length,t);if(r)throw r}this._arr.push(xi(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 _r(this._field,t,this.check)}*entries(){for(let t=0;t<this._arr.length;t++)yield[t,_r(this._field,this._arr[t],this.check)]}}class Ec{constructor(t,r,h=!0){this.obj=this[Ee]=r??{},this.check=h,this._field=t}field(){return this._field}set(t,r){if(this.check){const h=fc(this._field,t,r);if(h)throw h}return this.obj[Tt(t)]=kc(this._field,r),this}delete(t){const r=Tt(t),h=Object.prototype.hasOwnProperty.call(this.obj,r);return h&&delete this.obj[r],h}clear(){for(const t of Object.keys(this.obj))delete this.obj[t]}get(t){let r=this.obj[Tt(t)];return r!==void 0&&(r=gr(this._field,r,this.check)),r}has(t){return Object.prototype.hasOwnProperty.call(this.obj,Tt(t))}*keys(){for(const t of Object.keys(this.obj))yield Ai(t,this._field.mapKey)}*entries(){for(const t of Object.entries(this.obj))yield[Ai(t[0],this._field.mapKey),gr(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 gr(this._field,t,this.check)}forEach(t,r){for(const h of this.entries())t.call(r,h[1],h[0],this)}}function Gr(e,t){return Wr(t)?gc(t.message)&&!e.oneof&&e.fieldKind=="message"?t.message.value:t.desc.typeName=="google.protobuf.Struct"&&e.parent.typeName!="google.protobuf.Value"?io(t.message):t.message:t}function Kr(e,t,r){return t!==void 0&&(vc(e.message)&&!e.oneof&&e.fieldKind=="message"?t={$typeName:e.message.typeName,value:zr(e.message.fields[0],t)}:e.message.typeName=="google.protobuf.Struct"&&e.parent.typeName!="google.protobuf.Value"&&qe(t)&&(t=ro(t))),new to(e.message,t,r)}function xi(e,t){return e.listKind=="message"?Gr(e,t):Zr(e,t)}function _r(e,t,r){return e.listKind=="message"?Kr(e,t,r):zr(e,t)}function kc(e,t){return e.mapKind=="message"?Gr(e,t):Zr(e,t)}function gr(e,t,r){return e.mapKind=="message"?Kr(e,t,r):t}function Tt(e){return typeof e=="string"||typeof e=="number"?e:String(e)}function Ai(e,t){switch(t){case H.STRING:return e;case H.INT32:case H.FIXED32:case H.UINT32:case H.SFIXED32:case H.SINT32:{const r=Number.parseInt(e);if(Number.isFinite(r))return r;break}case H.BOOL:switch(e){case"true":return!0;case"false":return!1}break;case H.UINT64:case H.FIXED64:try{return he.uParse(e)}catch{}break;default:try{return he.parse(e)}catch{}break}return e}function zr(e,t){switch(e.scalar){case H.INT64:case H.SFIXED64:case H.SINT64:"longAsString"in e&&e.longAsString&&typeof t=="string"&&(t=he.parse(t));break;case H.FIXED64:case H.UINT64:"longAsString"in e&&e.longAsString&&typeof t=="string"&&(t=he.uParse(t));break}return t}function Zr(e,t){switch(e.scalar){case H.INT64:case H.SFIXED64:case H.SINT64:"longAsString"in e&&e.longAsString?t=String(t):(typeof t=="string"||typeof t=="number")&&(t=he.parse(t));break;case H.FIXED64:case H.UINT64:"longAsString"in e&&e.longAsString?t=String(t):(typeof t=="string"||typeof t=="number")&&(t=he.uParse(t));break}return t}function ro(e){const t={$typeName:"google.protobuf.Struct",fields:{}};if(qe(e))for(const[r,h]of Object.entries(e))t.fields[r]=oo(h);return t}function io(e){const t={};for(const[r,h]of Object.entries(e.fields))t[r]=so(h);return t}function so(e){switch(e.kind.case){case"structValue":return io(e.kind.value);case"listValue":return e.kind.value.values.map(so);case"nullValue":case void 0:return null;default:return e.kind.value}}function oo(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 h of e)r.values.push(oo(h));t.kind={case:"listValue",value:r}}else t.kind={case:"structValue",value:ro(e)};break}return t}function Bc(e,t,...r){return r.reduce((h,v)=>h.nestedMessages[v],e.messages[t])}function Ic(e,t,...r){if(r.length==0)return e.enums[t];const h=r.pop();return r.reduce((v,E)=>v.nestedMessages[E],e.messages[t]).nestedEnums[h]}function Rc(e){const t={};for(const r of e.values)t[r.localName]=r.number,t[r.number]=r.localName;return t}const xc=Qa({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}]}]}),Ac=Bc(xc,1);var Li;(function(e){e[e.DECLARATION=0]="DECLARATION",e[e.UNVERIFIED=1]="UNVERIFIED"})(Li||(Li={}));var Ti;(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"})(Ti||(Ti={}));var Di;(function(e){e[e.OPTIONAL=1]="OPTIONAL",e[e.REPEATED=3]="REPEATED",e[e.REQUIRED=2]="REQUIRED"})(Di||(Di={}));var Oi;(function(e){e[e.SPEED=1]="SPEED",e[e.CODE_SIZE=2]="CODE_SIZE",e[e.LITE_RUNTIME=3]="LITE_RUNTIME"})(Oi||(Oi={}));var Ni;(function(e){e[e.STRING=0]="STRING",e[e.CORD=1]="CORD",e[e.STRING_PIECE=2]="STRING_PIECE"})(Ni||(Ni={}));var Mi;(function(e){e[e.JS_NORMAL=0]="JS_NORMAL",e[e.JS_STRING=1]="JS_STRING",e[e.JS_NUMBER=2]="JS_NUMBER"})(Mi||(Mi={}));var Pi;(function(e){e[e.RETENTION_UNKNOWN=0]="RETENTION_UNKNOWN",e[e.RETENTION_RUNTIME=1]="RETENTION_RUNTIME",e[e.RETENTION_SOURCE=2]="RETENTION_SOURCE"})(Pi||(Pi={}));var Fi;(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"})(Fi||(Fi={}));var Hi;(function(e){e[e.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",e[e.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",e[e.IDEMPOTENT=2]="IDEMPOTENT"})(Hi||(Hi={}));var Ui;(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"})(Ui||(Ui={}));var $i;(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"})($i||($i={}));var Wi;(function(e){e[e.ENUM_TYPE_UNKNOWN=0]="ENUM_TYPE_UNKNOWN",e[e.OPEN=1]="OPEN",e[e.CLOSED=2]="CLOSED"})(Wi||(Wi={}));var Vi;(function(e){e[e.REPEATED_FIELD_ENCODING_UNKNOWN=0]="REPEATED_FIELD_ENCODING_UNKNOWN",e[e.PACKED=1]="PACKED",e[e.EXPANDED=2]="EXPANDED"})(Vi||(Vi={}));var ji;(function(e){e[e.UTF8_VALIDATION_UNKNOWN=0]="UTF8_VALIDATION_UNKNOWN",e[e.VERIFY=2]="VERIFY",e[e.NONE=3]="NONE"})(ji||(ji={}));var Gi;(function(e){e[e.MESSAGE_ENCODING_UNKNOWN=0]="MESSAGE_ENCODING_UNKNOWN",e[e.LENGTH_PREFIXED=1]="LENGTH_PREFIXED",e[e.DELIMITED=2]="DELIMITED"})(Gi||(Gi={}));var Ki;(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"})(Ki||(Ki={}));var zi;(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"})(zi||(zi={}));var Zi;(function(e){e[e.NONE=0]="NONE",e[e.SET=1]="SET",e[e.ALIAS=2]="ALIAS"})(Zi||(Zi={}));var Xi;(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"})(Xi||(Xi={}));var Yi;(function(e){e[e.VISIBILITY_UNSET=0]="VISIBILITY_UNSET",e[e.VISIBILITY_LOCAL=1]="VISIBILITY_LOCAL",e[e.VISIBILITY_EXPORT=2]="VISIBILITY_EXPORT"})(Yi||(Yi={}));const Ji={readUnknownFields:!0};function Lc(e){return e?Object.assign(Object.assign({},Ji),e):Ji}function Tc(e,t,r){const h=jr(e,void 0,!1);return no(h,new hc(t),Lc(r),!1,t.byteLength),h.message}function no(e,t,r,h,v){var E;const C=h?t.len:t.pos+v;let i,c;const d=(E=e.getUnknown())!==null&&E!==void 0?E:[];for(;t.pos<C&&([i,c]=t.tag(),!(h&&c==be.EndGroup));){const g=e.findNumber(i);if(!g){const l=t.skip(c,i);r.readUnknownFields&&d.push({no:i,wireType:c,data:l});continue}Dc(e,t,g,c,r)}if(h&&(c!=be.EndGroup||i!==v))throw new Error("invalid end group tag");d.length>0&&e.setUnknown(d)}function Dc(e,t,r,h,v){var E;switch(r.fieldKind){case"scalar":e.set(r,Qe(t,r.scalar));break;case"enum":const C=Qe(t,H.INT32);if(r.enum.open)e.set(r,C);else if(r.enum.values.some(c=>c.number===C))e.set(r,C);else if(v.readUnknownFields){const c=[];ma(C,c);const d=(E=e.getUnknown())!==null&&E!==void 0?E:[];d.push({no:r.number,wireType:h,data:new Uint8Array(c)}),e.setUnknown(d)}break;case"message":e.set(r,Xr(t,v,r,e.get(r)));break;case"list":Nc(t,h,e.get(r),v);break;case"map":Oc(t,e.get(r),v);break}}function Oc(e,t,r){const h=t.field();let v,E;const C=e.uint32(),i=e.pos+C;for(;e.pos<i;){const[c]=e.tag();switch(c){case 1:v=Qe(e,h.mapKey);break;case 2:switch(h.mapKind){case"scalar":E=Qe(e,h.scalar);break;case"enum":E=e.int32();break;case"message":E=Xr(e,r,h);break}break}}if(v===void 0&&(v=yt(h.mapKey,!1)),E===void 0)switch(h.mapKind){case"scalar":E=yt(h.scalar,!1);break;case"enum":E=h.enum.values[0].number;break;case"message":E=jr(h.message,void 0,!1);break}t.set(v,E)}function Nc(e,t,r,h){var v;const E=r.field();if(E.listKind==="message"){r.add(Xr(e,h,E));return}const C=(v=E.scalar)!==null&&v!==void 0?v:H.INT32;if(!(t==be.LengthDelimited&&C!=H.STRING&&C!=H.BYTES)){r.add(Qe(e,C));return}const c=e.uint32()+e.pos;for(;e.pos<c;)r.add(Qe(e,C))}function Xr(e,t,r,h){const v=r.delimitedEncoding,E=h??jr(r.message,void 0,!1);return no(E,e,t,v,v?r.number:e.uint32()),E}function Qe(e,t){switch(t){case H.STRING:return e.string();case H.BOOL:return e.bool();case H.DOUBLE:return e.double();case H.FLOAT:return e.float();case H.INT32:return e.int32();case H.INT64:return e.int64();case H.UINT64:return e.uint64();case H.FIXED64:return e.fixed64();case H.BYTES:return e.bytes();case H.FIXED32:return e.fixed32();case H.SFIXED32:return e.sfixed32();case H.SFIXED64:return e.sfixed64();case H.SINT64:return e.sint64();case H.UINT32:return e.uint32();case H.SINT32:return e.sint32()}}function ao(e,t){var r;const h=Tc(Ac,ic(e));return h.messageType.forEach(Fr),h.dependency=(r=t==null?void 0:t.map(E=>E.proto.name))!==null&&r!==void 0?r:[],Ws(h,E=>t==null?void 0:t.find(C=>C.proto.name===E)).getFile(h.name)}const Mc=ao("ChxydW5tZS9ydW5uZXIvdjIvY29uZmlnLnByb3RvEg9ydW5tZS5ydW5uZXIudjIiigMKDVByb2dyYW1Db25maWcSFAoMcHJvZ3JhbV9uYW1lGAEgASgJEhEKCWFyZ3VtZW50cxgCIAMoCRIRCglkaXJlY3RvcnkYAyABKAkSEwoLbGFuZ3VhZ2VfaWQYBCABKAkSEgoKYmFja2dyb3VuZBgFIAEoCBIWCg5maWxlX2V4dGVuc2lvbhgGIAEoCRILCgNlbnYYByADKAkSPgoIY29tbWFuZHMYCCABKAsyKi5ydW5tZS5ydW5uZXIudjIuUHJvZ3JhbUNvbmZpZy5Db21tYW5kTGlzdEgAEhAKBnNjcmlwdBgJIAEoCUgAEhMKC2ludGVyYWN0aXZlGAogASgIEioKBG1vZGUYCyABKA4yHC5ydW5tZS5ydW5uZXIudjIuQ29tbWFuZE1vZGUSEAoIa25vd25faWQYDCABKAkSEgoKa25vd25fbmFtZRgNIAEoCRIOCgZydW5faWQYDiABKAkaHAoLQ29tbWFuZExpc3QSDQoFaXRlbXMYASADKAlCCAoGc291cmNlKowBCgtDb21tYW5kTW9kZRIcChhDT01NQU5EX01PREVfVU5TUEVDSUZJRUQQABIXChNDT01NQU5EX01PREVfSU5MSU5FEAESFQoRQ09NTUFORF9NT0RFX0ZJTEUQAhIZChVDT01NQU5EX01PREVfVEVSTUlOQUwQAxIUChBDT01NQU5EX01PREVfQ0xJEARCSFpGZ2l0aHViLmNvbS9ydW5tZWRldi9ydW5tZS92My9hcGkvZ2VuL3Byb3RvL2dvL3J1bm1lL3J1bm5lci92MjtydW5uZXJ2MmIGcHJvdG8z"),Pc=ao("ChxydW5tZS9ydW5uZXIvdjIvcnVubmVyLnByb3RvEg9ydW5tZS5ydW5uZXIudjIiLwoHUHJvamVjdBIMCgRyb290GAEgASgJEhYKDmVudl9sb2FkX29yZGVyGAIgAygJIo0BCgdTZXNzaW9uEgoKAmlkGAEgASgJEgsKA2VudhgCIAMoCRI4CghtZXRhZGF0YRgDIAMoCzImLnJ1bm1lLnJ1bm5lci52Mi5TZXNzaW9uLk1ldGFkYXRhRW50cnkaLwoNTWV0YWRhdGFFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIrIFChRDcmVhdGVTZXNzaW9uUmVxdWVzdBJFCghtZXRhZGF0YRgBIAMoCzIzLnJ1bm1lLnJ1bm5lci52Mi5DcmVhdGVTZXNzaW9uUmVxdWVzdC5NZXRhZGF0YUVudHJ5EgsKA2VudhgCIAMoCRIuCgdwcm9qZWN0GAMgASgLMhgucnVubWUucnVubmVyLnYyLlByb2plY3RIAIgBARJBCg5lbnZfc3RvcmVfdHlwZRgEIAEoDjIkLnJ1bm1lLnJ1bm5lci52Mi5TZXNzaW9uRW52U3RvcmVUeXBlSAGIAQESPAoGY29uZmlnGAUgASgLMiwucnVubWUucnVubmVyLnYyLkNyZWF0ZVNlc3Npb25SZXF1ZXN0LkNvbmZpZxovCg1NZXRhZGF0YUVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEaxAIKBkNvbmZpZxJBCg5lbnZfc3RvcmVfdHlwZRgBIAEoDjIkLnJ1bm1lLnJ1bm5lci52Mi5TZXNzaW9uRW52U3RvcmVUeXBlSACIAQESYwoRZW52X3N0b3JlX3NlZWRpbmcYAiABKA4yQy5ydW5tZS5ydW5uZXIudjIuQ3JlYXRlU2Vzc2lvblJlcXVlc3QuQ29uZmlnLlNlc3Npb25FbnZTdG9yZVNlZWRpbmdIAYgBASJpChZTZXNzaW9uRW52U3RvcmVTZWVkaW5nEikKJVNFU1NJT05fRU5WX1NUT1JFX1NFRURJTkdfVU5TUEVDSUZJRUQQABIkCiBTRVNTSU9OX0VOVl9TVE9SRV9TRUVESU5HX1NZU1RFTRABQhEKD19lbnZfc3RvcmVfdHlwZUIUChJfZW52X3N0b3JlX3NlZWRpbmdCCgoIX3Byb2plY3RCEQoPX2Vudl9zdG9yZV90eXBlIkIKFUNyZWF0ZVNlc3Npb25SZXNwb25zZRIpCgdzZXNzaW9uGAEgASgLMhgucnVubWUucnVubmVyLnYyLlNlc3Npb24iHwoRR2V0U2Vzc2lvblJlcXVlc3QSCgoCaWQYASABKAkiPwoSR2V0U2Vzc2lvblJlc3BvbnNlEikKB3Nlc3Npb24YASABKAsyGC5ydW5tZS5ydW5uZXIudjIuU2Vzc2lvbiIVChNMaXN0U2Vzc2lvbnNSZXF1ZXN0IkIKFExpc3RTZXNzaW9uc1Jlc3BvbnNlEioKCHNlc3Npb25zGAEgAygLMhgucnVubWUucnVubmVyLnYyLlNlc3Npb24i4wEKFFVwZGF0ZVNlc3Npb25SZXF1ZXN0EgoKAmlkGAEgASgJEkUKCG1ldGFkYXRhGAIgAygLMjMucnVubWUucnVubmVyLnYyLlVwZGF0ZVNlc3Npb25SZXF1ZXN0Lk1ldGFkYXRhRW50cnkSCwoDZW52GAMgAygJEi4KB3Byb2plY3QYBCABKAsyGC5ydW5tZS5ydW5uZXIudjIuUHJvamVjdEgAiAEBGi8KDU1ldGFkYXRhRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4AUIKCghfcHJvamVjdCJCChVVcGRhdGVTZXNzaW9uUmVzcG9uc2USKQoHc2Vzc2lvbhgBIAEoCzIYLnJ1bm1lLnJ1bm5lci52Mi5TZXNzaW9uIiIKFERlbGV0ZVNlc3Npb25SZXF1ZXN0EgoKAmlkGAEgASgJIhcKFURlbGV0ZVNlc3Npb25SZXNwb25zZSI7CgdXaW5zaXplEgwKBHJvd3MYASABKA0SDAoEY29scxgCIAEoDRIJCgF4GAMgASgNEgkKAXkYBCABKA0i5QIKDkV4ZWN1dGVSZXF1ZXN0Ei4KBmNvbmZpZxgBIAEoCzIeLnJ1bm1lLnJ1bm5lci52Mi5Qcm9ncmFtQ29uZmlnEhIKCmlucHV0X2RhdGEYCCABKAwSKgoEc3RvcBgJIAEoDjIcLnJ1bm1lLnJ1bm5lci52Mi5FeGVjdXRlU3RvcBIuCgd3aW5zaXplGAogASgLMhgucnVubWUucnVubmVyLnYyLldpbnNpemVIAIgBARISCgpzZXNzaW9uX2lkGBQgASgJEjoKEHNlc3Npb25fc3RyYXRlZ3kYFSABKA4yIC5ydW5tZS5ydW5uZXIudjIuU2Vzc2lvblN0cmF0ZWd5Ei4KB3Byb2plY3QYFiABKAsyGC5ydW5tZS5ydW5uZXIudjIuUHJvamVjdEgBiAEBEhsKE3N0b3JlX3N0ZG91dF9pbl9lbnYYFyABKAhCCgoIX3dpbnNpemVCCgoIX3Byb2plY3QiqgEKD0V4ZWN1dGVSZXNwb25zZRIvCglleGl0X2NvZGUYASABKAsyHC5nb29nbGUucHJvdG9idWYuVUludDMyVmFsdWUSEwoLc3Rkb3V0X2RhdGEYAiABKAwSEwoLc3RkZXJyX2RhdGEYAyABKAwSKQoDcGlkGAQgASgLMhwuZ29vZ2xlLnByb3RvYnVmLlVJbnQzMlZhbHVlEhEKCW1pbWVfdHlwZRgFIAEoCSIqChlSZXNvbHZlUHJvZ3JhbUNvbW1hbmRMaXN0Eg0KBWxpbmVzGAEgAygJIsAEChVSZXNvbHZlUHJvZ3JhbVJlcXVlc3QSPgoIY29tbWFuZHMYASABKAsyKi5ydW5tZS5ydW5uZXIudjIuUmVzb2x2ZVByb2dyYW1Db21tYW5kTGlzdEgAEhAKBnNjcmlwdBgCIAEoCUgAEjkKBG1vZGUYAyABKA4yKy5ydW5tZS5ydW5uZXIudjIuUmVzb2x2ZVByb2dyYW1SZXF1ZXN0Lk1vZGUSCwoDZW52GAQgAygJEhIKCnNlc3Npb25faWQYBSABKAkSOgoQc2Vzc2lvbl9zdHJhdGVneRgGIAEoDjIgLnJ1bm1lLnJ1bm5lci52Mi5TZXNzaW9uU3RyYXRlZ3kSLgoHcHJvamVjdBgHIAEoCzIYLnJ1bm1lLnJ1bm5lci52Mi5Qcm9qZWN0SAGIAQESEwoLbGFuZ3VhZ2VfaWQYCCABKAkSQwoJcmV0ZW50aW9uGAkgASgOMjAucnVubWUucnVubmVyLnYyLlJlc29sdmVQcm9ncmFtUmVxdWVzdC5SZXRlbnRpb24iRAoETW9kZRIUChBNT0RFX1VOU1BFQ0lGSUVEEAASEwoPTU9ERV9QUk9NUFRfQUxMEAESEQoNTU9ERV9TS0lQX0FMTBACIlcKCVJldGVudGlvbhIZChVSRVRFTlRJT05fVU5TUEVDSUZJRUQQABIXChNSRVRFTlRJT05fRklSU1RfUlVOEAESFgoSUkVURU5USU9OX0xBU1RfUlVOEAJCCAoGc291cmNlQgoKCF9wcm9qZWN0ItoDChZSZXNvbHZlUHJvZ3JhbVJlc3BvbnNlEg4KBnNjcmlwdBgBIAEoCRI8Cghjb21tYW5kcxgCIAEoCzIqLnJ1bm1lLnJ1bm5lci52Mi5SZXNvbHZlUHJvZ3JhbUNvbW1hbmRMaXN0Ej8KBHZhcnMYAyADKAsyMS5ydW5tZS5ydW5uZXIudjIuUmVzb2x2ZVByb2dyYW1SZXNwb25zZS5WYXJSZXN1bHQaiQEKCVZhclJlc3VsdBI+CgZzdGF0dXMYASABKA4yLi5ydW5tZS5ydW5uZXIudjIuUmVzb2x2ZVByb2dyYW1SZXNwb25zZS5TdGF0dXMSDAoEbmFtZRgCIAEoCRIWCg5vcmlnaW5hbF92YWx1ZRgDIAEoCRIWCg5yZXNvbHZlZF92YWx1ZRgEIAEoCSKkAQoGU3RhdHVzEhYKElNUQVRVU19VTlNQRUNJRklFRBAAEhMKD1NUQVRVU19SRVNPTFZFRBABEiIKHlNUQVRVU19VTlJFU09MVkVEX1dJVEhfTUVTU0FHRRACEiYKIlNUQVRVU19VTlJFU09MVkVEX1dJVEhfUExBQ0VIT0xERVIQAxIhCh1TVEFUVVNfVU5SRVNPTFZFRF9XSVRIX1NFQ1JFVBAEIkMKFk1vbml0b3JFbnZTdG9yZVJlcXVlc3QSKQoHc2Vzc2lvbhgBIAEoCzIYLnJ1bm1lLnJ1bm5lci52Mi5TZXNzaW9uIsIECh9Nb25pdG9yRW52U3RvcmVSZXNwb25zZVNuYXBzaG90EkoKBGVudnMYASADKAsyPC5ydW5tZS5ydW5uZXIudjIuTW9uaXRvckVudlN0b3JlUmVzcG9uc2VTbmFwc2hvdC5TbmFwc2hvdEVudhrOAgoLU25hcHNob3RFbnYSRwoGc3RhdHVzGAEgASgOMjcucnVubWUucnVubmVyLnYyLk1vbml0b3JFbnZTdG9yZVJlc3BvbnNlU25hcHNob3QuU3RhdHVzEgwKBG5hbWUYAiABKAkSEwoLZGVzY3JpcHRpb24YAyABKAkSDAoEc3BlYxgEIAEoCRITCgtpc19yZXF1aXJlZBgFIAEoCBIOCgZvcmlnaW4YBiABKAkSFgoOb3JpZ2luYWxfdmFsdWUYByABKAkSFgoOcmVzb2x2ZWRfdmFsdWUYCCABKAkSEwoLY3JlYXRlX3RpbWUYCSABKAkSEwoLdXBkYXRlX3RpbWUYCiABKAkSRgoGZXJyb3JzGAsgAygLMjYucnVubWUucnVubmVyLnYyLk1vbml0b3JFbnZTdG9yZVJlc3BvbnNlU25hcHNob3QuRXJyb3IaJgoFRXJyb3ISDAoEY29kZRgBIAEoDRIPCgdtZXNzYWdlGAIgASgJIloKBlN0YXR1cxIWChJTVEFUVVNfVU5TUEVDSUZJRUQQABISCg5TVEFUVVNfTElURVJBTBABEhEKDVNUQVRVU19ISURERU4QAhIRCg1TVEFUVVNfTUFTS0VEEAMimwEKF01vbml0b3JFbnZTdG9yZVJlc3BvbnNlEjIKBHR5cGUYASABKA4yJC5ydW5tZS5ydW5uZXIudjIuTW9uaXRvckVudlN0b3JlVHlwZRJECghzbmFwc2hvdBgCIAEoCzIwLnJ1bm1lLnJ1bm5lci52Mi5Nb25pdG9yRW52U3RvcmVSZXNwb25zZVNuYXBzaG90SABCBgoEZGF0YSpdChNTZXNzaW9uRW52U3RvcmVUeXBlEiYKIlNFU1NJT05fRU5WX1NUT1JFX1RZUEVfVU5TUEVDSUZJRUQQABIeChpTRVNTSU9OX0VOVl9TVE9SRV9UWVBFX09XTBABKl4KC0V4ZWN1dGVTdG9wEhwKGEVYRUNVVEVfU1RPUF9VTlNQRUNJRklFRBAAEhoKFkVYRUNVVEVfU1RPUF9JTlRFUlJVUFQQARIVChFFWEVDVVRFX1NUT1BfS0lMTBACKlUKD1Nlc3Npb25TdHJhdGVneRIgChxTRVNTSU9OX1NUUkFURUdZX1VOU1BFQ0lGSUVEEAASIAocU0VTU0lPTl9TVFJBVEVHWV9NT1NUX1JFQ0VOVBABKmIKE01vbml0b3JFbnZTdG9yZVR5cGUSJgoiTU9OSVRPUl9FTlZfU1RPUkVfVFlQRV9VTlNQRUNJRklFRBAAEiMKH01PTklUT1JfRU5WX1NUT1JFX1RZUEVfU05BUFNIT1QQATKQBgoNUnVubmVyU2VydmljZRJgCg1DcmVhdGVTZXNzaW9uEiUucnVubWUucnVubmVyLnYyLkNyZWF0ZVNlc3Npb25SZXF1ZXN0GiYucnVubWUucnVubmVyLnYyLkNyZWF0ZVNlc3Npb25SZXNwb25zZSIAElcKCkdldFNlc3Npb24SIi5ydW5tZS5ydW5uZXIudjIuR2V0U2Vzc2lvblJlcXVlc3QaIy5ydW5tZS5ydW5uZXIudjIuR2V0U2Vzc2lvblJlc3BvbnNlIgASXQoMTGlzdFNlc3Npb25zEiQucnVubWUucnVubmVyLnYyLkxpc3RTZXNzaW9uc1JlcXVlc3QaJS5ydW5tZS5ydW5uZXIudjIuTGlzdFNlc3Npb25zUmVzcG9uc2UiABJgCg1VcGRhdGVTZXNzaW9uEiUucnVubWUucnVubmVyLnYyLlVwZGF0ZVNlc3Npb25SZXF1ZXN0GiYucnVubWUucnVubmVyLnYyLlVwZGF0ZVNlc3Npb25SZXNwb25zZSIAEmAKDURlbGV0ZVNlc3Npb24SJS5ydW5tZS5ydW5uZXIudjIuRGVsZXRlU2Vzc2lvblJlcXVlc3QaJi5ydW5tZS5ydW5uZXIudjIuRGVsZXRlU2Vzc2lvblJlc3BvbnNlIgASaAoPTW9uaXRvckVudlN0b3JlEicucnVubWUucnVubmVyLnYyLk1vbml0b3JFbnZTdG9yZVJlcXVlc3QaKC5ydW5tZS5ydW5uZXIudjIuTW9uaXRvckVudlN0b3JlUmVzcG9uc2UiADABElIKB0V4ZWN1dGUSHy5ydW5tZS5ydW5uZXIudjIuRXhlY3V0ZVJlcXVlc3QaIC5ydW5tZS5ydW5uZXIudjIuRXhlY3V0ZVJlc3BvbnNlIgAoATABEmMKDlJlc29sdmVQcm9ncmFtEiYucnVubWUucnVubmVyLnYyLlJlc29sdmVQcm9ncmFtUmVxdWVzdBonLnJ1bm1lLnJ1bm5lci52Mi5SZXNvbHZlUHJvZ3JhbVJlc3BvbnNlIgBCSFpGZ2l0aHViLmNvbS9ydW5tZWRldi9ydW5tZS92My9hcGkvZ2VuL3Byb3RvL2dvL3J1bm1lL3J1bm5lci92MjtydW5uZXJ2MmIGcHJvdG8z",[_o.file_google_protobuf_wrappers,Mc]),Fc=Ic(Pc,19,0),we=Rc(Fc),Hc=Z`
|
|
1886
|
-
<svg
|
|
1887
|
-
width="16"
|
|
1888
|
-
height="16"
|
|
1889
|
-
viewBox="0 0 16 16"
|
|
1890
|
-
fill="currentColor"
|
|
1891
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1892
|
-
>
|
|
1893
|
-
<path
|
|
1894
|
-
fill-rule="evenodd"
|
|
1895
|
-
clip-rule="evenodd"
|
|
1896
|
-
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"
|
|
1897
|
-
fill="currentColor"
|
|
1898
|
-
/>
|
|
1899
|
-
</svg>
|
|
1900
|
-
`,Uc=Z`
|
|
1901
|
-
<svg
|
|
1902
|
-
width="16"
|
|
1903
|
-
height="16"
|
|
1904
|
-
viewBox="0 0 16 16"
|
|
1905
|
-
fill="currentColor"
|
|
1906
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1907
|
-
>
|
|
1908
|
-
<path
|
|
1909
|
-
fill-rule="evenodd"
|
|
1910
|
-
clip-rule="evenodd"
|
|
1911
|
-
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"
|
|
1912
|
-
fill="currentColor"
|
|
1913
|
-
/>
|
|
1914
|
-
</svg>
|
|
1915
|
-
`;var $c=Object.defineProperty,Wc=Object.getOwnPropertyDescriptor,Yr=(e,t,r,h)=>{for(var v=h>1?void 0:h?Wc(t,r):t,E=e.length-1,C;E>=0;E--)(C=e[E])&&(v=(h?C(t,r,v):C(v))||v);return h&&v&&$c(t,r,v),v};let Et=class extends ue{render(){return Z`<div class="tooltip">
|
|
1916
|
-
<div
|
|
1917
|
-
.class="${ce(this.classList,()=>this.classList,()=>"")}"
|
|
1918
|
-
>
|
|
1919
|
-
${this.value}
|
|
1920
|
-
</div>
|
|
1921
|
-
<div class="tooltiptext">${this.tooltipText}</div>
|
|
1922
|
-
</div>`}};Et.styles=Se`
|
|
1923
|
-
.tooltip .tooltiptext {
|
|
1924
|
-
background-color: var(--vscode-notifications-background);
|
|
1925
|
-
box-shadow: 2px 2px 4px -2px var(--vscode-notifications-border);
|
|
1926
|
-
display: none;
|
|
1927
|
-
padding: 5px;
|
|
1928
|
-
color: var(--vscode-notifications-foreground);
|
|
1929
|
-
border-radius: 5px;
|
|
1930
|
-
position: absolute;
|
|
1931
|
-
z-index: 100;
|
|
1932
|
-
box-shadow: var(--vscode-inputValidation-errorBorder) 0px 0px 8px 2px;
|
|
1933
|
-
}
|
|
1934
|
-
|
|
1935
|
-
.tooltip .tooltiptext::after {
|
|
1936
|
-
content: ' ';
|
|
1937
|
-
position: absolute;
|
|
1938
|
-
bottom: 100%; /* At the top of the tooltip */
|
|
1939
|
-
left: 10px;
|
|
1940
|
-
margin-left: -5px;
|
|
1941
|
-
border-width: 5px;
|
|
1942
|
-
border-style: solid;
|
|
1943
|
-
border-color: transparent transparent var(--vscode-notifications-background) transparent;
|
|
1944
|
-
}
|
|
1945
|
-
|
|
1946
|
-
.tooltip .tooltiptext {
|
|
1947
|
-
transition-delay: 1s;
|
|
1948
|
-
}
|
|
1949
|
-
|
|
1950
|
-
.tooltip:hover .tooltiptext {
|
|
1951
|
-
display: block;
|
|
1952
|
-
}
|
|
1953
|
-
|
|
1954
|
-
.tooltip:not(:hover) .tooltiptext {
|
|
1955
|
-
transition-delay: 0s;
|
|
1956
|
-
}
|
|
1957
|
-
|
|
1958
|
-
.flex {
|
|
1959
|
-
display: flex;
|
|
1960
|
-
flex-direction: column;
|
|
1961
|
-
}
|
|
1962
|
-
|
|
1963
|
-
.required {
|
|
1964
|
-
font-weight: 600;
|
|
1965
|
-
}
|
|
1966
|
-
|
|
1967
|
-
.optional {
|
|
1968
|
-
font-weight: 400;
|
|
1969
|
-
}
|
|
1970
|
-
`;Yr([J({type:String})],Et.prototype,"tooltipText",2);Yr([J({type:String})],Et.prototype,"value",2);Et=Yr([pe("tooltip-text")],Et);var Vc=Object.defineProperty,jc=Object.getOwnPropertyDescriptor,et=(e,t,r,h)=>{for(var v=h>1?void 0:h?jc(t,r):t,E=e.length-1,C;E>=0;E--)(C=e[E])&&(v=(h?C(t,r,v):C(v))||v);return h&&v&&Vc(t,r,v),v};let De=class extends ue{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,we.MASKED,we.LITERAL,we.UNSPECIFIED].includes(this.status);return Z`
|
|
1971
|
-
<div class="secret-container">
|
|
1972
|
-
${ce(this.displaySecret,()=>Z`<span class="secret-text">${this.value}</span>`,()=>ce(this.maskedValue,()=>Z`<span class="secret-text">${this.maskedValue}</span>`,()=>Array.from({length:20},(t,r)=>r+1).map(()=>"*").join("")))}
|
|
1973
|
-
<div class="actions">
|
|
1974
|
-
${ce(e,()=>Z``,()=>ce(this.displaySecret,()=>Z` <vscode-button
|
|
1975
|
-
appearance="icon"
|
|
1976
|
-
class="cursor-pointer"
|
|
1977
|
-
@click=${this.toggleVisibility}
|
|
1978
|
-
>
|
|
1979
|
-
${Hc}
|
|
1980
|
-
</vscode-button>`,()=>Z` <vscode-button
|
|
1981
|
-
appearance="icon"
|
|
1982
|
-
class="cursor-pointer"
|
|
1983
|
-
@click=${this.toggleVisibility}
|
|
1984
|
-
>
|
|
1985
|
-
${ys}
|
|
1986
|
-
</vscode-button>`))}
|
|
1987
|
-
${ce([we.LITERAL,we.HIDDEN].includes(this.status),()=>Z` <vscode-button
|
|
1988
|
-
appearance="icon"
|
|
1989
|
-
class="cursor-pointer"
|
|
1990
|
-
@click=${this.onCopy}
|
|
1991
|
-
>${ce(this._copied,()=>Z`${Uc}`,()=>Z`${bs}`)}</vscode-button
|
|
1992
|
-
>`,()=>Z``)}
|
|
1993
|
-
</div>
|
|
1994
|
-
</div>
|
|
1995
|
-
`}};De.styles=Se`
|
|
1996
|
-
vscode-button {
|
|
1997
|
-
color: var(--vscode-button-foreground);
|
|
1998
|
-
background-color: var(--vscode-button-background);
|
|
1999
|
-
transform: scale(0.9);
|
|
2000
|
-
}
|
|
2001
|
-
vscode-button:hover {
|
|
2002
|
-
background: var(--vscode-button-hoverBackground);
|
|
2003
|
-
}
|
|
2004
|
-
|
|
2005
|
-
.secret-container {
|
|
2006
|
-
display: flex;
|
|
2007
|
-
gap: 1px;
|
|
2008
|
-
justify-content: space-between;
|
|
2009
|
-
}
|
|
2010
|
-
|
|
2011
|
-
.secret-text {
|
|
2012
|
-
overflow: hidden;
|
|
2013
|
-
text-overflow: ellipsis;
|
|
2014
|
-
white-space: nowrap;
|
|
2015
|
-
max-height: 100px;
|
|
2016
|
-
}
|
|
2017
|
-
|
|
2018
|
-
.actions {
|
|
2019
|
-
display: flex;
|
|
2020
|
-
gap: 1px;
|
|
2021
|
-
padding-right: 4px;
|
|
2022
|
-
}
|
|
2023
|
-
|
|
2024
|
-
.cursor-pointer {
|
|
2025
|
-
cursor: pointer;
|
|
2026
|
-
}
|
|
2027
|
-
`;et([J({type:String})],De.prototype,"value",2);et([J({type:Number})],De.prototype,"status",2);et([J({type:Boolean})],De.prototype,"displaySecret",2);et([J({type:String})],De.prototype,"maskedValue",2);et([Uo()],De.prototype,"_copied",2);De=et([pe("env-viewer")],De);Z`
|
|
2028
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2029
|
-
<path
|
|
2030
|
-
fill-rule="evenodd"
|
|
2031
|
-
clip-rule="evenodd"
|
|
2032
|
-
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"
|
|
2033
|
-
fill="#A1260D"
|
|
2034
|
-
/>
|
|
2035
|
-
</svg>
|
|
2036
|
-
`;const Gc=(e,t)=>Z`
|
|
2037
|
-
<svg
|
|
2038
|
-
width="${t}px"
|
|
2039
|
-
height="${e}px"
|
|
2040
|
-
viewBox="0 0 16 16"
|
|
2041
|
-
fill="none"
|
|
2042
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
2043
|
-
>
|
|
2044
|
-
<path
|
|
2045
|
-
fill-rule="evenodd"
|
|
2046
|
-
clip-rule="evenodd"
|
|
2047
|
-
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"
|
|
2048
|
-
fill="#A1260D"
|
|
2049
|
-
/>
|
|
2050
|
-
</svg>
|
|
2051
|
-
`;var Kc=Object.defineProperty,zc=Object.getOwnPropertyDescriptor,co=e=>{throw TypeError(e)},lo=(e,t,r,h)=>{for(var v=h>1?void 0:h?zc(t,r):t,E=e.length-1,C;E>=0;E--)(C=e[E])&&(v=(h?C(t,r,v):C(v))||v);return h&&v&&Kc(t,r,v),v},Zc=(e,t,r)=>t.has(e)||co("Cannot "+r),Xc=(e,t,r)=>t.has(e)?co("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),$e=(e,t,r)=>(Zc(e,t,"access private method"),r),Ae,ho,uo,ct;const Yc="__",Jc=[{text:"Name"},{text:"Value"},{text:"Description"},{text:"Spec"},{text:"Source"},{text:"Updated"}],qc=["resolvedValue","errors","status","specClass"];let Ir=class extends ue{constructor(){super(...arguments),Xc(this,Ae),this.disposables=[]}dispose(){this.disposables.forEach(({dispose:e})=>e())}render(){var e;return $e(this,Ae,uo).call(this),Z` <div>
|
|
2052
|
-
<table-view
|
|
2053
|
-
.columns="${Jc}"
|
|
2054
|
-
.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:Pn(new Date(t.updateTime)),resolvedValue:t.resolvedValue,errors:t.errors}))}"
|
|
2055
|
-
.displayable="${(t,r)=>!qc.includes(r)}"
|
|
2056
|
-
.hasErrors="${t=>{var r;return!(!((r=t.errors)!=null&&r.length)||t.name===Yc)}}"
|
|
2057
|
-
.renderer="${(t,r)=>{switch(r){case"originalValue":const h=t.status===we.LITERAL;let v=t.status===we.MASKED?`${t.resolvedValue} [masked]`:t.resolvedValue;return t.status===we.UNSPECIFIED?v="[unset]":t.status===we.HIDDEN&&(v="[hidden]"),v=v.replace(/\n/g," ").replace(/\r/g,""),Z`<env-viewer
|
|
2058
|
-
.displaySecret="${h}"
|
|
2059
|
-
.value="${t.originalValue}"
|
|
2060
|
-
.maskedValue="${$e(this,Ae,ct).call(this,t,r,()=>v)}"
|
|
2061
|
-
.status="${t.status}"
|
|
2062
|
-
@onCopy="${async()=>$e(this,Ae,ho).call(this,t.originalValue)}"
|
|
2063
|
-
></env-viewer>`;case"updatedAt":return $e(this,Ae,ct).call(this,t,r,()=>t[r]?Fn(new Date(t[r])):"");case"spec":return $e(this,Ae,ct).call(this,t,r,()=>Z`<span class="${t.specClass}">${t[r]}</span>`);default:return $e(this,Ae,ct).call(this,t,r,()=>t[r])}}}"
|
|
2064
|
-
></table-view>
|
|
2065
|
-
</div>`}};Ae=new WeakSet;ho=function(e){return navigator.clipboard.writeText(e)};uo=function(){var e;(e=this.variables)==null||e.sort((t,r)=>t.errors.length>0?-1:r.errors.length>0?1:0)};ct=function(e,t,r){var v;const h=t==="name"?Z`${Gc(10,10)}`:Z``;return(v=e.errors)!=null&&v.length?Z`<div class="flex">
|
|
2066
|
-
<tooltip-text
|
|
2067
|
-
.tooltipText="${Z`<div class="flex">
|
|
2068
|
-
${e.errors.map(E=>Z`<span>${h}${E.message}</span>`)}
|
|
2069
|
-
</div>`}"
|
|
2070
|
-
.value="${Z`${h} ${r()}`}"
|
|
2071
|
-
></tooltip-text>
|
|
2072
|
-
</div>`:t==="spec"?Z`<div class="flex">
|
|
2073
|
-
<tooltip-text
|
|
2074
|
-
.tooltipText="${Z`<div class="flex">Info: Variable is ${e.specClass}</div>`}"
|
|
2075
|
-
.value="${r()}"
|
|
2076
|
-
></tooltip-text>
|
|
2077
|
-
</div>`:Z`${r()}`};lo([J({type:Array})],Ir.prototype,"variables",2);Ir=lo([pe("env-store")],Ir);exports.ClientMessages=Q;exports.setContext=vo;
|