@vitejs/devtools 0.0.0-alpha.25 → 0.0.0-alpha.27

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 (31) hide show
  1. package/dist/{DockIcon-CG2NSDoX.js → DockIcon-BfVdt_M0.js} +56 -58
  2. package/dist/{ViewBuiltinLogs-CUz-jlMA.js → ViewBuiltinLogs-C8wFxIxg.js} +2 -2
  3. package/dist/{ViewBuiltinTerminals-BKqSU-x4.js → ViewBuiltinTerminals-CrBOq_Ni.js} +657 -661
  4. package/dist/cli-commands.js +65 -2
  5. package/dist/cli.js +2 -2
  6. package/dist/client/inject.js +15 -3
  7. package/dist/client/standalone/assets/ViewBuiltinLogs-CYvdMq-7.js +1 -0
  8. package/dist/client/standalone/assets/{ViewBuiltinTerminals-BAc9-MAy.js → ViewBuiltinTerminals-B9l9XmES.js} +4 -4
  9. package/dist/client/standalone/assets/index-DWC0UjCz.js +2 -0
  10. package/dist/client/standalone/assets/index-DzhHPm4X.css +1 -0
  11. package/dist/client/standalone/index.html +2 -2
  12. package/dist/client/webcomponents.d.ts +1450 -4
  13. package/dist/client/webcomponents.js +441 -171
  14. package/dist/dirs.js +7 -1
  15. package/dist/{dist-B-r4P83Y.js → dist-BpFPAu5f.js} +5 -6
  16. package/dist/docks-CYaKLVhQ.js +131 -0
  17. package/dist/index.d.ts +174 -22
  18. package/dist/index.js +1 -1
  19. package/dist/plugins-BbzqUdpu.js +3038 -0
  20. package/dist/standalone-DVh1a9tu.js +34 -0
  21. package/dist/{vue.runtime.esm-bundler-B7xD_5x9.js → vue.runtime.esm-bundler-DL0i8o0W.js} +248 -220
  22. package/package.json +15 -15
  23. package/dist/cli-commands-DEf9IsfU.js +0 -96
  24. package/dist/client/standalone/assets/ViewBuiltinLogs-DPvwWqqt.js +0 -1
  25. package/dist/client/standalone/assets/index-BgrADCac.css +0 -1
  26. package/dist/client/standalone/assets/index-DXUNB7Hd.js +0 -2
  27. package/dist/dirs-C0s1Ghvy.js +0 -9
  28. package/dist/docks-Dgft7LEp.js +0 -72
  29. package/dist/index-CmOJZ3e5.d.ts +0 -561
  30. package/dist/plugins-CCFu2oMz.js +0 -3031
  31. /package/dist/{export-helper-Dw-qygE5.js → export-helper-DjM8b2QE.js} +0 -0
@@ -1,6 +1,6 @@
1
- import { C as renderList, E as watch, H as normalizeClass, I as ref, L as shallowRef, M as markRaw, P as reactive, S as openBlock, V as unref, W as toDisplayString, b as onMounted, c as createBlock, f as createVNode, i as Fragment, l as createCommentVNode, m as defineComponent, s as createBaseVNode, u as createElementBlock, x as onUnmounted, y as nextTick } from "./vue.runtime.esm-bundler-B7xD_5x9.js";
2
- import { l as watchImmediate, r as useEventListener } from "./dist-B-r4P83Y.js";
3
- import { t as DockIcon_default } from "./DockIcon-CG2NSDoX.js";
1
+ import { C as onUnmounted, I as reactive, K as toDisplayString, O as watch, P as markRaw, R as ref, S as onMounted, T as renderList, U as unref, W as normalizeClass, a as Fragment, c as createBaseVNode, d as createElementBlock, g as defineComponent, l as createBlock, m as createVNode, u as createCommentVNode, w as openBlock, x as nextTick, z as shallowRef } from "./vue.runtime.esm-bundler-DL0i8o0W.js";
2
+ import { l as watchImmediate, r as useEventListener } from "./dist-BpFPAu5f.js";
3
+ import { t as _sfc_main$2 } from "./DockIcon-BfVdt_M0.js";
4
4
 
5
5
  //#region src/client/webcomponents/state/terminals.ts
6
6
  let _terminalsMap;
