@sourcegraph/amp 0.0.1749096401-g3a8a18 → 0.0.1749109595-g4e65be

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.
Files changed (48) hide show
  1. package/dist/amp.js +3 -3
  2. package/dist/{client-CT0UspN7.js → client-Co7dVied.js} +2 -2
  3. package/dist/{client-CT0UspN7.js.map → client-Co7dVied.js.map} +1 -1
  4. package/dist/{console-CZXURH0C.js → console-9ChYTAuP.js} +20 -14
  5. package/dist/console-9ChYTAuP.js.map +1 -0
  6. package/dist/create_file.node-hHqtsH6T.js +22 -0
  7. package/dist/create_file.node-hHqtsH6T.js.map +1 -0
  8. package/dist/{edit_file.node-BqRltvHA.js → edit_file.node-C_QnSUCA.js} +3 -3
  9. package/dist/{edit_file.node-BqRltvHA.js.map → edit_file.node-C_QnSUCA.js.map} +1 -1
  10. package/dist/{executable-Dy1dmJR0.js → executable-Cos2zJOT.js} +2 -2
  11. package/dist/{executable-Dy1dmJR0.js.map → executable-Cos2zJOT.js.map} +1 -1
  12. package/dist/{files-yat9N0vH.js → files-DuJQGx_l.js} +2 -2
  13. package/dist/{files-yat9N0vH.js.map → files-DuJQGx_l.js.map} +1 -1
  14. package/dist/{glob.node-h1Swo4vr.js → glob.node-Ca3WEmvJ.js} +4 -4
  15. package/dist/{glob.node-h1Swo4vr.js.map → glob.node-Ca3WEmvJ.js.map} +1 -1
  16. package/dist/{index-D5lm6ANC.js → index-qB8r0Uhu.js} +2 -2
  17. package/dist/{index-D5lm6ANC.js.map → index-qB8r0Uhu.js.map} +1 -1
  18. package/dist/{list_directory.node-CEUOBF5h.js → list_directory.node-B2wxSFMa.js} +2 -2
  19. package/dist/{list_directory.node-CEUOBF5h.js.map → list_directory.node-B2wxSFMa.js.map} +1 -1
  20. package/dist/{load-profile-Dk7ZUf3s.js → load-profile-DpyLbaYS.js} +2 -2
  21. package/dist/{load-profile-Dk7ZUf3s.js.map → load-profile-DpyLbaYS.js.map} +1 -1
  22. package/dist/{main-CS_jpDsP.js → main-B4ln85Rg.js} +21 -16
  23. package/dist/main-B4ln85Rg.js.map +1 -0
  24. package/dist/{node-BtKYcfrH.js → node-BBnb2R8E.js} +3 -3
  25. package/dist/{node-BtKYcfrH.js.map → node-BBnb2R8E.js.map} +1 -1
  26. package/dist/{node-DVHX-oeS.js → node-BUT6Nvpy.js} +2 -2
  27. package/dist/{node-DVHX-oeS.js.map → node-BUT6Nvpy.js.map} +1 -1
  28. package/dist/{node-CRrSwIMO.js → node-BYuqVOkK.js} +4 -4
  29. package/dist/{node-CRrSwIMO.js.map → node-BYuqVOkK.js.map} +1 -1
  30. package/dist/{node-dAg24OS_.js → node-D6m-7fmx.js} +3 -3
  31. package/dist/{node-dAg24OS_.js.map → node-D6m-7fmx.js.map} +1 -1
  32. package/dist/{node-BJyrP3Sj.js → node-Dm9KQUgx.js} +2 -2
  33. package/dist/{node-BJyrP3Sj.js.map → node-Dm9KQUgx.js.map} +1 -1
  34. package/dist/{node-COZM4qQd.js → node-DzhEX6Qs.js} +1077 -1063
  35. package/dist/node-DzhEX6Qs.js.map +1 -0
  36. package/dist/{read_file.node-DbAEjkEn.js → read_file.node-QXBL6A9B.js} +2 -2
  37. package/dist/{read_file.node-DbAEjkEn.js.map → read_file.node-QXBL6A9B.js.map} +1 -1
  38. package/dist/{stdio-BxgTnYre.js → stdio-mZBGUxws.js} +3 -3
  39. package/dist/{stdio-BxgTnYre.js.map → stdio-mZBGUxws.js.map} +1 -1
  40. package/dist/storybook.js +1 -1
  41. package/dist/{undo_edit.node-DL1deBcE.js → undo_edit.node-CBJHZjZk.js} +2 -2
  42. package/dist/{undo_edit.node-DL1deBcE.js.map → undo_edit.node-CBJHZjZk.js.map} +1 -1
  43. package/package.json +1 -1
  44. package/dist/console-CZXURH0C.js.map +0 -1
  45. package/dist/create_file.node-Bg2Ha2Q0.js +0 -24
  46. package/dist/create_file.node-Bg2Ha2Q0.js.map +0 -1
  47. package/dist/main-CS_jpDsP.js.map +0 -1
  48. package/dist/node-COZM4qQd.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 { aR as fe, aS as de, C as _e, aT as ne, aU as pe, aV as ge, aG as ae, aO as ve, aF as me, aA as be, O as se } from "./console-CZXURH0C.js";
