@sourcegraph/amp 0.0.1749006696-g945aed → 0.0.1749038537-ga788b8
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/amp.js +3 -3
- package/dist/{client-DfT7W2Ib.js → client-DRkn40v5.js} +2 -2
- package/dist/{client-DfT7W2Ib.js.map → client-DRkn40v5.js.map} +1 -1
- package/dist/{console-DL5q_5zK.js → console-cTFB4LXV.js} +6003 -5911
- package/dist/console-cTFB4LXV.js.map +1 -0
- package/dist/{create_file.node-BPsv2mF-.js → create_file.node-BnxKZkS8.js} +2 -2
- package/dist/{create_file.node-BPsv2mF-.js.map → create_file.node-BnxKZkS8.js.map} +1 -1
- package/dist/{edit_file.node-_-t6gI2B.js → edit_file.node-BrpV91sY.js} +3 -3
- package/dist/{edit_file.node-_-t6gI2B.js.map → edit_file.node-BrpV91sY.js.map} +1 -1
- package/dist/{executable-b9Ya_bF2.js → executable-CkOCFEBG.js} +2 -2
- package/dist/{executable-b9Ya_bF2.js.map → executable-CkOCFEBG.js.map} +1 -1
- package/dist/{files-CAAWClHi.js → files-D5Q2JGfw.js} +2 -2
- package/dist/{files-CAAWClHi.js.map → files-D5Q2JGfw.js.map} +1 -1
- package/dist/{glob.node-mL7LvrGc.js → glob.node-Cub51teu.js} +4 -4
- package/dist/{glob.node-mL7LvrGc.js.map → glob.node-Cub51teu.js.map} +1 -1
- package/dist/{index-BH6QEM4x.js → index-l6SSoCQL.js} +2 -2
- package/dist/{index-BH6QEM4x.js.map → index-l6SSoCQL.js.map} +1 -1
- package/dist/{list_directory.node-DmyX2E0J.js → list_directory.node-RNgF574B.js} +2 -2
- package/dist/{list_directory.node-DmyX2E0J.js.map → list_directory.node-RNgF574B.js.map} +1 -1
- package/dist/{load-profile-DDpyqRRl.js → load-profile-BUNbamZ9.js} +2 -2
- package/dist/{load-profile-DDpyqRRl.js.map → load-profile-BUNbamZ9.js.map} +1 -1
- package/dist/{main-AYSXjfEF.js → main-CAGDgkNm.js} +1198 -1183
- package/dist/main-CAGDgkNm.js.map +1 -0
- package/dist/{node-OXGyVT3u.js → node-Bs9RGMLe.js} +3 -3
- package/dist/{node-OXGyVT3u.js.map → node-Bs9RGMLe.js.map} +1 -1
- package/dist/{node-DRKC6dGa.js → node-Bu9szyQU.js} +4 -4
- package/dist/{node-DRKC6dGa.js.map → node-Bu9szyQU.js.map} +1 -1
- package/dist/{node-D34hxGoD.js → node-C8KhLGcS.js} +2 -2
- package/dist/{node-D34hxGoD.js.map → node-C8KhLGcS.js.map} +1 -1
- package/dist/{node-DPaklsl9.js → node-D2i4QyuX.js} +2 -2
- package/dist/{node-DPaklsl9.js.map → node-D2i4QyuX.js.map} +1 -1
- package/dist/{node-BuwPjz1w.js → node-HnDWqqri.js} +3 -3
- package/dist/{node-BuwPjz1w.js.map → node-HnDWqqri.js.map} +1 -1
- package/dist/{node-DkDNa5Dh.js → node-rOj17fe_.js} +264 -264
- package/dist/node-rOj17fe_.js.map +1 -0
- package/dist/{read_file.node-Dwvdu57e.js → read_file.node-5Ab8TOWo.js} +2 -2
- package/dist/{read_file.node-Dwvdu57e.js.map → read_file.node-5Ab8TOWo.js.map} +1 -1
- package/dist/{stdio-BSOV5nc_.js → stdio-ChUPUONM.js} +3 -3
- package/dist/{stdio-BSOV5nc_.js.map → stdio-ChUPUONM.js.map} +1 -1
- package/dist/storybook.js +1 -1
- package/dist/{undo_edit.node-CdQNPWSe.js → undo_edit.node-knBYg6rq.js} +2 -2
- package/dist/{undo_edit.node-CdQNPWSe.js.map → undo_edit.node-knBYg6rq.js.map} +1 -1
- package/package.json +1 -1
- package/dist/console-DL5q_5zK.js.map +0 -1
- package/dist/main-AYSXjfEF.js.map +0 -1
- package/dist/node-DkDNa5Dh.js.map +0 -1
@@ -1,8 +1,8 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
2
|
import * as ce from "node:os";
|
3
3
|
import ee, { resolve as ue } from "node:path";
|
4
|
-
import { aS as fe, aT as
|
5
|
-
import { loadProfileEnvironmentVariables as Se } from "./load-profile-
|
4
|
+
import { aS as fe, aT as de, C as _e, aU as ne, aV as pe, aW as ge, aH as ae, aP as ve, aG as me, aB as be, O as se } from "./console-cTFB4LXV.js";
|
5
|
+
import { loadProfileEnvironmentVariables as Se } from "./load-profile-BUNbamZ9.js";
|
6
6
|
const Ce = [
|
7
7
|
"ls",
|
8
8
|
"dir",
|
@@ -217,9 +217,9 @@ function Ee(x, $, I) {
|
|
217
217
|
let R = [];
|
218
218
|
try {
|
219
219
|
const w = fe(x, I?.platform);
|
220
|
-
R =
|
220
|
+
R = de(w);
|
221
221
|
} catch (w) {
|
222
|
-
|
222
|
+
_e.warn("Failed to parse command", { cmd: x }, w), R = [x];
|
223
223
|
}
|
224
224
|
const W = I?.config?.["commands.allowlist"] || [];
|
225
225
|
if (W.includes("*"))
|
@@ -230,26 +230,26 @@ function Ee(x, $, I) {
|
|
230
230
|
const z = R.map((w) => {
|
231
231
|
if (typeof w == "string")
|
232
232
|
return { command: w, requiresConfirmation: !0 };
|
233
|
-
const r = w.arguments.some((
|
234
|
-
function l(
|
235
|
-
return
|
233
|
+
const r = w.arguments.some((_) => typeof _ != "string");
|
234
|
+
function l(_) {
|
235
|
+
return _ === ne ? "<dynamic>" : _;
|
236
236
|
}
|
237
|
-
const
|
237
|
+
const d = `${l(w.program)} ${w.arguments.map(l).join(" ")}`;
|
238
238
|
if (!r) {
|
239
|
-
for (const
|
240
|
-
if (
|
239
|
+
for (const _ of W)
|
240
|
+
if (d === _)
|
241
241
|
return { command: w, requiresConfirmation: !1 };
|
242
242
|
}
|
243
243
|
if (Ce.includes(String(w.program)))
|
244
244
|
return re(w, $) ? { command: w, requiresConfirmation: !0 } : { command: w, requiresConfirmation: !1 };
|
245
|
-
for (let
|
246
|
-
|
245
|
+
for (let _ of [...ye, ...W]) {
|
246
|
+
_.endsWith(" *") && (_ = _.slice(0, -2));
|
247
247
|
const n = " * ";
|
248
|
-
if (
|
249
|
-
const c =
|
250
|
-
if (new RegExp(`^${c.join(" .* ")}(\\s.*)?$`).test(
|
248
|
+
if (_.includes(n) && !_.startsWith(n)) {
|
249
|
+
const c = _.split(n).map((h) => h.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
|
250
|
+
if (new RegExp(`^${c.join(" .* ")}(\\s.*)?$`).test(d))
|
251
251
|
return re(w, $) ? { command: w, requiresConfirmation: !0 } : { command: w, requiresConfirmation: !1 };
|
252
|
-
} else if (
|
252
|
+
} else if (d === _ || d.startsWith(_ + " "))
|
253
253
|
return re(w, $) ? { command: w, requiresConfirmation: !0 } : { command: w, requiresConfirmation: !1 };
|
254
254
|
}
|
255
255
|
return { command: w, requiresConfirmation: !0 };
|
@@ -262,10 +262,10 @@ function Ae() {
|
|
262
262
|
(() => {
|
263
263
|
var $ = { 349: (w, r, l) => {
|
264
264
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.CircularList = void 0;
|
265
|
-
const
|
266
|
-
class n extends
|
265
|
+
const d = l(460), _ = l(844);
|
266
|
+
class n extends _.Disposable {
|
267
267
|
constructor(a) {
|
268
|
-
super(), this._maxLength = a, this.onDeleteEmitter = this.register(new
|
268
|
+
super(), this._maxLength = a, 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;
|
269
269
|
}
|
270
270
|
get maxLength() {
|
271
271
|
return this._maxLength;
|
@@ -334,17 +334,17 @@ function Ae() {
|
|
334
334
|
}
|
335
335
|
r.CircularList = n;
|
336
336
|
}, 439: (w, r) => {
|
337
|
-
Object.defineProperty(r, "__esModule", { value: !0 }), r.clone = void 0, r.clone = function l(
|
338
|
-
if (typeof
|
339
|
-
const n = Array.isArray(
|
340
|
-
for (const c in
|
337
|
+
Object.defineProperty(r, "__esModule", { value: !0 }), r.clone = void 0, r.clone = function l(d, _ = 5) {
|
338
|
+
if (typeof d != "object") return d;
|
339
|
+
const n = Array.isArray(d) ? [] : {};
|
340
|
+
for (const c in d) n[c] = _ <= 1 ? d[c] : d[c] && l(d[c], _ - 1);
|
341
341
|
return n;
|
342
342
|
};
|
343
343
|
}, 969: (w, r, l) => {
|
344
344
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.CoreTerminal = void 0;
|
345
|
-
const
|
345
|
+
const d = l(844), _ = l(585), n = l(348), c = l(866), a = l(744), h = l(302), u = l(83), e = l(460), s = l(753), i = l(480), t = l(994), f = l(282), p = l(435), S = l(981), y = l(660);
|
346
346
|
let C = !1;
|
347
|
-
class T extends
|
347
|
+
class T extends d.Disposable {
|
348
348
|
get onScroll() {
|
349
349
|
return this._onScrollApi || (this._onScrollApi = this.register(new e.EventEmitter()), this._onScroll.event((E) => {
|
350
350
|
this._onScrollApi?.fire(E.position);
|
@@ -366,7 +366,7 @@ function Ae() {
|
|
366
366
|
for (const B in E) this.optionsService.options[B] = E[B];
|
367
367
|
}
|
368
368
|
constructor(E) {
|
369
|
-
super(), this._windowsWrappingHeuristics = this.register(new
|
369
|
+
super(), this._windowsWrappingHeuristics = this.register(new d.MutableDisposable()), this._onBinary = this.register(new e.EventEmitter()), this.onBinary = this._onBinary.event, this._onData = this.register(new e.EventEmitter()), this.onData = this._onData.event, this._onLineFeed = this.register(new e.EventEmitter()), this.onLineFeed = this._onLineFeed.event, this._onResize = this.register(new e.EventEmitter()), this.onResize = this._onResize.event, this._onWriteParsed = this.register(new e.EventEmitter()), this.onWriteParsed = this._onWriteParsed.event, this._onScroll = this.register(new e.EventEmitter()), this._instantiationService = new n.InstantiationService(), this.optionsService = this.register(new h.OptionsService(E)), this._instantiationService.setService(_.IOptionsService, this.optionsService), this._bufferService = this.register(this._instantiationService.createInstance(a.BufferService)), this._instantiationService.setService(_.IBufferService, this._bufferService), this._logService = this.register(this._instantiationService.createInstance(c.LogService)), this._instantiationService.setService(_.ILogService, this._logService), this.coreService = this.register(this._instantiationService.createInstance(u.CoreService)), this._instantiationService.setService(_.ICoreService, this.coreService), this.coreMouseService = this.register(this._instantiationService.createInstance(s.CoreMouseService)), this._instantiationService.setService(_.ICoreMouseService, this.coreMouseService), this.unicodeService = this.register(this._instantiationService.createInstance(i.UnicodeService)), this._instantiationService.setService(_.IUnicodeService, this.unicodeService), this._charsetService = this._instantiationService.createInstance(t.CharsetService), this._instantiationService.setService(_.ICharsetService, this._charsetService), this._oscLinkService = this._instantiationService.createInstance(y.OscLinkService), this._instantiationService.setService(_.IOscLinkService, this._oscLinkService), this._inputHandler = this.register(new p.InputHandler(this._bufferService, this._charsetService, this.coreService, this._logService, this.optionsService, this._oscLinkService, this.coreMouseService, this.unicodeService)), this.register((0, e.forwardEvent)(this._inputHandler.onLineFeed, this._onLineFeed)), this.register(this._inputHandler), this.register((0, e.forwardEvent)(this._bufferService.onResize, this._onResize)), this.register((0, e.forwardEvent)(this.coreService.onData, this._onData)), this.register((0, e.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((B) => {
|
370
370
|
this._onScroll.fire({ position: this._bufferService.buffer.ydisp, source: 0 }), this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop, this._bufferService.buffer.scrollBottom);
|
371
371
|
})), this.register(this._inputHandler.onScroll((B) => {
|
372
372
|
this._onScroll.fire({ position: this._bufferService.buffer.ydisp, source: 0 }), this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop, this._bufferService.buffer.scrollBottom);
|
@@ -376,7 +376,7 @@ function Ae() {
|
|
376
376
|
this._writeBuffer.write(E, B);
|
377
377
|
}
|
378
378
|
writeSync(E, B) {
|
379
|
-
this._logService.logLevel <=
|
379
|
+
this._logService.logLevel <= _.LogLevelEnum.WARN && !C && (this._logService.warn("writeSync is unreliable and will be removed soon."), C = !0), this._writeBuffer.writeSync(E, B);
|
380
380
|
}
|
381
381
|
input(E, B = !0) {
|
382
382
|
this.coreService.triggerDataEvent(E, B);
|
@@ -429,7 +429,7 @@ function Ae() {
|
|
429
429
|
_enableWindowsWrappingHeuristics() {
|
430
430
|
if (!this._windowsWrappingHeuristics.value) {
|
431
431
|
const E = [];
|
432
|
-
E.push(this.onLineFeed(f.updateWindowsModeWrappedState.bind(null, this._bufferService))), E.push(this.registerCsiHandler({ final: "H" }, () => ((0, f.updateWindowsModeWrappedState)(this._bufferService), !1))), this._windowsWrappingHeuristics.value = (0,
|
432
|
+
E.push(this.onLineFeed(f.updateWindowsModeWrappedState.bind(null, this._bufferService))), E.push(this.registerCsiHandler({ final: "H" }, () => ((0, f.updateWindowsModeWrappedState)(this._bufferService), !1))), this._windowsWrappingHeuristics.value = (0, d.toDisposable)(() => {
|
433
433
|
for (const B of E) B.dispose();
|
434
434
|
});
|
435
435
|
}
|
@@ -444,14 +444,14 @@ function Ae() {
|
|
444
444
|
get event() {
|
445
445
|
return this._event || (this._event = (l) => (this._listeners.push(l), { dispose: () => {
|
446
446
|
if (!this._disposed) {
|
447
|
-
for (let
|
447
|
+
for (let _ = 0; _ < this._listeners.length; _++) if (this._listeners[_] === l) return void this._listeners.splice(_, 1);
|
448
448
|
}
|
449
449
|
} })), this._event;
|
450
450
|
}
|
451
|
-
fire(l,
|
452
|
-
const
|
453
|
-
for (let n = 0; n < this._listeners.length; n++)
|
454
|
-
for (let n = 0; n <
|
451
|
+
fire(l, d) {
|
452
|
+
const _ = [];
|
453
|
+
for (let n = 0; n < this._listeners.length; n++) _.push(this._listeners[n]);
|
454
|
+
for (let n = 0; n < _.length; n++) _[n].call(void 0, l, d);
|
455
455
|
}
|
456
456
|
dispose() {
|
457
457
|
this.clearListeners(), this._disposed = !0;
|
@@ -459,18 +459,18 @@ function Ae() {
|
|
459
459
|
clearListeners() {
|
460
460
|
this._listeners && (this._listeners.length = 0);
|
461
461
|
}
|
462
|
-
}, r.forwardEvent = function(l,
|
463
|
-
return l((
|
464
|
-
}, r.runAndSubscribe = function(l,
|
465
|
-
return
|
462
|
+
}, r.forwardEvent = function(l, d) {
|
463
|
+
return l((_) => d.fire(_));
|
464
|
+
}, r.runAndSubscribe = function(l, d) {
|
465
|
+
return d(void 0), l((_) => d(_));
|
466
466
|
};
|
467
467
|
}, 435: function(w, r, l) {
|
468
|
-
var
|
468
|
+
var d = this && this.__decorate || function(P, o, m, g) {
|
469
469
|
var b, A = arguments.length, D = A < 3 ? o : g === null ? g = Object.getOwnPropertyDescriptor(o, m) : g;
|
470
470
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") D = Reflect.decorate(P, o, m, g);
|
471
471
|
else for (var O = P.length - 1; O >= 0; O--) (b = P[O]) && (D = (A < 3 ? b(D) : A > 3 ? b(o, m, D) : b(o, m)) || D);
|
472
472
|
return A > 3 && D && Object.defineProperty(o, m, D), D;
|
473
|
-
},
|
473
|
+
}, _ = this && this.__param || function(P, o) {
|
474
474
|
return function(m, g) {
|
475
475
|
o(m, g, P);
|
476
476
|
};
|
@@ -1283,11 +1283,11 @@ function Ae() {
|
|
1283
1283
|
function q(P) {
|
1284
1284
|
return 0 <= P && P < 256;
|
1285
1285
|
}
|
1286
|
-
F =
|
1286
|
+
F = d([_(0, p.IBufferService)], F);
|
1287
1287
|
}, 844: (w, r) => {
|
1288
|
-
function l(
|
1289
|
-
for (const
|
1290
|
-
|
1288
|
+
function l(d) {
|
1289
|
+
for (const _ of d) _.dispose();
|
1290
|
+
d.length = 0;
|
1291
1291
|
}
|
1292
1292
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.getDisposeArrayDisposable = r.disposeArray = r.toDisposable = r.MutableDisposable = r.Disposable = void 0, r.Disposable = class {
|
1293
1293
|
constructor() {
|
@@ -1295,15 +1295,15 @@ function Ae() {
|
|
1295
1295
|
}
|
1296
1296
|
dispose() {
|
1297
1297
|
this._isDisposed = !0;
|
1298
|
-
for (const
|
1298
|
+
for (const d of this._disposables) d.dispose();
|
1299
1299
|
this._disposables.length = 0;
|
1300
1300
|
}
|
1301
|
-
register(
|
1302
|
-
return this._disposables.push(
|
1301
|
+
register(d) {
|
1302
|
+
return this._disposables.push(d), d;
|
1303
1303
|
}
|
1304
|
-
unregister(
|
1305
|
-
const
|
1306
|
-
|
1304
|
+
unregister(d) {
|
1305
|
+
const _ = this._disposables.indexOf(d);
|
1306
|
+
_ !== -1 && this._disposables.splice(_, 1);
|
1307
1307
|
}
|
1308
1308
|
}, r.MutableDisposable = class {
|
1309
1309
|
constructor() {
|
@@ -1312,8 +1312,8 @@ function Ae() {
|
|
1312
1312
|
get value() {
|
1313
1313
|
return this._isDisposed ? void 0 : this._value;
|
1314
1314
|
}
|
1315
|
-
set value(
|
1316
|
-
this._isDisposed ||
|
1315
|
+
set value(d) {
|
1316
|
+
this._isDisposed || d === this._value || (this._value?.dispose(), this._value = d);
|
1317
1317
|
}
|
1318
1318
|
clear() {
|
1319
1319
|
this.value = void 0;
|
@@ -1321,23 +1321,23 @@ function Ae() {
|
|
1321
1321
|
dispose() {
|
1322
1322
|
this._isDisposed = !0, this._value?.dispose(), this._value = void 0;
|
1323
1323
|
}
|
1324
|
-
}, r.toDisposable = function(
|
1325
|
-
return { dispose:
|
1326
|
-
}, r.disposeArray = l, r.getDisposeArrayDisposable = function(
|
1327
|
-
return { dispose: () => l(
|
1324
|
+
}, r.toDisposable = function(d) {
|
1325
|
+
return { dispose: d };
|
1326
|
+
}, r.disposeArray = l, r.getDisposeArrayDisposable = function(d) {
|
1327
|
+
return { dispose: () => l(d) };
|
1328
1328
|
};
|
1329
1329
|
}, 114: (w, r) => {
|
1330
1330
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.isChromeOS = r.isLinux = r.isWindows = r.isIphone = r.isIpad = r.isMac = r.getSafariVersion = r.isSafari = r.isLegacyEdge = r.isFirefox = r.isNode = void 0, r.isNode = typeof process < "u" && "title" in process;
|
1331
|
-
const l = r.isNode ? "node" : navigator.userAgent,
|
1331
|
+
const l = r.isNode ? "node" : navigator.userAgent, d = r.isNode ? "node" : navigator.platform;
|
1332
1332
|
r.isFirefox = l.includes("Firefox"), r.isLegacyEdge = l.includes("Edge"), r.isSafari = /^((?!chrome|android).)*safari/i.test(l), r.getSafariVersion = function() {
|
1333
1333
|
if (!r.isSafari) return 0;
|
1334
|
-
const
|
1335
|
-
return
|
1336
|
-
}, r.isMac = ["Macintosh", "MacIntel", "MacPPC", "Mac68K"].includes(
|
1334
|
+
const _ = l.match(/Version\/(\d+)/);
|
1335
|
+
return _ === null || _.length < 2 ? 0 : parseInt(_[1]);
|
1336
|
+
}, r.isMac = ["Macintosh", "MacIntel", "MacPPC", "Mac68K"].includes(d), r.isIpad = d === "iPad", r.isIphone = d === "iPhone", r.isWindows = ["Windows", "Win16", "Win32", "WinCE"].includes(d), r.isLinux = d.indexOf("Linux") >= 0, r.isChromeOS = /\bCrOS\b/.test(l);
|
1337
1337
|
}, 226: (w, r, l) => {
|
1338
1338
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.DebouncedIdleTask = r.IdleTaskQueue = r.PriorityTaskQueue = void 0;
|
1339
|
-
const
|
1340
|
-
class
|
1339
|
+
const d = l(114);
|
1340
|
+
class _ {
|
1341
1341
|
constructor() {
|
1342
1342
|
this._tasks = [], this._i = 0;
|
1343
1343
|
}
|
@@ -1364,7 +1364,7 @@ function Ae() {
|
|
1364
1364
|
this.clear();
|
1365
1365
|
}
|
1366
1366
|
}
|
1367
|
-
class n extends
|
1367
|
+
class n extends _ {
|
1368
1368
|
_requestCallback(a) {
|
1369
1369
|
return setTimeout(() => a(this._createDeadline(16)));
|
1370
1370
|
}
|
@@ -1376,7 +1376,7 @@ function Ae() {
|
|
1376
1376
|
return { timeRemaining: () => Math.max(0, h - Date.now()) };
|
1377
1377
|
}
|
1378
1378
|
}
|
1379
|
-
r.PriorityTaskQueue = n, r.IdleTaskQueue = !
|
1379
|
+
r.PriorityTaskQueue = n, r.IdleTaskQueue = !d.isNode && "requestIdleCallback" in window ? class extends _ {
|
1380
1380
|
_requestCallback(c) {
|
1381
1381
|
return requestIdleCallback(c);
|
1382
1382
|
}
|
@@ -1396,16 +1396,16 @@ function Ae() {
|
|
1396
1396
|
};
|
1397
1397
|
}, 282: (w, r, l) => {
|
1398
1398
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.updateWindowsModeWrappedState = void 0;
|
1399
|
-
const
|
1400
|
-
r.updateWindowsModeWrappedState = function(
|
1401
|
-
const n =
|
1402
|
-
a && c && (a.isWrapped = c[
|
1399
|
+
const d = l(643);
|
1400
|
+
r.updateWindowsModeWrappedState = function(_) {
|
1401
|
+
const n = _.buffer.lines.get(_.buffer.ybase + _.buffer.y - 1), c = n?.get(_.cols - 1), a = _.buffer.lines.get(_.buffer.ybase + _.buffer.y);
|
1402
|
+
a && c && (a.isWrapped = c[d.CHAR_DATA_CODE_INDEX] !== d.NULL_CELL_CODE && c[d.CHAR_DATA_CODE_INDEX] !== d.WHITESPACE_CELL_CODE);
|
1403
1403
|
};
|
1404
1404
|
}, 734: (w, r) => {
|
1405
1405
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.ExtendedAttrs = r.AttributeData = void 0;
|
1406
1406
|
class l {
|
1407
1407
|
constructor() {
|
1408
|
-
this.fg = 0, this.bg = 0, this.extended = new
|
1408
|
+
this.fg = 0, this.bg = 0, this.extended = new d();
|
1409
1409
|
}
|
1410
1410
|
static toColorRGB(n) {
|
1411
1411
|
return [n >>> 16 & 255, n >>> 8 & 255, 255 & n];
|
@@ -1534,7 +1534,7 @@ function Ae() {
|
|
1534
1534
|
}
|
1535
1535
|
}
|
1536
1536
|
r.AttributeData = l;
|
1537
|
-
class
|
1537
|
+
class d {
|
1538
1538
|
get ext() {
|
1539
1539
|
return this._urlId ? -469762049 & this._ext | this.underlineStyle << 26 : this._ext;
|
1540
1540
|
}
|
@@ -1570,19 +1570,19 @@ function Ae() {
|
|
1570
1570
|
this._ext = 0, this._urlId = 0, this._ext = n, this._urlId = c;
|
1571
1571
|
}
|
1572
1572
|
clone() {
|
1573
|
-
return new
|
1573
|
+
return new d(this._ext, this._urlId);
|
1574
1574
|
}
|
1575
1575
|
isEmpty() {
|
1576
1576
|
return this.underlineStyle === 0 && this._urlId === 0;
|
1577
1577
|
}
|
1578
1578
|
}
|
1579
|
-
r.ExtendedAttrs =
|
1579
|
+
r.ExtendedAttrs = d;
|
1580
1580
|
}, 92: (w, r, l) => {
|
1581
1581
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.Buffer = r.MAX_BUFFER_SIZE = void 0;
|
1582
|
-
const
|
1582
|
+
const d = l(349), _ = l(226), n = l(734), c = l(437), a = l(634), h = l(511), u = l(643), e = l(863), s = l(116);
|
1583
1583
|
r.MAX_BUFFER_SIZE = 4294967295, r.Buffer = class {
|
1584
1584
|
constructor(i, t, f) {
|
1585
|
-
this._hasScrollback = i, this._optionsService = t, this._bufferService = f, this.ydisp = 0, this.ybase = 0, this.y = 0, this.x = 0, this.tabs = {}, this.savedY = 0, this.savedX = 0, this.savedCurAttrData = c.DEFAULT_ATTR_DATA.clone(), this.savedCharset = s.DEFAULT_CHARSET, this.markers = [], this._nullCell = h.CellData.fromCharData([0, u.NULL_CELL_CHAR, u.NULL_CELL_WIDTH, u.NULL_CELL_CODE]), this._whitespaceCell = h.CellData.fromCharData([0, u.WHITESPACE_CELL_CHAR, u.WHITESPACE_CELL_WIDTH, u.WHITESPACE_CELL_CODE]), this._isClearing = !1, this._memoryCleanupQueue = new
|
1585
|
+
this._hasScrollback = i, this._optionsService = t, this._bufferService = f, this.ydisp = 0, this.ybase = 0, this.y = 0, this.x = 0, this.tabs = {}, this.savedY = 0, this.savedX = 0, this.savedCurAttrData = c.DEFAULT_ATTR_DATA.clone(), this.savedCharset = s.DEFAULT_CHARSET, this.markers = [], this._nullCell = h.CellData.fromCharData([0, u.NULL_CELL_CHAR, u.NULL_CELL_WIDTH, u.NULL_CELL_CODE]), this._whitespaceCell = h.CellData.fromCharData([0, u.WHITESPACE_CELL_CHAR, u.WHITESPACE_CELL_WIDTH, u.WHITESPACE_CELL_CODE]), this._isClearing = !1, this._memoryCleanupQueue = new _.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();
|
1586
1586
|
}
|
1587
1587
|
getNullCell(i) {
|
1588
1588
|
return i ? (this._nullCell.fg = i.fg, this._nullCell.bg = i.bg, this._nullCell.extended = i.extended) : (this._nullCell.fg = 0, this._nullCell.bg = 0, this._nullCell.extended = new n.ExtendedAttrs()), this._nullCell;
|
@@ -1613,7 +1613,7 @@ function Ae() {
|
|
1613
1613
|
}
|
1614
1614
|
}
|
1615
1615
|
clear() {
|
1616
|
-
this.ydisp = 0, this.ybase = 0, this.y = 0, this.x = 0, this.lines = new
|
1616
|
+
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();
|
1617
1617
|
}
|
1618
1618
|
resize(i, t) {
|
1619
1619
|
const f = this.getNullCell(c.DEFAULT_ATTR_DATA);
|
@@ -1760,13 +1760,13 @@ function Ae() {
|
|
1760
1760
|
};
|
1761
1761
|
}, 437: (w, r, l) => {
|
1762
1762
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.BufferLine = r.DEFAULT_ATTR_DATA = void 0;
|
1763
|
-
const
|
1764
|
-
r.DEFAULT_ATTR_DATA = Object.freeze(new
|
1763
|
+
const d = l(734), _ = l(511), n = l(643), c = l(482);
|
1764
|
+
r.DEFAULT_ATTR_DATA = Object.freeze(new d.AttributeData());
|
1765
1765
|
let a = 0;
|
1766
1766
|
class h {
|
1767
1767
|
constructor(e, s, i = !1) {
|
1768
1768
|
this.isWrapped = i, this._combined = {}, this._extendedAttrs = {}, this._data = new Uint32Array(3 * e);
|
1769
|
-
const t = s ||
|
1769
|
+
const t = s || _.CellData.fromCharData([0, n.NULL_CELL_CHAR, n.NULL_CELL_WIDTH, n.NULL_CELL_CODE]);
|
1770
1770
|
for (let f = 0; f < e; ++f) this.setCell(f, t);
|
1771
1771
|
this.length = e;
|
1772
1772
|
}
|
@@ -1821,7 +1821,7 @@ function Ae() {
|
|
1821
1821
|
}
|
1822
1822
|
insertCells(e, s, i) {
|
1823
1823
|
if ((e %= this.length) && this.getWidth(e - 1) === 2 && this.setCellFromCodepoint(e - 1, 0, 1, i), s < this.length - e) {
|
1824
|
-
const t = new
|
1824
|
+
const t = new _.CellData();
|
1825
1825
|
for (let f = this.length - e - s - 1; f >= 0; --f) this.setCell(e + s + f, this.loadCell(e + f, t));
|
1826
1826
|
for (let f = 0; f < s; ++f) this.setCell(e + f, i);
|
1827
1827
|
} else for (let t = e; t < this.length; ++t) this.setCell(t, i);
|
@@ -1829,7 +1829,7 @@ function Ae() {
|
|
1829
1829
|
}
|
1830
1830
|
deleteCells(e, s, i) {
|
1831
1831
|
if (e %= this.length, s < this.length - e) {
|
1832
|
-
const t = new
|
1832
|
+
const t = new _.CellData();
|
1833
1833
|
for (let f = 0; f < this.length - e - s; ++f) this.setCell(e + f, this.loadCell(e + s + f, t));
|
1834
1834
|
for (let f = this.length - s; f < this.length; ++f) this.setCell(f, i);
|
1835
1835
|
} else for (let t = e; t < this.length; ++t) this.setCell(t, i);
|
@@ -1929,25 +1929,25 @@ function Ae() {
|
|
1929
1929
|
}
|
1930
1930
|
r.BufferLine = h;
|
1931
1931
|
}, 634: (w, r) => {
|
1932
|
-
function l(
|
1933
|
-
if (
|
1934
|
-
const c = !_
|
1932
|
+
function l(d, _, n) {
|
1933
|
+
if (_ === d.length - 1) return d[_].getTrimmedLength();
|
1934
|
+
const c = !d[_].hasContent(n - 1) && d[_].getWidth(n - 1) === 1, a = d[_ + 1].getWidth(0) === 2;
|
1935
1935
|
return c && a ? n - 1 : n;
|
1936
1936
|
}
|
1937
|
-
Object.defineProperty(r, "__esModule", { value: !0 }), r.getWrappedLineTrimmedLength = r.reflowSmallerGetNewLineLengths = r.reflowLargerApplyNewLayout = r.reflowLargerCreateNewLayout = r.reflowLargerGetLinesToRemove = void 0, r.reflowLargerGetLinesToRemove = function(
|
1937
|
+
Object.defineProperty(r, "__esModule", { value: !0 }), r.getWrappedLineTrimmedLength = r.reflowSmallerGetNewLineLengths = r.reflowLargerApplyNewLayout = r.reflowLargerCreateNewLayout = r.reflowLargerGetLinesToRemove = void 0, r.reflowLargerGetLinesToRemove = function(d, _, n, c, a) {
|
1938
1938
|
const h = [];
|
1939
|
-
for (let u = 0; u <
|
1940
|
-
let e = u, s =
|
1939
|
+
for (let u = 0; u < d.length - 1; u++) {
|
1940
|
+
let e = u, s = d.get(++e);
|
1941
1941
|
if (!s.isWrapped) continue;
|
1942
|
-
const i = [
|
1943
|
-
for (; e <
|
1942
|
+
const i = [d.get(u)];
|
1943
|
+
for (; e < d.length && s.isWrapped; ) i.push(s), s = d.get(++e);
|
1944
1944
|
if (c >= u && c < e) {
|
1945
1945
|
u += i.length - 1;
|
1946
1946
|
continue;
|
1947
1947
|
}
|
1948
|
-
let t = 0, f = l(i, t,
|
1948
|
+
let t = 0, f = l(i, t, _), p = 1, S = 0;
|
1949
1949
|
for (; p < i.length; ) {
|
1950
|
-
const C = l(i, p,
|
1950
|
+
const C = l(i, p, _), T = C - S, j = n - f, E = Math.min(T, j);
|
1951
1951
|
i[t].copyCellsFrom(i[p], S, f, E, !1), f += E, f === n && (t++, f = 0), S += E, S === C && (p++, S = 0), f === 0 && t !== 0 && i[t - 1].getWidth(n - 1) === 2 && (i[t].copyCellsFrom(i[t - 1], n - 1, f++, 1, !1), i[t - 1].setCell(n - 1, a));
|
1952
1952
|
}
|
1953
1953
|
i[t].replaceCells(f, n, a);
|
@@ -1956,21 +1956,21 @@ function Ae() {
|
|
1956
1956
|
y > 0 && (h.push(u + i.length - y), h.push(y)), u += i.length - 1;
|
1957
1957
|
}
|
1958
1958
|
return h;
|
1959
|
-
}, r.reflowLargerCreateNewLayout = function(
|
1959
|
+
}, r.reflowLargerCreateNewLayout = function(d, _) {
|
1960
1960
|
const n = [];
|
1961
|
-
let c = 0, a =
|
1962
|
-
for (let u = 0; u <
|
1963
|
-
const e =
|
1964
|
-
|
1961
|
+
let c = 0, a = _[c], h = 0;
|
1962
|
+
for (let u = 0; u < d.length; u++) if (a === u) {
|
1963
|
+
const e = _[++c];
|
1964
|
+
d.onDeleteEmitter.fire({ index: u - h, amount: e }), u += e - 1, h += e, a = _[++c];
|
1965
1965
|
} else n.push(u);
|
1966
1966
|
return { layout: n, countRemoved: h };
|
1967
|
-
}, r.reflowLargerApplyNewLayout = function(
|
1967
|
+
}, r.reflowLargerApplyNewLayout = function(d, _) {
|
1968
1968
|
const n = [];
|
1969
|
-
for (let c = 0; c <
|
1970
|
-
for (let c = 0; c < n.length; c++)
|
1971
|
-
|
1972
|
-
}, r.reflowSmallerGetNewLineLengths = function(
|
1973
|
-
const c = [], a =
|
1969
|
+
for (let c = 0; c < _.length; c++) n.push(d.get(_[c]));
|
1970
|
+
for (let c = 0; c < n.length; c++) d.set(c, n[c]);
|
1971
|
+
d.length = _.length;
|
1972
|
+
}, r.reflowSmallerGetNewLineLengths = function(d, _, n) {
|
1973
|
+
const c = [], a = d.map((s, i) => l(d, i, _)).reduce((s, i) => s + i);
|
1974
1974
|
let h = 0, u = 0, e = 0;
|
1975
1975
|
for (; e < a; ) {
|
1976
1976
|
if (a - e < n) {
|
@@ -1978,9 +1978,9 @@ function Ae() {
|
|
1978
1978
|
break;
|
1979
1979
|
}
|
1980
1980
|
h += n;
|
1981
|
-
const s = l(
|
1981
|
+
const s = l(d, u, _);
|
1982
1982
|
h > s && (h -= s, u++);
|
1983
|
-
const i =
|
1983
|
+
const i = d[u].getWidth(h - 1) === 2;
|
1984
1984
|
i && h--;
|
1985
1985
|
const t = i ? n - 1 : n;
|
1986
1986
|
c.push(t), e += t;
|
@@ -1989,10 +1989,10 @@ function Ae() {
|
|
1989
1989
|
}, r.getWrappedLineTrimmedLength = l;
|
1990
1990
|
}, 295: (w, r, l) => {
|
1991
1991
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.BufferSet = void 0;
|
1992
|
-
const
|
1993
|
-
class c extends
|
1992
|
+
const d = l(460), _ = l(844), n = l(92);
|
1993
|
+
class c extends _.Disposable {
|
1994
1994
|
constructor(h, u) {
|
1995
|
-
super(), this._optionsService = h, this._bufferService = u, this._onBufferActivate = this.register(new
|
1995
|
+
super(), this._optionsService = h, this._bufferService = u, 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()));
|
1996
1996
|
}
|
1997
1997
|
reset() {
|
1998
1998
|
this._normal = new n.Buffer(!0, this._optionsService, this._bufferService), this._normal.fillViewportRows(), this._alt = new n.Buffer(!1, this._optionsService, this._bufferService), this._activeBuffer = this._normal, this._onBufferActivate.fire({ activeBuffer: this._normal, inactiveBuffer: this._alt }), this.setupTabStops();
|
@@ -2022,7 +2022,7 @@ function Ae() {
|
|
2022
2022
|
r.BufferSet = c;
|
2023
2023
|
}, 511: (w, r, l) => {
|
2024
2024
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.CellData = void 0;
|
2025
|
-
const
|
2025
|
+
const d = l(482), _ = l(643), n = l(734);
|
2026
2026
|
class c extends n.AttributeData {
|
2027
2027
|
constructor() {
|
2028
2028
|
super(...arguments), this.content = 0, this.fg = 0, this.bg = 0, this.extended = new n.ExtendedAttrs(), this.combinedData = "";
|
@@ -2038,23 +2038,23 @@ function Ae() {
|
|
2038
2038
|
return this.content >> 22;
|
2039
2039
|
}
|
2040
2040
|
getChars() {
|
2041
|
-
return 2097152 & this.content ? this.combinedData : 2097151 & this.content ? (0,
|
2041
|
+
return 2097152 & this.content ? this.combinedData : 2097151 & this.content ? (0, d.stringFromCodePoint)(2097151 & this.content) : "";
|
2042
2042
|
}
|
2043
2043
|
getCode() {
|
2044
2044
|
return this.isCombined() ? this.combinedData.charCodeAt(this.combinedData.length - 1) : 2097151 & this.content;
|
2045
2045
|
}
|
2046
2046
|
setFromCharData(h) {
|
2047
|
-
this.fg = h[
|
2047
|
+
this.fg = h[_.CHAR_DATA_ATTR_INDEX], this.bg = 0;
|
2048
2048
|
let u = !1;
|
2049
|
-
if (h[
|
2050
|
-
else if (h[
|
2051
|
-
const e = h[
|
2049
|
+
if (h[_.CHAR_DATA_CHAR_INDEX].length > 2) u = !0;
|
2050
|
+
else if (h[_.CHAR_DATA_CHAR_INDEX].length === 2) {
|
2051
|
+
const e = h[_.CHAR_DATA_CHAR_INDEX].charCodeAt(0);
|
2052
2052
|
if (55296 <= e && e <= 56319) {
|
2053
|
-
const s = h[
|
2054
|
-
56320 <= s && s <= 57343 ? this.content = 1024 * (e - 55296) + s - 56320 + 65536 | h[
|
2053
|
+
const s = h[_.CHAR_DATA_CHAR_INDEX].charCodeAt(1);
|
2054
|
+
56320 <= s && s <= 57343 ? this.content = 1024 * (e - 55296) + s - 56320 + 65536 | h[_.CHAR_DATA_WIDTH_INDEX] << 22 : u = !0;
|
2055
2055
|
} else u = !0;
|
2056
|
-
} else this.content = h[
|
2057
|
-
u && (this.combinedData = h[
|
2056
|
+
} else this.content = h[_.CHAR_DATA_CHAR_INDEX].charCodeAt(0) | h[_.CHAR_DATA_WIDTH_INDEX] << 22;
|
2057
|
+
u && (this.combinedData = h[_.CHAR_DATA_CHAR_INDEX], this.content = 2097152 | h[_.CHAR_DATA_WIDTH_INDEX] << 22);
|
2058
2058
|
}
|
2059
2059
|
getAsCharData() {
|
2060
2060
|
return [this.fg, this.getChars(), this.getWidth(), this.getCode()];
|
@@ -2065,16 +2065,16 @@ function Ae() {
|
|
2065
2065
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.WHITESPACE_CELL_CODE = r.WHITESPACE_CELL_WIDTH = r.WHITESPACE_CELL_CHAR = r.NULL_CELL_CODE = r.NULL_CELL_WIDTH = r.NULL_CELL_CHAR = r.CHAR_DATA_CODE_INDEX = r.CHAR_DATA_WIDTH_INDEX = r.CHAR_DATA_CHAR_INDEX = r.CHAR_DATA_ATTR_INDEX = r.DEFAULT_EXT = r.DEFAULT_ATTR = r.DEFAULT_COLOR = void 0, r.DEFAULT_COLOR = 0, r.DEFAULT_ATTR = 256 | r.DEFAULT_COLOR << 9, r.DEFAULT_EXT = 0, r.CHAR_DATA_ATTR_INDEX = 0, r.CHAR_DATA_CHAR_INDEX = 1, r.CHAR_DATA_WIDTH_INDEX = 2, r.CHAR_DATA_CODE_INDEX = 3, r.NULL_CELL_CHAR = "", r.NULL_CELL_WIDTH = 1, r.NULL_CELL_CODE = 0, r.WHITESPACE_CELL_CHAR = " ", r.WHITESPACE_CELL_WIDTH = 1, r.WHITESPACE_CELL_CODE = 32;
|
2066
2066
|
}, 863: (w, r, l) => {
|
2067
2067
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.Marker = void 0;
|
2068
|
-
const
|
2068
|
+
const d = l(460), _ = l(844);
|
2069
2069
|
class n {
|
2070
2070
|
get id() {
|
2071
2071
|
return this._id;
|
2072
2072
|
}
|
2073
2073
|
constructor(a) {
|
2074
|
-
this.line = a, this.isDisposed = !1, this._disposables = [], this._id = n._nextId++, this._onDispose = this.register(new
|
2074
|
+
this.line = a, this.isDisposed = !1, this._disposables = [], this._id = n._nextId++, this._onDispose = this.register(new d.EventEmitter()), this.onDispose = this._onDispose.event;
|
2075
2075
|
}
|
2076
2076
|
dispose() {
|
2077
|
-
this.isDisposed || (this.isDisposed = !0, this.line = -1, this._onDispose.fire(), (0,
|
2077
|
+
this.isDisposed || (this.isDisposed = !0, this.line = -1, this._onDispose.fire(), (0, _.disposeArray)(this._disposables), this._disposables.length = 0);
|
2078
2078
|
}
|
2079
2079
|
register(a) {
|
2080
2080
|
return this._disposables.push(a), a;
|
@@ -2084,21 +2084,21 @@ function Ae() {
|
|
2084
2084
|
}, 116: (w, r) => {
|
2085
2085
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.DEFAULT_CHARSET = r.CHARSETS = void 0, r.CHARSETS = {}, r.DEFAULT_CHARSET = r.CHARSETS.B, r.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: "≥", "{": "π", "|": "≠", "}": "£", "~": "·" }, r.CHARSETS.A = { "#": "£" }, r.CHARSETS.B = void 0, r.CHARSETS[4] = { "#": "£", "@": "¾", "[": "ij", "\\": "½", "]": "|", "{": "¨", "|": "f", "}": "¼", "~": "´" }, r.CHARSETS.C = r.CHARSETS[5] = { "[": "Ä", "\\": "Ö", "]": "Å", "^": "Ü", "`": "é", "{": "ä", "|": "ö", "}": "å", "~": "ü" }, r.CHARSETS.R = { "#": "£", "@": "à", "[": "°", "\\": "ç", "]": "§", "{": "é", "|": "ù", "}": "è", "~": "¨" }, r.CHARSETS.Q = { "@": "à", "[": "â", "\\": "ç", "]": "ê", "^": "î", "`": "ô", "{": "é", "|": "ù", "}": "è", "~": "û" }, r.CHARSETS.K = { "@": "§", "[": "Ä", "\\": "Ö", "]": "Ü", "{": "ä", "|": "ö", "}": "ü", "~": "ß" }, r.CHARSETS.Y = { "#": "£", "@": "§", "[": "°", "\\": "ç", "]": "é", "`": "ù", "{": "à", "|": "ò", "}": "è", "~": "ì" }, r.CHARSETS.E = r.CHARSETS[6] = { "@": "Ä", "[": "Æ", "\\": "Ø", "]": "Å", "^": "Ü", "`": "ä", "{": "æ", "|": "ø", "}": "å", "~": "ü" }, r.CHARSETS.Z = { "#": "£", "@": "§", "[": "¡", "\\": "Ñ", "]": "¿", "{": "°", "|": "ñ", "}": "ç" }, r.CHARSETS.H = r.CHARSETS[7] = { "@": "É", "[": "Ä", "\\": "Ö", "]": "Å", "^": "Ü", "`": "é", "{": "ä", "|": "ö", "}": "å", "~": "ü" }, r.CHARSETS["="] = { "#": "ù", "@": "à", "[": "é", "\\": "ç", "]": "ê", "^": "î", _: "è", "`": "ô", "{": "ä", "|": "ö", "}": "ü", "~": "û" };
|
2086
2086
|
}, 584: (w, r) => {
|
2087
|
-
var l,
|
2087
|
+
var l, d, _;
|
2088
2088
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.C1_ESCAPED = r.C1 = r.C0 = void 0, function(n) {
|
2089
2089
|
n.NUL = "\0", n.SOH = "", n.STX = "", n.ETX = "", n.EOT = "", n.ENQ = "", n.ACK = "", n.BEL = "\x07", n.BS = "\b", n.HT = " ", n.LF = `
|
2090
2090
|
`, n.VT = "\v", n.FF = "\f", n.CR = "\r", n.SO = "", n.SI = "", n.DLE = "", n.DC1 = "", n.DC2 = "", n.DC3 = "", n.DC4 = "", n.NAK = "", n.SYN = "", n.ETB = "", n.CAN = "", n.EM = "", n.SUB = "", n.ESC = "\x1B", n.FS = "", n.GS = "", n.RS = "", n.US = "", n.SP = " ", n.DEL = "";
|
2091
2091
|
}(l || (r.C0 = l = {})), function(n) {
|
2092
2092
|
n.PAD = "", n.HOP = "", n.BPH = "", n.NBH = "", n.IND = "", n.NEL = "
", n.SSA = "", n.ESA = "", n.HTS = "", n.HTJ = "", n.VTS = "", n.PLD = "", n.PLU = "", n.RI = "", n.SS2 = "", n.SS3 = "", n.DCS = "", n.PU1 = "", n.PU2 = "", n.STS = "", n.CCH = "", n.MW = "", n.SPA = "", n.EPA = "", n.SOS = "", n.SGCI = "", n.SCI = "", n.CSI = "", n.ST = "", n.OSC = "", n.PM = "", n.APC = "";
|
2093
|
-
}(
|
2093
|
+
}(d || (r.C1 = d = {})), function(n) {
|
2094
2094
|
n.ST = `${l.ESC}\\`;
|
2095
|
-
}(
|
2095
|
+
}(_ || (r.C1_ESCAPED = _ = {}));
|
2096
2096
|
}, 482: (w, r) => {
|
2097
2097
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.Utf8ToUtf32 = r.StringToUtf32 = r.utf32ToString = r.stringFromCodePoint = void 0, r.stringFromCodePoint = function(l) {
|
2098
2098
|
return l > 65535 ? (l -= 65536, String.fromCharCode(55296 + (l >> 10)) + String.fromCharCode(l % 1024 + 56320)) : String.fromCharCode(l);
|
2099
|
-
}, r.utf32ToString = function(l,
|
2099
|
+
}, r.utf32ToString = function(l, d = 0, _ = l.length) {
|
2100
2100
|
let n = "";
|
2101
|
-
for (let c =
|
2101
|
+
for (let c = d; c < _; ++c) {
|
2102
2102
|
let a = l[c];
|
2103
2103
|
a > 65535 ? (a -= 65536, n += String.fromCharCode(55296 + (a >> 10)) + String.fromCharCode(a % 1024 + 56320)) : n += String.fromCharCode(a);
|
2104
2104
|
}
|
@@ -2110,21 +2110,21 @@ function Ae() {
|
|
2110
2110
|
clear() {
|
2111
2111
|
this._interim = 0;
|
2112
2112
|
}
|
2113
|
-
decode(l,
|
2114
|
-
const
|
2115
|
-
if (!
|
2113
|
+
decode(l, d) {
|
2114
|
+
const _ = l.length;
|
2115
|
+
if (!_) return 0;
|
2116
2116
|
let n = 0, c = 0;
|
2117
2117
|
if (this._interim) {
|
2118
2118
|
const a = l.charCodeAt(c++);
|
2119
|
-
56320 <= a && a <= 57343 ?
|
2119
|
+
56320 <= a && a <= 57343 ? d[n++] = 1024 * (this._interim - 55296) + a - 56320 + 65536 : (d[n++] = this._interim, d[n++] = a), this._interim = 0;
|
2120
2120
|
}
|
2121
|
-
for (let a = c; a <
|
2121
|
+
for (let a = c; a < _; ++a) {
|
2122
2122
|
const h = l.charCodeAt(a);
|
2123
2123
|
if (55296 <= h && h <= 56319) {
|
2124
|
-
if (++a >=
|
2124
|
+
if (++a >= _) return this._interim = h, n;
|
2125
2125
|
const u = l.charCodeAt(a);
|
2126
|
-
56320 <= u && u <= 57343 ?
|
2127
|
-
} else h !== 65279 && (
|
2126
|
+
56320 <= u && u <= 57343 ? d[n++] = 1024 * (h - 55296) + u - 56320 + 65536 : (d[n++] = h, d[n++] = u);
|
2127
|
+
} else h !== 65279 && (d[n++] = h);
|
2128
2128
|
}
|
2129
2129
|
return n;
|
2130
2130
|
}
|
@@ -2135,9 +2135,9 @@ function Ae() {
|
|
2135
2135
|
clear() {
|
2136
2136
|
this.interim.fill(0);
|
2137
2137
|
}
|
2138
|
-
decode(l,
|
2139
|
-
const
|
2140
|
-
if (!
|
2138
|
+
decode(l, d) {
|
2139
|
+
const _ = l.length;
|
2140
|
+
if (!_) return 0;
|
2141
2141
|
let n, c, a, h, u = 0, e = 0, s = 0;
|
2142
2142
|
if (this.interim[0]) {
|
2143
2143
|
let f = !1, p = this.interim[0];
|
@@ -2146,22 +2146,22 @@ function Ae() {
|
|
2146
2146
|
for (; (S = 63 & this.interim[++y]) && y < 4; ) p <<= 6, p |= S;
|
2147
2147
|
const C = (224 & this.interim[0]) == 192 ? 2 : (240 & this.interim[0]) == 224 ? 3 : 4, T = C - y;
|
2148
2148
|
for (; s < T; ) {
|
2149
|
-
if (s >=
|
2149
|
+
if (s >= _) return 0;
|
2150
2150
|
if (S = l[s++], (192 & S) != 128) {
|
2151
2151
|
s--, f = !0;
|
2152
2152
|
break;
|
2153
2153
|
}
|
2154
2154
|
this.interim[y++] = S, p <<= 6, p |= 63 & S;
|
2155
2155
|
}
|
2156
|
-
f || (C === 2 ? p < 128 ? s-- :
|
2156
|
+
f || (C === 2 ? p < 128 ? s-- : d[u++] = p : C === 3 ? p < 2048 || p >= 55296 && p <= 57343 || p === 65279 || (d[u++] = p) : p < 65536 || p > 1114111 || (d[u++] = p)), this.interim.fill(0);
|
2157
2157
|
}
|
2158
|
-
const i =
|
2158
|
+
const i = _ - 4;
|
2159
2159
|
let t = s;
|
2160
|
-
for (; t <
|
2161
|
-
for (; !(!(t < i) || 128 & (n = l[t]) || 128 & (c = l[t + 1]) || 128 & (a = l[t + 2]) || 128 & (h = l[t + 3])); )
|
2162
|
-
if (n = l[t++], n < 128)
|
2160
|
+
for (; t < _; ) {
|
2161
|
+
for (; !(!(t < i) || 128 & (n = l[t]) || 128 & (c = l[t + 1]) || 128 & (a = l[t + 2]) || 128 & (h = l[t + 3])); ) d[u++] = n, d[u++] = c, d[u++] = a, d[u++] = h, t += 4;
|
2162
|
+
if (n = l[t++], n < 128) d[u++] = n;
|
2163
2163
|
else if ((224 & n) == 192) {
|
2164
|
-
if (t >=
|
2164
|
+
if (t >= _) return this.interim[0] = n, u;
|
2165
2165
|
if (c = l[t++], (192 & c) != 128) {
|
2166
2166
|
t--;
|
2167
2167
|
continue;
|
@@ -2170,38 +2170,38 @@ function Ae() {
|
|
2170
2170
|
t--;
|
2171
2171
|
continue;
|
2172
2172
|
}
|
2173
|
-
|
2173
|
+
d[u++] = e;
|
2174
2174
|
} else if ((240 & n) == 224) {
|
2175
|
-
if (t >=
|
2175
|
+
if (t >= _) return this.interim[0] = n, u;
|
2176
2176
|
if (c = l[t++], (192 & c) != 128) {
|
2177
2177
|
t--;
|
2178
2178
|
continue;
|
2179
2179
|
}
|
2180
|
-
if (t >=
|
2180
|
+
if (t >= _) return this.interim[0] = n, this.interim[1] = c, u;
|
2181
2181
|
if (a = l[t++], (192 & a) != 128) {
|
2182
2182
|
t--;
|
2183
2183
|
continue;
|
2184
2184
|
}
|
2185
2185
|
if (e = (15 & n) << 12 | (63 & c) << 6 | 63 & a, e < 2048 || e >= 55296 && e <= 57343 || e === 65279) continue;
|
2186
|
-
|
2186
|
+
d[u++] = e;
|
2187
2187
|
} else if ((248 & n) == 240) {
|
2188
|
-
if (t >=
|
2188
|
+
if (t >= _) return this.interim[0] = n, u;
|
2189
2189
|
if (c = l[t++], (192 & c) != 128) {
|
2190
2190
|
t--;
|
2191
2191
|
continue;
|
2192
2192
|
}
|
2193
|
-
if (t >=
|
2193
|
+
if (t >= _) return this.interim[0] = n, this.interim[1] = c, u;
|
2194
2194
|
if (a = l[t++], (192 & a) != 128) {
|
2195
2195
|
t--;
|
2196
2196
|
continue;
|
2197
2197
|
}
|
2198
|
-
if (t >=
|
2198
|
+
if (t >= _) return this.interim[0] = n, this.interim[1] = c, this.interim[2] = a, u;
|
2199
2199
|
if (h = l[t++], (192 & h) != 128) {
|
2200
2200
|
t--;
|
2201
2201
|
continue;
|
2202
2202
|
}
|
2203
2203
|
if (e = (7 & n) << 18 | (63 & c) << 12 | (63 & a) << 6 | 63 & h, e < 65536 || e > 1114111) continue;
|
2204
|
-
|
2204
|
+
d[u++] = e;
|
2205
2205
|
}
|
2206
2206
|
}
|
2207
2207
|
return u;
|
@@ -2209,13 +2209,13 @@ function Ae() {
|
|
2209
2209
|
};
|
2210
2210
|
}, 225: (w, r, l) => {
|
2211
2211
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.UnicodeV6 = void 0;
|
2212
|
-
const
|
2212
|
+
const d = l(480), _ = [[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]], n = [[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]];
|
2213
2213
|
let c;
|
2214
2214
|
r.UnicodeV6 = class {
|
2215
2215
|
constructor() {
|
2216
2216
|
if (this.version = "6", !c) {
|
2217
2217
|
c = new Uint8Array(65536), c.fill(1), c[0] = 0, c.fill(0, 1, 32), c.fill(0, 127, 160), c.fill(2, 4352, 4448), c[9001] = 2, c[9002] = 2, c.fill(2, 11904, 42192), c[12351] = 1, c.fill(2, 44032, 55204), c.fill(2, 63744, 64256), c.fill(2, 65040, 65050), c.fill(2, 65072, 65136), c.fill(2, 65280, 65377), c.fill(2, 65504, 65511);
|
2218
|
-
for (let a = 0; a <
|
2218
|
+
for (let a = 0; a < _.length; ++a) c.fill(0, _[a][0], _[a][1] + 1);
|
2219
2219
|
}
|
2220
2220
|
}
|
2221
2221
|
wcwidth(a) {
|
@@ -2233,18 +2233,18 @@ function Ae() {
|
|
2233
2233
|
charProperties(a, h) {
|
2234
2234
|
let u = this.wcwidth(a), e = u === 0 && h !== 0;
|
2235
2235
|
if (e) {
|
2236
|
-
const s =
|
2236
|
+
const s = d.UnicodeService.extractWidth(h);
|
2237
2237
|
s === 0 ? e = !1 : s > u && (u = s);
|
2238
2238
|
}
|
2239
|
-
return
|
2239
|
+
return d.UnicodeService.createPropertyValue(0, u, e);
|
2240
2240
|
}
|
2241
2241
|
};
|
2242
2242
|
}, 981: (w, r, l) => {
|
2243
2243
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.WriteBuffer = void 0;
|
2244
|
-
const
|
2245
|
-
class n extends
|
2244
|
+
const d = l(460), _ = l(844);
|
2245
|
+
class n extends _.Disposable {
|
2246
2246
|
constructor(a) {
|
2247
|
-
super(), this._action = a, this._writeBuffer = [], this._callbacks = [], this._pendingData = 0, this._bufferOffset = 0, this._isSyncWriting = !1, this._syncCalls = 0, this._didUserInput = !1, this._onWriteParsed = this.register(new
|
2247
|
+
super(), this._action = a, 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;
|
2248
2248
|
}
|
2249
2249
|
handleUserInput() {
|
2250
2250
|
this._didUserInput = !0;
|
@@ -2287,8 +2287,8 @@ function Ae() {
|
|
2287
2287
|
r.WriteBuffer = n;
|
2288
2288
|
}, 941: (w, r) => {
|
2289
2289
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.toRgbString = r.parseColor = void 0;
|
2290
|
-
const l = /^([\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})$/,
|
2291
|
-
function
|
2290
|
+
const l = /^([\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]+$/;
|
2291
|
+
function _(n, c) {
|
2292
2292
|
const a = n.toString(16), h = a.length < 2 ? "0" + a : a;
|
2293
2293
|
switch (c) {
|
2294
2294
|
case 4:
|
@@ -2311,7 +2311,7 @@ function Ae() {
|
|
2311
2311
|
const h = a[1] ? 15 : a[4] ? 255 : a[7] ? 4095 : 65535;
|
2312
2312
|
return [Math.round(parseInt(a[1] || a[4] || a[7] || a[10], 16) / h * 255), Math.round(parseInt(a[2] || a[5] || a[8] || a[11], 16) / h * 255), Math.round(parseInt(a[3] || a[6] || a[9] || a[12], 16) / h * 255)];
|
2313
2313
|
}
|
2314
|
-
} else if (c.indexOf("#") === 0 && (c = c.slice(1),
|
2314
|
+
} else if (c.indexOf("#") === 0 && (c = c.slice(1), d.exec(c) && [3, 6, 9, 12].includes(c.length))) {
|
2315
2315
|
const a = c.length / 3, h = [0, 0, 0];
|
2316
2316
|
for (let u = 0; u < 3; ++u) {
|
2317
2317
|
const e = parseInt(c.slice(a * u, a * u + a), 16);
|
@@ -2321,13 +2321,13 @@ function Ae() {
|
|
2321
2321
|
}
|
2322
2322
|
}, r.toRgbString = function(n, c = 16) {
|
2323
2323
|
const [a, h, u] = n;
|
2324
|
-
return `rgb:${
|
2324
|
+
return `rgb:${_(a, c)}/${_(h, c)}/${_(u, c)}`;
|
2325
2325
|
};
|
2326
2326
|
}, 770: (w, r) => {
|
2327
2327
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.PAYLOAD_LIMIT = void 0, r.PAYLOAD_LIMIT = 1e7;
|
2328
2328
|
}, 351: (w, r, l) => {
|
2329
2329
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.DcsHandler = r.DcsParser = void 0;
|
2330
|
-
const
|
2330
|
+
const d = l(482), _ = l(742), n = l(770), c = [];
|
2331
2331
|
r.DcsParser = class {
|
2332
2332
|
constructor() {
|
2333
2333
|
this._handlers = /* @__PURE__ */ Object.create(null), this._active = c, this._ident = 0, this._handlerFb = () => {
|
@@ -2361,7 +2361,7 @@ function Ae() {
|
|
2361
2361
|
}
|
2362
2362
|
put(h, u, e) {
|
2363
2363
|
if (this._active.length) for (let s = this._active.length - 1; s >= 0; s--) this._active[s].put(h, u, e);
|
2364
|
-
else this._handlerFb(this._ident, "PUT", (0,
|
2364
|
+
else this._handlerFb(this._ident, "PUT", (0, d.utf32ToString)(h, u, e));
|
2365
2365
|
}
|
2366
2366
|
unhook(h, u = !0) {
|
2367
2367
|
if (this._active.length) {
|
@@ -2375,7 +2375,7 @@ function Ae() {
|
|
2375
2375
|
this._active = c, this._ident = 0;
|
2376
2376
|
}
|
2377
2377
|
};
|
2378
|
-
const a = new
|
2378
|
+
const a = new _.Params();
|
2379
2379
|
a.addParam(0), r.DcsHandler = class {
|
2380
2380
|
constructor(h) {
|
2381
2381
|
this._handler = h, this._data = "", this._params = a, this._hitLimit = !1;
|
@@ -2384,7 +2384,7 @@ function Ae() {
|
|
2384
2384
|
this._params = h.length > 1 || h.params[0] ? h.clone() : a, this._data = "", this._hitLimit = !1;
|
2385
2385
|
}
|
2386
2386
|
put(h, u, e) {
|
2387
|
-
this._hitLimit || (this._data += (0,
|
2387
|
+
this._hitLimit || (this._data += (0, d.utf32ToString)(h, u, e), this._data.length > n.PAYLOAD_LIMIT && (this._data = "", this._hitLimit = !0));
|
2388
2388
|
}
|
2389
2389
|
unhook(h) {
|
2390
2390
|
let u = !1;
|
@@ -2395,7 +2395,7 @@ function Ae() {
|
|
2395
2395
|
};
|
2396
2396
|
}, 15: (w, r, l) => {
|
2397
2397
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.EscapeSequenceParser = r.VT500_TRANSITION_TABLE = r.TransitionTable = void 0;
|
2398
|
-
const
|
2398
|
+
const d = l(844), _ = l(742), n = l(242), c = l(351);
|
2399
2399
|
class a {
|
2400
2400
|
constructor(s) {
|
2401
2401
|
this.table = new Uint8Array(s);
|
@@ -2420,13 +2420,13 @@ function Ae() {
|
|
2420
2420
|
for (S in e.setDefault(1, 0), e.addMany(t, 0, 2, 0), p) e.addMany([24, 26, 153, 154], S, 3, 0), e.addMany(i(128, 144), S, 3, 0), e.addMany(i(144, 152), S, 3, 0), e.add(156, S, 0, 0), e.add(27, S, 11, 1), e.add(157, S, 4, 8), e.addMany([152, 158, 159], S, 0, 7), e.add(155, S, 11, 3), e.add(144, S, 11, 9);
|
2421
2421
|
return e.addMany(f, 0, 3, 0), e.addMany(f, 1, 3, 1), e.add(127, 1, 0, 1), e.addMany(f, 8, 0, 8), e.addMany(f, 3, 3, 3), e.add(127, 3, 0, 3), e.addMany(f, 4, 3, 4), e.add(127, 4, 0, 4), e.addMany(f, 6, 3, 6), e.addMany(f, 5, 3, 5), e.add(127, 5, 0, 5), e.addMany(f, 2, 3, 2), e.add(127, 2, 0, 2), e.add(93, 1, 4, 8), e.addMany(t, 8, 5, 8), e.add(127, 8, 5, 8), e.addMany([156, 27, 24, 26, 7], 8, 6, 0), e.addMany(i(28, 32), 8, 0, 8), e.addMany([88, 94, 95], 1, 0, 7), e.addMany(t, 7, 0, 7), e.addMany(f, 7, 0, 7), e.add(156, 7, 0, 0), e.add(127, 7, 0, 7), e.add(91, 1, 11, 3), e.addMany(i(64, 127), 3, 7, 0), e.addMany(i(48, 60), 3, 8, 4), e.addMany([60, 61, 62, 63], 3, 9, 4), e.addMany(i(48, 60), 4, 8, 4), e.addMany(i(64, 127), 4, 7, 0), e.addMany([60, 61, 62, 63], 4, 0, 6), e.addMany(i(32, 64), 6, 0, 6), e.add(127, 6, 0, 6), e.addMany(i(64, 127), 6, 0, 0), e.addMany(i(32, 48), 3, 9, 5), e.addMany(i(32, 48), 5, 9, 5), e.addMany(i(48, 64), 5, 0, 6), e.addMany(i(64, 127), 5, 7, 0), e.addMany(i(32, 48), 4, 9, 5), e.addMany(i(32, 48), 1, 9, 2), e.addMany(i(32, 48), 2, 9, 2), e.addMany(i(48, 127), 2, 10, 0), e.addMany(i(48, 80), 1, 10, 0), e.addMany(i(81, 88), 1, 10, 0), e.addMany([89, 90, 92], 1, 10, 0), e.addMany(i(96, 127), 1, 10, 0), e.add(80, 1, 11, 9), e.addMany(f, 9, 0, 9), e.add(127, 9, 0, 9), e.addMany(i(28, 32), 9, 0, 9), e.addMany(i(32, 48), 9, 9, 12), e.addMany(i(48, 60), 9, 8, 10), e.addMany([60, 61, 62, 63], 9, 9, 10), e.addMany(f, 11, 0, 11), e.addMany(i(32, 128), 11, 0, 11), e.addMany(i(28, 32), 11, 0, 11), e.addMany(f, 10, 0, 10), e.add(127, 10, 0, 10), e.addMany(i(28, 32), 10, 0, 10), e.addMany(i(48, 60), 10, 8, 10), e.addMany([60, 61, 62, 63], 10, 0, 11), e.addMany(i(32, 48), 10, 9, 12), e.addMany(f, 12, 0, 12), e.add(127, 12, 0, 12), e.addMany(i(28, 32), 12, 0, 12), e.addMany(i(32, 48), 12, 9, 12), e.addMany(i(48, 64), 12, 0, 11), e.addMany(i(64, 127), 12, 12, 13), e.addMany(i(64, 127), 10, 12, 13), e.addMany(i(64, 127), 9, 12, 13), e.addMany(f, 13, 13, 13), e.addMany(t, 13, 13, 13), e.add(127, 13, 0, 13), e.addMany([27, 156, 24, 26], 13, 14, 0), e.add(h, 0, 2, 0), e.add(h, 8, 5, 8), e.add(h, 6, 0, 6), e.add(h, 11, 0, 11), e.add(h, 13, 13, 13), e;
|
2422
2422
|
}();
|
2423
|
-
class u extends
|
2423
|
+
class u extends d.Disposable {
|
2424
2424
|
constructor(s = r.VT500_TRANSITION_TABLE) {
|
2425
|
-
super(), this._transitions = s, this._parseStack = { state: 0, handlers: [], handlerPos: 0, transition: 0, chunkPos: 0 }, this.initialState = 0, this.currentState = this.initialState, this._params = new
|
2425
|
+
super(), this._transitions = s, this._parseStack = { state: 0, handlers: [], handlerPos: 0, transition: 0, chunkPos: 0 }, this.initialState = 0, this.currentState = this.initialState, this._params = new _.Params(), this._params.addParam(0), this._collect = 0, this.precedingJoinState = 0, this._printHandlerFb = (i, t, f) => {
|
2426
2426
|
}, this._executeHandlerFb = (i) => {
|
2427
2427
|
}, this._csiHandlerFb = (i, t) => {
|
2428
2428
|
}, this._escHandlerFb = (i) => {
|
2429
|
-
}, this._errorHandlerFb = (i) => i, this._printHandler = this._printHandlerFb, this._executeHandlers = /* @__PURE__ */ Object.create(null), this._csiHandlers = /* @__PURE__ */ Object.create(null), this._escHandlers = /* @__PURE__ */ Object.create(null), this.register((0,
|
2429
|
+
}, this._errorHandlerFb = (i) => i, this._printHandler = this._printHandlerFb, this._executeHandlers = /* @__PURE__ */ Object.create(null), this._csiHandlers = /* @__PURE__ */ Object.create(null), this._escHandlers = /* @__PURE__ */ Object.create(null), this.register((0, d.toDisposable)(() => {
|
2430
2430
|
this._csiHandlers = /* @__PURE__ */ Object.create(null), this._executeHandlers = /* @__PURE__ */ Object.create(null), this._escHandlers = /* @__PURE__ */ Object.create(null);
|
2431
2431
|
})), this._oscParser = this.register(new n.OscParser()), this._dcsParser = this.register(new c.DcsParser()), this._errorHandler = this._errorHandlerFb, this.registerEscHandler({ final: "\\" }, () => !0);
|
2432
2432
|
}
|
@@ -2655,7 +2655,7 @@ function Ae() {
|
|
2655
2655
|
r.EscapeSequenceParser = u;
|
2656
2656
|
}, 242: (w, r, l) => {
|
2657
2657
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.OscHandler = r.OscParser = void 0;
|
2658
|
-
const
|
2658
|
+
const d = l(770), _ = l(482), n = [];
|
2659
2659
|
r.OscParser = class {
|
2660
2660
|
constructor() {
|
2661
2661
|
this._state = 0, this._active = n, this._id = -1, this._handlers = /* @__PURE__ */ Object.create(null), this._handlerFb = () => {
|
@@ -2689,7 +2689,7 @@ function Ae() {
|
|
2689
2689
|
}
|
2690
2690
|
_put(c, a, h) {
|
2691
2691
|
if (this._active.length) for (let u = this._active.length - 1; u >= 0; u--) this._active[u].put(c, a, h);
|
2692
|
-
else this._handlerFb(this._id, "PUT", (0,
|
2692
|
+
else this._handlerFb(this._id, "PUT", (0, _.utf32ToString)(c, a, h));
|
2693
2693
|
}
|
2694
2694
|
start() {
|
2695
2695
|
this.reset(), this._state = 1;
|
@@ -2729,7 +2729,7 @@ function Ae() {
|
|
2729
2729
|
this._data = "", this._hitLimit = !1;
|
2730
2730
|
}
|
2731
2731
|
put(c, a, h) {
|
2732
|
-
this._hitLimit || (this._data += (0,
|
2732
|
+
this._hitLimit || (this._data += (0, _.utf32ToString)(c, a, h), this._data.length > d.PAYLOAD_LIMIT && (this._data = "", this._hitLimit = !0));
|
2733
2733
|
}
|
2734
2734
|
end(c) {
|
2735
2735
|
let a = !1;
|
@@ -2741,9 +2741,9 @@ function Ae() {
|
|
2741
2741
|
}, 742: (w, r) => {
|
2742
2742
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.Params = void 0;
|
2743
2743
|
const l = 2147483647;
|
2744
|
-
class
|
2744
|
+
class d {
|
2745
2745
|
static fromArray(n) {
|
2746
|
-
const c = new
|
2746
|
+
const c = new d();
|
2747
2747
|
if (!n.length) return c;
|
2748
2748
|
for (let a = Array.isArray(n[0]) ? 1 : 0; a < n.length; ++a) {
|
2749
2749
|
const h = n[a];
|
@@ -2757,7 +2757,7 @@ function Ae() {
|
|
2757
2757
|
this.params = new Int32Array(n), this.length = 0, this._subParams = new Int32Array(c), this._subParamsLength = 0, this._subParamsIdx = new Uint16Array(n), this._rejectDigits = !1, this._rejectSubDigits = !1, this._digitIsSub = !1;
|
2758
2758
|
}
|
2759
2759
|
clone() {
|
2760
|
-
const n = new
|
2760
|
+
const n = new d(this.maxLength, this.maxSubParamsLength);
|
2761
2761
|
return n.params.set(this.params), n.length = this.length, n._subParams.set(this._subParams), n._subParamsLength = this._subParamsLength, n._subParamsIdx.set(this._subParamsIdx), n._rejectDigits = this._rejectDigits, n._rejectSubDigits = this._rejectSubDigits, n._digitIsSub = this._digitIsSub, n;
|
2762
2762
|
}
|
2763
2763
|
toArray() {
|
@@ -2808,7 +2808,7 @@ function Ae() {
|
|
2808
2808
|
a[c - 1] = ~h ? Math.min(10 * h + n, l) : n;
|
2809
2809
|
}
|
2810
2810
|
}
|
2811
|
-
r.Params =
|
2811
|
+
r.Params = d;
|
2812
2812
|
}, 741: (w, r) => {
|
2813
2813
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.AddonManager = void 0, r.AddonManager = class {
|
2814
2814
|
constructor() {
|
@@ -2817,24 +2817,24 @@ function Ae() {
|
|
2817
2817
|
dispose() {
|
2818
2818
|
for (let l = this._addons.length - 1; l >= 0; l--) this._addons[l].instance.dispose();
|
2819
2819
|
}
|
2820
|
-
loadAddon(l,
|
2821
|
-
const
|
2822
|
-
this._addons.push(
|
2820
|
+
loadAddon(l, d) {
|
2821
|
+
const _ = { instance: d, dispose: d.dispose, isDisposed: !1 };
|
2822
|
+
this._addons.push(_), d.dispose = () => this._wrappedAddonDispose(_), d.activate(l);
|
2823
2823
|
}
|
2824
2824
|
_wrappedAddonDispose(l) {
|
2825
2825
|
if (l.isDisposed) return;
|
2826
|
-
let
|
2827
|
-
for (let
|
2828
|
-
|
2826
|
+
let d = -1;
|
2827
|
+
for (let _ = 0; _ < this._addons.length; _++) if (this._addons[_] === l) {
|
2828
|
+
d = _;
|
2829
2829
|
break;
|
2830
2830
|
}
|
2831
|
-
if (
|
2832
|
-
l.isDisposed = !0, l.dispose.apply(l.instance), this._addons.splice(
|
2831
|
+
if (d === -1) throw new Error("Could not dispose an addon that has not been loaded");
|
2832
|
+
l.isDisposed = !0, l.dispose.apply(l.instance), this._addons.splice(d, 1);
|
2833
2833
|
}
|
2834
2834
|
};
|
2835
2835
|
}, 771: (w, r, l) => {
|
2836
2836
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.BufferApiView = void 0;
|
2837
|
-
const
|
2837
|
+
const d = l(785), _ = l(511);
|
2838
2838
|
r.BufferApiView = class {
|
2839
2839
|
constructor(n, c) {
|
2840
2840
|
this._buffer = n, this.type = c;
|
@@ -2859,18 +2859,18 @@ function Ae() {
|
|
2859
2859
|
}
|
2860
2860
|
getLine(n) {
|
2861
2861
|
const c = this._buffer.lines.get(n);
|
2862
|
-
if (c) return new
|
2862
|
+
if (c) return new d.BufferLineApiView(c);
|
2863
2863
|
}
|
2864
2864
|
getNullCell() {
|
2865
|
-
return new
|
2865
|
+
return new _.CellData();
|
2866
2866
|
}
|
2867
2867
|
};
|
2868
2868
|
}, 785: (w, r, l) => {
|
2869
2869
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.BufferLineApiView = void 0;
|
2870
|
-
const
|
2870
|
+
const d = l(511);
|
2871
2871
|
r.BufferLineApiView = class {
|
2872
|
-
constructor(
|
2873
|
-
this._line =
|
2872
|
+
constructor(_) {
|
2873
|
+
this._line = _;
|
2874
2874
|
}
|
2875
2875
|
get isWrapped() {
|
2876
2876
|
return this._line.isWrapped;
|
@@ -2878,19 +2878,19 @@ function Ae() {
|
|
2878
2878
|
get length() {
|
2879
2879
|
return this._line.length;
|
2880
2880
|
}
|
2881
|
-
getCell(
|
2882
|
-
if (!(
|
2881
|
+
getCell(_, n) {
|
2882
|
+
if (!(_ < 0 || _ >= this._line.length)) return n ? (this._line.loadCell(_, n), n) : this._line.loadCell(_, new d.CellData());
|
2883
2883
|
}
|
2884
|
-
translateToString(
|
2885
|
-
return this._line.translateToString(
|
2884
|
+
translateToString(_, n, c) {
|
2885
|
+
return this._line.translateToString(_, n, c);
|
2886
2886
|
}
|
2887
2887
|
};
|
2888
2888
|
}, 285: (w, r, l) => {
|
2889
2889
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.BufferNamespaceApi = void 0;
|
2890
|
-
const
|
2890
|
+
const d = l(771), _ = l(460), n = l(844);
|
2891
2891
|
class c extends n.Disposable {
|
2892
2892
|
constructor(h) {
|
2893
|
-
super(), this._core = h, this._onBufferChange = this.register(new
|
2893
|
+
super(), this._core = h, this._onBufferChange = this.register(new _.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));
|
2894
2894
|
}
|
2895
2895
|
get active() {
|
2896
2896
|
if (this._core.buffers.active === this._core.buffers.normal) return this.normal;
|
@@ -2910,29 +2910,29 @@ function Ae() {
|
|
2910
2910
|
constructor(l) {
|
2911
2911
|
this._core = l;
|
2912
2912
|
}
|
2913
|
-
registerCsiHandler(l,
|
2914
|
-
return this._core.registerCsiHandler(l, (
|
2913
|
+
registerCsiHandler(l, d) {
|
2914
|
+
return this._core.registerCsiHandler(l, (_) => d(_.toArray()));
|
2915
2915
|
}
|
2916
|
-
addCsiHandler(l,
|
2917
|
-
return this.registerCsiHandler(l,
|
2916
|
+
addCsiHandler(l, d) {
|
2917
|
+
return this.registerCsiHandler(l, d);
|
2918
2918
|
}
|
2919
|
-
registerDcsHandler(l,
|
2920
|
-
return this._core.registerDcsHandler(l, (
|
2919
|
+
registerDcsHandler(l, d) {
|
2920
|
+
return this._core.registerDcsHandler(l, (_, n) => d(_, n.toArray()));
|
2921
2921
|
}
|
2922
|
-
addDcsHandler(l,
|
2923
|
-
return this.registerDcsHandler(l,
|
2922
|
+
addDcsHandler(l, d) {
|
2923
|
+
return this.registerDcsHandler(l, d);
|
2924
2924
|
}
|
2925
|
-
registerEscHandler(l,
|
2926
|
-
return this._core.registerEscHandler(l,
|
2925
|
+
registerEscHandler(l, d) {
|
2926
|
+
return this._core.registerEscHandler(l, d);
|
2927
2927
|
}
|
2928
|
-
addEscHandler(l,
|
2929
|
-
return this.registerEscHandler(l,
|
2928
|
+
addEscHandler(l, d) {
|
2929
|
+
return this.registerEscHandler(l, d);
|
2930
2930
|
}
|
2931
|
-
registerOscHandler(l,
|
2932
|
-
return this._core.registerOscHandler(l,
|
2931
|
+
registerOscHandler(l, d) {
|
2932
|
+
return this._core.registerOscHandler(l, d);
|
2933
2933
|
}
|
2934
|
-
addOscHandler(l,
|
2935
|
-
return this.registerOscHandler(l,
|
2934
|
+
addOscHandler(l, d) {
|
2935
|
+
return this.registerOscHandler(l, d);
|
2936
2936
|
}
|
2937
2937
|
};
|
2938
2938
|
}, 90: (w, r) => {
|
@@ -2954,12 +2954,12 @@ function Ae() {
|
|
2954
2954
|
}
|
2955
2955
|
};
|
2956
2956
|
}, 744: function(w, r, l) {
|
2957
|
-
var
|
2957
|
+
var d = this && this.__decorate || function(e, s, i, t) {
|
2958
2958
|
var f, p = arguments.length, S = p < 3 ? s : t === null ? t = Object.getOwnPropertyDescriptor(s, i) : t;
|
2959
2959
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") S = Reflect.decorate(e, s, i, t);
|
2960
2960
|
else for (var y = e.length - 1; y >= 0; y--) (f = e[y]) && (S = (p < 3 ? f(S) : p > 3 ? f(s, i, S) : f(s, i)) || S);
|
2961
2961
|
return p > 3 && S && Object.defineProperty(s, i, S), S;
|
2962
|
-
},
|
2962
|
+
}, _ = this && this.__param || function(e, s) {
|
2963
2963
|
return function(i, t) {
|
2964
2964
|
s(i, t, e);
|
2965
2965
|
};
|
@@ -3004,7 +3004,7 @@ function Ae() {
|
|
3004
3004
|
t.ydisp = Math.max(Math.min(t.ydisp + e, t.ybase), 0), f !== t.ydisp && (s || this._onScroll.fire(t.ydisp));
|
3005
3005
|
}
|
3006
3006
|
};
|
3007
|
-
r.BufferService = u =
|
3007
|
+
r.BufferService = u = d([_(0, h.IOptionsService)], u);
|
3008
3008
|
}, 994: (w, r) => {
|
3009
3009
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.CharsetService = void 0, r.CharsetService = class {
|
3010
3010
|
constructor() {
|
@@ -3016,17 +3016,17 @@ function Ae() {
|
|
3016
3016
|
setgLevel(l) {
|
3017
3017
|
this.glevel = l, this.charset = this._charsets[l];
|
3018
3018
|
}
|
3019
|
-
setgCharset(l,
|
3020
|
-
this._charsets[l] =
|
3019
|
+
setgCharset(l, d) {
|
3020
|
+
this._charsets[l] = d, this.glevel === l && (this.charset = d);
|
3021
3021
|
}
|
3022
3022
|
};
|
3023
3023
|
}, 753: function(w, r, l) {
|
3024
|
-
var
|
3024
|
+
var d = this && this.__decorate || function(t, f, p, S) {
|
3025
3025
|
var y, C = arguments.length, T = C < 3 ? f : S === null ? S = Object.getOwnPropertyDescriptor(f, p) : S;
|
3026
3026
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") T = Reflect.decorate(t, f, p, S);
|
3027
3027
|
else for (var j = t.length - 1; j >= 0; j--) (y = t[j]) && (T = (C < 3 ? y(T) : C > 3 ? y(f, p, T) : y(f, p)) || T);
|
3028
3028
|
return C > 3 && T && Object.defineProperty(f, p, T), T;
|
3029
|
-
},
|
3029
|
+
}, _ = this && this.__param || function(t, f) {
|
3030
3030
|
return function(p, S) {
|
3031
3031
|
f(p, S, t);
|
3032
3032
|
};
|
@@ -3095,14 +3095,14 @@ function Ae() {
|
|
3095
3095
|
return t.button === f.button && t.action === f.action && t.ctrl === f.ctrl && t.alt === f.alt && t.shift === f.shift;
|
3096
3096
|
}
|
3097
3097
|
};
|
3098
|
-
r.CoreMouseService = i =
|
3098
|
+
r.CoreMouseService = i = d([_(0, n.IBufferService), _(1, n.ICoreService)], i);
|
3099
3099
|
}, 83: function(w, r, l) {
|
3100
|
-
var
|
3100
|
+
var d = this && this.__decorate || function(i, t, f, p) {
|
3101
3101
|
var S, y = arguments.length, C = y < 3 ? t : p === null ? p = Object.getOwnPropertyDescriptor(t, f) : p;
|
3102
3102
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") C = Reflect.decorate(i, t, f, p);
|
3103
3103
|
else for (var T = i.length - 1; T >= 0; T--) (S = i[T]) && (C = (y < 3 ? S(C) : y > 3 ? S(t, f, C) : S(t, f)) || C);
|
3104
3104
|
return y > 3 && C && Object.defineProperty(t, f, C), C;
|
3105
|
-
},
|
3105
|
+
}, _ = this && this.__param || function(i, t) {
|
3106
3106
|
return function(f, p) {
|
3107
3107
|
t(f, p, i);
|
3108
3108
|
};
|
@@ -3125,10 +3125,10 @@ function Ae() {
|
|
3125
3125
|
this._optionsService.rawOptions.disableStdin || (this._logService.debug(`sending binary "${i}"`, () => i.split("").map((t) => t.charCodeAt(0))), this._onBinary.fire(i));
|
3126
3126
|
}
|
3127
3127
|
};
|
3128
|
-
r.CoreService = s =
|
3128
|
+
r.CoreService = s = d([_(0, h.IBufferService), _(1, h.ILogService), _(2, h.IOptionsService)], s);
|
3129
3129
|
}, 348: (w, r, l) => {
|
3130
3130
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.InstantiationService = r.ServiceCollection = void 0;
|
3131
|
-
const
|
3131
|
+
const d = l(585), _ = l(343);
|
3132
3132
|
class n {
|
3133
3133
|
constructor(...a) {
|
3134
3134
|
this._entries = /* @__PURE__ */ new Map();
|
@@ -3150,7 +3150,7 @@ function Ae() {
|
|
3150
3150
|
}
|
3151
3151
|
r.ServiceCollection = n, r.InstantiationService = class {
|
3152
3152
|
constructor() {
|
3153
|
-
this._services = new n(), this._services.set(
|
3153
|
+
this._services = new n(), this._services.set(d.IInstantiationService, this);
|
3154
3154
|
}
|
3155
3155
|
setService(c, a) {
|
3156
3156
|
this._services.set(c, a);
|
@@ -3159,7 +3159,7 @@ function Ae() {
|
|
3159
3159
|
return this._services.get(c);
|
3160
3160
|
}
|
3161
3161
|
createInstance(c, ...a) {
|
3162
|
-
const h = (0,
|
3162
|
+
const h = (0, _.getServiceDependencies)(c).sort((s, i) => s.index - i.index), u = [];
|
3163
3163
|
for (const s of h) {
|
3164
3164
|
const i = this._services.get(s.id);
|
3165
3165
|
if (!i) throw new Error(`[createInstance] ${c.name} depends on UNKNOWN service ${s.id}.`);
|
@@ -3171,12 +3171,12 @@ function Ae() {
|
|
3171
3171
|
}
|
3172
3172
|
};
|
3173
3173
|
}, 866: function(w, r, l) {
|
3174
|
-
var
|
3174
|
+
var d = this && this.__decorate || function(e, s, i, t) {
|
3175
3175
|
var f, p = arguments.length, S = p < 3 ? s : t === null ? t = Object.getOwnPropertyDescriptor(s, i) : t;
|
3176
3176
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") S = Reflect.decorate(e, s, i, t);
|
3177
3177
|
else for (var y = e.length - 1; y >= 0; y--) (f = e[y]) && (S = (p < 3 ? f(S) : p > 3 ? f(s, i, S) : f(s, i)) || S);
|
3178
3178
|
return p > 3 && S && Object.defineProperty(s, i, S), S;
|
3179
|
-
},
|
3179
|
+
}, _ = this && this.__param || function(e, s) {
|
3180
3180
|
return function(i, t) {
|
3181
3181
|
s(i, t, e);
|
3182
3182
|
};
|
@@ -3215,7 +3215,7 @@ function Ae() {
|
|
3215
3215
|
this._logLevel <= c.LogLevelEnum.ERROR && this._log(this._optionsService.options.logger?.error.bind(this._optionsService.options.logger) ?? console.error, e, s);
|
3216
3216
|
}
|
3217
3217
|
};
|
3218
|
-
r.LogService = u =
|
3218
|
+
r.LogService = u = d([_(0, c.IOptionsService)], u), r.setTraceLogger = function(e) {
|
3219
3219
|
h = e;
|
3220
3220
|
}, r.traceCall = function(e, s, i) {
|
3221
3221
|
if (typeof i.value != "function") throw new Error("not supported");
|
@@ -3229,12 +3229,12 @@ function Ae() {
|
|
3229
3229
|
};
|
3230
3230
|
}, 302: (w, r, l) => {
|
3231
3231
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.OptionsService = r.DEFAULT_OPTIONS = void 0;
|
3232
|
-
const
|
3232
|
+
const d = l(460), _ = l(844), n = l(114);
|
3233
3233
|
r.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: n.isMac, windowOptions: {}, windowsMode: !1, windowsPty: {}, wordSeparator: " ()[]{}',\"`", altClickMovesCursor: !0, convertEol: !1, termName: "xterm", cancelEvents: !1, overviewRulerWidth: 0 };
|
3234
3234
|
const c = ["normal", "bold", "100", "200", "300", "400", "500", "600", "700", "800", "900"];
|
3235
|
-
class a extends
|
3235
|
+
class a extends _.Disposable {
|
3236
3236
|
constructor(u) {
|
3237
|
-
super(), this._onOptionChange = this.register(new
|
3237
|
+
super(), this._onOptionChange = this.register(new d.EventEmitter()), this.onOptionChange = this._onOptionChange.event;
|
3238
3238
|
const e = { ...r.DEFAULT_OPTIONS };
|
3239
3239
|
for (const s in u) if (s in e) try {
|
3240
3240
|
const i = u[s];
|
@@ -3242,7 +3242,7 @@ function Ae() {
|
|
3242
3242
|
} catch (i) {
|
3243
3243
|
console.error(i);
|
3244
3244
|
}
|
3245
|
-
this.rawOptions = e, this.options = { ...e }, this._setupOptions(), this.register((0,
|
3245
|
+
this.rawOptions = e, this.options = { ...e }, this._setupOptions(), this.register((0, _.toDisposable)(() => {
|
3246
3246
|
this.rawOptions.linkHandler = null, this.rawOptions.documentOverride = null;
|
3247
3247
|
}));
|
3248
3248
|
}
|
@@ -3312,12 +3312,12 @@ function Ae() {
|
|
3312
3312
|
}
|
3313
3313
|
r.OptionsService = a;
|
3314
3314
|
}, 660: function(w, r, l) {
|
3315
|
-
var
|
3315
|
+
var d = this && this.__decorate || function(a, h, u, e) {
|
3316
3316
|
var s, i = arguments.length, t = i < 3 ? h : e === null ? e = Object.getOwnPropertyDescriptor(h, u) : e;
|
3317
3317
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t = Reflect.decorate(a, h, u, e);
|
3318
3318
|
else for (var f = a.length - 1; f >= 0; f--) (s = a[f]) && (t = (i < 3 ? s(t) : i > 3 ? s(h, u, t) : s(h, u)) || t);
|
3319
3319
|
return i > 3 && t && Object.defineProperty(h, u, t), t;
|
3320
|
-
},
|
3320
|
+
}, _ = this && this.__param || function(a, h) {
|
3321
3321
|
return function(u, e) {
|
3322
3322
|
h(u, e, a);
|
3323
3323
|
};
|
@@ -3357,32 +3357,32 @@ function Ae() {
|
|
3357
3357
|
u !== -1 && (a.lines.splice(u, 1), a.lines.length === 0 && (a.data.id !== void 0 && this._entriesWithId.delete(a.key), this._dataByLinkId.delete(a.id)));
|
3358
3358
|
}
|
3359
3359
|
};
|
3360
|
-
r.OscLinkService = c =
|
3360
|
+
r.OscLinkService = c = d([_(0, n.IBufferService)], c);
|
3361
3361
|
}, 343: (w, r) => {
|
3362
3362
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.createDecorator = r.getServiceDependencies = r.serviceRegistry = void 0;
|
3363
|
-
const l = "di$target",
|
3364
|
-
r.serviceRegistry = /* @__PURE__ */ new Map(), r.getServiceDependencies = function(
|
3365
|
-
return d
|
3366
|
-
}, r.createDecorator = function(
|
3367
|
-
if (r.serviceRegistry.has(
|
3363
|
+
const l = "di$target", d = "di$dependencies";
|
3364
|
+
r.serviceRegistry = /* @__PURE__ */ new Map(), r.getServiceDependencies = function(_) {
|
3365
|
+
return _[d] || [];
|
3366
|
+
}, r.createDecorator = function(_) {
|
3367
|
+
if (r.serviceRegistry.has(_)) return r.serviceRegistry.get(_);
|
3368
3368
|
const n = function(c, a, h) {
|
3369
3369
|
if (arguments.length !== 3) throw new Error("@IServiceName-decorator can only be used to decorate a parameter");
|
3370
3370
|
(function(u, e, s) {
|
3371
|
-
e[l] === e ? e[
|
3371
|
+
e[l] === e ? e[d].push({ id: u, index: s }) : (e[d] = [{ id: u, index: s }], e[l] = e);
|
3372
3372
|
})(n, c, h);
|
3373
3373
|
};
|
3374
|
-
return n.toString = () =>
|
3374
|
+
return n.toString = () => _, r.serviceRegistry.set(_, n), n;
|
3375
3375
|
};
|
3376
3376
|
}, 585: (w, r, l) => {
|
3377
3377
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.IDecorationService = r.IUnicodeService = r.IOscLinkService = r.IOptionsService = r.ILogService = r.LogLevelEnum = r.IInstantiationService = r.ICharsetService = r.ICoreService = r.ICoreMouseService = r.IBufferService = void 0;
|
3378
|
-
const
|
3379
|
-
var
|
3380
|
-
r.IBufferService = (0,
|
3378
|
+
const d = l(343);
|
3379
|
+
var _;
|
3380
|
+
r.IBufferService = (0, d.createDecorator)("BufferService"), r.ICoreMouseService = (0, d.createDecorator)("CoreMouseService"), r.ICoreService = (0, d.createDecorator)("CoreService"), r.ICharsetService = (0, d.createDecorator)("CharsetService"), r.IInstantiationService = (0, d.createDecorator)("InstantiationService"), function(n) {
|
3381
3381
|
n[n.TRACE = 0] = "TRACE", n[n.DEBUG = 1] = "DEBUG", n[n.INFO = 2] = "INFO", n[n.WARN = 3] = "WARN", n[n.ERROR = 4] = "ERROR", n[n.OFF = 5] = "OFF";
|
3382
|
-
}(
|
3382
|
+
}(_ || (r.LogLevelEnum = _ = {})), r.ILogService = (0, d.createDecorator)("LogService"), r.IOptionsService = (0, d.createDecorator)("OptionsService"), r.IOscLinkService = (0, d.createDecorator)("OscLinkService"), r.IUnicodeService = (0, d.createDecorator)("UnicodeService"), r.IDecorationService = (0, d.createDecorator)("DecorationService");
|
3383
3383
|
}, 480: (w, r, l) => {
|
3384
3384
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.UnicodeService = void 0;
|
3385
|
-
const
|
3385
|
+
const d = l(460), _ = l(225);
|
3386
3386
|
class n {
|
3387
3387
|
static extractShouldJoin(a) {
|
3388
3388
|
return (1 & a) != 0;
|
@@ -3397,8 +3397,8 @@ function Ae() {
|
|
3397
3397
|
return (16777215 & a) << 3 | (3 & h) << 1 | (u ? 1 : 0);
|
3398
3398
|
}
|
3399
3399
|
constructor() {
|
3400
|
-
this._providers = /* @__PURE__ */ Object.create(null), this._active = "", this._onChange = new
|
3401
|
-
const a = new
|
3400
|
+
this._providers = /* @__PURE__ */ Object.create(null), this._active = "", this._onChange = new d.EventEmitter(), this.onChange = this._onChange.event;
|
3401
|
+
const a = new _.UnicodeV6();
|
3402
3402
|
this.register(a), this._active = a.version, this._activeProvider = a;
|
3403
3403
|
}
|
3404
3404
|
dispose() {
|
@@ -3443,8 +3443,8 @@ function Ae() {
|
|
3443
3443
|
r.UnicodeService = n;
|
3444
3444
|
}, 781: (w, r, l) => {
|
3445
3445
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.Terminal = void 0;
|
3446
|
-
const
|
3447
|
-
class c extends
|
3446
|
+
const d = l(437), _ = l(969), n = l(460);
|
3447
|
+
class c extends _.CoreTerminal {
|
3448
3448
|
constructor(h = {}) {
|
3449
3449
|
super(h), this._onBell = this.register(new n.EventEmitter()), this.onBell = this._onBell.event, this._onCursorMove = this.register(new n.EventEmitter()), this.onCursorMove = this._onCursorMove.event, this._onTitleChange = this.register(new n.EventEmitter()), this.onTitleChange = this._onTitleChange.event, this._onA11yCharEmitter = this.register(new n.EventEmitter()), this.onA11yChar = this._onA11yCharEmitter.event, this._onA11yTabEmitter = this.register(new n.EventEmitter()), this.onA11yTab = this._onA11yTabEmitter.event, this._setup(), this.register(this._inputHandler.onRequestBell(() => this.bell())), this.register(this._inputHandler.onRequestReset(() => this.reset())), this.register((0, n.forwardEvent)(this._inputHandler.onCursorMove, this._onCursorMove)), this.register((0, n.forwardEvent)(this._inputHandler.onTitleChange, this._onTitleChange)), this.register((0, n.forwardEvent)(this._inputHandler.onA11yChar, this._onA11yCharEmitter)), this.register((0, n.forwardEvent)(this._inputHandler.onA11yTab, this._onA11yTabEmitter));
|
3450
3450
|
}
|
@@ -3469,7 +3469,7 @@ function Ae() {
|
|
3469
3469
|
clear() {
|
3470
3470
|
if (this.buffer.ybase !== 0 || this.buffer.y !== 0) {
|
3471
3471
|
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;
|
3472
|
-
for (let h = 1; h < this.rows; h++) this.buffer.lines.push(this.buffer.getBlankLine(
|
3472
|
+
for (let h = 1; h < this.rows; h++) this.buffer.lines.push(this.buffer.getBlankLine(d.DEFAULT_ATTR_DATA));
|
3473
3473
|
this._onScroll.fire({ position: this.buffer.ydisp, source: 0 });
|
3474
3474
|
}
|
3475
3475
|
}
|
@@ -3489,10 +3489,10 @@ function Ae() {
|
|
3489
3489
|
(() => {
|
3490
3490
|
var w = W;
|
3491
3491
|
Object.defineProperty(w, "__esModule", { value: !0 }), w.Terminal = void 0;
|
3492
|
-
const r = R(285), l = R(975),
|
3492
|
+
const r = R(285), l = R(975), d = R(90), _ = R(781), n = R(741), c = R(844), a = ["cols", "rows"];
|
3493
3493
|
class h extends c.Disposable {
|
3494
3494
|
constructor(e) {
|
3495
|
-
super(), this._core = this.register(new
|
3495
|
+
super(), this._core = this.register(new _.Terminal(e)), this._addonManager = this.register(new n.AddonManager()), this._publicOptions = { ...this._core.options };
|
3496
3496
|
const s = (t) => this._core.options[t], i = (t, f) => {
|
3497
3497
|
this._checkReadonlyOptions(t), this._core.options[t] = f;
|
3498
3498
|
};
|
@@ -3538,7 +3538,7 @@ function Ae() {
|
|
3538
3538
|
return this._checkProposedApi(), this._parser || (this._parser = new l.ParserApi(this._core)), this._parser;
|
3539
3539
|
}
|
3540
3540
|
get unicode() {
|
3541
|
-
return this._checkProposedApi(), new
|
3541
|
+
return this._checkProposedApi(), new d.UnicodeApi(this._core);
|
3542
3542
|
}
|
3543
3543
|
get rows() {
|
3544
3544
|
return this._core.rows;
|
@@ -3661,10 +3661,10 @@ function De(x, $ = Le) {
|
|
3661
3661
|
for (let N = R.length - 1; N > 0; N--) {
|
3662
3662
|
const w = R[N];
|
3663
3663
|
if (z += w.length, z > W) {
|
3664
|
-
const l = N,
|
3664
|
+
const l = N, d = `Truncated ${l} ${ge(l, "line")} above this point`, _ = R.length - N - 1, n = _ === 1 ? "Below is the last line of the output" : `Below are the last ${_} lines of the output`;
|
3665
3665
|
return {
|
3666
3666
|
output: [
|
3667
|
-
`--- ${
|
3667
|
+
`--- ${d}. ${n}. ---`,
|
3668
3668
|
...R.slice(N)
|
3669
3669
|
].join(`
|
3670
3670
|
`),
|
@@ -3723,17 +3723,17 @@ const Fe = ({ args: x, userInput: $ }, { dir: I, dirs: R, config: W, toolMessage
|
|
3723
3723
|
const l = Re(N);
|
3724
3724
|
if (l)
|
3725
3725
|
return se.of(w(l));
|
3726
|
-
const
|
3726
|
+
const d = [N, ...R.map((c) => c.fsPath)], _ = Ee(x.cmd, d, {
|
3727
3727
|
config: W.settings
|
3728
|
-
}), n =
|
3728
|
+
}), n = _.parts.flatMap(
|
3729
3729
|
(c) => (
|
3730
|
-
// Only offer adding to allowlist when parsable, non-dynamic, and within cwd.
|
3731
|
-
c.requiresConfirmation ? typeof c.command == "string" || c.command.program === ne || c.command.arguments.some(
|
3732
|
-
(a) => a === ne || le(a,
|
3730
|
+
// Only offer adding program to allowlist when parsable, non-dynamic, non-concatenated, and within cwd.
|
3731
|
+
c.requiresConfirmation ? typeof c.command == "string" || c.command.program === ne || Array.isArray(c.command.program) || c.command.arguments.some(
|
3732
|
+
(a) => a === ne || typeof a == "string" && le(a, d)
|
3733
3733
|
) ? [] : [c.command.program] : []
|
3734
3734
|
)
|
3735
3735
|
);
|
3736
|
-
if (
|
3736
|
+
if (_.requiresConfirmation) {
|
3737
3737
|
if ($ && !$.accepted)
|
3738
3738
|
return se.of({ status: "rejected-by-user", toAllow: n });
|
3739
3739
|
if (!$?.accepted)
|
@@ -3755,4 +3755,4 @@ function Re(x) {
|
|
3755
3755
|
export {
|
3756
3756
|
Fe as nodeBashTool
|
3757
3757
|
};
|
3758
|
-
//# sourceMappingURL=node-
|
3758
|
+
//# sourceMappingURL=node-rOj17fe_.js.map
|