@@ -8,7 +8,7 @@ function useTerminals(context) {
8
8
  if (_terminalsMap) return _terminalsMap;
9
9
  const map = _terminalsMap = reactive(/* @__PURE__ */ new Map());
10
10
  async function updateTerminals() {
11
- const terminals = await context.rpc.call("vite:internal:terminals:list");
11
+ const terminals = await context.rpc.call("devtoolskit:internal:terminals:list");
12
12
  for (const terminal of terminals) {
13
13
  if (map.has(terminal.id)) {
14
14
  map.get(terminal.id).info = Object.freeze(terminal);
@@ -23,12 +23,12 @@ function useTerminals(context) {
23
23
  console.log("[VITE DEVTOOLS] Terminals Updated", [...map.values()]);
24
24
  }
25
25
  context.rpc.client.register({
26
- name: "vite:internal:terminals:updated",
26
+ name: "devtoolskit:internal:terminals:updated",
27
27
  type: "action",
28
28
  handler: () => updateTerminals()
29
29
  });
30
30
  context.rpc.client.register({
31
- name: "vite:internal:terminals:stream-chunk",
31
+ name: "devtoolskit:internal:terminals:stream-chunk",
32
32
  type: "action",
33
33
  handler: (data) => {
34
34
  const terminal = map.get(data.id);
@@ -109,7 +109,7 @@ var Ll = (s, t) => {
109
109
  });
110
110
  };
111
111
  var M = (s, t, e, i) => {
112
- for (var r = i > 1 ? void 0 : i ? Rl(t, e) : t, n = s.length - 1, o$1; n >= 0; n--) (o$1 = s[n]) && (r = (i ? o$1(t, e, r) : o$1(r)) || r);
112
+ for (var r = i > 1 ? void 0 : i ? Rl(t, e) : t, n = s.length - 1, o; n >= 0; n--) (o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
113
113
  return i && r && zs(t, e, r), r;
114
114
  }, S = (s, t) => (e, i) => t(e, i, s);
115
115
  var Gs = "Terminal input", mi = {
@@ -164,14 +164,14 @@ var er = class {
164
164
  if (!i) return 0;
165
165
  let r = 0, n = 0;
166
166
  if (this._interim) {
167
- let o$1 = t.charCodeAt(n++);
168
- 56320 <= o$1 && o$1 <= 57343 ? e[r++] = (this._interim - 55296) * 1024 + o$1 - 56320 + 65536 : (e[r++] = this._interim, e[r++] = o$1), this._interim = 0;
167
+ let o = t.charCodeAt(n++);
168
+ 56320 <= o && o <= 57343 ? e[r++] = (this._interim - 55296) * 1024 + o - 56320 + 65536 : (e[r++] = this._interim, e[r++] = o), this._interim = 0;
169
169
  }
170
- for (let o$1 = n; o$1 < i; ++o$1) {
171
- let l = t.charCodeAt(o$1);
170
+ for (let o = n; o < i; ++o) {
171
+ let l = t.charCodeAt(o);
172
172
  if (55296 <= l && l <= 56319) {
173
- if (++o$1 >= i) return this._interim = l, r;
174
- let a = t.charCodeAt(o$1);
173
+ if (++o >= i) return this._interim = l, r;
174
+ let a = t.charCodeAt(o);
175
175
  56320 <= a && a <= 57343 ? e[r++] = (l - 55296) * 1024 + a - 56320 + 65536 : (e[r++] = l, e[r++] = a);
176
176
  continue;
177
177
  }
@@ -189,67 +189,67 @@ var er = class {
189
189
  decode(t, e) {
190
190
  let i = t.length;
191
191
  if (!i) return 0;
192
- let r = 0, n, o$1, l, a, u = 0, h$1 = 0;
192
+ let r = 0, n, o, l, a, u = 0, h = 0;
193
193
  if (this.interim[0]) {
194
- let _$1 = !1, p = this.interim[0];
194
+ let _ = !1, p = this.interim[0];
195
195
  p &= (p & 224) === 192 ? 31 : (p & 240) === 224 ? 15 : 7;
196
196
  let m = 0, f;
197
197
  for (; (f = this.interim[++m] & 63) && m < 4;) p <<= 6, p |= f;
198
198
  let A = (this.interim[0] & 224) === 192 ? 2 : (this.interim[0] & 240) === 224 ? 3 : 4, R = A - m;
199
- for (; h$1 < R;) {
200
- if (h$1 >= i) return 0;
201
- if (f = t[h$1++], (f & 192) !== 128) {
202
- h$1--, _$1 = !0;
199
+ for (; h < R;) {
200
+ if (h >= i) return 0;
201
+ if (f = t[h++], (f & 192) !== 128) {
202
+ h--, _ = !0;
203
203
  break;
204
204
  } else this.interim[m++] = f, p <<= 6, p |= f & 63;
205
205
  }
206
- _$1 || (A === 2 ? p < 128 ? h$1-- : e[r++] = p : A === 3 ? p < 2048 || p >= 55296 && p <= 57343 || p === 65279 || (e[r++] = p) : p < 65536 || p > 1114111 || (e[r++] = p)), this.interim.fill(0);
206
+ _ || (A === 2 ? p < 128 ? h-- : e[r++] = p : A === 3 ? p < 2048 || p >= 55296 && p <= 57343 || p === 65279 || (e[r++] = p) : p < 65536 || p > 1114111 || (e[r++] = p)), this.interim.fill(0);
207
207
  }
208
- let c = i - 4, d = h$1;
208
+ let c = i - 4, d = h;
209
209
  for (; d < i;) {
210
- for (; d < c && !((n = t[d]) & 128) && !((o$1 = t[d + 1]) & 128) && !((l = t[d + 2]) & 128) && !((a = t[d + 3]) & 128);) e[r++] = n, e[r++] = o$1, e[r++] = l, e[r++] = a, d += 4;
210
+ for (; d < c && !((n = t[d]) & 128) && !((o = t[d + 1]) & 128) && !((l = t[d + 2]) & 128) && !((a = t[d + 3]) & 128);) e[r++] = n, e[r++] = o, e[r++] = l, e[r++] = a, d += 4;
211
211
  if (n = t[d++], n < 128) e[r++] = n;
212
212
  else if ((n & 224) === 192) {
213
213
  if (d >= i) return this.interim[0] = n, r;
214
- if (o$1 = t[d++], (o$1 & 192) !== 128) {
214
+ if (o = t[d++], (o & 192) !== 128) {
215
215
  d--;
216
216
  continue;
217
217
  }
218
- if (u = (n & 31) << 6 | o$1 & 63, u < 128) {
218
+ if (u = (n & 31) << 6 | o & 63, u < 128) {
219
219
  d--;
220
220
  continue;
221
221
  }
222
222
  e[r++] = u;
223
223
  } else if ((n & 240) === 224) {
224
224
  if (d >= i) return this.interim[0] = n, r;
225
- if (o$1 = t[d++], (o$1 & 192) !== 128) {
225
+ if (o = t[d++], (o & 192) !== 128) {
226
226
  d--;
227
227
  continue;
228
228
  }
229
- if (d >= i) return this.interim[0] = n, this.interim[1] = o$1, r;
229
+ if (d >= i) return this.interim[0] = n, this.interim[1] = o, r;
230
230
  if (l = t[d++], (l & 192) !== 128) {
231
231
  d--;
232
232
  continue;
233
233
  }
234
- if (u = (n & 15) << 12 | (o$1 & 63) << 6 | l & 63, u < 2048 || u >= 55296 && u <= 57343 || u === 65279) continue;
234
+ if (u = (n & 15) << 12 | (o & 63) << 6 | l & 63, u < 2048 || u >= 55296 && u <= 57343 || u === 65279) continue;
235
235
  e[r++] = u;
236
236
  } else if ((n & 248) === 240) {
237
237
  if (d >= i) return this.interim[0] = n, r;
238
- if (o$1 = t[d++], (o$1 & 192) !== 128) {
238
+ if (o = t[d++], (o & 192) !== 128) {
239
239
  d--;
240
240
  continue;
241
241
  }
242
- if (d >= i) return this.interim[0] = n, this.interim[1] = o$1, r;
242
+ if (d >= i) return this.interim[0] = n, this.interim[1] = o, r;
243
243
  if (l = t[d++], (l & 192) !== 128) {
244
244
  d--;
245
245
  continue;
246
246
  }
247
- if (d >= i) return this.interim[0] = n, this.interim[1] = o$1, this.interim[2] = l, r;
247
+ if (d >= i) return this.interim[0] = n, this.interim[1] = o, this.interim[2] = l, r;
248
248
  if (a = t[d++], (a & 192) !== 128) {
249
249
  d--;
250
250
  continue;
251
251
  }
252
- if (u = (n & 7) << 18 | (o$1 & 63) << 12 | (l & 63) << 6 | a & 63, u < 65536 || u > 1114111) continue;
252
+ if (u = (n & 7) << 18 | (o & 63) << 12 | (l & 63) << 6 | a & 63, u < 65536 || u > 1114111) continue;
253
253
  e[r++] = u;
254
254
  }
255
255
  }
@@ -510,23 +510,23 @@ var wt = class {
510
510
  e(void 0);
511
511
  return;
512
512
  }
513
- let r = [], n = this._optionsService.rawOptions.linkHandler, o$1 = new q(), l = i.getTrimmedLength(), a = -1, u = -1, h$1 = !1;
513
+ let r = [], n = this._optionsService.rawOptions.linkHandler, o = new q(), l = i.getTrimmedLength(), a = -1, u = -1, h = !1;
514
514
  for (let c = 0; c < l; c++) if (!(u === -1 && !i.hasContent(c))) {
515
- if (i.loadCell(c, o$1), o$1.hasExtendedAttrs() && o$1.extended.urlId) if (u === -1) {
516
- u = c, a = o$1.extended.urlId;
515
+ if (i.loadCell(c, o), o.hasExtendedAttrs() && o.extended.urlId) if (u === -1) {
516
+ u = c, a = o.extended.urlId;
517
517
  continue;
518
- } else h$1 = o$1.extended.urlId !== a;
519
- else u !== -1 && (h$1 = !0);
520
- if (h$1 || u !== -1 && c === l - 1) {
518
+ } else h = o.extended.urlId !== a;
519
+ else u !== -1 && (h = !0);
520
+ if (h || u !== -1 && c === l - 1) {
521
521
  let d = this._oscLinkService.getLinkData(a)?.uri;
522
522
  if (d) {
523
- let _$1 = {
523
+ let _ = {
524
524
  start: {
525
525
  x: u + 1,
526
526
  y: t
527
527
  },
528
528
  end: {
529
- x: c + (!h$1 && c === l - 1 ? 1 : 0),
529
+ x: c + (!h && c === l - 1 ? 1 : 0),
530
530
  y: t
531
531
  }
532
532
  }, p = !1;
@@ -538,13 +538,13 @@ var wt = class {
538
538
  }
539
539
  p || r.push({
540
540
  text: d,
541
- range: _$1,
542
- activate: (m, f) => n ? n.activate(m, f, _$1) : Ol(m, f),
543
- hover: (m, f) => n?.hover?.(m, f, _$1),
544
- leave: (m, f) => n?.leave?.(m, f, _$1)
541
+ range: _,
542
+ activate: (m, f) => n ? n.activate(m, f, _) : Ol(m, f),
543
+ hover: (m, f) => n?.hover?.(m, f, _),
544
+ leave: (m, f) => n?.leave?.(m, f, _)
545
545
  });
546
546
  }
547
- h$1 = !1, o$1.hasExtendedAttrs() && o$1.extended.urlId ? (u = c, a = o$1.extended.urlId) : (u = -1, a = -1);
547
+ h = !1, o.hasExtendedAttrs() && o.extended.urlId ? (u = c, a = o.extended.urlId) : (u = -1, a = -1);
548
548
  }
549
549
  }
550
550
  e(r);
@@ -642,18 +642,18 @@ var ar = class s extends Error {
642
642
  function Fl(s, t, e = 0, i = s.length) {
643
643
  let r = e, n = i;
644
644
  for (; r < n;) {
645
- let o$1 = Math.floor((r + n) / 2);
646
- t(s[o$1]) ? r = o$1 + 1 : n = o$1;
645
+ let o = Math.floor((r + n) / 2);
646
+ t(s[o]) ? r = o + 1 : n = o;
647
647
  }
648
648
  return r - 1;
649
649
  }
650
- var cr = class cr$1 {
650
+ var cr = class cr {
651
651
  constructor(t) {
652
652
  this._array = t;
653
653
  this._findLastMonotonousLastIdx = 0;
654
654
  }
655
655
  findLastMonotonous(t) {
656
- if (cr$1.assertInvariants) {
656
+ if (cr.assertInvariants) {
657
657
  if (this._prevFindLastPredicate) {
658
658
  for (let i of this._array) if (this._prevFindLastPredicate(i) && !t(i)) throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");
659
659
  }
@@ -690,7 +690,7 @@ function no(s, t) {
690
690
  return (e, i) => t(s(e), s(i));
691
691
  }
692
692
  var so = (s, t) => s - t;
693
- var At = class At$1 {
693
+ var At = class At {
694
694
  constructor(t) {
695
695
  this.iterate = t;
696
696
  }
@@ -702,10 +702,10 @@ var At = class At$1 {
702
702
  return this.iterate((e) => (t.push(e), !0)), t;
703
703
  }
704
704
  filter(t) {
705
- return new At$1((e) => this.iterate((i) => t(i) ? e(i) : !0));
705
+ return new At((e) => this.iterate((i) => t(i) ? e(i) : !0));
706
706
  }
707
707
  map(t) {
708
- return new At$1((e) => this.iterate((i) => e(t(i))));
708
+ return new At((e) => this.iterate((i) => e(t(i))));
709
709
  }
710
710
  some(t) {
711
711
  let e = !1;
@@ -789,10 +789,10 @@ var zn;
789
789
  return I || t;
790
790
  }
791
791
  O.from = n;
792
- function* o$1(I) {
792
+ function* o(I) {
793
793
  for (let k = I.length - 1; k >= 0; k--) yield I[k];
794
794
  }
795
- O.reverse = o$1;
795
+ O.reverse = o;
796
796
  function l(I) {
797
797
  return !I || I[Symbol.iterator]().next().done === !0;
798
798
  }
@@ -807,10 +807,10 @@ var zn;
807
807
  return !1;
808
808
  }
809
809
  O.some = u;
810
- function h$1(I, k) {
810
+ function h(I, k) {
811
811
  for (let P of I) if (k(P)) return P;
812
812
  }
813
- O.find = h$1;
813
+ O.find = h;
814
814
  function* c(I, k) {
815
815
  for (let P of I) k(P) && (yield P);
816
816
  }
@@ -820,11 +820,11 @@ var zn;
820
820
  for (let oe of I) yield k(oe, P++);
821
821
  }
822
822
  O.map = d;
823
- function* _$1(I, k) {
823
+ function* _(I, k) {
824
824
  let P = 0;
825
825
  for (let oe of I) yield* k(oe, P++);
826
826
  }
827
- O.flatMap = _$1;
827
+ O.flatMap = _;
828
828
  function* p(...I) {
829
829
  for (let k of I) yield* k;
830
830
  }
@@ -860,7 +860,7 @@ var zn;
860
860
  }
861
861
  O.asyncToArray = R;
862
862
  })(zn ||= {});
863
- var Wl = !1, dt = null, hr = class hr$1 {
863
+ var Wl = !1, dt = null, hr = class hr {
864
864
  constructor() {
865
865
  this.livingDisposables = /* @__PURE__ */ new Map();
866
866
  }
@@ -871,7 +871,7 @@ var Wl = !1, dt = null, hr = class hr$1 {
871
871
  source: null,
872
872
  isSingleton: !1,
873
873
  value: t,
874
- idx: hr$1.idx++
874
+ idx: hr.idx++
875
875
  }, this.livingDisposables.set(t, e)), e;
876
876
  }
877
877
  trackDisposable(t) {
@@ -904,33 +904,33 @@ var Wl = !1, dt = null, hr = class hr$1 {
904
904
  else {
905
905
  let a = /* @__PURE__ */ new Map(), u = [...this.livingDisposables.values()].filter((c) => c.source !== null && !this.getRootParent(c, a).isSingleton);
906
906
  if (u.length === 0) return;
907
- let h$1 = new Set(u.map((c) => c.value));
908
- if (i = u.filter((c) => !(c.parent && h$1.has(c.parent))), i.length === 0) throw new Error("There are cyclic diposable chains!");
907
+ let h = new Set(u.map((c) => c.value));
908
+ if (i = u.filter((c) => !(c.parent && h.has(c.parent))), i.length === 0) throw new Error("There are cyclic diposable chains!");
909
909
  }
910
910
  if (!i) return;
911
911
  function r(a) {
912
912
  function u(c, d) {
913
- for (; c.length > 0 && d.some((_$1) => typeof _$1 == "string" ? _$1 === c[0] : c[0].match(_$1));) c.shift();
913
+ for (; c.length > 0 && d.some((_) => typeof _ == "string" ? _ === c[0] : c[0].match(_));) c.shift();
914
914
  }
915
- let h$1 = a.source.split(`
915
+ let h = a.source.split(`
916
916
  `).map((c) => c.trim().replace("at ", "")).filter((c) => c !== "");
917
- return u(h$1, [
917
+ return u(h, [
918
918
  "Error",
919
919
  /^trackDisposable \(.*\)$/,
920
920
  /^DisposableTracker.trackDisposable \(.*\)$/
921
- ]), h$1.reverse();
921
+ ]), h.reverse();
922
922
  }
923
923
  let n = new ur();
924
924
  for (let a of i) {
925
925
  let u = r(a);
926
- for (let h$1 = 0; h$1 <= u.length; h$1++) n.add(u.slice(0, h$1).join(`
926
+ for (let h = 0; h <= u.length; h++) n.add(u.slice(0, h).join(`
927
927
  `), a);
928
928
  }
929
929
  i.sort(no((a) => a.idx, so));
930
- let o$1 = "", l = 0;
930
+ let o = "", l = 0;
931
931
  for (let a of i.slice(0, t)) {
932
932
  l++;
933
- let u = r(a), h$1 = [];
933
+ let u = r(a), h = [];
934
934
  for (let c = 0; c < u.length; c++) {
935
935
  let d = u[c];
936
936
  d = `(shared with ${n.get(u.slice(0, c + 1).join(`
@@ -938,27 +938,27 @@ var Wl = !1, dt = null, hr = class hr$1 {
938
938
  let m = co([...n.get(u.slice(0, c).join(`
939
939
  `))].map((f) => r(f)[c]), (f) => f);
940
940
  delete m[u[c]];
941
- for (let [f, A] of Object.entries(m)) h$1.unshift(` - stacktraces of ${A.length} other leaks continue with ${f}`);
942
- h$1.unshift(d);
941
+ for (let [f, A] of Object.entries(m)) h.unshift(` - stacktraces of ${A.length} other leaks continue with ${f}`);
942
+ h.unshift(d);
943
943
  }
944
- o$1 += `
944
+ o += `
945
945
 
946
946
 
947
947
  ==================== Leaking disposable ${l}/${i.length}: ${a.value.constructor.name} ====================
948
- ${h$1.join(`
948
+ ${h.join(`
949
949
  `)}
950
950
  ============================================================
951
951
 
952
952
  `;
953
953
  }
954
- return i.length > t && (o$1 += `
954
+ return i.length > t && (o += `
955
955
 
956
956
 
957
957
  ... and ${i.length - t} more leaking disposables
958
958
 
959
959
  `), {
960
960
  leaks: i,
961
- details: o$1
961
+ details: o
962
962
  };
963
963
  }
964
964
  };
@@ -1026,7 +1026,7 @@ function C(s) {
1026
1026
  }) });
1027
1027
  return t;
1028
1028
  }
1029
- var dr = class dr$1 {
1029
+ var dr = class dr {
1030
1030
  constructor() {
1031
1031
  this._toDispose = /* @__PURE__ */ new Set();
1032
1032
  this._isDisposed = !1;
@@ -1048,7 +1048,7 @@ var dr = class dr$1 {
1048
1048
  add(t) {
1049
1049
  if (!t) return t;
1050
1050
  if (t === this) throw new Error("Cannot register a disposable on itself!");
1051
- return vi(t, this), this._isDisposed ? dr$1.DISABLE_DISPOSED_WARNING || console.warn((/* @__PURE__ */ new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!")).stack) : this._toDispose.add(t), t;
1051
+ return vi(t, this), this._isDisposed ? dr.DISABLE_DISPOSED_WARNING || console.warn((/* @__PURE__ */ new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!")).stack) : this._toDispose.add(t), t;
1052
1052
  }
1053
1053
  delete(t) {
1054
1054
  if (t) {
@@ -1098,9 +1098,9 @@ var ye = class {
1098
1098
  }
1099
1099
  };
1100
1100
  var fe = typeof window == "object" ? window : globalThis;
1101
- var kt = class kt$1 {
1101
+ var kt = class kt {
1102
1102
  constructor(t) {
1103
- this.element = t, this.next = kt$1.Undefined, this.prev = kt$1.Undefined;
1103
+ this.element = t, this.next = kt.Undefined, this.prev = kt.Undefined;
1104
1104
  }
1105
1105
  };
1106
1106
  kt.Undefined = new kt(void 0);
@@ -1212,19 +1212,19 @@ var Gl = !1, fo = !1, $l = !1, $;
1212
1212
  }
1213
1213
  Qe.once = i;
1214
1214
  function r(y, T, g) {
1215
- return h$1((w, E = null, x) => y((N) => w.call(E, T(N)), null, x), g);
1215
+ return h((w, E = null, x) => y((N) => w.call(E, T(N)), null, x), g);
1216
1216
  }
1217
1217
  Qe.map = r;
1218
1218
  function n(y, T, g) {
1219
- return h$1((w, E = null, x) => y((N) => {
1219
+ return h((w, E = null, x) => y((N) => {
1220
1220
  T(N), w.call(E, N);
1221
1221
  }, null, x), g);
1222
1222
  }
1223
1223
  Qe.forEach = n;
1224
- function o$1(y, T, g) {
1225
- return h$1((w, E = null, x) => y((N) => T(N) && w.call(E, N), null, x), g);
1224
+ function o(y, T, g) {
1225
+ return h((w, E = null, x) => y((N) => T(N) && w.call(E, N), null, x), g);
1226
1226
  }
1227
- Qe.filter = o$1;
1227
+ Qe.filter = o;
1228
1228
  function l(y) {
1229
1229
  return y;
1230
1230
  }
@@ -1240,7 +1240,7 @@ var Gl = !1, fo = !1, $l = !1, $;
1240
1240
  return r(y, (x) => (E = T(E, x), E), w);
1241
1241
  }
1242
1242
  Qe.reduce = u;
1243
- function h$1(y, T) {
1243
+ function h(y, T) {
1244
1244
  let g, w = {
1245
1245
  onWillAddFirstListener() {
1246
1246
  g = y(E.fire, E);
@@ -1279,13 +1279,13 @@ var Gl = !1, fo = !1, $l = !1, $;
1279
1279
  return N?.add(me), me.event;
1280
1280
  }
1281
1281
  Qe.debounce = d;
1282
- function _$1(y, T = 0, g) {
1282
+ function _(y, T = 0, g) {
1283
1283
  return Qe.debounce(y, (w, E) => w ? (w.push(E), w) : [E], T, void 0, !0, void 0, g);
1284
1284
  }
1285
- Qe.accumulate = _$1;
1286
- function p(y, T = (w$1, E$1) => w$1 === E$1, g) {
1285
+ Qe.accumulate = _;
1286
+ function p(y, T = (w, E) => w === E, g) {
1287
1287
  let w = !0, E;
1288
- return o$1(y, (x) => {
1288
+ return o(y, (x) => {
1289
1289
  let N = w || !T(x, E);
1290
1290
  return w = !1, E = x, N;
1291
1291
  }, g);
@@ -1344,7 +1344,7 @@ var Gl = !1, fo = !1, $l = !1, $;
1344
1344
  let w = g;
1345
1345
  return this.steps.push((E) => (w = T(w, E), w)), this;
1346
1346
  }
1347
- latch(T = (g$1, w$1) => g$1 === w$1) {
1347
+ latch(T = (g, w) => g === w) {
1348
1348
  let g = !0, w;
1349
1349
  return this.steps.push((E) => {
1350
1350
  let x = g || !T(E, w);
@@ -1356,7 +1356,7 @@ var Gl = !1, fo = !1, $l = !1, $;
1356
1356
  return T;
1357
1357
  }
1358
1358
  }
1359
- function I(y, T, g = (w$1) => w$1) {
1359
+ function I(y, T, g = (w) => w) {
1360
1360
  let w = (...Z) => N.fire(g(...Z)), E = () => y.on(T, w), x = () => y.removeListener(T, w), N = new v({
1361
1361
  onWillAddFirstListener: E,
1362
1362
  onDidRemoveLastListener: x
@@ -1364,7 +1364,7 @@ var Gl = !1, fo = !1, $l = !1, $;
1364
1364
  return N.event;
1365
1365
  }
1366
1366
  Qe.fromNodeEventEmitter = I;
1367
- function k(y, T, g = (w$1) => w$1) {
1367
+ function k(y, T, g = (w) => w) {
1368
1368
  let w = (...Z) => N.fire(g(...Z)), E = () => y.addEventListener(T, w), x = () => y.removeEventListener(T, w), N = new v({
1369
1369
  onWillAddFirstListener: E,
1370
1370
  onDidRemoveLastListener: x
@@ -1448,13 +1448,13 @@ var Gl = !1, fo = !1, $l = !1, $;
1448
1448
  }
1449
1449
  Qe.fromObservableLight = V;
1450
1450
  })($ ||= {});
1451
- var Mt = class Mt$1 {
1451
+ var Mt = class Mt {
1452
1452
  constructor(t) {
1453
1453
  this.listenerCount = 0;
1454
1454
  this.invocationCount = 0;
1455
1455
  this.elapsedOverall = 0;
1456
1456
  this.durations = [];
1457
- this.name = `${t}_${Mt$1._idPool++}`, Mt$1.all.add(this);
1457
+ this.name = `${t}_${Mt._idPool++}`, Mt.all.add(this);
1458
1458
  }
1459
1459
  start(t) {
1460
1460
  this._stopWatch = new mr(), this.listenerCount = t;
@@ -1468,8 +1468,8 @@ var Mt = class Mt$1 {
1468
1468
  };
1469
1469
  Mt.all = /* @__PURE__ */ new Set(), Mt._idPool = 0;
1470
1470
  var $n = Mt, po = -1;
1471
- var br = class br$1 {
1472
- constructor(t, e, i = (br$1._idPool++).toString(16).padStart(3, "0")) {
1471
+ var br = class br {
1472
+ constructor(t, e, i = (br._idPool++).toString(16).padStart(3, "0")) {
1473
1473
  this._errorHandler = t;
1474
1474
  this.threshold = e;
1475
1475
  this.name = i;
@@ -1485,7 +1485,7 @@ var br = class br$1 {
1485
1485
  let r = this._stacks.get(t.value) || 0;
1486
1486
  if (this._stacks.set(t.value, r + 1), this._warnCountdown -= 1, this._warnCountdown <= 0) {
1487
1487
  this._warnCountdown = i * .5;
1488
- let [n, o$1] = this.getMostFrequentStack(), l = `[${this.name}] potential listener LEAK detected, having ${e} listeners already. MOST frequent listener (${o$1}):`;
1488
+ let [n, o] = this.getMostFrequentStack(), l = `[${this.name}] potential listener LEAK detected, having ${e} listeners already. MOST frequent listener (${o}):`;
1489
1489
  console.warn(l), console.warn(n);
1490
1490
  let a = new qn(l, n);
1491
1491
  this._errorHandler(a);
@@ -1568,13 +1568,13 @@ var v = class {
1568
1568
  if (this._leakageMon && this._size > this._leakageMon.threshold ** 2) {
1569
1569
  let a = `[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;
1570
1570
  console.warn(a);
1571
- let u = this._leakageMon.getMostFrequentStack() ?? ["UNKNOWN stack", -1], h$1 = new Yn(`${a}. HINT: Stack shows most frequent listener (${u[1]}-times)`, u[0]);
1572
- return (this._options?.onListenerError || Lt)(h$1), D.None;
1571
+ let u = this._leakageMon.getMostFrequentStack() ?? ["UNKNOWN stack", -1], h = new Yn(`${a}. HINT: Stack shows most frequent listener (${u[1]}-times)`, u[0]);
1572
+ return (this._options?.onListenerError || Lt)(h), D.None;
1573
1573
  }
1574
1574
  if (this._disposed) return D.None;
1575
1575
  e && (t = t.bind(e));
1576
- let r = new Pt(t), n, o$1;
1577
- this._leakageMon && this._size >= Math.ceil(this._leakageMon.threshold * .2) && (r.stack = gi.create(), n = this._leakageMon.check(r.stack, this._size + 1)), fo && (r.stack = o$1 ?? gi.create()), this._listeners ? this._listeners instanceof Pt ? (this._deliveryQueue ??= new jn(), this._listeners = [this._listeners, r]) : this._listeners.push(r) : (this._options?.onWillAddFirstListener?.(this), this._listeners = r, this._options?.onDidAddFirstListener?.(this)), this._size++;
1576
+ let r = new Pt(t), n, o;
1577
+ this._leakageMon && this._size >= Math.ceil(this._leakageMon.threshold * .2) && (r.stack = gi.create(), n = this._leakageMon.check(r.stack, this._size + 1)), fo && (r.stack = o ?? gi.create()), this._listeners ? this._listeners instanceof Pt ? (this._deliveryQueue ??= new jn(), this._listeners = [this._listeners, r]) : this._listeners.push(r) : (this._options?.onWillAddFirstListener?.(this), this._listeners = r, this._options?.onDidAddFirstListener?.(this)), this._size++;
1578
1578
  let l = C(() => {
1579
1579
  _r?.unregister(l), n?.(), this._removeListener(r);
1580
1580
  });
@@ -1599,7 +1599,7 @@ var v = class {
1599
1599
  let r = this._deliveryQueue.current === this;
1600
1600
  if (this._size * ql <= e.length) {
1601
1601
  let n = 0;
1602
- for (let o$1 = 0; o$1 < e.length; o$1++) e[o$1] ? e[n++] = e[o$1] : r && (this._deliveryQueue.end--, n < this._deliveryQueue.i && this._deliveryQueue.i--);
1602
+ for (let o = 0; o < e.length; o++) e[o] ? e[n++] = e[o] : r && (this._deliveryQueue.end--, n < this._deliveryQueue.i && this._deliveryQueue.i--);
1603
1603
  e.length = n;
1604
1604
  }
1605
1605
  }
@@ -1645,7 +1645,7 @@ var jn = class {
1645
1645
  this.i = this.end, this.current = void 0, this.value = void 0;
1646
1646
  }
1647
1647
  };
1648
- var gr = class gr$1 {
1648
+ var gr = class gr {
1649
1649
  constructor() {
1650
1650
  this.mapWindowIdToZoomLevel = /* @__PURE__ */ new Map();
1651
1651
  this._onDidChangeZoomLevel = new v();
@@ -1780,27 +1780,27 @@ var yi = class {
1780
1780
  }
1781
1781
  }, Jn = new yi(), To = new yi(), Io = new yi(), yo = new Array(230);
1782
1782
  var Qn;
1783
- ((o$1) => {
1783
+ ((o) => {
1784
1784
  function s(l) {
1785
1785
  return Jn.keyCodeToStr(l);
1786
1786
  }
1787
- o$1.toString = s;
1787
+ o.toString = s;
1788
1788
  function t(l) {
1789
1789
  return Jn.strToKeyCode(l);
1790
1790
  }
1791
- o$1.fromString = t;
1791
+ o.fromString = t;
1792
1792
  function e(l) {
1793
1793
  return To.keyCodeToStr(l);
1794
1794
  }
1795
- o$1.toUserSettingsUS = e;
1795
+ o.toUserSettingsUS = e;
1796
1796
  function i(l) {
1797
1797
  return Io.keyCodeToStr(l);
1798
1798
  }
1799
- o$1.toUserSettingsGeneral = i;
1799
+ o.toUserSettingsGeneral = i;
1800
1800
  function r(l) {
1801
1801
  return To.strToKeyCode(l) || Io.strToKeyCode(l);
1802
1802
  }
1803
- o$1.fromUserSettings = r;
1803
+ o.fromUserSettings = r;
1804
1804
  function n(l) {
1805
1805
  if (l >= 98 && l <= 113) return null;
1806
1806
  switch (l) {
@@ -1811,7 +1811,7 @@ var Qn;
1811
1811
  }
1812
1812
  return Jn.keyCodeToStr(l);
1813
1813
  }
1814
- o$1.toElectronAccelerator = n;
1814
+ o.toElectronAccelerator = n;
1815
1815
  })(Qn ||= {});
1816
1816
  var Rr = class s {
1817
1817
  constructor(t, e, i, r, n) {
@@ -1944,10 +1944,10 @@ var Lr = class {
1944
1944
  left: 0
1945
1945
  };
1946
1946
  let i = 0, r = 0, n = this.getSameOriginWindowChain(t);
1947
- for (let o$1 of n) {
1948
- let l = o$1.window.deref();
1949
- if (i += l?.scrollY ?? 0, r += l?.scrollX ?? 0, l === e || !o$1.iframeElement) break;
1950
- let a = o$1.iframeElement.getBoundingClientRect();
1947
+ for (let o of n) {
1948
+ let l = o.window.deref();
1949
+ if (i += l?.scrollY ?? 0, r += l?.scrollX ?? 0, l === e || !o.iframeElement) break;
1950
+ let a = o.iframeElement.getBoundingClientRect();
1951
1951
  i += a.top, r += a.left;
1952
1952
  }
1953
1953
  return {
@@ -1978,15 +1978,15 @@ var xi = class {
1978
1978
  r = (n ? parseInt(n[1]) : 123) <= 122;
1979
1979
  }
1980
1980
  if (t) {
1981
- let n = t, o$1 = t, l = t.view?.devicePixelRatio || 1;
1981
+ let n = t, o = t, l = t.view?.devicePixelRatio || 1;
1982
1982
  if (typeof n.wheelDeltaY < "u") r ? this.deltaY = n.wheelDeltaY / (120 * l) : this.deltaY = n.wheelDeltaY / 120;
1983
- else if (typeof o$1.VERTICAL_AXIS < "u" && o$1.axis === o$1.VERTICAL_AXIS) this.deltaY = -o$1.detail / 3;
1983
+ else if (typeof o.VERTICAL_AXIS < "u" && o.axis === o.VERTICAL_AXIS) this.deltaY = -o.detail / 3;
1984
1984
  else if (t.type === "wheel") {
1985
1985
  let a = t;
1986
1986
  a.deltaMode === a.DOM_DELTA_LINE ? Ei && !Te ? this.deltaY = -t.deltaY / 3 : this.deltaY = -t.deltaY : this.deltaY = -t.deltaY / 40;
1987
1987
  }
1988
1988
  if (typeof n.wheelDeltaX < "u") Sr && wr ? this.deltaX = -(n.wheelDeltaX / 120) : r ? this.deltaX = n.wheelDeltaX / (120 * l) : this.deltaX = n.wheelDeltaX / 120;
1989
- else if (typeof o$1.HORIZONTAL_AXIS < "u" && o$1.axis === o$1.HORIZONTAL_AXIS) this.deltaX = -t.detail / 3;
1989
+ else if (typeof o.HORIZONTAL_AXIS < "u" && o.axis === o.HORIZONTAL_AXIS) this.deltaX = -t.detail / 3;
1990
1990
  else if (t.type === "wheel") {
1991
1991
  let a = t;
1992
1992
  a.deltaMode === a.DOM_DELTA_LINE ? Ei && !Te ? this.deltaX = -t.deltaX / 3 : this.deltaX = -t.deltaX : this.deltaX = -t.deltaX / 40;
@@ -2087,7 +2087,7 @@ var ts = class {
2087
2087
  var va;
2088
2088
  ((e) => {
2089
2089
  async function s(i) {
2090
- let r, n = await Promise.all(i.map((o$1) => o$1.then((l) => l, (l) => {
2090
+ let r, n = await Promise.all(i.map((o) => o.then((l) => l, (l) => {
2091
2091
  r || (r = l);
2092
2092
  })));
2093
2093
  if (typeof r < "u") throw r;
@@ -2098,31 +2098,31 @@ var va;
2098
2098
  return new Promise(async (r, n) => {
2099
2099
  try {
2100
2100
  await i(r, n);
2101
- } catch (o$1) {
2102
- n(o$1);
2101
+ } catch (o) {
2102
+ n(o);
2103
2103
  }
2104
2104
  });
2105
2105
  }
2106
2106
  e.withAsyncBody = t;
2107
2107
  })(va ||= {});
2108
- var _e = class _e$1 {
2108
+ var _e = class _e {
2109
2109
  static fromArray(t) {
2110
- return new _e$1((e) => {
2110
+ return new _e((e) => {
2111
2111
  e.emitMany(t);
2112
2112
  });
2113
2113
  }
2114
2114
  static fromPromise(t) {
2115
- return new _e$1(async (e) => {
2115
+ return new _e(async (e) => {
2116
2116
  e.emitMany(await t);
2117
2117
  });
2118
2118
  }
2119
2119
  static fromPromises(t) {
2120
- return new _e$1(async (e) => {
2120
+ return new _e(async (e) => {
2121
2121
  await Promise.all(t.map(async (i) => e.emitOne(await i)));
2122
2122
  });
2123
2123
  }
2124
2124
  static merge(t) {
2125
- return new _e$1(async (e) => {
2125
+ return new _e(async (e) => {
2126
2126
  await Promise.all(t.map(async (i) => {
2127
2127
  for await (let r of i) e.emitOne(r);
2128
2128
  }));
@@ -2168,26 +2168,26 @@ var _e = class _e$1 {
2168
2168
  };
2169
2169
  }
2170
2170
  static map(t, e) {
2171
- return new _e$1(async (i) => {
2171
+ return new _e(async (i) => {
2172
2172
  for await (let r of t) i.emitOne(e(r));
2173
2173
  });
2174
2174
  }
2175
2175
  map(t) {
2176
- return _e$1.map(this, t);
2176
+ return _e.map(this, t);
2177
2177
  }
2178
2178
  static filter(t, e) {
2179
- return new _e$1(async (i) => {
2179
+ return new _e(async (i) => {
2180
2180
  for await (let r of t) e(r) && i.emitOne(r);
2181
2181
  });
2182
2182
  }
2183
2183
  filter(t) {
2184
- return _e$1.filter(this, t);
2184
+ return _e.filter(this, t);
2185
2185
  }
2186
2186
  static coalesce(t) {
2187
- return _e$1.filter(t, (e) => !!e);
2187
+ return _e.filter(t, (e) => !!e);
2188
2188
  }
2189
2189
  coalesce() {
2190
- return _e$1.coalesce(this);
2190
+ return _e.coalesce(this);
2191
2191
  }
2192
2192
  static async toPromise(t) {
2193
2193
  let e = [];
@@ -2195,7 +2195,7 @@ var _e = class _e$1 {
2195
2195
  return e;
2196
2196
  }
2197
2197
  toPromise() {
2198
- return _e$1.toPromise(this);
2198
+ return _e.toPromise(this);
2199
2199
  }
2200
2200
  emitOne(t) {
2201
2201
  this._state === 0 && (this._results.push(t), this._onStateChanged.fire());
@@ -2264,7 +2264,7 @@ function Ia(s, t, e = "0") {
2264
2264
  function wi(s, t = 32) {
2265
2265
  return s instanceof ArrayBuffer ? Array.from(new Uint8Array(s)).map((e) => e.toString(16).padStart(2, "0")).join("") : Ia((s >>> 0).toString(16), t / 4);
2266
2266
  }
2267
- var Cr = class Cr$1 {
2267
+ var Cr = class Cr {
2268
2268
  constructor() {
2269
2269
  this._h0 = 1732584193;
2270
2270
  this._h1 = 4023233417;
@@ -2276,18 +2276,18 @@ var Cr = class Cr$1 {
2276
2276
  update(t) {
2277
2277
  let e = t.length;
2278
2278
  if (e === 0) return;
2279
- let i = this._buff, r = this._buffLen, n = this._leftoverHighSurrogate, o$1, l;
2280
- for (n !== 0 ? (o$1 = n, l = -1, n = 0) : (o$1 = t.charCodeAt(0), l = 0);;) {
2281
- let a = o$1;
2282
- if (Lo(o$1)) if (l + 1 < e) {
2279
+ let i = this._buff, r = this._buffLen, n = this._leftoverHighSurrogate, o, l;
2280
+ for (n !== 0 ? (o = n, l = -1, n = 0) : (o = t.charCodeAt(0), l = 0);;) {
2281
+ let a = o;
2282
+ if (Lo(o)) if (l + 1 < e) {
2283
2283
  let u = t.charCodeAt(l + 1);
2284
- is(u) ? (l++, a = Ao(o$1, u)) : a = 65533;
2284
+ is(u) ? (l++, a = Ao(o, u)) : a = 65533;
2285
2285
  } else {
2286
- n = o$1;
2286
+ n = o;
2287
2287
  break;
2288
2288
  }
2289
- else is(o$1) && (a = 65533);
2290
- if (r = this._push(i, r, a), l++, l < e) o$1 = t.charCodeAt(l);
2289
+ else is(o) && (a = 65533);
2290
+ if (r = this._push(i, r, a), l++, l < e) o = t.charCodeAt(l);
2291
2291
  else break;
2292
2292
  }
2293
2293
  this._buffLen = r, this._leftoverHighSurrogate = n;
@@ -2304,12 +2304,12 @@ var Cr = class Cr$1 {
2304
2304
  this._buffDV.setUint32(56, Math.floor(t / 4294967296), !1), this._buffDV.setUint32(60, t % 4294967296, !1), this._step();
2305
2305
  }
2306
2306
  _step() {
2307
- let t = Cr$1._bigBlock32, e = this._buffDV;
2307
+ let t = Cr._bigBlock32, e = this._buffDV;
2308
2308
  for (let c = 0; c < 64; c += 4) t.setUint32(c, e.getUint32(c, !1), !1);
2309
2309
  for (let c = 64; c < 320; c += 4) t.setUint32(c, rs(t.getUint32(c - 12, !1) ^ t.getUint32(c - 32, !1) ^ t.getUint32(c - 56, !1) ^ t.getUint32(c - 64, !1), 1), !1);
2310
- let i = this._h0, r = this._h1, n = this._h2, o$1 = this._h3, l = this._h4, a, u, h$1;
2311
- for (let c = 0; c < 80; c++) c < 20 ? (a = r & n | ~r & o$1, u = 1518500249) : c < 40 ? (a = r ^ n ^ o$1, u = 1859775393) : c < 60 ? (a = r & n | r & o$1 | n & o$1, u = 2400959708) : (a = r ^ n ^ o$1, u = 3395469782), h$1 = rs(i, 5) + a + l + u + t.getUint32(c * 4, !1) & 4294967295, l = o$1, o$1 = n, n = rs(r, 30), r = i, i = h$1;
2312
- this._h0 = this._h0 + i & 4294967295, this._h1 = this._h1 + r & 4294967295, this._h2 = this._h2 + n & 4294967295, this._h3 = this._h3 + o$1 & 4294967295, this._h4 = this._h4 + l & 4294967295;
2310
+ let i = this._h0, r = this._h1, n = this._h2, o = this._h3, l = this._h4, a, u, h;
2311
+ for (let c = 0; c < 80; c++) c < 20 ? (a = r & n | ~r & o, u = 1518500249) : c < 40 ? (a = r ^ n ^ o, u = 1859775393) : c < 60 ? (a = r & n | r & o | n & o, u = 2400959708) : (a = r ^ n ^ o, u = 3395469782), h = rs(i, 5) + a + l + u + t.getUint32(c * 4, !1) & 4294967295, l = o, o = n, n = rs(r, 30), r = i, i = h;
2312
+ this._h0 = this._h0 + i & 4294967295, this._h1 = this._h1 + r & 4294967295, this._h2 = this._h2 + n & 4294967295, this._h3 = this._h3 + o & 4294967295, this._h4 = this._h4 + l & 4294967295;
2313
2313
  }
2314
2314
  };
2315
2315
  Cr._bigBlock32 = /* @__PURE__ */ new DataView(/* @__PURE__ */ new ArrayBuffer(320));
@@ -2321,23 +2321,23 @@ var { registerWindow: Bh, getWindow: be, getDocument: Nh, getWindows: Fh, getWin
2321
2321
  };
2322
2322
  s.set(fe.vscodeWindowId, t);
2323
2323
  let e = new v(), i = new v(), r = new v();
2324
- function n(o$1, l) {
2325
- return (typeof o$1 == "number" ? s.get(o$1) : void 0) ?? (l ? t : void 0);
2324
+ function n(o, l) {
2325
+ return (typeof o == "number" ? s.get(o) : void 0) ?? (l ? t : void 0);
2326
2326
  }
2327
2327
  return {
2328
2328
  onDidRegisterWindow: e.event,
2329
2329
  onWillUnregisterWindow: r.event,
2330
2330
  onDidUnregisterWindow: i.event,
2331
- registerWindow(o$1) {
2332
- if (s.has(o$1.vscodeWindowId)) return D.None;
2331
+ registerWindow(o) {
2332
+ if (s.has(o.vscodeWindowId)) return D.None;
2333
2333
  let l = new Ee(), a = {
2334
- window: o$1,
2334
+ window: o,
2335
2335
  disposables: l.add(new Ee())
2336
2336
  };
2337
- return s.set(o$1.vscodeWindowId, a), l.add(C(() => {
2338
- s.delete(o$1.vscodeWindowId), i.fire(o$1);
2339
- })), l.add(L(o$1, Y.BEFORE_UNLOAD, () => {
2340
- r.fire(o$1);
2337
+ return s.set(o.vscodeWindowId, a), l.add(C(() => {
2338
+ s.delete(o.vscodeWindowId), i.fire(o);
2339
+ })), l.add(L(o, Y.BEFORE_UNLOAD, () => {
2340
+ r.fire(o);
2341
2341
  })), e.fire(a), l;
2342
2342
  },
2343
2343
  getWindows() {
@@ -2346,21 +2346,21 @@ var { registerWindow: Bh, getWindow: be, getDocument: Nh, getWindows: Fh, getWin
2346
2346
  getWindowsCount() {
2347
2347
  return s.size;
2348
2348
  },
2349
- getWindowId(o$1) {
2350
- return o$1.vscodeWindowId;
2349
+ getWindowId(o) {
2350
+ return o.vscodeWindowId;
2351
2351
  },
2352
- hasWindow(o$1) {
2353
- return s.has(o$1);
2352
+ hasWindow(o) {
2353
+ return s.has(o);
2354
2354
  },
2355
2355
  getWindowById: n,
2356
- getWindow(o$1) {
2357
- let l = o$1;
2356
+ getWindow(o) {
2357
+ let l = o;
2358
2358
  if (l?.ownerDocument?.defaultView) return l.ownerDocument.defaultView.window;
2359
- let a = o$1;
2359
+ let a = o;
2360
2360
  return a?.view ? a.view.window : fe;
2361
2361
  },
2362
- getDocument(o$1) {
2363
- return be(o$1).document;
2362
+ getDocument(o) {
2363
+ return be(o).document;
2364
2364
  }
2365
2365
  };
2366
2366
  }();
@@ -2417,28 +2417,28 @@ var Mr = class extends kr {
2417
2417
  (function() {
2418
2418
  let s = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map(), e = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), r = (n) => {
2419
2419
  e.set(n, !1);
2420
- let o$1 = s.get(n) ?? [];
2421
- for (t.set(n, o$1), s.set(n, []), i.set(n, !0); o$1.length > 0;) o$1.sort(Di.sort), o$1.shift().execute();
2420
+ let o = s.get(n) ?? [];
2421
+ for (t.set(n, o), s.set(n, []), i.set(n, !0); o.length > 0;) o.sort(Di.sort), o.shift().execute();
2422
2422
  i.set(n, !1);
2423
2423
  };
2424
- mt = (n, o$1, l = 0) => {
2425
- let a = Oo(n), u = new Di(o$1, l), h$1 = s.get(a);
2426
- return h$1 || (h$1 = [], s.set(a, h$1)), h$1.push(u), e.get(a) || (e.set(a, !0), n.requestAnimationFrame(() => r(a))), u;
2424
+ mt = (n, o, l = 0) => {
2425
+ let a = Oo(n), u = new Di(o, l), h = s.get(a);
2426
+ return h || (h = [], s.set(a, h)), h.push(u), e.get(a) || (e.set(a, !0), n.requestAnimationFrame(() => r(a))), u;
2427
2427
  };
2428
2428
  })();
2429
- var pt = class pt$1 {
2429
+ var pt = class pt {
2430
2430
  constructor(t, e) {
2431
2431
  this.width = t;
2432
2432
  this.height = e;
2433
2433
  }
2434
2434
  with(t = this.width, e = this.height) {
2435
- return t !== this.width || e !== this.height ? new pt$1(t, e) : this;
2435
+ return t !== this.width || e !== this.height ? new pt(t, e) : this;
2436
2436
  }
2437
2437
  static is(t) {
2438
2438
  return typeof t == "object" && typeof t.height == "number" && typeof t.width == "number";
2439
2439
  }
2440
2440
  static lift(t) {
2441
- return t instanceof pt$1 ? t : new pt$1(t.width, t.height);
2441
+ return t instanceof pt ? t : new pt(t.width, t.height);
2442
2442
  }
2443
2443
  static equals(t, e) {
2444
2444
  return t === e ? !0 : !t || !e ? !1 : t.width === e.width && t.height === e.height;
@@ -2464,15 +2464,15 @@ new class {
2464
2464
  let r = Mo(e), n = i.get(r);
2465
2465
  if (n) n.users += 1;
2466
2466
  else {
2467
- let o$1 = new v(), l = new MutationObserver((u) => o$1.fire(u));
2467
+ let o = new v(), l = new MutationObserver((u) => o.fire(u));
2468
2468
  l.observe(s, e);
2469
2469
  let a = n = {
2470
2470
  users: 1,
2471
2471
  observer: l,
2472
- onDidMutate: o$1.event
2472
+ onDidMutate: o.event
2473
2473
  };
2474
2474
  t.add(C(() => {
2475
- a.users -= 1, a.users === 0 && (o$1.dispose(), l.disconnect(), i?.delete(r), i?.size === 0 && this.mutationObservers.delete(s));
2475
+ a.users -= 1, a.users === 0 && (o.dispose(), l.disconnect(), i?.delete(r), i?.size === 0 && this.mutationObservers.delete(s));
2476
2476
  })), i.set(r, n);
2477
2477
  }
2478
2478
  return n.onDidMutate;
@@ -2536,10 +2536,10 @@ var Da = /([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;
2536
2536
  function Ho(s, t, e, ...i) {
2537
2537
  let r = Da.exec(t);
2538
2538
  if (!r) throw new Error("Bad use of emmet");
2539
- let n = r[1] || "div", o$1;
2540
- return s !== "http://www.w3.org/1999/xhtml" ? o$1 = document.createElementNS(s, n) : o$1 = document.createElement(n), r[3] && (o$1.id = r[3]), r[4] && (o$1.className = r[4].replace(/\./g, " ").trim()), e && Object.entries(e).forEach(([l, a]) => {
2541
- typeof a > "u" || (/^on\w+$/.test(l) ? o$1[l] = a : l === "selected" ? a && o$1.setAttribute(l, "true") : o$1.setAttribute(l, a));
2542
- }), o$1.append(...i), o$1;
2539
+ let n = r[1] || "div", o;
2540
+ return s !== "http://www.w3.org/1999/xhtml" ? o = document.createElementNS(s, n) : o = document.createElement(n), r[3] && (o.id = r[3]), r[4] && (o.className = r[4].replace(/\./g, " ").trim()), e && Object.entries(e).forEach(([l, a]) => {
2541
+ typeof a > "u" || (/^on\w+$/.test(l) ? o[l] = a : l === "selected" ? a && o.setAttribute(l, "true") : o.setAttribute(l, a));
2542
+ }), o.append(...i), o;
2543
2543
  }
2544
2544
  function Ra(s, t, ...e) {
2545
2545
  return Ho("http://www.w3.org/1999/xhtml", s, t, ...e);
@@ -2723,7 +2723,7 @@ var Wt = class {
2723
2723
  }
2724
2724
  startMonitoring(t, e, i, r, n) {
2725
2725
  this.isMonitoring() && this.stopMonitoring(!1), this._pointerMoveCallback = r, this._onStopCallback = n;
2726
- let o$1 = t;
2726
+ let o = t;
2727
2727
  try {
2728
2728
  t.setPointerCapture(e), this._hooks.add(C(() => {
2729
2729
  try {
@@ -2731,33 +2731,33 @@ var Wt = class {
2731
2731
  } catch {}
2732
2732
  }));
2733
2733
  } catch {
2734
- o$1 = be(t);
2734
+ o = be(t);
2735
2735
  }
2736
- this._hooks.add(L(o$1, Y.POINTER_MOVE, (l) => {
2736
+ this._hooks.add(L(o, Y.POINTER_MOVE, (l) => {
2737
2737
  if (l.buttons !== i) {
2738
2738
  this.stopMonitoring(!0);
2739
2739
  return;
2740
2740
  }
2741
2741
  l.preventDefault(), this._pointerMoveCallback(l);
2742
- })), this._hooks.add(L(o$1, Y.POINTER_UP, (l) => this.stopMonitoring(!0)));
2742
+ })), this._hooks.add(L(o, Y.POINTER_UP, (l) => this.stopMonitoring(!0)));
2743
2743
  }
2744
2744
  };
2745
2745
  function Wo(s, t, e) {
2746
2746
  let i = null, r = null;
2747
2747
  if (typeof e.value == "function" ? (i = "value", r = e.value, r.length !== 0 && console.warn("Memoize should only be used in functions with zero parameters")) : typeof e.get == "function" && (i = "get", r = e.get), !r) throw new Error("not supported");
2748
2748
  let n = `$memoize$${t}`;
2749
- e[i] = function(...o$1) {
2749
+ e[i] = function(...o) {
2750
2750
  return this.hasOwnProperty(n) || Object.defineProperty(this, n, {
2751
2751
  configurable: !1,
2752
2752
  enumerable: !1,
2753
2753
  writable: !1,
2754
- value: r.apply(this, o$1)
2754
+ value: r.apply(this, o)
2755
2755
  }), this[n];
2756
2756
  };
2757
2757
  }
2758
2758
  var He;
2759
2759
  ((n) => (n.Tap = "-xterm-gesturetap", n.Change = "-xterm-gesturechange", n.Start = "-xterm-gesturestart", n.End = "-xterm-gesturesend", n.Contextmenu = "-xterm-gesturecontextmenu"))(He ||= {});
2760
- var Q = class Q$1 extends D {
2760
+ var Q = class Q extends D {
2761
2761
  constructor() {
2762
2762
  super();
2763
2763
  this.dispatched = !1;
@@ -2771,14 +2771,14 @@ var Q = class Q$1 extends D {
2771
2771
  }));
2772
2772
  }
2773
2773
  static addTarget(e) {
2774
- if (!Q$1.isTouchDevice()) return D.None;
2775
- Q$1.INSTANCE || (Q$1.INSTANCE = Gn(new Q$1()));
2776
- return C(Q$1.INSTANCE.targets.push(e));
2774
+ if (!Q.isTouchDevice()) return D.None;
2775
+ Q.INSTANCE || (Q.INSTANCE = Gn(new Q()));
2776
+ return C(Q.INSTANCE.targets.push(e));
2777
2777
  }
2778
2778
  static ignoreTarget(e) {
2779
- if (!Q$1.isTouchDevice()) return D.None;
2780
- Q$1.INSTANCE || (Q$1.INSTANCE = Gn(new Q$1()));
2781
- return C(Q$1.INSTANCE.ignoreTargets.push(e));
2779
+ if (!Q.isTouchDevice()) return D.None;
2780
+ Q.INSTANCE || (Q.INSTANCE = Gn(new Q()));
2781
+ return C(Q.INSTANCE.ignoreTargets.push(e));
2782
2782
  }
2783
2783
  static isTouchDevice() {
2784
2784
  return "ontouchstart" in fe || navigator.maxTouchPoints > 0;
@@ -2790,40 +2790,40 @@ var Q = class Q$1 extends D {
2790
2790
  let i = Date.now();
2791
2791
  this.handle && (this.handle.dispose(), this.handle = null);
2792
2792
  for (let r = 0, n = e.targetTouches.length; r < n; r++) {
2793
- let o$1 = e.targetTouches.item(r);
2794
- this.activeTouches[o$1.identifier] = {
2795
- id: o$1.identifier,
2796
- initialTarget: o$1.target,
2793
+ let o = e.targetTouches.item(r);
2794
+ this.activeTouches[o.identifier] = {
2795
+ id: o.identifier,
2796
+ initialTarget: o.target,
2797
2797
  initialTimeStamp: i,
2798
- initialPageX: o$1.pageX,
2799
- initialPageY: o$1.pageY,
2798
+ initialPageX: o.pageX,
2799
+ initialPageY: o.pageY,
2800
2800
  rollingTimestamps: [i],
2801
- rollingPageX: [o$1.pageX],
2802
- rollingPageY: [o$1.pageY]
2801
+ rollingPageX: [o.pageX],
2802
+ rollingPageY: [o.pageY]
2803
2803
  };
2804
- let l = this.newGestureEvent(He.Start, o$1.target);
2805
- l.pageX = o$1.pageX, l.pageY = o$1.pageY, this.dispatchEvent(l);
2804
+ let l = this.newGestureEvent(He.Start, o.target);
2805
+ l.pageX = o.pageX, l.pageY = o.pageY, this.dispatchEvent(l);
2806
2806
  }
2807
2807
  this.dispatched && (e.preventDefault(), e.stopPropagation(), this.dispatched = !1);
2808
2808
  }
2809
2809
  onTouchEnd(e, i) {
2810
2810
  let r = Date.now(), n = Object.keys(this.activeTouches).length;
2811
- for (let o$1 = 0, l = i.changedTouches.length; o$1 < l; o$1++) {
2812
- let a = i.changedTouches.item(o$1);
2811
+ for (let o = 0, l = i.changedTouches.length; o < l; o++) {
2812
+ let a = i.changedTouches.item(o);
2813
2813
  if (!this.activeTouches.hasOwnProperty(String(a.identifier))) {
2814
2814
  console.warn("move of an UNKNOWN touch", a);
2815
2815
  continue;
2816
2816
  }
2817
- let u = this.activeTouches[a.identifier], h$1 = Date.now() - u.initialTimeStamp;
2818
- if (h$1 < Q$1.HOLD_DELAY && Math.abs(u.initialPageX - Se(u.rollingPageX)) < 30 && Math.abs(u.initialPageY - Se(u.rollingPageY)) < 30) {
2817
+ let u = this.activeTouches[a.identifier], h = Date.now() - u.initialTimeStamp;
2818
+ if (h < Q.HOLD_DELAY && Math.abs(u.initialPageX - Se(u.rollingPageX)) < 30 && Math.abs(u.initialPageY - Se(u.rollingPageY)) < 30) {
2819
2819
  let c = this.newGestureEvent(He.Tap, u.initialTarget);
2820
2820
  c.pageX = Se(u.rollingPageX), c.pageY = Se(u.rollingPageY), this.dispatchEvent(c);
2821
- } else if (h$1 >= Q$1.HOLD_DELAY && Math.abs(u.initialPageX - Se(u.rollingPageX)) < 30 && Math.abs(u.initialPageY - Se(u.rollingPageY)) < 30) {
2821
+ } else if (h >= Q.HOLD_DELAY && Math.abs(u.initialPageX - Se(u.rollingPageX)) < 30 && Math.abs(u.initialPageY - Se(u.rollingPageY)) < 30) {
2822
2822
  let c = this.newGestureEvent(He.Contextmenu, u.initialTarget);
2823
2823
  c.pageX = Se(u.rollingPageX), c.pageY = Se(u.rollingPageY), this.dispatchEvent(c);
2824
2824
  } else if (n === 1) {
2825
- let c = Se(u.rollingPageX), d = Se(u.rollingPageY), _$1 = Se(u.rollingTimestamps) - u.rollingTimestamps[0], p = c - u.rollingPageX[0], m = d - u.rollingPageY[0], f = [...this.targets].filter((A) => u.initialTarget instanceof Node && A.contains(u.initialTarget));
2826
- this.inertia(e, f, r, Math.abs(p) / _$1, p > 0 ? 1 : -1, c, Math.abs(m) / _$1, m > 0 ? 1 : -1, d);
2825
+ let c = Se(u.rollingPageX), d = Se(u.rollingPageY), _ = Se(u.rollingTimestamps) - u.rollingTimestamps[0], p = c - u.rollingPageX[0], m = d - u.rollingPageY[0], f = [...this.targets].filter((A) => u.initialTarget instanceof Node && A.contains(u.initialTarget));
2826
+ this.inertia(e, f, r, Math.abs(p) / _, p > 0 ? 1 : -1, c, Math.abs(m) / _, m > 0 ? 1 : -1, d);
2827
2827
  }
2828
2828
  this.dispatchEvent(this.newGestureEvent(He.End, u.initialTarget)), delete this.activeTouches[a.identifier];
2829
2829
  }
@@ -2836,38 +2836,38 @@ var Q = class Q$1 extends D {
2836
2836
  dispatchEvent(e) {
2837
2837
  if (e.type === He.Tap) {
2838
2838
  let i = (/* @__PURE__ */ new Date()).getTime(), r = 0;
2839
- i - this._lastSetTapCountTime > Q$1.CLEAR_TAP_COUNT_TIME ? r = 1 : r = 2, this._lastSetTapCountTime = i, e.tapCount = r;
2839
+ i - this._lastSetTapCountTime > Q.CLEAR_TAP_COUNT_TIME ? r = 1 : r = 2, this._lastSetTapCountTime = i, e.tapCount = r;
2840
2840
  } else (e.type === He.Change || e.type === He.Contextmenu) && (this._lastSetTapCountTime = 0);
2841
2841
  if (e.initialTarget instanceof Node) {
2842
2842
  for (let r of this.ignoreTargets) if (r.contains(e.initialTarget)) return;
2843
2843
  let i = [];
2844
2844
  for (let r of this.targets) if (r.contains(e.initialTarget)) {
2845
- let n = 0, o$1 = e.initialTarget;
2846
- for (; o$1 && o$1 !== r;) n++, o$1 = o$1.parentElement;
2845
+ let n = 0, o = e.initialTarget;
2846
+ for (; o && o !== r;) n++, o = o.parentElement;
2847
2847
  i.push([n, r]);
2848
2848
  }
2849
2849
  i.sort((r, n) => r[0] - n[0]);
2850
2850
  for (let [r, n] of i) n.dispatchEvent(e), this.dispatched = !0;
2851
2851
  }
2852
2852
  }
2853
- inertia(e, i, r, n, o$1, l, a, u, h$1) {
2853
+ inertia(e, i, r, n, o, l, a, u, h) {
2854
2854
  this.handle = mt(e, () => {
2855
- let c = Date.now(), d = c - r, _$1 = 0, p = 0, m = !0;
2856
- n += Q$1.SCROLL_FRICTION * d, a += Q$1.SCROLL_FRICTION * d, n > 0 && (m = !1, _$1 = o$1 * n * d), a > 0 && (m = !1, p = u * a * d);
2855
+ let c = Date.now(), d = c - r, _ = 0, p = 0, m = !0;
2856
+ n += Q.SCROLL_FRICTION * d, a += Q.SCROLL_FRICTION * d, n > 0 && (m = !1, _ = o * n * d), a > 0 && (m = !1, p = u * a * d);
2857
2857
  let f = this.newGestureEvent(He.Change);
2858
- f.translationX = _$1, f.translationY = p, i.forEach((A) => A.dispatchEvent(f)), m || this.inertia(e, i, c, n, o$1, l + _$1, a, u, h$1 + p);
2858
+ f.translationX = _, f.translationY = p, i.forEach((A) => A.dispatchEvent(f)), m || this.inertia(e, i, c, n, o, l + _, a, u, h + p);
2859
2859
  });
2860
2860
  }
2861
2861
  onTouchMove(e) {
2862
2862
  let i = Date.now();
2863
2863
  for (let r = 0, n = e.changedTouches.length; r < n; r++) {
2864
- let o$1 = e.changedTouches.item(r);
2865
- if (!this.activeTouches.hasOwnProperty(String(o$1.identifier))) {
2866
- console.warn("end of an UNKNOWN touch", o$1);
2864
+ let o = e.changedTouches.item(r);
2865
+ if (!this.activeTouches.hasOwnProperty(String(o.identifier))) {
2866
+ console.warn("end of an UNKNOWN touch", o);
2867
2867
  continue;
2868
2868
  }
2869
- let l = this.activeTouches[o$1.identifier], a = this.newGestureEvent(He.Change, l.initialTarget);
2870
- a.translationX = o$1.pageX - Se(l.rollingPageX), a.translationY = o$1.pageY - Se(l.rollingPageY), a.pageX = o$1.pageX, a.pageY = o$1.pageY, this.dispatchEvent(a), l.rollingPageX.length > 3 && (l.rollingPageX.shift(), l.rollingPageY.shift(), l.rollingTimestamps.shift()), l.rollingPageX.push(o$1.pageX), l.rollingPageY.push(o$1.pageY), l.rollingTimestamps.push(i);
2869
+ let l = this.activeTouches[o.identifier], a = this.newGestureEvent(He.Change, l.initialTarget);
2870
+ a.translationX = o.pageX - Se(l.rollingPageX), a.translationY = o.pageY - Se(l.rollingPageY), a.pageX = o.pageX, a.pageY = o.pageY, this.dispatchEvent(a), l.rollingPageX.length > 3 && (l.rollingPageX.shift(), l.rollingPageY.shift(), l.rollingTimestamps.shift()), l.rollingPageX.push(o.pageX), l.rollingPageY.push(o.pageY), l.rollingTimestamps.push(i);
2871
2871
  }
2872
2872
  this.dispatched && (e.preventDefault(), e.stopPropagation(), this.dispatched = !1);
2873
2873
  }
@@ -2924,10 +2924,10 @@ var Uo = 11, Or = class extends lt {
2924
2924
  }
2925
2925
  };
2926
2926
  var cs = class s {
2927
- constructor(t, e, i, r, n, o$1, l) {
2927
+ constructor(t, e, i, r, n, o, l) {
2928
2928
  this._forceIntegerValues = t;
2929
2929
  this._scrollStateBrand = void 0;
2930
- this._forceIntegerValues && (e = e | 0, i = i | 0, r = r | 0, n = n | 0, o$1 = o$1 | 0, l = l | 0), this.rawScrollLeft = r, this.rawScrollTop = l, e < 0 && (e = 0), r + e > i && (r = i - e), r < 0 && (r = 0), n < 0 && (n = 0), l + n > o$1 && (l = o$1 - n), l < 0 && (l = 0), this.width = e, this.scrollWidth = i, this.scrollLeft = r, this.height = n, this.scrollHeight = o$1, this.scrollTop = l;
2930
+ this._forceIntegerValues && (e = e | 0, i = i | 0, r = r | 0, n = n | 0, o = o | 0, l = l | 0), this.rawScrollLeft = r, this.rawScrollTop = l, e < 0 && (e = 0), r + e > i && (r = i - e), r < 0 && (r = 0), n < 0 && (n = 0), l + n > o && (l = o - n), l < 0 && (l = 0), this.width = e, this.scrollWidth = i, this.scrollLeft = r, this.height = n, this.scrollHeight = o, this.scrollTop = l;
2931
2931
  }
2932
2932
  equals(t) {
2933
2933
  return this.rawScrollLeft === t.rawScrollLeft && this.rawScrollTop === t.rawScrollTop && this.width === t.width && this.scrollWidth === t.scrollWidth && this.scrollLeft === t.scrollLeft && this.height === t.height && this.scrollHeight === t.scrollHeight && this.scrollTop === t.scrollTop;
@@ -2939,7 +2939,7 @@ var cs = class s {
2939
2939
  return new s(this._forceIntegerValues, this.width, this.scrollWidth, typeof t.scrollLeft < "u" ? t.scrollLeft : this.rawScrollLeft, this.height, this.scrollHeight, typeof t.scrollTop < "u" ? t.scrollTop : this.rawScrollTop);
2940
2940
  }
2941
2941
  createScrollEvent(t, e) {
2942
- let i = this.width !== t.width, r = this.scrollWidth !== t.scrollWidth, n = this.scrollLeft !== t.scrollLeft, o$1 = this.height !== t.height, l = this.scrollHeight !== t.scrollHeight, a = this.scrollTop !== t.scrollTop;
2942
+ let i = this.width !== t.width, r = this.scrollWidth !== t.scrollWidth, n = this.scrollLeft !== t.scrollLeft, o = this.height !== t.height, l = this.scrollHeight !== t.scrollHeight, a = this.scrollTop !== t.scrollTop;
2943
2943
  return {
2944
2944
  inSmoothScrolling: e,
2945
2945
  oldWidth: t.width,
@@ -2957,7 +2957,7 @@ var cs = class s {
2957
2957
  widthChanged: i,
2958
2958
  scrollWidthChanged: r,
2959
2959
  scrollLeftChanged: n,
2960
- heightChanged: o$1,
2960
+ heightChanged: o,
2961
2961
  scrollHeightChanged: l,
2962
2962
  scrollTopChanged: a
2963
2963
  };
@@ -3060,8 +3060,8 @@ var Nr = class s {
3060
3060
  }
3061
3061
  _initAnimation(t, e, i) {
3062
3062
  if (Math.abs(t - e) > 2.5 * i) {
3063
- let n, o$1;
3064
- return t < e ? (n = t + .75 * i, o$1 = e - .75 * i) : (n = t - .75 * i, o$1 = e + .75 * i), La(as(t, n), as(o$1, e), .33);
3063
+ let n, o;
3064
+ return t < e ? (n = t + .75 * i, o = e - .75 * i) : (n = t - .75 * i, o = e + .75 * i), La(as(t, n), as(o, e), .33);
3065
3065
  }
3066
3066
  return as(t, e);
3067
3067
  }
@@ -3186,7 +3186,7 @@ var Ca = 140, Ut = class extends lt {
3186
3186
  if (!t.target || !(t.target instanceof Element)) return;
3187
3187
  let e = this._sliderPointerPosition(t), i = this._sliderOrthogonalPointerPosition(t), r = this._scrollbarState.clone();
3188
3188
  this.slider.toggleClassName("active", !0), this._pointerMoveMonitor.startMonitoring(t.target, t.pointerId, t.buttons, (n) => {
3189
- let o$1 = this._sliderOrthogonalPointerPosition(n), l = Math.abs(o$1 - i);
3189
+ let o = this._sliderOrthogonalPointerPosition(n), l = Math.abs(o - i);
3190
3190
  if (wr && l > Ca) {
3191
3191
  this._setDesiredScrollPositionNow(r.getScrollPosition());
3192
3192
  return;
@@ -3209,8 +3209,8 @@ var Ca = 140, Ut = class extends lt {
3209
3209
  }
3210
3210
  };
3211
3211
  var Kt = class s {
3212
- constructor(t, e, i, r, n, o$1) {
3213
- this._scrollbarSize = Math.round(e), this._oppositeScrollbarSize = Math.round(i), this._arrowSize = Math.round(t), this._visibleSize = r, this._scrollSize = n, this._scrollPosition = o$1, this._computedAvailableSize = 0, this._computedIsNeeded = !1, this._computedSliderSize = 0, this._computedSliderRatio = 0, this._computedSliderPosition = 0, this._refreshComputedValues();
3212
+ constructor(t, e, i, r, n, o) {
3213
+ this._scrollbarSize = Math.round(e), this._oppositeScrollbarSize = Math.round(i), this._arrowSize = Math.round(t), this._visibleSize = r, this._scrollSize = n, this._scrollPosition = o, this._computedAvailableSize = 0, this._computedIsNeeded = !1, this._computedSliderSize = 0, this._computedSliderRatio = 0, this._computedSliderPosition = 0, this._refreshComputedValues();
3214
3214
  }
3215
3215
  clone() {
3216
3216
  return new s(this._arrowSize, this._scrollbarSize, this._oppositeScrollbarSize, this._visibleSize, this._scrollSize, this._scrollPosition);
@@ -3234,20 +3234,20 @@ var Kt = class s {
3234
3234
  this._oppositeScrollbarSize = Math.round(t);
3235
3235
  }
3236
3236
  static _computeValues(t, e, i, r, n) {
3237
- let o$1 = Math.max(0, i - t), l = Math.max(0, o$1 - 2 * e), a = r > 0 && r > i;
3237
+ let o = Math.max(0, i - t), l = Math.max(0, o - 2 * e), a = r > 0 && r > i;
3238
3238
  if (!a) return {
3239
- computedAvailableSize: Math.round(o$1),
3239
+ computedAvailableSize: Math.round(o),
3240
3240
  computedIsNeeded: a,
3241
3241
  computedSliderSize: Math.round(l),
3242
3242
  computedSliderRatio: 0,
3243
3243
  computedSliderPosition: 0
3244
3244
  };
3245
- let u = Math.round(Math.max(20, Math.floor(i * l / r))), h$1 = (l - u) / (r - i), c = n * h$1;
3245
+ let u = Math.round(Math.max(20, Math.floor(i * l / r))), h = (l - u) / (r - i), c = n * h;
3246
3246
  return {
3247
- computedAvailableSize: Math.round(o$1),
3247
+ computedAvailableSize: Math.round(o),
3248
3248
  computedIsNeeded: a,
3249
3249
  computedSliderSize: Math.round(u),
3250
- computedSliderRatio: h$1,
3250
+ computedSliderRatio: h,
3251
3251
  computedSliderPosition: Math.round(c)
3252
3252
  };
3253
3253
  }
@@ -3380,7 +3380,7 @@ var Ma = 500, Ko = 50, zo = !0, us = class {
3380
3380
  constructor(t, e, i) {
3381
3381
  this.timestamp = t, this.deltaX = e, this.deltaY = i, this.score = 0;
3382
3382
  }
3383
- }, zr = class zr$1 {
3383
+ }, zr = class zr {
3384
3384
  constructor() {
3385
3385
  this._capacity = 5, this._memory = [], this._front = -1, this._rear = -1;
3386
3386
  }
@@ -3408,8 +3408,8 @@ var Ma = 500, Ko = 50, zo = !0, us = class {
3408
3408
  if (Math.abs(t.deltaX) > 0 && Math.abs(t.deltaY) > 0) return 1;
3409
3409
  let i = .5;
3410
3410
  if ((!this._isAlmostInt(t.deltaX) || !this._isAlmostInt(t.deltaY)) && (i += .25), e) {
3411
- let r = Math.abs(t.deltaX), n = Math.abs(t.deltaY), o$1 = Math.abs(e.deltaX), l = Math.abs(e.deltaY), a = Math.max(Math.min(r, o$1), 1), u = Math.max(Math.min(n, l), 1), h$1 = Math.max(r, o$1), c = Math.max(n, l);
3412
- h$1 % a === 0 && c % u === 0 && (i -= .5);
3411
+ let r = Math.abs(t.deltaX), n = Math.abs(t.deltaY), o = Math.abs(e.deltaX), l = Math.abs(e.deltaY), a = Math.max(Math.min(r, o), 1), u = Math.max(Math.min(n, l), 1), h = Math.max(r, o), c = Math.max(n, l);
3412
+ h % a === 0 && c % u === 0 && (i -= .5);
3413
3413
  }
3414
3414
  return Math.min(Math.max(i, 0), 1);
3415
3415
  }
@@ -3425,15 +3425,15 @@ var hs = zr, ds = class extends lt {
3425
3425
  this.onScroll = this._onScroll.event;
3426
3426
  this._onWillScroll = this._register(new v());
3427
3427
  this.onWillScroll = this._onWillScroll.event;
3428
- this._options = Pa(i), this._scrollable = r, this._register(this._scrollable.onScroll((o$1) => {
3429
- this._onWillScroll.fire(o$1), this._onDidScroll(o$1), this._onScroll.fire(o$1);
3428
+ this._options = Pa(i), this._scrollable = r, this._register(this._scrollable.onScroll((o) => {
3429
+ this._onWillScroll.fire(o), this._onDidScroll(o), this._onScroll.fire(o);
3430
3430
  }));
3431
3431
  let n = {
3432
- onMouseWheel: (o$1) => this._onMouseWheel(o$1),
3432
+ onMouseWheel: (o) => this._onMouseWheel(o),
3433
3433
  onDragStart: () => this._onDragStart(),
3434
3434
  onDragEnd: () => this._onDragEnd()
3435
3435
  };
3436
- this._verticalScrollbar = this._register(new Ur(this._scrollable, this._options, n)), this._horizontalScrollbar = this._register(new Wr(this._scrollable, this._options, n)), this._domNode = document.createElement("div"), this._domNode.className = "xterm-scrollable-element " + this._options.className, this._domNode.setAttribute("role", "presentation"), this._domNode.style.position = "relative", this._domNode.appendChild(e), this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode), this._domNode.appendChild(this._verticalScrollbar.domNode.domNode), this._options.useShadows ? (this._leftShadowDomNode = _t(document.createElement("div")), this._leftShadowDomNode.setClassName("shadow"), this._domNode.appendChild(this._leftShadowDomNode.domNode), this._topShadowDomNode = _t(document.createElement("div")), this._topShadowDomNode.setClassName("shadow"), this._domNode.appendChild(this._topShadowDomNode.domNode), this._topLeftShadowDomNode = _t(document.createElement("div")), this._topLeftShadowDomNode.setClassName("shadow"), this._domNode.appendChild(this._topLeftShadowDomNode.domNode)) : (this._leftShadowDomNode = null, this._topShadowDomNode = null, this._topLeftShadowDomNode = null), this._listenOnDomNode = this._options.listenOnDomNode || this._domNode, this._mouseWheelToDispose = [], this._setListeningToMouseWheel(this._options.handleMouseWheel), this.onmouseover(this._listenOnDomNode, (o$1) => this._onMouseOver(o$1)), this.onmouseleave(this._listenOnDomNode, (o$1) => this._onMouseLeave(o$1)), this._hideTimeout = this._register(new Ye()), this._isDragging = !1, this._mouseIsOver = !1, this._shouldRender = !0, this._revealOnScroll = !0;
3436
+ this._verticalScrollbar = this._register(new Ur(this._scrollable, this._options, n)), this._horizontalScrollbar = this._register(new Wr(this._scrollable, this._options, n)), this._domNode = document.createElement("div"), this._domNode.className = "xterm-scrollable-element " + this._options.className, this._domNode.setAttribute("role", "presentation"), this._domNode.style.position = "relative", this._domNode.appendChild(e), this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode), this._domNode.appendChild(this._verticalScrollbar.domNode.domNode), this._options.useShadows ? (this._leftShadowDomNode = _t(document.createElement("div")), this._leftShadowDomNode.setClassName("shadow"), this._domNode.appendChild(this._leftShadowDomNode.domNode), this._topShadowDomNode = _t(document.createElement("div")), this._topShadowDomNode.setClassName("shadow"), this._domNode.appendChild(this._topShadowDomNode.domNode), this._topLeftShadowDomNode = _t(document.createElement("div")), this._topLeftShadowDomNode.setClassName("shadow"), this._domNode.appendChild(this._topLeftShadowDomNode.domNode)) : (this._leftShadowDomNode = null, this._topShadowDomNode = null, this._topLeftShadowDomNode = null), this._listenOnDomNode = this._options.listenOnDomNode || this._domNode, this._mouseWheelToDispose = [], this._setListeningToMouseWheel(this._options.handleMouseWheel), this.onmouseover(this._listenOnDomNode, (o) => this._onMouseOver(o)), this.onmouseleave(this._listenOnDomNode, (o) => this._onMouseLeave(o)), this._hideTimeout = this._register(new Ye()), this._isDragging = !1, this._mouseIsOver = !1, this._shouldRender = !0, this._revealOnScroll = !0;
3437
3437
  }
3438
3438
  get options() {
3439
3439
  return this._options;
@@ -3485,20 +3485,20 @@ var hs = zr, ds = class extends lt {
3485
3485
  zo && i.acceptStandardWheelEvent(e);
3486
3486
  let r = !1;
3487
3487
  if (e.deltaY || e.deltaX) {
3488
- let o$1 = e.deltaY * this._options.mouseWheelScrollSensitivity, l = e.deltaX * this._options.mouseWheelScrollSensitivity;
3489
- this._options.scrollPredominantAxis && (this._options.scrollYToX && l + o$1 === 0 ? l = o$1 = 0 : Math.abs(o$1) >= Math.abs(l) ? l = 0 : o$1 = 0), this._options.flipAxes && ([o$1, l] = [l, o$1]);
3488
+ let o = e.deltaY * this._options.mouseWheelScrollSensitivity, l = e.deltaX * this._options.mouseWheelScrollSensitivity;
3489
+ this._options.scrollPredominantAxis && (this._options.scrollYToX && l + o === 0 ? l = o = 0 : Math.abs(o) >= Math.abs(l) ? l = 0 : o = 0), this._options.flipAxes && ([o, l] = [l, o]);
3490
3490
  let a = !Te && e.browserEvent && e.browserEvent.shiftKey;
3491
- (this._options.scrollYToX || a) && !l && (l = o$1, o$1 = 0), e.browserEvent && e.browserEvent.altKey && (l = l * this._options.fastScrollSensitivity, o$1 = o$1 * this._options.fastScrollSensitivity);
3492
- let u = this._scrollable.getFutureScrollPosition(), h$1 = {};
3493
- if (o$1) {
3494
- let c = Ko * o$1, d = u.scrollTop - (c < 0 ? Math.floor(c) : Math.ceil(c));
3495
- this._verticalScrollbar.writeScrollPosition(h$1, d);
3491
+ (this._options.scrollYToX || a) && !l && (l = o, o = 0), e.browserEvent && e.browserEvent.altKey && (l = l * this._options.fastScrollSensitivity, o = o * this._options.fastScrollSensitivity);
3492
+ let u = this._scrollable.getFutureScrollPosition(), h = {};
3493
+ if (o) {
3494
+ let c = Ko * o, d = u.scrollTop - (c < 0 ? Math.floor(c) : Math.ceil(c));
3495
+ this._verticalScrollbar.writeScrollPosition(h, d);
3496
3496
  }
3497
3497
  if (l) {
3498
3498
  let c = Ko * l, d = u.scrollLeft - (c < 0 ? Math.floor(c) : Math.ceil(c));
3499
- this._horizontalScrollbar.writeScrollPosition(h$1, d);
3499
+ this._horizontalScrollbar.writeScrollPosition(h, d);
3500
3500
  }
3501
- h$1 = this._scrollable.validateScrollPosition(h$1), (u.scrollLeft !== h$1.scrollLeft || u.scrollTop !== h$1.scrollTop) && (zo && this._options.mouseWheelSmoothScroll && i.isPhysicalMouseWheel() ? this._scrollable.setScrollPositionSmooth(h$1) : this._scrollable.setScrollPositionNow(h$1), r = !0);
3501
+ h = this._scrollable.validateScrollPosition(h), (u.scrollLeft !== h.scrollLeft || u.scrollTop !== h.scrollTop) && (zo && this._options.mouseWheelSmoothScroll && i.isPhysicalMouseWheel() ? this._scrollable.setScrollPositionSmooth(h) : this._scrollable.setScrollPositionNow(h), r = !0);
3502
3502
  }
3503
3503
  let n = r;
3504
3504
  !n && this._options.alwaysConsumeMouseWheel && (n = !0), !n && this._options.consumeMouseWheelIfScrollbarIsNeeded && (this._verticalScrollbar.isNeeded() || this._horizontalScrollbar.isNeeded()) && (n = !0), n && (e.preventDefault(), e.stopPropagation());
@@ -3512,8 +3512,8 @@ var hs = zr, ds = class extends lt {
3512
3512
  }
3513
3513
  _render() {
3514
3514
  if (this._shouldRender && (this._shouldRender = !1, this._horizontalScrollbar.render(), this._verticalScrollbar.render(), this._options.useShadows)) {
3515
- let e = this._scrollable.getCurrentScrollPosition(), i = e.scrollTop > 0, r = e.scrollLeft > 0, n = r ? " left" : "", o$1 = i ? " top" : "", l = r || i ? " top-left-corner" : "";
3516
- this._leftShadowDomNode.setClassName(`shadow${n}`), this._topShadowDomNode.setClassName(`shadow${o$1}`), this._topLeftShadowDomNode.setClassName(`shadow${l}${o$1}${n}`);
3515
+ let e = this._scrollable.getCurrentScrollPosition(), i = e.scrollTop > 0, r = e.scrollLeft > 0, n = r ? " left" : "", o = i ? " top" : "", l = r || i ? " top-left-corner" : "";
3516
+ this._leftShadowDomNode.setClassName(`shadow${n}`), this._topShadowDomNode.setClassName(`shadow${o}`), this._topLeftShadowDomNode.setClassName(`shadow${l}${o}${n}`);
3517
3517
  }
3518
3518
  }
3519
3519
  _onDragStart() {
@@ -3578,7 +3578,7 @@ function Pa(s) {
3578
3578
  return t.horizontalSliderSize = typeof s.horizontalSliderSize < "u" ? s.horizontalSliderSize : t.horizontalScrollbarSize, t.verticalSliderSize = typeof s.verticalSliderSize < "u" ? s.verticalSliderSize : t.verticalScrollbarSize, Te && (t.className += " mac"), t;
3579
3579
  }
3580
3580
  var zt = class extends D {
3581
- constructor(e, i, r, n, o$1, l, a, u) {
3581
+ constructor(e, i, r, n, o, l, a, u) {
3582
3582
  super();
3583
3583
  this._bufferService = r;
3584
3584
  this._optionsService = a;
@@ -3588,24 +3588,24 @@ var zt = class extends D {
3588
3588
  this._isSyncing = !1;
3589
3589
  this._isHandlingScroll = !1;
3590
3590
  this._suppressOnScrollHandler = !1;
3591
- let h$1 = this._register(new Ri({
3591
+ let h = this._register(new Ri({
3592
3592
  forceIntegerValues: !1,
3593
3593
  smoothScrollDuration: this._optionsService.rawOptions.smoothScrollDuration,
3594
3594
  scheduleAtNextAnimationFrame: (c) => mt(n.window, c)
3595
3595
  }));
3596
3596
  this._register(this._optionsService.onSpecificOptionChange("smoothScrollDuration", () => {
3597
- h$1.setSmoothScrollDuration(this._optionsService.rawOptions.smoothScrollDuration);
3597
+ h.setSmoothScrollDuration(this._optionsService.rawOptions.smoothScrollDuration);
3598
3598
  })), this._scrollableElement = this._register(new Kr(i, {
3599
3599
  vertical: 1,
3600
3600
  horizontal: 2,
3601
3601
  useShadows: !1,
3602
3602
  mouseWheelSmoothScroll: !0,
3603
3603
  ...this._getChangeOptions()
3604
- }, h$1)), this._register(this._optionsService.onMultipleOptionChange([
3604
+ }, h)), this._register(this._optionsService.onMultipleOptionChange([
3605
3605
  "scrollSensitivity",
3606
3606
  "fastScrollSensitivity",
3607
3607
  "overviewRuler"
3608
- ], () => this._scrollableElement.updateOptions(this._getChangeOptions()))), this._register(o$1.onProtocolChange((c) => {
3608
+ ], () => this._scrollableElement.updateOptions(this._getChangeOptions()))), this._register(o.onProtocolChange((c) => {
3609
3609
  this._scrollableElement.updateOptions({ handleMouseWheel: !(c & 16) });
3610
3610
  })), this._scrollableElement.setScrollDimensions({
3611
3611
  height: 0,
@@ -3676,13 +3676,13 @@ zt = M([
3676
3676
  S(7, ce)
3677
3677
  ], zt);
3678
3678
  var Gt = class extends D {
3679
- constructor(e, i, r, n, o$1) {
3679
+ constructor(e, i, r, n, o) {
3680
3680
  super();
3681
3681
  this._screenElement = e;
3682
3682
  this._bufferService = i;
3683
3683
  this._coreBrowserService = r;
3684
3684
  this._decorationService = n;
3685
- this._renderService = o$1;
3685
+ this._renderService = o;
3686
3686
  this._decorationElements = /* @__PURE__ */ new Map();
3687
3687
  this._altBufferIsActive = !1;
3688
3688
  this._dimensionsChanged = !1;
@@ -3805,13 +3805,13 @@ var We = {
3805
3805
  center: 0,
3806
3806
  right: 0
3807
3807
  }, bt = class extends D {
3808
- constructor(e, i, r, n, o$1, l, a, u) {
3808
+ constructor(e, i, r, n, o, l, a, u) {
3809
3809
  super();
3810
3810
  this._viewportElement = e;
3811
3811
  this._screenElement = i;
3812
3812
  this._bufferService = r;
3813
3813
  this._decorationService = n;
3814
- this._renderService = o$1;
3814
+ this._renderService = o;
3815
3815
  this._optionsService = l;
3816
3816
  this._themeService = a;
3817
3817
  this._coreBrowserService = u;
@@ -3820,8 +3820,8 @@ var We = {
3820
3820
  this._shouldUpdateAnchor = !0;
3821
3821
  this._lastKnownBufferLength = 0;
3822
3822
  this._canvas = this._coreBrowserService.mainDocument.createElement("canvas"), this._canvas.classList.add("xterm-decoration-overview-ruler"), this._refreshCanvasDimensions(), this._viewportElement.parentElement?.insertBefore(this._canvas, this._viewportElement), this._register(C(() => this._canvas?.remove()));
3823
- let h$1 = this._canvas.getContext("2d");
3824
- if (h$1) this._ctx = h$1;
3823
+ let h = this._canvas.getContext("2d");
3824
+ if (h) this._ctx = h;
3825
3825
  else throw new Error("Ctx cannot be null");
3826
3826
  this._register(this._decorationService.onDecorationRegistered(() => this._queueRefresh(void 0, !0))), this._register(this._decorationService.onDecorationRemoved(() => this._queueRefresh(void 0, !0))), this._register(this._renderService.onRenderedViewportChange(() => this._queueRefresh())), this._register(this._bufferService.buffers.onBufferActivate(() => {
3827
3827
  this._canvas.style.display = this._bufferService.buffer === this._bufferService.buffers.alt ? "none" : "block";
@@ -3891,13 +3891,13 @@ var Ai;
3891
3891
  var fs;
3892
3892
  ((t) => t.ST = `${b.ESC}\\`)(fs ||= {});
3893
3893
  var $t = class {
3894
- constructor(t, e, i, r, n, o$1) {
3894
+ constructor(t, e, i, r, n, o) {
3895
3895
  this._textarea = t;
3896
3896
  this._compositionView = e;
3897
3897
  this._bufferService = i;
3898
3898
  this._optionsService = r;
3899
3899
  this._coreService = n;
3900
- this._renderService = o$1;
3900
+ this._renderService = o;
3901
3901
  this._isComposing = !1, this._isSendingComposition = !1, this._compositionPosition = {
3902
3902
  start: 0,
3903
3903
  end: 0
@@ -3957,8 +3957,8 @@ var $t = class {
3957
3957
  if (this._bufferService.buffer.isCursorInViewport) {
3958
3958
  let e = Math.min(this._bufferService.buffer.x, this._bufferService.cols - 1), i = this._renderService.dimensions.css.cell.height, r = this._bufferService.buffer.y * this._renderService.dimensions.css.cell.height, n = e * this._renderService.dimensions.css.cell.width;
3959
3959
  this._compositionView.style.left = n + "px", this._compositionView.style.top = r + "px", this._compositionView.style.height = i + "px", this._compositionView.style.lineHeight = i + "px", this._compositionView.style.fontFamily = this._optionsService.rawOptions.fontFamily, this._compositionView.style.fontSize = this._optionsService.rawOptions.fontSize + "px";
3960
- let o$1 = this._compositionView.getBoundingClientRect();
3961
- this._textarea.style.left = n + "px", this._textarea.style.top = r + "px", this._textarea.style.width = Math.max(o$1.width, 1) + "px", this._textarea.style.height = Math.max(o$1.height, 1) + "px", this._textarea.style.lineHeight = o$1.height + "px";
3960
+ let o = this._compositionView.getBoundingClientRect();
3961
+ this._textarea.style.left = n + "px", this._textarea.style.top = r + "px", this._textarea.style.width = Math.max(o.width, 1) + "px", this._textarea.style.height = Math.max(o.height, 1) + "px", this._textarea.style.lineHeight = o.height + "px";
3962
3962
  }
3963
3963
  t || setTimeout(() => this.updateCompositionElements(!0), 0);
3964
3964
  }
@@ -3975,18 +3975,18 @@ var ue = 0, he = 0, de = 0, J = 0, ps = {
3975
3975
  rgba: 0
3976
3976
  }, j;
3977
3977
  ((i) => {
3978
- function s(r, n, o$1, l) {
3979
- return l !== void 0 ? `#${vt(r)}${vt(n)}${vt(o$1)}${vt(l)}` : `#${vt(r)}${vt(n)}${vt(o$1)}`;
3978
+ function s(r, n, o, l) {
3979
+ return l !== void 0 ? `#${vt(r)}${vt(n)}${vt(o)}${vt(l)}` : `#${vt(r)}${vt(n)}${vt(o)}`;
3980
3980
  }
3981
3981
  i.toCss = s;
3982
- function t(r, n, o$1, l = 255) {
3983
- return (r << 24 | n << 16 | o$1 << 8 | l) >>> 0;
3982
+ function t(r, n, o, l = 255) {
3983
+ return (r << 24 | n << 16 | o << 8 | l) >>> 0;
3984
3984
  }
3985
3985
  i.toRgba = t;
3986
- function e(r, n, o$1, l) {
3986
+ function e(r, n, o, l) {
3987
3987
  return {
3988
- css: i.toCss(r, n, o$1, l),
3989
- rgba: i.toRgba(r, n, o$1, l)
3988
+ css: i.toCss(r, n, o, l),
3989
+ rgba: i.toRgba(r, n, o, l)
3990
3990
  };
3991
3991
  }
3992
3992
  i.toColor = e;
@@ -3998,8 +3998,8 @@ var U;
3998
3998
  css: u.css,
3999
3999
  rgba: u.rgba
4000
4000
  };
4001
- let h$1 = u.rgba >> 24 & 255, c = u.rgba >> 16 & 255, d = u.rgba >> 8 & 255, _$1 = a.rgba >> 24 & 255, p = a.rgba >> 16 & 255, m = a.rgba >> 8 & 255;
4002
- ue = _$1 + Math.round((h$1 - _$1) * J), he = p + Math.round((c - p) * J), de = m + Math.round((d - m) * J);
4001
+ let h = u.rgba >> 24 & 255, c = u.rgba >> 16 & 255, d = u.rgba >> 8 & 255, _ = a.rgba >> 24 & 255, p = a.rgba >> 16 & 255, m = a.rgba >> 8 & 255;
4002
+ ue = _ + Math.round((h - _) * J), he = p + Math.round((c - p) * J), de = m + Math.round((d - m) * J);
4003
4003
  return {
4004
4004
  css: j.toCss(ue, he, de),
4005
4005
  rgba: j.toRgba(ue, he, de)
@@ -4010,8 +4010,8 @@ var U;
4010
4010
  return (a.rgba & 255) === 255;
4011
4011
  }
4012
4012
  l.isOpaque = t;
4013
- function e(a, u, h$1) {
4014
- let c = $r.ensureContrastRatio(a.rgba, u.rgba, h$1);
4013
+ function e(a, u, h) {
4014
+ let c = $r.ensureContrastRatio(a.rgba, u.rgba, h);
4015
4015
  if (c) return j.toColor(c >> 24 & 255, c >> 16 & 255, c >> 8 & 255);
4016
4016
  }
4017
4017
  l.ensureContrastRatio = e;
@@ -4034,14 +4034,14 @@ var U;
4034
4034
  return J = a.rgba & 255, r(a, J * u / 255);
4035
4035
  }
4036
4036
  l.multiplyOpacity = n;
4037
- function o$1(a) {
4037
+ function o(a) {
4038
4038
  return [
4039
4039
  a.rgba >> 24 & 255,
4040
4040
  a.rgba >> 16 & 255,
4041
4041
  a.rgba >> 8 & 255
4042
4042
  ];
4043
4043
  }
4044
- l.toColorRGB = o$1;
4044
+ l.toColorRGB = o;
4045
4045
  })(U ||= {});
4046
4046
  var z;
4047
4047
  ((i) => {
@@ -4084,57 +4084,57 @@ var ve;
4084
4084
  }
4085
4085
  e.relativeLuminance = s;
4086
4086
  function t(i, r, n) {
4087
- let o$1 = i / 255, l = r / 255, a = n / 255, u = o$1 <= .03928 ? o$1 / 12.92 : Math.pow((o$1 + .055) / 1.055, 2.4), h$1 = l <= .03928 ? l / 12.92 : Math.pow((l + .055) / 1.055, 2.4), c = a <= .03928 ? a / 12.92 : Math.pow((a + .055) / 1.055, 2.4);
4088
- return u * .2126 + h$1 * .7152 + c * .0722;
4087
+ let o = i / 255, l = r / 255, a = n / 255, u = o <= .03928 ? o / 12.92 : Math.pow((o + .055) / 1.055, 2.4), h = l <= .03928 ? l / 12.92 : Math.pow((l + .055) / 1.055, 2.4), c = a <= .03928 ? a / 12.92 : Math.pow((a + .055) / 1.055, 2.4);
4088
+ return u * .2126 + h * .7152 + c * .0722;
4089
4089
  }
4090
4090
  e.relativeLuminance2 = t;
4091
4091
  })(ve ||= {});
4092
4092
  var $r;
4093
4093
  ((n) => {
4094
- function s(o$1, l) {
4094
+ function s(o, l) {
4095
4095
  if (J = (l & 255) / 255, J === 1) return l;
4096
- let a = l >> 24 & 255, u = l >> 16 & 255, h$1 = l >> 8 & 255, c = o$1 >> 24 & 255, d = o$1 >> 16 & 255, _$1 = o$1 >> 8 & 255;
4097
- return ue = c + Math.round((a - c) * J), he = d + Math.round((u - d) * J), de = _$1 + Math.round((h$1 - _$1) * J), j.toRgba(ue, he, de);
4096
+ let a = l >> 24 & 255, u = l >> 16 & 255, h = l >> 8 & 255, c = o >> 24 & 255, d = o >> 16 & 255, _ = o >> 8 & 255;
4097
+ return ue = c + Math.round((a - c) * J), he = d + Math.round((u - d) * J), de = _ + Math.round((h - _) * J), j.toRgba(ue, he, de);
4098
4098
  }
4099
4099
  n.blend = s;
4100
- function t(o$1, l, a) {
4101
- let u = ve.relativeLuminance(o$1 >> 8), h$1 = ve.relativeLuminance(l >> 8);
4102
- if (Xe(u, h$1) < a) {
4103
- if (h$1 < u) {
4104
- let p = e(o$1, l, a), m = Xe(u, ve.relativeLuminance(p >> 8));
4100
+ function t(o, l, a) {
4101
+ let u = ve.relativeLuminance(o >> 8), h = ve.relativeLuminance(l >> 8);
4102
+ if (Xe(u, h) < a) {
4103
+ if (h < u) {
4104
+ let p = e(o, l, a), m = Xe(u, ve.relativeLuminance(p >> 8));
4105
4105
  if (m < a) {
4106
- let f = i(o$1, l, a);
4106
+ let f = i(o, l, a);
4107
4107
  return m > Xe(u, ve.relativeLuminance(f >> 8)) ? p : f;
4108
4108
  }
4109
4109
  return p;
4110
4110
  }
4111
- let d = i(o$1, l, a), _$1 = Xe(u, ve.relativeLuminance(d >> 8));
4112
- if (_$1 < a) {
4113
- let p = e(o$1, l, a);
4114
- return _$1 > Xe(u, ve.relativeLuminance(p >> 8)) ? d : p;
4111
+ let d = i(o, l, a), _ = Xe(u, ve.relativeLuminance(d >> 8));
4112
+ if (_ < a) {
4113
+ let p = e(o, l, a);
4114
+ return _ > Xe(u, ve.relativeLuminance(p >> 8)) ? d : p;
4115
4115
  }
4116
4116
  return d;
4117
4117
  }
4118
4118
  }
4119
4119
  n.ensureContrastRatio = t;
4120
- function e(o$1, l, a) {
4121
- let u = o$1 >> 24 & 255, h$1 = o$1 >> 16 & 255, c = o$1 >> 8 & 255, d = l >> 24 & 255, _$1 = l >> 16 & 255, p = l >> 8 & 255, m = Xe(ve.relativeLuminance2(d, _$1, p), ve.relativeLuminance2(u, h$1, c));
4122
- for (; m < a && (d > 0 || _$1 > 0 || p > 0);) d -= Math.max(0, Math.ceil(d * .1)), _$1 -= Math.max(0, Math.ceil(_$1 * .1)), p -= Math.max(0, Math.ceil(p * .1)), m = Xe(ve.relativeLuminance2(d, _$1, p), ve.relativeLuminance2(u, h$1, c));
4123
- return (d << 24 | _$1 << 16 | p << 8 | 255) >>> 0;
4120
+ function e(o, l, a) {
4121
+ let u = o >> 24 & 255, h = o >> 16 & 255, c = o >> 8 & 255, d = l >> 24 & 255, _ = l >> 16 & 255, p = l >> 8 & 255, m = Xe(ve.relativeLuminance2(d, _, p), ve.relativeLuminance2(u, h, c));
4122
+ for (; m < a && (d > 0 || _ > 0 || p > 0);) d -= Math.max(0, Math.ceil(d * .1)), _ -= Math.max(0, Math.ceil(_ * .1)), p -= Math.max(0, Math.ceil(p * .1)), m = Xe(ve.relativeLuminance2(d, _, p), ve.relativeLuminance2(u, h, c));
4123
+ return (d << 24 | _ << 16 | p << 8 | 255) >>> 0;
4124
4124
  }
4125
4125
  n.reduceLuminance = e;
4126
- function i(o$1, l, a) {
4127
- let u = o$1 >> 24 & 255, h$1 = o$1 >> 16 & 255, c = o$1 >> 8 & 255, d = l >> 24 & 255, _$1 = l >> 16 & 255, p = l >> 8 & 255, m = Xe(ve.relativeLuminance2(d, _$1, p), ve.relativeLuminance2(u, h$1, c));
4128
- for (; m < a && (d < 255 || _$1 < 255 || p < 255);) d = Math.min(255, d + Math.ceil((255 - d) * .1)), _$1 = Math.min(255, _$1 + Math.ceil((255 - _$1) * .1)), p = Math.min(255, p + Math.ceil((255 - p) * .1)), m = Xe(ve.relativeLuminance2(d, _$1, p), ve.relativeLuminance2(u, h$1, c));
4129
- return (d << 24 | _$1 << 16 | p << 8 | 255) >>> 0;
4126
+ function i(o, l, a) {
4127
+ let u = o >> 24 & 255, h = o >> 16 & 255, c = o >> 8 & 255, d = l >> 24 & 255, _ = l >> 16 & 255, p = l >> 8 & 255, m = Xe(ve.relativeLuminance2(d, _, p), ve.relativeLuminance2(u, h, c));
4128
+ for (; m < a && (d < 255 || _ < 255 || p < 255);) d = Math.min(255, d + Math.ceil((255 - d) * .1)), _ = Math.min(255, _ + Math.ceil((255 - _) * .1)), p = Math.min(255, p + Math.ceil((255 - p) * .1)), m = Xe(ve.relativeLuminance2(d, _, p), ve.relativeLuminance2(u, h, c));
4129
+ return (d << 24 | _ << 16 | p << 8 | 255) >>> 0;
4130
4130
  }
4131
4131
  n.increaseLuminance = i;
4132
- function r(o$1) {
4132
+ function r(o) {
4133
4133
  return [
4134
- o$1 >> 24 & 255,
4135
- o$1 >> 16 & 255,
4136
- o$1 >> 8 & 255,
4137
- o$1 & 255
4134
+ o >> 24 & 255,
4135
+ o >> 16 & 255,
4136
+ o >> 8 & 255,
4137
+ o & 255
4138
4138
  ];
4139
4139
  }
4140
4140
  n.toChannels = r;
@@ -4198,49 +4198,49 @@ var Vr = class extends De {
4198
4198
  if (this._characterJoiners.length === 0) return [];
4199
4199
  let e = this._bufferService.buffer.lines.get(t);
4200
4200
  if (!e || e.length === 0) return [];
4201
- let i = [], r = e.translateToString(!0), n = 0, o$1 = 0, l = 0, a = e.getFg(0), u = e.getBg(0);
4202
- for (let h$1 = 0; h$1 < e.getTrimmedLength(); h$1++) if (e.loadCell(h$1, this._workCell), this._workCell.getWidth() !== 0) {
4201
+ let i = [], r = e.translateToString(!0), n = 0, o = 0, l = 0, a = e.getFg(0), u = e.getBg(0);
4202
+ for (let h = 0; h < e.getTrimmedLength(); h++) if (e.loadCell(h, this._workCell), this._workCell.getWidth() !== 0) {
4203
4203
  if (this._workCell.fg !== a || this._workCell.bg !== u) {
4204
- if (h$1 - n > 1) {
4205
- let c = this._getJoinedRanges(r, l, o$1, e, n);
4204
+ if (h - n > 1) {
4205
+ let c = this._getJoinedRanges(r, l, o, e, n);
4206
4206
  for (let d = 0; d < c.length; d++) i.push(c[d]);
4207
4207
  }
4208
- n = h$1, l = o$1, a = this._workCell.fg, u = this._workCell.bg;
4208
+ n = h, l = o, a = this._workCell.fg, u = this._workCell.bg;
4209
4209
  }
4210
- o$1 += this._workCell.getChars().length || we.length;
4210
+ o += this._workCell.getChars().length || we.length;
4211
4211
  }
4212
4212
  if (this._bufferService.cols - n > 1) {
4213
- let h$1 = this._getJoinedRanges(r, l, o$1, e, n);
4214
- for (let c = 0; c < h$1.length; c++) i.push(h$1[c]);
4213
+ let h = this._getJoinedRanges(r, l, o, e, n);
4214
+ for (let c = 0; c < h.length; c++) i.push(h[c]);
4215
4215
  }
4216
4216
  return i;
4217
4217
  }
4218
4218
  _getJoinedRanges(t, e, i, r, n) {
4219
- let o$1 = t.substring(e, i), l = [];
4219
+ let o = t.substring(e, i), l = [];
4220
4220
  try {
4221
- l = this._characterJoiners[0].handler(o$1);
4221
+ l = this._characterJoiners[0].handler(o);
4222
4222
  } catch (a) {
4223
4223
  console.error(a);
4224
4224
  }
4225
4225
  for (let a = 1; a < this._characterJoiners.length; a++) try {
4226
- let u = this._characterJoiners[a].handler(o$1);
4227
- for (let h$1 = 0; h$1 < u.length; h$1++) ct._mergeRanges(l, u[h$1]);
4226
+ let u = this._characterJoiners[a].handler(o);
4227
+ for (let h = 0; h < u.length; h++) ct._mergeRanges(l, u[h]);
4228
4228
  } catch (u) {
4229
4229
  console.error(u);
4230
4230
  }
4231
4231
  return this._stringRangesToCellRanges(l, r, n), l;
4232
4232
  }
4233
4233
  _stringRangesToCellRanges(t, e, i) {
4234
- let r = 0, n = !1, o$1 = 0, l = t[r];
4234
+ let r = 0, n = !1, o = 0, l = t[r];
4235
4235
  if (l) {
4236
4236
  for (let a = i; a < this._bufferService.cols; a++) {
4237
- let u = e.getWidth(a), h$1 = e.getString(a).length || we.length;
4237
+ let u = e.getWidth(a), h = e.getString(a).length || we.length;
4238
4238
  if (u !== 0) {
4239
- if (!n && l[0] <= o$1 && (l[0] = a, n = !0), l[1] <= o$1) {
4239
+ if (!n && l[0] <= o && (l[0] = a, n = !0), l[1] <= o) {
4240
4240
  if (l[1] = a, l = t[++r], !l) break;
4241
- l[0] <= o$1 ? (l[0] = a, n = !0) : n = !1;
4241
+ l[0] <= o ? (l[0] = a, n = !0) : n = !1;
4242
4242
  }
4243
- o$1 += h$1;
4243
+ o += h;
4244
4244
  }
4245
4245
  }
4246
4246
  l && (l[1] = this._bufferService.cols);
@@ -4299,13 +4299,13 @@ function qr() {
4299
4299
  };
4300
4300
  }
4301
4301
  var Vt = class {
4302
- constructor(t, e, i, r, n, o$1, l) {
4302
+ constructor(t, e, i, r, n, o, l) {
4303
4303
  this._document = t;
4304
4304
  this._characterJoinerService = e;
4305
4305
  this._optionsService = i;
4306
4306
  this._coreBrowserService = r;
4307
4307
  this._coreService = n;
4308
- this._decorationService = o$1;
4308
+ this._decorationService = o;
4309
4309
  this._themeService = l;
4310
4310
  this._workCell = new q();
4311
4311
  this._columnSelectMode = !1;
@@ -4314,21 +4314,21 @@ var Vt = class {
4314
4314
  handleSelectionChanged(t, e, i) {
4315
4315
  this._selectionStart = t, this._selectionEnd = e, this._columnSelectMode = i;
4316
4316
  }
4317
- createRow(t, e, i, r, n, o$1, l, a, u, h$1, c) {
4318
- let d = [], _$1 = this._characterJoinerService.getJoinedCharacters(e), p = this._themeService.colors, m = t.getNoBgTrimmedLength();
4319
- i && m < o$1 + 1 && (m = o$1 + 1);
4320
- let f, A = 0, R = "", O = 0, I = 0, k = 0, P = 0, oe = !1, Me = 0, Pe = !1, Ke = 0, di = 0, V = [], Qe = h$1 !== -1 && c !== -1;
4317
+ createRow(t, e, i, r, n, o, l, a, u, h, c) {
4318
+ let d = [], _ = this._characterJoinerService.getJoinedCharacters(e), p = this._themeService.colors, m = t.getNoBgTrimmedLength();
4319
+ i && m < o + 1 && (m = o + 1);
4320
+ let f, A = 0, R = "", O = 0, I = 0, k = 0, P = 0, oe = !1, Me = 0, Pe = !1, Ke = 0, di = 0, V = [], Qe = h !== -1 && c !== -1;
4321
4321
  for (let y = 0; y < m; y++) {
4322
4322
  t.loadCell(y, this._workCell);
4323
4323
  let T = this._workCell.getWidth();
4324
4324
  if (T === 0) continue;
4325
4325
  let g = !1, w = y >= di, E = y, x = this._workCell;
4326
- if (_$1.length > 0 && y === _$1[0][0] && w) {
4327
- let W = _$1.shift(), An = this._isCellInSelection(W[0], e);
4326
+ if (_.length > 0 && y === _[0][0] && w) {
4327
+ let W = _.shift(), An = this._isCellInSelection(W[0], e);
4328
4328
  for (O = W[0] + 1; O < W[1]; O++) w &&= An === this._isCellInSelection(O, e);
4329
- w &&= !i || o$1 < W[0] || o$1 >= W[1], w ? (g = !0, x = new Vr(this._workCell, t.translateToString(!0, W[0], W[1]), W[1] - W[0]), E = W[1] - 1, T = x.getWidth()) : di = W[1];
4329
+ w &&= !i || o < W[0] || o >= W[1], w ? (g = !0, x = new Vr(this._workCell, t.translateToString(!0, W[0], W[1]), W[1] - W[0]), E = W[1] - 1, T = x.getWidth()) : di = W[1];
4330
4330
  }
4331
- let N = this._isCellInSelection(y, e), Z = i && y === o$1, te = Qe && y >= h$1 && y <= c, Oe = !1;
4331
+ let N = this._isCellInSelection(y, e), Z = i && y === o, te = Qe && y >= h && y <= c, Oe = !1;
4332
4332
  this._decorationService.forEachDecorationAtCell(y, e, void 0, (W) => {
4333
4333
  Oe = !0;
4334
4334
  });
@@ -4338,7 +4338,7 @@ var Vt = class {
4338
4338
  x.isInvisible() ? R += we : R += ze, A++;
4339
4339
  continue;
4340
4340
  } else A && (f.textContent = R), f = this._document.createElement("span"), A = 0, R = "";
4341
- if (I = x.bg, k = x.fg, P = x.extended.ext, oe = te, Me = Ke, Pe = N, g && o$1 >= y && o$1 <= E && (o$1 = y), !this._coreService.isCursorHidden && Z && this._coreService.isCursorInitialized) {
4341
+ if (I = x.bg, k = x.fg, P = x.extended.ext, oe = te, Me = Ke, Pe = N, g && o >= y && o <= E && (o = y), !this._coreService.isCursorHidden && Z && this._coreService.isCursorInitialized) {
4342
4342
  if (V.push("xterm-cursor"), this._coreBrowserService.isFocused) l && V.push("xterm-cursor-blink"), V.push(r === "bar" ? "xterm-cursor-bar" : r === "underline" ? "xterm-cursor-underline" : "xterm-cursor-block");
4343
4343
  else if (n) switch (n) {
4344
4344
  case "outline":
@@ -4382,7 +4382,6 @@ var Vt = class {
4382
4382
  case 50331648:
4383
4383
  it = j.toColor(me >> 16, me >> 8 & 255, me & 255), this._addStyle(f, `background-color:#${qo((me >>> 0).toString(16), "0", 6)}`);
4384
4384
  break;
4385
- case 0:
4386
4385
  default: fi ? (it = p.foreground, V.push(`xterm-bg-257`)) : it = p.background;
4387
4386
  }
4388
4387
  switch (tt || x.isDim() && (tt = U.multiplyOpacity(it, .5)), et) {
@@ -4394,19 +4393,18 @@ var Vt = class {
4394
4393
  let W = j.toColor(le >> 16 & 255, le >> 8 & 255, le & 255);
4395
4394
  this._applyMinimumContrast(f, it, W, x, tt, Qi) || this._addStyle(f, `color:#${qo(le.toString(16), "0", 6)}`);
4396
4395
  break;
4397
- case 0:
4398
4396
  default: this._applyMinimumContrast(f, it, p.foreground, x, tt, Qi) || fi && V.push(`xterm-fg-257`);
4399
4397
  }
4400
4398
  V.length && (f.className = V.join(" "), V.length = 0), !Z && !g && !Oe && w ? A++ : f.textContent = R, Ke !== this.defaultSpacing && (f.style.letterSpacing = `${Ke}px`), d.push(f), y = E;
4401
4399
  }
4402
4400
  return f && A && (f.textContent = R), d;
4403
4401
  }
4404
- _applyMinimumContrast(t, e, i, r, n, o$1) {
4402
+ _applyMinimumContrast(t, e, i, r, n, o) {
4405
4403
  if (this._optionsService.rawOptions.minimumContrastRatio === 1 || $o(r.getCode())) return !1;
4406
4404
  let l = this._getContrastCache(r), a;
4407
- if (!n && !o$1 && (a = l.getColor(e.rgba, i.rgba)), a === void 0) {
4405
+ if (!n && !o && (a = l.getColor(e.rgba, i.rgba)), a === void 0) {
4408
4406
  let u = this._optionsService.rawOptions.minimumContrastRatio / (r.isDim() ? 2 : 1);
4409
- a = U.ensureContrastRatio(n || e, o$1 || i, u), l.setColor((n || e).rgba, (o$1 || i).rgba, a ?? null);
4407
+ a = U.ensureContrastRatio(n || e, o || i, u), l.setColor((n || e).rgba, (o || i).rgba, a ?? null);
4410
4408
  }
4411
4409
  return a ? (this._addStyle(t, `color:${a.css}`), !0) : !1;
4412
4410
  }
@@ -4448,13 +4446,13 @@ var Yr = class {
4448
4446
  r.classList.add("xterm-char-measure-element"), r.style.fontWeight = "bold";
4449
4447
  let n = t.createElement("span");
4450
4448
  n.classList.add("xterm-char-measure-element"), n.style.fontStyle = "italic";
4451
- let o$1 = t.createElement("span");
4452
- o$1.classList.add("xterm-char-measure-element"), o$1.style.fontWeight = "bold", o$1.style.fontStyle = "italic", this._measureElements = [
4449
+ let o = t.createElement("span");
4450
+ o.classList.add("xterm-char-measure-element"), o.style.fontWeight = "bold", o.style.fontStyle = "italic", this._measureElements = [
4453
4451
  i,
4454
4452
  r,
4455
4453
  n,
4456
- o$1
4457
- ], this._container.appendChild(i), this._container.appendChild(r), this._container.appendChild(n), this._container.appendChild(o$1), e.appendChild(this._container), this.clear();
4454
+ o
4455
+ ], this._container.appendChild(i), this._container.appendChild(r), this._container.appendChild(n), this._container.appendChild(o), e.appendChild(this._container), this.clear();
4458
4456
  }
4459
4457
  dispose() {
4460
4458
  this._container.remove(), this._measureElements.length = 0, this._holey = void 0;
@@ -4474,12 +4472,12 @@ var Yr = class {
4474
4472
  }
4475
4473
  let n = t;
4476
4474
  e && (n += "B"), i && (n += "I");
4477
- let o$1 = this._holey.get(n);
4478
- if (o$1 === void 0) {
4475
+ let o = this._holey.get(n);
4476
+ if (o === void 0) {
4479
4477
  let l = 0;
4480
- e && (l |= 1), i && (l |= 2), o$1 = this._measure(t, l), o$1 > 0 && this._holey.set(n, o$1);
4478
+ e && (l |= 1), i && (l |= 2), o = this._measure(t, l), o > 0 && this._holey.set(n, o);
4481
4479
  }
4482
- return o$1;
4480
+ return o;
4483
4481
  }
4484
4482
  _measure(t, e) {
4485
4483
  let i = this._measureElements[e];
@@ -4498,12 +4496,12 @@ var ms = class {
4498
4496
  this.clear();
4499
4497
  return;
4500
4498
  }
4501
- let n = t.buffers.active.ydisp, o$1 = e[1] - n, l = i[1] - n, a = Math.max(o$1, 0), u = Math.min(l, t.rows - 1);
4499
+ let n = t.buffers.active.ydisp, o = e[1] - n, l = i[1] - n, a = Math.max(o, 0), u = Math.min(l, t.rows - 1);
4502
4500
  if (a >= t.rows || u < 0) {
4503
4501
  this.clear();
4504
4502
  return;
4505
4503
  }
4506
- this.hasSelection = !0, this.columnSelectMode = r, this.viewportStartRow = o$1, this.viewportEndRow = l, this.viewportCappedStartRow = a, this.viewportCappedEndRow = u, this.startCol = e[0], this.endCol = i[0];
4504
+ this.hasSelection = !0, this.columnSelectMode = r, this.viewportStartRow = o, this.viewportEndRow = l, this.viewportCappedStartRow = a, this.viewportCappedEndRow = u, this.startCol = e[0], this.endCol = i[0];
4507
4505
  }
4508
4506
  isCellSelected(t, e, i) {
4509
4507
  return this.hasSelection ? (i -= t.buffer.active.viewportY, this.columnSelectMode ? this.startCol <= this.endCol ? e >= this.startCol && i >= this.viewportCappedStartRow && e < this.endCol && i <= this.viewportCappedEndRow : e < this.startCol && i >= this.viewportCappedStartRow && e >= this.endCol && i <= this.viewportCappedEndRow : i > this.viewportStartRow && i < this.viewportEndRow || this.viewportStartRow === this.viewportEndRow && i === this.viewportStartRow && e >= this.startCol && e < this.endCol || this.viewportStartRow < this.viewportEndRow && i === this.viewportEndRow && e < this.endCol || this.viewportStartRow < this.viewportEndRow && i === this.viewportStartRow && e >= this.startCol) : !1;
@@ -4513,19 +4511,19 @@ function Yo() {
4513
4511
  return new ms();
4514
4512
  }
4515
4513
  var _s = "xterm-dom-renderer-owner-", Le = "xterm-rows", jr = "xterm-fg-", jo = "xterm-bg-", ki = "xterm-focus", Xr = "xterm-selection", Na = 1, Yt = class extends D {
4516
- constructor(e, i, r, n, o$1, l, a, u, h$1, c, d, _$1, p, m) {
4514
+ constructor(e, i, r, n, o, l, a, u, h, c, d, _, p, m) {
4517
4515
  super();
4518
4516
  this._terminal = e;
4519
4517
  this._document = i;
4520
4518
  this._element = r;
4521
4519
  this._screenElement = n;
4522
- this._viewportElement = o$1;
4520
+ this._viewportElement = o;
4523
4521
  this._helperContainer = l;
4524
4522
  this._linkifier2 = a;
4525
- this._charSizeService = h$1;
4523
+ this._charSizeService = h;
4526
4524
  this._optionsService = c;
4527
4525
  this._bufferService = d;
4528
- this._coreService = _$1;
4526
+ this._coreService = _;
4529
4527
  this._coreBrowserService = p;
4530
4528
  this._themeService = m;
4531
4529
  this._terminalClass = Na++;
@@ -4548,8 +4546,8 @@ var _s = "xterm-dom-renderer-owner-", Le = "xterm-rows", jr = "xterm-fg-", jo =
4548
4546
  this._themeStyleElement || (this._themeStyleElement = this._document.createElement("style"), this._screenElement.appendChild(this._themeStyleElement));
4549
4547
  let i = `${this._terminalSelector} .${Le} { pointer-events: none; color: ${e.foreground.css}; font-family: ${this._optionsService.rawOptions.fontFamily}; font-size: ${this._optionsService.rawOptions.fontSize}px; font-kerning: none; white-space: pre}`;
4550
4548
  i += `${this._terminalSelector} .${Le} .xterm-dim { color: ${U.multiplyOpacity(e.foreground, .5).css};}`, i += `${this._terminalSelector} span:not(.xterm-bold) { font-weight: ${this._optionsService.rawOptions.fontWeight};}${this._terminalSelector} span.xterm-bold { font-weight: ${this._optionsService.rawOptions.fontWeightBold};}${this._terminalSelector} span.xterm-italic { font-style: italic;}`;
4551
- let r = `blink_underline_${this._terminalClass}`, n = `blink_bar_${this._terminalClass}`, o$1 = `blink_block_${this._terminalClass}`;
4552
- i += `@keyframes ${r} { 50% { border-bottom-style: hidden; }}`, i += `@keyframes ${n} { 50% { box-shadow: none; }}`, i += `@keyframes ${o$1} { 0% { background-color: ${e.cursor.css}; color: ${e.cursorAccent.css}; } 50% { background-color: inherit; color: ${e.cursor.css}; }}`, i += `${this._terminalSelector} .${Le}.${ki} .xterm-cursor.xterm-cursor-blink.xterm-cursor-underline { animation: ${r} 1s step-end infinite;}${this._terminalSelector} .${Le}.${ki} .xterm-cursor.xterm-cursor-blink.xterm-cursor-bar { animation: ${n} 1s step-end infinite;}${this._terminalSelector} .${Le}.${ki} .xterm-cursor.xterm-cursor-blink.xterm-cursor-block { animation: ${o$1} 1s step-end infinite;}${this._terminalSelector} .${Le} .xterm-cursor.xterm-cursor-block { background-color: ${e.cursor.css}; color: ${e.cursorAccent.css};}${this._terminalSelector} .${Le} .xterm-cursor.xterm-cursor-block:not(.xterm-cursor-blink) { background-color: ${e.cursor.css} !important; color: ${e.cursorAccent.css} !important;}${this._terminalSelector} .${Le} .xterm-cursor.xterm-cursor-outline { outline: 1px solid ${e.cursor.css}; outline-offset: -1px;}${this._terminalSelector} .${Le} .xterm-cursor.xterm-cursor-bar { box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${e.cursor.css} inset;}${this._terminalSelector} .${Le} .xterm-cursor.xterm-cursor-underline { border-bottom: 1px ${e.cursor.css}; border-bottom-style: solid; height: calc(100% - 1px);}`, i += `${this._terminalSelector} .${Xr} { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .${Xr} div { position: absolute; background-color: ${e.selectionBackgroundOpaque.css};}${this._terminalSelector} .${Xr} div { position: absolute; background-color: ${e.selectionInactiveBackgroundOpaque.css};}`;
4549
+ let r = `blink_underline_${this._terminalClass}`, n = `blink_bar_${this._terminalClass}`, o = `blink_block_${this._terminalClass}`;
4550
+ i += `@keyframes ${r} { 50% { border-bottom-style: hidden; }}`, i += `@keyframes ${n} { 50% { box-shadow: none; }}`, i += `@keyframes ${o} { 0% { background-color: ${e.cursor.css}; color: ${e.cursorAccent.css}; } 50% { background-color: inherit; color: ${e.cursor.css}; }}`, i += `${this._terminalSelector} .${Le}.${ki} .xterm-cursor.xterm-cursor-blink.xterm-cursor-underline { animation: ${r} 1s step-end infinite;}${this._terminalSelector} .${Le}.${ki} .xterm-cursor.xterm-cursor-blink.xterm-cursor-bar { animation: ${n} 1s step-end infinite;}${this._terminalSelector} .${Le}.${ki} .xterm-cursor.xterm-cursor-blink.xterm-cursor-block { animation: ${o} 1s step-end infinite;}${this._terminalSelector} .${Le} .xterm-cursor.xterm-cursor-block { background-color: ${e.cursor.css}; color: ${e.cursorAccent.css};}${this._terminalSelector} .${Le} .xterm-cursor.xterm-cursor-block:not(.xterm-cursor-blink) { background-color: ${e.cursor.css} !important; color: ${e.cursorAccent.css} !important;}${this._terminalSelector} .${Le} .xterm-cursor.xterm-cursor-outline { outline: 1px solid ${e.cursor.css}; outline-offset: -1px;}${this._terminalSelector} .${Le} .xterm-cursor.xterm-cursor-bar { box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${e.cursor.css} inset;}${this._terminalSelector} .${Le} .xterm-cursor.xterm-cursor-underline { border-bottom: 1px ${e.cursor.css}; border-bottom-style: solid; height: calc(100% - 1px);}`, i += `${this._terminalSelector} .${Xr} { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .${Xr} div { position: absolute; background-color: ${e.selectionBackgroundOpaque.css};}${this._terminalSelector} .${Xr} div { position: absolute; background-color: ${e.selectionInactiveBackgroundOpaque.css};}`;
4553
4551
  for (let [l, a] of e.ansi.entries()) i += `${this._terminalSelector} .${jr}${l} { color: ${a.css}; }${this._terminalSelector} .${jr}${l}.xterm-dim { color: ${U.multiplyOpacity(a, .5).css}; }${this._terminalSelector} .${jo}${l} { background-color: ${a.css}; }`;
4554
4552
  i += `${this._terminalSelector} .${jr}257 { color: ${U.opaque(e.background).css}; }${this._terminalSelector} .${jr}257.xterm-dim { color: ${U.multiplyOpacity(U.opaque(e.background), .5).css}; }${this._terminalSelector} .${jo}257 { background-color: ${e.foreground.css}; }`, this._themeStyleElement.textContent = i;
4555
4553
  }
@@ -4581,24 +4579,24 @@ var _s = "xterm-dom-renderer-owner-", Le = "xterm-rows", jr = "xterm-fg-", jo =
4581
4579
  }
4582
4580
  handleSelectionChanged(e, i, r) {
4583
4581
  if (this._selectionContainer.replaceChildren(), this._rowFactory.handleSelectionChanged(e, i, r), this.renderRows(0, this._bufferService.rows - 1), !e || !i || (this._selectionRenderModel.update(this._terminal, e, i, r), !this._selectionRenderModel.hasSelection)) return;
4584
- let n = this._selectionRenderModel.viewportStartRow, o$1 = this._selectionRenderModel.viewportEndRow, l = this._selectionRenderModel.viewportCappedStartRow, a = this._selectionRenderModel.viewportCappedEndRow, u = this._document.createDocumentFragment();
4582
+ let n = this._selectionRenderModel.viewportStartRow, o = this._selectionRenderModel.viewportEndRow, l = this._selectionRenderModel.viewportCappedStartRow, a = this._selectionRenderModel.viewportCappedEndRow, u = this._document.createDocumentFragment();
4585
4583
  if (r) {
4586
- let h$1 = e[0] > i[0];
4587
- u.appendChild(this._createSelectionElement(l, h$1 ? i[0] : e[0], h$1 ? e[0] : i[0], a - l + 1));
4584
+ let h = e[0] > i[0];
4585
+ u.appendChild(this._createSelectionElement(l, h ? i[0] : e[0], h ? e[0] : i[0], a - l + 1));
4588
4586
  } else {
4589
- let h$1 = n === l ? e[0] : 0, c = l === o$1 ? i[0] : this._bufferService.cols;
4590
- u.appendChild(this._createSelectionElement(l, h$1, c));
4587
+ let h = n === l ? e[0] : 0, c = l === o ? i[0] : this._bufferService.cols;
4588
+ u.appendChild(this._createSelectionElement(l, h, c));
4591
4589
  let d = a - l - 1;
4592
4590
  if (u.appendChild(this._createSelectionElement(l + 1, 0, this._bufferService.cols, d)), l !== a) {
4593
- let _$1 = o$1 === a ? i[0] : this._bufferService.cols;
4594
- u.appendChild(this._createSelectionElement(a, 0, _$1));
4591
+ let _ = o === a ? i[0] : this._bufferService.cols;
4592
+ u.appendChild(this._createSelectionElement(a, 0, _));
4595
4593
  }
4596
4594
  }
4597
4595
  this._selectionContainer.appendChild(u);
4598
4596
  }
4599
4597
  _createSelectionElement(e, i, r, n = 1) {
4600
- let o$1 = this._document.createElement("div"), l = i * this.dimensions.css.cell.width, a = this.dimensions.css.cell.width * (r - i);
4601
- return l + a > this.dimensions.css.canvas.width && (a = this.dimensions.css.canvas.width - l), o$1.style.height = `${n * this.dimensions.css.cell.height}px`, o$1.style.top = `${e * this.dimensions.css.cell.height}px`, o$1.style.left = `${l}px`, o$1.style.width = `${a}px`, o$1;
4598
+ let o = this._document.createElement("div"), l = i * this.dimensions.css.cell.width, a = this.dimensions.css.cell.width * (r - i);
4599
+ return l + a > this.dimensions.css.canvas.width && (a = this.dimensions.css.canvas.width - l), o.style.height = `${n * this.dimensions.css.cell.height}px`, o.style.top = `${e * this.dimensions.css.cell.height}px`, o.style.left = `${l}px`, o.style.width = `${a}px`, o;
4602
4600
  }
4603
4601
  handleCursorMove() {}
4604
4602
  _handleOptionsChanged() {
@@ -4608,11 +4606,11 @@ var _s = "xterm-dom-renderer-owner-", Le = "xterm-rows", jr = "xterm-fg-", jo =
4608
4606
  for (let e of this._rowElements) e.replaceChildren();
4609
4607
  }
4610
4608
  renderRows(e, i) {
4611
- let r = this._bufferService.buffer, n = r.ybase + r.y, o$1 = Math.min(r.x, this._bufferService.cols - 1), l = this._coreService.decPrivateModes.cursorBlink ?? this._optionsService.rawOptions.cursorBlink, a = this._coreService.decPrivateModes.cursorStyle ?? this._optionsService.rawOptions.cursorStyle, u = this._optionsService.rawOptions.cursorInactiveStyle;
4612
- for (let h$1 = e; h$1 <= i; h$1++) {
4613
- let c = h$1 + r.ydisp, d = this._rowElements[h$1], _$1 = r.lines.get(c);
4614
- if (!d || !_$1) break;
4615
- d.replaceChildren(...this._rowFactory.createRow(_$1, c, c === n, a, u, o$1, l, this.dimensions.css.cell.width, this._widthCache, -1, -1));
4609
+ let r = this._bufferService.buffer, n = r.ybase + r.y, o = Math.min(r.x, this._bufferService.cols - 1), l = this._coreService.decPrivateModes.cursorBlink ?? this._optionsService.rawOptions.cursorBlink, a = this._coreService.decPrivateModes.cursorStyle ?? this._optionsService.rawOptions.cursorStyle, u = this._optionsService.rawOptions.cursorInactiveStyle;
4610
+ for (let h = e; h <= i; h++) {
4611
+ let c = h + r.ydisp, d = this._rowElements[h], _ = r.lines.get(c);
4612
+ if (!d || !_) break;
4613
+ d.replaceChildren(...this._rowFactory.createRow(_, c, c === n, a, u, o, l, this.dimensions.css.cell.width, this._widthCache, -1, -1));
4616
4614
  }
4617
4615
  }
4618
4616
  get _terminalSelector() {
@@ -4624,15 +4622,15 @@ var _s = "xterm-dom-renderer-owner-", Le = "xterm-rows", jr = "xterm-fg-", jo =
4624
4622
  _handleLinkLeave(e) {
4625
4623
  this._setCellUnderline(e.x1, e.x2, e.y1, e.y2, e.cols, !1);
4626
4624
  }
4627
- _setCellUnderline(e, i, r, n, o$1, l) {
4625
+ _setCellUnderline(e, i, r, n, o, l) {
4628
4626
  r < 0 && (e = 0), n < 0 && (i = 0);
4629
4627
  let a = this._bufferService.rows - 1;
4630
- r = Math.max(Math.min(r, a), 0), n = Math.max(Math.min(n, a), 0), o$1 = Math.min(o$1, this._bufferService.cols);
4631
- let u = this._bufferService.buffer, h$1 = u.ybase + u.y, c = Math.min(u.x, o$1 - 1), d = this._optionsService.rawOptions.cursorBlink, _$1 = this._optionsService.rawOptions.cursorStyle, p = this._optionsService.rawOptions.cursorInactiveStyle;
4628
+ r = Math.max(Math.min(r, a), 0), n = Math.max(Math.min(n, a), 0), o = Math.min(o, this._bufferService.cols);
4629
+ let u = this._bufferService.buffer, h = u.ybase + u.y, c = Math.min(u.x, o - 1), d = this._optionsService.rawOptions.cursorBlink, _ = this._optionsService.rawOptions.cursorStyle, p = this._optionsService.rawOptions.cursorInactiveStyle;
4632
4630
  for (let m = r; m <= n; ++m) {
4633
4631
  let f = m + u.ydisp, A = this._rowElements[m], R = u.lines.get(f);
4634
4632
  if (!A || !R) break;
4635
- A.replaceChildren(...this._rowFactory.createRow(R, f, f === h$1, _$1, p, c, d, this.dimensions.css.cell.width, this._widthCache, l ? m === r ? e : 0 : -1, l ? (m === n ? i : o$1) - 1 : -1));
4633
+ A.replaceChildren(...this._rowFactory.createRow(R, f, f === h, _, p, c, d, this.dimensions.css.cell.width, this._widthCache, l ? m === r ? e : 0 : -1, l ? (m === n ? i : o) - 1 : -1));
4636
4634
  }
4637
4635
  }
4638
4636
  };
@@ -4771,13 +4769,13 @@ var Qr = class extends D {
4771
4769
  }
4772
4770
  };
4773
4771
  function Ci(s, t, e) {
4774
- let i = e.getBoundingClientRect(), r = s.getComputedStyle(e), n = parseInt(r.getPropertyValue("padding-left")), o$1 = parseInt(r.getPropertyValue("padding-top"));
4775
- return [t.clientX - i.left - n, t.clientY - i.top - o$1];
4772
+ let i = e.getBoundingClientRect(), r = s.getComputedStyle(e), n = parseInt(r.getPropertyValue("padding-left")), o = parseInt(r.getPropertyValue("padding-top"));
4773
+ return [t.clientX - i.left - n, t.clientY - i.top - o];
4776
4774
  }
4777
- function Xo(s, t, e, i, r, n, o$1, l, a) {
4775
+ function Xo(s, t, e, i, r, n, o, l, a) {
4778
4776
  if (!n) return;
4779
4777
  let u = Ci(s, t, e);
4780
- if (u) return u[0] = Math.ceil((u[0] + (a ? o$1 / 2 : 0)) / o$1), u[1] = Math.ceil(u[1] / l), u[0] = Math.min(Math.max(u[0], 1), i + (a ? 1 : 0)), u[1] = Math.min(Math.max(u[1], 1), r), u;
4778
+ if (u) return u[0] = Math.ceil((u[0] + (a ? o / 2 : 0)) / o), u[1] = Math.ceil(u[1] / l), u[0] = Math.min(Math.max(u[0], 1), i + (a ? 1 : 0)), u[1] = Math.min(Math.max(u[1], 1), r), u;
4781
4779
  }
4782
4780
  var Xt = class {
4783
4781
  constructor(t, e) {
@@ -4917,12 +4915,12 @@ var rn = class {
4917
4915
  }
4918
4916
  };
4919
4917
  var Qt = class extends D {
4920
- constructor(e, i, r, n, o$1, l, a, u, h$1) {
4918
+ constructor(e, i, r, n, o, l, a, u, h) {
4921
4919
  super();
4922
4920
  this._rowCount = e;
4923
4921
  this._optionsService = r;
4924
4922
  this._charSizeService = n;
4925
- this._coreService = o$1;
4923
+ this._coreService = o;
4926
4924
  this._coreBrowserService = u;
4927
4925
  this._renderer = this._register(new ye());
4928
4926
  this._pausedResizeTask = new nn();
@@ -4959,7 +4957,7 @@ var Qt = class extends D {
4959
4957
  "rescaleOverlappingGlyphs"
4960
4958
  ], () => {
4961
4959
  this.clear(), this.handleResize(a.cols, a.rows), this._fullRefresh();
4962
- })), this._register(this._optionsService.onMultipleOptionChange(["cursorBlink", "cursorStyle"], () => this.refreshRows(a.buffer.y, a.buffer.y, !0))), this._register(h$1.onChangeColors(() => this._fullRefresh())), this._registerIntersectionObserver(this._coreBrowserService.window, i), this._register(this._coreBrowserService.onWindowChange((c) => this._registerIntersectionObserver(c, i)));
4960
+ })), this._register(this._optionsService.onMultipleOptionChange(["cursorBlink", "cursorStyle"], () => this.refreshRows(a.buffer.y, a.buffer.y, !0))), this._register(h.onChangeColors(() => this._fullRefresh())), this._registerIntersectionObserver(this._coreBrowserService.window, i), this._register(this._coreBrowserService.onWindowChange((c) => this._registerIntersectionObserver(c, i)));
4963
4961
  }
4964
4962
  get dimensions() {
4965
4963
  return this._renderer.value.dimensions;
@@ -5087,11 +5085,11 @@ var xs = class {
5087
5085
  function Jo(s, t, e, i) {
5088
5086
  let r = e.buffer.x, n = e.buffer.y;
5089
5087
  if (!e.buffer.hasScrollback) return Ga(r, n, s, t, e, i) + sn(n, t, e, i) + $a(r, n, s, t, e, i);
5090
- let o$1;
5091
- if (n === t) return o$1 = r > s ? "D" : "C", Fi(Math.abs(r - s), Ni(o$1, i));
5092
- o$1 = n > t ? "D" : "C";
5088
+ let o;
5089
+ if (n === t) return o = r > s ? "D" : "C", Fi(Math.abs(r - s), Ni(o, i));
5090
+ o = n > t ? "D" : "C";
5093
5091
  let l = Math.abs(n - t);
5094
- return Fi(za(n > t ? s : r, e) + (l - 1) * e.cols + 1 + Ka(n > t ? r : s, e), Ni(o$1, i));
5092
+ return Fi(za(n > t ? s : r, e) + (l - 1) * e.cols + 1 + Ka(n > t ? r : s, e), Ni(o, i));
5095
5093
  }
5096
5094
  function Ka(s, t) {
5097
5095
  return s - 1;
@@ -5107,16 +5105,16 @@ function sn(s, t, e, i) {
5107
5105
  return Fi(Math.abs(r - n) - Va(s, t, e), Ni(Qo(s, t), i));
5108
5106
  }
5109
5107
  function $a(s, t, e, i, r, n) {
5110
- let o$1;
5111
- sn(t, i, r, n).length > 0 ? o$1 = i - gt(i, r) : o$1 = t;
5108
+ let o;
5109
+ sn(t, i, r, n).length > 0 ? o = i - gt(i, r) : o = t;
5112
5110
  let l = i, a = qa(s, t, e, i, r, n);
5113
- return Fi(el(s, o$1, e, l, a === "C", r).length, Ni(a, n));
5111
+ return Fi(el(s, o, e, l, a === "C", r).length, Ni(a, n));
5114
5112
  }
5115
5113
  function Va(s, t, e) {
5116
5114
  let i = 0, r = s - gt(s, e), n = t - gt(t, e);
5117
- for (let o$1 = 0; o$1 < Math.abs(r - n); o$1++) {
5115
+ for (let o = 0; o < Math.abs(r - n); o++) {
5118
5116
  let l = Qo(s, t) === "A" ? -1 : 1;
5119
- e.buffer.lines.get(r + l * o$1)?.isWrapped && i++;
5117
+ e.buffer.lines.get(r + l * o)?.isWrapped && i++;
5120
5118
  }
5121
5119
  return i;
5122
5120
  }
@@ -5126,16 +5124,16 @@ function gt(s, t) {
5126
5124
  return e;
5127
5125
  }
5128
5126
  function qa(s, t, e, i, r, n) {
5129
- let o$1;
5130
- return sn(e, i, r, n).length > 0 ? o$1 = i - gt(i, r) : o$1 = t, s < e && o$1 <= i || s >= e && o$1 < i ? "C" : "D";
5127
+ let o;
5128
+ return sn(e, i, r, n).length > 0 ? o = i - gt(i, r) : o = t, s < e && o <= i || s >= e && o < i ? "C" : "D";
5131
5129
  }
5132
5130
  function Qo(s, t) {
5133
5131
  return s > t ? "A" : "B";
5134
5132
  }
5135
5133
  function el(s, t, e, i, r, n) {
5136
- let o$1 = s, l = t, a = "";
5137
- for (; (o$1 !== e || l !== i) && l >= 0 && l < n.buffer.lines.length;) o$1 += r ? 1 : -1, r && o$1 > n.cols - 1 ? (a += n.buffer.translateBufferLineToString(l, !1, s, o$1), o$1 = 0, s = 0, l++) : !r && o$1 < 0 && (a += n.buffer.translateBufferLineToString(l, !1, 0, s + 1), o$1 = n.cols - 1, s = o$1, l--);
5138
- return a + n.buffer.translateBufferLineToString(l, !1, s, o$1);
5134
+ let o = s, l = t, a = "";
5135
+ for (; (o !== e || l !== i) && l >= 0 && l < n.buffer.lines.length;) o += r ? 1 : -1, r && o > n.cols - 1 ? (a += n.buffer.translateBufferLineToString(l, !1, s, o), o = 0, s = 0, l++) : !r && o < 0 && (a += n.buffer.translateBufferLineToString(l, !1, 0, s + 1), o = n.cols - 1, s = o, l--);
5136
+ return a + n.buffer.translateBufferLineToString(l, !1, s, o);
5139
5137
  }
5140
5138
  function Ni(s, t) {
5141
5139
  let e = t ? "O" : "[";
@@ -5187,17 +5185,17 @@ function ws(s, t) {
5187
5185
  }
5188
5186
  var Ds = 50, Ya = 15, ja = 50, Xa = 500, Ja = new RegExp("\xA0", "g");
5189
5187
  var ei = class extends D {
5190
- constructor(e, i, r, n, o$1, l, a, u, h$1) {
5188
+ constructor(e, i, r, n, o, l, a, u, h) {
5191
5189
  super();
5192
5190
  this._element = e;
5193
5191
  this._screenElement = i;
5194
5192
  this._linkifier = r;
5195
5193
  this._bufferService = n;
5196
- this._coreService = o$1;
5194
+ this._coreService = o;
5197
5195
  this._mouseService = l;
5198
5196
  this._optionsService = a;
5199
5197
  this._renderService = u;
5200
- this._coreBrowserService = h$1;
5198
+ this._coreBrowserService = h;
5201
5199
  this._dragScrollAmount = 0;
5202
5200
  this._enabled = !0;
5203
5201
  this._workCell = new q();
@@ -5248,15 +5246,15 @@ var ei = class extends D {
5248
5246
  if (e[0] === i[0]) return "";
5249
5247
  let l = e[0] < i[0] ? e[0] : i[0], a = e[0] < i[0] ? i[0] : e[0];
5250
5248
  for (let u = e[1]; u <= i[1]; u++) {
5251
- let h$1 = r.translateBufferLineToString(u, !0, l, a);
5252
- n.push(h$1);
5249
+ let h = r.translateBufferLineToString(u, !0, l, a);
5250
+ n.push(h);
5253
5251
  }
5254
5252
  } else {
5255
5253
  let l = e[1] === i[1] ? i[0] : void 0;
5256
5254
  n.push(r.translateBufferLineToString(e[1], !0, e[0], l));
5257
5255
  for (let a = e[1] + 1; a <= i[1] - 1; a++) {
5258
- let u = r.lines.get(a), h$1 = r.translateBufferLineToString(a, !0);
5259
- u?.isWrapped ? n[n.length - 1] += h$1 : n.push(h$1);
5256
+ let u = r.lines.get(a), h = r.translateBufferLineToString(a, !0);
5257
+ u?.isWrapped ? n[n.length - 1] += h : n.push(h);
5260
5258
  }
5261
5259
  if (e[1] !== i[1]) {
5262
5260
  let a = r.lines.get(i[1]), u = r.translateBufferLineToString(i[1], !0, 0, i[0]);
@@ -5405,8 +5403,8 @@ var ei = class extends D {
5405
5403
  _convertViewportColToCharacterIndex(e, i) {
5406
5404
  let r = i;
5407
5405
  for (let n = 0; i >= n; n++) {
5408
- let o$1 = e.loadCell(n, this._workCell).getChars().length;
5409
- this._workCell.getWidth() === 0 ? r-- : o$1 > 1 && i !== n && (r += o$1 - 1);
5406
+ let o = e.loadCell(n, this._workCell).getChars().length;
5407
+ this._workCell.getWidth() === 0 ? r-- : o > 1 && i !== n && (r += o - 1);
5410
5408
  }
5411
5409
  return r;
5412
5410
  }
@@ -5418,32 +5416,32 @@ var ei = class extends D {
5418
5416
  }
5419
5417
  _getWordAt(e, i, r = !0, n = !0) {
5420
5418
  if (e[0] >= this._bufferService.cols) return;
5421
- let o$1 = this._bufferService.buffer, l = o$1.lines.get(e[1]);
5419
+ let o = this._bufferService.buffer, l = o.lines.get(e[1]);
5422
5420
  if (!l) return;
5423
- let a = o$1.translateBufferLineToString(e[1], !1), u = this._convertViewportColToCharacterIndex(l, e[0]), h$1 = u, c = e[0] - u, d = 0, _$1 = 0, p = 0, m = 0;
5421
+ let a = o.translateBufferLineToString(e[1], !1), u = this._convertViewportColToCharacterIndex(l, e[0]), h = u, c = e[0] - u, d = 0, _ = 0, p = 0, m = 0;
5424
5422
  if (a.charAt(u) === " ") {
5425
5423
  for (; u > 0 && a.charAt(u - 1) === " ";) u--;
5426
- for (; h$1 < a.length && a.charAt(h$1 + 1) === " ";) h$1++;
5424
+ for (; h < a.length && a.charAt(h + 1) === " ";) h++;
5427
5425
  } else {
5428
5426
  let R = e[0], O = e[0];
5429
- l.getWidth(R) === 0 && (d++, R--), l.getWidth(O) === 2 && (_$1++, O++);
5427
+ l.getWidth(R) === 0 && (d++, R--), l.getWidth(O) === 2 && (_++, O++);
5430
5428
  let I = l.getString(O).length;
5431
- for (I > 1 && (m += I - 1, h$1 += I - 1); R > 0 && u > 0 && !this._isCharWordSeparator(l.loadCell(R - 1, this._workCell));) {
5429
+ for (I > 1 && (m += I - 1, h += I - 1); R > 0 && u > 0 && !this._isCharWordSeparator(l.loadCell(R - 1, this._workCell));) {
5432
5430
  l.loadCell(R - 1, this._workCell);
5433
5431
  let k = this._workCell.getChars().length;
5434
5432
  this._workCell.getWidth() === 0 ? (d++, R--) : k > 1 && (p += k - 1, u -= k - 1), u--, R--;
5435
5433
  }
5436
- for (; O < l.length && h$1 + 1 < a.length && !this._isCharWordSeparator(l.loadCell(O + 1, this._workCell));) {
5434
+ for (; O < l.length && h + 1 < a.length && !this._isCharWordSeparator(l.loadCell(O + 1, this._workCell));) {
5437
5435
  l.loadCell(O + 1, this._workCell);
5438
5436
  let k = this._workCell.getChars().length;
5439
- this._workCell.getWidth() === 2 ? (_$1++, O++) : k > 1 && (m += k - 1, h$1 += k - 1), h$1++, O++;
5437
+ this._workCell.getWidth() === 2 ? (_++, O++) : k > 1 && (m += k - 1, h += k - 1), h++, O++;
5440
5438
  }
5441
5439
  }
5442
- h$1++;
5443
- let f = u + c - d + p, A = Math.min(this._bufferService.cols, h$1 - u + d + _$1 - p - m);
5444
- if (!(!i && a.slice(u, h$1).trim() === "")) {
5440
+ h++;
5441
+ let f = u + c - d + p, A = Math.min(this._bufferService.cols, h - u + d + _ - p - m);
5442
+ if (!(!i && a.slice(u, h).trim() === "")) {
5445
5443
  if (r && f === 0 && l.getCodePoint(0) !== 32) {
5446
- let R = o$1.lines.get(e[1] - 1);
5444
+ let R = o.lines.get(e[1] - 1);
5447
5445
  if (R && l.isWrapped && R.getCodePoint(this._bufferService.cols - 1) !== 32) {
5448
5446
  let O = this._getWordAt([this._bufferService.cols - 1, e[1] - 1], !1, !0, !1);
5449
5447
  if (O) {
@@ -5453,7 +5451,7 @@ var ei = class extends D {
5453
5451
  }
5454
5452
  }
5455
5453
  if (n && f + A === this._bufferService.cols && l.getCodePoint(this._bufferService.cols - 1) !== 32) {
5456
- let R = o$1.lines.get(e[1] + 1);
5454
+ let R = o.lines.get(e[1] + 1);
5457
5455
  if (R?.isWrapped && R.getCodePoint(0) !== 32) {
5458
5456
  let O = this._getWordAt([0, e[1] + 1], !1, !1, !0);
5459
5457
  O && (A += O.length);
@@ -5694,10 +5692,10 @@ var Rs = class {
5694
5692
  return this._services.get(t);
5695
5693
  }
5696
5694
  createInstance(t, ...e) {
5697
- let i = Xs(t).sort((o$1, l) => o$1.index - l.index), r = [];
5698
- for (let o$1 of i) {
5699
- let l = this._services.get(o$1.id);
5700
- if (!l) throw new Error(`[createInstance] ${t.name} depends on UNKNOWN service ${o$1.id._id}.`);
5695
+ let i = Xs(t).sort((o, l) => o.index - l.index), r = [];
5696
+ for (let o of i) {
5697
+ let l = this._services.get(o.id);
5698
+ if (!l) throw new Error(`[createInstance] ${t.name} depends on UNKNOWN service ${o.id._id}.`);
5701
5699
  r.push(l);
5702
5700
  }
5703
5701
  let n = i.length > 0 ? i[0].index : e.length;
@@ -5822,7 +5820,7 @@ var zi = class extends D {
5822
5820
  if (e < 0 || e >= this._length) throw new Error("start argument out of range");
5823
5821
  if (e + r < 0) throw new Error("Cannot shift elements in list beyond index 0");
5824
5822
  if (r > 0) {
5825
- for (let o$1 = i - 1; o$1 >= 0; o$1--) this.set(e + o$1 + r, this.get(e + o$1));
5823
+ for (let o = i - 1; o >= 0; o--) this.set(e + o + r, this.get(e + o));
5826
5824
  let n = e + i + r - this._length;
5827
5825
  if (n > 0) for (this._length += n; this._length > this._maxLength;) this._length--, this._startIndex++, this.onTrimEmitter.fire(1);
5828
5826
  } else for (let n = 0; n < i; n++) this.set(e + n + r, this.get(e + n));
@@ -5938,13 +5936,13 @@ var X = Object.freeze(new De()), an = 0, Ls = 2, Ze = class s {
5938
5936
  } else {
5939
5937
  this._data = this._data.subarray(0, i);
5940
5938
  let r = Object.keys(this._combined);
5941
- for (let o$1 = 0; o$1 < r.length; o$1++) {
5942
- let l = parseInt(r[o$1], 10);
5939
+ for (let o = 0; o < r.length; o++) {
5940
+ let l = parseInt(r[o], 10);
5943
5941
  l >= t && delete this._combined[l];
5944
5942
  }
5945
5943
  let n = Object.keys(this._extendedAttrs);
5946
- for (let o$1 = 0; o$1 < n.length; o$1++) {
5947
- let l = parseInt(n[o$1], 10);
5944
+ for (let o = 0; o < n.length; o++) {
5945
+ let l = parseInt(n[o], 10);
5948
5946
  l >= t && delete this._extendedAttrs[l];
5949
5947
  }
5950
5948
  }
@@ -5988,14 +5986,14 @@ var X = Object.freeze(new De()), an = 0, Ls = 2, Ze = class s {
5988
5986
  return 0;
5989
5987
  }
5990
5988
  copyCellsFrom(t, e, i, r, n) {
5991
- let o$1 = t._data;
5989
+ let o = t._data;
5992
5990
  if (n) for (let a = r - 1; a >= 0; a--) {
5993
- for (let u = 0; u < B; u++) this._data[(i + a) * B + u] = o$1[(e + a) * B + u];
5994
- o$1[(e + a) * B + 2] & 268435456 && (this._extendedAttrs[i + a] = t._extendedAttrs[e + a]);
5991
+ for (let u = 0; u < B; u++) this._data[(i + a) * B + u] = o[(e + a) * B + u];
5992
+ o[(e + a) * B + 2] & 268435456 && (this._extendedAttrs[i + a] = t._extendedAttrs[e + a]);
5995
5993
  }
5996
5994
  else for (let a = 0; a < r; a++) {
5997
- for (let u = 0; u < B; u++) this._data[(i + a) * B + u] = o$1[(e + a) * B + u];
5998
- o$1[(e + a) * B + 2] & 268435456 && (this._extendedAttrs[i + a] = t._extendedAttrs[e + a]);
5995
+ for (let u = 0; u < B; u++) this._data[(i + a) * B + u] = o[(e + a) * B + u];
5996
+ o[(e + a) * B + 2] & 268435456 && (this._extendedAttrs[i + a] = t._extendedAttrs[e + a]);
5999
5997
  }
6000
5998
  let l = Object.keys(t._combined);
6001
5999
  for (let a = 0; a < l.length; a++) {
@@ -6007,45 +6005,45 @@ var X = Object.freeze(new De()), an = 0, Ls = 2, Ze = class s {
6007
6005
  e = e ?? 0, i = i ?? this.length, t && (i = Math.min(i, this.getTrimmedLength())), r && (r.length = 0);
6008
6006
  let n = "";
6009
6007
  for (; e < i;) {
6010
- let o$1 = this._data[e * B + 0], l = o$1 & 2097151, a = o$1 & 2097152 ? this._combined[e] : l ? Ce(l) : we;
6008
+ let o = this._data[e * B + 0], l = o & 2097151, a = o & 2097152 ? this._combined[e] : l ? Ce(l) : we;
6011
6009
  if (n += a, r) for (let u = 0; u < a.length; ++u) r.push(e);
6012
- e += o$1 >> 22 || 1;
6010
+ e += o >> 22 || 1;
6013
6011
  }
6014
6012
  return r && r.push(e), n;
6015
6013
  }
6016
6014
  };
6017
6015
  function sl(s, t, e, i, r, n) {
6018
- let o$1 = [];
6016
+ let o = [];
6019
6017
  for (let l = 0; l < s.length - 1; l++) {
6020
6018
  let a = l, u = s.get(++a);
6021
6019
  if (!u.isWrapped) continue;
6022
- let h$1 = [s.get(l)];
6023
- for (; a < s.length && u.isWrapped;) h$1.push(u), u = s.get(++a);
6020
+ let h = [s.get(l)];
6021
+ for (; a < s.length && u.isWrapped;) h.push(u), u = s.get(++a);
6024
6022
  if (!n && i >= l && i < a) {
6025
- l += h$1.length - 1;
6023
+ l += h.length - 1;
6026
6024
  continue;
6027
6025
  }
6028
- let c = 0, d = ri(h$1, c, t), _$1 = 1, p = 0;
6029
- for (; _$1 < h$1.length;) {
6030
- let f = ri(h$1, _$1, t), A = f - p, R = e - d, O = Math.min(A, R);
6031
- h$1[c].copyCellsFrom(h$1[_$1], p, d, O, !1), d += O, d === e && (c++, d = 0), p += O, p === f && (_$1++, p = 0), d === 0 && c !== 0 && h$1[c - 1].getWidth(e - 1) === 2 && (h$1[c].copyCellsFrom(h$1[c - 1], e - 1, d++, 1, !1), h$1[c - 1].setCell(e - 1, r));
6026
+ let c = 0, d = ri(h, c, t), _ = 1, p = 0;
6027
+ for (; _ < h.length;) {
6028
+ let f = ri(h, _, t), A = f - p, R = e - d, O = Math.min(A, R);
6029
+ h[c].copyCellsFrom(h[_], p, d, O, !1), d += O, d === e && (c++, d = 0), p += O, p === f && (_++, p = 0), d === 0 && c !== 0 && h[c - 1].getWidth(e - 1) === 2 && (h[c].copyCellsFrom(h[c - 1], e - 1, d++, 1, !1), h[c - 1].setCell(e - 1, r));
6032
6030
  }
6033
- h$1[c].replaceCells(d, e, r);
6031
+ h[c].replaceCells(d, e, r);
6034
6032
  let m = 0;
6035
- for (let f = h$1.length - 1; f > 0 && (f > c || h$1[f].getTrimmedLength() === 0); f--) m++;
6036
- m > 0 && (o$1.push(l + h$1.length - m), o$1.push(m)), l += h$1.length - 1;
6033
+ for (let f = h.length - 1; f > 0 && (f > c || h[f].getTrimmedLength() === 0); f--) m++;
6034
+ m > 0 && (o.push(l + h.length - m), o.push(m)), l += h.length - 1;
6037
6035
  }
6038
- return o$1;
6036
+ return o;
6039
6037
  }
6040
6038
  function ol(s, t) {
6041
6039
  let e = [], i = 0, r = t[i], n = 0;
6042
- for (let o$1 = 0; o$1 < s.length; o$1++) if (r === o$1) {
6040
+ for (let o = 0; o < s.length; o++) if (r === o) {
6043
6041
  let l = t[++i];
6044
6042
  s.onDeleteEmitter.fire({
6045
- index: o$1 - n,
6043
+ index: o - n,
6046
6044
  amount: l
6047
- }), o$1 += l - 1, n += l, r = t[++i];
6048
- } else e.push(o$1);
6045
+ }), o += l - 1, n += l, r = t[++i];
6046
+ } else e.push(o);
6049
6047
  return {
6050
6048
  layout: e,
6051
6049
  countRemoved: n
@@ -6058,19 +6056,19 @@ function ll(s, t) {
6058
6056
  s.length = t.length;
6059
6057
  }
6060
6058
  function al(s, t, e) {
6061
- let i = [], r = s.map((a, u) => ri(s, u, t)).reduce((a, u) => a + u), n = 0, o$1 = 0, l = 0;
6059
+ let i = [], r = s.map((a, u) => ri(s, u, t)).reduce((a, u) => a + u), n = 0, o = 0, l = 0;
6062
6060
  for (; l < r;) {
6063
6061
  if (r - l < e) {
6064
6062
  i.push(r - l);
6065
6063
  break;
6066
6064
  }
6067
6065
  n += e;
6068
- let a = ri(s, o$1, t);
6069
- n > a && (n -= a, o$1++);
6070
- let u = s[o$1].getWidth(n - 1) === 2;
6066
+ let a = ri(s, o, t);
6067
+ n > a && (n -= a, o++);
6068
+ let u = s[o].getWidth(n - 1) === 2;
6071
6069
  u && n--;
6072
- let h$1 = u ? e - 1 : e;
6073
- i.push(h$1), l += h$1;
6070
+ let h = u ? e - 1 : e;
6071
+ i.push(h), l += h;
6074
6072
  }
6075
6073
  return i;
6076
6074
  }
@@ -6079,12 +6077,12 @@ function ri(s, t, e) {
6079
6077
  let i = !s[t].hasContent(e - 1) && s[t].getWidth(e - 1) === 1, r = s[t + 1].getWidth(0) === 2;
6080
6078
  return i && r ? e - 1 : e;
6081
6079
  }
6082
- var un = class un$1 {
6080
+ var un = class un {
6083
6081
  constructor(t) {
6084
6082
  this.line = t;
6085
6083
  this.isDisposed = !1;
6086
6084
  this._disposables = [];
6087
- this._id = un$1._nextId++;
6085
+ this._id = un._nextId++;
6088
6086
  this._onDispose = this.register(new v());
6089
6087
  this.onDispose = this._onDispose.event;
6090
6088
  }
@@ -6318,16 +6316,16 @@ var cl = 4294967295, $i = class {
6318
6316
  let i = this.getNullCell(X), r = 0, n = this._getCorrectBufferLength(e);
6319
6317
  if (n > this.lines.maxLength && (this.lines.maxLength = n), this.lines.length > 0) {
6320
6318
  if (this._cols < t) for (let l = 0; l < this.lines.length; l++) r += +this.lines.get(l).resize(t, i);
6321
- let o$1 = 0;
6322
- if (this._rows < e) for (let l = this._rows; l < e; l++) this.lines.length < e + this.ybase && (this._optionsService.rawOptions.windowsMode || this._optionsService.rawOptions.windowsPty.backend !== void 0 || this._optionsService.rawOptions.windowsPty.buildNumber !== void 0 ? this.lines.push(new Ze(t, i)) : this.ybase > 0 && this.lines.length <= this.ybase + this.y + o$1 + 1 ? (this.ybase--, o$1++, this.ydisp > 0 && this.ydisp--) : this.lines.push(new Ze(t, i)));
6319
+ let o = 0;
6320
+ if (this._rows < e) for (let l = this._rows; l < e; l++) this.lines.length < e + this.ybase && (this._optionsService.rawOptions.windowsMode || this._optionsService.rawOptions.windowsPty.backend !== void 0 || this._optionsService.rawOptions.windowsPty.buildNumber !== void 0 ? this.lines.push(new Ze(t, i)) : this.ybase > 0 && this.lines.length <= this.ybase + this.y + o + 1 ? (this.ybase--, o++, this.ydisp > 0 && this.ydisp--) : this.lines.push(new Ze(t, i)));
6323
6321
  else for (let l = this._rows; l > e; l--) this.lines.length > e + this.ybase && (this.lines.length > this.ybase + this.y + 1 ? this.lines.pop() : (this.ybase++, this.ydisp++));
6324
6322
  if (n < this.lines.maxLength) {
6325
6323
  let l = this.lines.length - n;
6326
6324
  l > 0 && (this.lines.trimStart(l), this.ybase = Math.max(this.ybase - l, 0), this.ydisp = Math.max(this.ydisp - l, 0), this.savedY = Math.max(this.savedY - l, 0)), this.lines.maxLength = n;
6327
6325
  }
6328
- this.x = Math.min(this.x, t - 1), this.y = Math.min(this.y, e - 1), o$1 && (this.y += o$1), this.savedX = Math.min(this.savedX, t - 1), this.scrollTop = 0;
6326
+ this.x = Math.min(this.x, t - 1), this.y = Math.min(this.y, e - 1), o && (this.y += o), this.savedX = Math.min(this.savedX, t - 1), this.scrollTop = 0;
6329
6327
  }
6330
- if (this.scrollBottom = e - 1, this._isReflowEnabled && (this._reflow(t, e), this._cols > t)) for (let o$1 = 0; o$1 < this.lines.length; o$1++) r += +this.lines.get(o$1).resize(t, i);
6328
+ if (this.scrollBottom = e - 1, this._isReflowEnabled && (this._reflow(t, e), this._cols > t)) for (let o = 0; o < this.lines.length; o++) r += +this.lines.get(o).resize(t, i);
6331
6329
  this._cols = t, this._rows = e, this._memoryCleanupQueue.clear(), r > .1 * this.lines.length && (this._memoryCleanupPosition = 0, this._memoryCleanupQueue.enqueue(() => this._batchedMemoryCleanup()));
6332
6330
  }
6333
6331
  _batchedMemoryCleanup() {
@@ -6357,7 +6355,7 @@ var cl = 4294967295, $i = class {
6357
6355
  this.savedY = Math.max(this.savedY - i, 0);
6358
6356
  }
6359
6357
  _reflowSmaller(t, e) {
6360
- let i = this._optionsService.rawOptions.reflowCursorLine, r = this.getNullCell(X), n = [], o$1 = 0;
6358
+ let i = this._optionsService.rawOptions.reflowCursorLine, r = this.getNullCell(X), n = [], o = 0;
6361
6359
  for (let l = this.lines.length - 1; l >= 0; l--) {
6362
6360
  let a = this.lines.get(l);
6363
6361
  if (!a || !a.isWrapped && a.getTrimmedLength() <= t) continue;
@@ -6367,20 +6365,20 @@ var cl = 4294967295, $i = class {
6367
6365
  let I = this.ybase + this.y;
6368
6366
  if (I >= l && I < l + u.length) continue;
6369
6367
  }
6370
- let h$1 = u[u.length - 1].getTrimmedLength(), c = al(u, this._cols, t), d = c.length - u.length, _$1;
6371
- this.ybase === 0 && this.y !== this.lines.length - 1 ? _$1 = Math.max(0, this.y - this.lines.maxLength + d) : _$1 = Math.max(0, this.lines.length - this.lines.maxLength + d);
6368
+ let h = u[u.length - 1].getTrimmedLength(), c = al(u, this._cols, t), d = c.length - u.length, _;
6369
+ this.ybase === 0 && this.y !== this.lines.length - 1 ? _ = Math.max(0, this.y - this.lines.maxLength + d) : _ = Math.max(0, this.lines.length - this.lines.maxLength + d);
6372
6370
  let p = [];
6373
6371
  for (let I = 0; I < d; I++) {
6374
6372
  let k = this.getBlankLine(X, !0);
6375
6373
  p.push(k);
6376
6374
  }
6377
6375
  p.length > 0 && (n.push({
6378
- start: l + u.length + o$1,
6376
+ start: l + u.length + o,
6379
6377
  newLines: p
6380
- }), o$1 += p.length), u.push(...p);
6378
+ }), o += p.length), u.push(...p);
6381
6379
  let m = c.length - 1, f = c[m];
6382
6380
  f === 0 && (m--, f = c[m]);
6383
- let A = u.length - d - 1, R = h$1;
6381
+ let A = u.length - d - 1, R = h;
6384
6382
  for (; A >= 0;) {
6385
6383
  let I = Math.min(R, f);
6386
6384
  if (u[m] === void 0) break;
@@ -6390,26 +6388,26 @@ var cl = 4294967295, $i = class {
6390
6388
  }
6391
6389
  }
6392
6390
  for (let I = 0; I < u.length; I++) c[I] < t && u[I].setCell(c[I], r);
6393
- let O = d - _$1;
6394
- for (; O-- > 0;) this.ybase === 0 ? this.y < e - 1 ? (this.y++, this.lines.pop()) : (this.ybase++, this.ydisp++) : this.ybase < Math.min(this.lines.maxLength, this.lines.length + o$1) - e && (this.ybase === this.ydisp && this.ydisp++, this.ybase++);
6391
+ let O = d - _;
6392
+ for (; O-- > 0;) this.ybase === 0 ? this.y < e - 1 ? (this.y++, this.lines.pop()) : (this.ybase++, this.ydisp++) : this.ybase < Math.min(this.lines.maxLength, this.lines.length + o) - e && (this.ybase === this.ydisp && this.ydisp++, this.ybase++);
6395
6393
  this.savedY = Math.min(this.savedY + d, this.ybase + e - 1);
6396
6394
  }
6397
6395
  if (n.length > 0) {
6398
6396
  let l = [], a = [];
6399
6397
  for (let f = 0; f < this.lines.length; f++) a.push(this.lines.get(f));
6400
- let u = this.lines.length, h$1 = u - 1, c = 0, d = n[c];
6401
- this.lines.length = Math.min(this.lines.maxLength, this.lines.length + o$1);
6402
- let _$1 = 0;
6403
- for (let f = Math.min(this.lines.maxLength - 1, u + o$1 - 1); f >= 0; f--) if (d && d.start > h$1 + _$1) {
6398
+ let u = this.lines.length, h = u - 1, c = 0, d = n[c];
6399
+ this.lines.length = Math.min(this.lines.maxLength, this.lines.length + o);
6400
+ let _ = 0;
6401
+ for (let f = Math.min(this.lines.maxLength - 1, u + o - 1); f >= 0; f--) if (d && d.start > h + _) {
6404
6402
  for (let A = d.newLines.length - 1; A >= 0; A--) this.lines.set(f--, d.newLines[A]);
6405
6403
  f++, l.push({
6406
- index: h$1 + 1,
6404
+ index: h + 1,
6407
6405
  amount: d.newLines.length
6408
- }), _$1 += d.newLines.length, d = n[++c];
6409
- } else this.lines.set(f, a[h$1--]);
6406
+ }), _ += d.newLines.length, d = n[++c];
6407
+ } else this.lines.set(f, a[h--]);
6410
6408
  let p = 0;
6411
6409
  for (let f = l.length - 1; f >= 0; f--) l[f].index += p, this.lines.onInsertEmitter.fire(l[f]), p += l[f].amount;
6412
- let m = Math.max(0, u + o$1 - this.lines.maxLength);
6410
+ let m = Math.max(0, u + o - this.lines.maxLength);
6413
6411
  m > 0 && this.lines.onTrimEmitter.fire(m);
6414
6412
  }
6415
6413
  }
@@ -6534,13 +6532,13 @@ var ks = 2, Cs = 1, ni = class extends D {
6534
6532
  scroll(e, i = !1) {
6535
6533
  let r = this.buffer, n;
6536
6534
  n = this._cachedBlankLine, (!n || n.length !== this.cols || n.getFg(0) !== e.fg || n.getBg(0) !== e.bg) && (n = r.getBlankLine(e, i), this._cachedBlankLine = n), n.isWrapped = i;
6537
- let o$1 = r.ybase + r.scrollTop, l = r.ybase + r.scrollBottom;
6535
+ let o = r.ybase + r.scrollTop, l = r.ybase + r.scrollBottom;
6538
6536
  if (r.scrollTop === 0) {
6539
6537
  let a = r.lines.isFull;
6540
6538
  l === r.lines.length - 1 ? a ? r.lines.recycle().copyFrom(n) : r.lines.push(n.clone()) : r.lines.splice(l + 1, 0, n.clone()), a ? this.isUserScrolling && (r.ydisp = Math.max(r.ydisp - 1, 0)) : (r.ybase++, this.isUserScrolling || r.ydisp++);
6541
6539
  } else {
6542
- let a = l - o$1 + 1;
6543
- r.lines.shiftElements(o$1 + 1, a - 1, -1), r.lines.set(l, n.clone());
6540
+ let a = l - o + 1;
6541
+ r.lines.shiftElements(o + 1, a - 1, -1), r.lines.set(l, n.clone());
6544
6542
  }
6545
6543
  this.isUserScrolling || (r.ydisp = r.ybase), this._onScroll.fire(r.ydisp);
6546
6544
  }
@@ -6840,8 +6838,8 @@ var Ps = String.fromCharCode, fl = {
6840
6838
  }
6841
6839
  consumeWheelEvent(e, i, r) {
6842
6840
  if (e.deltaY === 0 || e.shiftKey || i === void 0 || r === void 0) return 0;
6843
- let n = i / r, o$1 = this._applyScrollModifier(e.deltaY, e);
6844
- return e.deltaMode === WheelEvent.DOM_DELTA_PIXEL ? (o$1 /= n + 0, Math.abs(e.deltaY) < 50 && (o$1 *= .3), this._wheelPartialScroll += o$1, o$1 = Math.floor(Math.abs(this._wheelPartialScroll)) * (this._wheelPartialScroll > 0 ? 1 : -1), this._wheelPartialScroll %= 1) : e.deltaMode === WheelEvent.DOM_DELTA_PAGE && (o$1 *= this._bufferService.rows), o$1;
6841
+ let n = i / r, o = this._applyScrollModifier(e.deltaY, e);
6842
+ return e.deltaMode === WheelEvent.DOM_DELTA_PIXEL ? (o /= n + 0, Math.abs(e.deltaY) < 50 && (o *= .3), this._wheelPartialScroll += o, o = Math.floor(Math.abs(this._wheelPartialScroll)) * (this._wheelPartialScroll > 0 ? 1 : -1), this._wheelPartialScroll %= 1) : e.deltaMode === WheelEvent.DOM_DELTA_PAGE && (o *= this._bufferService.rows), o;
6845
6843
  }
6846
6844
  _applyScrollModifier(e, i) {
6847
6845
  return i.altKey || i.ctrlKey || i.shiftKey ? e * this._optionsService.rawOptions.fastScrollSensitivity * this._optionsService.rawOptions.scrollSensitivity : e * this._optionsService.rawOptions.scrollSensitivity;
@@ -7088,13 +7086,13 @@ var Ae = class s {
7088
7086
  getStringCellWidth(t) {
7089
7087
  let e = 0, i = 0, r = t.length;
7090
7088
  for (let n = 0; n < r; ++n) {
7091
- let o$1 = t.charCodeAt(n);
7092
- if (55296 <= o$1 && o$1 <= 56319) {
7093
- if (++n >= r) return e + this.wcwidth(o$1);
7089
+ let o = t.charCodeAt(n);
7090
+ if (55296 <= o && o <= 56319) {
7091
+ if (++n >= r) return e + this.wcwidth(o);
7094
7092
  let u = t.charCodeAt(n);
7095
- 56320 <= u && u <= 57343 ? o$1 = (o$1 - 55296) * 1024 + u - 56320 + 65536 : e += this.wcwidth(u);
7093
+ 56320 <= u && u <= 57343 ? o = (o - 55296) * 1024 + u - 56320 + 65536 : e += this.wcwidth(u);
7096
7094
  }
7097
- let l = this.charProperties(o$1, i), a = s.extractWidth(l);
7095
+ let l = this.charProperties(o, i), a = s.extractWidth(l);
7098
7096
  s.extractShouldJoin(l) && (a -= s.extractWidth(i)), e += a, i = l;
7099
7097
  }
7100
7098
  return e;
@@ -7381,9 +7379,9 @@ var Fs = class {
7381
7379
  }, ke = 160, hc = function() {
7382
7380
  let s = new Fs(4095), e = Array.apply(null, Array(256)).map((a, u) => u), i = (a, u) => e.slice(a, u), r = i(32, 127), n = i(0, 24);
7383
7381
  n.push(25), n.push.apply(n, i(28, 32));
7384
- let o$1 = i(0, 14), l;
7382
+ let o = i(0, 14), l;
7385
7383
  s.setDefault(1, 0), s.addMany(r, 0, 2, 0);
7386
- for (l in o$1) s.addMany([
7384
+ for (l in o) s.addMany([
7387
7385
  24,
7388
7386
  26,
7389
7387
  153,
@@ -7456,8 +7454,8 @@ var Fs = class {
7456
7454
  }
7457
7455
  if (e.intermediates) {
7458
7456
  if (e.intermediates.length > 2) throw new Error("only two bytes as intermediates are supported");
7459
- for (let o$1 = 0; o$1 < e.intermediates.length; ++o$1) {
7460
- let l = e.intermediates.charCodeAt(o$1);
7457
+ for (let o = 0; o < e.intermediates.length; ++o) {
7458
+ let l = e.intermediates.charCodeAt(o);
7461
7459
  if (32 > l || l > 47) throw new Error("intermediate must be in range 0x20 .. 0x2f");
7462
7460
  r <<= 8, r |= l;
7463
7461
  }
@@ -7483,8 +7481,8 @@ var Fs = class {
7483
7481
  this._escHandlers[r] === void 0 && (this._escHandlers[r] = []);
7484
7482
  let n = this._escHandlers[r];
7485
7483
  return n.push(i), { dispose: () => {
7486
- let o$1 = n.indexOf(i);
7487
- o$1 !== -1 && n.splice(o$1, 1);
7484
+ let o = n.indexOf(i);
7485
+ o !== -1 && n.splice(o, 1);
7488
7486
  } };
7489
7487
  }
7490
7488
  clearEscHandler(e) {
@@ -7507,8 +7505,8 @@ var Fs = class {
7507
7505
  this._csiHandlers[r] === void 0 && (this._csiHandlers[r] = []);
7508
7506
  let n = this._csiHandlers[r];
7509
7507
  return n.push(i), { dispose: () => {
7510
- let o$1 = n.indexOf(i);
7511
- o$1 !== -1 && n.splice(o$1, 1);
7508
+ let o = n.indexOf(i);
7509
+ o !== -1 && n.splice(o, 1);
7512
7510
  } };
7513
7511
  }
7514
7512
  clearCsiHandler(e) {
@@ -7544,25 +7542,25 @@ var Fs = class {
7544
7542
  reset() {
7545
7543
  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 = []);
7546
7544
  }
7547
- _preserveStack(e, i, r, n, o$1) {
7548
- this._parseStack.state = e, this._parseStack.handlers = i, this._parseStack.handlerPos = r, this._parseStack.transition = n, this._parseStack.chunkPos = o$1;
7545
+ _preserveStack(e, i, r, n, o) {
7546
+ this._parseStack.state = e, this._parseStack.handlers = i, this._parseStack.handlerPos = r, this._parseStack.transition = n, this._parseStack.chunkPos = o;
7549
7547
  }
7550
7548
  parse(e, i, r) {
7551
- let n = 0, o$1 = 0, l = 0, a;
7549
+ let n = 0, o = 0, l = 0, a;
7552
7550
  if (this._parseStack.state) if (this._parseStack.state === 2) this._parseStack.state = 0, l = this._parseStack.chunkPos + 1;
7553
7551
  else {
7554
7552
  if (r === void 0 || this._parseStack.state === 1) throw this._parseStack.state = 1, /* @__PURE__ */ new Error("improper continuation due to previous async handler, giving up parsing");
7555
- let u = this._parseStack.handlers, h$1 = this._parseStack.handlerPos - 1;
7553
+ let u = this._parseStack.handlers, h = this._parseStack.handlerPos - 1;
7556
7554
  switch (this._parseStack.state) {
7557
7555
  case 3:
7558
- if (r === !1 && h$1 > -1) {
7559
- for (; h$1 >= 0 && (a = u[h$1](this._params), a !== !0); h$1--) if (a instanceof Promise) return this._parseStack.handlerPos = h$1, a;
7556
+ if (r === !1 && h > -1) {
7557
+ for (; h >= 0 && (a = u[h](this._params), a !== !0); h--) if (a instanceof Promise) return this._parseStack.handlerPos = h, a;
7560
7558
  }
7561
7559
  this._parseStack.handlers = [];
7562
7560
  break;
7563
7561
  case 4:
7564
- if (r === !1 && h$1 > -1) {
7565
- for (; h$1 >= 0 && (a = u[h$1](), a !== !0); h$1--) if (a instanceof Promise) return this._parseStack.handlerPos = h$1, a;
7562
+ if (r === !1 && h > -1) {
7563
+ for (; h >= 0 && (a = u[h](), a !== !0); h--) if (a instanceof Promise) return this._parseStack.handlerPos = h, a;
7566
7564
  }
7567
7565
  this._parseStack.handlers = [];
7568
7566
  break;
@@ -7578,7 +7576,7 @@ var Fs = class {
7578
7576
  this._parseStack.state = 0, l = this._parseStack.chunkPos + 1, this.precedingJoinState = 0, this.currentState = this._parseStack.transition & 15;
7579
7577
  }
7580
7578
  for (let u = l; u < i; ++u) {
7581
- switch (n = e[u], o$1 = this._transitions.table[this.currentState << 8 | (n < 160 ? n : ke)], o$1 >> 4) {
7579
+ switch (n = e[u], o = this._transitions.table[this.currentState << 8 | (n < 160 ? n : ke)], o >> 4) {
7582
7580
  case 2:
7583
7581
  for (let m = u + 1;; ++m) {
7584
7582
  if (m >= i || (n = e[m]) < 32 || n > 126 && n < ke) {
@@ -7615,7 +7613,7 @@ var Fs = class {
7615
7613
  break;
7616
7614
  case 7:
7617
7615
  let c = this._csiHandlers[this._collect << 8 | n], d = c ? c.length - 1 : -1;
7618
- for (; d >= 0 && (a = c[d](this._params), a !== !0); d--) if (a instanceof Promise) return this._preserveStack(3, c, d, o$1, u), a;
7616
+ for (; d >= 0 && (a = c[d](this._params), a !== !0); d--) if (a instanceof Promise) return this._preserveStack(3, c, d, o, u), a;
7619
7617
  d < 0 && this._csiHandlerFb(this._collect << 8 | n, this._params), this.precedingJoinState = 0;
7620
7618
  break;
7621
7619
  case 8:
@@ -7636,8 +7634,8 @@ var Fs = class {
7636
7634
  this._collect <<= 8, this._collect |= n;
7637
7635
  break;
7638
7636
  case 10:
7639
- let _$1 = this._escHandlers[this._collect << 8 | n], p = _$1 ? _$1.length - 1 : -1;
7640
- for (; p >= 0 && (a = _$1[p](), a !== !0); p--) if (a instanceof Promise) return this._preserveStack(4, _$1, p, o$1, u), a;
7637
+ let _ = this._escHandlers[this._collect << 8 | n], p = _ ? _.length - 1 : -1;
7638
+ for (; p >= 0 && (a = _[p](), a !== !0); p--) if (a instanceof Promise) return this._preserveStack(4, _, p, o, u), a;
7641
7639
  p < 0 && this._escHandlerFb(this._collect << 8 | n), this.precedingJoinState = 0;
7642
7640
  break;
7643
7641
  case 11:
@@ -7653,8 +7651,8 @@ var Fs = class {
7653
7651
  }
7654
7652
  break;
7655
7653
  case 14:
7656
- if (a = this._dcsParser.unhook(n !== 24 && n !== 26), a) return this._preserveStack(6, [], 0, o$1, u), a;
7657
- n === 27 && (o$1 |= 1), this._params.reset(), this._params.addParam(0), this._collect = 0, this.precedingJoinState = 0;
7654
+ if (a = this._dcsParser.unhook(n !== 24 && n !== 26), a) return this._preserveStack(6, [], 0, o, u), a;
7655
+ n === 27 && (o |= 1), this._params.reset(), this._params.addParam(0), this._collect = 0, this.precedingJoinState = 0;
7658
7656
  break;
7659
7657
  case 4:
7660
7658
  this._oscParser.start();
@@ -7666,11 +7664,11 @@ var Fs = class {
7666
7664
  }
7667
7665
  break;
7668
7666
  case 6:
7669
- if (a = this._oscParser.end(n !== 24 && n !== 26), a) return this._preserveStack(5, [], 0, o$1, u), a;
7670
- n === 27 && (o$1 |= 1), this._params.reset(), this._params.addParam(0), this._collect = 0, this.precedingJoinState = 0;
7667
+ if (a = this._oscParser.end(n !== 24 && n !== 26), a) return this._preserveStack(5, [], 0, o, u), a;
7668
+ n === 27 && (o |= 1), this._params.reset(), this._params.addParam(0), this._collect = 0, this.precedingJoinState = 0;
7671
7669
  break;
7672
7670
  }
7673
- this.currentState = o$1 & 15;
7671
+ this.currentState = o & 15;
7674
7672
  }
7675
7673
  }
7676
7674
  };
@@ -7757,17 +7755,17 @@ function bl(s, t) {
7757
7755
  return !1;
7758
7756
  }
7759
7757
  var vl = 5e3, gl = 0, vn = class extends D {
7760
- constructor(e, i, r, n, o$1, l, a, u, h$1 = new bn()) {
7758
+ constructor(e, i, r, n, o, l, a, u, h = new bn()) {
7761
7759
  super();
7762
7760
  this._bufferService = e;
7763
7761
  this._charsetService = i;
7764
7762
  this._coreService = r;
7765
7763
  this._logService = n;
7766
- this._optionsService = o$1;
7764
+ this._optionsService = o;
7767
7765
  this._oscLinkService = l;
7768
7766
  this._coreMouseService = a;
7769
7767
  this._unicodeService = u;
7770
- this._parser = h$1;
7768
+ this._parser = h;
7771
7769
  this._parseBuffer = new Uint32Array(4096);
7772
7770
  this._stringDecoder = new er();
7773
7771
  this._utf8Decoder = new tr();
@@ -7824,19 +7822,19 @@ var vl = 5e3, gl = 0, vn = class extends D {
7824
7822
  this._logService.debug("Unknown ESC code: ", { identifier: this._parser.identToString(c) });
7825
7823
  }), this._parser.setExecuteHandlerFallback((c) => {
7826
7824
  this._logService.debug("Unknown EXECUTE code: ", { code: c });
7827
- }), this._parser.setOscHandlerFallback((c, d, _$1) => {
7825
+ }), this._parser.setOscHandlerFallback((c, d, _) => {
7828
7826
  this._logService.debug("Unknown OSC code: ", {
7829
7827
  identifier: c,
7830
7828
  action: d,
7831
- data: _$1
7829
+ data: _
7832
7830
  });
7833
- }), this._parser.setDcsHandlerFallback((c, d, _$1) => {
7834
- d === "HOOK" && (_$1 = _$1.toArray()), this._logService.debug("Unknown DCS code: ", {
7831
+ }), this._parser.setDcsHandlerFallback((c, d, _) => {
7832
+ d === "HOOK" && (_ = _.toArray()), this._logService.debug("Unknown DCS code: ", {
7835
7833
  identifier: this._parser.identToString(c),
7836
7834
  action: d,
7837
- payload: _$1
7835
+ payload: _
7838
7836
  });
7839
- }), this._parser.setPrintHandler((c, d, _$1) => this.print(c, d, _$1)), this._parser.registerCsiHandler({ final: "@" }, (c) => this.insertChars(c)), this._parser.registerCsiHandler({
7837
+ }), this._parser.setPrintHandler((c, d, _) => this.print(c, d, _)), this._parser.registerCsiHandler({ final: "@" }, (c) => this.insertChars(c)), this._parser.registerCsiHandler({
7840
7838
  intermediates: " ",
7841
7839
  final: "@"
7842
7840
  }, (c) => this.scrollLeft(c)), this._parser.registerCsiHandler({ final: "A" }, (c) => this.cursorUp(c)), this._parser.registerCsiHandler({
@@ -7935,29 +7933,29 @@ var vl = 5e3, gl = 0, vn = class extends D {
7935
7933
  return this._curAttrData.extended.urlId;
7936
7934
  }
7937
7935
  parse(e, i) {
7938
- let r, n = this._activeBuffer.x, o$1 = this._activeBuffer.y, l = 0, a = this._parseStack.paused;
7936
+ let r, n = this._activeBuffer.x, o = this._activeBuffer.y, l = 0, a = this._parseStack.paused;
7939
7937
  if (a) {
7940
7938
  if (r = this._parser.parse(this._parseBuffer, this._parseStack.decodedLength, i)) return this._logSlowResolvingAsync(r), r;
7941
- n = this._parseStack.cursorStartX, o$1 = this._parseStack.cursorStartY, this._parseStack.paused = !1, e.length > ut && (l = this._parseStack.position + ut);
7939
+ n = this._parseStack.cursorStartX, o = this._parseStack.cursorStartY, this._parseStack.paused = !1, e.length > ut && (l = this._parseStack.position + ut);
7942
7940
  }
7943
7941
  if (this._logService.logLevel <= 1 && this._logService.debug(`parsing data ${typeof e == "string" ? ` "${e}"` : ` "${Array.prototype.map.call(e, (c) => String.fromCharCode(c)).join("")}"`}`), this._logService.logLevel === 0 && this._logService.trace("parsing data (codes)", typeof e == "string" ? e.split("").map((c) => c.charCodeAt(0)) : e), this._parseBuffer.length < e.length && this._parseBuffer.length < ut && (this._parseBuffer = new Uint32Array(Math.min(e.length, ut))), a || this._dirtyRowTracker.clearRange(), e.length > ut) for (let c = l; c < e.length; c += ut) {
7944
- let d = c + ut < e.length ? c + ut : e.length, _$1 = typeof e == "string" ? this._stringDecoder.decode(e.substring(c, d), this._parseBuffer) : this._utf8Decoder.decode(e.subarray(c, d), this._parseBuffer);
7945
- if (r = this._parser.parse(this._parseBuffer, _$1)) return this._preserveStack(n, o$1, _$1, c), this._logSlowResolvingAsync(r), r;
7942
+ let d = c + ut < e.length ? c + ut : e.length, _ = typeof e == "string" ? this._stringDecoder.decode(e.substring(c, d), this._parseBuffer) : this._utf8Decoder.decode(e.subarray(c, d), this._parseBuffer);
7943
+ if (r = this._parser.parse(this._parseBuffer, _)) return this._preserveStack(n, o, _, c), this._logSlowResolvingAsync(r), r;
7946
7944
  }
7947
7945
  else if (!a) {
7948
7946
  let c = typeof e == "string" ? this._stringDecoder.decode(e, this._parseBuffer) : this._utf8Decoder.decode(e, this._parseBuffer);
7949
- if (r = this._parser.parse(this._parseBuffer, c)) return this._preserveStack(n, o$1, c, 0), this._logSlowResolvingAsync(r), r;
7947
+ if (r = this._parser.parse(this._parseBuffer, c)) return this._preserveStack(n, o, c, 0), this._logSlowResolvingAsync(r), r;
7950
7948
  }
7951
- (this._activeBuffer.x !== n || this._activeBuffer.y !== o$1) && this._onCursorMove.fire();
7952
- let u = this._dirtyRowTracker.end + (this._bufferService.buffer.ybase - this._bufferService.buffer.ydisp), h$1 = this._dirtyRowTracker.start + (this._bufferService.buffer.ybase - this._bufferService.buffer.ydisp);
7953
- h$1 < this._bufferService.rows && this._onRequestRefreshRows.fire({
7954
- start: Math.min(h$1, this._bufferService.rows - 1),
7949
+ (this._activeBuffer.x !== n || this._activeBuffer.y !== o) && this._onCursorMove.fire();
7950
+ let u = this._dirtyRowTracker.end + (this._bufferService.buffer.ybase - this._bufferService.buffer.ydisp), h = this._dirtyRowTracker.start + (this._bufferService.buffer.ybase - this._bufferService.buffer.ydisp);
7951
+ h < this._bufferService.rows && this._onRequestRefreshRows.fire({
7952
+ start: Math.min(h, this._bufferService.rows - 1),
7955
7953
  end: Math.min(u, this._bufferService.rows - 1)
7956
7954
  });
7957
7955
  }
7958
7956
  print(e, i, r) {
7959
- let n, o$1, l = this._charsetService.charset, a = this._optionsService.rawOptions.screenReaderMode, u = this._bufferService.cols, h$1 = this._coreService.decPrivateModes.wraparound, c = this._coreService.modes.insertMode, d = this._curAttrData, _$1 = this._activeBuffer.lines.get(this._activeBuffer.ybase + this._activeBuffer.y);
7960
- this._dirtyRowTracker.markDirty(this._activeBuffer.y), this._activeBuffer.x && r - i > 0 && _$1.getWidth(this._activeBuffer.x - 1) === 2 && _$1.setCellFromCodepoint(this._activeBuffer.x - 1, 0, 1, d);
7957
+ let n, o, l = this._charsetService.charset, a = this._optionsService.rawOptions.screenReaderMode, u = this._bufferService.cols, h = this._coreService.decPrivateModes.wraparound, c = this._coreService.modes.insertMode, d = this._curAttrData, _ = this._activeBuffer.lines.get(this._activeBuffer.ybase + this._activeBuffer.y);
7958
+ this._dirtyRowTracker.markDirty(this._activeBuffer.y), this._activeBuffer.x && r - i > 0 && _.getWidth(this._activeBuffer.x - 1) === 2 && _.setCellFromCodepoint(this._activeBuffer.x - 1, 0, 1, d);
7961
7959
  let p = this._parser.precedingJoinState;
7962
7960
  for (let m = i; m < r; ++m) {
7963
7961
  if (n = e[m], n < 127 && l) {
@@ -7965,23 +7963,23 @@ var vl = 5e3, gl = 0, vn = class extends D {
7965
7963
  O && (n = O.charCodeAt(0));
7966
7964
  }
7967
7965
  let f = this._unicodeService.charProperties(n, p);
7968
- o$1 = Ae.extractWidth(f);
7966
+ o = Ae.extractWidth(f);
7969
7967
  let A = Ae.extractShouldJoin(f), R = A ? Ae.extractWidth(p) : 0;
7970
- if (p = f, a && this._onA11yChar.fire(Ce(n)), this._getCurrentLinkId() && this._oscLinkService.addLineToLink(this._getCurrentLinkId(), this._activeBuffer.ybase + this._activeBuffer.y), this._activeBuffer.x + o$1 - R > u) {
7971
- if (h$1) {
7972
- let O = _$1, I = this._activeBuffer.x - R;
7973
- for (this._activeBuffer.x = R, 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), _$1 = this._activeBuffer.lines.get(this._activeBuffer.ybase + this._activeBuffer.y), R > 0 && _$1 instanceof Ze && _$1.copyCellsFrom(O, I, 0, R, !1); I < u;) O.setCellFromCodepoint(I++, 0, 1, d);
7974
- } else if (this._activeBuffer.x = u - 1, o$1 === 2) continue;
7968
+ if (p = f, a && this._onA11yChar.fire(Ce(n)), this._getCurrentLinkId() && this._oscLinkService.addLineToLink(this._getCurrentLinkId(), this._activeBuffer.ybase + this._activeBuffer.y), this._activeBuffer.x + o - R > u) {
7969
+ if (h) {
7970
+ let O = _, I = this._activeBuffer.x - R;
7971
+ for (this._activeBuffer.x = R, 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), _ = this._activeBuffer.lines.get(this._activeBuffer.ybase + this._activeBuffer.y), R > 0 && _ instanceof Ze && _.copyCellsFrom(O, I, 0, R, !1); I < u;) O.setCellFromCodepoint(I++, 0, 1, d);
7972
+ } else if (this._activeBuffer.x = u - 1, o === 2) continue;
7975
7973
  }
7976
7974
  if (A && this._activeBuffer.x) {
7977
- let O = _$1.getWidth(this._activeBuffer.x - 1) ? 1 : 2;
7978
- _$1.addCodepointToCell(this._activeBuffer.x - O, n, o$1);
7979
- for (let I = o$1 - R; --I >= 0;) _$1.setCellFromCodepoint(this._activeBuffer.x++, 0, 0, d);
7975
+ let O = _.getWidth(this._activeBuffer.x - 1) ? 1 : 2;
7976
+ _.addCodepointToCell(this._activeBuffer.x - O, n, o);
7977
+ for (let I = o - R; --I >= 0;) _.setCellFromCodepoint(this._activeBuffer.x++, 0, 0, d);
7980
7978
  continue;
7981
7979
  }
7982
- if (c && (_$1.insertCells(this._activeBuffer.x, o$1 - R, this._activeBuffer.getNullCell(d)), _$1.getWidth(u - 1) === 2 && _$1.setCellFromCodepoint(u - 1, 0, 1, d)), _$1.setCellFromCodepoint(this._activeBuffer.x++, n, o$1, d), o$1 > 0) for (; --o$1;) _$1.setCellFromCodepoint(this._activeBuffer.x++, 0, 0, d);
7980
+ if (c && (_.insertCells(this._activeBuffer.x, o - R, this._activeBuffer.getNullCell(d)), _.getWidth(u - 1) === 2 && _.setCellFromCodepoint(u - 1, 0, 1, d)), _.setCellFromCodepoint(this._activeBuffer.x++, n, o, d), o > 0) for (; --o;) _.setCellFromCodepoint(this._activeBuffer.x++, 0, 0, d);
7983
7981
  }
7984
- this._parser.precedingJoinState = p, this._activeBuffer.x < u && r - i > 0 && _$1.getWidth(this._activeBuffer.x) === 0 && !_$1.hasContent(this._activeBuffer.x) && _$1.setCellFromCodepoint(this._activeBuffer.x, 0, 1, d), this._dirtyRowTracker.markDirty(this._activeBuffer.y);
7982
+ this._parser.precedingJoinState = p, this._activeBuffer.x < u && r - i > 0 && _.getWidth(this._activeBuffer.x) === 0 && !_.hasContent(this._activeBuffer.x) && _.setCellFromCodepoint(this._activeBuffer.x, 0, 1, d), this._dirtyRowTracker.markDirty(this._activeBuffer.y);
7985
7983
  }
7986
7984
  registerCsiHandler(e, i) {
7987
7985
  return e.final === "t" && !e.prefix && !e.intermediates ? this._parser.registerCsiHandler(e, (r) => bl(r.params[0], this._optionsService.rawOptions.windowOptions) ? i(r) : !0) : this._parser.registerCsiHandler(e, i);
@@ -8095,9 +8093,9 @@ var vl = 5e3, gl = 0, vn = class extends D {
8095
8093
  let i = e.params[0];
8096
8094
  return i === 1 && (this._curAttrData.bg |= 536870912), (i === 2 || i === 0) && (this._curAttrData.bg &= -536870913), !0;
8097
8095
  }
8098
- _eraseInBufferLine(e, i, r, n = !1, o$1 = !1) {
8096
+ _eraseInBufferLine(e, i, r, n = !1, o = !1) {
8099
8097
  let l = this._activeBuffer.lines.get(this._activeBuffer.ybase + e);
8100
- l.replaceCells(i, r, this._activeBuffer.getNullCell(this._eraseAttrData()), o$1), n && (l.isWrapped = !1);
8098
+ l.replaceCells(i, r, this._activeBuffer.getNullCell(this._eraseAttrData()), o), n && (l.isWrapped = !1);
8101
8099
  }
8102
8100
  _resetBufferLine(e, i = !1) {
8103
8101
  let r = this._activeBuffer.lines.get(this._activeBuffer.ybase + e);
@@ -8149,8 +8147,8 @@ var vl = 5e3, gl = 0, vn = class extends D {
8149
8147
  this._restrictCursor();
8150
8148
  let i = e.params[0] || 1;
8151
8149
  if (this._activeBuffer.y > this._activeBuffer.scrollBottom || this._activeBuffer.y < this._activeBuffer.scrollTop) return !0;
8152
- let r = this._activeBuffer.ybase + this._activeBuffer.y, n = this._bufferService.rows - 1 - this._activeBuffer.scrollBottom, o$1 = this._bufferService.rows - 1 + this._activeBuffer.ybase - n + 1;
8153
- for (; i--;) this._activeBuffer.lines.splice(o$1 - 1, 1), this._activeBuffer.lines.splice(r, 0, this._activeBuffer.getBlankLine(this._eraseAttrData()));
8150
+ let r = this._activeBuffer.ybase + this._activeBuffer.y, n = this._bufferService.rows - 1 - this._activeBuffer.scrollBottom, o = this._bufferService.rows - 1 + this._activeBuffer.ybase - n + 1;
8151
+ for (; i--;) this._activeBuffer.lines.splice(o - 1, 1), this._activeBuffer.lines.splice(r, 0, this._activeBuffer.getBlankLine(this._eraseAttrData()));
8154
8152
  return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y, this._activeBuffer.scrollBottom), this._activeBuffer.x = 0, !0;
8155
8153
  }
8156
8154
  deleteLines(e) {
@@ -8225,13 +8223,13 @@ var vl = 5e3, gl = 0, vn = class extends D {
8225
8223
  repeatPrecedingCharacter(e) {
8226
8224
  let i = this._parser.precedingJoinState;
8227
8225
  if (!i) return !0;
8228
- let r = e.params[0] || 1, n = Ae.extractWidth(i), o$1 = this._activeBuffer.x - n, a = this._activeBuffer.lines.get(this._activeBuffer.ybase + this._activeBuffer.y).getString(o$1), u = new Uint32Array(a.length * r), h$1 = 0;
8226
+ let r = e.params[0] || 1, n = Ae.extractWidth(i), o = this._activeBuffer.x - n, a = this._activeBuffer.lines.get(this._activeBuffer.ybase + this._activeBuffer.y).getString(o), u = new Uint32Array(a.length * r), h = 0;
8229
8227
  for (let d = 0; d < a.length;) {
8230
- let _$1 = a.codePointAt(d) || 0;
8231
- u[h$1++] = _$1, d += _$1 > 65535 ? 2 : 1;
8228
+ let _ = a.codePointAt(d) || 0;
8229
+ u[h++] = _, d += _ > 65535 ? 2 : 1;
8232
8230
  }
8233
- let c = h$1;
8234
- for (let d = 1; d < r; ++d) u.copyWithin(c, 0, h$1), c += h$1;
8231
+ let c = h;
8232
+ for (let d = 1; d < r; ++d) u.copyWithin(c, 0, h), c += h;
8235
8233
  return this.print(u, 0, c), !0;
8236
8234
  }
8237
8235
  sendDeviceAttributesPrimary(e) {
@@ -8405,14 +8403,14 @@ var vl = 5e3, gl = 0, vn = class extends D {
8405
8403
  requestMode(e, i) {
8406
8404
  let r;
8407
8405
  ((P) => (P[P.NOT_RECOGNIZED = 0] = "NOT_RECOGNIZED", P[P.SET = 1] = "SET", P[P.RESET = 2] = "RESET", P[P.PERMANENTLY_SET = 3] = "PERMANENTLY_SET", P[P.PERMANENTLY_RESET = 4] = "PERMANENTLY_RESET"))(r ||= {});
8408
- let n = this._coreService.decPrivateModes, { activeProtocol: o$1, activeEncoding: l } = this._coreMouseService, a = this._coreService, { buffers: u, cols: h$1 } = this._bufferService, { active: c, alt: d } = u, _$1 = this._optionsService.rawOptions, p = (A, R) => (a.triggerDataEvent(`${b.ESC}[${i ? "" : "?"}${A};${R}$y`), !0), m = (A) => A ? 1 : 2, f = e.params[0];
8409
- return i ? f === 2 ? p(f, 4) : f === 4 ? p(f, m(a.modes.insertMode)) : f === 12 ? p(f, 3) : f === 20 ? p(f, m(_$1.convertEol)) : p(f, 0) : f === 1 ? p(f, m(n.applicationCursorKeys)) : f === 3 ? p(f, _$1.windowOptions.setWinLines ? h$1 === 80 ? 2 : h$1 === 132 ? 1 : 0 : 0) : f === 6 ? p(f, m(n.origin)) : f === 7 ? p(f, m(n.wraparound)) : f === 8 ? p(f, 3) : f === 9 ? p(f, m(o$1 === "X10")) : f === 12 ? p(f, m(_$1.cursorBlink)) : f === 25 ? p(f, m(!a.isCursorHidden)) : f === 45 ? p(f, m(n.reverseWraparound)) : f === 66 ? p(f, m(n.applicationKeypad)) : f === 67 ? p(f, 4) : f === 1e3 ? p(f, m(o$1 === "VT200")) : f === 1002 ? p(f, m(o$1 === "DRAG")) : f === 1003 ? p(f, m(o$1 === "ANY")) : f === 1004 ? p(f, m(n.sendFocus)) : f === 1005 ? p(f, 4) : f === 1006 ? p(f, m(l === "SGR")) : f === 1015 ? p(f, 4) : f === 1016 ? p(f, m(l === "SGR_PIXELS")) : f === 1048 ? p(f, 1) : f === 47 || f === 1047 || f === 1049 ? p(f, m(c === d)) : f === 2004 ? p(f, m(n.bracketedPasteMode)) : f === 2026 ? p(f, m(n.synchronizedOutput)) : p(f, 0);
8406
+ let n = this._coreService.decPrivateModes, { activeProtocol: o, activeEncoding: l } = this._coreMouseService, a = this._coreService, { buffers: u, cols: h } = this._bufferService, { active: c, alt: d } = u, _ = this._optionsService.rawOptions, p = (A, R) => (a.triggerDataEvent(`${b.ESC}[${i ? "" : "?"}${A};${R}$y`), !0), m = (A) => A ? 1 : 2, f = e.params[0];
8407
+ return i ? f === 2 ? p(f, 4) : f === 4 ? p(f, m(a.modes.insertMode)) : f === 12 ? p(f, 3) : f === 20 ? p(f, m(_.convertEol)) : p(f, 0) : f === 1 ? p(f, m(n.applicationCursorKeys)) : f === 3 ? p(f, _.windowOptions.setWinLines ? h === 80 ? 2 : h === 132 ? 1 : 0 : 0) : f === 6 ? p(f, m(n.origin)) : f === 7 ? p(f, m(n.wraparound)) : f === 8 ? p(f, 3) : f === 9 ? p(f, m(o === "X10")) : f === 12 ? p(f, m(_.cursorBlink)) : f === 25 ? p(f, m(!a.isCursorHidden)) : f === 45 ? p(f, m(n.reverseWraparound)) : f === 66 ? p(f, m(n.applicationKeypad)) : f === 67 ? p(f, 4) : f === 1e3 ? p(f, m(o === "VT200")) : f === 1002 ? p(f, m(o === "DRAG")) : f === 1003 ? p(f, m(o === "ANY")) : f === 1004 ? p(f, m(n.sendFocus)) : f === 1005 ? p(f, 4) : f === 1006 ? p(f, m(l === "SGR")) : f === 1015 ? p(f, 4) : f === 1016 ? p(f, m(l === "SGR_PIXELS")) : f === 1048 ? p(f, 1) : f === 47 || f === 1047 || f === 1049 ? p(f, m(c === d)) : f === 2004 ? p(f, m(n.bracketedPasteMode)) : f === 2026 ? p(f, m(n.synchronizedOutput)) : p(f, 0);
8410
8408
  }
8411
- _updateAttrColor(e, i, r, n, o$1) {
8409
+ _updateAttrColor(e, i, r, n, o) {
8412
8410
  return i === 2 ? (e |= 50331648, e &= -16777216, e |= De.fromColorRGB([
8413
8411
  r,
8414
8412
  n,
8415
- o$1
8413
+ o
8416
8414
  ])) : i === 5 && (e &= -50331904, e |= 33554432 | r & 255), e;
8417
8415
  }
8418
8416
  _extractColor(e, i, r) {
@@ -8423,18 +8421,18 @@ var vl = 5e3, gl = 0, vn = class extends D {
8423
8421
  0,
8424
8422
  0,
8425
8423
  0
8426
- ], o$1 = 0, l = 0;
8424
+ ], o = 0, l = 0;
8427
8425
  do {
8428
- if (n[l + o$1] = e.params[i + l], e.hasSubParams(i + l)) {
8426
+ if (n[l + o] = e.params[i + l], e.hasSubParams(i + l)) {
8429
8427
  let a = e.getSubParams(i + l), u = 0;
8430
8428
  do
8431
- n[1] === 5 && (o$1 = 1), n[l + u + 1 + o$1] = a[u];
8432
- while (++u < a.length && u + l + 1 + o$1 < n.length);
8429
+ n[1] === 5 && (o = 1), n[l + u + 1 + o] = a[u];
8430
+ while (++u < a.length && u + l + 1 + o < n.length);
8433
8431
  break;
8434
8432
  }
8435
- if (n[1] === 5 && l + o$1 >= 2 || n[1] === 2 && l + o$1 >= 5) break;
8436
- n[1] && (o$1 = 1);
8437
- } while (++l + i < e.length && l + o$1 < n.length);
8433
+ if (n[1] === 5 && l + o >= 2 || n[1] === 2 && l + o >= 5) break;
8434
+ n[1] && (o = 1);
8435
+ } while (++l + i < e.length && l + o < n.length);
8438
8436
  for (let a = 2; a < n.length; ++a) n[a] === -1 && (n[a] = 0);
8439
8437
  switch (n[0]) {
8440
8438
  case 38:
@@ -8456,7 +8454,7 @@ var vl = 5e3, gl = 0, vn = class extends D {
8456
8454
  charAttributes(e) {
8457
8455
  if (e.length === 1 && e.params[0] === 0) return this._processSGR0(this._curAttrData), !0;
8458
8456
  let i = e.length, r, n = this._curAttrData;
8459
- for (let o$1 = 0; o$1 < i; o$1++) r = e.params[o$1], r >= 30 && r <= 37 ? (n.fg &= -50331904, n.fg |= 16777216 | r - 30) : r >= 40 && r <= 47 ? (n.bg &= -50331904, n.bg |= 16777216 | r - 40) : r >= 90 && r <= 97 ? (n.fg &= -50331904, n.fg |= r - 90 | 16777224) : r >= 100 && r <= 107 ? (n.bg &= -50331904, n.bg |= r - 100 | 16777224) : r === 0 ? this._processSGR0(n) : r === 1 ? n.fg |= 134217728 : r === 3 ? n.bg |= 67108864 : r === 4 ? (n.fg |= 268435456, this._processUnderline(e.hasSubParams(o$1) ? e.getSubParams(o$1)[0] : 1, n)) : r === 5 ? n.fg |= 536870912 : r === 7 ? n.fg |= 67108864 : r === 8 ? n.fg |= 1073741824 : r === 9 ? n.fg |= 2147483648 : r === 2 ? n.bg |= 134217728 : r === 21 ? this._processUnderline(2, n) : r === 22 ? (n.fg &= -134217729, n.bg &= -134217729) : r === 23 ? n.bg &= -67108865 : r === 24 ? (n.fg &= -268435457, this._processUnderline(0, n)) : r === 25 ? n.fg &= -536870913 : r === 27 ? n.fg &= -67108865 : r === 28 ? n.fg &= -1073741825 : r === 29 ? n.fg &= 2147483647 : r === 39 ? (n.fg &= -67108864, n.fg |= X.fg & 16777215) : r === 49 ? (n.bg &= -67108864, n.bg |= X.bg & 16777215) : r === 38 || r === 48 || r === 58 ? o$1 += this._extractColor(e, o$1, n) : r === 53 ? n.bg |= 1073741824 : r === 55 ? n.bg &= -1073741825 : r === 59 ? (n.extended = n.extended.clone(), n.extended.underlineColor = -1, n.updateExtended()) : r === 100 ? (n.fg &= -67108864, n.fg |= X.fg & 16777215, n.bg &= -67108864, n.bg |= X.bg & 16777215) : this._logService.debug("Unknown SGR attribute: %d.", r);
8457
+ for (let o = 0; o < i; o++) r = e.params[o], r >= 30 && r <= 37 ? (n.fg &= -50331904, n.fg |= 16777216 | r - 30) : r >= 40 && r <= 47 ? (n.bg &= -50331904, n.bg |= 16777216 | r - 40) : r >= 90 && r <= 97 ? (n.fg &= -50331904, n.fg |= r - 90 | 16777224) : r >= 100 && r <= 107 ? (n.bg &= -50331904, n.bg |= r - 100 | 16777224) : r === 0 ? this._processSGR0(n) : r === 1 ? n.fg |= 134217728 : r === 3 ? n.bg |= 67108864 : r === 4 ? (n.fg |= 268435456, this._processUnderline(e.hasSubParams(o) ? e.getSubParams(o)[0] : 1, n)) : r === 5 ? n.fg |= 536870912 : r === 7 ? n.fg |= 67108864 : r === 8 ? n.fg |= 1073741824 : r === 9 ? n.fg |= 2147483648 : r === 2 ? n.bg |= 134217728 : r === 21 ? this._processUnderline(2, n) : r === 22 ? (n.fg &= -134217729, n.bg &= -134217729) : r === 23 ? n.bg &= -67108865 : r === 24 ? (n.fg &= -268435457, this._processUnderline(0, n)) : r === 25 ? n.fg &= -536870913 : r === 27 ? n.fg &= -67108865 : r === 28 ? n.fg &= -1073741825 : r === 29 ? n.fg &= 2147483647 : r === 39 ? (n.fg &= -67108864, n.fg |= X.fg & 16777215) : r === 49 ? (n.bg &= -67108864, n.bg |= X.bg & 16777215) : r === 38 || r === 48 || r === 58 ? o += this._extractColor(e, o, n) : r === 53 ? n.bg |= 1073741824 : r === 55 ? n.bg &= -1073741825 : r === 59 ? (n.extended = n.extended.clone(), n.extended.underlineColor = -1, n.updateExtended()) : r === 100 ? (n.fg &= -67108864, n.fg |= X.fg & 16777215, n.bg &= -67108864, n.bg |= X.bg & 16777215) : this._logService.debug("Unknown SGR attribute: %d.", r);
8460
8458
  return !0;
8461
8459
  }
8462
8460
  deviceStatus(e) {
@@ -8551,15 +8549,15 @@ var vl = 5e3, gl = 0, vn = class extends D {
8551
8549
  setOrReportIndexedColor(e) {
8552
8550
  let i = [], r = e.split(";");
8553
8551
  for (; r.length > 1;) {
8554
- let n = r.shift(), o$1 = r.shift();
8552
+ let n = r.shift(), o = r.shift();
8555
8553
  if (/^\d+$/.exec(n)) {
8556
8554
  let l = parseInt(n);
8557
- if (Sl(l)) if (o$1 === "?") i.push({
8555
+ if (Sl(l)) if (o === "?") i.push({
8558
8556
  type: 0,
8559
8557
  index: l
8560
8558
  });
8561
8559
  else {
8562
- let a = Ws(o$1);
8560
+ let a = Ws(o);
8563
8561
  a && i.push({
8564
8562
  type: 1,
8565
8563
  index: l,
@@ -8578,8 +8576,8 @@ var vl = 5e3, gl = 0, vn = class extends D {
8578
8576
  }
8579
8577
  _createHyperlink(e, i) {
8580
8578
  this._getCurrentLinkId() && this._finishHyperlink();
8581
- let r = e.split(":"), n, o$1 = r.findIndex((l) => l.startsWith("id="));
8582
- return o$1 !== -1 && (n = r[o$1].slice(3) || void 0), this._curAttrData.extended = this._curAttrData.extended.clone(), this._curAttrData.extended.urlId = this._oscLinkService.registerLink({
8579
+ let r = e.split(":"), n, o = r.findIndex((l) => l.startsWith("id="));
8580
+ return o !== -1 && (n = r[o].slice(3) || void 0), this._curAttrData.extended = this._curAttrData.extended.clone(), this._curAttrData.extended.urlId = this._oscLinkService.registerLink({
8583
8581
  id: n,
8584
8582
  uri: i
8585
8583
  }), this._curAttrData.updateExtended(), !0;
@@ -8594,11 +8592,11 @@ var vl = 5e3, gl = 0, vn = class extends D {
8594
8592
  index: this._specialColors[i]
8595
8593
  }]);
8596
8594
  else {
8597
- let o$1 = Ws(r[n]);
8598
- o$1 && this._onColor.fire([{
8595
+ let o = Ws(r[n]);
8596
+ o && this._onColor.fire([{
8599
8597
  type: 1,
8600
8598
  index: this._specialColors[i],
8601
- color: o$1
8599
+ color: o
8602
8600
  }]);
8603
8601
  }
8604
8602
  return !0;
@@ -8616,10 +8614,10 @@ var vl = 5e3, gl = 0, vn = class extends D {
8616
8614
  if (!e) return this._onColor.fire([{ type: 2 }]), !0;
8617
8615
  let i = [], r = e.split(";");
8618
8616
  for (let n = 0; n < r.length; ++n) if (/^\d+$/.exec(r[n])) {
8619
- let o$1 = parseInt(r[n]);
8620
- Sl(o$1) && i.push({
8617
+ let o = parseInt(r[n]);
8618
+ Sl(o) && i.push({
8621
8619
  type: 2,
8622
- index: o$1
8620
+ index: o
8623
8621
  });
8624
8622
  }
8625
8623
  return i.length && this._onColor.fire(i), !0;
@@ -8692,12 +8690,12 @@ var vl = 5e3, gl = 0, vn = class extends D {
8692
8690
  return this._dirtyRowTracker.markAllDirty(), this._setCursor(0, 0), !0;
8693
8691
  }
8694
8692
  requestStatusString(e, i) {
8695
- let r = (a) => (this._coreService.triggerDataEvent(`${b.ESC}${a}${b.ESC}\\`), !0), n = this._bufferService.buffer, o$1 = this._optionsService.rawOptions;
8693
+ let r = (a) => (this._coreService.triggerDataEvent(`${b.ESC}${a}${b.ESC}\\`), !0), n = this._bufferService.buffer, o = this._optionsService.rawOptions;
8696
8694
  return r(e === "\"q" ? `P1$r${this._curAttrData.isProtected() ? 1 : 0}"q` : e === "\"p" ? "P1$r61;1\"p" : e === "r" ? `P1$r${n.scrollTop + 1};${n.scrollBottom + 1}r` : e === "m" ? "P1$r0m" : e === " q" ? `P1$r${{
8697
8695
  block: 2,
8698
8696
  underline: 4,
8699
8697
  bar: 6
8700
- }[o$1.cursorStyle] - (o$1.cursorBlink ? 1 : 0)} q` : "P0$r");
8698
+ }[o.cursorStyle] - (o.cursorBlink ? 1 : 0)} q` : "P0$r");
8701
8699
  }
8702
8700
  markRangeDirty(e, i) {
8703
8701
  this._dirtyRowTracker.markRangeDirty(e, i);
@@ -8770,10 +8768,10 @@ var _c = 5e7, El = 12, bc = 50, gn = class extends D {
8770
8768
  _innerWrite(e = 0, i = !0) {
8771
8769
  let r = e || performance.now();
8772
8770
  for (; this._writeBuffer.length > this._bufferOffset;) {
8773
- let n = this._writeBuffer[this._bufferOffset], o$1 = this._action(n, i);
8774
- if (o$1) {
8771
+ let n = this._writeBuffer[this._bufferOffset], o = this._action(n, i);
8772
+ if (o) {
8775
8773
  let a = (u) => performance.now() - r >= El ? setTimeout(() => this._innerWrite(0, u)) : this._innerWrite(r, u);
8776
- o$1.catch((u) => (queueMicrotask(() => {
8774
+ o.catch((u) => (queueMicrotask(() => {
8777
8775
  throw u;
8778
8776
  }), Promise.resolve(!1))).then(a);
8779
8777
  return;
@@ -8803,13 +8801,13 @@ var ui = class {
8803
8801
  }
8804
8802
  let i = t, r = this._getEntryIdKey(i), n = this._entriesWithId.get(r);
8805
8803
  if (n) return this.addLineToLink(n.id, e.ybase + e.y), n.id;
8806
- let o$1 = e.addMarker(e.ybase + e.y), l = {
8804
+ let o = e.addMarker(e.ybase + e.y), l = {
8807
8805
  id: this._nextId++,
8808
8806
  key: this._getEntryIdKey(i),
8809
8807
  data: i,
8810
- lines: [o$1]
8808
+ lines: [o]
8811
8809
  };
8812
- return o$1.onDispose(() => this._removeMarkerFromLink(l, o$1)), this._entriesWithId.set(l.key, l), this._dataByLinkId.set(l.id, l), l.id;
8810
+ return o.onDispose(() => this._removeMarkerFromLink(l, o)), this._entriesWithId.set(l.key, l), this._dataByLinkId.set(l.id, l), l.id;
8813
8811
  }
8814
8812
  addLineToLink(t, e) {
8815
8813
  let i = this._dataByLinkId.get(t);
@@ -9086,7 +9084,7 @@ var ee = 0, En = class {
9086
9084
  this._flushCleanupDeleted(), this._insertedValues.length === 0 && this._flushInsertedTask.enqueue(() => this._flushInserted()), this._insertedValues.push(t);
9087
9085
  }
9088
9086
  _flushInserted() {
9089
- let t = this._insertedValues.sort((n, o$1) => this._getKey(n) - this._getKey(o$1)), e = 0, i = 0, r = new Array(this._array.length + this._insertedValues.length);
9087
+ let t = this._insertedValues.sort((n, o) => this._getKey(n) - this._getKey(o)), e = 0, i = 0, r = new Array(this._array.length + this._insertedValues.length);
9090
9088
  for (let n = 0; n < r.length; n++) i >= this._array.length || this._getKey(t[e]) <= this._getKey(this._array[i]) ? (r[n] = t[e], e++) : r[n] = this._array[i++];
9091
9089
  this._array = r, this._insertedValues.length = 0;
9092
9090
  }
@@ -9104,7 +9102,7 @@ var ee = 0, En = class {
9104
9102
  }
9105
9103
  _flushDeleted() {
9106
9104
  this._isFlushingDeleted = !0;
9107
- let t = this._deletedIndices.sort((n, o$1) => n - o$1), e = 0, i = new Array(this._array.length - t.length), r = 0;
9105
+ let t = this._deletedIndices.sort((n, o) => n - o), e = 0, i = new Array(this._array.length - t.length), r = 0;
9108
9106
  for (let n = 0; n < this._array.length; n++) t[e] === n ? e++ : i[r++] = this._array[n];
9109
9107
  this._array = i, this._deletedIndices.length = 0, this._isFlushingDeleted = !1;
9110
9108
  }
@@ -9167,12 +9165,12 @@ var Us = 0, yl = 0, Tn = class extends D {
9167
9165
  this._decorations.clear();
9168
9166
  }
9169
9167
  *getDecorationsAtCell(e, i, r) {
9170
- let n = 0, o$1 = 0;
9171
- for (let l of this._decorations.getKeyIterator(i)) n = l.options.x ?? 0, o$1 = n + (l.options.width ?? 1), e >= n && e < o$1 && (!r || (l.options.layer ?? "bottom") === r) && (yield l);
9168
+ let n = 0, o = 0;
9169
+ for (let l of this._decorations.getKeyIterator(i)) n = l.options.x ?? 0, o = n + (l.options.width ?? 1), e >= n && e < o && (!r || (l.options.layer ?? "bottom") === r) && (yield l);
9172
9170
  }
9173
9171
  forEachDecorationAtCell(e, i, r, n) {
9174
- this._decorations.forEachByKey(i, (o$1) => {
9175
- Us = o$1.options.x ?? 0, yl = Us + (o$1.options.width ?? 1), e >= Us && e < yl && (!r || (o$1.options.layer ?? "bottom") === r) && n(o$1);
9172
+ this._decorations.forEachByKey(i, (o) => {
9173
+ Us = o.options.x ?? 0, yl = Us + (o.options.width ?? 1), e >= Us && e < yl && (!r || (o.options.layer ?? "bottom") === r) && n(o);
9176
9174
  });
9177
9175
  }
9178
9176
  }, Ks = class extends Ee {
@@ -9212,10 +9210,10 @@ var Sc = 1e3, In = class {
9212
9210
  let r = performance.now();
9213
9211
  if (r - this._lastRefreshMs >= this._debounceThresholdMS) this._lastRefreshMs = r, this._innerRefresh();
9214
9212
  else if (!this._additionalRefreshRequested) {
9215
- let n = r - this._lastRefreshMs, o$1 = this._debounceThresholdMS - n;
9213
+ let n = r - this._lastRefreshMs, o = this._debounceThresholdMS - n;
9216
9214
  this._additionalRefreshRequested = !0, this._refreshTimeoutID = window.setTimeout(() => {
9217
9215
  this._lastRefreshMs = performance.now(), this._innerRefresh(), this._additionalRefreshRequested = !1, this._refreshTimeoutID = void 0;
9218
- }, o$1);
9216
+ }, o);
9219
9217
  }
9220
9218
  }
9221
9219
  _innerRefresh() {
@@ -9235,12 +9233,12 @@ var wl = !1, Tt = class extends D {
9235
9233
  this._liveRegionLineCount = 0;
9236
9234
  this._charsToConsume = [];
9237
9235
  this._charsToAnnounce = "";
9238
- let o$1 = this._coreBrowserService.mainDocument;
9239
- this._accessibilityContainer = o$1.createElement("div"), this._accessibilityContainer.classList.add("xterm-accessibility"), this._rowContainer = o$1.createElement("div"), this._rowContainer.setAttribute("role", "list"), this._rowContainer.classList.add("xterm-accessibility-tree"), this._rowElements = [];
9236
+ let o = this._coreBrowserService.mainDocument;
9237
+ this._accessibilityContainer = o.createElement("div"), this._accessibilityContainer.classList.add("xterm-accessibility"), this._rowContainer = o.createElement("div"), this._rowContainer.setAttribute("role", "list"), this._rowContainer.classList.add("xterm-accessibility-tree"), this._rowElements = [];
9240
9238
  for (let l = 0; l < this._terminal.rows; l++) this._rowElements[l] = this._createAccessibilityTreeNode(), this._rowContainer.appendChild(this._rowElements[l]);
9241
- if (this._topBoundaryFocusListener = (l) => this._handleBoundaryFocus(l, 0), this._bottomBoundaryFocusListener = (l) => this._handleBoundaryFocus(l, 1), this._rowElements[0].addEventListener("focus", this._topBoundaryFocusListener), this._rowElements[this._rowElements.length - 1].addEventListener("focus", this._bottomBoundaryFocusListener), this._accessibilityContainer.appendChild(this._rowContainer), this._liveRegion = o$1.createElement("div"), this._liveRegion.classList.add("live-region"), this._liveRegion.setAttribute("aria-live", "assertive"), this._accessibilityContainer.appendChild(this._liveRegion), this._liveRegionDebouncer = this._register(new In(this._renderRows.bind(this))), !this._terminal.element) throw new Error("Cannot enable accessibility before Terminal.open");
9242
- wl ? (this._accessibilityContainer.classList.add("debug"), this._rowContainer.classList.add("debug"), this._debugRootContainer = o$1.createElement("div"), this._debugRootContainer.classList.add("xterm"), this._debugRootContainer.appendChild(o$1.createTextNode("------start a11y------")), this._debugRootContainer.appendChild(this._accessibilityContainer), this._debugRootContainer.appendChild(o$1.createTextNode("------end a11y------")), this._terminal.element.insertAdjacentElement("afterend", this._debugRootContainer)) : this._terminal.element.insertAdjacentElement("afterbegin", this._accessibilityContainer), this._register(this._terminal.onResize((l) => this._handleResize(l.rows))), this._register(this._terminal.onRender((l) => this._refreshRows(l.start, l.end))), this._register(this._terminal.onScroll(() => this._refreshRows())), this._register(this._terminal.onA11yChar((l) => this._handleChar(l))), this._register(this._terminal.onLineFeed(() => this._handleChar(`
9243
- `))), this._register(this._terminal.onA11yTab((l) => this._handleTab(l))), this._register(this._terminal.onKey((l) => this._handleKey(l.key))), this._register(this._terminal.onBlur(() => this._clearLiveRegion())), this._register(this._renderService.onDimensionsChange(() => this._refreshRowsDimensions())), this._register(L(o$1, "selectionchange", () => this._handleSelectionChange())), this._register(this._coreBrowserService.onDprChange(() => this._refreshRowsDimensions())), this._refreshRowsDimensions(), this._refreshRows(), this._register(C(() => {
9239
+ if (this._topBoundaryFocusListener = (l) => this._handleBoundaryFocus(l, 0), this._bottomBoundaryFocusListener = (l) => this._handleBoundaryFocus(l, 1), this._rowElements[0].addEventListener("focus", this._topBoundaryFocusListener), this._rowElements[this._rowElements.length - 1].addEventListener("focus", this._bottomBoundaryFocusListener), this._accessibilityContainer.appendChild(this._rowContainer), this._liveRegion = o.createElement("div"), this._liveRegion.classList.add("live-region"), this._liveRegion.setAttribute("aria-live", "assertive"), this._accessibilityContainer.appendChild(this._liveRegion), this._liveRegionDebouncer = this._register(new In(this._renderRows.bind(this))), !this._terminal.element) throw new Error("Cannot enable accessibility before Terminal.open");
9240
+ wl ? (this._accessibilityContainer.classList.add("debug"), this._rowContainer.classList.add("debug"), this._debugRootContainer = o.createElement("div"), this._debugRootContainer.classList.add("xterm"), this._debugRootContainer.appendChild(o.createTextNode("------start a11y------")), this._debugRootContainer.appendChild(this._accessibilityContainer), this._debugRootContainer.appendChild(o.createTextNode("------end a11y------")), this._terminal.element.insertAdjacentElement("afterend", this._debugRootContainer)) : this._terminal.element.insertAdjacentElement("afterbegin", this._accessibilityContainer), this._register(this._terminal.onResize((l) => this._handleResize(l.rows))), this._register(this._terminal.onRender((l) => this._refreshRows(l.start, l.end))), this._register(this._terminal.onScroll(() => this._refreshRows())), this._register(this._terminal.onA11yChar((l) => this._handleChar(l))), this._register(this._terminal.onLineFeed(() => this._handleChar(`
9241
+ `))), this._register(this._terminal.onA11yTab((l) => this._handleTab(l))), this._register(this._terminal.onKey((l) => this._handleKey(l.key))), this._register(this._terminal.onBlur(() => this._clearLiveRegion())), this._register(this._renderService.onDimensionsChange(() => this._refreshRowsDimensions())), this._register(L(o, "selectionchange", () => this._handleSelectionChange())), this._register(this._coreBrowserService.onDprChange(() => this._refreshRowsDimensions())), this._refreshRowsDimensions(), this._refreshRows(), this._register(C(() => {
9244
9242
  wl ? this._debugRootContainer.remove() : this._accessibilityContainer.remove(), this._rowElements.length = 0;
9245
9243
  }));
9246
9244
  }
@@ -9262,9 +9260,9 @@ var wl = !1, Tt = class extends D {
9262
9260
  }
9263
9261
  _renderRows(e, i) {
9264
9262
  let r = this._terminal.buffer, n = r.lines.length.toString();
9265
- for (let o$1 = e; o$1 <= i; o$1++) {
9266
- let l = r.lines.get(r.ydisp + o$1), a = [], u = l?.translateToString(!0, void 0, void 0, a) || "", h$1 = (r.ydisp + o$1 + 1).toString(), c = this._rowElements[o$1];
9267
- c && (u.length === 0 ? (c.textContent = "\xA0", this._rowColumns.set(c, [0, 1])) : (c.textContent = u, this._rowColumns.set(c, a)), c.setAttribute("aria-posinset", h$1), c.setAttribute("aria-setsize", n), this._alignRowWidth(c));
9263
+ for (let o = e; o <= i; o++) {
9264
+ let l = r.lines.get(r.ydisp + o), a = [], u = l?.translateToString(!0, void 0, void 0, a) || "", h = (r.ydisp + o + 1).toString(), c = this._rowElements[o];
9265
+ c && (u.length === 0 ? (c.textContent = "\xA0", this._rowColumns.set(c, [0, 1])) : (c.textContent = u, this._rowColumns.set(c, a)), c.setAttribute("aria-posinset", h), c.setAttribute("aria-setsize", n), this._alignRowWidth(c));
9268
9266
  }
9269
9267
  this._announceCharacters();
9270
9268
  }
@@ -9276,11 +9274,11 @@ var wl = !1, Tt = class extends D {
9276
9274
  if (r.getAttribute("aria-posinset") === (i === 0 ? "1" : `${this._terminal.buffer.lines.length}`) || e.relatedTarget !== n) return;
9277
9275
  let a, u;
9278
9276
  if (i === 0 ? (a = r, u = this._rowElements.pop(), this._rowContainer.removeChild(u)) : (a = this._rowElements.shift(), u = r, this._rowContainer.removeChild(a)), a.removeEventListener("focus", this._topBoundaryFocusListener), u.removeEventListener("focus", this._bottomBoundaryFocusListener), i === 0) {
9279
- let h$1 = this._createAccessibilityTreeNode();
9280
- this._rowElements.unshift(h$1), this._rowContainer.insertAdjacentElement("afterbegin", h$1);
9277
+ let h = this._createAccessibilityTreeNode();
9278
+ this._rowElements.unshift(h), this._rowContainer.insertAdjacentElement("afterbegin", h);
9281
9279
  } else {
9282
- let h$1 = this._createAccessibilityTreeNode();
9283
- this._rowElements.push(h$1), this._rowContainer.appendChild(h$1);
9280
+ let h = this._createAccessibilityTreeNode();
9281
+ this._rowElements.push(h), this._rowContainer.appendChild(h);
9284
9282
  }
9285
9283
  this._rowElements[0].addEventListener("focus", this._topBoundaryFocusListener), this._rowElements[this._rowElements.length - 1].addEventListener("focus", this._bottomBoundaryFocusListener), this._terminal.scrollLines(i === 0 ? -1 : 1), this._rowElements[i === 0 ? 1 : this._rowElements.length - 2].focus(), e.preventDefault(), e.stopImmediatePropagation();
9286
9284
  }
@@ -9312,17 +9310,17 @@ var wl = !1, Tt = class extends D {
9312
9310
  node: n,
9313
9311
  offset: n.textContent?.length ?? 0
9314
9312
  }), !this._rowContainer.contains(r.node)) return;
9315
- let o$1 = ({ node: u, offset: h$1 }) => {
9313
+ let o = ({ node: u, offset: h }) => {
9316
9314
  let c = u instanceof Text ? u.parentNode : u, d = parseInt(c?.getAttribute("aria-posinset"), 10) - 1;
9317
9315
  if (isNaN(d)) return console.warn("row is invalid. Race condition?"), null;
9318
- let _$1 = this._rowColumns.get(c);
9319
- if (!_$1) return console.warn("columns is null. Race condition?"), null;
9320
- let p = h$1 < _$1.length ? _$1[h$1] : _$1.slice(-1)[0] + 1;
9316
+ let _ = this._rowColumns.get(c);
9317
+ if (!_) return console.warn("columns is null. Race condition?"), null;
9318
+ let p = h < _.length ? _[h] : _.slice(-1)[0] + 1;
9321
9319
  return p >= this._terminal.cols && (++d, p = 0), {
9322
9320
  row: d,
9323
9321
  column: p
9324
9322
  };
9325
- }, l = o$1(i), a = o$1(r);
9323
+ }, l = o(i), a = o(r);
9326
9324
  if (!(!l || !a)) {
9327
9325
  if (l.row > a.row || l.row === a.row && l.column >= a.column) throw new Error("invalid range");
9328
9326
  this._terminal.select(l.column, l.row, (a.row - l.row) * this._terminal.cols - l.column + a.column);
@@ -9364,13 +9362,13 @@ Tt = M([
9364
9362
  S(3, ce)
9365
9363
  ], Tt);
9366
9364
  var hi = class extends D {
9367
- constructor(e, i, r, n, o$1) {
9365
+ constructor(e, i, r, n, o) {
9368
9366
  super();
9369
9367
  this._element = e;
9370
9368
  this._mouseService = i;
9371
9369
  this._renderService = r;
9372
9370
  this._bufferService = n;
9373
- this._linkProviderService = o$1;
9371
+ this._linkProviderService = o;
9374
9372
  this._linkCacheDisposables = [];
9375
9373
  this._isMouseOut = !0;
9376
9374
  this._wasResized = !1;
@@ -9397,9 +9395,9 @@ var hi = class extends D {
9397
9395
  this._isMouseOut = !1;
9398
9396
  let r = e.composedPath();
9399
9397
  for (let n = 0; n < r.length; n++) {
9400
- let o$1 = r[n];
9401
- if (o$1.classList.contains("xterm")) break;
9402
- if (o$1.classList.contains("xterm-hover")) return;
9398
+ let o = r[n];
9399
+ if (o.classList.contains("xterm")) break;
9400
+ if (o.classList.contains("xterm-hover")) return;
9403
9401
  }
9404
9402
  (!this._lastBufferCell || i.x !== this._lastBufferCell.x || i.y !== this._lastBufferCell.y) && (this._handleHover(i), this._lastBufferCell = i);
9405
9403
  }
@@ -9412,12 +9410,12 @@ var hi = class extends D {
9412
9410
  }
9413
9411
  _askForLink(e, i) {
9414
9412
  (!this._activeProviderReplies || !i) && (this._activeProviderReplies?.forEach((n) => {
9415
- n?.forEach((o$1) => {
9416
- o$1.link.dispose && o$1.link.dispose();
9413
+ n?.forEach((o) => {
9414
+ o.link.dispose && o.link.dispose();
9417
9415
  });
9418
9416
  }), this._activeProviderReplies = /* @__PURE__ */ new Map(), this._activeLine = e.y);
9419
9417
  let r = !1;
9420
- for (let [n, o$1] of this._linkProviderService.linkProviders.entries()) i ? this._activeProviderReplies?.get(n) && (r = this._checkLinkProviderResult(n, e, r)) : o$1.provideLinks(e.y, (l) => {
9418
+ for (let [n, o] of this._linkProviderService.linkProviders.entries()) i ? this._activeProviderReplies?.get(n) && (r = this._checkLinkProviderResult(n, e, r)) : o.provideLinks(e.y, (l) => {
9421
9419
  if (this._isMouseOut) return;
9422
9420
  let a = l?.map((u) => ({ link: u }));
9423
9421
  this._activeProviderReplies?.set(n, a), r = this._checkLinkProviderResult(n, e, r), this._activeProviderReplies?.size === this._linkProviderService.linkProviders.length && this._removeIntersectingLinks(e.y, this._activeProviderReplies);
@@ -9426,12 +9424,12 @@ var hi = class extends D {
9426
9424
  _removeIntersectingLinks(e, i) {
9427
9425
  let r = /* @__PURE__ */ new Set();
9428
9426
  for (let n = 0; n < i.size; n++) {
9429
- let o$1 = i.get(n);
9430
- if (o$1) for (let l = 0; l < o$1.length; l++) {
9431
- let a = o$1[l], u = a.link.range.start.y < e ? 0 : a.link.range.start.x, h$1 = a.link.range.end.y > e ? this._bufferService.cols : a.link.range.end.x;
9432
- for (let c = u; c <= h$1; c++) {
9427
+ let o = i.get(n);
9428
+ if (o) for (let l = 0; l < o.length; l++) {
9429
+ let a = o[l], u = a.link.range.start.y < e ? 0 : a.link.range.start.x, h = a.link.range.end.y > e ? this._bufferService.cols : a.link.range.end.x;
9430
+ for (let c = u; c <= h; c++) {
9433
9431
  if (r.has(c)) {
9434
- o$1.splice(l--, 1);
9432
+ o.splice(l--, 1);
9435
9433
  break;
9436
9434
  }
9437
9435
  r.add(c);
@@ -9441,9 +9439,9 @@ var hi = class extends D {
9441
9439
  }
9442
9440
  _checkLinkProviderResult(e, i, r) {
9443
9441
  if (!this._activeProviderReplies) return r;
9444
- let n = this._activeProviderReplies.get(e), o$1 = !1;
9445
- for (let l = 0; l < e; l++) (!this._activeProviderReplies.has(l) || this._activeProviderReplies.get(l)) && (o$1 = !0);
9446
- if (!o$1 && n) {
9442
+ let n = this._activeProviderReplies.get(e), o = !1;
9443
+ for (let l = 0; l < e; l++) (!this._activeProviderReplies.has(l) || this._activeProviderReplies.get(l)) && (o = !0);
9444
+ if (!o && n) {
9447
9445
  let l = n.find((a) => this._linkAtPosition(a.link, i));
9448
9446
  l && (r = !0, this._handleNewLink(l));
9449
9447
  }
@@ -9491,8 +9489,8 @@ var hi = class extends D {
9491
9489
  }
9492
9490
  }), this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange((r) => {
9493
9491
  if (!this._currentLink) return;
9494
- let n = r.start === 0 ? 0 : r.start + 1 + this._bufferService.buffer.ydisp, o$1 = this._bufferService.buffer.ydisp + 1 + r.end;
9495
- if (this._currentLink.link.range.start.y >= n && this._currentLink.link.range.end.y <= o$1 && (this._clearCurrentLink(n, o$1), this._lastMouseEvent)) {
9492
+ let n = r.start === 0 ? 0 : r.start + 1 + this._bufferService.buffer.ydisp, o = this._bufferService.buffer.ydisp + 1 + r.end;
9493
+ if (this._currentLink.link.range.start.y >= n && this._currentLink.link.range.end.y <= o && (this._clearCurrentLink(n, o), this._lastMouseEvent)) {
9496
9494
  let l = this._positionFromMouseEvent(this._lastMouseEvent, this._element, this._mouseService);
9497
9495
  l && this._askForLink(l, !1);
9498
9496
  }
@@ -9502,15 +9500,15 @@ var hi = class extends D {
9502
9500
  this._currentLink?.state && (this._currentLink.state.isHovered = !0, this._currentLink.state.decorations.underline && this._fireUnderlineEvent(i, !0), this._currentLink.state.decorations.pointerCursor && e.classList.add("xterm-cursor-pointer")), i.hover && i.hover(r, i.text);
9503
9501
  }
9504
9502
  _fireUnderlineEvent(e, i) {
9505
- let r = e.range, n = this._bufferService.buffer.ydisp, o$1 = this._createLinkUnderlineEvent(r.start.x - 1, r.start.y - n - 1, r.end.x, r.end.y - n - 1, void 0);
9506
- (i ? this._onShowLinkUnderline : this._onHideLinkUnderline).fire(o$1);
9503
+ let r = e.range, n = this._bufferService.buffer.ydisp, o = this._createLinkUnderlineEvent(r.start.x - 1, r.start.y - n - 1, r.end.x, r.end.y - n - 1, void 0);
9504
+ (i ? this._onShowLinkUnderline : this._onHideLinkUnderline).fire(o);
9507
9505
  }
9508
9506
  _linkLeave(e, i, r) {
9509
9507
  this._currentLink?.state && (this._currentLink.state.isHovered = !1, this._currentLink.state.decorations.underline && this._fireUnderlineEvent(i, !1), this._currentLink.state.decorations.pointerCursor && e.classList.remove("xterm-cursor-pointer")), i.leave && i.leave(r, i.text);
9510
9508
  }
9511
9509
  _linkAtPosition(e, i) {
9512
- let r = e.range.start.y * this._bufferService.cols + e.range.start.x, n = e.range.end.y * this._bufferService.cols + e.range.end.x, o$1 = i.y * this._bufferService.cols + i.x;
9513
- return r <= o$1 && o$1 <= n;
9510
+ let r = e.range.start.y * this._bufferService.cols + e.range.start.x, n = e.range.end.y * this._bufferService.cols + e.range.end.x, o = i.y * this._bufferService.cols + i.x;
9511
+ return r <= o && o <= n;
9514
9512
  }
9515
9513
  _positionFromMouseEvent(e, i, r) {
9516
9514
  let n = r.getCoords(e, i, this._bufferService.cols, this._bufferService.rows);
@@ -9519,14 +9517,14 @@ var hi = class extends D {
9519
9517
  y: n[1] + this._bufferService.buffer.ydisp
9520
9518
  };
9521
9519
  }
9522
- _createLinkUnderlineEvent(e, i, r, n, o$1) {
9520
+ _createLinkUnderlineEvent(e, i, r, n, o) {
9523
9521
  return {
9524
9522
  x1: e,
9525
9523
  y1: i,
9526
9524
  x2: r,
9527
9525
  y2: n,
9528
9526
  cols: this._bufferService.cols,
9529
- fg: o$1
9527
+ fg: o
9530
9528
  };
9531
9529
  }
9532
9530
  };
@@ -9605,8 +9603,8 @@ var yn = class extends Sn {
9605
9603
  }
9606
9604
  switch (i.type) {
9607
9605
  case 0:
9608
- let o$1 = U.toColorRGB(r === "ansi" ? this._themeService.colors.ansi[i.index] : this._themeService.colors[r]);
9609
- this.coreService.triggerDataEvent(`${b.ESC}]${n};${ml(o$1)}${fs.ST}`);
9606
+ let o = U.toColorRGB(r === "ansi" ? this._themeService.colors.ansi[i.index] : this._themeService.colors[r]);
9607
+ this.coreService.triggerDataEvent(`${b.ESC}]${n};${ml(o)}${fs.ST}`);
9610
9608
  break;
9611
9609
  case 1:
9612
9610
  if (r === "ansi") this._themeService.modifyColors((l) => l.ansi[i.index] = j.toColor(...i.color));
@@ -9646,7 +9644,7 @@ var yn = class extends Sn {
9646
9644
  if (!this.textarea || !this.buffer.isCursorInViewport || this._compositionHelper.isComposing || !this._renderService) return;
9647
9645
  let e = this.buffer.ybase + this.buffer.y, i = this.buffer.lines.get(e);
9648
9646
  if (!i) return;
9649
- let r = Math.min(this.buffer.x, this.cols - 1), n = this._renderService.dimensions.css.cell.height, o$1 = i.getWidth(r), l = this._renderService.dimensions.css.cell.width * o$1, a = this.buffer.y * this._renderService.dimensions.css.cell.height, u = r * this._renderService.dimensions.css.cell.width;
9647
+ let r = Math.min(this.buffer.x, this.cols - 1), n = this._renderService.dimensions.css.cell.height, o = i.getWidth(r), l = this._renderService.dimensions.css.cell.width * o, a = this.buffer.y * this._renderService.dimensions.css.cell.height, u = r * this._renderService.dimensions.css.cell.width;
9650
9648
  this.textarea.style.left = u + "px", this.textarea.style.top = a + "px", this.textarea.style.width = l + "px", this.textarea.style.height = n + "px", this.textarea.style.lineHeight = n + "px", this.textarea.style.zIndex = "-5";
9651
9649
  }
9652
9650
  _initGlobal() {
@@ -9673,9 +9671,9 @@ var yn = class extends Sn {
9673
9671
  }
9674
9672
  this._document = e.ownerDocument, this.options.documentOverride && this.options.documentOverride instanceof Document && (this._document = this.optionsService.rawOptions.documentOverride), this.element = this._document.createElement("div"), this.element.dir = "ltr", this.element.classList.add("terminal"), this.element.classList.add("xterm"), e.appendChild(this.element);
9675
9673
  let i = this._document.createDocumentFragment();
9676
- this._viewportElement = this._document.createElement("div"), this._viewportElement.classList.add("xterm-viewport"), i.appendChild(this._viewportElement), this.screenElement = this._document.createElement("div"), this.screenElement.classList.add("xterm-screen"), this._register(L(this.screenElement, "mousemove", (o$1) => this.updateCursorStyle(o$1))), this._helperContainer = this._document.createElement("div"), this._helperContainer.classList.add("xterm-helpers"), this.screenElement.appendChild(this._helperContainer), i.appendChild(this.screenElement);
9674
+ this._viewportElement = this._document.createElement("div"), this._viewportElement.classList.add("xterm-viewport"), i.appendChild(this._viewportElement), this.screenElement = this._document.createElement("div"), this.screenElement.classList.add("xterm-screen"), this._register(L(this.screenElement, "mousemove", (o) => this.updateCursorStyle(o))), this._helperContainer = this._document.createElement("div"), this._helperContainer.classList.add("xterm-helpers"), this.screenElement.appendChild(this._helperContainer), i.appendChild(this.screenElement);
9677
9675
  let r = this.textarea = this._document.createElement("textarea");
9678
- this.textarea.classList.add("xterm-helper-textarea"), this.textarea.setAttribute("aria-label", mi.get()), Ts || this.textarea.setAttribute("aria-multiline", "false"), this.textarea.setAttribute("autocorrect", "off"), this.textarea.setAttribute("autocapitalize", "off"), this.textarea.setAttribute("spellcheck", "false"), this.textarea.tabIndex = 0, this._register(this.optionsService.onSpecificOptionChange("disableStdin", () => r.readOnly = this.optionsService.rawOptions.disableStdin)), this.textarea.readOnly = this.optionsService.rawOptions.disableStdin, this._coreBrowserService = this._register(this._instantiationService.createInstance(Jr, this.textarea, e.ownerDocument.defaultView ?? window, this._document ?? typeof window < "u" ? window.document : null)), this._instantiationService.setService(ae, this._coreBrowserService), this._register(L(this.textarea, "focus", (o$1) => this._handleTextAreaFocus(o$1))), this._register(L(this.textarea, "blur", () => this._handleTextAreaBlur())), this._helperContainer.appendChild(this.textarea), this._charSizeService = this._instantiationService.createInstance(jt, this._document, this._helperContainer), this._instantiationService.setService(nt, this._charSizeService), this._themeService = this._instantiationService.createInstance(ti), this._instantiationService.setService(Re, this._themeService), this._characterJoinerService = this._instantiationService.createInstance(ct), this._instantiationService.setService(or, this._characterJoinerService), this._renderService = this._register(this._instantiationService.createInstance(Qt, this.rows, this.screenElement)), this._instantiationService.setService(ce, this._renderService), this._register(this._renderService.onRenderedViewportChange((o$1) => this._onRender.fire(o$1))), this.onResize((o$1) => this._renderService.resize(o$1.cols, o$1.rows)), this._compositionView = this._document.createElement("div"), this._compositionView.classList.add("composition-view"), this._compositionHelper = this._instantiationService.createInstance($t, this.textarea, this._compositionView), this._helperContainer.appendChild(this._compositionView), this._mouseService = this._instantiationService.createInstance(Xt), this._instantiationService.setService(Dt, this._mouseService);
9676
+ this.textarea.classList.add("xterm-helper-textarea"), this.textarea.setAttribute("aria-label", mi.get()), Ts || this.textarea.setAttribute("aria-multiline", "false"), this.textarea.setAttribute("autocorrect", "off"), this.textarea.setAttribute("autocapitalize", "off"), this.textarea.setAttribute("spellcheck", "false"), this.textarea.tabIndex = 0, this._register(this.optionsService.onSpecificOptionChange("disableStdin", () => r.readOnly = this.optionsService.rawOptions.disableStdin)), this.textarea.readOnly = this.optionsService.rawOptions.disableStdin, this._coreBrowserService = this._register(this._instantiationService.createInstance(Jr, this.textarea, e.ownerDocument.defaultView ?? window, this._document ?? typeof window < "u" ? window.document : null)), this._instantiationService.setService(ae, this._coreBrowserService), this._register(L(this.textarea, "focus", (o) => this._handleTextAreaFocus(o))), this._register(L(this.textarea, "blur", () => this._handleTextAreaBlur())), this._helperContainer.appendChild(this.textarea), this._charSizeService = this._instantiationService.createInstance(jt, this._document, this._helperContainer), this._instantiationService.setService(nt, this._charSizeService), this._themeService = this._instantiationService.createInstance(ti), this._instantiationService.setService(Re, this._themeService), this._characterJoinerService = this._instantiationService.createInstance(ct), this._instantiationService.setService(or, this._characterJoinerService), this._renderService = this._register(this._instantiationService.createInstance(Qt, this.rows, this.screenElement)), this._instantiationService.setService(ce, this._renderService), this._register(this._renderService.onRenderedViewportChange((o) => this._onRender.fire(o))), this.onResize((o) => this._renderService.resize(o.cols, o.rows)), this._compositionView = this._document.createElement("div"), this._compositionView.classList.add("composition-view"), this._compositionHelper = this._instantiationService.createInstance($t, this.textarea, this._compositionView), this._helperContainer.appendChild(this._compositionView), this._mouseService = this._instantiationService.createInstance(Xt), this._instantiationService.setService(Dt, this._mouseService);
9679
9677
  let n = this._linkifier.value = this._register(this._instantiationService.createInstance(hi, this.screenElement));
9680
9678
  this.element.appendChild(i);
9681
9679
  try {
@@ -9683,14 +9681,14 @@ var yn = class extends Sn {
9683
9681
  } catch {}
9684
9682
  this._renderService.hasRenderer() || this._renderService.setRenderer(this._createRenderer()), this._register(this.onCursorMove(() => {
9685
9683
  this._renderService.handleCursorMove(), this._syncTextArea();
9686
- })), this._register(this.onResize(() => this._renderService.handleResize(this.cols, this.rows))), this._register(this.onBlur(() => this._renderService.handleBlur())), this._register(this.onFocus(() => this._renderService.handleFocus())), this._viewport = this._register(this._instantiationService.createInstance(zt, this.element, this.screenElement)), this._register(this._viewport.onRequestScrollLines((o$1) => {
9687
- super.scrollLines(o$1, !1), this.refresh(0, this.rows - 1);
9688
- })), this._selectionService = this._register(this._instantiationService.createInstance(ei, this.element, this.screenElement, n)), this._instantiationService.setService(Qs, this._selectionService), this._register(this._selectionService.onRequestScrollLines((o$1) => this.scrollLines(o$1.amount, o$1.suppressScrollEvent))), this._register(this._selectionService.onSelectionChange(() => this._onSelectionChange.fire())), this._register(this._selectionService.onRequestRedraw((o$1) => this._renderService.handleSelectionChanged(o$1.start, o$1.end, o$1.columnSelectMode))), this._register(this._selectionService.onLinuxMouseSelection((o$1) => {
9689
- this.textarea.value = o$1, this.textarea.focus(), this.textarea.select();
9684
+ })), this._register(this.onResize(() => this._renderService.handleResize(this.cols, this.rows))), this._register(this.onBlur(() => this._renderService.handleBlur())), this._register(this.onFocus(() => this._renderService.handleFocus())), this._viewport = this._register(this._instantiationService.createInstance(zt, this.element, this.screenElement)), this._register(this._viewport.onRequestScrollLines((o) => {
9685
+ super.scrollLines(o, !1), this.refresh(0, this.rows - 1);
9686
+ })), this._selectionService = this._register(this._instantiationService.createInstance(ei, this.element, this.screenElement, n)), this._instantiationService.setService(Qs, this._selectionService), this._register(this._selectionService.onRequestScrollLines((o) => this.scrollLines(o.amount, o.suppressScrollEvent))), this._register(this._selectionService.onSelectionChange(() => this._onSelectionChange.fire())), this._register(this._selectionService.onRequestRedraw((o) => this._renderService.handleSelectionChanged(o.start, o.end, o.columnSelectMode))), this._register(this._selectionService.onLinuxMouseSelection((o) => {
9687
+ this.textarea.value = o, this.textarea.focus(), this.textarea.select();
9690
9688
  })), this._register($.any(this._onScroll.event, this._inputHandler.onScroll)(() => {
9691
9689
  this._selectionService.refresh(), this._viewport?.queueSync();
9692
- })), this._register(this._instantiationService.createInstance(Gt, this.screenElement)), this._register(L(this.element, "mousedown", (o$1) => this._selectionService.handleMouseDown(o$1))), this.coreMouseService.areMouseEventsActive ? (this._selectionService.disable(), this.element.classList.add("enable-mouse-events")) : this._selectionService.enable(), this.options.screenReaderMode && (this._accessibilityManager.value = this._instantiationService.createInstance(Tt, this)), this._register(this.optionsService.onSpecificOptionChange("screenReaderMode", (o$1) => this._handleScreenReaderModeOptionChange(o$1))), this.options.overviewRuler.width && (this._overviewRulerRenderer = this._register(this._instantiationService.createInstance(bt, this._viewportElement, this.screenElement))), this.optionsService.onSpecificOptionChange("overviewRuler", (o$1) => {
9693
- !this._overviewRulerRenderer && o$1 && this._viewportElement && this.screenElement && (this._overviewRulerRenderer = this._register(this._instantiationService.createInstance(bt, this._viewportElement, this.screenElement)));
9690
+ })), this._register(this._instantiationService.createInstance(Gt, this.screenElement)), this._register(L(this.element, "mousedown", (o) => this._selectionService.handleMouseDown(o))), this.coreMouseService.areMouseEventsActive ? (this._selectionService.disable(), this.element.classList.add("enable-mouse-events")) : this._selectionService.enable(), this.options.screenReaderMode && (this._accessibilityManager.value = this._instantiationService.createInstance(Tt, this)), this._register(this.optionsService.onSpecificOptionChange("screenReaderMode", (o) => this._handleScreenReaderModeOptionChange(o))), this.options.overviewRuler.width && (this._overviewRulerRenderer = this._register(this._instantiationService.createInstance(bt, this._viewportElement, this.screenElement))), this.optionsService.onSpecificOptionChange("overviewRuler", (o) => {
9691
+ !this._overviewRulerRenderer && o && this._viewportElement && this.screenElement && (this._overviewRulerRenderer = this._register(this._instantiationService.createInstance(bt, this._viewportElement, this.screenElement)));
9694
9692
  }), this._charSizeService.measure(), this.refresh(0, this.rows - 1), this._initGlobal(), this.bindMouse();
9695
9693
  }
9696
9694
  _createRenderer() {
@@ -9701,32 +9699,32 @@ var yn = class extends Sn {
9701
9699
  function r(l) {
9702
9700
  let a = e._mouseService.getMouseReportCoords(l, e.screenElement);
9703
9701
  if (!a) return !1;
9704
- let u, h$1;
9702
+ let u, h;
9705
9703
  switch (l.overrideType || l.type) {
9706
9704
  case "mousemove":
9707
- h$1 = 32, l.buttons === void 0 ? (u = 3, l.button !== void 0 && (u = l.button < 3 ? l.button : 3)) : u = l.buttons & 1 ? 0 : l.buttons & 4 ? 1 : l.buttons & 2 ? 2 : 3;
9705
+ h = 32, l.buttons === void 0 ? (u = 3, l.button !== void 0 && (u = l.button < 3 ? l.button : 3)) : u = l.buttons & 1 ? 0 : l.buttons & 4 ? 1 : l.buttons & 2 ? 2 : 3;
9708
9706
  break;
9709
9707
  case "mouseup":
9710
- h$1 = 0, u = l.button < 3 ? l.button : 3;
9708
+ h = 0, u = l.button < 3 ? l.button : 3;
9711
9709
  break;
9712
9710
  case "mousedown":
9713
- h$1 = 1, u = l.button < 3 ? l.button : 3;
9711
+ h = 1, u = l.button < 3 ? l.button : 3;
9714
9712
  break;
9715
9713
  case "wheel":
9716
9714
  if (e._customWheelEventHandler && e._customWheelEventHandler(l) === !1) return !1;
9717
9715
  let c = l.deltaY;
9718
9716
  if (c === 0 || e.coreMouseService.consumeWheelEvent(l, e._renderService?.dimensions?.device?.cell?.height, e._coreBrowserService?.dpr) === 0) return !1;
9719
- h$1 = c < 0 ? 0 : 1, u = 4;
9717
+ h = c < 0 ? 0 : 1, u = 4;
9720
9718
  break;
9721
9719
  default: return !1;
9722
9720
  }
9723
- return h$1 === void 0 || u === void 0 || u > 4 ? !1 : e.coreMouseService.triggerMouseEvent({
9721
+ return h === void 0 || u === void 0 || u > 4 ? !1 : e.coreMouseService.triggerMouseEvent({
9724
9722
  col: a.col,
9725
9723
  row: a.row,
9726
9724
  x: a.x,
9727
9725
  y: a.y,
9728
9726
  button: u,
9729
- action: h$1,
9727
+ action: h,
9730
9728
  ctrl: l.ctrlKey,
9731
9729
  alt: l.altKey,
9732
9730
  shift: l.shiftKey
@@ -9737,7 +9735,7 @@ var yn = class extends Sn {
9737
9735
  wheel: null,
9738
9736
  mousedrag: null,
9739
9737
  mousemove: null
9740
- }, o$1 = {
9738
+ }, o = {
9741
9739
  mouseup: (l) => (r(l), l.buttons || (this._document.removeEventListener("mouseup", n.mouseup), n.mousedrag && this._document.removeEventListener("mousemove", n.mousedrag)), this.cancel(l)),
9742
9740
  wheel: (l) => (r(l), this.cancel(l, !0)),
9743
9741
  mousedrag: (l) => {
@@ -9748,7 +9746,7 @@ var yn = class extends Sn {
9748
9746
  }
9749
9747
  };
9750
9748
  this._register(this.coreMouseService.onProtocolChange((l) => {
9751
- l ? (this.optionsService.rawOptions.logLevel === "debug" && this._logService.debug("Binding to mouse events:", this.coreMouseService.explainEvents(l)), this.element.classList.add("enable-mouse-events"), this._selectionService.disable()) : (this._logService.debug("Unbinding from mouse events."), this.element.classList.remove("enable-mouse-events"), this._selectionService.enable()), l & 8 ? n.mousemove || (i.addEventListener("mousemove", o$1.mousemove), n.mousemove = o$1.mousemove) : (i.removeEventListener("mousemove", n.mousemove), n.mousemove = null), l & 16 ? n.wheel || (i.addEventListener("wheel", o$1.wheel, { passive: !1 }), n.wheel = o$1.wheel) : (i.removeEventListener("wheel", n.wheel), n.wheel = null), l & 2 ? n.mouseup || (n.mouseup = o$1.mouseup) : (this._document.removeEventListener("mouseup", n.mouseup), n.mouseup = null), l & 4 ? n.mousedrag || (n.mousedrag = o$1.mousedrag) : (this._document.removeEventListener("mousemove", n.mousedrag), n.mousedrag = null);
9749
+ l ? (this.optionsService.rawOptions.logLevel === "debug" && this._logService.debug("Binding to mouse events:", this.coreMouseService.explainEvents(l)), this.element.classList.add("enable-mouse-events"), this._selectionService.disable()) : (this._logService.debug("Unbinding from mouse events."), this.element.classList.remove("enable-mouse-events"), this._selectionService.enable()), l & 8 ? n.mousemove || (i.addEventListener("mousemove", o.mousemove), n.mousemove = o.mousemove) : (i.removeEventListener("mousemove", n.mousemove), n.mousemove = null), l & 16 ? n.wheel || (i.addEventListener("wheel", o.wheel, { passive: !1 }), n.wheel = o.wheel) : (i.removeEventListener("wheel", n.wheel), n.wheel = null), l & 2 ? n.mouseup || (n.mouseup = o.mouseup) : (this._document.removeEventListener("mouseup", n.mouseup), n.mouseup = null), l & 4 ? n.mousedrag || (n.mousedrag = o.mousedrag) : (this._document.removeEventListener("mousemove", n.mousedrag), n.mousedrag = null);
9752
9750
  })), this.coreMouseService.activeProtocol = this.coreMouseService.activeProtocol, this._register(L(i, "mousedown", (l) => {
9753
9751
  if (l.preventDefault(), this.focus(), !(!this.coreMouseService.areMouseEventsActive || this._selectionService.shouldForceSelection(l))) return r(l), n.mouseup && this._document.addEventListener("mouseup", n.mouseup), n.mousedrag && this._document.addEventListener("mousemove", n.mousedrag), this.cancel(l);
9754
9752
  })), this._register(L(i, "wheel", (l) => {
@@ -9757,8 +9755,8 @@ var yn = class extends Sn {
9757
9755
  if (!this.buffer.hasScrollback) {
9758
9756
  if (l.deltaY === 0) return !1;
9759
9757
  if (e.coreMouseService.consumeWheelEvent(l, e._renderService?.dimensions?.device?.cell?.height, e._coreBrowserService?.dpr) === 0) return this.cancel(l, !0);
9760
- let h$1 = b.ESC + (this.coreService.decPrivateModes.applicationCursorKeys ? "O" : "[") + (l.deltaY < 0 ? "A" : "B");
9761
- return this.coreService.triggerDataEvent(h$1, !0), this.cancel(l, !0);
9758
+ let h = b.ESC + (this.coreService.decPrivateModes.applicationCursorKeys ? "O" : "[") + (l.deltaY < 0 ? "A" : "B");
9759
+ return this.coreService.triggerDataEvent(h, !0), this.cancel(l, !0);
9762
9760
  }
9763
9761
  }
9764
9762
  }, { passive: !1 }));
@@ -9929,8 +9927,8 @@ var yn = class extends Sn {
9929
9927
  this.coreService.triggerDataEvent(`${b.ESC}[4;${r};${i}t`);
9930
9928
  break;
9931
9929
  case 1:
9932
- let n = this._renderService.dimensions.css.cell.width.toFixed(0), o$1 = this._renderService.dimensions.css.cell.height.toFixed(0);
9933
- this.coreService.triggerDataEvent(`${b.ESC}[6;${o$1};${n}t`);
9930
+ let n = this._renderService.dimensions.css.cell.width.toFixed(0), o = this._renderService.dimensions.css.cell.height.toFixed(0);
9931
+ this.coreService.triggerDataEvent(`${b.ESC}[6;${o};${n}t`);
9934
9932
  break;
9935
9933
  }
9936
9934
  }
@@ -10355,7 +10353,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
10355
10353
  });
10356
10354
  props.terminal.terminal = term;
10357
10355
  if (props.terminal.buffer == null) {
10358
- const { buffer } = await props.context.rpc.call("vite:internal:terminals:read", props.terminal.info.id);
10356
+ const { buffer } = await props.context.rpc.call("devtoolskit:internal:terminals:read", props.terminal.info.id);
10359
10357
  props.terminal.buffer = markRaw(buffer);
10360
10358
  }
10361
10359
  for (const chunk of props.terminal.buffer) term.writeln(chunk);
@@ -10373,7 +10371,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
10373
10371
  };
10374
10372
  }
10375
10373
  });
10376
- var ViewBuiltinTerminalPanel_default = _sfc_main$1;
10377
10374
 
10378
10375
  //#endregion
10379
10376
  //#region src/client/webcomponents/components/ViewBuiltinTerminals.vue
@@ -10400,11 +10397,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
10400
10397
  key: terminal.info.id,
10401
10398
  class: normalizeClass(["px3 py1.5 border-r border-base hover:bg-active text-sm flex items-center gap-1", { "bg-active": selectedTerminal.value?.info.id === terminal.info.id }]),
10402
10399
  onClick: ($event) => selectedTerminal.value = terminal
10403
- }, [createVNode(DockIcon_default, {
10400
+ }, [createVNode(_sfc_main$2, {
10404
10401
  icon: terminal.info.icon || "ph:terminal-duotone",
10405
10402
  class: "w-4 h-4"
10406
10403
  }, null, 8, ["icon"]), createBaseVNode("span", null, toDisplayString(terminal.info.title), 1)], 10, _hoisted_3);
10407
- }), 128))]), createBaseVNode("div", _hoisted_4, [selectedTerminal.value ? (openBlock(), createBlock(ViewBuiltinTerminalPanel_default, {
10404
+ }), 128))]), createBaseVNode("div", _hoisted_4, [selectedTerminal.value ? (openBlock(), createBlock(_sfc_main$1, {
10408
10405
  key: selectedTerminal.value.info.id,
10409
10406
  context: __props.context,
10410
10407
  terminal: selectedTerminal.value
@@ -10412,7 +10409,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
10412
10409
  };
10413
10410
  }
10414
10411
  });
10415
- var ViewBuiltinTerminals_default = _sfc_main;
10416
10412
 
10417
10413
  //#endregion
10418
- export { ViewBuiltinTerminals_default as default };
10414
+ export { _sfc_main as default };