5
- import { loadProfileEnvironmentVariables as Se } from "./load-profile-Dk7ZUf3s.js";
4
+ import { aR as fe, aS as de, C as _e, aT as ne, aU as pe, aV as ge, aG as ae, aO as ve, aF as me, aA as be, O as se } from "./console-9ChYTAuP.js";
5
+ import { loadProfileEnvironmentVariables as Se } from "./load-profile-DpyLbaYS.js";
6
6
  const Ce = [
7
7
  "ls",
8
8
  "dir",
@@ -187,81 +187,95 @@ const Ce = [
187
187
  "go build .",
188
188
  "go test"
189
189
  ], we = ["/dev/null", "/dev/zero", "/dev/stdout", "/dev/stderr", "/dev/stdin"];
190
- function le(x, $) {
191
- if (!x || we.includes(x) || (x.endsWith(ee.sep) && (x = x.slice(0, -1)), $.includes(x)))
190
+ function le(x, j) {
191
+ if (!x || we.includes(x) || (x.endsWith(ee.sep) && (x = x.slice(0, -1)), j.includes(x)))
192
192
  return !1;
193
193
  if (ee.isAbsolute(x))
194
- return !$.some((W) => Be(W, x));
195
- const I = x.split("/");
196
- let R = 0;
197
- for (const W of I)
194
+ return !j.some((W) => Be(W, x));
195
+ const O = x.split("/");
196
+ let P = 0;
197
+ for (const W of O)
198
198
  if (W === "..") {
199
- if (R--, R < 0)
199
+ if (P--, P < 0)
200
200
  return !0;
201
- } else W !== "" && W !== "." && R++;
201
+ } else W !== "" && W !== "." && P++;
202
202
  return !1;
203
203
  }
204
- function Be(x, $) {
205
- const I = ee.relative(ee.normalize(x), ee.normalize($));
206
- return !!I && !I.startsWith("..") && !I.startsWith("/");
204
+ function Be(x, j) {
205
+ const O = ee.relative(ee.normalize(x), ee.normalize(j));
206
+ return !!O && !O.startsWith("..") && !O.startsWith("/");
207
207
  }
208
- function re(x, $) {
208
+ function re(x, j, O) {
209
209
  if (typeof x == "string")
210
210
  return !1;
211
- for (const I of x.arguments)
212
- if (typeof I == "string" && !(I.startsWith("-") || I.includes("*") || I.startsWith('"') || I.startsWith("'")) && I.includes("/") && le(I, $))
211
+ for (const P of x.arguments)
212
+ if (typeof P == "string" && !(P.startsWith("-") || P.includes("*") || P.startsWith('"') || P.startsWith("'")) && !(O && !O.absolutePaths && P.startsWith("//")) && P.includes("/") && le(P, j))
213
213
  return !0;
214
214
  return !1;
215
215
  }
216
- function Ee(x, $, I) {
217
- let R = [];
216
+ function Ee(x, j = !1) {
217
+ const O = {
218
+ absolutePaths: !0,
219
+ environmentVariables: !0
220
+ };
221
+ if (j || typeof x == "string")
222
+ return O;
223
+ const P = typeof x.program == "string" ? x.program.toLowerCase() : "", W = x.arguments.filter((U) => typeof U == "string").join(" "), X = `${P} ${W}`.toLowerCase();
224
+ return P.includes("bazel") || X.includes("bazel") || P === "ibazel" ? {
225
+ ...O,
226
+ absolutePaths: !1
227
+ // Allow bazel-style absolute paths like //path/to/target
228
+ } : O;
229
+ }
230
+ function Ae(x, j, O) {
231
+ let P = [];
218
232
  try {
219
- const w = fe(x, I?.platform);
220
- R = de(w);
221
- } catch (w) {
222
- _e.warn("Failed to parse command", { cmd: x }, w), R = [x];
233
+ const t = fe(x, O?.platform);
234
+ P = de(t);
235
+ } catch (t) {
236
+ _e.warn("Failed to parse command", { cmd: x }, t), P = [x];
223
237
  }
224
- const W = I?.config?.["commands.allowlist"] || [];
238
+ const W = O?.config?.["commands.allowlist"] || [], X = O?.config?.["commands.strict"] ?? !1;
225
239
  if (W.includes("*"))
226
240
  return {
227
241
  requiresConfirmation: !1,
228
- parts: R.map((w) => ({ command: w, requiresConfirmation: !1 }))
242
+ parts: P.map((t) => ({ command: t, requiresConfirmation: !1 }))
229
243
  };
230
- const z = R.map((w) => {
231
- if (typeof w == "string")
232
- return { command: w, requiresConfirmation: !0 };
233
- const r = w.arguments.some((_) => typeof _ != "string");
234
- function l(_) {
235
- return _ === ne ? "<dynamic>" : _;
244
+ const U = P.map((t) => {
245
+ if (typeof t == "string")
246
+ return { command: t, requiresConfirmation: !0 };
247
+ const l = Ee(t, X), d = t.arguments.some((h) => typeof h != "string");
248
+ function _(h) {
249
+ return h === ne ? "<dynamic>" : h;
236
250
  }
237
- const d = `${l(w.program)} ${w.arguments.map(l).join(" ")}`;
238
- if (!r) {
239
- for (const _ of W)
240
- if (d === _)
241
- return { command: w, requiresConfirmation: !1 };
251
+ const n = `${_(t.program)} ${t.arguments.map(_).join(" ")}`;
252
+ if (!d) {
253
+ for (const h of W)
254
+ if (n === h)
255
+ return { command: t, requiresConfirmation: !1 };
242
256
  }
243
- if (Ce.includes(String(w.program)))
244
- return re(w, $) ? { command: w, requiresConfirmation: !0 } : { command: w, requiresConfirmation: !1 };
245
- for (let _ of [...ye, ...W]) {
246
- _.endsWith(" *") && (_ = _.slice(0, -2));
247
- const n = " * ";
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
- return re(w, $) ? { command: w, requiresConfirmation: !0 } : { command: w, requiresConfirmation: !1 };
252
- } else if (d === _ || d.startsWith(_ + " "))
253
- return re(w, $) ? { command: w, requiresConfirmation: !0 } : { command: w, requiresConfirmation: !1 };
257
+ if (Ce.includes(String(t.program)))
258
+ return re(t, j, l) ? { command: t, requiresConfirmation: !0 } : { command: t, requiresConfirmation: !1 };
259
+ for (let h of [...ye, ...W]) {
260
+ h.endsWith(" *") && (h = h.slice(0, -2));
261
+ const a = " * ";
262
+ if (h.includes(a) && !h.startsWith(a)) {
263
+ const c = h.split(a).map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
264
+ if (new RegExp(`^${c.join(" .* ")}(\\s.*)?$`).test(n))
265
+ return re(t, j, l) ? { command: t, requiresConfirmation: !0 } : { command: t, requiresConfirmation: !1 };
266
+ } else if (n === h || n.startsWith(h + " "))
267
+ return re(t, j, l) ? { command: t, requiresConfirmation: !0 } : { command: t, requiresConfirmation: !1 };
254
268
  }
255
- return { command: w, requiresConfirmation: !0 };
269
+ return { command: t, requiresConfirmation: !0 };
256
270
  });
257
- return { requiresConfirmation: z.some((w) => w.requiresConfirmation), parts: z };
271
+ return { requiresConfirmation: U.some((t) => t.requiresConfirmation), parts: U };
258
272
  }
259
273
  var ie = {}, oe;
260
- function Ae() {
274
+ function ke() {
261
275
  return oe || (oe = 1, function(x) {
262
276
  (() => {
263
- var $ = { 349: (w, r, l) => {
264
- Object.defineProperty(r, "__esModule", { value: !0 }), r.CircularList = void 0;
277
+ var j = { 349: (w, t, l) => {
278
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.CircularList = void 0;
265
279
  const d = l(460), _ = l(844);
266
280
  class n extends _.Disposable {
267
281
  constructor(a) {
@@ -272,22 +286,22 @@ function Ae() {
272
286
  }
273
287
  set maxLength(a) {
274
288
  if (this._maxLength === a) return;
275
- const h = new Array(a);
276
- for (let u = 0; u < Math.min(a, this.length); u++) h[u] = this._array[this._getCyclicIndex(u)];
277
- this._array = h, this._maxLength = a, this._startIndex = 0;
289
+ const c = new Array(a);
290
+ for (let u = 0; u < Math.min(a, this.length); u++) c[u] = this._array[this._getCyclicIndex(u)];
291
+ this._array = c, this._maxLength = a, this._startIndex = 0;
278
292
  }
279
293
  get length() {
280
294
  return this._length;
281
295
  }
282
296
  set length(a) {
283
- if (a > this._length) for (let h = this._length; h < a; h++) this._array[h] = void 0;
297
+ if (a > this._length) for (let c = this._length; c < a; c++) this._array[c] = void 0;
284
298
  this._length = a;
285
299
  }
286
300
  get(a) {
287
301
  return this._array[this._getCyclicIndex(a)];
288
302
  }
289
- set(a, h) {
290
- this._array[this._getCyclicIndex(a)] = h;
303
+ set(a, c) {
304
+ this._array[this._getCyclicIndex(a)] = c;
291
305
  }
292
306
  push(a) {
293
307
  this._array[this._getCyclicIndex(this._length)] = a, this._length === this._maxLength ? (this._startIndex = ++this._startIndex % this._maxLength, this.onTrimEmitter.fire(1)) : this._length++;
@@ -302,10 +316,10 @@ function Ae() {
302
316
  pop() {
303
317
  return this._array[this._getCyclicIndex(this._length-- - 1)];
304
318
  }
305
- splice(a, h, ...u) {
306
- if (h) {
307
- for (let e = a; e < this._length - h; e++) this._array[this._getCyclicIndex(e)] = this._array[this._getCyclicIndex(e + h)];
308
- this._length -= h, this.onDeleteEmitter.fire({ index: a, amount: h });
319
+ splice(a, c, ...u) {
320
+ if (c) {
321
+ for (let e = a; e < this._length - c; e++) this._array[this._getCyclicIndex(e)] = this._array[this._getCyclicIndex(e + c)];
322
+ this._length -= c, this.onDeleteEmitter.fire({ index: a, amount: c });
309
323
  }
310
324
  for (let e = this._length - 1; e >= a; e--) this._array[this._getCyclicIndex(e + u.length)] = this._array[this._getCyclicIndex(e)];
311
325
  for (let e = 0; e < u.length; e++) this._array[this._getCyclicIndex(a + e)] = u[e];
@@ -317,34 +331,34 @@ function Ae() {
317
331
  trimStart(a) {
318
332
  a > this._length && (a = this._length), this._startIndex += a, this._length -= a, this.onTrimEmitter.fire(a);
319
333
  }
320
- shiftElements(a, h, u) {
321
- if (!(h <= 0)) {
334
+ shiftElements(a, c, u) {
335
+ if (!(c <= 0)) {
322
336
  if (a < 0 || a >= this._length) throw new Error("start argument out of range");
323
337
  if (a + u < 0) throw new Error("Cannot shift elements in list beyond index 0");
324
338
  if (u > 0) {
325
- for (let s = h - 1; s >= 0; s--) this.set(a + s + u, this.get(a + s));
326
- const e = a + h + u - this._length;
339
+ for (let r = c - 1; r >= 0; r--) this.set(a + r + u, this.get(a + r));
340
+ const e = a + c + u - this._length;
327
341
  if (e > 0) for (this._length += e; this._length > this._maxLength; ) this._length--, this._startIndex++, this.onTrimEmitter.fire(1);
328
- } else for (let e = 0; e < h; e++) this.set(a + e + u, this.get(a + e));
342
+ } else for (let e = 0; e < c; e++) this.set(a + e + u, this.get(a + e));
329
343
  }
330
344
  }
331
345
  _getCyclicIndex(a) {
332
346
  return (this._startIndex + a) % this._maxLength;
333
347
  }
334
348
  }
335
- r.CircularList = n;
336
- }, 439: (w, r) => {
337
- Object.defineProperty(r, "__esModule", { value: !0 }), r.clone = void 0, r.clone = function l(d, _ = 5) {
349
+ t.CircularList = n;
350
+ }, 439: (w, t) => {
351
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.clone = void 0, t.clone = function l(d, _ = 5) {
338
352
  if (typeof d != "object") return d;
339
353
  const n = Array.isArray(d) ? [] : {};
340
- for (const c in d) n[c] = _ <= 1 ? d[c] : d[c] && l(d[c], _ - 1);
354
+ for (const h in d) n[h] = _ <= 1 ? d[h] : d[h] && l(d[h], _ - 1);
341
355
  return n;
342
356
  };
343
- }, 969: (w, r, l) => {
344
- Object.defineProperty(r, "__esModule", { value: !0 }), r.CoreTerminal = void 0;
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);
357
+ }, 969: (w, t, l) => {
358
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.CoreTerminal = void 0;
359
+ const d = l(844), _ = l(585), n = l(348), h = l(866), a = l(744), c = l(302), u = l(83), e = l(460), r = l(753), i = l(480), s = l(994), f = l(282), p = l(435), S = l(981), y = l(660);
346
360
  let C = !1;
347
- class T extends d.Disposable {
361
+ class k extends d.Disposable {
348
362
  get onScroll() {
349
363
  return this._onScrollApi || (this._onScrollApi = this.register(new e.EventEmitter()), this._onScroll.event((E) => {
350
364
  this._onScrollApi?.fire(E.position);
@@ -366,11 +380,11 @@ function Ae() {
366
380
  for (const B in E) this.optionsService.options[B] = E[B];
367
381
  }
368
382
  constructor(E) {
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) => {
383
+ 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 c.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(h.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(r.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(s.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
384
  this._onScroll.fire({ position: this._bufferService.buffer.ydisp, source: 0 }), this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop, this._bufferService.buffer.scrollBottom);
371
385
  })), this.register(this._inputHandler.onScroll((B) => {
372
386
  this._onScroll.fire({ position: this._bufferService.buffer.ydisp, source: 0 }), this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop, this._bufferService.buffer.scrollBottom);
373
- })), this._writeBuffer = this.register(new S.WriteBuffer((B, k) => this._inputHandler.parse(B, k))), this.register((0, e.forwardEvent)(this._writeBuffer.onWriteParsed, this._onWriteParsed));
387
+ })), this._writeBuffer = this.register(new S.WriteBuffer((B, T) => this._inputHandler.parse(B, T))), this.register((0, e.forwardEvent)(this._writeBuffer.onWriteParsed, this._onWriteParsed));
374
388
  }
375
389
  write(E, B) {
376
390
  this._writeBuffer.write(E, B);
@@ -387,8 +401,8 @@ function Ae() {
387
401
  scroll(E, B = !1) {
388
402
  this._bufferService.scroll(E, B);
389
403
  }
390
- scrollLines(E, B, k) {
391
- this._bufferService.scrollLines(E, B, k);
404
+ scrollLines(E, B, T) {
405
+ this._bufferService.scrollLines(E, B, T);
392
406
  }
393
407
  scrollPages(E) {
394
408
  this.scrollLines(E * (this.rows - 1));
@@ -435,9 +449,9 @@ function Ae() {
435
449
  }
436
450
  }
437
451
  }
438
- r.CoreTerminal = T;
439
- }, 460: (w, r) => {
440
- Object.defineProperty(r, "__esModule", { value: !0 }), r.runAndSubscribe = r.forwardEvent = r.EventEmitter = void 0, r.EventEmitter = class {
452
+ t.CoreTerminal = k;
453
+ }, 460: (w, t) => {
454
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.runAndSubscribe = t.forwardEvent = t.EventEmitter = void 0, t.EventEmitter = class {
441
455
  constructor() {
442
456
  this._listeners = [], this._disposed = !1;
443
457
  }
@@ -459,27 +473,27 @@ function Ae() {
459
473
  clearListeners() {
460
474
  this._listeners && (this._listeners.length = 0);
461
475
  }
462
- }, r.forwardEvent = function(l, d) {
476
+ }, t.forwardEvent = function(l, d) {
463
477
  return l((_) => d.fire(_));
464
- }, r.runAndSubscribe = function(l, d) {
478
+ }, t.runAndSubscribe = function(l, d) {
465
479
  return d(void 0), l((_) => d(_));
466
480
  };
467
- }, 435: function(w, r, l) {
468
- var d = this && this.__decorate || function(P, o, m, g) {
481
+ }, 435: function(w, t, l) {
482
+ var d = this && this.__decorate || function(H, o, m, g) {
469
483
  var b, A = arguments.length, D = A < 3 ? o : g === null ? g = Object.getOwnPropertyDescriptor(o, m) : g;
470
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") D = Reflect.decorate(P, o, m, g);
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);
484
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") D = Reflect.decorate(H, o, m, g);
485
+ else for (var I = H.length - 1; I >= 0; I--) (b = H[I]) && (D = (A < 3 ? b(D) : A > 3 ? b(o, m, D) : b(o, m)) || D);
472
486
  return A > 3 && D && Object.defineProperty(o, m, D), D;
473
- }, _ = this && this.__param || function(P, o) {
487
+ }, _ = this && this.__param || function(H, o) {
474
488
  return function(m, g) {
475
- o(m, g, P);
489
+ o(m, g, H);
476
490
  };
477
491
  };
478
- Object.defineProperty(r, "__esModule", { value: !0 }), r.InputHandler = r.WindowsOptionsReportType = void 0;
479
- const n = l(584), c = l(116), a = l(15), h = l(844), u = l(482), e = l(437), s = l(460), i = l(643), t = l(511), f = l(734), p = l(585), S = l(480), y = l(242), C = l(351), T = l(941), j = { "(": 0, ")": 1, "*": 2, "+": 3, "-": 1, ".": 2 }, E = 131072;
480
- function B(P, o) {
481
- if (P > 24) return o.setWinLines || !1;
482
- switch (P) {
492
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.InputHandler = t.WindowsOptionsReportType = void 0;
493
+ const n = l(584), h = l(116), a = l(15), c = l(844), u = l(482), e = l(437), r = l(460), i = l(643), s = l(511), f = l(734), p = l(585), S = l(480), y = l(242), C = l(351), k = l(941), $ = { "(": 0, ")": 1, "*": 2, "+": 3, "-": 1, ".": 2 }, E = 131072;
494
+ function B(H, o) {
495
+ if (H > 24) return o.setWinLines || !1;
496
+ switch (H) {
483
497
  case 1:
484
498
  return !!o.restoreWin;
485
499
  case 2:
@@ -527,17 +541,17 @@ function Ae() {
527
541
  }
528
542
  return !1;
529
543
  }
530
- var k;
531
- (function(P) {
532
- P[P.GET_WIN_SIZE_PIXELS = 0] = "GET_WIN_SIZE_PIXELS", P[P.GET_CELL_SIZE_PIXELS = 1] = "GET_CELL_SIZE_PIXELS";
533
- })(k || (r.WindowsOptionsReportType = k = {}));
544
+ var T;
545
+ (function(H) {
546
+ H[H.GET_WIN_SIZE_PIXELS = 0] = "GET_WIN_SIZE_PIXELS", H[H.GET_CELL_SIZE_PIXELS = 1] = "GET_CELL_SIZE_PIXELS";
547
+ })(T || (t.WindowsOptionsReportType = T = {}));
534
548
  let G = 0;
535
- class V extends h.Disposable {
549
+ class V extends c.Disposable {
536
550
  getAttrData() {
537
551
  return this._curAttrData;
538
552
  }
539
- constructor(o, m, g, b, A, D, O, U, X = new a.EscapeSequenceParser()) {
540
- super(), this._bufferService = o, this._charsetService = m, this._coreService = g, this._logService = b, this._optionsService = A, this._oscLinkService = D, this._coreMouseService = O, this._unicodeService = U, this._parser = X, this._parseBuffer = new Uint32Array(4096), this._stringDecoder = new u.StringToUtf32(), this._utf8Decoder = new u.Utf8ToUtf32(), this._workCell = new t.CellData(), this._windowTitle = "", this._iconName = "", this._windowTitleStack = [], this._iconNameStack = [], this._curAttrData = e.DEFAULT_ATTR_DATA.clone(), this._eraseAttrDataInternal = e.DEFAULT_ATTR_DATA.clone(), this._onRequestBell = this.register(new s.EventEmitter()), this.onRequestBell = this._onRequestBell.event, this._onRequestRefreshRows = this.register(new s.EventEmitter()), this.onRequestRefreshRows = this._onRequestRefreshRows.event, this._onRequestReset = this.register(new s.EventEmitter()), this.onRequestReset = this._onRequestReset.event, this._onRequestSendFocus = this.register(new s.EventEmitter()), this.onRequestSendFocus = this._onRequestSendFocus.event, this._onRequestSyncScrollBar = this.register(new s.EventEmitter()), this.onRequestSyncScrollBar = this._onRequestSyncScrollBar.event, this._onRequestWindowsOptionsReport = this.register(new s.EventEmitter()), this.onRequestWindowsOptionsReport = this._onRequestWindowsOptionsReport.event, this._onA11yChar = this.register(new s.EventEmitter()), this.onA11yChar = this._onA11yChar.event, this._onA11yTab = this.register(new s.EventEmitter()), this.onA11yTab = this._onA11yTab.event, this._onCursorMove = this.register(new s.EventEmitter()), this.onCursorMove = this._onCursorMove.event, this._onLineFeed = this.register(new s.EventEmitter()), this.onLineFeed = this._onLineFeed.event, this._onScroll = this.register(new s.EventEmitter()), this.onScroll = this._onScroll.event, this._onTitleChange = this.register(new s.EventEmitter()), this.onTitleChange = this._onTitleChange.event, this._onColor = this.register(new s.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 F(this._bufferService), this._activeBuffer = this._bufferService.buffer, this.register(this._bufferService.buffers.onBufferActivate((v) => this._activeBuffer = v.activeBuffer)), this._parser.setCsiHandlerFallback((v, M) => {
553
+ constructor(o, m, g, b, A, D, I, N, z = new a.EscapeSequenceParser()) {
554
+ super(), this._bufferService = o, this._charsetService = m, this._coreService = g, this._logService = b, this._optionsService = A, this._oscLinkService = D, this._coreMouseService = I, this._unicodeService = N, this._parser = z, this._parseBuffer = new Uint32Array(4096), this._stringDecoder = new u.StringToUtf32(), this._utf8Decoder = new u.Utf8ToUtf32(), this._workCell = new s.CellData(), this._windowTitle = "", this._iconName = "", this._windowTitleStack = [], this._iconNameStack = [], this._curAttrData = e.DEFAULT_ATTR_DATA.clone(), this._eraseAttrDataInternal = e.DEFAULT_ATTR_DATA.clone(), this._onRequestBell = this.register(new r.EventEmitter()), this.onRequestBell = this._onRequestBell.event, this._onRequestRefreshRows = this.register(new r.EventEmitter()), this.onRequestRefreshRows = this._onRequestRefreshRows.event, this._onRequestReset = this.register(new r.EventEmitter()), this.onRequestReset = this._onRequestReset.event, this._onRequestSendFocus = this.register(new r.EventEmitter()), this.onRequestSendFocus = this._onRequestSendFocus.event, this._onRequestSyncScrollBar = this.register(new r.EventEmitter()), this.onRequestSyncScrollBar = this._onRequestSyncScrollBar.event, this._onRequestWindowsOptionsReport = this.register(new r.EventEmitter()), this.onRequestWindowsOptionsReport = this._onRequestWindowsOptionsReport.event, this._onA11yChar = this.register(new r.EventEmitter()), this.onA11yChar = this._onA11yChar.event, this._onA11yTab = this.register(new r.EventEmitter()), this.onA11yTab = this._onA11yTab.event, this._onCursorMove = this.register(new r.EventEmitter()), this.onCursorMove = this._onCursorMove.event, this._onLineFeed = this.register(new r.EventEmitter()), this.onLineFeed = this._onLineFeed.event, this._onScroll = this.register(new r.EventEmitter()), this.onScroll = this._onScroll.event, this._onTitleChange = this.register(new r.EventEmitter()), this.onTitleChange = this._onTitleChange.event, this._onColor = this.register(new r.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 F(this._bufferService), this._activeBuffer = this._bufferService.buffer, this.register(this._bufferService.buffers.onBufferActivate((v) => this._activeBuffer = v.activeBuffer)), this._parser.setCsiHandlerFallback((v, M) => {
541
555
  this._logService.debug("Unknown CSI code: ", { identifier: this._parser.identToString(v), params: M.toArray() });
542
556
  }), this._parser.setEscHandlerFallback((v) => {
543
557
  this._logService.debug("Unknown ESC code: ", { identifier: this._parser.identToString(v) });
@@ -548,7 +562,7 @@ function Ae() {
548
562
  }), this._parser.setDcsHandlerFallback((v, M, L) => {
549
563
  M === "HOOK" && (L = L.toArray()), this._logService.debug("Unknown DCS code: ", { identifier: this._parser.identToString(v), action: M, payload: L });
550
564
  }), this._parser.setPrintHandler((v, M, L) => this.print(v, M, L)), this._parser.registerCsiHandler({ final: "@" }, (v) => this.insertChars(v)), this._parser.registerCsiHandler({ intermediates: " ", final: "@" }, (v) => this.scrollLeft(v)), this._parser.registerCsiHandler({ final: "A" }, (v) => this.cursorUp(v)), this._parser.registerCsiHandler({ intermediates: " ", final: "A" }, (v) => this.scrollRight(v)), this._parser.registerCsiHandler({ final: "B" }, (v) => this.cursorDown(v)), this._parser.registerCsiHandler({ final: "C" }, (v) => this.cursorForward(v)), this._parser.registerCsiHandler({ final: "D" }, (v) => this.cursorBackward(v)), this._parser.registerCsiHandler({ final: "E" }, (v) => this.cursorNextLine(v)), this._parser.registerCsiHandler({ final: "F" }, (v) => this.cursorPrecedingLine(v)), this._parser.registerCsiHandler({ final: "G" }, (v) => this.cursorCharAbsolute(v)), this._parser.registerCsiHandler({ final: "H" }, (v) => this.cursorPosition(v)), this._parser.registerCsiHandler({ final: "I" }, (v) => this.cursorForwardTab(v)), this._parser.registerCsiHandler({ final: "J" }, (v) => this.eraseInDisplay(v, !1)), this._parser.registerCsiHandler({ prefix: "?", final: "J" }, (v) => this.eraseInDisplay(v, !0)), this._parser.registerCsiHandler({ final: "K" }, (v) => this.eraseInLine(v, !1)), this._parser.registerCsiHandler({ prefix: "?", final: "K" }, (v) => this.eraseInLine(v, !0)), this._parser.registerCsiHandler({ final: "L" }, (v) => this.insertLines(v)), this._parser.registerCsiHandler({ final: "M" }, (v) => this.deleteLines(v)), this._parser.registerCsiHandler({ final: "P" }, (v) => this.deleteChars(v)), this._parser.registerCsiHandler({ final: "S" }, (v) => this.scrollUp(v)), this._parser.registerCsiHandler({ final: "T" }, (v) => this.scrollDown(v)), this._parser.registerCsiHandler({ final: "X" }, (v) => this.eraseChars(v)), this._parser.registerCsiHandler({ final: "Z" }, (v) => this.cursorBackwardTab(v)), this._parser.registerCsiHandler({ final: "`" }, (v) => this.charPosAbsolute(v)), this._parser.registerCsiHandler({ final: "a" }, (v) => this.hPositionRelative(v)), this._parser.registerCsiHandler({ final: "b" }, (v) => this.repeatPrecedingCharacter(v)), this._parser.registerCsiHandler({ final: "c" }, (v) => this.sendDeviceAttributesPrimary(v)), this._parser.registerCsiHandler({ prefix: ">", final: "c" }, (v) => this.sendDeviceAttributesSecondary(v)), this._parser.registerCsiHandler({ final: "d" }, (v) => this.linePosAbsolute(v)), this._parser.registerCsiHandler({ final: "e" }, (v) => this.vPositionRelative(v)), this._parser.registerCsiHandler({ final: "f" }, (v) => this.hVPosition(v)), this._parser.registerCsiHandler({ final: "g" }, (v) => this.tabClear(v)), this._parser.registerCsiHandler({ final: "h" }, (v) => this.setMode(v)), this._parser.registerCsiHandler({ prefix: "?", final: "h" }, (v) => this.setModePrivate(v)), this._parser.registerCsiHandler({ final: "l" }, (v) => this.resetMode(v)), this._parser.registerCsiHandler({ prefix: "?", final: "l" }, (v) => this.resetModePrivate(v)), this._parser.registerCsiHandler({ final: "m" }, (v) => this.charAttributes(v)), this._parser.registerCsiHandler({ final: "n" }, (v) => this.deviceStatus(v)), this._parser.registerCsiHandler({ prefix: "?", final: "n" }, (v) => this.deviceStatusPrivate(v)), this._parser.registerCsiHandler({ intermediates: "!", final: "p" }, (v) => this.softReset(v)), this._parser.registerCsiHandler({ intermediates: " ", final: "q" }, (v) => this.setCursorStyle(v)), this._parser.registerCsiHandler({ final: "r" }, (v) => this.setScrollRegion(v)), this._parser.registerCsiHandler({ final: "s" }, (v) => this.saveCursor(v)), this._parser.registerCsiHandler({ final: "t" }, (v) => this.windowOptions(v)), this._parser.registerCsiHandler({ final: "u" }, (v) => this.restoreCursor(v)), this._parser.registerCsiHandler({ intermediates: "'", final: "}" }, (v) => this.insertColumns(v)), this._parser.registerCsiHandler({ intermediates: "'", final: "~" }, (v) => this.deleteColumns(v)), this._parser.registerCsiHandler({ intermediates: '"', final: "q" }, (v) => this.selectProtected(v)), this._parser.registerCsiHandler({ intermediates: "$", final: "p" }, (v) => this.requestMode(v, !0)), this._parser.registerCsiHandler({ prefix: "?", intermediates: "$", final: "p" }, (v) => this.requestMode(v, !1)), this._parser.setExecuteHandler(n.C0.BEL, () => this.bell()), this._parser.setExecuteHandler(n.C0.LF, () => this.lineFeed()), this._parser.setExecuteHandler(n.C0.VT, () => this.lineFeed()), this._parser.setExecuteHandler(n.C0.FF, () => this.lineFeed()), this._parser.setExecuteHandler(n.C0.CR, () => this.carriageReturn()), this._parser.setExecuteHandler(n.C0.BS, () => this.backspace()), this._parser.setExecuteHandler(n.C0.HT, () => this.tab()), this._parser.setExecuteHandler(n.C0.SO, () => this.shiftOut()), this._parser.setExecuteHandler(n.C0.SI, () => this.shiftIn()), this._parser.setExecuteHandler(n.C1.IND, () => this.index()), this._parser.setExecuteHandler(n.C1.NEL, () => this.nextLine()), this._parser.setExecuteHandler(n.C1.HTS, () => this.tabSet()), this._parser.registerOscHandler(0, new y.OscHandler((v) => (this.setTitle(v), this.setIconName(v), !0))), this._parser.registerOscHandler(1, new y.OscHandler((v) => this.setIconName(v))), this._parser.registerOscHandler(2, new y.OscHandler((v) => this.setTitle(v))), this._parser.registerOscHandler(4, new y.OscHandler((v) => this.setOrReportIndexedColor(v))), this._parser.registerOscHandler(8, new y.OscHandler((v) => this.setHyperlink(v))), this._parser.registerOscHandler(10, new y.OscHandler((v) => this.setOrReportFgColor(v))), this._parser.registerOscHandler(11, new y.OscHandler((v) => this.setOrReportBgColor(v))), this._parser.registerOscHandler(12, new y.OscHandler((v) => this.setOrReportCursorColor(v))), this._parser.registerOscHandler(104, new y.OscHandler((v) => this.restoreIndexedColor(v))), this._parser.registerOscHandler(110, new y.OscHandler((v) => this.restoreFgColor(v))), this._parser.registerOscHandler(111, new y.OscHandler((v) => this.restoreBgColor(v))), this._parser.registerOscHandler(112, new y.OscHandler((v) => this.restoreCursorColor(v))), 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());
551
- for (const v in c.CHARSETS) this._parser.registerEscHandler({ intermediates: "(", final: v }, () => this.selectCharset("(" + v)), this._parser.registerEscHandler({ intermediates: ")", final: v }, () => this.selectCharset(")" + v)), this._parser.registerEscHandler({ intermediates: "*", final: v }, () => this.selectCharset("*" + v)), this._parser.registerEscHandler({ intermediates: "+", final: v }, () => this.selectCharset("+" + v)), this._parser.registerEscHandler({ intermediates: "-", final: v }, () => this.selectCharset("-" + v)), this._parser.registerEscHandler({ intermediates: ".", final: v }, () => this.selectCharset("." + v)), this._parser.registerEscHandler({ intermediates: "/", final: v }, () => this.selectCharset("/" + v));
565
+ for (const v in h.CHARSETS) this._parser.registerEscHandler({ intermediates: "(", final: v }, () => this.selectCharset("(" + v)), this._parser.registerEscHandler({ intermediates: ")", final: v }, () => this.selectCharset(")" + v)), this._parser.registerEscHandler({ intermediates: "*", final: v }, () => this.selectCharset("*" + v)), this._parser.registerEscHandler({ intermediates: "+", final: v }, () => this.selectCharset("+" + v)), this._parser.registerEscHandler({ intermediates: "-", final: v }, () => this.selectCharset("-" + v)), this._parser.registerEscHandler({ intermediates: ".", final: v }, () => this.selectCharset("." + v)), this._parser.registerEscHandler({ intermediates: "/", final: v }, () => this.selectCharset("/" + v));
552
566
  this._parser.registerEscHandler({ intermediates: "#", final: "8" }, () => this.screenAlignmentPattern()), this._parser.setErrorHandler((v) => (this._logService.error("Parsing error: ", v), v)), this._parser.registerDcsHandler({ intermediates: "$", final: "q" }, new C.DcsHandler((v, M) => this.requestStatusString(v, M)));
553
567
  }
554
568
  _preserveStack(o, m, g, b) {
@@ -565,51 +579,51 @@ function Ae() {
565
579
  }
566
580
  parse(o, m) {
567
581
  let g, b = this._activeBuffer.x, A = this._activeBuffer.y, D = 0;
568
- const O = this._parseStack.paused;
569
- if (O) {
582
+ const I = this._parseStack.paused;
583
+ if (I) {
570
584
  if (g = this._parser.parse(this._parseBuffer, this._parseStack.decodedLength, m)) return this._logSlowResolvingAsync(g), g;
571
585
  b = this._parseStack.cursorStartX, A = this._parseStack.cursorStartY, this._parseStack.paused = !1, o.length > E && (D = this._parseStack.position + E);
572
586
  }
573
- if (this._logService.logLevel <= p.LogLevelEnum.DEBUG && this._logService.debug("parsing data" + (typeof o == "string" ? ` "${o}"` : ` "${Array.prototype.map.call(o, (v) => String.fromCharCode(v)).join("")}"`), typeof o == "string" ? o.split("").map((v) => v.charCodeAt(0)) : o), this._parseBuffer.length < o.length && this._parseBuffer.length < E && (this._parseBuffer = new Uint32Array(Math.min(o.length, E))), O || this._dirtyRowTracker.clearRange(), o.length > E) for (let v = D; v < o.length; v += E) {
587
+ if (this._logService.logLevel <= p.LogLevelEnum.DEBUG && this._logService.debug("parsing data" + (typeof o == "string" ? ` "${o}"` : ` "${Array.prototype.map.call(o, (v) => String.fromCharCode(v)).join("")}"`), typeof o == "string" ? o.split("").map((v) => v.charCodeAt(0)) : o), this._parseBuffer.length < o.length && this._parseBuffer.length < E && (this._parseBuffer = new Uint32Array(Math.min(o.length, E))), I || this._dirtyRowTracker.clearRange(), o.length > E) for (let v = D; v < o.length; v += E) {
574
588
  const M = v + E < o.length ? v + E : o.length, L = typeof o == "string" ? this._stringDecoder.decode(o.substring(v, M), this._parseBuffer) : this._utf8Decoder.decode(o.subarray(v, M), this._parseBuffer);
575
589
  if (g = this._parser.parse(this._parseBuffer, L)) return this._preserveStack(b, A, L, v), this._logSlowResolvingAsync(g), g;
576
590
  }
577
- else if (!O) {
591
+ else if (!I) {
578
592
  const v = typeof o == "string" ? this._stringDecoder.decode(o, this._parseBuffer) : this._utf8Decoder.decode(o, this._parseBuffer);
579
593
  if (g = this._parser.parse(this._parseBuffer, v)) return this._preserveStack(b, A, v, 0), this._logSlowResolvingAsync(g), g;
580
594
  }
581
595
  this._activeBuffer.x === b && this._activeBuffer.y === A || this._onCursorMove.fire();
582
- const U = this._dirtyRowTracker.end + (this._bufferService.buffer.ybase - this._bufferService.buffer.ydisp), X = this._dirtyRowTracker.start + (this._bufferService.buffer.ybase - this._bufferService.buffer.ydisp);
583
- X < this._bufferService.rows && this._onRequestRefreshRows.fire(Math.min(X, this._bufferService.rows - 1), Math.min(U, this._bufferService.rows - 1));
596
+ const N = this._dirtyRowTracker.end + (this._bufferService.buffer.ybase - this._bufferService.buffer.ydisp), z = this._dirtyRowTracker.start + (this._bufferService.buffer.ybase - this._bufferService.buffer.ydisp);
597
+ z < this._bufferService.rows && this._onRequestRefreshRows.fire(Math.min(z, this._bufferService.rows - 1), Math.min(N, this._bufferService.rows - 1));
584
598
  }
585
599
  print(o, m, g) {
586
600
  let b, A;
587
- const D = this._charsetService.charset, O = this._optionsService.rawOptions.screenReaderMode, U = this._bufferService.cols, X = this._coreService.decPrivateModes.wraparound, v = this._coreService.modes.insertMode, M = this._curAttrData;
601
+ const D = this._charsetService.charset, I = this._optionsService.rawOptions.screenReaderMode, N = this._bufferService.cols, z = this._coreService.decPrivateModes.wraparound, v = this._coreService.modes.insertMode, M = this._curAttrData;
588
602
  let L = this._activeBuffer.lines.get(this._activeBuffer.ybase + this._activeBuffer.y);
589
603
  this._dirtyRowTracker.markDirty(this._activeBuffer.y), this._activeBuffer.x && g - m > 0 && L.getWidth(this._activeBuffer.x - 1) === 2 && L.setCellFromCodepoint(this._activeBuffer.x - 1, 0, 1, M);
590
- let H = this._parser.precedingJoinState;
604
+ let R = this._parser.precedingJoinState;
591
605
  for (let J = m; J < g; ++J) {
592
606
  if (b = o[J], b < 127 && D) {
593
607
  const Y = D[String.fromCharCode(b)];
594
608
  Y && (b = Y.charCodeAt(0));
595
609
  }
596
- const Z = this._unicodeService.charProperties(b, H);
610
+ const Z = this._unicodeService.charProperties(b, R);
597
611
  A = S.UnicodeService.extractWidth(Z);
598
- const te = S.UnicodeService.extractShouldJoin(Z), K = te ? S.UnicodeService.extractWidth(H) : 0;
599
- if (H = Z, O && this._onA11yChar.fire((0, u.stringFromCodePoint)(b)), this._getCurrentLinkId() && this._oscLinkService.addLineToLink(this._getCurrentLinkId(), this._activeBuffer.ybase + this._activeBuffer.y), this._activeBuffer.x + A - K > U) {
600
- if (X) {
612
+ const te = S.UnicodeService.extractShouldJoin(Z), K = te ? S.UnicodeService.extractWidth(R) : 0;
613
+ if (R = Z, I && this._onA11yChar.fire((0, u.stringFromCodePoint)(b)), this._getCurrentLinkId() && this._oscLinkService.addLineToLink(this._getCurrentLinkId(), this._activeBuffer.ybase + this._activeBuffer.y), this._activeBuffer.x + A - K > N) {
614
+ if (z) {
601
615
  const Y = L;
602
616
  let Q = this._activeBuffer.x - K;
603
- for (this._activeBuffer.x = K, 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), L = this._activeBuffer.lines.get(this._activeBuffer.ybase + this._activeBuffer.y), K > 0 && L instanceof e.BufferLine && L.copyCellsFrom(Y, Q, 0, K, !1); Q < U; ) Y.setCellFromCodepoint(Q++, 0, 1, M);
604
- } else if (this._activeBuffer.x = U - 1, A === 2) continue;
617
+ for (this._activeBuffer.x = K, 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), L = this._activeBuffer.lines.get(this._activeBuffer.ybase + this._activeBuffer.y), K > 0 && L instanceof e.BufferLine && L.copyCellsFrom(Y, Q, 0, K, !1); Q < N; ) Y.setCellFromCodepoint(Q++, 0, 1, M);
618
+ } else if (this._activeBuffer.x = N - 1, A === 2) continue;
605
619
  }
606
620
  if (te && this._activeBuffer.x) {
607
621
  const Y = L.getWidth(this._activeBuffer.x - 1) ? 1 : 2;
608
622
  L.addCodepointToCell(this._activeBuffer.x - Y, b, A);
609
623
  for (let Q = A - K; --Q >= 0; ) L.setCellFromCodepoint(this._activeBuffer.x++, 0, 0, M);
610
- } else if (v && (L.insertCells(this._activeBuffer.x, A - K, this._activeBuffer.getNullCell(M)), L.getWidth(U - 1) === 2 && L.setCellFromCodepoint(U - 1, i.NULL_CELL_CODE, i.NULL_CELL_WIDTH, M)), L.setCellFromCodepoint(this._activeBuffer.x++, b, A, M), A > 0) for (; --A; ) L.setCellFromCodepoint(this._activeBuffer.x++, 0, 0, M);
624
+ } else if (v && (L.insertCells(this._activeBuffer.x, A - K, this._activeBuffer.getNullCell(M)), L.getWidth(N - 1) === 2 && L.setCellFromCodepoint(N - 1, i.NULL_CELL_CODE, i.NULL_CELL_WIDTH, M)), L.setCellFromCodepoint(this._activeBuffer.x++, b, A, M), A > 0) for (; --A; ) L.setCellFromCodepoint(this._activeBuffer.x++, 0, 0, M);
611
625
  }
612
- this._parser.precedingJoinState = H, this._activeBuffer.x < U && g - m > 0 && L.getWidth(this._activeBuffer.x) === 0 && !L.hasContent(this._activeBuffer.x) && L.setCellFromCodepoint(this._activeBuffer.x, 0, 1, M), this._dirtyRowTracker.markDirty(this._activeBuffer.y);
626
+ this._parser.precedingJoinState = R, this._activeBuffer.x < N && g - m > 0 && L.getWidth(this._activeBuffer.x) === 0 && !L.hasContent(this._activeBuffer.x) && L.setCellFromCodepoint(this._activeBuffer.x, 0, 1, M), this._dirtyRowTracker.markDirty(this._activeBuffer.y);
613
627
  }
614
628
  registerCsiHandler(o, m) {
615
629
  return o.final !== "t" || o.prefix || o.intermediates ? this._parser.registerCsiHandler(o, m) : this._parser.registerCsiHandler(o, (g) => !B(g.params[0], this._optionsService.rawOptions.windowOptions) || m(g));
@@ -846,15 +860,15 @@ function Ae() {
846
860
  repeatPrecedingCharacter(o) {
847
861
  const m = this._parser.precedingJoinState;
848
862
  if (!m) return !0;
849
- const g = o.params[0] || 1, b = S.UnicodeService.extractWidth(m), A = this._activeBuffer.x - b, D = this._activeBuffer.lines.get(this._activeBuffer.ybase + this._activeBuffer.y).getString(A), O = new Uint32Array(D.length * g);
850
- let U = 0;
863
+ const g = o.params[0] || 1, b = S.UnicodeService.extractWidth(m), A = this._activeBuffer.x - b, D = this._activeBuffer.lines.get(this._activeBuffer.ybase + this._activeBuffer.y).getString(A), I = new Uint32Array(D.length * g);
864
+ let N = 0;
851
865
  for (let v = 0; v < D.length; ) {
852
866
  const M = D.codePointAt(v) || 0;
853
- O[U++] = M, v += M > 65535 ? 2 : 1;
867
+ I[N++] = M, v += M > 65535 ? 2 : 1;
854
868
  }
855
- let X = U;
856
- for (let v = 1; v < g; ++v) O.copyWithin(X, 0, U), X += U;
857
- return this.print(O, 0, X), !0;
869
+ let z = N;
870
+ for (let v = 1; v < g; ++v) I.copyWithin(z, 0, N), z += N;
871
+ return this.print(I, 0, z), !0;
858
872
  }
859
873
  sendDeviceAttributesPrimary(o) {
860
874
  return o.params[0] > 0 || (this._is("xterm") || this._is("rxvt-unicode") || this._is("screen") ? this._coreService.triggerDataEvent(n.C0.ESC + "[?1;2c") : this._is("linux") && this._coreService.triggerDataEvent(n.C0.ESC + "[?6c")), !0;
@@ -881,7 +895,7 @@ function Ae() {
881
895
  this._coreService.decPrivateModes.applicationCursorKeys = !0;
882
896
  break;
883
897
  case 2:
884
- this._charsetService.setgCharset(0, c.DEFAULT_CHARSET), this._charsetService.setgCharset(1, c.DEFAULT_CHARSET), this._charsetService.setgCharset(2, c.DEFAULT_CHARSET), this._charsetService.setgCharset(3, c.DEFAULT_CHARSET);
898
+ this._charsetService.setgCharset(0, h.DEFAULT_CHARSET), this._charsetService.setgCharset(1, h.DEFAULT_CHARSET), this._charsetService.setgCharset(2, h.DEFAULT_CHARSET), this._charsetService.setgCharset(3, h.DEFAULT_CHARSET);
885
899
  break;
886
900
  case 3:
887
901
  this._optionsService.rawOptions.windowOptions.setWinLines && (this._bufferService.resize(132, this._bufferService.rows), this._onRequestReset.fire());
@@ -1014,8 +1028,8 @@ function Ae() {
1014
1028
  return !0;
1015
1029
  }
1016
1030
  requestMode(o, m) {
1017
- const g = this._coreService.decPrivateModes, { activeProtocol: b, activeEncoding: A } = this._coreMouseService, D = this._coreService, { buffers: O, cols: U } = this._bufferService, { active: X, alt: v } = O, M = this._optionsService.rawOptions, L = (te) => te ? 1 : 2, H = o.params[0];
1018
- return J = H, Z = m ? H === 2 ? 4 : H === 4 ? L(D.modes.insertMode) : H === 12 ? 3 : H === 20 ? L(M.convertEol) : 0 : H === 1 ? L(g.applicationCursorKeys) : H === 3 ? M.windowOptions.setWinLines ? U === 80 ? 2 : U === 132 ? 1 : 0 : 0 : H === 6 ? L(g.origin) : H === 7 ? L(g.wraparound) : H === 8 ? 3 : H === 9 ? L(b === "X10") : H === 12 ? L(M.cursorBlink) : H === 25 ? L(!D.isCursorHidden) : H === 45 ? L(g.reverseWraparound) : H === 66 ? L(g.applicationKeypad) : H === 67 ? 4 : H === 1e3 ? L(b === "VT200") : H === 1002 ? L(b === "DRAG") : H === 1003 ? L(b === "ANY") : H === 1004 ? L(g.sendFocus) : H === 1005 ? 4 : H === 1006 ? L(A === "SGR") : H === 1015 ? 4 : H === 1016 ? L(A === "SGR_PIXELS") : H === 1048 ? 1 : H === 47 || H === 1047 || H === 1049 ? L(X === v) : H === 2004 ? L(g.bracketedPasteMode) : 0, D.triggerDataEvent(`${n.C0.ESC}[${m ? "" : "?"}${J};${Z}$y`), !0;
1031
+ const g = this._coreService.decPrivateModes, { activeProtocol: b, activeEncoding: A } = this._coreMouseService, D = this._coreService, { buffers: I, cols: N } = this._bufferService, { active: z, alt: v } = I, M = this._optionsService.rawOptions, L = (te) => te ? 1 : 2, R = o.params[0];
1032
+ return J = R, Z = m ? R === 2 ? 4 : R === 4 ? L(D.modes.insertMode) : R === 12 ? 3 : R === 20 ? L(M.convertEol) : 0 : R === 1 ? L(g.applicationCursorKeys) : R === 3 ? M.windowOptions.setWinLines ? N === 80 ? 2 : N === 132 ? 1 : 0 : 0 : R === 6 ? L(g.origin) : R === 7 ? L(g.wraparound) : R === 8 ? 3 : R === 9 ? L(b === "X10") : R === 12 ? L(M.cursorBlink) : R === 25 ? L(!D.isCursorHidden) : R === 45 ? L(g.reverseWraparound) : R === 66 ? L(g.applicationKeypad) : R === 67 ? 4 : R === 1e3 ? L(b === "VT200") : R === 1002 ? L(b === "DRAG") : R === 1003 ? L(b === "ANY") : R === 1004 ? L(g.sendFocus) : R === 1005 ? 4 : R === 1006 ? L(A === "SGR") : R === 1015 ? 4 : R === 1016 ? L(A === "SGR_PIXELS") : R === 1048 ? 1 : R === 47 || R === 1047 || R === 1049 ? L(z === v) : R === 2004 ? L(g.bracketedPasteMode) : 0, D.triggerDataEvent(`${n.C0.ESC}[${m ? "" : "?"}${J};${Z}$y`), !0;
1019
1033
  var J, Z;
1020
1034
  }
1021
1035
  _updateAttrColor(o, m, g, b, A) {
@@ -1026,17 +1040,17 @@ function Ae() {
1026
1040
  let A = 0, D = 0;
1027
1041
  do {
1028
1042
  if (b[D + A] = o.params[m + D], o.hasSubParams(m + D)) {
1029
- const O = o.getSubParams(m + D);
1030
- let U = 0;
1043
+ const I = o.getSubParams(m + D);
1044
+ let N = 0;
1031
1045
  do
1032
- b[1] === 5 && (A = 1), b[D + U + 1 + A] = O[U];
1033
- while (++U < O.length && U + D + 1 + A < b.length);
1046
+ b[1] === 5 && (A = 1), b[D + N + 1 + A] = I[N];
1047
+ while (++N < I.length && N + D + 1 + A < b.length);
1034
1048
  break;
1035
1049
  }
1036
1050
  if (b[1] === 5 && D + A >= 2 || b[1] === 2 && D + A >= 5) break;
1037
1051
  b[1] && (A = 1);
1038
1052
  } while (++D + m < o.length && D + A < b.length);
1039
- for (let O = 2; O < b.length; ++O) b[O] === -1 && (b[O] = 0);
1053
+ for (let I = 2; I < b.length; ++I) b[I] === -1 && (b[I] = 0);
1040
1054
  switch (b[0]) {
1041
1055
  case 38:
1042
1056
  g.fg = this._updateAttrColor(g.fg, b[1], b[3], b[4], b[5]);
@@ -1112,10 +1126,10 @@ function Ae() {
1112
1126
  const m = o.length > 1 ? o.params[1] : 0;
1113
1127
  switch (o.params[0]) {
1114
1128
  case 14:
1115
- m !== 2 && this._onRequestWindowsOptionsReport.fire(k.GET_WIN_SIZE_PIXELS);
1129
+ m !== 2 && this._onRequestWindowsOptionsReport.fire(T.GET_WIN_SIZE_PIXELS);
1116
1130
  break;
1117
1131
  case 16:
1118
- this._onRequestWindowsOptionsReport.fire(k.GET_CELL_SIZE_PIXELS);
1132
+ this._onRequestWindowsOptionsReport.fire(T.GET_CELL_SIZE_PIXELS);
1119
1133
  break;
1120
1134
  case 18:
1121
1135
  this._bufferService && this._coreService.triggerDataEvent(`${n.C0.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);
@@ -1148,8 +1162,8 @@ function Ae() {
1148
1162
  const D = parseInt(b);
1149
1163
  if (q(D)) if (A === "?") m.push({ type: 0, index: D });
1150
1164
  else {
1151
- const O = (0, T.parseColor)(A);
1152
- O && m.push({ type: 1, index: D, color: O });
1165
+ const I = (0, k.parseColor)(A);
1166
+ I && m.push({ type: 1, index: D, color: I });
1153
1167
  }
1154
1168
  }
1155
1169
  }
@@ -1173,7 +1187,7 @@ function Ae() {
1173
1187
  const g = o.split(";");
1174
1188
  for (let b = 0; b < g.length && !(m >= this._specialColors.length); ++b, ++m) if (g[b] === "?") this._onColor.fire([{ type: 0, index: this._specialColors[m] }]);
1175
1189
  else {
1176
- const A = (0, T.parseColor)(g[b]);
1190
+ const A = (0, k.parseColor)(g[b]);
1177
1191
  A && this._onColor.fire([{ type: 1, index: this._specialColors[m], color: A }]);
1178
1192
  }
1179
1193
  return !0;
@@ -1215,10 +1229,10 @@ function Ae() {
1215
1229
  return this._logService.debug("Switching back to normal keypad."), this._coreService.decPrivateModes.applicationKeypad = !1, this._onRequestSyncScrollBar.fire(), !0;
1216
1230
  }
1217
1231
  selectDefaultCharset() {
1218
- return this._charsetService.setgLevel(0), this._charsetService.setgCharset(0, c.DEFAULT_CHARSET), !0;
1232
+ return this._charsetService.setgLevel(0), this._charsetService.setgCharset(0, h.DEFAULT_CHARSET), !0;
1219
1233
  }
1220
1234
  selectCharset(o) {
1221
- return o.length !== 2 ? (this.selectDefaultCharset(), !0) : (o[0] === "/" || this._charsetService.setgCharset(j[o[0]], c.CHARSETS[o[1]] || c.DEFAULT_CHARSET), !0);
1235
+ return o.length !== 2 ? (this.selectDefaultCharset(), !0) : (o[0] === "/" || this._charsetService.setgCharset($[o[0]], h.CHARSETS[o[1]] || h.DEFAULT_CHARSET), !0);
1222
1236
  }
1223
1237
  index() {
1224
1238
  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;
@@ -1246,7 +1260,7 @@ function Ae() {
1246
1260
  return this._charsetService.setgLevel(o), !0;
1247
1261
  }
1248
1262
  screenAlignmentPattern() {
1249
- const o = new t.CellData();
1263
+ const o = new s.CellData();
1250
1264
  o.content = 4194373, o.fg = this._curAttrData.fg, o.bg = this._curAttrData.bg, this._setCursor(0, 0);
1251
1265
  for (let m = 0; m < this._bufferService.rows; ++m) {
1252
1266
  const g = this._activeBuffer.ybase + this._activeBuffer.y + m, b = this._activeBuffer.lines.get(g);
@@ -1262,34 +1276,34 @@ function Ae() {
1262
1276
  this._dirtyRowTracker.markRangeDirty(o, m);
1263
1277
  }
1264
1278
  }
1265
- r.InputHandler = V;
1279
+ t.InputHandler = V;
1266
1280
  let F = class {
1267
- constructor(P) {
1268
- this._bufferService = P, this.clearRange();
1281
+ constructor(H) {
1282
+ this._bufferService = H, this.clearRange();
1269
1283
  }
1270
1284
  clearRange() {
1271
1285
  this.start = this._bufferService.buffer.y, this.end = this._bufferService.buffer.y;
1272
1286
  }
1273
- markDirty(P) {
1274
- P < this.start ? this.start = P : P > this.end && (this.end = P);
1287
+ markDirty(H) {
1288
+ H < this.start ? this.start = H : H > this.end && (this.end = H);
1275
1289
  }
1276
- markRangeDirty(P, o) {
1277
- P > o && (G = P, P = o, o = G), P < this.start && (this.start = P), o > this.end && (this.end = o);
1290
+ markRangeDirty(H, o) {
1291
+ H > o && (G = H, H = o, o = G), H < this.start && (this.start = H), o > this.end && (this.end = o);
1278
1292
  }
1279
1293
  markAllDirty() {
1280
1294
  this.markRangeDirty(0, this._bufferService.rows - 1);
1281
1295
  }
1282
1296
  };
1283
- function q(P) {
1284
- return 0 <= P && P < 256;
1297
+ function q(H) {
1298
+ return 0 <= H && H < 256;
1285
1299
  }
1286
1300
  F = d([_(0, p.IBufferService)], F);
1287
- }, 844: (w, r) => {
1301
+ }, 844: (w, t) => {
1288
1302
  function l(d) {
1289
1303
  for (const _ of d) _.dispose();
1290
1304
  d.length = 0;
1291
1305
  }
1292
- Object.defineProperty(r, "__esModule", { value: !0 }), r.getDisposeArrayDisposable = r.disposeArray = r.toDisposable = r.MutableDisposable = r.Disposable = void 0, r.Disposable = class {
1306
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.getDisposeArrayDisposable = t.disposeArray = t.toDisposable = t.MutableDisposable = t.Disposable = void 0, t.Disposable = class {
1293
1307
  constructor() {
1294
1308
  this._disposables = [], this._isDisposed = !1;
1295
1309
  }
@@ -1305,7 +1319,7 @@ function Ae() {
1305
1319
  const _ = this._disposables.indexOf(d);
1306
1320
  _ !== -1 && this._disposables.splice(_, 1);
1307
1321
  }
1308
- }, r.MutableDisposable = class {
1322
+ }, t.MutableDisposable = class {
1309
1323
  constructor() {
1310
1324
  this._isDisposed = !1;
1311
1325
  }
@@ -1321,21 +1335,21 @@ function Ae() {
1321
1335
  dispose() {
1322
1336
  this._isDisposed = !0, this._value?.dispose(), this._value = void 0;
1323
1337
  }
1324
- }, r.toDisposable = function(d) {
1338
+ }, t.toDisposable = function(d) {
1325
1339
  return { dispose: d };
1326
- }, r.disposeArray = l, r.getDisposeArrayDisposable = function(d) {
1340
+ }, t.disposeArray = l, t.getDisposeArrayDisposable = function(d) {
1327
1341
  return { dispose: () => l(d) };
1328
1342
  };
1329
- }, 114: (w, r) => {
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, d = r.isNode ? "node" : navigator.platform;
1332
- r.isFirefox = l.includes("Firefox"), r.isLegacyEdge = l.includes("Edge"), r.isSafari = /^((?!chrome|android).)*safari/i.test(l), r.getSafariVersion = function() {
1333
- if (!r.isSafari) return 0;
1343
+ }, 114: (w, t) => {
1344
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.isChromeOS = t.isLinux = t.isWindows = t.isIphone = t.isIpad = t.isMac = t.getSafariVersion = t.isSafari = t.isLegacyEdge = t.isFirefox = t.isNode = void 0, t.isNode = typeof process < "u" && "title" in process;
1345
+ const l = t.isNode ? "node" : navigator.userAgent, d = t.isNode ? "node" : navigator.platform;
1346
+ t.isFirefox = l.includes("Firefox"), t.isLegacyEdge = l.includes("Edge"), t.isSafari = /^((?!chrome|android).)*safari/i.test(l), t.getSafariVersion = function() {
1347
+ if (!t.isSafari) return 0;
1334
1348
  const _ = l.match(/Version\/(\d+)/);
1335
1349
  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
- }, 226: (w, r, l) => {
1338
- Object.defineProperty(r, "__esModule", { value: !0 }), r.DebouncedIdleTask = r.IdleTaskQueue = r.PriorityTaskQueue = void 0;
1350
+ }, t.isMac = ["Macintosh", "MacIntel", "MacPPC", "Mac68K"].includes(d), t.isIpad = d === "iPad", t.isIphone = d === "iPhone", t.isWindows = ["Windows", "Win16", "Win32", "WinCE"].includes(d), t.isLinux = d.indexOf("Linux") >= 0, t.isChromeOS = /\bCrOS\b/.test(l);
1351
+ }, 226: (w, t, l) => {
1352
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.DebouncedIdleTask = t.IdleTaskQueue = t.PriorityTaskQueue = void 0;
1339
1353
  const d = l(114);
1340
1354
  class _ {
1341
1355
  constructor() {
@@ -1356,10 +1370,10 @@ function Ae() {
1356
1370
  }
1357
1371
  _process(a) {
1358
1372
  this._idleCallback = void 0;
1359
- let h = 0, u = 0, e = a.timeRemaining(), s = 0;
1373
+ let c = 0, u = 0, e = a.timeRemaining(), r = 0;
1360
1374
  for (; this._i < this._tasks.length; ) {
1361
- if (h = Date.now(), this._tasks[this._i]() || this._i++, h = Math.max(1, Date.now() - h), u = Math.max(h, u), s = a.timeRemaining(), 1.5 * u > s) return e - h < -20 && console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(e - h))}ms`), void this._start();
1362
- e = s;
1375
+ if (c = Date.now(), this._tasks[this._i]() || this._i++, c = Math.max(1, Date.now() - c), u = Math.max(c, u), r = a.timeRemaining(), 1.5 * u > r) return e - c < -20 && console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(e - c))}ms`), void this._start();
1376
+ e = r;
1363
1377
  }
1364
1378
  this.clear();
1365
1379
  }
@@ -1372,37 +1386,37 @@ function Ae() {
1372
1386
  clearTimeout(a);
1373
1387
  }
1374
1388
  _createDeadline(a) {
1375
- const h = Date.now() + a;
1376
- return { timeRemaining: () => Math.max(0, h - Date.now()) };
1389
+ const c = Date.now() + a;
1390
+ return { timeRemaining: () => Math.max(0, c - Date.now()) };
1377
1391
  }
1378
1392
  }
1379
- r.PriorityTaskQueue = n, r.IdleTaskQueue = !d.isNode && "requestIdleCallback" in window ? class extends _ {
1380
- _requestCallback(c) {
1381
- return requestIdleCallback(c);
1393
+ t.PriorityTaskQueue = n, t.IdleTaskQueue = !d.isNode && "requestIdleCallback" in window ? class extends _ {
1394
+ _requestCallback(h) {
1395
+ return requestIdleCallback(h);
1382
1396
  }
1383
- _cancelCallback(c) {
1384
- cancelIdleCallback(c);
1397
+ _cancelCallback(h) {
1398
+ cancelIdleCallback(h);
1385
1399
  }
1386
- } : n, r.DebouncedIdleTask = class {
1400
+ } : n, t.DebouncedIdleTask = class {
1387
1401
  constructor() {
1388
- this._queue = new r.IdleTaskQueue();
1402
+ this._queue = new t.IdleTaskQueue();
1389
1403
  }
1390
- set(c) {
1391
- this._queue.clear(), this._queue.enqueue(c);
1404
+ set(h) {
1405
+ this._queue.clear(), this._queue.enqueue(h);
1392
1406
  }
1393
1407
  flush() {
1394
1408
  this._queue.flush();
1395
1409
  }
1396
1410
  };
1397
- }, 282: (w, r, l) => {
1398
- Object.defineProperty(r, "__esModule", { value: !0 }), r.updateWindowsModeWrappedState = void 0;
1411
+ }, 282: (w, t, l) => {
1412
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.updateWindowsModeWrappedState = void 0;
1399
1413
  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);
1414
+ t.updateWindowsModeWrappedState = function(_) {
1415
+ const n = _.buffer.lines.get(_.buffer.ybase + _.buffer.y - 1), h = n?.get(_.cols - 1), a = _.buffer.lines.get(_.buffer.ybase + _.buffer.y);
1416
+ a && h && (a.isWrapped = h[d.CHAR_DATA_CODE_INDEX] !== d.NULL_CELL_CODE && h[d.CHAR_DATA_CODE_INDEX] !== d.WHITESPACE_CELL_CODE);
1403
1417
  };
1404
- }, 734: (w, r) => {
1405
- Object.defineProperty(r, "__esModule", { value: !0 }), r.ExtendedAttrs = r.AttributeData = void 0;
1418
+ }, 734: (w, t) => {
1419
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.ExtendedAttrs = t.AttributeData = void 0;
1406
1420
  class l {
1407
1421
  constructor() {
1408
1422
  this.fg = 0, this.bg = 0, this.extended = new d();
@@ -1533,7 +1547,7 @@ function Ae() {
1533
1547
  return this.extended.underlineVariantOffset;
1534
1548
  }
1535
1549
  }
1536
- r.AttributeData = l;
1550
+ t.AttributeData = l;
1537
1551
  class d {
1538
1552
  get ext() {
1539
1553
  return this._urlId ? -469762049 & this._ext | this.underlineStyle << 26 : this._ext;
@@ -1566,8 +1580,8 @@ function Ae() {
1566
1580
  set underlineVariantOffset(n) {
1567
1581
  this._ext &= 536870911, this._ext |= n << 29 & 3758096384;
1568
1582
  }
1569
- constructor(n = 0, c = 0) {
1570
- this._ext = 0, this._urlId = 0, this._ext = n, this._urlId = c;
1583
+ constructor(n = 0, h = 0) {
1584
+ this._ext = 0, this._urlId = 0, this._ext = n, this._urlId = h;
1571
1585
  }
1572
1586
  clone() {
1573
1587
  return new d(this._ext, this._urlId);
@@ -1576,13 +1590,13 @@ function Ae() {
1576
1590
  return this.underlineStyle === 0 && this._urlId === 0;
1577
1591
  }
1578
1592
  }
1579
- r.ExtendedAttrs = d;
1580
- }, 92: (w, r, l) => {
1581
- Object.defineProperty(r, "__esModule", { value: !0 }), r.Buffer = r.MAX_BUFFER_SIZE = void 0;
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
- r.MAX_BUFFER_SIZE = 4294967295, r.Buffer = class {
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 _.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();
1593
+ t.ExtendedAttrs = d;
1594
+ }, 92: (w, t, l) => {
1595
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.Buffer = t.MAX_BUFFER_SIZE = void 0;
1596
+ const d = l(349), _ = l(226), n = l(734), h = l(437), a = l(634), c = l(511), u = l(643), e = l(863), r = l(116);
1597
+ t.MAX_BUFFER_SIZE = 4294967295, t.Buffer = class {
1598
+ constructor(i, s, f) {
1599
+ this._hasScrollback = i, this._optionsService = s, 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 = h.DEFAULT_ATTR_DATA.clone(), this.savedCharset = r.DEFAULT_CHARSET, this.markers = [], this._nullCell = c.CellData.fromCharData([0, u.NULL_CELL_CHAR, u.NULL_CELL_WIDTH, u.NULL_CELL_CODE]), this._whitespaceCell = c.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
1600
  }
1587
1601
  getNullCell(i) {
1588
1602
  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;
@@ -1590,8 +1604,8 @@ function Ae() {
1590
1604
  getWhitespaceCell(i) {
1591
1605
  return i ? (this._whitespaceCell.fg = i.fg, this._whitespaceCell.bg = i.bg, this._whitespaceCell.extended = i.extended) : (this._whitespaceCell.fg = 0, this._whitespaceCell.bg = 0, this._whitespaceCell.extended = new n.ExtendedAttrs()), this._whitespaceCell;
1592
1606
  }
1593
- getBlankLine(i, t) {
1594
- return new c.BufferLine(this._bufferService.cols, this.getNullCell(i), t);
1607
+ getBlankLine(i, s) {
1608
+ return new h.BufferLine(this._bufferService.cols, this.getNullCell(i), s);
1595
1609
  }
1596
1610
  get hasScrollback() {
1597
1611
  return this._hasScrollback && this.lines.maxLength > this._rows;
@@ -1602,126 +1616,126 @@ function Ae() {
1602
1616
  }
1603
1617
  _getCorrectBufferLength(i) {
1604
1618
  if (!this._hasScrollback) return i;
1605
- const t = i + this._optionsService.rawOptions.scrollback;
1606
- return t > r.MAX_BUFFER_SIZE ? r.MAX_BUFFER_SIZE : t;
1619
+ const s = i + this._optionsService.rawOptions.scrollback;
1620
+ return s > t.MAX_BUFFER_SIZE ? t.MAX_BUFFER_SIZE : s;
1607
1621
  }
1608
1622
  fillViewportRows(i) {
1609
1623
  if (this.lines.length === 0) {
1610
- i === void 0 && (i = c.DEFAULT_ATTR_DATA);
1611
- let t = this._rows;
1612
- for (; t--; ) this.lines.push(this.getBlankLine(i));
1624
+ i === void 0 && (i = h.DEFAULT_ATTR_DATA);
1625
+ let s = this._rows;
1626
+ for (; s--; ) this.lines.push(this.getBlankLine(i));
1613
1627
  }
1614
1628
  }
1615
1629
  clear() {
1616
1630
  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
1631
  }
1618
- resize(i, t) {
1619
- const f = this.getNullCell(c.DEFAULT_ATTR_DATA);
1632
+ resize(i, s) {
1633
+ const f = this.getNullCell(h.DEFAULT_ATTR_DATA);
1620
1634
  let p = 0;
1621
- const S = this._getCorrectBufferLength(t);
1635
+ const S = this._getCorrectBufferLength(s);
1622
1636
  if (S > this.lines.maxLength && (this.lines.maxLength = S), this.lines.length > 0) {
1623
1637
  if (this._cols < i) for (let C = 0; C < this.lines.length; C++) p += +this.lines.get(C).resize(i, f);
1624
1638
  let y = 0;
1625
- if (this._rows < t) for (let C = this._rows; C < t; C++) this.lines.length < t + this.ybase && (this._optionsService.rawOptions.windowsMode || this._optionsService.rawOptions.windowsPty.backend !== void 0 || this._optionsService.rawOptions.windowsPty.buildNumber !== void 0 ? this.lines.push(new c.BufferLine(i, f)) : this.ybase > 0 && this.lines.length <= this.ybase + this.y + y + 1 ? (this.ybase--, y++, this.ydisp > 0 && this.ydisp--) : this.lines.push(new c.BufferLine(i, f)));
1626
- else for (let C = this._rows; C > t; C--) this.lines.length > t + this.ybase && (this.lines.length > this.ybase + this.y + 1 ? this.lines.pop() : (this.ybase++, this.ydisp++));
1639
+ if (this._rows < s) for (let C = this._rows; C < s; C++) this.lines.length < s + this.ybase && (this._optionsService.rawOptions.windowsMode || this._optionsService.rawOptions.windowsPty.backend !== void 0 || this._optionsService.rawOptions.windowsPty.buildNumber !== void 0 ? this.lines.push(new h.BufferLine(i, f)) : this.ybase > 0 && this.lines.length <= this.ybase + this.y + y + 1 ? (this.ybase--, y++, this.ydisp > 0 && this.ydisp--) : this.lines.push(new h.BufferLine(i, f)));
1640
+ else for (let C = this._rows; C > s; C--) this.lines.length > s + this.ybase && (this.lines.length > this.ybase + this.y + 1 ? this.lines.pop() : (this.ybase++, this.ydisp++));
1627
1641
  if (S < this.lines.maxLength) {
1628
1642
  const C = this.lines.length - S;
1629
1643
  C > 0 && (this.lines.trimStart(C), this.ybase = Math.max(this.ybase - C, 0), this.ydisp = Math.max(this.ydisp - C, 0), this.savedY = Math.max(this.savedY - C, 0)), this.lines.maxLength = S;
1630
1644
  }
1631
- this.x = Math.min(this.x, i - 1), this.y = Math.min(this.y, t - 1), y && (this.y += y), this.savedX = Math.min(this.savedX, i - 1), this.scrollTop = 0;
1645
+ this.x = Math.min(this.x, i - 1), this.y = Math.min(this.y, s - 1), y && (this.y += y), this.savedX = Math.min(this.savedX, i - 1), this.scrollTop = 0;
1632
1646
  }
1633
- if (this.scrollBottom = t - 1, this._isReflowEnabled && (this._reflow(i, t), this._cols > i)) for (let y = 0; y < this.lines.length; y++) p += +this.lines.get(y).resize(i, f);
1634
- this._cols = i, this._rows = t, this._memoryCleanupQueue.clear(), p > 0.1 * this.lines.length && (this._memoryCleanupPosition = 0, this._memoryCleanupQueue.enqueue(() => this._batchedMemoryCleanup()));
1647
+ if (this.scrollBottom = s - 1, this._isReflowEnabled && (this._reflow(i, s), this._cols > i)) for (let y = 0; y < this.lines.length; y++) p += +this.lines.get(y).resize(i, f);
1648
+ this._cols = i, this._rows = s, this._memoryCleanupQueue.clear(), p > 0.1 * this.lines.length && (this._memoryCleanupPosition = 0, this._memoryCleanupQueue.enqueue(() => this._batchedMemoryCleanup()));
1635
1649
  }
1636
1650
  _batchedMemoryCleanup() {
1637
1651
  let i = !0;
1638
1652
  this._memoryCleanupPosition >= this.lines.length && (this._memoryCleanupPosition = 0, i = !1);
1639
- let t = 0;
1640
- for (; this._memoryCleanupPosition < this.lines.length; ) if (t += this.lines.get(this._memoryCleanupPosition++).cleanupMemory(), t > 100) return !0;
1653
+ let s = 0;
1654
+ for (; this._memoryCleanupPosition < this.lines.length; ) if (s += this.lines.get(this._memoryCleanupPosition++).cleanupMemory(), s > 100) return !0;
1641
1655
  return i;
1642
1656
  }
1643
1657
  get _isReflowEnabled() {
1644
1658
  const i = this._optionsService.rawOptions.windowsPty;
1645
1659
  return i && i.buildNumber ? this._hasScrollback && i.backend === "conpty" && i.buildNumber >= 21376 : this._hasScrollback && !this._optionsService.rawOptions.windowsMode;
1646
1660
  }
1647
- _reflow(i, t) {
1648
- this._cols !== i && (i > this._cols ? this._reflowLarger(i, t) : this._reflowSmaller(i, t));
1661
+ _reflow(i, s) {
1662
+ this._cols !== i && (i > this._cols ? this._reflowLarger(i, s) : this._reflowSmaller(i, s));
1649
1663
  }
1650
- _reflowLarger(i, t) {
1651
- const f = (0, a.reflowLargerGetLinesToRemove)(this.lines, this._cols, i, this.ybase + this.y, this.getNullCell(c.DEFAULT_ATTR_DATA));
1664
+ _reflowLarger(i, s) {
1665
+ const f = (0, a.reflowLargerGetLinesToRemove)(this.lines, this._cols, i, this.ybase + this.y, this.getNullCell(h.DEFAULT_ATTR_DATA));
1652
1666
  if (f.length > 0) {
1653
1667
  const p = (0, a.reflowLargerCreateNewLayout)(this.lines, f);
1654
- (0, a.reflowLargerApplyNewLayout)(this.lines, p.layout), this._reflowLargerAdjustViewport(i, t, p.countRemoved);
1668
+ (0, a.reflowLargerApplyNewLayout)(this.lines, p.layout), this._reflowLargerAdjustViewport(i, s, p.countRemoved);
1655
1669
  }
1656
1670
  }
1657
- _reflowLargerAdjustViewport(i, t, f) {
1658
- const p = this.getNullCell(c.DEFAULT_ATTR_DATA);
1671
+ _reflowLargerAdjustViewport(i, s, f) {
1672
+ const p = this.getNullCell(h.DEFAULT_ATTR_DATA);
1659
1673
  let S = f;
1660
- for (; S-- > 0; ) this.ybase === 0 ? (this.y > 0 && this.y--, this.lines.length < t && this.lines.push(new c.BufferLine(i, p))) : (this.ydisp === this.ybase && this.ydisp--, this.ybase--);
1674
+ for (; S-- > 0; ) this.ybase === 0 ? (this.y > 0 && this.y--, this.lines.length < s && this.lines.push(new h.BufferLine(i, p))) : (this.ydisp === this.ybase && this.ydisp--, this.ybase--);
1661
1675
  this.savedY = Math.max(this.savedY - f, 0);
1662
1676
  }
1663
- _reflowSmaller(i, t) {
1664
- const f = this.getNullCell(c.DEFAULT_ATTR_DATA), p = [];
1677
+ _reflowSmaller(i, s) {
1678
+ const f = this.getNullCell(h.DEFAULT_ATTR_DATA), p = [];
1665
1679
  let S = 0;
1666
1680
  for (let y = this.lines.length - 1; y >= 0; y--) {
1667
1681
  let C = this.lines.get(y);
1668
1682
  if (!C || !C.isWrapped && C.getTrimmedLength() <= i) continue;
1669
- const T = [C];
1670
- for (; C.isWrapped && y > 0; ) C = this.lines.get(--y), T.unshift(C);
1671
- const j = this.ybase + this.y;
1672
- if (j >= y && j < y + T.length) continue;
1673
- const E = T[T.length - 1].getTrimmedLength(), B = (0, a.reflowSmallerGetNewLineLengths)(T, this._cols, i), k = B.length - T.length;
1683
+ const k = [C];
1684
+ for (; C.isWrapped && y > 0; ) C = this.lines.get(--y), k.unshift(C);
1685
+ const $ = this.ybase + this.y;
1686
+ if ($ >= y && $ < y + k.length) continue;
1687
+ const E = k[k.length - 1].getTrimmedLength(), B = (0, a.reflowSmallerGetNewLineLengths)(k, this._cols, i), T = B.length - k.length;
1674
1688
  let G;
1675
- G = this.ybase === 0 && this.y !== this.lines.length - 1 ? Math.max(0, this.y - this.lines.maxLength + k) : Math.max(0, this.lines.length - this.lines.maxLength + k);
1689
+ G = this.ybase === 0 && this.y !== this.lines.length - 1 ? Math.max(0, this.y - this.lines.maxLength + T) : Math.max(0, this.lines.length - this.lines.maxLength + T);
1676
1690
  const V = [];
1677
- for (let g = 0; g < k; g++) {
1678
- const b = this.getBlankLine(c.DEFAULT_ATTR_DATA, !0);
1691
+ for (let g = 0; g < T; g++) {
1692
+ const b = this.getBlankLine(h.DEFAULT_ATTR_DATA, !0);
1679
1693
  V.push(b);
1680
1694
  }
1681
- V.length > 0 && (p.push({ start: y + T.length + S, newLines: V }), S += V.length), T.push(...V);
1695
+ V.length > 0 && (p.push({ start: y + k.length + S, newLines: V }), S += V.length), k.push(...V);
1682
1696
  let F = B.length - 1, q = B[F];
1683
1697
  q === 0 && (F--, q = B[F]);
1684
- let P = T.length - k - 1, o = E;
1685
- for (; P >= 0; ) {
1698
+ let H = k.length - T - 1, o = E;
1699
+ for (; H >= 0; ) {
1686
1700
  const g = Math.min(o, q);
1687
- if (T[F] === void 0) break;
1688
- if (T[F].copyCellsFrom(T[P], o - g, q - g, g, !0), q -= g, q === 0 && (F--, q = B[F]), o -= g, o === 0) {
1689
- P--;
1690
- const b = Math.max(P, 0);
1691
- o = (0, a.getWrappedLineTrimmedLength)(T, b, this._cols);
1701
+ if (k[F] === void 0) break;
1702
+ if (k[F].copyCellsFrom(k[H], o - g, q - g, g, !0), q -= g, q === 0 && (F--, q = B[F]), o -= g, o === 0) {
1703
+ H--;
1704
+ const b = Math.max(H, 0);
1705
+ o = (0, a.getWrappedLineTrimmedLength)(k, b, this._cols);
1692
1706
  }
1693
1707
  }
1694
- for (let g = 0; g < T.length; g++) B[g] < i && T[g].setCell(B[g], f);
1695
- let m = k - G;
1696
- for (; m-- > 0; ) this.ybase === 0 ? this.y < t - 1 ? (this.y++, this.lines.pop()) : (this.ybase++, this.ydisp++) : this.ybase < Math.min(this.lines.maxLength, this.lines.length + S) - t && (this.ybase === this.ydisp && this.ydisp++, this.ybase++);
1697
- this.savedY = Math.min(this.savedY + k, this.ybase + t - 1);
1708
+ for (let g = 0; g < k.length; g++) B[g] < i && k[g].setCell(B[g], f);
1709
+ let m = T - G;
1710
+ for (; m-- > 0; ) this.ybase === 0 ? this.y < s - 1 ? (this.y++, this.lines.pop()) : (this.ybase++, this.ydisp++) : this.ybase < Math.min(this.lines.maxLength, this.lines.length + S) - s && (this.ybase === this.ydisp && this.ydisp++, this.ybase++);
1711
+ this.savedY = Math.min(this.savedY + T, this.ybase + s - 1);
1698
1712
  }
1699
1713
  if (p.length > 0) {
1700
1714
  const y = [], C = [];
1701
1715
  for (let F = 0; F < this.lines.length; F++) C.push(this.lines.get(F));
1702
- const T = this.lines.length;
1703
- let j = T - 1, E = 0, B = p[E];
1716
+ const k = this.lines.length;
1717
+ let $ = k - 1, E = 0, B = p[E];
1704
1718
  this.lines.length = Math.min(this.lines.maxLength, this.lines.length + S);
1705
- let k = 0;
1706
- for (let F = Math.min(this.lines.maxLength - 1, T + S - 1); F >= 0; F--) if (B && B.start > j + k) {
1719
+ let T = 0;
1720
+ for (let F = Math.min(this.lines.maxLength - 1, k + S - 1); F >= 0; F--) if (B && B.start > $ + T) {
1707
1721
  for (let q = B.newLines.length - 1; q >= 0; q--) this.lines.set(F--, B.newLines[q]);
1708
- F++, y.push({ index: j + 1, amount: B.newLines.length }), k += B.newLines.length, B = p[++E];
1709
- } else this.lines.set(F, C[j--]);
1722
+ F++, y.push({ index: $ + 1, amount: B.newLines.length }), T += B.newLines.length, B = p[++E];
1723
+ } else this.lines.set(F, C[$--]);
1710
1724
  let G = 0;
1711
1725
  for (let F = y.length - 1; F >= 0; F--) y[F].index += G, this.lines.onInsertEmitter.fire(y[F]), G += y[F].amount;
1712
- const V = Math.max(0, T + S - this.lines.maxLength);
1726
+ const V = Math.max(0, k + S - this.lines.maxLength);
1713
1727
  V > 0 && this.lines.onTrimEmitter.fire(V);
1714
1728
  }
1715
1729
  }
1716
- translateBufferLineToString(i, t, f = 0, p) {
1730
+ translateBufferLineToString(i, s, f = 0, p) {
1717
1731
  const S = this.lines.get(i);
1718
- return S ? S.translateToString(t, f, p) : "";
1732
+ return S ? S.translateToString(s, f, p) : "";
1719
1733
  }
1720
1734
  getWrappedRangeForLine(i) {
1721
- let t = i, f = i;
1722
- for (; t > 0 && this.lines.get(t).isWrapped; ) t--;
1735
+ let s = i, f = i;
1736
+ for (; s > 0 && this.lines.get(s).isWrapped; ) s--;
1723
1737
  for (; f + 1 < this.lines.length && this.lines.get(f + 1).isWrapped; ) f++;
1724
- return { first: t, last: f };
1738
+ return { first: s, last: f };
1725
1739
  }
1726
1740
  setupTabStops(i) {
1727
1741
  for (i != null ? this.tabs[i] || (i = this.prevStop(i)) : (this.tabs = {}, i = 0); i < this._cols; i += this._optionsService.rawOptions.tabStopWidth) this.tabs[i] = !0;
@@ -1736,7 +1750,7 @@ function Ae() {
1736
1750
  }
1737
1751
  clearMarkers(i) {
1738
1752
  this._isClearing = !0;
1739
- for (let t = 0; t < this.markers.length; t++) this.markers[t].line === i && (this.markers[t].dispose(), this.markers.splice(t--, 1));
1753
+ for (let s = 0; s < this.markers.length; s++) this.markers[s].line === i && (this.markers[s].dispose(), this.markers.splice(s--, 1));
1740
1754
  this._isClearing = !1;
1741
1755
  }
1742
1756
  clearAllMarkers() {
@@ -1745,37 +1759,37 @@ function Ae() {
1745
1759
  this._isClearing = !1;
1746
1760
  }
1747
1761
  addMarker(i) {
1748
- const t = new e.Marker(i);
1749
- return this.markers.push(t), t.register(this.lines.onTrim((f) => {
1750
- t.line -= f, t.line < 0 && t.dispose();
1751
- })), t.register(this.lines.onInsert((f) => {
1752
- t.line >= f.index && (t.line += f.amount);
1753
- })), t.register(this.lines.onDelete((f) => {
1754
- t.line >= f.index && t.line < f.index + f.amount && t.dispose(), t.line > f.index && (t.line -= f.amount);
1755
- })), t.register(t.onDispose(() => this._removeMarker(t))), t;
1762
+ const s = new e.Marker(i);
1763
+ return this.markers.push(s), s.register(this.lines.onTrim((f) => {
1764
+ s.line -= f, s.line < 0 && s.dispose();
1765
+ })), s.register(this.lines.onInsert((f) => {
1766
+ s.line >= f.index && (s.line += f.amount);
1767
+ })), s.register(this.lines.onDelete((f) => {
1768
+ s.line >= f.index && s.line < f.index + f.amount && s.dispose(), s.line > f.index && (s.line -= f.amount);
1769
+ })), s.register(s.onDispose(() => this._removeMarker(s))), s;
1756
1770
  }
1757
1771
  _removeMarker(i) {
1758
1772
  this._isClearing || this.markers.splice(this.markers.indexOf(i), 1);
1759
1773
  }
1760
1774
  };
1761
- }, 437: (w, r, l) => {
1762
- Object.defineProperty(r, "__esModule", { value: !0 }), r.BufferLine = r.DEFAULT_ATTR_DATA = void 0;
1763
- const d = l(734), _ = l(511), n = l(643), c = l(482);
1764
- r.DEFAULT_ATTR_DATA = Object.freeze(new d.AttributeData());
1775
+ }, 437: (w, t, l) => {
1776
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.BufferLine = t.DEFAULT_ATTR_DATA = void 0;
1777
+ const d = l(734), _ = l(511), n = l(643), h = l(482);
1778
+ t.DEFAULT_ATTR_DATA = Object.freeze(new d.AttributeData());
1765
1779
  let a = 0;
1766
- class h {
1767
- constructor(e, s, i = !1) {
1780
+ class c {
1781
+ constructor(e, r, i = !1) {
1768
1782
  this.isWrapped = i, this._combined = {}, this._extendedAttrs = {}, this._data = new Uint32Array(3 * e);
1769
- const t = s || _.CellData.fromCharData([0, n.NULL_CELL_CHAR, n.NULL_CELL_WIDTH, n.NULL_CELL_CODE]);
1770
- for (let f = 0; f < e; ++f) this.setCell(f, t);
1783
+ const s = r || _.CellData.fromCharData([0, n.NULL_CELL_CHAR, n.NULL_CELL_WIDTH, n.NULL_CELL_CODE]);
1784
+ for (let f = 0; f < e; ++f) this.setCell(f, s);
1771
1785
  this.length = e;
1772
1786
  }
1773
1787
  get(e) {
1774
- const s = this._data[3 * e + 0], i = 2097151 & s;
1775
- return [this._data[3 * e + 1], 2097152 & s ? this._combined[e] : i ? (0, c.stringFromCodePoint)(i) : "", s >> 22, 2097152 & s ? this._combined[e].charCodeAt(this._combined[e].length - 1) : i];
1788
+ const r = this._data[3 * e + 0], i = 2097151 & r;
1789
+ return [this._data[3 * e + 1], 2097152 & r ? this._combined[e] : i ? (0, h.stringFromCodePoint)(i) : "", r >> 22, 2097152 & r ? this._combined[e].charCodeAt(this._combined[e].length - 1) : i];
1776
1790
  }
1777
- set(e, s) {
1778
- this._data[3 * e + 1] = s[n.CHAR_DATA_ATTR_INDEX], s[n.CHAR_DATA_CHAR_INDEX].length > 1 ? (this._combined[e] = s[1], this._data[3 * e + 0] = 2097152 | e | s[n.CHAR_DATA_WIDTH_INDEX] << 22) : this._data[3 * e + 0] = s[n.CHAR_DATA_CHAR_INDEX].charCodeAt(0) | s[n.CHAR_DATA_WIDTH_INDEX] << 22;
1791
+ set(e, r) {
1792
+ this._data[3 * e + 1] = r[n.CHAR_DATA_ATTR_INDEX], r[n.CHAR_DATA_CHAR_INDEX].length > 1 ? (this._combined[e] = r[1], this._data[3 * e + 0] = 2097152 | e | r[n.CHAR_DATA_WIDTH_INDEX] << 22) : this._data[3 * e + 0] = r[n.CHAR_DATA_CHAR_INDEX].charCodeAt(0) | r[n.CHAR_DATA_WIDTH_INDEX] << 22;
1779
1793
  }
1780
1794
  getWidth(e) {
1781
1795
  return this._data[3 * e + 0] >> 22;
@@ -1793,67 +1807,67 @@ function Ae() {
1793
1807
  return 4194303 & this._data[3 * e + 0];
1794
1808
  }
1795
1809
  getCodePoint(e) {
1796
- const s = this._data[3 * e + 0];
1797
- return 2097152 & s ? this._combined[e].charCodeAt(this._combined[e].length - 1) : 2097151 & s;
1810
+ const r = this._data[3 * e + 0];
1811
+ return 2097152 & r ? this._combined[e].charCodeAt(this._combined[e].length - 1) : 2097151 & r;
1798
1812
  }
1799
1813
  isCombined(e) {
1800
1814
  return 2097152 & this._data[3 * e + 0];
1801
1815
  }
1802
1816
  getString(e) {
1803
- const s = this._data[3 * e + 0];
1804
- return 2097152 & s ? this._combined[e] : 2097151 & s ? (0, c.stringFromCodePoint)(2097151 & s) : "";
1817
+ const r = this._data[3 * e + 0];
1818
+ return 2097152 & r ? this._combined[e] : 2097151 & r ? (0, h.stringFromCodePoint)(2097151 & r) : "";
1805
1819
  }
1806
1820
  isProtected(e) {
1807
1821
  return 536870912 & this._data[3 * e + 2];
1808
1822
  }
1809
- loadCell(e, s) {
1810
- return a = 3 * e, s.content = this._data[a + 0], s.fg = this._data[a + 1], s.bg = this._data[a + 2], 2097152 & s.content && (s.combinedData = this._combined[e]), 268435456 & s.bg && (s.extended = this._extendedAttrs[e]), s;
1823
+ loadCell(e, r) {
1824
+ return a = 3 * e, r.content = this._data[a + 0], r.fg = this._data[a + 1], r.bg = this._data[a + 2], 2097152 & r.content && (r.combinedData = this._combined[e]), 268435456 & r.bg && (r.extended = this._extendedAttrs[e]), r;
1811
1825
  }
1812
- setCell(e, s) {
1813
- 2097152 & s.content && (this._combined[e] = s.combinedData), 268435456 & s.bg && (this._extendedAttrs[e] = s.extended), this._data[3 * e + 0] = s.content, this._data[3 * e + 1] = s.fg, this._data[3 * e + 2] = s.bg;
1826
+ setCell(e, r) {
1827
+ 2097152 & r.content && (this._combined[e] = r.combinedData), 268435456 & r.bg && (this._extendedAttrs[e] = r.extended), this._data[3 * e + 0] = r.content, this._data[3 * e + 1] = r.fg, this._data[3 * e + 2] = r.bg;
1814
1828
  }
1815
- setCellFromCodepoint(e, s, i, t) {
1816
- 268435456 & t.bg && (this._extendedAttrs[e] = t.extended), this._data[3 * e + 0] = s | i << 22, this._data[3 * e + 1] = t.fg, this._data[3 * e + 2] = t.bg;
1829
+ setCellFromCodepoint(e, r, i, s) {
1830
+ 268435456 & s.bg && (this._extendedAttrs[e] = s.extended), this._data[3 * e + 0] = r | i << 22, this._data[3 * e + 1] = s.fg, this._data[3 * e + 2] = s.bg;
1817
1831
  }
1818
- addCodepointToCell(e, s, i) {
1819
- let t = this._data[3 * e + 0];
1820
- 2097152 & t ? this._combined[e] += (0, c.stringFromCodePoint)(s) : 2097151 & t ? (this._combined[e] = (0, c.stringFromCodePoint)(2097151 & t) + (0, c.stringFromCodePoint)(s), t &= -2097152, t |= 2097152) : t = s | 4194304, i && (t &= -12582913, t |= i << 22), this._data[3 * e + 0] = t;
1832
+ addCodepointToCell(e, r, i) {
1833
+ let s = this._data[3 * e + 0];
1834
+ 2097152 & s ? this._combined[e] += (0, h.stringFromCodePoint)(r) : 2097151 & s ? (this._combined[e] = (0, h.stringFromCodePoint)(2097151 & s) + (0, h.stringFromCodePoint)(r), s &= -2097152, s |= 2097152) : s = r | 4194304, i && (s &= -12582913, s |= i << 22), this._data[3 * e + 0] = s;
1821
1835
  }
1822
- insertCells(e, s, i) {
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 _.CellData();
1825
- for (let f = this.length - e - s - 1; f >= 0; --f) this.setCell(e + s + f, this.loadCell(e + f, t));
1826
- for (let f = 0; f < s; ++f) this.setCell(e + f, i);
1827
- } else for (let t = e; t < this.length; ++t) this.setCell(t, i);
1836
+ insertCells(e, r, i) {
1837
+ if ((e %= this.length) && this.getWidth(e - 1) === 2 && this.setCellFromCodepoint(e - 1, 0, 1, i), r < this.length - e) {
1838
+ const s = new _.CellData();
1839
+ for (let f = this.length - e - r - 1; f >= 0; --f) this.setCell(e + r + f, this.loadCell(e + f, s));
1840
+ for (let f = 0; f < r; ++f) this.setCell(e + f, i);
1841
+ } else for (let s = e; s < this.length; ++s) this.setCell(s, i);
1828
1842
  this.getWidth(this.length - 1) === 2 && this.setCellFromCodepoint(this.length - 1, 0, 1, i);
1829
1843
  }
1830
- deleteCells(e, s, i) {
1831
- if (e %= this.length, s < this.length - e) {
1832
- const t = new _.CellData();
1833
- for (let f = 0; f < this.length - e - s; ++f) this.setCell(e + f, this.loadCell(e + s + f, t));
1834
- for (let f = this.length - s; f < this.length; ++f) this.setCell(f, i);
1835
- } else for (let t = e; t < this.length; ++t) this.setCell(t, i);
1844
+ deleteCells(e, r, i) {
1845
+ if (e %= this.length, r < this.length - e) {
1846
+ const s = new _.CellData();
1847
+ for (let f = 0; f < this.length - e - r; ++f) this.setCell(e + f, this.loadCell(e + r + f, s));
1848
+ for (let f = this.length - r; f < this.length; ++f) this.setCell(f, i);
1849
+ } else for (let s = e; s < this.length; ++s) this.setCell(s, i);
1836
1850
  e && this.getWidth(e - 1) === 2 && this.setCellFromCodepoint(e - 1, 0, 1, i), this.getWidth(e) !== 0 || this.hasContent(e) || this.setCellFromCodepoint(e, 0, 1, i);
1837
1851
  }
1838
- replaceCells(e, s, i, t = !1) {
1839
- if (t) for (e && this.getWidth(e - 1) === 2 && !this.isProtected(e - 1) && this.setCellFromCodepoint(e - 1, 0, 1, i), s < this.length && this.getWidth(s - 1) === 2 && !this.isProtected(s) && this.setCellFromCodepoint(s, 0, 1, i); e < s && e < this.length; ) this.isProtected(e) || this.setCell(e, i), e++;
1840
- else for (e && this.getWidth(e - 1) === 2 && this.setCellFromCodepoint(e - 1, 0, 1, i), s < this.length && this.getWidth(s - 1) === 2 && this.setCellFromCodepoint(s, 0, 1, i); e < s && e < this.length; ) this.setCell(e++, i);
1852
+ replaceCells(e, r, i, s = !1) {
1853
+ if (s) for (e && this.getWidth(e - 1) === 2 && !this.isProtected(e - 1) && this.setCellFromCodepoint(e - 1, 0, 1, i), r < this.length && this.getWidth(r - 1) === 2 && !this.isProtected(r) && this.setCellFromCodepoint(r, 0, 1, i); e < r && e < this.length; ) this.isProtected(e) || this.setCell(e, i), e++;
1854
+ else for (e && this.getWidth(e - 1) === 2 && this.setCellFromCodepoint(e - 1, 0, 1, i), r < this.length && this.getWidth(r - 1) === 2 && this.setCellFromCodepoint(r, 0, 1, i); e < r && e < this.length; ) this.setCell(e++, i);
1841
1855
  }
1842
- resize(e, s) {
1856
+ resize(e, r) {
1843
1857
  if (e === this.length) return 4 * this._data.length * 2 < this._data.buffer.byteLength;
1844
1858
  const i = 3 * e;
1845
1859
  if (e > this.length) {
1846
1860
  if (this._data.buffer.byteLength >= 4 * i) this._data = new Uint32Array(this._data.buffer, 0, i);
1847
1861
  else {
1848
- const t = new Uint32Array(i);
1849
- t.set(this._data), this._data = t;
1862
+ const s = new Uint32Array(i);
1863
+ s.set(this._data), this._data = s;
1850
1864
  }
1851
- for (let t = this.length; t < e; ++t) this.setCell(t, s);
1865
+ for (let s = this.length; s < e; ++s) this.setCell(s, r);
1852
1866
  } else {
1853
1867
  this._data = this._data.subarray(0, i);
1854
- const t = Object.keys(this._combined);
1855
- for (let p = 0; p < t.length; p++) {
1856
- const S = parseInt(t[p], 10);
1868
+ const s = Object.keys(this._combined);
1869
+ for (let p = 0; p < s.length; p++) {
1870
+ const S = parseInt(s[p], 10);
1857
1871
  S >= e && delete this._combined[S];
1858
1872
  }
1859
1873
  const f = Object.keys(this._extendedAttrs);
@@ -1871,8 +1885,8 @@ function Ae() {
1871
1885
  }
1872
1886
  return 0;
1873
1887
  }
1874
- fill(e, s = !1) {
1875
- if (s) for (let i = 0; i < this.length; ++i) this.isProtected(i) || this.setCell(i, e);
1888
+ fill(e, r = !1) {
1889
+ if (r) for (let i = 0; i < this.length; ++i) this.isProtected(i) || this.setCell(i, e);
1876
1890
  else {
1877
1891
  this._combined = {}, this._extendedAttrs = {};
1878
1892
  for (let i = 0; i < this.length; ++i) this.setCell(i, e);
@@ -1880,16 +1894,16 @@ function Ae() {
1880
1894
  }
1881
1895
  copyFrom(e) {
1882
1896
  this.length !== e.length ? this._data = new Uint32Array(e._data) : this._data.set(e._data), this.length = e.length, this._combined = {};
1883
- for (const s in e._combined) this._combined[s] = e._combined[s];
1897
+ for (const r in e._combined) this._combined[r] = e._combined[r];
1884
1898
  this._extendedAttrs = {};
1885
- for (const s in e._extendedAttrs) this._extendedAttrs[s] = e._extendedAttrs[s];
1899
+ for (const r in e._extendedAttrs) this._extendedAttrs[r] = e._extendedAttrs[r];
1886
1900
  this.isWrapped = e.isWrapped;
1887
1901
  }
1888
1902
  clone() {
1889
- const e = new h(0);
1903
+ const e = new c(0);
1890
1904
  e._data = new Uint32Array(this._data), e.length = this.length;
1891
- for (const s in this._combined) e._combined[s] = this._combined[s];
1892
- for (const s in this._extendedAttrs) e._extendedAttrs[s] = this._extendedAttrs[s];
1905
+ for (const r in this._combined) e._combined[r] = this._combined[r];
1906
+ for (const r in this._extendedAttrs) e._extendedAttrs[r] = this._extendedAttrs[r];
1893
1907
  return e.isWrapped = this.isWrapped, e;
1894
1908
  }
1895
1909
  getTrimmedLength() {
@@ -1900,99 +1914,99 @@ function Ae() {
1900
1914
  for (let e = this.length - 1; e >= 0; --e) if (4194303 & this._data[3 * e + 0] || 50331648 & this._data[3 * e + 2]) return e + (this._data[3 * e + 0] >> 22);
1901
1915
  return 0;
1902
1916
  }
1903
- copyCellsFrom(e, s, i, t, f) {
1917
+ copyCellsFrom(e, r, i, s, f) {
1904
1918
  const p = e._data;
1905
- if (f) for (let y = t - 1; y >= 0; y--) {
1906
- for (let C = 0; C < 3; C++) this._data[3 * (i + y) + C] = p[3 * (s + y) + C];
1907
- 268435456 & p[3 * (s + y) + 2] && (this._extendedAttrs[i + y] = e._extendedAttrs[s + y]);
1919
+ if (f) for (let y = s - 1; y >= 0; y--) {
1920
+ for (let C = 0; C < 3; C++) this._data[3 * (i + y) + C] = p[3 * (r + y) + C];
1921
+ 268435456 & p[3 * (r + y) + 2] && (this._extendedAttrs[i + y] = e._extendedAttrs[r + y]);
1908
1922
  }
1909
- else for (let y = 0; y < t; y++) {
1910
- for (let C = 0; C < 3; C++) this._data[3 * (i + y) + C] = p[3 * (s + y) + C];
1911
- 268435456 & p[3 * (s + y) + 2] && (this._extendedAttrs[i + y] = e._extendedAttrs[s + y]);
1923
+ else for (let y = 0; y < s; y++) {
1924
+ for (let C = 0; C < 3; C++) this._data[3 * (i + y) + C] = p[3 * (r + y) + C];
1925
+ 268435456 & p[3 * (r + y) + 2] && (this._extendedAttrs[i + y] = e._extendedAttrs[r + y]);
1912
1926
  }
1913
1927
  const S = Object.keys(e._combined);
1914
1928
  for (let y = 0; y < S.length; y++) {
1915
1929
  const C = parseInt(S[y], 10);
1916
- C >= s && (this._combined[C - s + i] = e._combined[C]);
1930
+ C >= r && (this._combined[C - r + i] = e._combined[C]);
1917
1931
  }
1918
1932
  }
1919
- translateToString(e, s, i, t) {
1920
- s = s ?? 0, i = i ?? this.length, e && (i = Math.min(i, this.getTrimmedLength())), t && (t.length = 0);
1933
+ translateToString(e, r, i, s) {
1934
+ r = r ?? 0, i = i ?? this.length, e && (i = Math.min(i, this.getTrimmedLength())), s && (s.length = 0);
1921
1935
  let f = "";
1922
- for (; s < i; ) {
1923
- const p = this._data[3 * s + 0], S = 2097151 & p, y = 2097152 & p ? this._combined[s] : S ? (0, c.stringFromCodePoint)(S) : n.WHITESPACE_CELL_CHAR;
1924
- if (f += y, t) for (let C = 0; C < y.length; ++C) t.push(s);
1925
- s += p >> 22 || 1;
1936
+ for (; r < i; ) {
1937
+ const p = this._data[3 * r + 0], S = 2097151 & p, y = 2097152 & p ? this._combined[r] : S ? (0, h.stringFromCodePoint)(S) : n.WHITESPACE_CELL_CHAR;
1938
+ if (f += y, s) for (let C = 0; C < y.length; ++C) s.push(r);
1939
+ r += p >> 22 || 1;
1926
1940
  }
1927
- return t && t.push(s), f;
1941
+ return s && s.push(r), f;
1928
1942
  }
1929
1943
  }
1930
- r.BufferLine = h;
1931
- }, 634: (w, r) => {
1944
+ t.BufferLine = c;
1945
+ }, 634: (w, t) => {
1932
1946
  function l(d, _, n) {
1933
1947
  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
- return c && a ? n - 1 : n;
1948
+ const h = !d[_].hasContent(n - 1) && d[_].getWidth(n - 1) === 1, a = d[_ + 1].getWidth(0) === 2;
1949
+ return h && a ? n - 1 : n;
1936
1950
  }
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
- const h = [];
1951
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.getWrappedLineTrimmedLength = t.reflowSmallerGetNewLineLengths = t.reflowLargerApplyNewLayout = t.reflowLargerCreateNewLayout = t.reflowLargerGetLinesToRemove = void 0, t.reflowLargerGetLinesToRemove = function(d, _, n, h, a) {
1952
+ const c = [];
1939
1953
  for (let u = 0; u < d.length - 1; u++) {
1940
- let e = u, s = d.get(++e);
1941
- if (!s.isWrapped) continue;
1954
+ let e = u, r = d.get(++e);
1955
+ if (!r.isWrapped) continue;
1942
1956
  const i = [d.get(u)];
1943
- for (; e < d.length && s.isWrapped; ) i.push(s), s = d.get(++e);
1944
- if (c >= u && c < e) {
1957
+ for (; e < d.length && r.isWrapped; ) i.push(r), r = d.get(++e);
1958
+ if (h >= u && h < e) {
1945
1959
  u += i.length - 1;
1946
1960
  continue;
1947
1961
  }
1948
- let t = 0, f = l(i, t, _), p = 1, S = 0;
1962
+ let s = 0, f = l(i, s, _), p = 1, S = 0;
1949
1963
  for (; p < i.length; ) {
1950
- const C = l(i, p, _), T = C - S, j = n - f, E = Math.min(T, j);
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));
1964
+ const C = l(i, p, _), k = C - S, $ = n - f, E = Math.min(k, $);
1965
+ i[s].copyCellsFrom(i[p], S, f, E, !1), f += E, f === n && (s++, f = 0), S += E, S === C && (p++, S = 0), f === 0 && s !== 0 && i[s - 1].getWidth(n - 1) === 2 && (i[s].copyCellsFrom(i[s - 1], n - 1, f++, 1, !1), i[s - 1].setCell(n - 1, a));
1952
1966
  }
1953
- i[t].replaceCells(f, n, a);
1967
+ i[s].replaceCells(f, n, a);
1954
1968
  let y = 0;
1955
- for (let C = i.length - 1; C > 0 && (C > t || i[C].getTrimmedLength() === 0); C--) y++;
1956
- y > 0 && (h.push(u + i.length - y), h.push(y)), u += i.length - 1;
1969
+ for (let C = i.length - 1; C > 0 && (C > s || i[C].getTrimmedLength() === 0); C--) y++;
1970
+ y > 0 && (c.push(u + i.length - y), c.push(y)), u += i.length - 1;
1957
1971
  }
1958
- return h;
1959
- }, r.reflowLargerCreateNewLayout = function(d, _) {
1972
+ return c;
1973
+ }, t.reflowLargerCreateNewLayout = function(d, _) {
1960
1974
  const n = [];
1961
- let c = 0, a = _[c], h = 0;
1975
+ let h = 0, a = _[h], c = 0;
1962
1976
  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];
1977
+ const e = _[++h];
1978
+ d.onDeleteEmitter.fire({ index: u - c, amount: e }), u += e - 1, c += e, a = _[++h];
1965
1979
  } else n.push(u);
1966
- return { layout: n, countRemoved: h };
1967
- }, r.reflowLargerApplyNewLayout = function(d, _) {
1980
+ return { layout: n, countRemoved: c };
1981
+ }, t.reflowLargerApplyNewLayout = function(d, _) {
1968
1982
  const n = [];
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]);
1983
+ for (let h = 0; h < _.length; h++) n.push(d.get(_[h]));
1984
+ for (let h = 0; h < n.length; h++) d.set(h, n[h]);
1971
1985
  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
- let h = 0, u = 0, e = 0;
1986
+ }, t.reflowSmallerGetNewLineLengths = function(d, _, n) {
1987
+ const h = [], a = d.map((r, i) => l(d, i, _)).reduce((r, i) => r + i);
1988
+ let c = 0, u = 0, e = 0;
1975
1989
  for (; e < a; ) {
1976
1990
  if (a - e < n) {
1977
- c.push(a - e);
1991
+ h.push(a - e);
1978
1992
  break;
1979
1993
  }
1980
- h += n;
1981
- const s = l(d, u, _);
1982
- h > s && (h -= s, u++);
1983
- const i = d[u].getWidth(h - 1) === 2;
1984
- i && h--;
1985
- const t = i ? n - 1 : n;
1986
- c.push(t), e += t;
1994
+ c += n;
1995
+ const r = l(d, u, _);
1996
+ c > r && (c -= r, u++);
1997
+ const i = d[u].getWidth(c - 1) === 2;
1998
+ i && c--;
1999
+ const s = i ? n - 1 : n;
2000
+ h.push(s), e += s;
1987
2001
  }
1988
- return c;
1989
- }, r.getWrappedLineTrimmedLength = l;
1990
- }, 295: (w, r, l) => {
1991
- Object.defineProperty(r, "__esModule", { value: !0 }), r.BufferSet = void 0;
2002
+ return h;
2003
+ }, t.getWrappedLineTrimmedLength = l;
2004
+ }, 295: (w, t, l) => {
2005
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.BufferSet = void 0;
1992
2006
  const d = l(460), _ = l(844), n = l(92);
1993
- class c extends _.Disposable {
1994
- constructor(h, u) {
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()));
2007
+ class h extends _.Disposable {
2008
+ constructor(c, u) {
2009
+ super(), this._optionsService = c, 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
2010
  }
1997
2011
  reset() {
1998
2012
  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();
@@ -2009,27 +2023,27 @@ function Ae() {
2009
2023
  activateNormalBuffer() {
2010
2024
  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 }));
2011
2025
  }
2012
- activateAltBuffer(h) {
2013
- this._activeBuffer !== this._alt && (this._alt.fillViewportRows(h), 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 }));
2026
+ activateAltBuffer(c) {
2027
+ this._activeBuffer !== this._alt && (this._alt.fillViewportRows(c), 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 }));
2014
2028
  }
2015
- resize(h, u) {
2016
- this._normal.resize(h, u), this._alt.resize(h, u), this.setupTabStops(h);
2029
+ resize(c, u) {
2030
+ this._normal.resize(c, u), this._alt.resize(c, u), this.setupTabStops(c);
2017
2031
  }
2018
- setupTabStops(h) {
2019
- this._normal.setupTabStops(h), this._alt.setupTabStops(h);
2032
+ setupTabStops(c) {
2033
+ this._normal.setupTabStops(c), this._alt.setupTabStops(c);
2020
2034
  }
2021
2035
  }
2022
- r.BufferSet = c;
2023
- }, 511: (w, r, l) => {
2024
- Object.defineProperty(r, "__esModule", { value: !0 }), r.CellData = void 0;
2036
+ t.BufferSet = h;
2037
+ }, 511: (w, t, l) => {
2038
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.CellData = void 0;
2025
2039
  const d = l(482), _ = l(643), n = l(734);
2026
- class c extends n.AttributeData {
2040
+ class h extends n.AttributeData {
2027
2041
  constructor() {
2028
2042
  super(...arguments), this.content = 0, this.fg = 0, this.bg = 0, this.extended = new n.ExtendedAttrs(), this.combinedData = "";
2029
2043
  }
2030
- static fromCharData(h) {
2031
- const u = new c();
2032
- return u.setFromCharData(h), u;
2044
+ static fromCharData(c) {
2045
+ const u = new h();
2046
+ return u.setFromCharData(c), u;
2033
2047
  }
2034
2048
  isCombined() {
2035
2049
  return 2097152 & this.content;
@@ -2043,28 +2057,28 @@ function Ae() {
2043
2057
  getCode() {
2044
2058
  return this.isCombined() ? this.combinedData.charCodeAt(this.combinedData.length - 1) : 2097151 & this.content;
2045
2059
  }
2046
- setFromCharData(h) {
2047
- this.fg = h[_.CHAR_DATA_ATTR_INDEX], this.bg = 0;
2060
+ setFromCharData(c) {
2061
+ this.fg = c[_.CHAR_DATA_ATTR_INDEX], this.bg = 0;
2048
2062
  let u = !1;
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);
2063
+ if (c[_.CHAR_DATA_CHAR_INDEX].length > 2) u = !0;
2064
+ else if (c[_.CHAR_DATA_CHAR_INDEX].length === 2) {
2065
+ const e = c[_.CHAR_DATA_CHAR_INDEX].charCodeAt(0);
2052
2066
  if (55296 <= e && e <= 56319) {
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;
2067
+ const r = c[_.CHAR_DATA_CHAR_INDEX].charCodeAt(1);
2068
+ 56320 <= r && r <= 57343 ? this.content = 1024 * (e - 55296) + r - 56320 + 65536 | c[_.CHAR_DATA_WIDTH_INDEX] << 22 : u = !0;
2055
2069
  } else u = !0;
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);
2070
+ } else this.content = c[_.CHAR_DATA_CHAR_INDEX].charCodeAt(0) | c[_.CHAR_DATA_WIDTH_INDEX] << 22;
2071
+ u && (this.combinedData = c[_.CHAR_DATA_CHAR_INDEX], this.content = 2097152 | c[_.CHAR_DATA_WIDTH_INDEX] << 22);
2058
2072
  }
2059
2073
  getAsCharData() {
2060
2074
  return [this.fg, this.getChars(), this.getWidth(), this.getCode()];
2061
2075
  }
2062
2076
  }
2063
- r.CellData = c;
2064
- }, 643: (w, r) => {
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
- }, 863: (w, r, l) => {
2067
- Object.defineProperty(r, "__esModule", { value: !0 }), r.Marker = void 0;
2077
+ t.CellData = h;
2078
+ }, 643: (w, t) => {
2079
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.WHITESPACE_CELL_CODE = t.WHITESPACE_CELL_WIDTH = t.WHITESPACE_CELL_CHAR = t.NULL_CELL_CODE = t.NULL_CELL_WIDTH = t.NULL_CELL_CHAR = t.CHAR_DATA_CODE_INDEX = t.CHAR_DATA_WIDTH_INDEX = t.CHAR_DATA_CHAR_INDEX = t.CHAR_DATA_ATTR_INDEX = t.DEFAULT_EXT = t.DEFAULT_ATTR = t.DEFAULT_COLOR = void 0, t.DEFAULT_COLOR = 0, t.DEFAULT_ATTR = 256 | t.DEFAULT_COLOR << 9, t.DEFAULT_EXT = 0, t.CHAR_DATA_ATTR_INDEX = 0, t.CHAR_DATA_CHAR_INDEX = 1, t.CHAR_DATA_WIDTH_INDEX = 2, t.CHAR_DATA_CODE_INDEX = 3, t.NULL_CELL_CHAR = "", t.NULL_CELL_WIDTH = 1, t.NULL_CELL_CODE = 0, t.WHITESPACE_CELL_CHAR = " ", t.WHITESPACE_CELL_WIDTH = 1, t.WHITESPACE_CELL_CODE = 32;
2080
+ }, 863: (w, t, l) => {
2081
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.Marker = void 0;
2068
2082
  const d = l(460), _ = l(844);
2069
2083
  class n {
2070
2084
  get id() {
@@ -2080,30 +2094,30 @@ function Ae() {
2080
2094
  return this._disposables.push(a), a;
2081
2095
  }
2082
2096
  }
2083
- r.Marker = n, n._nextId = 1;
2084
- }, 116: (w, r) => {
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
- }, 584: (w, r) => {
2097
+ t.Marker = n, n._nextId = 1;
2098
+ }, 116: (w, t) => {
2099
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.DEFAULT_CHARSET = t.CHARSETS = void 0, t.CHARSETS = {}, t.DEFAULT_CHARSET = t.CHARSETS.B, t.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: "≥", "{": "π", "|": "≠", "}": "£", "~": "·" }, t.CHARSETS.A = { "#": "£" }, t.CHARSETS.B = void 0, t.CHARSETS[4] = { "#": "£", "@": "¾", "[": "ij", "\\": "½", "]": "|", "{": "¨", "|": "f", "}": "¼", "~": "´" }, t.CHARSETS.C = t.CHARSETS[5] = { "[": "Ä", "\\": "Ö", "]": "Å", "^": "Ü", "`": "é", "{": "ä", "|": "ö", "}": "å", "~": "ü" }, t.CHARSETS.R = { "#": "£", "@": "à", "[": "°", "\\": "ç", "]": "§", "{": "é", "|": "ù", "}": "è", "~": "¨" }, t.CHARSETS.Q = { "@": "à", "[": "â", "\\": "ç", "]": "ê", "^": "î", "`": "ô", "{": "é", "|": "ù", "}": "è", "~": "û" }, t.CHARSETS.K = { "@": "§", "[": "Ä", "\\": "Ö", "]": "Ü", "{": "ä", "|": "ö", "}": "ü", "~": "ß" }, t.CHARSETS.Y = { "#": "£", "@": "§", "[": "°", "\\": "ç", "]": "é", "`": "ù", "{": "à", "|": "ò", "}": "è", "~": "ì" }, t.CHARSETS.E = t.CHARSETS[6] = { "@": "Ä", "[": "Æ", "\\": "Ø", "]": "Å", "^": "Ü", "`": "ä", "{": "æ", "|": "ø", "}": "å", "~": "ü" }, t.CHARSETS.Z = { "#": "£", "@": "§", "[": "¡", "\\": "Ñ", "]": "¿", "{": "°", "|": "ñ", "}": "ç" }, t.CHARSETS.H = t.CHARSETS[7] = { "@": "É", "[": "Ä", "\\": "Ö", "]": "Å", "^": "Ü", "`": "é", "{": "ä", "|": "ö", "}": "å", "~": "ü" }, t.CHARSETS["="] = { "#": "ù", "@": "à", "[": "é", "\\": "ç", "]": "ê", "^": "î", _: "è", "`": "ô", "{": "ä", "|": "ö", "}": "ü", "~": "û" };
2100
+ }, 584: (w, t) => {
2087
2101
  var l, d, _;
2088
- Object.defineProperty(r, "__esModule", { value: !0 }), r.C1_ESCAPED = r.C1 = r.C0 = void 0, function(n) {
2102
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.C1_ESCAPED = t.C1 = t.C0 = void 0, function(n) {
2089
2103
  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
2104
  `, 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
- }(l || (r.C0 = l = {})), function(n) {
2105
+ }(l || (t.C0 = l = {})), function(n) {
2092
2106
  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
- }(d || (r.C1 = d = {})), function(n) {
2107
+ }(d || (t.C1 = d = {})), function(n) {
2094
2108
  n.ST = `${l.ESC}\\`;
2095
- }(_ || (r.C1_ESCAPED = _ = {}));
2096
- }, 482: (w, r) => {
2097
- Object.defineProperty(r, "__esModule", { value: !0 }), r.Utf8ToUtf32 = r.StringToUtf32 = r.utf32ToString = r.stringFromCodePoint = void 0, r.stringFromCodePoint = function(l) {
2109
+ }(_ || (t.C1_ESCAPED = _ = {}));
2110
+ }, 482: (w, t) => {
2111
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.Utf8ToUtf32 = t.StringToUtf32 = t.utf32ToString = t.stringFromCodePoint = void 0, t.stringFromCodePoint = function(l) {
2098
2112
  return l > 65535 ? (l -= 65536, String.fromCharCode(55296 + (l >> 10)) + String.fromCharCode(l % 1024 + 56320)) : String.fromCharCode(l);
2099
- }, r.utf32ToString = function(l, d = 0, _ = l.length) {
2113
+ }, t.utf32ToString = function(l, d = 0, _ = l.length) {
2100
2114
  let n = "";
2101
- for (let c = d; c < _; ++c) {
2102
- let a = l[c];
2115
+ for (let h = d; h < _; ++h) {
2116
+ let a = l[h];
2103
2117
  a > 65535 ? (a -= 65536, n += String.fromCharCode(55296 + (a >> 10)) + String.fromCharCode(a % 1024 + 56320)) : n += String.fromCharCode(a);
2104
2118
  }
2105
2119
  return n;
2106
- }, r.StringToUtf32 = class {
2120
+ }, t.StringToUtf32 = class {
2107
2121
  constructor() {
2108
2122
  this._interim = 0;
2109
2123
  }
@@ -2113,22 +2127,22 @@ function Ae() {
2113
2127
  decode(l, d) {
2114
2128
  const _ = l.length;
2115
2129
  if (!_) return 0;
2116
- let n = 0, c = 0;
2130
+ let n = 0, h = 0;
2117
2131
  if (this._interim) {
2118
- const a = l.charCodeAt(c++);
2132
+ const a = l.charCodeAt(h++);
2119
2133
  56320 <= a && a <= 57343 ? d[n++] = 1024 * (this._interim - 55296) + a - 56320 + 65536 : (d[n++] = this._interim, d[n++] = a), this._interim = 0;
2120
2134
  }
2121
- for (let a = c; a < _; ++a) {
2122
- const h = l.charCodeAt(a);
2123
- if (55296 <= h && h <= 56319) {
2124
- if (++a >= _) return this._interim = h, n;
2135
+ for (let a = h; a < _; ++a) {
2136
+ const c = l.charCodeAt(a);
2137
+ if (55296 <= c && c <= 56319) {
2138
+ if (++a >= _) return this._interim = c, n;
2125
2139
  const u = l.charCodeAt(a);
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);
2140
+ 56320 <= u && u <= 57343 ? d[n++] = 1024 * (c - 55296) + u - 56320 + 65536 : (d[n++] = c, d[n++] = u);
2141
+ } else c !== 65279 && (d[n++] = c);
2128
2142
  }
2129
2143
  return n;
2130
2144
  }
2131
- }, r.Utf8ToUtf32 = class {
2145
+ }, t.Utf8ToUtf32 = class {
2132
2146
  constructor() {
2133
2147
  this.interim = new Uint8Array(3);
2134
2148
  }
@@ -2138,109 +2152,109 @@ function Ae() {
2138
2152
  decode(l, d) {
2139
2153
  const _ = l.length;
2140
2154
  if (!_) return 0;
2141
- let n, c, a, h, u = 0, e = 0, s = 0;
2155
+ let n, h, a, c, u = 0, e = 0, r = 0;
2142
2156
  if (this.interim[0]) {
2143
2157
  let f = !1, p = this.interim[0];
2144
2158
  p &= (224 & p) == 192 ? 31 : (240 & p) == 224 ? 15 : 7;
2145
2159
  let S, y = 0;
2146
2160
  for (; (S = 63 & this.interim[++y]) && y < 4; ) p <<= 6, p |= S;
2147
- const C = (224 & this.interim[0]) == 192 ? 2 : (240 & this.interim[0]) == 224 ? 3 : 4, T = C - y;
2148
- for (; s < T; ) {
2149
- if (s >= _) return 0;
2150
- if (S = l[s++], (192 & S) != 128) {
2151
- s--, f = !0;
2161
+ const C = (224 & this.interim[0]) == 192 ? 2 : (240 & this.interim[0]) == 224 ? 3 : 4, k = C - y;
2162
+ for (; r < k; ) {
2163
+ if (r >= _) return 0;
2164
+ if (S = l[r++], (192 & S) != 128) {
2165
+ r--, f = !0;
2152
2166
  break;
2153
2167
  }
2154
2168
  this.interim[y++] = S, p <<= 6, p |= 63 & S;
2155
2169
  }
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);
2170
+ f || (C === 2 ? p < 128 ? r-- : 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
2171
  }
2158
2172
  const i = _ - 4;
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])); ) d[u++] = n, d[u++] = c, d[u++] = a, d[u++] = h, t += 4;
2162
- if (n = l[t++], n < 128) d[u++] = n;
2173
+ let s = r;
2174
+ for (; s < _; ) {
2175
+ for (; !(!(s < i) || 128 & (n = l[s]) || 128 & (h = l[s + 1]) || 128 & (a = l[s + 2]) || 128 & (c = l[s + 3])); ) d[u++] = n, d[u++] = h, d[u++] = a, d[u++] = c, s += 4;
2176
+ if (n = l[s++], n < 128) d[u++] = n;
2163
2177
  else if ((224 & n) == 192) {
2164
- if (t >= _) return this.interim[0] = n, u;
2165
- if (c = l[t++], (192 & c) != 128) {
2166
- t--;
2178
+ if (s >= _) return this.interim[0] = n, u;
2179
+ if (h = l[s++], (192 & h) != 128) {
2180
+ s--;
2167
2181
  continue;
2168
2182
  }
2169
- if (e = (31 & n) << 6 | 63 & c, e < 128) {
2170
- t--;
2183
+ if (e = (31 & n) << 6 | 63 & h, e < 128) {
2184
+ s--;
2171
2185
  continue;
2172
2186
  }
2173
2187
  d[u++] = e;
2174
2188
  } else if ((240 & n) == 224) {
2175
- if (t >= _) return this.interim[0] = n, u;
2176
- if (c = l[t++], (192 & c) != 128) {
2177
- t--;
2189
+ if (s >= _) return this.interim[0] = n, u;
2190
+ if (h = l[s++], (192 & h) != 128) {
2191
+ s--;
2178
2192
  continue;
2179
2193
  }
2180
- if (t >= _) return this.interim[0] = n, this.interim[1] = c, u;
2181
- if (a = l[t++], (192 & a) != 128) {
2182
- t--;
2194
+ if (s >= _) return this.interim[0] = n, this.interim[1] = h, u;
2195
+ if (a = l[s++], (192 & a) != 128) {
2196
+ s--;
2183
2197
  continue;
2184
2198
  }
2185
- if (e = (15 & n) << 12 | (63 & c) << 6 | 63 & a, e < 2048 || e >= 55296 && e <= 57343 || e === 65279) continue;
2199
+ if (e = (15 & n) << 12 | (63 & h) << 6 | 63 & a, e < 2048 || e >= 55296 && e <= 57343 || e === 65279) continue;
2186
2200
  d[u++] = e;
2187
2201
  } else if ((248 & n) == 240) {
2188
- if (t >= _) return this.interim[0] = n, u;
2189
- if (c = l[t++], (192 & c) != 128) {
2190
- t--;
2202
+ if (s >= _) return this.interim[0] = n, u;
2203
+ if (h = l[s++], (192 & h) != 128) {
2204
+ s--;
2191
2205
  continue;
2192
2206
  }
2193
- if (t >= _) return this.interim[0] = n, this.interim[1] = c, u;
2194
- if (a = l[t++], (192 & a) != 128) {
2195
- t--;
2207
+ if (s >= _) return this.interim[0] = n, this.interim[1] = h, u;
2208
+ if (a = l[s++], (192 & a) != 128) {
2209
+ s--;
2196
2210
  continue;
2197
2211
  }
2198
- if (t >= _) return this.interim[0] = n, this.interim[1] = c, this.interim[2] = a, u;
2199
- if (h = l[t++], (192 & h) != 128) {
2200
- t--;
2212
+ if (s >= _) return this.interim[0] = n, this.interim[1] = h, this.interim[2] = a, u;
2213
+ if (c = l[s++], (192 & c) != 128) {
2214
+ s--;
2201
2215
  continue;
2202
2216
  }
2203
- if (e = (7 & n) << 18 | (63 & c) << 12 | (63 & a) << 6 | 63 & h, e < 65536 || e > 1114111) continue;
2217
+ if (e = (7 & n) << 18 | (63 & h) << 12 | (63 & a) << 6 | 63 & c, e < 65536 || e > 1114111) continue;
2204
2218
  d[u++] = e;
2205
2219
  }
2206
2220
  }
2207
2221
  return u;
2208
2222
  }
2209
2223
  };
2210
- }, 225: (w, r, l) => {
2211
- Object.defineProperty(r, "__esModule", { value: !0 }), r.UnicodeV6 = void 0;
2224
+ }, 225: (w, t, l) => {
2225
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.UnicodeV6 = void 0;
2212
2226
  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
- let c;
2214
- r.UnicodeV6 = class {
2227
+ let h;
2228
+ t.UnicodeV6 = class {
2215
2229
  constructor() {
2216
- if (this.version = "6", !c) {
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 < _.length; ++a) c.fill(0, _[a][0], _[a][1] + 1);
2230
+ if (this.version = "6", !h) {
2231
+ h = new Uint8Array(65536), h.fill(1), h[0] = 0, h.fill(0, 1, 32), h.fill(0, 127, 160), h.fill(2, 4352, 4448), h[9001] = 2, h[9002] = 2, h.fill(2, 11904, 42192), h[12351] = 1, h.fill(2, 44032, 55204), h.fill(2, 63744, 64256), h.fill(2, 65040, 65050), h.fill(2, 65072, 65136), h.fill(2, 65280, 65377), h.fill(2, 65504, 65511);
2232
+ for (let a = 0; a < _.length; ++a) h.fill(0, _[a][0], _[a][1] + 1);
2219
2233
  }
2220
2234
  }
2221
2235
  wcwidth(a) {
2222
- return a < 32 ? 0 : a < 127 ? 1 : a < 65536 ? c[a] : function(h, u) {
2223
- let e, s = 0, i = u.length - 1;
2224
- if (h < u[0][0] || h > u[i][1]) return !1;
2225
- for (; i >= s; ) if (e = s + i >> 1, h > u[e][1]) s = e + 1;
2236
+ return a < 32 ? 0 : a < 127 ? 1 : a < 65536 ? h[a] : function(c, u) {
2237
+ let e, r = 0, i = u.length - 1;
2238
+ if (c < u[0][0] || c > u[i][1]) return !1;
2239
+ for (; i >= r; ) if (e = r + i >> 1, c > u[e][1]) r = e + 1;
2226
2240
  else {
2227
- if (!(h < u[e][0])) return !0;
2241
+ if (!(c < u[e][0])) return !0;
2228
2242
  i = e - 1;
2229
2243
  }
2230
2244
  return !1;
2231
2245
  }(a, n) ? 0 : a >= 131072 && a <= 196605 || a >= 196608 && a <= 262141 ? 2 : 1;
2232
2246
  }
2233
- charProperties(a, h) {
2234
- let u = this.wcwidth(a), e = u === 0 && h !== 0;
2247
+ charProperties(a, c) {
2248
+ let u = this.wcwidth(a), e = u === 0 && c !== 0;
2235
2249
  if (e) {
2236
- const s = d.UnicodeService.extractWidth(h);
2237
- s === 0 ? e = !1 : s > u && (u = s);
2250
+ const r = d.UnicodeService.extractWidth(c);
2251
+ r === 0 ? e = !1 : r > u && (u = r);
2238
2252
  }
2239
2253
  return d.UnicodeService.createPropertyValue(0, u, e);
2240
2254
  }
2241
2255
  };
2242
- }, 981: (w, r, l) => {
2243
- Object.defineProperty(r, "__esModule", { value: !0 }), r.WriteBuffer = void 0;
2256
+ }, 981: (w, t, l) => {
2257
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.WriteBuffer = void 0;
2244
2258
  const d = l(460), _ = l(844);
2245
2259
  class n extends _.Disposable {
2246
2260
  constructor(a) {
@@ -2249,8 +2263,8 @@ function Ae() {
2249
2263
  handleUserInput() {
2250
2264
  this._didUserInput = !0;
2251
2265
  }
2252
- writeSync(a, h) {
2253
- if (h !== void 0 && this._syncCalls > h) return void (this._syncCalls = 0);
2266
+ writeSync(a, c) {
2267
+ if (c !== void 0 && this._syncCalls > c) return void (this._syncCalls = 0);
2254
2268
  if (this._pendingData += a.length, this._writeBuffer.push(a), this._callbacks.push(void 0), this._syncCalls++, this._isSyncWriting) return;
2255
2269
  let u;
2256
2270
  for (this._isSyncWriting = !0; u = this._writeBuffer.shift(); ) {
@@ -2260,23 +2274,23 @@ function Ae() {
2260
2274
  }
2261
2275
  this._pendingData = 0, this._bufferOffset = 2147483647, this._isSyncWriting = !1, this._syncCalls = 0;
2262
2276
  }
2263
- write(a, h) {
2277
+ write(a, c) {
2264
2278
  if (this._pendingData > 5e7) throw new Error("write data discarded, use flow control to avoid losing data");
2265
2279
  if (!this._writeBuffer.length) {
2266
- if (this._bufferOffset = 0, this._didUserInput) return this._didUserInput = !1, this._pendingData += a.length, this._writeBuffer.push(a), this._callbacks.push(h), void this._innerWrite();
2280
+ if (this._bufferOffset = 0, this._didUserInput) return this._didUserInput = !1, this._pendingData += a.length, this._writeBuffer.push(a), this._callbacks.push(c), void this._innerWrite();
2267
2281
  setTimeout(() => this._innerWrite());
2268
2282
  }
2269
- this._pendingData += a.length, this._writeBuffer.push(a), this._callbacks.push(h);
2283
+ this._pendingData += a.length, this._writeBuffer.push(a), this._callbacks.push(c);
2270
2284
  }
2271
- _innerWrite(a = 0, h = !0) {
2285
+ _innerWrite(a = 0, c = !0) {
2272
2286
  const u = a || Date.now();
2273
2287
  for (; this._writeBuffer.length > this._bufferOffset; ) {
2274
- const e = this._writeBuffer[this._bufferOffset], s = this._action(e, h);
2275
- if (s) {
2276
- const t = (f) => Date.now() - u >= 12 ? setTimeout(() => this._innerWrite(0, f)) : this._innerWrite(u, f);
2277
- return void s.catch((f) => (queueMicrotask(() => {
2288
+ const e = this._writeBuffer[this._bufferOffset], r = this._action(e, c);
2289
+ if (r) {
2290
+ const s = (f) => Date.now() - u >= 12 ? setTimeout(() => this._innerWrite(0, f)) : this._innerWrite(u, f);
2291
+ return void r.catch((f) => (queueMicrotask(() => {
2278
2292
  throw f;
2279
- }), Promise.resolve(!1))).then(t);
2293
+ }), Promise.resolve(!1))).then(s);
2280
2294
  }
2281
2295
  const i = this._callbacks[this._bufferOffset];
2282
2296
  if (i && i(), this._bufferOffset++, this._pendingData -= e.length, Date.now() - u >= 12) break;
@@ -2284,241 +2298,241 @@ function Ae() {
2284
2298
  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();
2285
2299
  }
2286
2300
  }
2287
- r.WriteBuffer = n;
2288
- }, 941: (w, r) => {
2289
- Object.defineProperty(r, "__esModule", { value: !0 }), r.toRgbString = r.parseColor = void 0;
2301
+ t.WriteBuffer = n;
2302
+ }, 941: (w, t) => {
2303
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.toRgbString = t.parseColor = void 0;
2290
2304
  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
- const a = n.toString(16), h = a.length < 2 ? "0" + a : a;
2293
- switch (c) {
2305
+ function _(n, h) {
2306
+ const a = n.toString(16), c = a.length < 2 ? "0" + a : a;
2307
+ switch (h) {
2294
2308
  case 4:
2295
2309
  return a[0];
2296
2310
  case 8:
2297
- return h;
2311
+ return c;
2298
2312
  case 12:
2299
- return (h + h).slice(0, 3);
2313
+ return (c + c).slice(0, 3);
2300
2314
  default:
2301
- return h + h;
2315
+ return c + c;
2302
2316
  }
2303
2317
  }
2304
- r.parseColor = function(n) {
2318
+ t.parseColor = function(n) {
2305
2319
  if (!n) return;
2306
- let c = n.toLowerCase();
2307
- if (c.indexOf("rgb:") === 0) {
2308
- c = c.slice(4);
2309
- const a = l.exec(c);
2320
+ let h = n.toLowerCase();
2321
+ if (h.indexOf("rgb:") === 0) {
2322
+ h = h.slice(4);
2323
+ const a = l.exec(h);
2310
2324
  if (a) {
2311
- const h = a[1] ? 15 : a[4] ? 255 : a[7] ? 4095 : 65535;
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)];
2325
+ const c = a[1] ? 15 : a[4] ? 255 : a[7] ? 4095 : 65535;
2326
+ return [Math.round(parseInt(a[1] || a[4] || a[7] || a[10], 16) / c * 255), Math.round(parseInt(a[2] || a[5] || a[8] || a[11], 16) / c * 255), Math.round(parseInt(a[3] || a[6] || a[9] || a[12], 16) / c * 255)];
2313
2327
  }
2314
- } else if (c.indexOf("#") === 0 && (c = c.slice(1), d.exec(c) && [3, 6, 9, 12].includes(c.length))) {
2315
- const a = c.length / 3, h = [0, 0, 0];
2328
+ } else if (h.indexOf("#") === 0 && (h = h.slice(1), d.exec(h) && [3, 6, 9, 12].includes(h.length))) {
2329
+ const a = h.length / 3, c = [0, 0, 0];
2316
2330
  for (let u = 0; u < 3; ++u) {
2317
- const e = parseInt(c.slice(a * u, a * u + a), 16);
2318
- h[u] = a === 1 ? e << 4 : a === 2 ? e : a === 3 ? e >> 4 : e >> 8;
2331
+ const e = parseInt(h.slice(a * u, a * u + a), 16);
2332
+ c[u] = a === 1 ? e << 4 : a === 2 ? e : a === 3 ? e >> 4 : e >> 8;
2319
2333
  }
2320
- return h;
2334
+ return c;
2321
2335
  }
2322
- }, r.toRgbString = function(n, c = 16) {
2323
- const [a, h, u] = n;
2324
- return `rgb:${_(a, c)}/${_(h, c)}/${_(u, c)}`;
2336
+ }, t.toRgbString = function(n, h = 16) {
2337
+ const [a, c, u] = n;
2338
+ return `rgb:${_(a, h)}/${_(c, h)}/${_(u, h)}`;
2325
2339
  };
2326
- }, 770: (w, r) => {
2327
- Object.defineProperty(r, "__esModule", { value: !0 }), r.PAYLOAD_LIMIT = void 0, r.PAYLOAD_LIMIT = 1e7;
2328
- }, 351: (w, r, l) => {
2329
- Object.defineProperty(r, "__esModule", { value: !0 }), r.DcsHandler = r.DcsParser = void 0;
2330
- const d = l(482), _ = l(742), n = l(770), c = [];
2331
- r.DcsParser = class {
2340
+ }, 770: (w, t) => {
2341
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.PAYLOAD_LIMIT = void 0, t.PAYLOAD_LIMIT = 1e7;
2342
+ }, 351: (w, t, l) => {
2343
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.DcsHandler = t.DcsParser = void 0;
2344
+ const d = l(482), _ = l(742), n = l(770), h = [];
2345
+ t.DcsParser = class {
2332
2346
  constructor() {
2333
- this._handlers = /* @__PURE__ */ Object.create(null), this._active = c, this._ident = 0, this._handlerFb = () => {
2347
+ this._handlers = /* @__PURE__ */ Object.create(null), this._active = h, this._ident = 0, this._handlerFb = () => {
2334
2348
  }, this._stack = { paused: !1, loopPosition: 0, fallThrough: !1 };
2335
2349
  }
2336
2350
  dispose() {
2337
2351
  this._handlers = /* @__PURE__ */ Object.create(null), this._handlerFb = () => {
2338
- }, this._active = c;
2352
+ }, this._active = h;
2339
2353
  }
2340
- registerHandler(h, u) {
2341
- this._handlers[h] === void 0 && (this._handlers[h] = []);
2342
- const e = this._handlers[h];
2354
+ registerHandler(c, u) {
2355
+ this._handlers[c] === void 0 && (this._handlers[c] = []);
2356
+ const e = this._handlers[c];
2343
2357
  return e.push(u), { dispose: () => {
2344
- const s = e.indexOf(u);
2345
- s !== -1 && e.splice(s, 1);
2358
+ const r = e.indexOf(u);
2359
+ r !== -1 && e.splice(r, 1);
2346
2360
  } };
2347
2361
  }
2348
- clearHandler(h) {
2349
- this._handlers[h] && delete this._handlers[h];
2362
+ clearHandler(c) {
2363
+ this._handlers[c] && delete this._handlers[c];
2350
2364
  }
2351
- setHandlerFallback(h) {
2352
- this._handlerFb = h;
2365
+ setHandlerFallback(c) {
2366
+ this._handlerFb = c;
2353
2367
  }
2354
2368
  reset() {
2355
- if (this._active.length) for (let h = this._stack.paused ? this._stack.loopPosition - 1 : this._active.length - 1; h >= 0; --h) this._active[h].unhook(!1);
2356
- this._stack.paused = !1, this._active = c, this._ident = 0;
2369
+ if (this._active.length) for (let c = this._stack.paused ? this._stack.loopPosition - 1 : this._active.length - 1; c >= 0; --c) this._active[c].unhook(!1);
2370
+ this._stack.paused = !1, this._active = h, this._ident = 0;
2357
2371
  }
2358
- hook(h, u) {
2359
- if (this.reset(), this._ident = h, this._active = this._handlers[h] || c, this._active.length) for (let e = this._active.length - 1; e >= 0; e--) this._active[e].hook(u);
2372
+ hook(c, u) {
2373
+ if (this.reset(), this._ident = c, this._active = this._handlers[c] || h, this._active.length) for (let e = this._active.length - 1; e >= 0; e--) this._active[e].hook(u);
2360
2374
  else this._handlerFb(this._ident, "HOOK", u);
2361
2375
  }
2362
- put(h, u, e) {
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, d.utf32ToString)(h, u, e));
2376
+ put(c, u, e) {
2377
+ if (this._active.length) for (let r = this._active.length - 1; r >= 0; r--) this._active[r].put(c, u, e);
2378
+ else this._handlerFb(this._ident, "PUT", (0, d.utf32ToString)(c, u, e));
2365
2379
  }
2366
- unhook(h, u = !0) {
2380
+ unhook(c, u = !0) {
2367
2381
  if (this._active.length) {
2368
- let e = !1, s = this._active.length - 1, i = !1;
2369
- if (this._stack.paused && (s = this._stack.loopPosition - 1, e = u, i = this._stack.fallThrough, this._stack.paused = !1), !i && e === !1) {
2370
- for (; s >= 0 && (e = this._active[s].unhook(h), e !== !0); s--) if (e instanceof Promise) return this._stack.paused = !0, this._stack.loopPosition = s, this._stack.fallThrough = !1, e;
2371
- s--;
2382
+ let e = !1, r = this._active.length - 1, i = !1;
2383
+ if (this._stack.paused && (r = this._stack.loopPosition - 1, e = u, i = this._stack.fallThrough, this._stack.paused = !1), !i && e === !1) {
2384
+ for (; r >= 0 && (e = this._active[r].unhook(c), e !== !0); r--) if (e instanceof Promise) return this._stack.paused = !0, this._stack.loopPosition = r, this._stack.fallThrough = !1, e;
2385
+ r--;
2372
2386
  }
2373
- for (; s >= 0; s--) if (e = this._active[s].unhook(!1), e instanceof Promise) return this._stack.paused = !0, this._stack.loopPosition = s, this._stack.fallThrough = !0, e;
2374
- } else this._handlerFb(this._ident, "UNHOOK", h);
2375
- this._active = c, this._ident = 0;
2387
+ for (; r >= 0; r--) if (e = this._active[r].unhook(!1), e instanceof Promise) return this._stack.paused = !0, this._stack.loopPosition = r, this._stack.fallThrough = !0, e;
2388
+ } else this._handlerFb(this._ident, "UNHOOK", c);
2389
+ this._active = h, this._ident = 0;
2376
2390
  }
2377
2391
  };
2378
2392
  const a = new _.Params();
2379
- a.addParam(0), r.DcsHandler = class {
2380
- constructor(h) {
2381
- this._handler = h, this._data = "", this._params = a, this._hitLimit = !1;
2393
+ a.addParam(0), t.DcsHandler = class {
2394
+ constructor(c) {
2395
+ this._handler = c, this._data = "", this._params = a, this._hitLimit = !1;
2382
2396
  }
2383
- hook(h) {
2384
- this._params = h.length > 1 || h.params[0] ? h.clone() : a, this._data = "", this._hitLimit = !1;
2397
+ hook(c) {
2398
+ this._params = c.length > 1 || c.params[0] ? c.clone() : a, this._data = "", this._hitLimit = !1;
2385
2399
  }
2386
- put(h, u, e) {
2387
- this._hitLimit || (this._data += (0, d.utf32ToString)(h, u, e), this._data.length > n.PAYLOAD_LIMIT && (this._data = "", this._hitLimit = !0));
2400
+ put(c, u, e) {
2401
+ this._hitLimit || (this._data += (0, d.utf32ToString)(c, u, e), this._data.length > n.PAYLOAD_LIMIT && (this._data = "", this._hitLimit = !0));
2388
2402
  }
2389
- unhook(h) {
2403
+ unhook(c) {
2390
2404
  let u = !1;
2391
2405
  if (this._hitLimit) u = !1;
2392
- else if (h && (u = this._handler(this._data, this._params), u instanceof Promise)) return u.then((e) => (this._params = a, this._data = "", this._hitLimit = !1, e));
2406
+ else if (c && (u = this._handler(this._data, this._params), u instanceof Promise)) return u.then((e) => (this._params = a, this._data = "", this._hitLimit = !1, e));
2393
2407
  return this._params = a, this._data = "", this._hitLimit = !1, u;
2394
2408
  }
2395
2409
  };
2396
- }, 15: (w, r, l) => {
2397
- Object.defineProperty(r, "__esModule", { value: !0 }), r.EscapeSequenceParser = r.VT500_TRANSITION_TABLE = r.TransitionTable = void 0;
2398
- const d = l(844), _ = l(742), n = l(242), c = l(351);
2410
+ }, 15: (w, t, l) => {
2411
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.EscapeSequenceParser = t.VT500_TRANSITION_TABLE = t.TransitionTable = void 0;
2412
+ const d = l(844), _ = l(742), n = l(242), h = l(351);
2399
2413
  class a {
2400
- constructor(s) {
2401
- this.table = new Uint8Array(s);
2414
+ constructor(r) {
2415
+ this.table = new Uint8Array(r);
2402
2416
  }
2403
- setDefault(s, i) {
2404
- this.table.fill(s << 4 | i);
2417
+ setDefault(r, i) {
2418
+ this.table.fill(r << 4 | i);
2405
2419
  }
2406
- add(s, i, t, f) {
2407
- this.table[i << 8 | s] = t << 4 | f;
2420
+ add(r, i, s, f) {
2421
+ this.table[i << 8 | r] = s << 4 | f;
2408
2422
  }
2409
- addMany(s, i, t, f) {
2410
- for (let p = 0; p < s.length; p++) this.table[i << 8 | s[p]] = t << 4 | f;
2423
+ addMany(r, i, s, f) {
2424
+ for (let p = 0; p < r.length; p++) this.table[i << 8 | r[p]] = s << 4 | f;
2411
2425
  }
2412
2426
  }
2413
- r.TransitionTable = a;
2414
- const h = 160;
2415
- r.VT500_TRANSITION_TABLE = function() {
2416
- const e = new a(4095), s = Array.apply(null, Array(256)).map((y, C) => C), i = (y, C) => s.slice(y, C), t = i(32, 127), f = i(0, 24);
2427
+ t.TransitionTable = a;
2428
+ const c = 160;
2429
+ t.VT500_TRANSITION_TABLE = function() {
2430
+ const e = new a(4095), r = Array.apply(null, Array(256)).map((y, C) => C), i = (y, C) => r.slice(y, C), s = i(32, 127), f = i(0, 24);
2417
2431
  f.push(25), f.push.apply(f, i(28, 32));
2418
2432
  const p = i(0, 14);
2419
2433
  let S;
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
- 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;
2434
+ for (S in e.setDefault(1, 0), e.addMany(s, 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);
2435
+ 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(s, 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(s, 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(s, 13, 13, 13), e.add(127, 13, 0, 13), e.addMany([27, 156, 24, 26], 13, 14, 0), e.add(c, 0, 2, 0), e.add(c, 8, 5, 8), e.add(c, 6, 0, 6), e.add(c, 11, 0, 11), e.add(c, 13, 13, 13), e;
2422
2436
  }();
2423
2437
  class u extends d.Disposable {
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 _.Params(), this._params.addParam(0), this._collect = 0, this.precedingJoinState = 0, this._printHandlerFb = (i, t, f) => {
2438
+ constructor(r = t.VT500_TRANSITION_TABLE) {
2439
+ super(), this._transitions = r, 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, s, f) => {
2426
2440
  }, this._executeHandlerFb = (i) => {
2427
- }, this._csiHandlerFb = (i, t) => {
2441
+ }, this._csiHandlerFb = (i, s) => {
2428
2442
  }, this._escHandlerFb = (i) => {
2429
2443
  }, 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
2444
  this._csiHandlers = /* @__PURE__ */ Object.create(null), this._executeHandlers = /* @__PURE__ */ Object.create(null), this._escHandlers = /* @__PURE__ */ Object.create(null);
2431
- })), this._oscParser = this.register(new n.OscParser()), this._dcsParser = this.register(new c.DcsParser()), this._errorHandler = this._errorHandlerFb, this.registerEscHandler({ final: "\\" }, () => !0);
2432
- }
2433
- _identifier(s, i = [64, 126]) {
2434
- let t = 0;
2435
- if (s.prefix) {
2436
- if (s.prefix.length > 1) throw new Error("only one byte as prefix supported");
2437
- if (t = s.prefix.charCodeAt(0), t && 60 > t || t > 63) throw new Error("prefix must be in range 0x3c .. 0x3f");
2438
- }
2439
- if (s.intermediates) {
2440
- if (s.intermediates.length > 2) throw new Error("only two bytes as intermediates are supported");
2441
- for (let p = 0; p < s.intermediates.length; ++p) {
2442
- const S = s.intermediates.charCodeAt(p);
2445
+ })), this._oscParser = this.register(new n.OscParser()), this._dcsParser = this.register(new h.DcsParser()), this._errorHandler = this._errorHandlerFb, this.registerEscHandler({ final: "\\" }, () => !0);
2446
+ }
2447
+ _identifier(r, i = [64, 126]) {
2448
+ let s = 0;
2449
+ if (r.prefix) {
2450
+ if (r.prefix.length > 1) throw new Error("only one byte as prefix supported");
2451
+ if (s = r.prefix.charCodeAt(0), s && 60 > s || s > 63) throw new Error("prefix must be in range 0x3c .. 0x3f");
2452
+ }
2453
+ if (r.intermediates) {
2454
+ if (r.intermediates.length > 2) throw new Error("only two bytes as intermediates are supported");
2455
+ for (let p = 0; p < r.intermediates.length; ++p) {
2456
+ const S = r.intermediates.charCodeAt(p);
2443
2457
  if (32 > S || S > 47) throw new Error("intermediate must be in range 0x20 .. 0x2f");
2444
- t <<= 8, t |= S;
2458
+ s <<= 8, s |= S;
2445
2459
  }
2446
2460
  }
2447
- if (s.final.length !== 1) throw new Error("final must be a single byte");
2448
- const f = s.final.charCodeAt(0);
2461
+ if (r.final.length !== 1) throw new Error("final must be a single byte");
2462
+ const f = r.final.charCodeAt(0);
2449
2463
  if (i[0] > f || f > i[1]) throw new Error(`final must be in range ${i[0]} .. ${i[1]}`);
2450
- return t <<= 8, t |= f, t;
2464
+ return s <<= 8, s |= f, s;
2451
2465
  }
2452
- identToString(s) {
2466
+ identToString(r) {
2453
2467
  const i = [];
2454
- for (; s; ) i.push(String.fromCharCode(255 & s)), s >>= 8;
2468
+ for (; r; ) i.push(String.fromCharCode(255 & r)), r >>= 8;
2455
2469
  return i.reverse().join("");
2456
2470
  }
2457
- setPrintHandler(s) {
2458
- this._printHandler = s;
2471
+ setPrintHandler(r) {
2472
+ this._printHandler = r;
2459
2473
  }
2460
2474
  clearPrintHandler() {
2461
2475
  this._printHandler = this._printHandlerFb;
2462
2476
  }
2463
- registerEscHandler(s, i) {
2464
- const t = this._identifier(s, [48, 126]);
2465
- this._escHandlers[t] === void 0 && (this._escHandlers[t] = []);
2466
- const f = this._escHandlers[t];
2477
+ registerEscHandler(r, i) {
2478
+ const s = this._identifier(r, [48, 126]);
2479
+ this._escHandlers[s] === void 0 && (this._escHandlers[s] = []);
2480
+ const f = this._escHandlers[s];
2467
2481
  return f.push(i), { dispose: () => {
2468
2482
  const p = f.indexOf(i);
2469
2483
  p !== -1 && f.splice(p, 1);
2470
2484
  } };
2471
2485
  }
2472
- clearEscHandler(s) {
2473
- this._escHandlers[this._identifier(s, [48, 126])] && delete this._escHandlers[this._identifier(s, [48, 126])];
2486
+ clearEscHandler(r) {
2487
+ this._escHandlers[this._identifier(r, [48, 126])] && delete this._escHandlers[this._identifier(r, [48, 126])];
2474
2488
  }
2475
- setEscHandlerFallback(s) {
2476
- this._escHandlerFb = s;
2489
+ setEscHandlerFallback(r) {
2490
+ this._escHandlerFb = r;
2477
2491
  }
2478
- setExecuteHandler(s, i) {
2479
- this._executeHandlers[s.charCodeAt(0)] = i;
2492
+ setExecuteHandler(r, i) {
2493
+ this._executeHandlers[r.charCodeAt(0)] = i;
2480
2494
  }
2481
- clearExecuteHandler(s) {
2482
- this._executeHandlers[s.charCodeAt(0)] && delete this._executeHandlers[s.charCodeAt(0)];
2495
+ clearExecuteHandler(r) {
2496
+ this._executeHandlers[r.charCodeAt(0)] && delete this._executeHandlers[r.charCodeAt(0)];
2483
2497
  }
2484
- setExecuteHandlerFallback(s) {
2485
- this._executeHandlerFb = s;
2498
+ setExecuteHandlerFallback(r) {
2499
+ this._executeHandlerFb = r;
2486
2500
  }
2487
- registerCsiHandler(s, i) {
2488
- const t = this._identifier(s);
2489
- this._csiHandlers[t] === void 0 && (this._csiHandlers[t] = []);
2490
- const f = this._csiHandlers[t];
2501
+ registerCsiHandler(r, i) {
2502
+ const s = this._identifier(r);
2503
+ this._csiHandlers[s] === void 0 && (this._csiHandlers[s] = []);
2504
+ const f = this._csiHandlers[s];
2491
2505
  return f.push(i), { dispose: () => {
2492
2506
  const p = f.indexOf(i);
2493
2507
  p !== -1 && f.splice(p, 1);
2494
2508
  } };
2495
2509
  }
2496
- clearCsiHandler(s) {
2497
- this._csiHandlers[this._identifier(s)] && delete this._csiHandlers[this._identifier(s)];
2510
+ clearCsiHandler(r) {
2511
+ this._csiHandlers[this._identifier(r)] && delete this._csiHandlers[this._identifier(r)];
2498
2512
  }
2499
- setCsiHandlerFallback(s) {
2500
- this._csiHandlerFb = s;
2513
+ setCsiHandlerFallback(r) {
2514
+ this._csiHandlerFb = r;
2501
2515
  }
2502
- registerDcsHandler(s, i) {
2503
- return this._dcsParser.registerHandler(this._identifier(s), i);
2516
+ registerDcsHandler(r, i) {
2517
+ return this._dcsParser.registerHandler(this._identifier(r), i);
2504
2518
  }
2505
- clearDcsHandler(s) {
2506
- this._dcsParser.clearHandler(this._identifier(s));
2519
+ clearDcsHandler(r) {
2520
+ this._dcsParser.clearHandler(this._identifier(r));
2507
2521
  }
2508
- setDcsHandlerFallback(s) {
2509
- this._dcsParser.setHandlerFallback(s);
2522
+ setDcsHandlerFallback(r) {
2523
+ this._dcsParser.setHandlerFallback(r);
2510
2524
  }
2511
- registerOscHandler(s, i) {
2512
- return this._oscParser.registerHandler(s, i);
2525
+ registerOscHandler(r, i) {
2526
+ return this._oscParser.registerHandler(r, i);
2513
2527
  }
2514
- clearOscHandler(s) {
2515
- this._oscParser.clearHandler(s);
2528
+ clearOscHandler(r) {
2529
+ this._oscParser.clearHandler(r);
2516
2530
  }
2517
- setOscHandlerFallback(s) {
2518
- this._oscParser.setHandlerFallback(s);
2531
+ setOscHandlerFallback(r) {
2532
+ this._oscParser.setHandlerFallback(r);
2519
2533
  }
2520
- setErrorHandler(s) {
2521
- this._errorHandler = s;
2534
+ setErrorHandler(r) {
2535
+ this._errorHandler = r;
2522
2536
  }
2523
2537
  clearErrorHandler() {
2524
2538
  this._errorHandler = this._errorHandlerFb;
@@ -2526,57 +2540,57 @@ function Ae() {
2526
2540
  reset() {
2527
2541
  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 = []);
2528
2542
  }
2529
- _preserveStack(s, i, t, f, p) {
2530
- this._parseStack.state = s, this._parseStack.handlers = i, this._parseStack.handlerPos = t, this._parseStack.transition = f, this._parseStack.chunkPos = p;
2543
+ _preserveStack(r, i, s, f, p) {
2544
+ this._parseStack.state = r, this._parseStack.handlers = i, this._parseStack.handlerPos = s, this._parseStack.transition = f, this._parseStack.chunkPos = p;
2531
2545
  }
2532
- parse(s, i, t) {
2546
+ parse(r, i, s) {
2533
2547
  let f, p = 0, S = 0, y = 0;
2534
2548
  if (this._parseStack.state) if (this._parseStack.state === 2) this._parseStack.state = 0, y = this._parseStack.chunkPos + 1;
2535
2549
  else {
2536
- if (t === void 0 || this._parseStack.state === 1) throw this._parseStack.state = 1, new Error("improper continuation due to previous async handler, giving up parsing");
2550
+ if (s === void 0 || this._parseStack.state === 1) throw this._parseStack.state = 1, new Error("improper continuation due to previous async handler, giving up parsing");
2537
2551
  const C = this._parseStack.handlers;
2538
- let T = this._parseStack.handlerPos - 1;
2552
+ let k = this._parseStack.handlerPos - 1;
2539
2553
  switch (this._parseStack.state) {
2540
2554
  case 3:
2541
- if (t === !1 && T > -1) {
2542
- for (; T >= 0 && (f = C[T](this._params), f !== !0); T--) if (f instanceof Promise) return this._parseStack.handlerPos = T, f;
2555
+ if (s === !1 && k > -1) {
2556
+ for (; k >= 0 && (f = C[k](this._params), f !== !0); k--) if (f instanceof Promise) return this._parseStack.handlerPos = k, f;
2543
2557
  }
2544
2558
  this._parseStack.handlers = [];
2545
2559
  break;
2546
2560
  case 4:
2547
- if (t === !1 && T > -1) {
2548
- for (; T >= 0 && (f = C[T](), f !== !0); T--) if (f instanceof Promise) return this._parseStack.handlerPos = T, f;
2561
+ if (s === !1 && k > -1) {
2562
+ for (; k >= 0 && (f = C[k](), f !== !0); k--) if (f instanceof Promise) return this._parseStack.handlerPos = k, f;
2549
2563
  }
2550
2564
  this._parseStack.handlers = [];
2551
2565
  break;
2552
2566
  case 6:
2553
- if (p = s[this._parseStack.chunkPos], f = this._dcsParser.unhook(p !== 24 && p !== 26, t), f) return f;
2567
+ if (p = r[this._parseStack.chunkPos], f = this._dcsParser.unhook(p !== 24 && p !== 26, s), f) return f;
2554
2568
  p === 27 && (this._parseStack.transition |= 1), this._params.reset(), this._params.addParam(0), this._collect = 0;
2555
2569
  break;
2556
2570
  case 5:
2557
- if (p = s[this._parseStack.chunkPos], f = this._oscParser.end(p !== 24 && p !== 26, t), f) return f;
2571
+ if (p = r[this._parseStack.chunkPos], f = this._oscParser.end(p !== 24 && p !== 26, s), f) return f;
2558
2572
  p === 27 && (this._parseStack.transition |= 1), this._params.reset(), this._params.addParam(0), this._collect = 0;
2559
2573
  }
2560
2574
  this._parseStack.state = 0, y = this._parseStack.chunkPos + 1, this.precedingJoinState = 0, this.currentState = 15 & this._parseStack.transition;
2561
2575
  }
2562
2576
  for (let C = y; C < i; ++C) {
2563
- switch (p = s[C], S = this._transitions.table[this.currentState << 8 | (p < 160 ? p : h)], S >> 4) {
2577
+ switch (p = r[C], S = this._transitions.table[this.currentState << 8 | (p < 160 ? p : c)], S >> 4) {
2564
2578
  case 2:
2565
- for (let k = C + 1; ; ++k) {
2566
- if (k >= i || (p = s[k]) < 32 || p > 126 && p < h) {
2567
- this._printHandler(s, C, k), C = k - 1;
2579
+ for (let T = C + 1; ; ++T) {
2580
+ if (T >= i || (p = r[T]) < 32 || p > 126 && p < c) {
2581
+ this._printHandler(r, C, T), C = T - 1;
2568
2582
  break;
2569
2583
  }
2570
- if (++k >= i || (p = s[k]) < 32 || p > 126 && p < h) {
2571
- this._printHandler(s, C, k), C = k - 1;
2584
+ if (++T >= i || (p = r[T]) < 32 || p > 126 && p < c) {
2585
+ this._printHandler(r, C, T), C = T - 1;
2572
2586
  break;
2573
2587
  }
2574
- if (++k >= i || (p = s[k]) < 32 || p > 126 && p < h) {
2575
- this._printHandler(s, C, k), C = k - 1;
2588
+ if (++T >= i || (p = r[T]) < 32 || p > 126 && p < c) {
2589
+ this._printHandler(r, C, T), C = T - 1;
2576
2590
  break;
2577
2591
  }
2578
- if (++k >= i || (p = s[k]) < 32 || p > 126 && p < h) {
2579
- this._printHandler(s, C, k), C = k - 1;
2592
+ if (++T >= i || (p = r[T]) < 32 || p > 126 && p < c) {
2593
+ this._printHandler(r, C, T), C = T - 1;
2580
2594
  break;
2581
2595
  }
2582
2596
  }
@@ -2590,10 +2604,10 @@ function Ae() {
2590
2604
  if (this._errorHandler({ position: C, code: p, currentState: this.currentState, collect: this._collect, params: this._params, abort: !1 }).abort) return;
2591
2605
  break;
2592
2606
  case 7:
2593
- const T = this._csiHandlers[this._collect << 8 | p];
2594
- let j = T ? T.length - 1 : -1;
2595
- for (; j >= 0 && (f = T[j](this._params), f !== !0); j--) if (f instanceof Promise) return this._preserveStack(3, T, j, S, C), f;
2596
- j < 0 && this._csiHandlerFb(this._collect << 8 | p, this._params), this.precedingJoinState = 0;
2607
+ const k = this._csiHandlers[this._collect << 8 | p];
2608
+ let $ = k ? k.length - 1 : -1;
2609
+ for (; $ >= 0 && (f = k[$](this._params), f !== !0); $--) if (f instanceof Promise) return this._preserveStack(3, k, $, S, C), f;
2610
+ $ < 0 && this._csiHandlerFb(this._collect << 8 | p, this._params), this.precedingJoinState = 0;
2597
2611
  break;
2598
2612
  case 8:
2599
2613
  do
@@ -2607,7 +2621,7 @@ function Ae() {
2607
2621
  default:
2608
2622
  this._params.addDigit(p - 48);
2609
2623
  }
2610
- while (++C < i && (p = s[C]) > 47 && p < 60);
2624
+ while (++C < i && (p = r[C]) > 47 && p < 60);
2611
2625
  C--;
2612
2626
  break;
2613
2627
  case 9:
@@ -2626,8 +2640,8 @@ function Ae() {
2626
2640
  this._dcsParser.hook(this._collect << 8 | p, this._params);
2627
2641
  break;
2628
2642
  case 13:
2629
- for (let k = C + 1; ; ++k) if (k >= i || (p = s[k]) === 24 || p === 26 || p === 27 || p > 127 && p < h) {
2630
- this._dcsParser.put(s, C, k), C = k - 1;
2643
+ for (let T = C + 1; ; ++T) if (T >= i || (p = r[T]) === 24 || p === 26 || p === 27 || p > 127 && p < c) {
2644
+ this._dcsParser.put(r, C, T), C = T - 1;
2631
2645
  break;
2632
2646
  }
2633
2647
  break;
@@ -2639,8 +2653,8 @@ function Ae() {
2639
2653
  this._oscParser.start();
2640
2654
  break;
2641
2655
  case 5:
2642
- for (let k = C + 1; ; k++) if (k >= i || (p = s[k]) < 32 || p > 127 && p < h) {
2643
- this._oscParser.put(s, C, k), C = k - 1;
2656
+ for (let T = C + 1; ; T++) if (T >= i || (p = r[T]) < 32 || p > 127 && p < c) {
2657
+ this._oscParser.put(r, C, T), C = T - 1;
2644
2658
  break;
2645
2659
  }
2646
2660
  break;
@@ -2652,52 +2666,52 @@ function Ae() {
2652
2666
  }
2653
2667
  }
2654
2668
  }
2655
- r.EscapeSequenceParser = u;
2656
- }, 242: (w, r, l) => {
2657
- Object.defineProperty(r, "__esModule", { value: !0 }), r.OscHandler = r.OscParser = void 0;
2669
+ t.EscapeSequenceParser = u;
2670
+ }, 242: (w, t, l) => {
2671
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.OscHandler = t.OscParser = void 0;
2658
2672
  const d = l(770), _ = l(482), n = [];
2659
- r.OscParser = class {
2673
+ t.OscParser = class {
2660
2674
  constructor() {
2661
2675
  this._state = 0, this._active = n, this._id = -1, this._handlers = /* @__PURE__ */ Object.create(null), this._handlerFb = () => {
2662
2676
  }, this._stack = { paused: !1, loopPosition: 0, fallThrough: !1 };
2663
2677
  }
2664
- registerHandler(c, a) {
2665
- this._handlers[c] === void 0 && (this._handlers[c] = []);
2666
- const h = this._handlers[c];
2667
- return h.push(a), { dispose: () => {
2668
- const u = h.indexOf(a);
2669
- u !== -1 && h.splice(u, 1);
2678
+ registerHandler(h, a) {
2679
+ this._handlers[h] === void 0 && (this._handlers[h] = []);
2680
+ const c = this._handlers[h];
2681
+ return c.push(a), { dispose: () => {
2682
+ const u = c.indexOf(a);
2683
+ u !== -1 && c.splice(u, 1);
2670
2684
  } };
2671
2685
  }
2672
- clearHandler(c) {
2673
- this._handlers[c] && delete this._handlers[c];
2686
+ clearHandler(h) {
2687
+ this._handlers[h] && delete this._handlers[h];
2674
2688
  }
2675
- setHandlerFallback(c) {
2676
- this._handlerFb = c;
2689
+ setHandlerFallback(h) {
2690
+ this._handlerFb = h;
2677
2691
  }
2678
2692
  dispose() {
2679
2693
  this._handlers = /* @__PURE__ */ Object.create(null), this._handlerFb = () => {
2680
2694
  }, this._active = n;
2681
2695
  }
2682
2696
  reset() {
2683
- if (this._state === 2) for (let c = this._stack.paused ? this._stack.loopPosition - 1 : this._active.length - 1; c >= 0; --c) this._active[c].end(!1);
2697
+ if (this._state === 2) for (let h = this._stack.paused ? this._stack.loopPosition - 1 : this._active.length - 1; h >= 0; --h) this._active[h].end(!1);
2684
2698
  this._stack.paused = !1, this._active = n, this._id = -1, this._state = 0;
2685
2699
  }
2686
2700
  _start() {
2687
- if (this._active = this._handlers[this._id] || n, this._active.length) for (let c = this._active.length - 1; c >= 0; c--) this._active[c].start();
2701
+ if (this._active = this._handlers[this._id] || n, this._active.length) for (let h = this._active.length - 1; h >= 0; h--) this._active[h].start();
2688
2702
  else this._handlerFb(this._id, "START");
2689
2703
  }
2690
- _put(c, a, h) {
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, _.utf32ToString)(c, a, h));
2704
+ _put(h, a, c) {
2705
+ if (this._active.length) for (let u = this._active.length - 1; u >= 0; u--) this._active[u].put(h, a, c);
2706
+ else this._handlerFb(this._id, "PUT", (0, _.utf32ToString)(h, a, c));
2693
2707
  }
2694
2708
  start() {
2695
2709
  this.reset(), this._state = 1;
2696
2710
  }
2697
- put(c, a, h) {
2711
+ put(h, a, c) {
2698
2712
  if (this._state !== 3) {
2699
- if (this._state === 1) for (; a < h; ) {
2700
- const u = c[a++];
2713
+ if (this._state === 1) for (; a < c; ) {
2714
+ const u = h[a++];
2701
2715
  if (u === 59) {
2702
2716
  this._state = 2, this._start();
2703
2717
  break;
@@ -2705,56 +2719,56 @@ function Ae() {
2705
2719
  if (u < 48 || 57 < u) return void (this._state = 3);
2706
2720
  this._id === -1 && (this._id = 0), this._id = 10 * this._id + u - 48;
2707
2721
  }
2708
- this._state === 2 && h - a > 0 && this._put(c, a, h);
2722
+ this._state === 2 && c - a > 0 && this._put(h, a, c);
2709
2723
  }
2710
2724
  }
2711
- end(c, a = !0) {
2725
+ end(h, a = !0) {
2712
2726
  if (this._state !== 0) {
2713
2727
  if (this._state !== 3) if (this._state === 1 && this._start(), this._active.length) {
2714
- let h = !1, u = this._active.length - 1, e = !1;
2715
- if (this._stack.paused && (u = this._stack.loopPosition - 1, h = a, e = this._stack.fallThrough, this._stack.paused = !1), !e && h === !1) {
2716
- for (; u >= 0 && (h = this._active[u].end(c), h !== !0); u--) if (h instanceof Promise) return this._stack.paused = !0, this._stack.loopPosition = u, this._stack.fallThrough = !1, h;
2728
+ let c = !1, u = this._active.length - 1, e = !1;
2729
+ if (this._stack.paused && (u = this._stack.loopPosition - 1, c = a, e = this._stack.fallThrough, this._stack.paused = !1), !e && c === !1) {
2730
+ for (; u >= 0 && (c = this._active[u].end(h), c !== !0); u--) if (c instanceof Promise) return this._stack.paused = !0, this._stack.loopPosition = u, this._stack.fallThrough = !1, c;
2717
2731
  u--;
2718
2732
  }
2719
- for (; u >= 0; u--) if (h = this._active[u].end(!1), h instanceof Promise) return this._stack.paused = !0, this._stack.loopPosition = u, this._stack.fallThrough = !0, h;
2720
- } else this._handlerFb(this._id, "END", c);
2733
+ for (; u >= 0; u--) if (c = this._active[u].end(!1), c instanceof Promise) return this._stack.paused = !0, this._stack.loopPosition = u, this._stack.fallThrough = !0, c;
2734
+ } else this._handlerFb(this._id, "END", h);
2721
2735
  this._active = n, this._id = -1, this._state = 0;
2722
2736
  }
2723
2737
  }
2724
- }, r.OscHandler = class {
2725
- constructor(c) {
2726
- this._handler = c, this._data = "", this._hitLimit = !1;
2738
+ }, t.OscHandler = class {
2739
+ constructor(h) {
2740
+ this._handler = h, this._data = "", this._hitLimit = !1;
2727
2741
  }
2728
2742
  start() {
2729
2743
  this._data = "", this._hitLimit = !1;
2730
2744
  }
2731
- put(c, a, h) {
2732
- this._hitLimit || (this._data += (0, _.utf32ToString)(c, a, h), this._data.length > d.PAYLOAD_LIMIT && (this._data = "", this._hitLimit = !0));
2745
+ put(h, a, c) {
2746
+ this._hitLimit || (this._data += (0, _.utf32ToString)(h, a, c), this._data.length > d.PAYLOAD_LIMIT && (this._data = "", this._hitLimit = !0));
2733
2747
  }
2734
- end(c) {
2748
+ end(h) {
2735
2749
  let a = !1;
2736
2750
  if (this._hitLimit) a = !1;
2737
- else if (c && (a = this._handler(this._data), a instanceof Promise)) return a.then((h) => (this._data = "", this._hitLimit = !1, h));
2751
+ else if (h && (a = this._handler(this._data), a instanceof Promise)) return a.then((c) => (this._data = "", this._hitLimit = !1, c));
2738
2752
  return this._data = "", this._hitLimit = !1, a;
2739
2753
  }
2740
2754
  };
2741
- }, 742: (w, r) => {
2742
- Object.defineProperty(r, "__esModule", { value: !0 }), r.Params = void 0;
2755
+ }, 742: (w, t) => {
2756
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.Params = void 0;
2743
2757
  const l = 2147483647;
2744
2758
  class d {
2745
2759
  static fromArray(n) {
2746
- const c = new d();
2747
- if (!n.length) return c;
2760
+ const h = new d();
2761
+ if (!n.length) return h;
2748
2762
  for (let a = Array.isArray(n[0]) ? 1 : 0; a < n.length; ++a) {
2749
- const h = n[a];
2750
- if (Array.isArray(h)) for (let u = 0; u < h.length; ++u) c.addSubParam(h[u]);
2751
- else c.addParam(h);
2763
+ const c = n[a];
2764
+ if (Array.isArray(c)) for (let u = 0; u < c.length; ++u) h.addSubParam(c[u]);
2765
+ else h.addParam(c);
2752
2766
  }
2753
- return c;
2767
+ return h;
2754
2768
  }
2755
- constructor(n = 32, c = 32) {
2756
- if (this.maxLength = n, this.maxSubParamsLength = c, c > 256) throw new Error("maxSubParamsLength must not be greater than 256");
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;
2769
+ constructor(n = 32, h = 32) {
2770
+ if (this.maxLength = n, this.maxSubParamsLength = h, h > 256) throw new Error("maxSubParamsLength must not be greater than 256");
2771
+ this.params = new Int32Array(n), this.length = 0, this._subParams = new Int32Array(h), this._subParamsLength = 0, this._subParamsIdx = new Uint16Array(n), this._rejectDigits = !1, this._rejectSubDigits = !1, this._digitIsSub = !1;
2758
2772
  }
2759
2773
  clone() {
2760
2774
  const n = new d(this.maxLength, this.maxSubParamsLength);
@@ -2762,10 +2776,10 @@ function Ae() {
2762
2776
  }
2763
2777
  toArray() {
2764
2778
  const n = [];
2765
- for (let c = 0; c < this.length; ++c) {
2766
- n.push(this.params[c]);
2767
- const a = this._subParamsIdx[c] >> 8, h = 255 & this._subParamsIdx[c];
2768
- h - a > 0 && n.push(Array.prototype.slice.call(this._subParams, a, h));
2779
+ for (let h = 0; h < this.length; ++h) {
2780
+ n.push(this.params[h]);
2781
+ const a = this._subParamsIdx[h] >> 8, c = 255 & this._subParamsIdx[h];
2782
+ c - a > 0 && n.push(Array.prototype.slice.call(this._subParams, a, c));
2769
2783
  }
2770
2784
  return n;
2771
2785
  }
@@ -2790,27 +2804,27 @@ function Ae() {
2790
2804
  return (255 & this._subParamsIdx[n]) - (this._subParamsIdx[n] >> 8) > 0;
2791
2805
  }
2792
2806
  getSubParams(n) {
2793
- const c = this._subParamsIdx[n] >> 8, a = 255 & this._subParamsIdx[n];
2794
- return a - c > 0 ? this._subParams.subarray(c, a) : null;
2807
+ const h = this._subParamsIdx[n] >> 8, a = 255 & this._subParamsIdx[n];
2808
+ return a - h > 0 ? this._subParams.subarray(h, a) : null;
2795
2809
  }
2796
2810
  getSubParamsAll() {
2797
2811
  const n = {};
2798
- for (let c = 0; c < this.length; ++c) {
2799
- const a = this._subParamsIdx[c] >> 8, h = 255 & this._subParamsIdx[c];
2800
- h - a > 0 && (n[c] = this._subParams.slice(a, h));
2812
+ for (let h = 0; h < this.length; ++h) {
2813
+ const a = this._subParamsIdx[h] >> 8, c = 255 & this._subParamsIdx[h];
2814
+ c - a > 0 && (n[h] = this._subParams.slice(a, c));
2801
2815
  }
2802
2816
  return n;
2803
2817
  }
2804
2818
  addDigit(n) {
2805
- let c;
2806
- if (this._rejectDigits || !(c = this._digitIsSub ? this._subParamsLength : this.length) || this._digitIsSub && this._rejectSubDigits) return;
2807
- const a = this._digitIsSub ? this._subParams : this.params, h = a[c - 1];
2808
- a[c - 1] = ~h ? Math.min(10 * h + n, l) : n;
2819
+ let h;
2820
+ if (this._rejectDigits || !(h = this._digitIsSub ? this._subParamsLength : this.length) || this._digitIsSub && this._rejectSubDigits) return;
2821
+ const a = this._digitIsSub ? this._subParams : this.params, c = a[h - 1];
2822
+ a[h - 1] = ~c ? Math.min(10 * c + n, l) : n;
2809
2823
  }
2810
2824
  }
2811
- r.Params = d;
2812
- }, 741: (w, r) => {
2813
- Object.defineProperty(r, "__esModule", { value: !0 }), r.AddonManager = void 0, r.AddonManager = class {
2825
+ t.Params = d;
2826
+ }, 741: (w, t) => {
2827
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.AddonManager = void 0, t.AddonManager = class {
2814
2828
  constructor() {
2815
2829
  this._addons = [];
2816
2830
  }
@@ -2832,12 +2846,12 @@ function Ae() {
2832
2846
  l.isDisposed = !0, l.dispose.apply(l.instance), this._addons.splice(d, 1);
2833
2847
  }
2834
2848
  };
2835
- }, 771: (w, r, l) => {
2836
- Object.defineProperty(r, "__esModule", { value: !0 }), r.BufferApiView = void 0;
2849
+ }, 771: (w, t, l) => {
2850
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.BufferApiView = void 0;
2837
2851
  const d = l(785), _ = l(511);
2838
- r.BufferApiView = class {
2839
- constructor(n, c) {
2840
- this._buffer = n, this.type = c;
2852
+ t.BufferApiView = class {
2853
+ constructor(n, h) {
2854
+ this._buffer = n, this.type = h;
2841
2855
  }
2842
2856
  init(n) {
2843
2857
  return this._buffer = n, this;
@@ -2858,17 +2872,17 @@ function Ae() {
2858
2872
  return this._buffer.lines.length;
2859
2873
  }
2860
2874
  getLine(n) {
2861
- const c = this._buffer.lines.get(n);
2862
- if (c) return new d.BufferLineApiView(c);
2875
+ const h = this._buffer.lines.get(n);
2876
+ if (h) return new d.BufferLineApiView(h);
2863
2877
  }
2864
2878
  getNullCell() {
2865
2879
  return new _.CellData();
2866
2880
  }
2867
2881
  };
2868
- }, 785: (w, r, l) => {
2869
- Object.defineProperty(r, "__esModule", { value: !0 }), r.BufferLineApiView = void 0;
2882
+ }, 785: (w, t, l) => {
2883
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.BufferLineApiView = void 0;
2870
2884
  const d = l(511);
2871
- r.BufferLineApiView = class {
2885
+ t.BufferLineApiView = class {
2872
2886
  constructor(_) {
2873
2887
  this._line = _;
2874
2888
  }
@@ -2881,16 +2895,16 @@ function Ae() {
2881
2895
  getCell(_, n) {
2882
2896
  if (!(_ < 0 || _ >= this._line.length)) return n ? (this._line.loadCell(_, n), n) : this._line.loadCell(_, new d.CellData());
2883
2897
  }
2884
- translateToString(_, n, c) {
2885
- return this._line.translateToString(_, n, c);
2898
+ translateToString(_, n, h) {
2899
+ return this._line.translateToString(_, n, h);
2886
2900
  }
2887
2901
  };
2888
- }, 285: (w, r, l) => {
2889
- Object.defineProperty(r, "__esModule", { value: !0 }), r.BufferNamespaceApi = void 0;
2902
+ }, 285: (w, t, l) => {
2903
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.BufferNamespaceApi = void 0;
2890
2904
  const d = l(771), _ = l(460), n = l(844);
2891
- class c extends n.Disposable {
2892
- constructor(h) {
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));
2905
+ class h extends n.Disposable {
2906
+ constructor(c) {
2907
+ super(), this._core = c, 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
2908
  }
2895
2909
  get active() {
2896
2910
  if (this._core.buffers.active === this._core.buffers.normal) return this.normal;
@@ -2904,9 +2918,9 @@ function Ae() {
2904
2918
  return this._alternate.init(this._core.buffers.alt);
2905
2919
  }
2906
2920
  }
2907
- r.BufferNamespaceApi = c;
2908
- }, 975: (w, r) => {
2909
- Object.defineProperty(r, "__esModule", { value: !0 }), r.ParserApi = void 0, r.ParserApi = class {
2921
+ t.BufferNamespaceApi = h;
2922
+ }, 975: (w, t) => {
2923
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.ParserApi = void 0, t.ParserApi = class {
2910
2924
  constructor(l) {
2911
2925
  this._core = l;
2912
2926
  }
@@ -2935,8 +2949,8 @@ function Ae() {
2935
2949
  return this.registerOscHandler(l, d);
2936
2950
  }
2937
2951
  };
2938
- }, 90: (w, r) => {
2939
- Object.defineProperty(r, "__esModule", { value: !0 }), r.UnicodeApi = void 0, r.UnicodeApi = class {
2952
+ }, 90: (w, t) => {
2953
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.UnicodeApi = void 0, t.UnicodeApi = class {
2940
2954
  constructor(l) {
2941
2955
  this._core = l;
2942
2956
  }
@@ -2953,60 +2967,60 @@ function Ae() {
2953
2967
  this._core.unicodeService.activeVersion = l;
2954
2968
  }
2955
2969
  };
2956
- }, 744: function(w, r, l) {
2957
- var d = this && this.__decorate || function(e, s, i, t) {
2958
- var f, p = arguments.length, S = p < 3 ? s : t === null ? t = Object.getOwnPropertyDescriptor(s, i) : t;
2959
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") S = Reflect.decorate(e, s, i, t);
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
- return p > 3 && S && Object.defineProperty(s, i, S), S;
2962
- }, _ = this && this.__param || function(e, s) {
2963
- return function(i, t) {
2964
- s(i, t, e);
2970
+ }, 744: function(w, t, l) {
2971
+ var d = this && this.__decorate || function(e, r, i, s) {
2972
+ var f, p = arguments.length, S = p < 3 ? r : s === null ? s = Object.getOwnPropertyDescriptor(r, i) : s;
2973
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") S = Reflect.decorate(e, r, i, s);
2974
+ else for (var y = e.length - 1; y >= 0; y--) (f = e[y]) && (S = (p < 3 ? f(S) : p > 3 ? f(r, i, S) : f(r, i)) || S);
2975
+ return p > 3 && S && Object.defineProperty(r, i, S), S;
2976
+ }, _ = this && this.__param || function(e, r) {
2977
+ return function(i, s) {
2978
+ r(i, s, e);
2965
2979
  };
2966
2980
  };
2967
- Object.defineProperty(r, "__esModule", { value: !0 }), r.BufferService = r.MINIMUM_ROWS = r.MINIMUM_COLS = void 0;
2968
- const n = l(460), c = l(844), a = l(295), h = l(585);
2969
- r.MINIMUM_COLS = 2, r.MINIMUM_ROWS = 1;
2970
- let u = r.BufferService = class extends c.Disposable {
2981
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.BufferService = t.MINIMUM_ROWS = t.MINIMUM_COLS = void 0;
2982
+ const n = l(460), h = l(844), a = l(295), c = l(585);
2983
+ t.MINIMUM_COLS = 2, t.MINIMUM_ROWS = 1;
2984
+ let u = t.BufferService = class extends h.Disposable {
2971
2985
  get buffer() {
2972
2986
  return this.buffers.active;
2973
2987
  }
2974
2988
  constructor(e) {
2975
- super(), this.isUserScrolling = !1, this._onResize = this.register(new n.EventEmitter()), this.onResize = this._onResize.event, this._onScroll = this.register(new n.EventEmitter()), this.onScroll = this._onScroll.event, this.cols = Math.max(e.rawOptions.cols || 0, r.MINIMUM_COLS), this.rows = Math.max(e.rawOptions.rows || 0, r.MINIMUM_ROWS), this.buffers = this.register(new a.BufferSet(e, this));
2989
+ super(), this.isUserScrolling = !1, this._onResize = this.register(new n.EventEmitter()), this.onResize = this._onResize.event, this._onScroll = this.register(new n.EventEmitter()), this.onScroll = this._onScroll.event, this.cols = Math.max(e.rawOptions.cols || 0, t.MINIMUM_COLS), this.rows = Math.max(e.rawOptions.rows || 0, t.MINIMUM_ROWS), this.buffers = this.register(new a.BufferSet(e, this));
2976
2990
  }
2977
- resize(e, s) {
2978
- this.cols = e, this.rows = s, this.buffers.resize(e, s), this._onResize.fire({ cols: e, rows: s });
2991
+ resize(e, r) {
2992
+ this.cols = e, this.rows = r, this.buffers.resize(e, r), this._onResize.fire({ cols: e, rows: r });
2979
2993
  }
2980
2994
  reset() {
2981
2995
  this.buffers.reset(), this.isUserScrolling = !1;
2982
2996
  }
2983
- scroll(e, s = !1) {
2997
+ scroll(e, r = !1) {
2984
2998
  const i = this.buffer;
2985
- let t;
2986
- t = this._cachedBlankLine, t && t.length === this.cols && t.getFg(0) === e.fg && t.getBg(0) === e.bg || (t = i.getBlankLine(e, s), this._cachedBlankLine = t), t.isWrapped = s;
2999
+ let s;
3000
+ s = this._cachedBlankLine, s && s.length === this.cols && s.getFg(0) === e.fg && s.getBg(0) === e.bg || (s = i.getBlankLine(e, r), this._cachedBlankLine = s), s.isWrapped = r;
2987
3001
  const f = i.ybase + i.scrollTop, p = i.ybase + i.scrollBottom;
2988
3002
  if (i.scrollTop === 0) {
2989
3003
  const S = i.lines.isFull;
2990
- p === i.lines.length - 1 ? S ? i.lines.recycle().copyFrom(t) : i.lines.push(t.clone()) : i.lines.splice(p + 1, 0, t.clone()), S ? this.isUserScrolling && (i.ydisp = Math.max(i.ydisp - 1, 0)) : (i.ybase++, this.isUserScrolling || i.ydisp++);
3004
+ p === i.lines.length - 1 ? S ? i.lines.recycle().copyFrom(s) : i.lines.push(s.clone()) : i.lines.splice(p + 1, 0, s.clone()), S ? this.isUserScrolling && (i.ydisp = Math.max(i.ydisp - 1, 0)) : (i.ybase++, this.isUserScrolling || i.ydisp++);
2991
3005
  } else {
2992
3006
  const S = p - f + 1;
2993
- i.lines.shiftElements(f + 1, S - 1, -1), i.lines.set(p, t.clone());
3007
+ i.lines.shiftElements(f + 1, S - 1, -1), i.lines.set(p, s.clone());
2994
3008
  }
2995
3009
  this.isUserScrolling || (i.ydisp = i.ybase), this._onScroll.fire(i.ydisp);
2996
3010
  }
2997
- scrollLines(e, s, i) {
2998
- const t = this.buffer;
3011
+ scrollLines(e, r, i) {
3012
+ const s = this.buffer;
2999
3013
  if (e < 0) {
3000
- if (t.ydisp === 0) return;
3014
+ if (s.ydisp === 0) return;
3001
3015
  this.isUserScrolling = !0;
3002
- } else e + t.ydisp >= t.ybase && (this.isUserScrolling = !1);
3003
- const f = t.ydisp;
3004
- t.ydisp = Math.max(Math.min(t.ydisp + e, t.ybase), 0), f !== t.ydisp && (s || this._onScroll.fire(t.ydisp));
3016
+ } else e + s.ydisp >= s.ybase && (this.isUserScrolling = !1);
3017
+ const f = s.ydisp;
3018
+ s.ydisp = Math.max(Math.min(s.ydisp + e, s.ybase), 0), f !== s.ydisp && (r || this._onScroll.fire(s.ydisp));
3005
3019
  }
3006
3020
  };
3007
- r.BufferService = u = d([_(0, h.IOptionsService)], u);
3008
- }, 994: (w, r) => {
3009
- Object.defineProperty(r, "__esModule", { value: !0 }), r.CharsetService = void 0, r.CharsetService = class {
3021
+ t.BufferService = u = d([_(0, c.IOptionsService)], u);
3022
+ }, 994: (w, t) => {
3023
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.CharsetService = void 0, t.CharsetService = class {
3010
3024
  constructor() {
3011
3025
  this.glevel = 0, this._charsets = [];
3012
3026
  }
@@ -3020,45 +3034,45 @@ function Ae() {
3020
3034
  this._charsets[l] = d, this.glevel === l && (this.charset = d);
3021
3035
  }
3022
3036
  };
3023
- }, 753: function(w, r, l) {
3024
- var d = this && this.__decorate || function(t, f, p, S) {
3025
- var y, C = arguments.length, T = C < 3 ? f : S === null ? S = Object.getOwnPropertyDescriptor(f, p) : S;
3026
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") T = Reflect.decorate(t, f, p, S);
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
- return C > 3 && T && Object.defineProperty(f, p, T), T;
3029
- }, _ = this && this.__param || function(t, f) {
3037
+ }, 753: function(w, t, l) {
3038
+ var d = this && this.__decorate || function(s, f, p, S) {
3039
+ var y, C = arguments.length, k = C < 3 ? f : S === null ? S = Object.getOwnPropertyDescriptor(f, p) : S;
3040
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") k = Reflect.decorate(s, f, p, S);
3041
+ else for (var $ = s.length - 1; $ >= 0; $--) (y = s[$]) && (k = (C < 3 ? y(k) : C > 3 ? y(f, p, k) : y(f, p)) || k);
3042
+ return C > 3 && k && Object.defineProperty(f, p, k), k;
3043
+ }, _ = this && this.__param || function(s, f) {
3030
3044
  return function(p, S) {
3031
- f(p, S, t);
3045
+ f(p, S, s);
3032
3046
  };
3033
3047
  };
3034
- Object.defineProperty(r, "__esModule", { value: !0 }), r.CoreMouseService = void 0;
3035
- const n = l(585), c = l(460), a = l(844), h = { NONE: { events: 0, restrict: () => !1 }, X10: { events: 1, restrict: (t) => t.button !== 4 && t.action === 1 && (t.ctrl = !1, t.alt = !1, t.shift = !1, !0) }, VT200: { events: 19, restrict: (t) => t.action !== 32 }, DRAG: { events: 23, restrict: (t) => t.action !== 32 || t.button !== 3 }, ANY: { events: 31, restrict: (t) => !0 } };
3036
- function u(t, f) {
3037
- let p = (t.ctrl ? 16 : 0) | (t.shift ? 4 : 0) | (t.alt ? 8 : 0);
3038
- return t.button === 4 ? (p |= 64, p |= t.action) : (p |= 3 & t.button, 4 & t.button && (p |= 64), 8 & t.button && (p |= 128), t.action === 32 ? p |= 32 : t.action !== 0 || f || (p |= 3)), p;
3048
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.CoreMouseService = void 0;
3049
+ const n = l(585), h = l(460), a = l(844), c = { NONE: { events: 0, restrict: () => !1 }, X10: { events: 1, restrict: (s) => s.button !== 4 && s.action === 1 && (s.ctrl = !1, s.alt = !1, s.shift = !1, !0) }, VT200: { events: 19, restrict: (s) => s.action !== 32 }, DRAG: { events: 23, restrict: (s) => s.action !== 32 || s.button !== 3 }, ANY: { events: 31, restrict: (s) => !0 } };
3050
+ function u(s, f) {
3051
+ let p = (s.ctrl ? 16 : 0) | (s.shift ? 4 : 0) | (s.alt ? 8 : 0);
3052
+ return s.button === 4 ? (p |= 64, p |= s.action) : (p |= 3 & s.button, 4 & s.button && (p |= 64), 8 & s.button && (p |= 128), s.action === 32 ? p |= 32 : s.action !== 0 || f || (p |= 3)), p;
3039
3053
  }
3040
- const e = String.fromCharCode, s = { DEFAULT: (t) => {
3041
- const f = [u(t, !1) + 32, t.col + 32, t.row + 32];
3054
+ const e = String.fromCharCode, r = { DEFAULT: (s) => {
3055
+ const f = [u(s, !1) + 32, s.col + 32, s.row + 32];
3042
3056
  return f[0] > 255 || f[1] > 255 || f[2] > 255 ? "" : `\x1B[M${e(f[0])}${e(f[1])}${e(f[2])}`;
3043
- }, SGR: (t) => {
3044
- const f = t.action === 0 && t.button !== 4 ? "m" : "M";
3045
- return `\x1B[<${u(t, !0)};${t.col};${t.row}${f}`;
3046
- }, SGR_PIXELS: (t) => {
3047
- const f = t.action === 0 && t.button !== 4 ? "m" : "M";
3048
- return `\x1B[<${u(t, !0)};${t.x};${t.y}${f}`;
3057
+ }, SGR: (s) => {
3058
+ const f = s.action === 0 && s.button !== 4 ? "m" : "M";
3059
+ return `\x1B[<${u(s, !0)};${s.col};${s.row}${f}`;
3060
+ }, SGR_PIXELS: (s) => {
3061
+ const f = s.action === 0 && s.button !== 4 ? "m" : "M";
3062
+ return `\x1B[<${u(s, !0)};${s.x};${s.y}${f}`;
3049
3063
  } };
3050
- let i = r.CoreMouseService = class extends a.Disposable {
3051
- constructor(t, f) {
3052
- super(), this._bufferService = t, this._coreService = f, this._protocols = {}, this._encodings = {}, this._activeProtocol = "", this._activeEncoding = "", this._lastEvent = null, this._onProtocolChange = this.register(new c.EventEmitter()), this.onProtocolChange = this._onProtocolChange.event;
3053
- for (const p of Object.keys(h)) this.addProtocol(p, h[p]);
3054
- for (const p of Object.keys(s)) this.addEncoding(p, s[p]);
3064
+ let i = t.CoreMouseService = class extends a.Disposable {
3065
+ constructor(s, f) {
3066
+ super(), this._bufferService = s, this._coreService = f, this._protocols = {}, this._encodings = {}, this._activeProtocol = "", this._activeEncoding = "", this._lastEvent = null, this._onProtocolChange = this.register(new h.EventEmitter()), this.onProtocolChange = this._onProtocolChange.event;
3067
+ for (const p of Object.keys(c)) this.addProtocol(p, c[p]);
3068
+ for (const p of Object.keys(r)) this.addEncoding(p, r[p]);
3055
3069
  this.reset();
3056
3070
  }
3057
- addProtocol(t, f) {
3058
- this._protocols[t] = f;
3071
+ addProtocol(s, f) {
3072
+ this._protocols[s] = f;
3059
3073
  }
3060
- addEncoding(t, f) {
3061
- this._encodings[t] = f;
3074
+ addEncoding(s, f) {
3075
+ this._encodings[s] = f;
3062
3076
  }
3063
3077
  get activeProtocol() {
3064
3078
  return this._activeProtocol;
@@ -3066,80 +3080,80 @@ function Ae() {
3066
3080
  get areMouseEventsActive() {
3067
3081
  return this._protocols[this._activeProtocol].events !== 0;
3068
3082
  }
3069
- set activeProtocol(t) {
3070
- if (!this._protocols[t]) throw new Error(`unknown protocol "${t}"`);
3071
- this._activeProtocol = t, this._onProtocolChange.fire(this._protocols[t].events);
3083
+ set activeProtocol(s) {
3084
+ if (!this._protocols[s]) throw new Error(`unknown protocol "${s}"`);
3085
+ this._activeProtocol = s, this._onProtocolChange.fire(this._protocols[s].events);
3072
3086
  }
3073
3087
  get activeEncoding() {
3074
3088
  return this._activeEncoding;
3075
3089
  }
3076
- set activeEncoding(t) {
3077
- if (!this._encodings[t]) throw new Error(`unknown encoding "${t}"`);
3078
- this._activeEncoding = t;
3090
+ set activeEncoding(s) {
3091
+ if (!this._encodings[s]) throw new Error(`unknown encoding "${s}"`);
3092
+ this._activeEncoding = s;
3079
3093
  }
3080
3094
  reset() {
3081
3095
  this.activeProtocol = "NONE", this.activeEncoding = "DEFAULT", this._lastEvent = null;
3082
3096
  }
3083
- triggerMouseEvent(t) {
3084
- if (t.col < 0 || t.col >= this._bufferService.cols || t.row < 0 || t.row >= this._bufferService.rows || t.button === 4 && t.action === 32 || t.button === 3 && t.action !== 32 || t.button !== 4 && (t.action === 2 || t.action === 3) || (t.col++, t.row++, t.action === 32 && this._lastEvent && this._equalEvents(this._lastEvent, t, this._activeEncoding === "SGR_PIXELS")) || !this._protocols[this._activeProtocol].restrict(t)) return !1;
3085
- const f = this._encodings[this._activeEncoding](t);
3086
- return f && (this._activeEncoding === "DEFAULT" ? this._coreService.triggerBinaryEvent(f) : this._coreService.triggerDataEvent(f, !0)), this._lastEvent = t, !0;
3097
+ triggerMouseEvent(s) {
3098
+ if (s.col < 0 || s.col >= this._bufferService.cols || s.row < 0 || s.row >= this._bufferService.rows || s.button === 4 && s.action === 32 || s.button === 3 && s.action !== 32 || s.button !== 4 && (s.action === 2 || s.action === 3) || (s.col++, s.row++, s.action === 32 && this._lastEvent && this._equalEvents(this._lastEvent, s, this._activeEncoding === "SGR_PIXELS")) || !this._protocols[this._activeProtocol].restrict(s)) return !1;
3099
+ const f = this._encodings[this._activeEncoding](s);
3100
+ return f && (this._activeEncoding === "DEFAULT" ? this._coreService.triggerBinaryEvent(f) : this._coreService.triggerDataEvent(f, !0)), this._lastEvent = s, !0;
3087
3101
  }
3088
- explainEvents(t) {
3089
- return { down: !!(1 & t), up: !!(2 & t), drag: !!(4 & t), move: !!(8 & t), wheel: !!(16 & t) };
3102
+ explainEvents(s) {
3103
+ return { down: !!(1 & s), up: !!(2 & s), drag: !!(4 & s), move: !!(8 & s), wheel: !!(16 & s) };
3090
3104
  }
3091
- _equalEvents(t, f, p) {
3105
+ _equalEvents(s, f, p) {
3092
3106
  if (p) {
3093
- if (t.x !== f.x || t.y !== f.y) return !1;
3094
- } else if (t.col !== f.col || t.row !== f.row) return !1;
3095
- return t.button === f.button && t.action === f.action && t.ctrl === f.ctrl && t.alt === f.alt && t.shift === f.shift;
3107
+ if (s.x !== f.x || s.y !== f.y) return !1;
3108
+ } else if (s.col !== f.col || s.row !== f.row) return !1;
3109
+ return s.button === f.button && s.action === f.action && s.ctrl === f.ctrl && s.alt === f.alt && s.shift === f.shift;
3096
3110
  }
3097
3111
  };
3098
- r.CoreMouseService = i = d([_(0, n.IBufferService), _(1, n.ICoreService)], i);
3099
- }, 83: function(w, r, l) {
3100
- var d = this && this.__decorate || function(i, t, f, p) {
3101
- var S, y = arguments.length, C = y < 3 ? t : p === null ? p = Object.getOwnPropertyDescriptor(t, f) : p;
3102
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") C = Reflect.decorate(i, t, f, p);
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
- return y > 3 && C && Object.defineProperty(t, f, C), C;
3105
- }, _ = this && this.__param || function(i, t) {
3112
+ t.CoreMouseService = i = d([_(0, n.IBufferService), _(1, n.ICoreService)], i);
3113
+ }, 83: function(w, t, l) {
3114
+ var d = this && this.__decorate || function(i, s, f, p) {
3115
+ var S, y = arguments.length, C = y < 3 ? s : p === null ? p = Object.getOwnPropertyDescriptor(s, f) : p;
3116
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") C = Reflect.decorate(i, s, f, p);
3117
+ else for (var k = i.length - 1; k >= 0; k--) (S = i[k]) && (C = (y < 3 ? S(C) : y > 3 ? S(s, f, C) : S(s, f)) || C);
3118
+ return y > 3 && C && Object.defineProperty(s, f, C), C;
3119
+ }, _ = this && this.__param || function(i, s) {
3106
3120
  return function(f, p) {
3107
- t(f, p, i);
3121
+ s(f, p, i);
3108
3122
  };
3109
3123
  };
3110
- Object.defineProperty(r, "__esModule", { value: !0 }), r.CoreService = void 0;
3111
- const n = l(439), c = l(460), a = l(844), h = l(585), u = Object.freeze({ insertMode: !1 }), e = Object.freeze({ applicationCursorKeys: !1, applicationKeypad: !1, bracketedPasteMode: !1, origin: !1, reverseWraparound: !1, sendFocus: !1, wraparound: !0 });
3112
- let s = r.CoreService = class extends a.Disposable {
3113
- constructor(i, t, f) {
3114
- super(), this._bufferService = i, this._logService = t, this._optionsService = f, this.isCursorInitialized = !1, this.isCursorHidden = !1, this._onData = this.register(new c.EventEmitter()), this.onData = this._onData.event, this._onUserInput = this.register(new c.EventEmitter()), this.onUserInput = this._onUserInput.event, this._onBinary = this.register(new c.EventEmitter()), this.onBinary = this._onBinary.event, this._onRequestScrollToBottom = this.register(new c.EventEmitter()), this.onRequestScrollToBottom = this._onRequestScrollToBottom.event, this.modes = (0, n.clone)(u), this.decPrivateModes = (0, n.clone)(e);
3124
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.CoreService = void 0;
3125
+ const n = l(439), h = l(460), a = l(844), c = l(585), u = Object.freeze({ insertMode: !1 }), e = Object.freeze({ applicationCursorKeys: !1, applicationKeypad: !1, bracketedPasteMode: !1, origin: !1, reverseWraparound: !1, sendFocus: !1, wraparound: !0 });
3126
+ let r = t.CoreService = class extends a.Disposable {
3127
+ constructor(i, s, f) {
3128
+ super(), this._bufferService = i, this._logService = s, this._optionsService = f, this.isCursorInitialized = !1, this.isCursorHidden = !1, this._onData = this.register(new h.EventEmitter()), this.onData = this._onData.event, this._onUserInput = this.register(new h.EventEmitter()), this.onUserInput = this._onUserInput.event, this._onBinary = this.register(new h.EventEmitter()), this.onBinary = this._onBinary.event, this._onRequestScrollToBottom = this.register(new h.EventEmitter()), this.onRequestScrollToBottom = this._onRequestScrollToBottom.event, this.modes = (0, n.clone)(u), this.decPrivateModes = (0, n.clone)(e);
3115
3129
  }
3116
3130
  reset() {
3117
3131
  this.modes = (0, n.clone)(u), this.decPrivateModes = (0, n.clone)(e);
3118
3132
  }
3119
- triggerDataEvent(i, t = !1) {
3133
+ triggerDataEvent(i, s = !1) {
3120
3134
  if (this._optionsService.rawOptions.disableStdin) return;
3121
3135
  const f = this._bufferService.buffer;
3122
- t && this._optionsService.rawOptions.scrollOnUserInput && f.ybase !== f.ydisp && this._onRequestScrollToBottom.fire(), t && this._onUserInput.fire(), this._logService.debug(`sending data "${i}"`, () => i.split("").map((p) => p.charCodeAt(0))), this._onData.fire(i);
3136
+ s && this._optionsService.rawOptions.scrollOnUserInput && f.ybase !== f.ydisp && this._onRequestScrollToBottom.fire(), s && this._onUserInput.fire(), this._logService.debug(`sending data "${i}"`, () => i.split("").map((p) => p.charCodeAt(0))), this._onData.fire(i);
3123
3137
  }
3124
3138
  triggerBinaryEvent(i) {
3125
- this._optionsService.rawOptions.disableStdin || (this._logService.debug(`sending binary "${i}"`, () => i.split("").map((t) => t.charCodeAt(0))), this._onBinary.fire(i));
3139
+ this._optionsService.rawOptions.disableStdin || (this._logService.debug(`sending binary "${i}"`, () => i.split("").map((s) => s.charCodeAt(0))), this._onBinary.fire(i));
3126
3140
  }
3127
3141
  };
3128
- r.CoreService = s = d([_(0, h.IBufferService), _(1, h.ILogService), _(2, h.IOptionsService)], s);
3129
- }, 348: (w, r, l) => {
3130
- Object.defineProperty(r, "__esModule", { value: !0 }), r.InstantiationService = r.ServiceCollection = void 0;
3142
+ t.CoreService = r = d([_(0, c.IBufferService), _(1, c.ILogService), _(2, c.IOptionsService)], r);
3143
+ }, 348: (w, t, l) => {
3144
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.InstantiationService = t.ServiceCollection = void 0;
3131
3145
  const d = l(585), _ = l(343);
3132
3146
  class n {
3133
3147
  constructor(...a) {
3134
3148
  this._entries = /* @__PURE__ */ new Map();
3135
- for (const [h, u] of a) this.set(h, u);
3149
+ for (const [c, u] of a) this.set(c, u);
3136
3150
  }
3137
- set(a, h) {
3151
+ set(a, c) {
3138
3152
  const u = this._entries.get(a);
3139
- return this._entries.set(a, h), u;
3153
+ return this._entries.set(a, c), u;
3140
3154
  }
3141
3155
  forEach(a) {
3142
- for (const [h, u] of this._entries.entries()) a(h, u);
3156
+ for (const [c, u] of this._entries.entries()) a(c, u);
3143
3157
  }
3144
3158
  has(a) {
3145
3159
  return this._entries.has(a);
@@ -3148,97 +3162,97 @@ function Ae() {
3148
3162
  return this._entries.get(a);
3149
3163
  }
3150
3164
  }
3151
- r.ServiceCollection = n, r.InstantiationService = class {
3165
+ t.ServiceCollection = n, t.InstantiationService = class {
3152
3166
  constructor() {
3153
3167
  this._services = new n(), this._services.set(d.IInstantiationService, this);
3154
3168
  }
3155
- setService(c, a) {
3156
- this._services.set(c, a);
3169
+ setService(h, a) {
3170
+ this._services.set(h, a);
3157
3171
  }
3158
- getService(c) {
3159
- return this._services.get(c);
3172
+ getService(h) {
3173
+ return this._services.get(h);
3160
3174
  }
3161
- createInstance(c, ...a) {
3162
- const h = (0, _.getServiceDependencies)(c).sort((s, i) => s.index - i.index), u = [];
3163
- for (const s of h) {
3164
- const i = this._services.get(s.id);
3165
- if (!i) throw new Error(`[createInstance] ${c.name} depends on UNKNOWN service ${s.id}.`);
3175
+ createInstance(h, ...a) {
3176
+ const c = (0, _.getServiceDependencies)(h).sort((r, i) => r.index - i.index), u = [];
3177
+ for (const r of c) {
3178
+ const i = this._services.get(r.id);
3179
+ if (!i) throw new Error(`[createInstance] ${h.name} depends on UNKNOWN service ${r.id}.`);
3166
3180
  u.push(i);
3167
3181
  }
3168
- const e = h.length > 0 ? h[0].index : a.length;
3169
- if (a.length !== e) throw new Error(`[createInstance] First service dependency of ${c.name} at position ${e + 1} conflicts with ${a.length} static arguments`);
3170
- return new c(...a, ...u);
3182
+ const e = c.length > 0 ? c[0].index : a.length;
3183
+ if (a.length !== e) throw new Error(`[createInstance] First service dependency of ${h.name} at position ${e + 1} conflicts with ${a.length} static arguments`);
3184
+ return new h(...a, ...u);
3171
3185
  }
3172
3186
  };
3173
- }, 866: function(w, r, l) {
3174
- var d = this && this.__decorate || function(e, s, i, t) {
3175
- var f, p = arguments.length, S = p < 3 ? s : t === null ? t = Object.getOwnPropertyDescriptor(s, i) : t;
3176
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") S = Reflect.decorate(e, s, i, t);
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
- return p > 3 && S && Object.defineProperty(s, i, S), S;
3179
- }, _ = this && this.__param || function(e, s) {
3180
- return function(i, t) {
3181
- s(i, t, e);
3187
+ }, 866: function(w, t, l) {
3188
+ var d = this && this.__decorate || function(e, r, i, s) {
3189
+ var f, p = arguments.length, S = p < 3 ? r : s === null ? s = Object.getOwnPropertyDescriptor(r, i) : s;
3190
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") S = Reflect.decorate(e, r, i, s);
3191
+ else for (var y = e.length - 1; y >= 0; y--) (f = e[y]) && (S = (p < 3 ? f(S) : p > 3 ? f(r, i, S) : f(r, i)) || S);
3192
+ return p > 3 && S && Object.defineProperty(r, i, S), S;
3193
+ }, _ = this && this.__param || function(e, r) {
3194
+ return function(i, s) {
3195
+ r(i, s, e);
3182
3196
  };
3183
3197
  };
3184
- Object.defineProperty(r, "__esModule", { value: !0 }), r.traceCall = r.setTraceLogger = r.LogService = void 0;
3185
- const n = l(844), c = l(585), a = { trace: c.LogLevelEnum.TRACE, debug: c.LogLevelEnum.DEBUG, info: c.LogLevelEnum.INFO, warn: c.LogLevelEnum.WARN, error: c.LogLevelEnum.ERROR, off: c.LogLevelEnum.OFF };
3186
- let h, u = r.LogService = class extends n.Disposable {
3198
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.traceCall = t.setTraceLogger = t.LogService = void 0;
3199
+ const n = l(844), h = l(585), a = { trace: h.LogLevelEnum.TRACE, debug: h.LogLevelEnum.DEBUG, info: h.LogLevelEnum.INFO, warn: h.LogLevelEnum.WARN, error: h.LogLevelEnum.ERROR, off: h.LogLevelEnum.OFF };
3200
+ let c, u = t.LogService = class extends n.Disposable {
3187
3201
  get logLevel() {
3188
3202
  return this._logLevel;
3189
3203
  }
3190
3204
  constructor(e) {
3191
- super(), this._optionsService = e, this._logLevel = c.LogLevelEnum.OFF, this._updateLogLevel(), this.register(this._optionsService.onSpecificOptionChange("logLevel", () => this._updateLogLevel())), h = this;
3205
+ super(), this._optionsService = e, this._logLevel = h.LogLevelEnum.OFF, this._updateLogLevel(), this.register(this._optionsService.onSpecificOptionChange("logLevel", () => this._updateLogLevel())), c = this;
3192
3206
  }
3193
3207
  _updateLogLevel() {
3194
3208
  this._logLevel = a[this._optionsService.rawOptions.logLevel];
3195
3209
  }
3196
3210
  _evalLazyOptionalParams(e) {
3197
- for (let s = 0; s < e.length; s++) typeof e[s] == "function" && (e[s] = e[s]());
3211
+ for (let r = 0; r < e.length; r++) typeof e[r] == "function" && (e[r] = e[r]());
3198
3212
  }
3199
- _log(e, s, i) {
3200
- this._evalLazyOptionalParams(i), e.call(console, (this._optionsService.options.logger ? "" : "xterm.js: ") + s, ...i);
3213
+ _log(e, r, i) {
3214
+ this._evalLazyOptionalParams(i), e.call(console, (this._optionsService.options.logger ? "" : "xterm.js: ") + r, ...i);
3201
3215
  }
3202
- trace(e, ...s) {
3203
- this._logLevel <= c.LogLevelEnum.TRACE && this._log(this._optionsService.options.logger?.trace.bind(this._optionsService.options.logger) ?? console.log, e, s);
3216
+ trace(e, ...r) {
3217
+ this._logLevel <= h.LogLevelEnum.TRACE && this._log(this._optionsService.options.logger?.trace.bind(this._optionsService.options.logger) ?? console.log, e, r);
3204
3218
  }
3205
- debug(e, ...s) {
3206
- this._logLevel <= c.LogLevelEnum.DEBUG && this._log(this._optionsService.options.logger?.debug.bind(this._optionsService.options.logger) ?? console.log, e, s);
3219
+ debug(e, ...r) {
3220
+ this._logLevel <= h.LogLevelEnum.DEBUG && this._log(this._optionsService.options.logger?.debug.bind(this._optionsService.options.logger) ?? console.log, e, r);
3207
3221
  }
3208
- info(e, ...s) {
3209
- this._logLevel <= c.LogLevelEnum.INFO && this._log(this._optionsService.options.logger?.info.bind(this._optionsService.options.logger) ?? console.info, e, s);
3222
+ info(e, ...r) {
3223
+ this._logLevel <= h.LogLevelEnum.INFO && this._log(this._optionsService.options.logger?.info.bind(this._optionsService.options.logger) ?? console.info, e, r);
3210
3224
  }
3211
- warn(e, ...s) {
3212
- this._logLevel <= c.LogLevelEnum.WARN && this._log(this._optionsService.options.logger?.warn.bind(this._optionsService.options.logger) ?? console.warn, e, s);
3225
+ warn(e, ...r) {
3226
+ this._logLevel <= h.LogLevelEnum.WARN && this._log(this._optionsService.options.logger?.warn.bind(this._optionsService.options.logger) ?? console.warn, e, r);
3213
3227
  }
3214
- error(e, ...s) {
3215
- this._logLevel <= c.LogLevelEnum.ERROR && this._log(this._optionsService.options.logger?.error.bind(this._optionsService.options.logger) ?? console.error, e, s);
3228
+ error(e, ...r) {
3229
+ this._logLevel <= h.LogLevelEnum.ERROR && this._log(this._optionsService.options.logger?.error.bind(this._optionsService.options.logger) ?? console.error, e, r);
3216
3230
  }
3217
3231
  };
3218
- r.LogService = u = d([_(0, c.IOptionsService)], u), r.setTraceLogger = function(e) {
3219
- h = e;
3220
- }, r.traceCall = function(e, s, i) {
3232
+ t.LogService = u = d([_(0, h.IOptionsService)], u), t.setTraceLogger = function(e) {
3233
+ c = e;
3234
+ }, t.traceCall = function(e, r, i) {
3221
3235
  if (typeof i.value != "function") throw new Error("not supported");
3222
- const t = i.value;
3236
+ const s = i.value;
3223
3237
  i.value = function(...f) {
3224
- if (h.logLevel !== c.LogLevelEnum.TRACE) return t.apply(this, f);
3225
- h.trace(`GlyphRenderer#${t.name}(${f.map((S) => JSON.stringify(S)).join(", ")})`);
3226
- const p = t.apply(this, f);
3227
- return h.trace(`GlyphRenderer#${t.name} return`, p), p;
3238
+ if (c.logLevel !== h.LogLevelEnum.TRACE) return s.apply(this, f);
3239
+ c.trace(`GlyphRenderer#${s.name}(${f.map((S) => JSON.stringify(S)).join(", ")})`);
3240
+ const p = s.apply(this, f);
3241
+ return c.trace(`GlyphRenderer#${s.name} return`, p), p;
3228
3242
  };
3229
3243
  };
3230
- }, 302: (w, r, l) => {
3231
- Object.defineProperty(r, "__esModule", { value: !0 }), r.OptionsService = r.DEFAULT_OPTIONS = void 0;
3244
+ }, 302: (w, t, l) => {
3245
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.OptionsService = t.DEFAULT_OPTIONS = void 0;
3232
3246
  const d = l(460), _ = l(844), n = l(114);
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
- const c = ["normal", "bold", "100", "200", "300", "400", "500", "600", "700", "800", "900"];
3247
+ t.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 };
3248
+ const h = ["normal", "bold", "100", "200", "300", "400", "500", "600", "700", "800", "900"];
3235
3249
  class a extends _.Disposable {
3236
3250
  constructor(u) {
3237
3251
  super(), this._onOptionChange = this.register(new d.EventEmitter()), this.onOptionChange = this._onOptionChange.event;
3238
- const e = { ...r.DEFAULT_OPTIONS };
3239
- for (const s in u) if (s in e) try {
3240
- const i = u[s];
3241
- e[s] = this._sanitizeAndValidateOption(s, i);
3252
+ const e = { ...t.DEFAULT_OPTIONS };
3253
+ for (const r in u) if (r in e) try {
3254
+ const i = u[r];
3255
+ e[r] = this._sanitizeAndValidateOption(r, i);
3242
3256
  } catch (i) {
3243
3257
  console.error(i);
3244
3258
  }
@@ -3247,42 +3261,42 @@ function Ae() {
3247
3261
  }));
3248
3262
  }
3249
3263
  onSpecificOptionChange(u, e) {
3250
- return this.onOptionChange((s) => {
3251
- s === u && e(this.rawOptions[u]);
3264
+ return this.onOptionChange((r) => {
3265
+ r === u && e(this.rawOptions[u]);
3252
3266
  });
3253
3267
  }
3254
3268
  onMultipleOptionChange(u, e) {
3255
- return this.onOptionChange((s) => {
3256
- u.indexOf(s) !== -1 && e();
3269
+ return this.onOptionChange((r) => {
3270
+ u.indexOf(r) !== -1 && e();
3257
3271
  });
3258
3272
  }
3259
3273
  _setupOptions() {
3260
- const u = (s) => {
3261
- if (!(s in r.DEFAULT_OPTIONS)) throw new Error(`No option with key "${s}"`);
3262
- return this.rawOptions[s];
3263
- }, e = (s, i) => {
3264
- if (!(s in r.DEFAULT_OPTIONS)) throw new Error(`No option with key "${s}"`);
3265
- i = this._sanitizeAndValidateOption(s, i), this.rawOptions[s] !== i && (this.rawOptions[s] = i, this._onOptionChange.fire(s));
3274
+ const u = (r) => {
3275
+ if (!(r in t.DEFAULT_OPTIONS)) throw new Error(`No option with key "${r}"`);
3276
+ return this.rawOptions[r];
3277
+ }, e = (r, i) => {
3278
+ if (!(r in t.DEFAULT_OPTIONS)) throw new Error(`No option with key "${r}"`);
3279
+ i = this._sanitizeAndValidateOption(r, i), this.rawOptions[r] !== i && (this.rawOptions[r] = i, this._onOptionChange.fire(r));
3266
3280
  };
3267
- for (const s in this.rawOptions) {
3268
- const i = { get: u.bind(this, s), set: e.bind(this, s) };
3269
- Object.defineProperty(this.options, s, i);
3281
+ for (const r in this.rawOptions) {
3282
+ const i = { get: u.bind(this, r), set: e.bind(this, r) };
3283
+ Object.defineProperty(this.options, r, i);
3270
3284
  }
3271
3285
  }
3272
3286
  _sanitizeAndValidateOption(u, e) {
3273
3287
  switch (u) {
3274
3288
  case "cursorStyle":
3275
- if (e || (e = r.DEFAULT_OPTIONS[u]), !/* @__PURE__ */ function(s) {
3276
- return s === "block" || s === "underline" || s === "bar";
3289
+ if (e || (e = t.DEFAULT_OPTIONS[u]), !/* @__PURE__ */ function(r) {
3290
+ return r === "block" || r === "underline" || r === "bar";
3277
3291
  }(e)) throw new Error(`"${e}" is not a valid value for ${u}`);
3278
3292
  break;
3279
3293
  case "wordSeparator":
3280
- e || (e = r.DEFAULT_OPTIONS[u]);
3294
+ e || (e = t.DEFAULT_OPTIONS[u]);
3281
3295
  break;
3282
3296
  case "fontWeight":
3283
3297
  case "fontWeightBold":
3284
3298
  if (typeof e == "number" && 1 <= e && e <= 1e3) break;
3285
- e = c.includes(e) ? e : r.DEFAULT_OPTIONS[u];
3299
+ e = h.includes(e) ? e : t.DEFAULT_OPTIONS[u];
3286
3300
  break;
3287
3301
  case "cursorWidth":
3288
3302
  e = Math.floor(e);
@@ -3310,39 +3324,39 @@ function Ae() {
3310
3324
  return e;
3311
3325
  }
3312
3326
  }
3313
- r.OptionsService = a;
3314
- }, 660: function(w, r, l) {
3315
- var d = this && this.__decorate || function(a, h, u, e) {
3316
- var s, i = arguments.length, t = i < 3 ? h : e === null ? e = Object.getOwnPropertyDescriptor(h, u) : e;
3317
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") t = Reflect.decorate(a, h, u, e);
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
- return i > 3 && t && Object.defineProperty(h, u, t), t;
3320
- }, _ = this && this.__param || function(a, h) {
3327
+ t.OptionsService = a;
3328
+ }, 660: function(w, t, l) {
3329
+ var d = this && this.__decorate || function(a, c, u, e) {
3330
+ var r, i = arguments.length, s = i < 3 ? c : e === null ? e = Object.getOwnPropertyDescriptor(c, u) : e;
3331
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") s = Reflect.decorate(a, c, u, e);
3332
+ else for (var f = a.length - 1; f >= 0; f--) (r = a[f]) && (s = (i < 3 ? r(s) : i > 3 ? r(c, u, s) : r(c, u)) || s);
3333
+ return i > 3 && s && Object.defineProperty(c, u, s), s;
3334
+ }, _ = this && this.__param || function(a, c) {
3321
3335
  return function(u, e) {
3322
- h(u, e, a);
3336
+ c(u, e, a);
3323
3337
  };
3324
3338
  };
3325
- Object.defineProperty(r, "__esModule", { value: !0 }), r.OscLinkService = void 0;
3339
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.OscLinkService = void 0;
3326
3340
  const n = l(585);
3327
- let c = r.OscLinkService = class {
3341
+ let h = t.OscLinkService = class {
3328
3342
  constructor(a) {
3329
3343
  this._bufferService = a, this._nextId = 1, this._entriesWithId = /* @__PURE__ */ new Map(), this._dataByLinkId = /* @__PURE__ */ new Map();
3330
3344
  }
3331
3345
  registerLink(a) {
3332
- const h = this._bufferService.buffer;
3346
+ const c = this._bufferService.buffer;
3333
3347
  if (a.id === void 0) {
3334
- const f = h.addMarker(h.ybase + h.y), p = { data: a, id: this._nextId++, lines: [f] };
3348
+ const f = c.addMarker(c.ybase + c.y), p = { data: a, id: this._nextId++, lines: [f] };
3335
3349
  return f.onDispose(() => this._removeMarkerFromLink(p, f)), this._dataByLinkId.set(p.id, p), p.id;
3336
3350
  }
3337
- const u = a, e = this._getEntryIdKey(u), s = this._entriesWithId.get(e);
3338
- if (s) return this.addLineToLink(s.id, h.ybase + h.y), s.id;
3339
- const i = h.addMarker(h.ybase + h.y), t = { id: this._nextId++, key: this._getEntryIdKey(u), data: u, lines: [i] };
3340
- return i.onDispose(() => this._removeMarkerFromLink(t, i)), this._entriesWithId.set(t.key, t), this._dataByLinkId.set(t.id, t), t.id;
3351
+ const u = a, e = this._getEntryIdKey(u), r = this._entriesWithId.get(e);
3352
+ if (r) return this.addLineToLink(r.id, c.ybase + c.y), r.id;
3353
+ const i = c.addMarker(c.ybase + c.y), s = { id: this._nextId++, key: this._getEntryIdKey(u), data: u, lines: [i] };
3354
+ return i.onDispose(() => this._removeMarkerFromLink(s, i)), this._entriesWithId.set(s.key, s), this._dataByLinkId.set(s.id, s), s.id;
3341
3355
  }
3342
- addLineToLink(a, h) {
3356
+ addLineToLink(a, c) {
3343
3357
  const u = this._dataByLinkId.get(a);
3344
- if (u && u.lines.every((e) => e.line !== h)) {
3345
- const e = this._bufferService.buffer.addMarker(h);
3358
+ if (u && u.lines.every((e) => e.line !== c)) {
3359
+ const e = this._bufferService.buffer.addMarker(c);
3346
3360
  u.lines.push(e), e.onDispose(() => this._removeMarkerFromLink(u, e));
3347
3361
  }
3348
3362
  }
@@ -3352,36 +3366,36 @@ function Ae() {
3352
3366
  _getEntryIdKey(a) {
3353
3367
  return `${a.id};;${a.uri}`;
3354
3368
  }
3355
- _removeMarkerFromLink(a, h) {
3356
- const u = a.lines.indexOf(h);
3369
+ _removeMarkerFromLink(a, c) {
3370
+ const u = a.lines.indexOf(c);
3357
3371
  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
3372
  }
3359
3373
  };
3360
- r.OscLinkService = c = d([_(0, n.IBufferService)], c);
3361
- }, 343: (w, r) => {
3362
- Object.defineProperty(r, "__esModule", { value: !0 }), r.createDecorator = r.getServiceDependencies = r.serviceRegistry = void 0;
3374
+ t.OscLinkService = h = d([_(0, n.IBufferService)], h);
3375
+ }, 343: (w, t) => {
3376
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.createDecorator = t.getServiceDependencies = t.serviceRegistry = void 0;
3363
3377
  const l = "di$target", d = "di$dependencies";
3364
- r.serviceRegistry = /* @__PURE__ */ new Map(), r.getServiceDependencies = function(_) {
3378
+ t.serviceRegistry = /* @__PURE__ */ new Map(), t.getServiceDependencies = function(_) {
3365
3379
  return _[d] || [];
3366
- }, r.createDecorator = function(_) {
3367
- if (r.serviceRegistry.has(_)) return r.serviceRegistry.get(_);
3368
- const n = function(c, a, h) {
3380
+ }, t.createDecorator = function(_) {
3381
+ if (t.serviceRegistry.has(_)) return t.serviceRegistry.get(_);
3382
+ const n = function(h, a, c) {
3369
3383
  if (arguments.length !== 3) throw new Error("@IServiceName-decorator can only be used to decorate a parameter");
3370
- (function(u, e, s) {
3371
- e[l] === e ? e[d].push({ id: u, index: s }) : (e[d] = [{ id: u, index: s }], e[l] = e);
3372
- })(n, c, h);
3384
+ (function(u, e, r) {
3385
+ e[l] === e ? e[d].push({ id: u, index: r }) : (e[d] = [{ id: u, index: r }], e[l] = e);
3386
+ })(n, h, c);
3373
3387
  };
3374
- return n.toString = () => _, r.serviceRegistry.set(_, n), n;
3388
+ return n.toString = () => _, t.serviceRegistry.set(_, n), n;
3375
3389
  };
3376
- }, 585: (w, r, l) => {
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;
3390
+ }, 585: (w, t, l) => {
3391
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.IDecorationService = t.IUnicodeService = t.IOscLinkService = t.IOptionsService = t.ILogService = t.LogLevelEnum = t.IInstantiationService = t.ICharsetService = t.ICoreService = t.ICoreMouseService = t.IBufferService = void 0;
3378
3392
  const d = l(343);
3379
3393
  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) {
3394
+ t.IBufferService = (0, d.createDecorator)("BufferService"), t.ICoreMouseService = (0, d.createDecorator)("CoreMouseService"), t.ICoreService = (0, d.createDecorator)("CoreService"), t.ICharsetService = (0, d.createDecorator)("CharsetService"), t.IInstantiationService = (0, d.createDecorator)("InstantiationService"), function(n) {
3381
3395
  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
- }(_ || (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
- }, 480: (w, r, l) => {
3384
- Object.defineProperty(r, "__esModule", { value: !0 }), r.UnicodeService = void 0;
3396
+ }(_ || (t.LogLevelEnum = _ = {})), t.ILogService = (0, d.createDecorator)("LogService"), t.IOptionsService = (0, d.createDecorator)("OptionsService"), t.IOscLinkService = (0, d.createDecorator)("OscLinkService"), t.IUnicodeService = (0, d.createDecorator)("UnicodeService"), t.IDecorationService = (0, d.createDecorator)("DecorationService");
3397
+ }, 480: (w, t, l) => {
3398
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.UnicodeService = void 0;
3385
3399
  const d = l(460), _ = l(225);
3386
3400
  class n {
3387
3401
  static extractShouldJoin(a) {
@@ -3393,8 +3407,8 @@ function Ae() {
3393
3407
  static extractCharKind(a) {
3394
3408
  return a >> 3;
3395
3409
  }
3396
- static createPropertyValue(a, h, u = !1) {
3397
- return (16777215 & a) << 3 | (3 & h) << 1 | (u ? 1 : 0);
3410
+ static createPropertyValue(a, c, u = !1) {
3411
+ return (16777215 & a) << 3 | (3 & c) << 1 | (u ? 1 : 0);
3398
3412
  }
3399
3413
  constructor() {
3400
3414
  this._providers = /* @__PURE__ */ Object.create(null), this._active = "", this._onChange = new d.EventEmitter(), this.onChange = this._onChange.event;
@@ -3421,32 +3435,32 @@ function Ae() {
3421
3435
  return this._activeProvider.wcwidth(a);
3422
3436
  }
3423
3437
  getStringCellWidth(a) {
3424
- let h = 0, u = 0;
3438
+ let c = 0, u = 0;
3425
3439
  const e = a.length;
3426
- for (let s = 0; s < e; ++s) {
3427
- let i = a.charCodeAt(s);
3440
+ for (let r = 0; r < e; ++r) {
3441
+ let i = a.charCodeAt(r);
3428
3442
  if (55296 <= i && i <= 56319) {
3429
- if (++s >= e) return h + this.wcwidth(i);
3430
- const p = a.charCodeAt(s);
3431
- 56320 <= p && p <= 57343 ? i = 1024 * (i - 55296) + p - 56320 + 65536 : h += this.wcwidth(p);
3443
+ if (++r >= e) return c + this.wcwidth(i);
3444
+ const p = a.charCodeAt(r);
3445
+ 56320 <= p && p <= 57343 ? i = 1024 * (i - 55296) + p - 56320 + 65536 : c += this.wcwidth(p);
3432
3446
  }
3433
- const t = this.charProperties(i, u);
3434
- let f = n.extractWidth(t);
3435
- n.extractShouldJoin(t) && (f -= n.extractWidth(u)), h += f, u = t;
3447
+ const s = this.charProperties(i, u);
3448
+ let f = n.extractWidth(s);
3449
+ n.extractShouldJoin(s) && (f -= n.extractWidth(u)), c += f, u = s;
3436
3450
  }
3437
- return h;
3451
+ return c;
3438
3452
  }
3439
- charProperties(a, h) {
3440
- return this._activeProvider.charProperties(a, h);
3453
+ charProperties(a, c) {
3454
+ return this._activeProvider.charProperties(a, c);
3441
3455
  }
3442
3456
  }
3443
- r.UnicodeService = n;
3444
- }, 781: (w, r, l) => {
3445
- Object.defineProperty(r, "__esModule", { value: !0 }), r.Terminal = void 0;
3457
+ t.UnicodeService = n;
3458
+ }, 781: (w, t, l) => {
3459
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.Terminal = void 0;
3446
3460
  const d = l(437), _ = l(969), n = l(460);
3447
- class c extends _.CoreTerminal {
3448
- constructor(h = {}) {
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));
3461
+ class h extends _.CoreTerminal {
3462
+ constructor(c = {}) {
3463
+ super(c), 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
3464
  }
3451
3465
  get buffer() {
3452
3466
  return this.buffers.active;
@@ -3454,22 +3468,22 @@ function Ae() {
3454
3468
  get markers() {
3455
3469
  return this.buffer.markers;
3456
3470
  }
3457
- addMarker(h) {
3458
- if (this.buffer === this.buffers.normal) return this.buffer.addMarker(this.buffer.ybase + this.buffer.y + h);
3471
+ addMarker(c) {
3472
+ if (this.buffer === this.buffers.normal) return this.buffer.addMarker(this.buffer.ybase + this.buffer.y + c);
3459
3473
  }
3460
3474
  bell() {
3461
3475
  this._onBell.fire();
3462
3476
  }
3463
- input(h, u = !0) {
3464
- this.coreService.triggerDataEvent(h, u);
3477
+ input(c, u = !0) {
3478
+ this.coreService.triggerDataEvent(c, u);
3465
3479
  }
3466
- resize(h, u) {
3467
- h === this.cols && u === this.rows || super.resize(h, u);
3480
+ resize(c, u) {
3481
+ c === this.cols && u === this.rows || super.resize(c, u);
3468
3482
  }
3469
3483
  clear() {
3470
3484
  if (this.buffer.ybase !== 0 || this.buffer.y !== 0) {
3471
3485
  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(d.DEFAULT_ATTR_DATA));
3486
+ for (let c = 1; c < this.rows; c++) this.buffer.lines.push(this.buffer.getBlankLine(d.DEFAULT_ATTR_DATA));
3473
3487
  this._onScroll.fire({ position: this.buffer.ydisp, source: 0 });
3474
3488
  }
3475
3489
  }
@@ -3477,31 +3491,31 @@ function Ae() {
3477
3491
  this.options.rows = this.rows, this.options.cols = this.cols, this._setup(), super.reset();
3478
3492
  }
3479
3493
  }
3480
- r.Terminal = c;
3481
- } }, I = {};
3482
- function R(w) {
3483
- var r = I[w];
3484
- if (r !== void 0) return r.exports;
3485
- var l = I[w] = { exports: {} };
3486
- return $[w].call(l.exports, l, l.exports, R), l.exports;
3494
+ t.Terminal = h;
3495
+ } }, O = {};
3496
+ function P(w) {
3497
+ var t = O[w];
3498
+ if (t !== void 0) return t.exports;
3499
+ var l = O[w] = { exports: {} };
3500
+ return j[w].call(l.exports, l, l.exports, P), l.exports;
3487
3501
  }
3488
3502
  var W = {};
3489
3503
  (() => {
3490
3504
  var w = W;
3491
3505
  Object.defineProperty(w, "__esModule", { value: !0 }), w.Terminal = void 0;
3492
- const r = R(285), l = R(975), d = R(90), _ = R(781), n = R(741), c = R(844), a = ["cols", "rows"];
3493
- class h extends c.Disposable {
3506
+ const t = P(285), l = P(975), d = P(90), _ = P(781), n = P(741), h = P(844), a = ["cols", "rows"];
3507
+ class c extends h.Disposable {
3494
3508
  constructor(e) {
3495
3509
  super(), this._core = this.register(new _.Terminal(e)), this._addonManager = this.register(new n.AddonManager()), this._publicOptions = { ...this._core.options };
3496
- const s = (t) => this._core.options[t], i = (t, f) => {
3497
- this._checkReadonlyOptions(t), this._core.options[t] = f;
3510
+ const r = (s) => this._core.options[s], i = (s, f) => {
3511
+ this._checkReadonlyOptions(s), this._core.options[s] = f;
3498
3512
  };
3499
- for (const t in this._core.options) {
3500
- Object.defineProperty(this._publicOptions, t, { get: () => this._core.options[t], set: (p) => {
3501
- this._checkReadonlyOptions(t), this._core.options[t] = p;
3513
+ for (const s in this._core.options) {
3514
+ Object.defineProperty(this._publicOptions, s, { get: () => this._core.options[s], set: (p) => {
3515
+ this._checkReadonlyOptions(s), this._core.options[s] = p;
3502
3516
  } });
3503
- const f = { get: s.bind(this, t), set: i.bind(this, t) };
3504
- Object.defineProperty(this._publicOptions, t, f);
3517
+ const f = { get: r.bind(this, s), set: i.bind(this, s) };
3518
+ Object.defineProperty(this._publicOptions, s, f);
3505
3519
  }
3506
3520
  }
3507
3521
  _checkReadonlyOptions(e) {
@@ -3547,40 +3561,40 @@ function Ae() {
3547
3561
  return this._core.cols;
3548
3562
  }
3549
3563
  get buffer() {
3550
- return this._checkProposedApi(), this._buffer || (this._buffer = this.register(new r.BufferNamespaceApi(this._core))), this._buffer;
3564
+ return this._checkProposedApi(), this._buffer || (this._buffer = this.register(new t.BufferNamespaceApi(this._core))), this._buffer;
3551
3565
  }
3552
3566
  get markers() {
3553
3567
  return this._checkProposedApi(), this._core.markers;
3554
3568
  }
3555
3569
  get modes() {
3556
3570
  const e = this._core.coreService.decPrivateModes;
3557
- let s = "none";
3571
+ let r = "none";
3558
3572
  switch (this._core.coreMouseService.activeProtocol) {
3559
3573
  case "X10":
3560
- s = "x10";
3574
+ r = "x10";
3561
3575
  break;
3562
3576
  case "VT200":
3563
- s = "vt200";
3577
+ r = "vt200";
3564
3578
  break;
3565
3579
  case "DRAG":
3566
- s = "drag";
3580
+ r = "drag";
3567
3581
  break;
3568
3582
  case "ANY":
3569
- s = "any";
3583
+ r = "any";
3570
3584
  }
3571
- return { applicationCursorKeysMode: e.applicationCursorKeys, applicationKeypadMode: e.applicationKeypad, bracketedPasteMode: e.bracketedPasteMode, insertMode: this._core.coreService.modes.insertMode, mouseTrackingMode: s, originMode: e.origin, reverseWraparoundMode: e.reverseWraparound, sendFocusMode: e.sendFocus, wraparoundMode: e.wraparound };
3585
+ return { applicationCursorKeysMode: e.applicationCursorKeys, applicationKeypadMode: e.applicationKeypad, bracketedPasteMode: e.bracketedPasteMode, insertMode: this._core.coreService.modes.insertMode, mouseTrackingMode: r, originMode: e.origin, reverseWraparoundMode: e.reverseWraparound, sendFocusMode: e.sendFocus, wraparoundMode: e.wraparound };
3572
3586
  }
3573
3587
  get options() {
3574
3588
  return this._publicOptions;
3575
3589
  }
3576
3590
  set options(e) {
3577
- for (const s in e) this._publicOptions[s] = e[s];
3591
+ for (const r in e) this._publicOptions[r] = e[r];
3578
3592
  }
3579
- input(e, s = !0) {
3580
- this._core.input(e, s);
3593
+ input(e, r = !0) {
3594
+ this._core.input(e, r);
3581
3595
  }
3582
- resize(e, s) {
3583
- this._verifyIntegers(e, s), this._core.resize(e, s);
3596
+ resize(e, r) {
3597
+ this._verifyIntegers(e, r), this._core.resize(e, r);
3584
3598
  }
3585
3599
  registerMarker(e = 0) {
3586
3600
  return this._checkProposedApi(), this._verifyIntegers(e), this._core.addMarker(e);
@@ -3609,12 +3623,12 @@ function Ae() {
3609
3623
  clear() {
3610
3624
  this._core.clear();
3611
3625
  }
3612
- write(e, s) {
3613
- this._core.write(e, s);
3626
+ write(e, r) {
3627
+ this._core.write(e, r);
3614
3628
  }
3615
- writeln(e, s) {
3629
+ writeln(e, r) {
3616
3630
  this._core.write(e), this._core.write(`\r
3617
- `, s);
3631
+ `, r);
3618
3632
  }
3619
3633
  reset() {
3620
3634
  this._core.reset();
@@ -3623,19 +3637,19 @@ function Ae() {
3623
3637
  this._addonManager.loadAddon(this, e);
3624
3638
  }
3625
3639
  _verifyIntegers(...e) {
3626
- for (const s of e) if (s === 1 / 0 || isNaN(s) || s % 1 != 0) throw new Error("This API only accepts integers");
3640
+ for (const r of e) if (r === 1 / 0 || isNaN(r) || r % 1 != 0) throw new Error("This API only accepts integers");
3627
3641
  }
3628
3642
  }
3629
- w.Terminal = h;
3643
+ w.Terminal = c;
3630
3644
  })();
3631
- var z = x;
3632
- for (var N in W) z[N] = W[N];
3633
- W.__esModule && Object.defineProperty(z, "__esModule", { value: !0 });
3645
+ var X = x;
3646
+ for (var U in W) X[U] = W[U];
3647
+ W.__esModule && Object.defineProperty(X, "__esModule", { value: !0 });
3634
3648
  })();
3635
3649
  }(ie)), ie;
3636
3650
  }
3637
- var Te = Ae();
3638
- function ke() {
3651
+ var Te = ke();
3652
+ function Le() {
3639
3653
  return new Te.Terminal({
3640
3654
  cols: 1e3,
3641
3655
  rows: 500,
@@ -3645,61 +3659,61 @@ function ke() {
3645
3659
  cursorBlink: !1
3646
3660
  });
3647
3661
  }
3648
- const Le = {
3662
+ const De = {
3649
3663
  maxCharacterLength: pe
3650
3664
  };
3651
- function De(x, $ = Le) {
3652
- const I = x.buffer.active, R = [], W = Math.max(0, $.maxCharacterLength);
3653
- for (let N = 0; N < I.length; N++) {
3654
- const w = I.getLine(N);
3665
+ function xe(x, j = De) {
3666
+ const O = x.buffer.active, P = [], W = Math.max(0, j.maxCharacterLength);
3667
+ for (let U = 0; U < O.length; U++) {
3668
+ const w = O.getLine(U);
3655
3669
  if (!w)
3656
3670
  continue;
3657
- const r = w.translateToString(!1).trimEnd();
3658
- r.trim().length === 0 && R.at(-1)?.trim().length === 0 || R.push(r);
3671
+ const t = w.translateToString(!1).trimEnd();
3672
+ t.trim().length === 0 && P.at(-1)?.trim().length === 0 || P.push(t);
3659
3673
  }
3660
- let z = 0;
3661
- for (let N = R.length - 1; N > 0; N--) {
3662
- const w = R[N];
3663
- if (z += w.length, z > W) {
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`;
3674
+ let X = 0;
3675
+ for (let U = P.length - 1; U > 0; U--) {
3676
+ const w = P[U];
3677
+ if (X += w.length, X > W) {
3678
+ const l = U, d = `Truncated ${l} ${ge(l, "line")} above this point`, _ = P.length - U - 1, n = _ === 1 ? "Below is the last line of the output" : `Below are the last ${_} lines of the output`;
3665
3679
  return {
3666
3680
  output: [
3667
3681
  `--- ${d}. ${n}. ---`,
3668
- ...R.slice(N)
3682
+ ...P.slice(U)
3669
3683
  ].join(`
3670
3684
  `),
3671
- hidden_truncatedOutput: R.slice(0, N).join(`
3685
+ hidden_truncatedOutput: P.slice(0, U).join(`
3672
3686
  `)
3673
3687
  };
3674
3688
  }
3675
3689
  }
3676
3690
  return {
3677
- output: R.join(`
3691
+ output: P.join(`
3678
3692
  `)
3679
3693
  };
3680
3694
  }
3681
- function xe(x, $, I) {
3682
- const R = ke();
3695
+ function Pe(x, j, O) {
3696
+ const P = Le();
3683
3697
  return Se(
3684
3698
  x,
3685
- $.settings["terminal.commands.nodeSpawn.loadProfile"]
3699
+ j.settings["terminal.commands.nodeSpawn.loadProfile"]
3686
3700
  ).pipe(
3687
3701
  ae(
3688
- (W) => ve(I.cmd, [], {
3702
+ (W) => ve(O.cmd, [], {
3689
3703
  shell: ce.userInfo().shell || !0,
3690
3704
  cwd: x,
3691
3705
  stdio: ["ignore", "pipe", "pipe"],
3692
3706
  env: W
3693
3707
  })
3694
3708
  ),
3695
- ae(({ lastData: W, exitCode: z, exited: N }) => me(
3709
+ ae(({ lastData: W, exitCode: X, exited: U }) => me(
3696
3710
  new Promise((w) => {
3697
- const r = W?.subarray() ?? new Uint8Array();
3698
- R.write(r, () => {
3699
- const { output: l } = De(R);
3700
- w(N ? {
3711
+ const t = W?.subarray() ?? new Uint8Array();
3712
+ P.write(t, () => {
3713
+ const { output: l } = xe(P);
3714
+ w(U ? {
3701
3715
  status: "done",
3702
- result: { output: l, exitCode: z ?? -1 }
3716
+ result: { output: l, exitCode: X ?? -1 }
3703
3717
  } : {
3704
3718
  status: "in-progress",
3705
3719
  progress: { output: l }
@@ -3709,50 +3723,50 @@ function xe(x, $, I) {
3709
3723
  ))
3710
3724
  );
3711
3725
  }
3712
- const Fe = ({ args: x, userInput: $ }, { dir: I, dirs: R, config: W, toolMessages: z }) => {
3713
- be(I);
3714
- const N = ue(I.fsPath, x.cwd ? Pe(x.cwd) : "."), w = (c) => ({
3726
+ const We = ({ args: x, userInput: j }, { dir: O, dirs: P, config: W, toolMessages: X }) => {
3727
+ be(O);
3728
+ const U = ue(O.fsPath, x.cwd ? He(x.cwd) : "."), w = (h) => ({
3715
3729
  status: "done",
3716
3730
  result: {
3717
- output: `Error: ${c}`,
3731
+ output: `Error: ${h}`,
3718
3732
  exitCode: 1
3719
3733
  }
3720
- }), r = He(x.cmd);
3721
- if (r)
3722
- return se.of(w(r));
3723
- const l = Re(N);
3734
+ }), t = Re(x.cmd);
3735
+ if (t)
3736
+ return se.of(w(t));
3737
+ const l = Me(U);
3724
3738
  if (l)
3725
3739
  return se.of(w(l));
3726
- const d = [N, ...R.map((c) => c.fsPath)], _ = Ee(x.cmd, d, {
3740
+ const d = [U, ...P.map((h) => h.fsPath)], _ = Ae(x.cmd, d, {
3727
3741
  config: W.settings
3728
3742
  }), n = _.parts.flatMap(
3729
- (c) => (
3743
+ (h) => (
3730
3744
  // 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(
3745
+ h.requiresConfirmation ? typeof h.command == "string" || h.command.program === ne || Array.isArray(h.command.program) || h.command.arguments.some(
3732
3746
  (a) => a === ne || typeof a == "string" && le(a, d)
3733
- ) ? [] : [c.command.program] : []
3747
+ ) ? [] : [h.command.program] : []
3734
3748
  )
3735
3749
  );
3736
3750
  if (_.requiresConfirmation) {
3737
- if ($ && !$.accepted)
3751
+ if (j && !j.accepted)
3738
3752
  return se.of({ status: "rejected-by-user", toAllow: n });
3739
- if (!$?.accepted)
3753
+ if (!j?.accepted)
3740
3754
  return se.of({ status: "blocked-on-user", toAllow: n });
3741
3755
  }
3742
- return W.settings["terminal.commands.environment"], xe(N, W, x);
3756
+ return W.settings["terminal.commands.environment"], Pe(U, W, x);
3743
3757
  }, he = ce.homedir();
3744
- function Pe(x) {
3758
+ function He(x) {
3745
3759
  return he ? x.replace(/^~(?=$|\/|\\)/, he) : x;
3746
3760
  }
3747
- function He(x) {
3761
+ function Re(x) {
3748
3762
  if (typeof x != "string")
3749
3763
  return "`cmd` must be a string representing a command.";
3750
3764
  }
3751
- function Re(x) {
3765
+ function Me(x) {
3752
3766
  if (x !== void 0 && typeof x != "string")
3753
3767
  return "`cwd` must be a string representing a relative path within the workspace.";
3754
3768
  }
3755
3769
  export {
3756
- Fe as nodeBashTool
3770
+ We as nodeBashTool
3757
3771
  };
3758
- //# sourceMappingURL=node-COZM4qQd.js.map
3772
+ //# sourceMappingURL=node-DzhEX6Qs.js.map