xmlui 0.9.44 → 0.9.45

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 (37) hide show
  1. package/dist/lib/{index-ODN_c1bh.mjs → apiInterceptorWorker-DzZYVTsV.mjs} +1920 -1362
  2. package/dist/lib/{index-Cc1nHN3N.mjs → index-erPY1EdW.mjs} +7175 -7056
  3. package/dist/lib/index.css +1 -1
  4. package/dist/lib/language-server-web-worker.mjs +1 -1
  5. package/dist/lib/language-server.mjs +1 -1
  6. package/dist/lib/{metadata-utils-DI1nTN3y.mjs → metadata-utils-Cf8v_9Lr.mjs} +7 -7
  7. package/dist/lib/{server-common-C3t9MFME.mjs → server-common-kMTAr-QU.mjs} +210 -178
  8. package/dist/lib/{transform-BV--wKhF.mjs → transform-DU7v4c9h.mjs} +1193 -1158
  9. package/dist/lib/xmlui-parser.d.ts +10 -3
  10. package/dist/lib/xmlui-parser.mjs +31 -30
  11. package/dist/lib/{xmlui-serializer-D5UV-ftG.mjs → xmlui-serializer-B3OkRzrr.mjs} +9 -9
  12. package/dist/lib/xmlui.d.ts +10 -1
  13. package/dist/lib/xmlui.mjs +12 -11
  14. package/dist/metadata/style.css +1 -1
  15. package/dist/metadata/xmlui-metadata.mjs +4070 -4040
  16. package/dist/metadata/xmlui-metadata.umd.js +10 -10
  17. package/dist/scripts/package.json +2 -1
  18. package/dist/scripts/src/components/App/App.js +140 -27
  19. package/dist/scripts/src/components/App/AppNative.js +2 -1
  20. package/dist/scripts/src/components/App/IndexerContext.js +44 -0
  21. package/dist/scripts/src/components/App/SearchContext.js +35 -0
  22. package/dist/scripts/src/components/CodeBlock/CodeBlockNative.js +41 -44
  23. package/dist/scripts/src/components/CodeBlock/highlight-code.js +4 -1
  24. package/dist/scripts/src/components/Markdown/MarkdownNative.js +63 -27
  25. package/dist/scripts/src/components/NestedApp/NestedApp.js +4 -3
  26. package/dist/scripts/src/components/NestedApp/NestedAppNative.js +61 -66
  27. package/dist/scripts/src/components/TableOfContents/TableOfContents.js +9 -1
  28. package/dist/scripts/src/components/Text/Text.js +1 -1
  29. package/dist/scripts/src/components/Theme/ThemeNative.js +5 -0
  30. package/dist/scripts/src/components-core/loader/DataLoader.js +9 -1
  31. package/dist/scripts/src/components-core/rendering/Container.js +7 -0
  32. package/dist/scripts/src/parsers/xmlui-parser/diagnostics.js +10 -4
  33. package/dist/scripts/src/parsers/xmlui-parser/parser.js +74 -30
  34. package/dist/standalone/xmlui-standalone.es.d.ts +17 -2
  35. package/dist/standalone/xmlui-standalone.umd.js +197 -197
  36. package/package.json +2 -1
  37. package/dist/lib/apiInterceptorWorker-B62b9K2p.mjs +0 -563
@@ -1,9 +1,10 @@
1
1
  import { MarkupKind as Ll, CompletionItemKind as Ot, TextDocuments as mn, TextDocumentSyncKind as cn, DidChangeConfigurationNotification as vn } from "vscode-languageserver";
2
2
  import { TextDocument as xn } from "vscode-languageserver-textdocument";
3
- import { S as M, G as Vl, o as bn } from "./transform-BV--wKhF.mjs";
4
- import { a as pn, M as hn } from "./metadata-utils-DI1nTN3y.mjs";
3
+ import { S as M, H as Vl, p as bn } from "./transform-DU7v4c9h.mjs";
4
+ import { a as pn, M as hn } from "./metadata-utils-Cf8v_9Lr.mjs";
5
+ import Hn from "xml-formatter";
5
6
  var ae = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
6
- function Hn(e) {
7
+ function gn(e) {
7
8
  if (e.__esModule) return e;
8
9
  var r = e.default;
9
10
  if (typeof r == "function") {
@@ -22,7 +23,7 @@ function Hn(e) {
22
23
  });
23
24
  }), i;
24
25
  }
25
- var gn = {}, wo = {}, Ee = {}, ie = {}, xr = {}, Di = {}, go = {}, R = {}, ue = {}, Fi;
26
+ var fn = {}, wo = {}, Ee = {}, ie = {}, xr = {}, Di = {}, go = {}, R = {}, ue = {}, Fi;
26
27
  function lt() {
27
28
  if (Fi) return ue;
28
29
  Fi = 1, Object.defineProperty(ue, "__esModule", { value: !0 }), ue.stringArray = ue.array = ue.func = ue.error = ue.number = ue.string = ue.boolean = void 0;
@@ -513,7 +514,7 @@ function Ol() {
513
514
  return De.LRUCache = o, De;
514
515
  }
515
516
  var Gr = {}, Ui;
516
- function fn() {
517
+ function Tn() {
517
518
  if (Ui) return Gr;
518
519
  Ui = 1, Object.defineProperty(Gr, "__esModule", { value: !0 }), Gr.Disposable = void 0;
519
520
  var e;
@@ -685,7 +686,7 @@ function Ai() {
685
686
  return dr.CancellationTokenSource = l, dr;
686
687
  }
687
688
  var ur = {}, Ji;
688
- function Tn() {
689
+ function Cn() {
689
690
  if (Ji) return ur;
690
691
  Ji = 1, Object.defineProperty(ur, "__esModule", { value: !0 }), ur.SharedArrayReceiverStrategy = ur.SharedArraySenderStrategy = void 0;
691
692
  const e = Ai();
@@ -792,7 +793,7 @@ function Dl() {
792
793
  return Yr.Semaphore = r, Yr;
793
794
  }
794
795
  var Zi;
795
- function Cn() {
796
+ function yn() {
796
797
  if (Zi) return Ae;
797
798
  Zi = 1, Object.defineProperty(Ae, "__esModule", { value: !0 }), Ae.ReadableStreamMessageReader = Ae.AbstractMessageReader = Ae.MessageReader = void 0;
798
799
  const e = br(), r = lt(), i = nt(), o = Dl();
@@ -920,7 +921,7 @@ ${JSON.stringify(Object.fromEntries(h))}`));
920
921
  return Ae.ReadableStreamMessageReader = d, Ae;
921
922
  }
922
923
  var Ne = {}, Qi;
923
- function yn() {
924
+ function Sn() {
924
925
  if (Qi) return Ne;
925
926
  Qi = 1, Object.defineProperty(Ne, "__esModule", { value: !0 }), Ne.WriteableStreamMessageWriter = Ne.AbstractMessageWriter = Ne.MessageWriter = void 0;
926
927
  const e = br(), r = lt(), i = Dl(), o = nt(), t = "Content-Length: ", a = `\r
@@ -993,7 +994,7 @@ function yn() {
993
994
  return Ne.WriteableStreamMessageWriter = m, Ne;
994
995
  }
995
996
  var Jr = {}, Ki;
996
- function Sn() {
997
+ function kn() {
997
998
  if (Ki) return Jr;
998
999
  Ki = 1, Object.defineProperty(Jr, "__esModule", { value: !0 }), Jr.AbstractMessageBuffer = void 0;
999
1000
  const e = 13, r = 10, i = `\r
@@ -1099,7 +1100,7 @@ ${S}`);
1099
1100
  return Jr.AbstractMessageBuffer = o, Jr;
1100
1101
  }
1101
1102
  var fo = {}, ea;
1102
- function kn() {
1103
+ function wn() {
1103
1104
  return ea || (ea = 1, function(e) {
1104
1105
  Object.defineProperty(e, "__esModule", { value: !0 }), e.createMessageConnection = e.ConnectionOptions = e.MessageStrategy = e.CancellationStrategy = e.CancellationSenderStrategy = e.CancellationReceiverStrategy = e.RequestCancellationReceiverStrategy = e.IdCancellationReceiverStrategy = e.ConnectionStrategy = e.ConnectionError = e.ConnectionErrors = e.LogTraceNotification = e.SetTraceNotification = e.TraceFormat = e.TraceValues = e.Trace = e.NullLogger = e.ProgressType = e.ProgressToken = void 0;
1105
1106
  const r = br(), i = lt(), o = zl(), t = Ol(), a = nt(), l = Ai();
@@ -1899,7 +1900,7 @@ function Ro() {
1899
1900
  } }), Object.defineProperty(e, "Touch", { enumerable: !0, get: function() {
1900
1901
  return i.Touch;
1901
1902
  } });
1902
- const o = fn();
1903
+ const o = Tn();
1903
1904
  Object.defineProperty(e, "Disposable", { enumerable: !0, get: function() {
1904
1905
  return o.Disposable;
1905
1906
  } });
@@ -1915,13 +1916,13 @@ function Ro() {
1915
1916
  } }), Object.defineProperty(e, "CancellationToken", { enumerable: !0, get: function() {
1916
1917
  return a.CancellationToken;
1917
1918
  } });
1918
- const l = Tn();
1919
+ const l = Cn();
1919
1920
  Object.defineProperty(e, "SharedArraySenderStrategy", { enumerable: !0, get: function() {
1920
1921
  return l.SharedArraySenderStrategy;
1921
1922
  } }), Object.defineProperty(e, "SharedArrayReceiverStrategy", { enumerable: !0, get: function() {
1922
1923
  return l.SharedArrayReceiverStrategy;
1923
1924
  } });
1924
- const d = Cn();
1925
+ const d = yn();
1925
1926
  Object.defineProperty(e, "MessageReader", { enumerable: !0, get: function() {
1926
1927
  return d.MessageReader;
1927
1928
  } }), Object.defineProperty(e, "AbstractMessageReader", { enumerable: !0, get: function() {
@@ -1929,7 +1930,7 @@ function Ro() {
1929
1930
  } }), Object.defineProperty(e, "ReadableStreamMessageReader", { enumerable: !0, get: function() {
1930
1931
  return d.ReadableStreamMessageReader;
1931
1932
  } });
1932
- const s = yn();
1933
+ const s = Sn();
1933
1934
  Object.defineProperty(e, "MessageWriter", { enumerable: !0, get: function() {
1934
1935
  return s.MessageWriter;
1935
1936
  } }), Object.defineProperty(e, "AbstractMessageWriter", { enumerable: !0, get: function() {
@@ -1937,11 +1938,11 @@ function Ro() {
1937
1938
  } }), Object.defineProperty(e, "WriteableStreamMessageWriter", { enumerable: !0, get: function() {
1938
1939
  return s.WriteableStreamMessageWriter;
1939
1940
  } });
1940
- const m = Sn();
1941
+ const m = kn();
1941
1942
  Object.defineProperty(e, "AbstractMessageBuffer", { enumerable: !0, get: function() {
1942
1943
  return m.AbstractMessageBuffer;
1943
1944
  } });
1944
- const c = kn();
1945
+ const c = wn();
1945
1946
  Object.defineProperty(e, "ConnectionStrategy", { enumerable: !0, get: function() {
1946
1947
  return c.ConnectionStrategy;
1947
1948
  } }), Object.defineProperty(e, "ConnectionOptions", { enumerable: !0, get: function() {
@@ -2004,7 +2005,7 @@ class Yt extends Ie.AbstractMessageBuffer {
2004
2005
  }
2005
2006
  }
2006
2007
  Yt.emptyBuffer = new Uint8Array(0);
2007
- class wn {
2008
+ class Rn {
2008
2009
  constructor(r) {
2009
2010
  this.socket = r, this._onData = new Ie.Emitter(), this._messageListener = (i) => {
2010
2011
  i.data.arrayBuffer().then((t) => {
@@ -2027,7 +2028,7 @@ class wn {
2027
2028
  return this._onData.event(r);
2028
2029
  }
2029
2030
  }
2030
- class Rn {
2031
+ class Bn {
2031
2032
  constructor(r) {
2032
2033
  this.socket = r;
2033
2034
  }
@@ -2053,7 +2054,7 @@ class Rn {
2053
2054
  this.socket.close();
2054
2055
  }
2055
2056
  }
2056
- const Bn = new TextEncoder(), Al = Object.freeze({
2057
+ const Wn = new TextEncoder(), Al = Object.freeze({
2057
2058
  messageBuffer: Object.freeze({
2058
2059
  create: (e) => new Yt(e)
2059
2060
  }),
@@ -2063,7 +2064,7 @@ const Bn = new TextEncoder(), Al = Object.freeze({
2063
2064
  encode: (e, r) => {
2064
2065
  if (r.charset !== "utf-8")
2065
2066
  throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${r.charset}`);
2066
- return Promise.resolve(Bn.encode(JSON.stringify(e, void 0, 0)));
2067
+ return Promise.resolve(Wn.encode(JSON.stringify(e, void 0, 0)));
2067
2068
  }
2068
2069
  }),
2069
2070
  decoder: Object.freeze({
@@ -2076,8 +2077,8 @@ const Bn = new TextEncoder(), Al = Object.freeze({
2076
2077
  })
2077
2078
  }),
2078
2079
  stream: Object.freeze({
2079
- asReadableStream: (e) => new wn(e),
2080
- asWritableStream: (e) => new Rn(e)
2080
+ asReadableStream: (e) => new Rn(e),
2081
+ asWritableStream: (e) => new Bn(e)
2081
2082
  }),
2082
2083
  console,
2083
2084
  timer: Object.freeze({
@@ -2547,7 +2548,7 @@ class oa {
2547
2548
  return this._counter++, this._counter.toString();
2548
2549
  }
2549
2550
  }
2550
- class Wn {
2551
+ class In {
2551
2552
  constructor(r) {
2552
2553
  this._textEditChanges = /* @__PURE__ */ Object.create(null), r !== void 0 ? (this._workspaceEdit = r, r.documentChanges ? (this._changeAnnotations = new oa(r.changeAnnotations), r.changeAnnotations = this._changeAnnotations.all(), r.documentChanges.forEach((i) => {
2553
2554
  if (et.is(i)) {
@@ -3060,13 +3061,13 @@ var Ri;
3060
3061
  }
3061
3062
  e.is = r;
3062
3063
  })(Ri || (Ri = {}));
3063
- const In = [`
3064
+ const Ln = [`
3064
3065
  `, `\r
3065
3066
  `, "\r"];
3066
3067
  var Bi;
3067
3068
  (function(e) {
3068
3069
  function r(a, l, d, s) {
3069
- return new Ln(a, l, d, s);
3070
+ return new Vn(a, l, d, s);
3070
3071
  }
3071
3072
  e.create = r;
3072
3073
  function i(a) {
@@ -3105,7 +3106,7 @@ var Bi;
3105
3106
  return a;
3106
3107
  }
3107
3108
  })(Bi || (Bi = {}));
3108
- class Ln {
3109
+ class Vn {
3109
3110
  constructor(r, i, o, t) {
3110
3111
  this._uri = r, this._languageId = i, this._version = o, this._content = t, this._lineOffsets = void 0;
3111
3112
  }
@@ -3215,7 +3216,7 @@ var v;
3215
3216
  }
3216
3217
  e.typedArray = H;
3217
3218
  })(v || (v = {}));
3218
- const Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3219
+ const zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3219
3220
  __proto__: null,
3220
3221
  get AnnotatedTextEdit() {
3221
3222
  return Pe;
@@ -3304,7 +3305,7 @@ const Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3304
3305
  get DocumentUri() {
3305
3306
  return Wo;
3306
3307
  },
3307
- EOL: In,
3308
+ EOL: Ln,
3308
3309
  get FoldingRange() {
3309
3310
  return Do;
3310
3311
  },
@@ -3440,7 +3441,7 @@ const Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3440
3441
  get VersionedTextDocumentIdentifier() {
3441
3442
  return Mo;
3442
3443
  },
3443
- WorkspaceChange: Wn,
3444
+ WorkspaceChange: In,
3444
3445
  get WorkspaceEdit() {
3445
3446
  return Pt;
3446
3447
  },
@@ -3456,7 +3457,7 @@ const Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3456
3457
  get uinteger() {
3457
3458
  return Zr;
3458
3459
  }
3459
- }, Symbol.toStringTag, { value: "Module" })), Ni = /* @__PURE__ */ Hn(Vn);
3460
+ }, Symbol.toStringTag, { value: "Module" })), Ni = /* @__PURE__ */ gn(zn);
3460
3461
  var A = {};
3461
3462
  Object.defineProperty(A, "__esModule", { value: !0 });
3462
3463
  A.ProtocolNotificationType = A.ProtocolNotificationType0 = A.ProtocolRequestType = A.ProtocolRequestType0 = A.RegistrationType = A.MessageDirection = void 0;
@@ -3465,75 +3466,75 @@ var ia;
3465
3466
  (function(e) {
3466
3467
  e.clientToServer = "clientToServer", e.serverToClient = "serverToClient", e.both = "both";
3467
3468
  })(ia || (A.MessageDirection = ia = {}));
3468
- class zn {
3469
+ class On {
3469
3470
  constructor(r) {
3470
3471
  this.method = r;
3471
3472
  }
3472
3473
  }
3473
- A.RegistrationType = zn;
3474
- class On extends wr.RequestType0 {
3474
+ A.RegistrationType = On;
3475
+ class Dn extends wr.RequestType0 {
3475
3476
  constructor(r) {
3476
3477
  super(r);
3477
3478
  }
3478
3479
  }
3479
- A.ProtocolRequestType0 = On;
3480
- class Dn extends wr.RequestType {
3480
+ A.ProtocolRequestType0 = Dn;
3481
+ class An extends wr.RequestType {
3481
3482
  constructor(r) {
3482
3483
  super(r, wr.ParameterStructures.byName);
3483
3484
  }
3484
3485
  }
3485
- A.ProtocolRequestType = Dn;
3486
- class An extends wr.NotificationType0 {
3486
+ A.ProtocolRequestType = An;
3487
+ class Nn extends wr.NotificationType0 {
3487
3488
  constructor(r) {
3488
3489
  super(r);
3489
3490
  }
3490
3491
  }
3491
- A.ProtocolNotificationType0 = An;
3492
- class Nn extends wr.NotificationType {
3492
+ A.ProtocolNotificationType0 = Nn;
3493
+ class Pn extends wr.NotificationType {
3493
3494
  constructor(r) {
3494
3495
  super(r, wr.ParameterStructures.byName);
3495
3496
  }
3496
3497
  }
3497
- A.ProtocolNotificationType = Nn;
3498
+ A.ProtocolNotificationType = Pn;
3498
3499
  var Pl = {}, Z = {};
3499
3500
  Object.defineProperty(Z, "__esModule", { value: !0 });
3500
3501
  Z.objectLiteral = Z.typedArray = Z.stringArray = Z.array = Z.func = Z.error = Z.number = Z.string = Z.boolean = void 0;
3501
- function Pn(e) {
3502
+ function En(e) {
3502
3503
  return e === !0 || e === !1;
3503
3504
  }
3504
- Z.boolean = Pn;
3505
+ Z.boolean = En;
3505
3506
  function El(e) {
3506
3507
  return typeof e == "string" || e instanceof String;
3507
3508
  }
3508
3509
  Z.string = El;
3509
- function En(e) {
3510
+ function Mn(e) {
3510
3511
  return typeof e == "number" || e instanceof Number;
3511
3512
  }
3512
- Z.number = En;
3513
- function Mn(e) {
3513
+ Z.number = Mn;
3514
+ function _n(e) {
3514
3515
  return e instanceof Error;
3515
3516
  }
3516
- Z.error = Mn;
3517
- function _n(e) {
3517
+ Z.error = _n;
3518
+ function Fn(e) {
3518
3519
  return typeof e == "function";
3519
3520
  }
3520
- Z.func = _n;
3521
+ Z.func = Fn;
3521
3522
  function Ml(e) {
3522
3523
  return Array.isArray(e);
3523
3524
  }
3524
3525
  Z.array = Ml;
3525
- function Fn(e) {
3526
+ function qn(e) {
3526
3527
  return Ml(e) && e.every((r) => El(r));
3527
3528
  }
3528
- Z.stringArray = Fn;
3529
- function qn(e, r) {
3529
+ Z.stringArray = qn;
3530
+ function $n(e, r) {
3530
3531
  return Array.isArray(e) && e.every(r);
3531
3532
  }
3532
- Z.typedArray = qn;
3533
- function $n(e) {
3533
+ Z.typedArray = $n;
3534
+ function Un(e) {
3534
3535
  return e !== null && typeof e == "object";
3535
3536
  }
3536
- Z.objectLiteral = $n;
3537
+ Z.objectLiteral = Un;
3537
3538
  var Jt = {};
3538
3539
  Object.defineProperty(Jt, "__esModule", { value: !0 });
3539
3540
  Jt.ImplementationRequest = void 0;
@@ -3613,10 +3614,10 @@ var fa;
3613
3614
  var Ye = {};
3614
3615
  Object.defineProperty(Ye, "__esModule", { value: !0 });
3615
3616
  Ye.WorkDoneProgressCancelNotification = Ye.WorkDoneProgressCreateRequest = Ye.WorkDoneProgress = void 0;
3616
- const Un = xr, Ut = A;
3617
+ const jn = xr, Ut = A;
3617
3618
  var Ta;
3618
3619
  (function(e) {
3619
- e.type = new Un.ProgressType();
3620
+ e.type = new jn.ProgressType();
3620
3621
  function r(i) {
3621
3622
  return i === e.type;
3622
3623
  }
@@ -3785,12 +3786,12 @@ var el;
3785
3786
  var He = {};
3786
3787
  Object.defineProperty(He, "__esModule", { value: !0 });
3787
3788
  He.DiagnosticRefreshRequest = He.WorkspaceDiagnosticRequest = He.DocumentDiagnosticRequest = He.DocumentDiagnosticReportKind = He.DiagnosticServerCancellationData = void 0;
3788
- const _l = xr, jn = Z, Or = A;
3789
+ const _l = xr, Gn = Z, Or = A;
3789
3790
  var rl;
3790
3791
  (function(e) {
3791
3792
  function r(i) {
3792
3793
  const o = i;
3793
- return o && jn.boolean(o.retriggerRequest);
3794
+ return o && Gn.boolean(o.retriggerRequest);
3794
3795
  }
3795
3796
  e.is = r;
3796
3797
  })(rl || (He.DiagnosticServerCancellationData = rl = {}));
@@ -4413,10 +4414,10 @@ var oo = {};
4413
4414
  Object.defineProperty(oo, "__esModule", { value: !0 });
4414
4415
  oo.createProtocolConnection = void 0;
4415
4416
  const xl = xr;
4416
- function Gn(e, r, i, o) {
4417
+ function Yn(e, r, i, o) {
4417
4418
  return xl.ConnectionStrategy.is(o) && (o = { connectionStrategy: o }), (0, xl.createMessageConnection)(e, r, i, o);
4418
4419
  }
4419
- oo.createProtocolConnection = Gn;
4420
+ oo.createProtocolConnection = Yn;
4420
4421
  (function(e) {
4421
4422
  var r = ae && ae.__createBinding || (Object.create ? function(a, l, d, s) {
4422
4423
  s === void 0 && (s = d);
@@ -4461,7 +4462,7 @@ oo.createProtocolConnection = Gn;
4461
4462
  })(ie);
4462
4463
  Object.defineProperty(Ee, "__esModule", { value: !0 });
4463
4464
  Ee.SemanticTokensBuilder = Ee.SemanticTokensDiff = Ee.SemanticTokensFeature = void 0;
4464
- const Vt = ie, Yn = (e) => class extends e {
4465
+ const Vt = ie, Jn = (e) => class extends e {
4465
4466
  get semanticTokens() {
4466
4467
  return {
4467
4468
  refresh: () => this.connection.sendRequest(Vt.SemanticTokensRefreshRequest.type),
@@ -4480,7 +4481,7 @@ const Vt = ie, Yn = (e) => class extends e {
4480
4481
  };
4481
4482
  }
4482
4483
  };
4483
- Ee.SemanticTokensFeature = Yn;
4484
+ Ee.SemanticTokensFeature = Jn;
4484
4485
  class Fl {
4485
4486
  constructor(r, i) {
4486
4487
  this.originalSequence = r, this.modifiedSequence = i;
@@ -4509,7 +4510,7 @@ class Fl {
4509
4510
  }
4510
4511
  }
4511
4512
  Ee.SemanticTokensDiff = Fl;
4512
- class Jn {
4513
+ class Xn {
4513
4514
  constructor() {
4514
4515
  this._prevData = void 0, this.initialize();
4515
4516
  }
@@ -4542,23 +4543,23 @@ class Jn {
4542
4543
  } : this.build();
4543
4544
  }
4544
4545
  }
4545
- Ee.SemanticTokensBuilder = Jn;
4546
+ Ee.SemanticTokensBuilder = Xn;
4546
4547
  var io = {};
4547
4548
  Object.defineProperty(io, "__esModule", { value: !0 });
4548
4549
  io.InlineCompletionFeature = void 0;
4549
- const Xn = ie, Zn = (e) => class extends e {
4550
+ const Zn = ie, Qn = (e) => class extends e {
4550
4551
  get inlineCompletion() {
4551
4552
  return {
4552
- on: (r) => this.connection.onRequest(Xn.InlineCompletionRequest.type, (i, o) => r(i, o, this.attachWorkDoneProgress(i)))
4553
+ on: (r) => this.connection.onRequest(Zn.InlineCompletionRequest.type, (i, o) => r(i, o, this.attachWorkDoneProgress(i)))
4553
4554
  };
4554
4555
  }
4555
4556
  };
4556
- io.InlineCompletionFeature = Zn;
4557
+ io.InlineCompletionFeature = Qn;
4557
4558
  var dt = {};
4558
4559
  Object.defineProperty(dt, "__esModule", { value: !0 });
4559
4560
  dt.TextDocuments = void 0;
4560
4561
  const sr = ie;
4561
- class Qn {
4562
+ class Kn {
4562
4563
  /**
4563
4564
  * Create a new text document manager.
4564
4565
  */
@@ -4680,11 +4681,11 @@ class Qn {
4680
4681
  });
4681
4682
  }
4682
4683
  }
4683
- dt.TextDocuments = Qn;
4684
+ dt.TextDocuments = Kn;
4684
4685
  var vr = {};
4685
4686
  Object.defineProperty(vr, "__esModule", { value: !0 });
4686
4687
  vr.NotebookDocuments = vr.NotebookSyncFeature = void 0;
4687
- const ge = ie, bl = dt, Kn = (e) => class extends e {
4688
+ const ge = ie, bl = dt, ed = (e) => class extends e {
4688
4689
  get synchronization() {
4689
4690
  return {
4690
4691
  onDidOpenNotebookDocument: (r) => this.connection.onNotification(ge.DidOpenNotebookDocumentNotification.type, (i) => {
@@ -4702,7 +4703,7 @@ const ge = ie, bl = dt, Kn = (e) => class extends e {
4702
4703
  };
4703
4704
  }
4704
4705
  };
4705
- vr.NotebookSyncFeature = Kn;
4706
+ vr.NotebookSyncFeature = ed;
4706
4707
  class fr {
4707
4708
  onDidOpenTextDocument(r) {
4708
4709
  return this.openHandler = r, ge.Disposable.create(() => {
@@ -4740,7 +4741,7 @@ class fr {
4740
4741
  }
4741
4742
  fr.NULL_DISPOSE = Object.freeze({ dispose: () => {
4742
4743
  } });
4743
- class ed {
4744
+ class rd {
4744
4745
  constructor(r) {
4745
4746
  r instanceof bl.TextDocuments ? this._cellTextDocuments = r : this._cellTextDocuments = new bl.TextDocuments(r), this.notebookDocuments = /* @__PURE__ */ new Map(), this.notebookCellMap = /* @__PURE__ */ new Map(), this._onDidOpen = new ge.Emitter(), this._onDidChange = new ge.Emitter(), this._onDidSave = new ge.Emitter(), this._onDidClose = new ge.Emitter();
4746
4747
  }
@@ -4862,26 +4863,26 @@ class ed {
4862
4863
  this.notebookCellMap.set(i.document, [i, r]);
4863
4864
  }
4864
4865
  }
4865
- vr.NotebookDocuments = ed;
4866
+ vr.NotebookDocuments = rd;
4866
4867
  var E = {}, oe = {};
4867
4868
  Object.defineProperty(oe, "__esModule", { value: !0 });
4868
4869
  oe.thenable = oe.typedArray = oe.stringArray = oe.array = oe.func = oe.error = oe.number = oe.string = oe.boolean = void 0;
4869
- function rd(e) {
4870
+ function td(e) {
4870
4871
  return e === !0 || e === !1;
4871
4872
  }
4872
- oe.boolean = rd;
4873
+ oe.boolean = td;
4873
4874
  function ql(e) {
4874
4875
  return typeof e == "string" || e instanceof String;
4875
4876
  }
4876
4877
  oe.string = ql;
4877
- function td(e) {
4878
+ function od(e) {
4878
4879
  return typeof e == "number" || e instanceof Number;
4879
4880
  }
4880
- oe.number = td;
4881
- function od(e) {
4881
+ oe.number = od;
4882
+ function id(e) {
4882
4883
  return e instanceof Error;
4883
4884
  }
4884
- oe.error = od;
4885
+ oe.error = id;
4885
4886
  function $l(e) {
4886
4887
  return typeof e == "function";
4887
4888
  }
@@ -4890,18 +4891,18 @@ function Ul(e) {
4890
4891
  return Array.isArray(e);
4891
4892
  }
4892
4893
  oe.array = Ul;
4893
- function id(e) {
4894
+ function ad(e) {
4894
4895
  return Ul(e) && e.every((r) => ql(r));
4895
4896
  }
4896
- oe.stringArray = id;
4897
- function ad(e, r) {
4897
+ oe.stringArray = ad;
4898
+ function ld(e, r) {
4898
4899
  return Array.isArray(e) && e.every(r);
4899
4900
  }
4900
- oe.typedArray = ad;
4901
- function ld(e) {
4901
+ oe.typedArray = ld;
4902
+ function nd(e) {
4902
4903
  return e && $l(e.then);
4903
4904
  }
4904
- oe.thenable = ld;
4905
+ oe.thenable = nd;
4905
4906
  var xe = {};
4906
4907
  Object.defineProperty(xe, "__esModule", { value: !0 });
4907
4908
  xe.generateUuid = xe.parse = xe.isUUID = xe.v4 = xe.empty = void 0;
@@ -4971,25 +4972,25 @@ function jl() {
4971
4972
  return new D();
4972
4973
  }
4973
4974
  xe.v4 = jl;
4974
- const nd = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
4975
+ const dd = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
4975
4976
  function Gl(e) {
4976
- return nd.test(e);
4977
+ return dd.test(e);
4977
4978
  }
4978
4979
  xe.isUUID = Gl;
4979
- function dd(e) {
4980
+ function ud(e) {
4980
4981
  if (!Gl(e))
4981
4982
  throw new Error("invalid uuid");
4982
4983
  return new Pi(e);
4983
4984
  }
4984
- xe.parse = dd;
4985
- function ud() {
4985
+ xe.parse = ud;
4986
+ function sd() {
4986
4987
  return jl().asHex();
4987
4988
  }
4988
- xe.generateUuid = ud;
4989
+ xe.generateUuid = sd;
4989
4990
  var Ke = {};
4990
4991
  Object.defineProperty(Ke, "__esModule", { value: !0 });
4991
4992
  Ke.attachPartialResult = Ke.ProgressFeature = Ke.attachWorkDone = void 0;
4992
- const er = ie, sd = xe;
4993
+ const er = ie, md = xe;
4993
4994
  class rr {
4994
4995
  constructor(r, i) {
4995
4996
  this._connection = r, this._token = i, rr.Instances.set(this._token, this);
@@ -5053,14 +5054,14 @@ class hl extends Ei {
5053
5054
  this._source.cancel();
5054
5055
  }
5055
5056
  }
5056
- function md(e, r) {
5057
+ function cd(e, r) {
5057
5058
  if (r === void 0 || r.workDoneToken === void 0)
5058
5059
  return new Ei();
5059
5060
  const i = r.workDoneToken;
5060
5061
  return delete r.workDoneToken, new rr(e, i);
5061
5062
  }
5062
- Ke.attachWorkDone = md;
5063
- const cd = (e) => class extends e {
5063
+ Ke.attachWorkDone = cd;
5064
+ const vd = (e) => class extends e {
5064
5065
  constructor() {
5065
5066
  super(), this._progressSupported = !1;
5066
5067
  }
@@ -5076,18 +5077,18 @@ const cd = (e) => class extends e {
5076
5077
  }
5077
5078
  createWorkDoneProgress() {
5078
5079
  if (this._progressSupported) {
5079
- const r = (0, sd.generateUuid)();
5080
+ const r = (0, md.generateUuid)();
5080
5081
  return this.connection.sendRequest(er.WorkDoneProgressCreateRequest.type, { token: r }).then(() => new pl(this.connection, r));
5081
5082
  } else
5082
5083
  return Promise.resolve(new hl());
5083
5084
  }
5084
5085
  };
5085
- Ke.ProgressFeature = cd;
5086
+ Ke.ProgressFeature = vd;
5086
5087
  var Li;
5087
5088
  (function(e) {
5088
5089
  e.type = new er.ProgressType();
5089
5090
  })(Li || (Li = {}));
5090
- class vd {
5091
+ class xd {
5091
5092
  constructor(r, i) {
5092
5093
  this._connection = r, this._token = i;
5093
5094
  }
@@ -5095,32 +5096,32 @@ class vd {
5095
5096
  this._connection.sendProgress(Li.type, this._token, r);
5096
5097
  }
5097
5098
  }
5098
- function xd(e, r) {
5099
+ function bd(e, r) {
5099
5100
  if (r === void 0 || r.partialResultToken === void 0)
5100
5101
  return;
5101
5102
  const i = r.partialResultToken;
5102
- return delete r.partialResultToken, new vd(e, i);
5103
+ return delete r.partialResultToken, new xd(e, i);
5103
5104
  }
5104
- Ke.attachPartialResult = xd;
5105
+ Ke.attachPartialResult = bd;
5105
5106
  var ao = {};
5106
5107
  Object.defineProperty(ao, "__esModule", { value: !0 });
5107
5108
  ao.ConfigurationFeature = void 0;
5108
- const bd = ie, pd = oe, hd = (e) => class extends e {
5109
+ const pd = ie, hd = oe, Hd = (e) => class extends e {
5109
5110
  getConfiguration(r) {
5110
- return r ? pd.string(r) ? this._getConfiguration({ section: r }) : this._getConfiguration(r) : this._getConfiguration({});
5111
+ return r ? hd.string(r) ? this._getConfiguration({ section: r }) : this._getConfiguration(r) : this._getConfiguration({});
5111
5112
  }
5112
5113
  _getConfiguration(r) {
5113
5114
  let i = {
5114
5115
  items: Array.isArray(r) ? r : [r]
5115
5116
  };
5116
- return this.connection.sendRequest(bd.ConfigurationRequest.type, i).then((o) => Array.isArray(o) ? Array.isArray(r) ? o : o[0] : Array.isArray(r) ? [] : null);
5117
+ return this.connection.sendRequest(pd.ConfigurationRequest.type, i).then((o) => Array.isArray(o) ? Array.isArray(r) ? o : o[0] : Array.isArray(r) ? [] : null);
5117
5118
  }
5118
5119
  };
5119
- ao.ConfigurationFeature = hd;
5120
+ ao.ConfigurationFeature = Hd;
5120
5121
  var lo = {};
5121
5122
  Object.defineProperty(lo, "__esModule", { value: !0 });
5122
5123
  lo.WorkspaceFoldersFeature = void 0;
5123
- const zt = ie, Hd = (e) => class extends e {
5124
+ const zt = ie, gd = (e) => class extends e {
5124
5125
  constructor() {
5125
5126
  super(), this._notificationIsAutoRegistered = !1;
5126
5127
  }
@@ -5146,11 +5147,11 @@ const zt = ie, Hd = (e) => class extends e {
5146
5147
  return !this._notificationIsAutoRegistered && !this._unregistration && (this._unregistration = this.connection.client.register(zt.DidChangeWorkspaceFoldersNotification.type)), this._onDidChangeWorkspaceFolders.event;
5147
5148
  }
5148
5149
  };
5149
- lo.WorkspaceFoldersFeature = Hd;
5150
+ lo.WorkspaceFoldersFeature = gd;
5150
5151
  var no = {};
5151
5152
  Object.defineProperty(no, "__esModule", { value: !0 });
5152
5153
  no.CallHierarchyFeature = void 0;
5153
- const To = ie, gd = (e) => class extends e {
5154
+ const To = ie, fd = (e) => class extends e {
5154
5155
  get callHierarchy() {
5155
5156
  return {
5156
5157
  onPrepare: (r) => this.connection.onRequest(To.CallHierarchyPrepareRequest.type, (i, o) => r(i, o, this.attachWorkDoneProgress(i), void 0)),
@@ -5165,20 +5166,20 @@ const To = ie, gd = (e) => class extends e {
5165
5166
  };
5166
5167
  }
5167
5168
  };
5168
- no.CallHierarchyFeature = gd;
5169
+ no.CallHierarchyFeature = fd;
5169
5170
  var uo = {};
5170
5171
  Object.defineProperty(uo, "__esModule", { value: !0 });
5171
5172
  uo.ShowDocumentFeature = void 0;
5172
- const fd = ie, Td = (e) => class extends e {
5173
+ const Td = ie, Cd = (e) => class extends e {
5173
5174
  showDocument(r) {
5174
- return this.connection.sendRequest(fd.ShowDocumentRequest.type, r);
5175
+ return this.connection.sendRequest(Td.ShowDocumentRequest.type, r);
5175
5176
  }
5176
5177
  };
5177
- uo.ShowDocumentFeature = Td;
5178
+ uo.ShowDocumentFeature = Cd;
5178
5179
  var so = {};
5179
5180
  Object.defineProperty(so, "__esModule", { value: !0 });
5180
5181
  so.FileOperationsFeature = void 0;
5181
- const gr = ie, Cd = (e) => class extends e {
5182
+ const gr = ie, yd = (e) => class extends e {
5182
5183
  onDidCreateFiles(r) {
5183
5184
  return this.connection.onNotification(gr.DidCreateFilesNotification.type, (i) => {
5184
5185
  r(i);
@@ -5204,20 +5205,20 @@ const gr = ie, Cd = (e) => class extends e {
5204
5205
  return this.connection.onRequest(gr.WillDeleteFilesRequest.type, (i, o) => r(i, o));
5205
5206
  }
5206
5207
  };
5207
- so.FileOperationsFeature = Cd;
5208
+ so.FileOperationsFeature = yd;
5208
5209
  var mo = {};
5209
5210
  Object.defineProperty(mo, "__esModule", { value: !0 });
5210
5211
  mo.LinkedEditingRangeFeature = void 0;
5211
- const yd = ie, Sd = (e) => class extends e {
5212
+ const Sd = ie, kd = (e) => class extends e {
5212
5213
  onLinkedEditingRange(r) {
5213
- return this.connection.onRequest(yd.LinkedEditingRangeRequest.type, (i, o) => r(i, o, this.attachWorkDoneProgress(i), void 0));
5214
+ return this.connection.onRequest(Sd.LinkedEditingRangeRequest.type, (i, o) => r(i, o, this.attachWorkDoneProgress(i), void 0));
5214
5215
  }
5215
5216
  };
5216
- mo.LinkedEditingRangeFeature = Sd;
5217
+ mo.LinkedEditingRangeFeature = kd;
5217
5218
  var co = {};
5218
5219
  Object.defineProperty(co, "__esModule", { value: !0 });
5219
5220
  co.TypeHierarchyFeature = void 0;
5220
- const Co = ie, kd = (e) => class extends e {
5221
+ const Co = ie, wd = (e) => class extends e {
5221
5222
  get typeHierarchy() {
5222
5223
  return {
5223
5224
  onPrepare: (r) => this.connection.onRequest(Co.TypeHierarchyPrepareRequest.type, (i, o) => r(i, o, this.attachWorkDoneProgress(i), void 0)),
@@ -5232,11 +5233,11 @@ const Co = ie, kd = (e) => class extends e {
5232
5233
  };
5233
5234
  }
5234
5235
  };
5235
- co.TypeHierarchyFeature = kd;
5236
+ co.TypeHierarchyFeature = wd;
5236
5237
  var vo = {};
5237
5238
  Object.defineProperty(vo, "__esModule", { value: !0 });
5238
5239
  vo.InlineValueFeature = void 0;
5239
- const Hl = ie, wd = (e) => class extends e {
5240
+ const Hl = ie, Rd = (e) => class extends e {
5240
5241
  get inlineValue() {
5241
5242
  return {
5242
5243
  refresh: () => this.connection.sendRequest(Hl.InlineValueRefreshRequest.type),
@@ -5244,11 +5245,11 @@ const Hl = ie, wd = (e) => class extends e {
5244
5245
  };
5245
5246
  }
5246
5247
  };
5247
- vo.InlineValueFeature = wd;
5248
+ vo.InlineValueFeature = Rd;
5248
5249
  var xo = {};
5249
5250
  Object.defineProperty(xo, "__esModule", { value: !0 });
5250
5251
  xo.FoldingRangeFeature = void 0;
5251
- const gl = ie, Rd = (e) => class extends e {
5252
+ const gl = ie, Bd = (e) => class extends e {
5252
5253
  get foldingRange() {
5253
5254
  return {
5254
5255
  refresh: () => this.connection.sendRequest(gl.FoldingRangeRefreshRequest.type),
@@ -5259,11 +5260,11 @@ const gl = ie, Rd = (e) => class extends e {
5259
5260
  };
5260
5261
  }
5261
5262
  };
5262
- xo.FoldingRangeFeature = Rd;
5263
+ xo.FoldingRangeFeature = Bd;
5263
5264
  var bo = {};
5264
5265
  Object.defineProperty(bo, "__esModule", { value: !0 });
5265
5266
  bo.InlayHintFeature = void 0;
5266
- const yo = ie, Bd = (e) => class extends e {
5267
+ const yo = ie, Wd = (e) => class extends e {
5267
5268
  get inlayHint() {
5268
5269
  return {
5269
5270
  refresh: () => this.connection.sendRequest(yo.InlayHintRefreshRequest.type),
@@ -5272,11 +5273,11 @@ const yo = ie, Bd = (e) => class extends e {
5272
5273
  };
5273
5274
  }
5274
5275
  };
5275
- bo.InlayHintFeature = Bd;
5276
+ bo.InlayHintFeature = Wd;
5276
5277
  var po = {};
5277
5278
  Object.defineProperty(po, "__esModule", { value: !0 });
5278
5279
  po.DiagnosticFeature = void 0;
5279
- const Xr = ie, Wd = (e) => class extends e {
5280
+ const Xr = ie, Id = (e) => class extends e {
5280
5281
  get diagnostics() {
5281
5282
  return {
5282
5283
  refresh: () => this.connection.sendRequest(Xr.DiagnosticRefreshRequest.type),
@@ -5285,29 +5286,29 @@ const Xr = ie, Wd = (e) => class extends e {
5285
5286
  };
5286
5287
  }
5287
5288
  };
5288
- po.DiagnosticFeature = Wd;
5289
+ po.DiagnosticFeature = Id;
5289
5290
  var ho = {};
5290
5291
  Object.defineProperty(ho, "__esModule", { value: !0 });
5291
5292
  ho.MonikerFeature = void 0;
5292
- const Id = ie, Ld = (e) => class extends e {
5293
+ const Ld = ie, Vd = (e) => class extends e {
5293
5294
  get moniker() {
5294
5295
  return {
5295
5296
  on: (r) => {
5296
- const i = Id.MonikerRequest.type;
5297
+ const i = Ld.MonikerRequest.type;
5297
5298
  return this.connection.onRequest(i, (o, t) => r(o, t, this.attachWorkDoneProgress(o), this.attachPartialResultProgress(i, o)));
5298
5299
  }
5299
5300
  };
5300
5301
  }
5301
5302
  };
5302
- ho.MonikerFeature = Ld;
5303
+ ho.MonikerFeature = Vd;
5303
5304
  Object.defineProperty(E, "__esModule", { value: !0 });
5304
5305
  E.createConnection = E.combineFeatures = E.combineNotebooksFeatures = E.combineLanguagesFeatures = E.combineWorkspaceFeatures = E.combineWindowFeatures = E.combineClientFeatures = E.combineTracerFeatures = E.combineTelemetryFeatures = E.combineConsoleFeatures = E._NotebooksImpl = E._LanguagesImpl = E.BulkUnregistration = E.BulkRegistration = E.ErrorMessageTracker = void 0;
5305
- const y = ie, pe = oe, Vi = xe, V = Ke, Vd = ao, zd = lo, Od = no, Dd = Ee, Ad = uo, Nd = so, Pd = mo, Ed = co, Md = vo, _d = xo, Fd = bo, qd = po, $d = vr, Ud = ho;
5306
+ const y = ie, pe = oe, Vi = xe, V = Ke, zd = ao, Od = lo, Dd = no, Ad = Ee, Nd = uo, Pd = so, Ed = mo, Md = co, _d = vo, Fd = xo, qd = bo, $d = po, Ud = vr, jd = ho;
5306
5307
  function So(e) {
5307
5308
  if (e !== null)
5308
5309
  return e;
5309
5310
  }
5310
- class jd {
5311
+ class Gd {
5311
5312
  constructor() {
5312
5313
  this._messages = /* @__PURE__ */ Object.create(null);
5313
5314
  }
@@ -5331,7 +5332,7 @@ class jd {
5331
5332
  });
5332
5333
  }
5333
5334
  }
5334
- E.ErrorMessageTracker = jd;
5335
+ E.ErrorMessageTracker = Gd;
5335
5336
  class fl {
5336
5337
  constructor() {
5337
5338
  }
@@ -5371,7 +5372,7 @@ class fl {
5371
5372
  });
5372
5373
  }
5373
5374
  }
5374
- class Gd {
5375
+ class Yd {
5375
5376
  constructor() {
5376
5377
  }
5377
5378
  attach(r) {
@@ -5399,7 +5400,7 @@ class Gd {
5399
5400
  return this.connection.sendRequest(y.ShowMessageRequest.type, o).then(So);
5400
5401
  }
5401
5402
  }
5402
- const Tl = (0, Ad.ShowDocumentFeature)((0, V.ProgressFeature)(Gd));
5403
+ const Tl = (0, Nd.ShowDocumentFeature)((0, V.ProgressFeature)(Yd));
5403
5404
  var Cl;
5404
5405
  (function(e) {
5405
5406
  function r() {
@@ -5522,7 +5523,7 @@ class Sl {
5522
5523
  return this.connection.sendRequest(y.RegistrationRequest.type, i).then(() => new zi(this._connection, i.registrations.map((o) => ({ id: o.id, method: o.method }))), (o) => (this.connection.console.info("Bulk registration failed."), Promise.reject(o)));
5523
5524
  }
5524
5525
  }
5525
- class Yd {
5526
+ class Jd {
5526
5527
  constructor() {
5527
5528
  }
5528
5529
  attach(r) {
@@ -5545,7 +5546,7 @@ class Yd {
5545
5546
  return this.connection.sendRequest(y.ApplyWorkspaceEditRequest.type, o);
5546
5547
  }
5547
5548
  }
5548
- const kl = (0, Nd.FileOperationsFeature)((0, zd.WorkspaceFoldersFeature)((0, Vd.ConfigurationFeature)(Yd)));
5549
+ const kl = (0, Pd.FileOperationsFeature)((0, Od.WorkspaceFoldersFeature)((0, zd.ConfigurationFeature)(Jd)));
5549
5550
  class wl {
5550
5551
  constructor() {
5551
5552
  this._trace = y.Trace.Off;
@@ -5617,7 +5618,7 @@ class Jl {
5617
5618
  }
5618
5619
  }
5619
5620
  E._LanguagesImpl = Jl;
5620
- const Bl = (0, _d.FoldingRangeFeature)((0, Ud.MonikerFeature)((0, qd.DiagnosticFeature)((0, Fd.InlayHintFeature)((0, Md.InlineValueFeature)((0, Ed.TypeHierarchyFeature)((0, Pd.LinkedEditingRangeFeature)((0, Dd.SemanticTokensFeature)((0, Od.CallHierarchyFeature)(Jl)))))))));
5621
+ const Bl = (0, Fd.FoldingRangeFeature)((0, jd.MonikerFeature)((0, $d.DiagnosticFeature)((0, qd.InlayHintFeature)((0, _d.InlineValueFeature)((0, Md.TypeHierarchyFeature)((0, Ed.LinkedEditingRangeFeature)((0, Ad.SemanticTokensFeature)((0, Dd.CallHierarchyFeature)(Jl)))))))));
5621
5622
  class Xl {
5622
5623
  constructor() {
5623
5624
  }
@@ -5641,7 +5642,7 @@ class Xl {
5641
5642
  }
5642
5643
  }
5643
5644
  E._NotebooksImpl = Xl;
5644
- const Wl = (0, $d.NotebookSyncFeature)(Xl);
5645
+ const Wl = (0, Ud.NotebookSyncFeature)(Xl);
5645
5646
  function Zl(e, r) {
5646
5647
  return function(i) {
5647
5648
  return r(e(i));
@@ -5690,7 +5691,7 @@ function an(e, r) {
5690
5691
  };
5691
5692
  }
5692
5693
  E.combineNotebooksFeatures = an;
5693
- function Jd(e, r) {
5694
+ function Xd(e, r) {
5694
5695
  function i(t, a, l) {
5695
5696
  return t && a ? l(t, a) : t || a;
5696
5697
  }
@@ -5706,8 +5707,8 @@ function Jd(e, r) {
5706
5707
  notebooks: i(e.notebooks, r.notebooks, an)
5707
5708
  };
5708
5709
  }
5709
- E.combineFeatures = Jd;
5710
- function Xd(e, r, i) {
5710
+ E.combineFeatures = Xd;
5711
+ function Zd(e, r, i) {
5711
5712
  const o = i && i.console ? new (i.console(fl))() : new fl(), t = e(o);
5712
5713
  o.rawAttach(t);
5713
5714
  const a = i && i.tracer ? new (i.tracer(wl))() : new wl(), l = i && i.telemetry ? new (i.telemetry(Rl))() : new Rl(), d = i && i.client ? new (i.client(Sl))() : new Sl(), s = i && i.window ? new (i.window(Tl))() : new Tl(), m = i && i.workspace ? new (i.workspace(kl))() : new kl(), c = i && i.languages ? new (i.languages(Bl))() : new Bl(), h = i && i.notebooks ? new (i.notebooks(Wl))() : new Wl(), H = [o, a, l, d, s, m, c, h];
@@ -5846,7 +5847,7 @@ function Xd(e, r, i) {
5846
5847
  a.trace = y.Trace.fromString(b.value);
5847
5848
  }), z;
5848
5849
  }
5849
- E.createConnection = Xd;
5850
+ E.createConnection = Zd;
5850
5851
  (function(e) {
5851
5852
  var r = ae && ae.__createBinding || (Object.create ? function(s, m, c, h) {
5852
5853
  h === void 0 && (h = c);
@@ -5882,7 +5883,7 @@ E.createConnection = Xd;
5882
5883
  };
5883
5884
  })(d || (e.ProposedFeatures = d = {}));
5884
5885
  })(wo);
5885
- var Zd = ie;
5886
+ var Qd = ie;
5886
5887
  (function(e) {
5887
5888
  var r = ae && ae.__createBinding || (Object.create ? function(d, s, m, c) {
5888
5889
  c === void 0 && (c = m);
@@ -5897,7 +5898,7 @@ var Zd = ie;
5897
5898
  };
5898
5899
  Object.defineProperty(e, "__esModule", { value: !0 }), e.createConnection = void 0;
5899
5900
  const o = wo;
5900
- i(Zd, e), i(wo, e);
5901
+ i(Qd, e), i(wo, e);
5901
5902
  let t = !1;
5902
5903
  const a = {
5903
5904
  initialize: (d) => {
@@ -5918,8 +5919,8 @@ var Zd = ie;
5918
5919
  return (0, o.createConnection)(P, a, h);
5919
5920
  }
5920
5921
  e.createConnection = l;
5921
- })(gn);
5922
- const Qd = {
5922
+ })(fn);
5923
+ const Kd = {
5923
5924
  a: {
5924
5925
  status: "experimental",
5925
5926
  description: "This component renders an HTML `a` tag.",
@@ -19436,7 +19437,7 @@ function Ho(e, r) {
19436
19437
  const t = e.children.findLast((a) => a.kind === M.Identifier);
19437
19438
  return r(t);
19438
19439
  }
19439
- function Kd(e) {
19440
+ function eu(e) {
19440
19441
  if (e === null)
19441
19442
  return !1;
19442
19443
  const r = e.at(-1), i = e.at(-2);
@@ -19448,7 +19449,7 @@ function Kd(e) {
19448
19449
  const a = r.children.findIndex((l) => l === i);
19449
19450
  return t <= a;
19450
19451
  }
19451
- function eu(e, r) {
19452
+ function ru(e, r) {
19452
19453
  let i = -1, o = e.at(i), t = [o];
19453
19454
  for (; o; ) {
19454
19455
  if (r(o))
@@ -19457,7 +19458,7 @@ function eu(e, r) {
19457
19458
  }
19458
19459
  return null;
19459
19460
  }
19460
- function ru({
19461
+ function tu({
19461
19462
  item: e,
19462
19463
  metaByComp: r
19463
19464
  }) {
@@ -19477,13 +19478,13 @@ function ru({
19477
19478
  }
19478
19479
  return e;
19479
19480
  }
19480
- function tu({ parseResult: { node: e }, getText: r, metaByComp: i }, o) {
19481
+ function ou({ parseResult: { node: e }, getText: r, metaByComp: i }, o) {
19481
19482
  const t = Vl(e, o);
19482
19483
  if (!t)
19483
19484
  return null;
19484
19485
  const { chainAtPos: a, chainBeforePos: l, sharedParents: d } = t;
19485
19486
  if (t.chainBeforePos === void 0)
19486
- return ou(a, o, i, r);
19487
+ return iu(a, o, i, r);
19487
19488
  const s = l.at(-1);
19488
19489
  switch (s.kind) {
19489
19490
  case M.OpenNodeStart:
@@ -19492,9 +19493,9 @@ function tu({ parseResult: { node: e }, getText: r, metaByComp: i }, o) {
19492
19493
  const c = l.at(-2) ?? a.at(d - 1);
19493
19494
  return c && c.kind === M.ElementNode ? Oi(c, i, r) : Tr(i);
19494
19495
  case M.Identifier:
19495
- const h = eu(l, (S) => S.kind === M.ElementNode);
19496
+ const h = ru(l, (S) => S.kind === M.ElementNode);
19496
19497
  if (l.at(-2).kind === M.TagNameNode && o === s.end) {
19497
- if (h && Kd(h)) {
19498
+ if (h && eu(h)) {
19498
19499
  const S = h.at(-1);
19499
19500
  return Oi(S, i, r);
19500
19501
  }
@@ -19530,7 +19531,7 @@ function Oi(e, r, i) {
19530
19531
  const m = a !== void 0 ? a + ":" + d : d;
19531
19532
  return [dn(m)];
19532
19533
  }
19533
- function ou(e, r, i, o) {
19534
+ function iu(e, r, i, o) {
19534
19535
  const t = e.at(-2);
19535
19536
  if (!t)
19536
19537
  return null;
@@ -19550,10 +19551,10 @@ function nn(e, r) {
19550
19551
  const i = r.getComponent(e);
19551
19552
  if (!i)
19552
19553
  return null;
19553
- const o = au.bind({}, e);
19554
+ const o = lu.bind({}, e);
19554
19555
  return i.getAllAttributes().map(o);
19555
19556
  }
19556
- function iu(e) {
19557
+ function au(e) {
19557
19558
  switch (e) {
19558
19559
  case "api":
19559
19560
  return Ot.Function;
@@ -19565,10 +19566,10 @@ function iu(e) {
19565
19566
  return Ot.Property;
19566
19567
  }
19567
19568
  }
19568
- function au(e, r) {
19569
+ function lu(e, r) {
19569
19570
  return {
19570
19571
  label: r.kind === "event" ? pn(r.name) : r.name,
19571
- kind: iu(r.kind),
19572
+ kind: au(r.kind),
19572
19573
  data: {
19573
19574
  metadataAccessInfo: {
19574
19575
  componentName: e,
@@ -19600,7 +19601,7 @@ function un(e, r) {
19600
19601
  end: e(r.end)
19601
19602
  };
19602
19603
  }
19603
- function lu({ node: e, getText: r, metaByComp: i }, o) {
19604
+ function nu({ node: e, getText: r, metaByComp: i }, o) {
19604
19605
  const t = Vl(e, o);
19605
19606
  if (t === void 0)
19606
19607
  return null;
@@ -19609,14 +19610,14 @@ function lu({ node: e, getText: r, metaByComp: i }, o) {
19609
19610
  case M.Identifier:
19610
19611
  switch (d == null ? void 0 : d.kind) {
19611
19612
  case M.TagNameNode:
19612
- return uu({
19613
+ return su({
19613
19614
  metaByComp: i,
19614
19615
  tagNameNode: d,
19615
19616
  identNode: l,
19616
19617
  getText: r
19617
19618
  });
19618
19619
  case M.AttributeKeyNode:
19619
- return du({
19620
+ return uu({
19620
19621
  metaByComp: i,
19621
19622
  attrKeyNode: d,
19622
19623
  parentStack: a.slice(0, -2),
@@ -19627,8 +19628,8 @@ function lu({ node: e, getText: r, metaByComp: i }, o) {
19627
19628
  }
19628
19629
  return null;
19629
19630
  }
19630
- function nu(e, r) {
19631
- const i = lu(e, r);
19631
+ function du(e, r) {
19632
+ const i = nu(e, r);
19632
19633
  if (i === null)
19633
19634
  return null;
19634
19635
  const { value: o, range: t } = i;
@@ -19640,7 +19641,7 @@ function nu(e, r) {
19640
19641
  range: un(e.offsetToPosition, t)
19641
19642
  };
19642
19643
  }
19643
- function du({
19644
+ function uu({
19644
19645
  metaByComp: e,
19645
19646
  attrKeyNode: r,
19646
19647
  parentStack: i,
@@ -19679,7 +19680,7 @@ function du({
19679
19680
  }
19680
19681
  } : null;
19681
19682
  }
19682
- function uu({
19683
+ function su({
19683
19684
  metaByComp: e,
19684
19685
  tagNameNode: r,
19685
19686
  identNode: i,
@@ -19698,11 +19699,38 @@ function uu({
19698
19699
  }
19699
19700
  } : null;
19700
19701
  }
19701
- function su(e) {
19702
+ function mu(e, { lineSeparator: r, indentation: i }) {
19703
+ try {
19704
+ return Hn(e, { lineSeparator: r, indentation: i, strictMode: !1 });
19705
+ } catch (o) {
19706
+ return console.error(o), null;
19707
+ }
19708
+ }
19709
+ function cu(e, r) {
19710
+ const i = {
19711
+ indentation: r.insertSpaces ? " ".repeat(r.tabSize) : " ",
19712
+ lineSeparator: `
19713
+ `
19714
+ // Default to LF, could be made configurable
19715
+ }, o = e.getText(), t = mu(o, i);
19716
+ if (t === null)
19717
+ return null;
19718
+ if (t === o)
19719
+ return [];
19720
+ const a = o.length === 0 ? 0 : o.length - 1;
19721
+ return [{
19722
+ range: {
19723
+ start: { line: 0, character: 0 },
19724
+ end: e.positionAt(a)
19725
+ },
19726
+ newText: t
19727
+ }];
19728
+ }
19729
+ function vu(e) {
19702
19730
  const { errors: r } = e.parseResult;
19703
- return r.map((i) => mu(i, e.offsetToPos));
19731
+ return r.map((i) => xu(i, e.offsetToPos));
19704
19732
  }
19705
- function mu(e, r) {
19733
+ function xu(e, r) {
19706
19734
  return {
19707
19735
  severity: e.category,
19708
19736
  range: un(r, e),
@@ -19710,8 +19738,8 @@ function mu(e, r) {
19710
19738
  code: e.code
19711
19739
  };
19712
19740
  }
19713
- const cu = Qd, ko = new hn(cu);
19714
- function hu(e) {
19741
+ const bu = Kd, ko = new hn(bu);
19742
+ function Tu(e) {
19715
19743
  const r = new mn(xn);
19716
19744
  let i = !1, o = !1;
19717
19745
  e.onInitialize((d) => {
@@ -19725,7 +19753,8 @@ function hu(e) {
19725
19753
  resolveProvider: !0,
19726
19754
  triggerCharacters: ["<", "/"]
19727
19755
  },
19728
- hoverProvider: !0
19756
+ hoverProvider: !0,
19757
+ documentFormattingProvider: !0
19729
19758
  }
19730
19759
  };
19731
19760
  return o && (m.capabilities.workspace = {
@@ -19742,8 +19771,8 @@ function hu(e) {
19742
19771
  if (!m)
19743
19772
  return [];
19744
19773
  const c = a(m);
19745
- return tu({ parseResult: c.parseResult, getText: c.getText, metaByComp: ko }, m.offsetAt(d));
19746
- }), e.onCompletionResolve((d) => ru({ metaByComp: ko, item: d })), e.onHover(({ position: d, textDocument: s }) => {
19774
+ return ou({ parseResult: c.parseResult, getText: c.getText, metaByComp: ko }, m.offsetAt(d));
19775
+ }), e.onCompletionResolve((d) => tu({ metaByComp: ko, item: d })), e.onHover(({ position: d, textDocument: s }) => {
19747
19776
  const m = r.get(s.uri);
19748
19777
  if (!m)
19749
19778
  return null;
@@ -19753,7 +19782,10 @@ function hu(e) {
19753
19782
  metaByComp: ko,
19754
19783
  offsetToPosition: (f) => m.positionAt(f)
19755
19784
  };
19756
- return nu(H, m.offsetAt(d));
19785
+ return du(H, m.offsetAt(d));
19786
+ }), e.onDocumentFormatting(({ textDocument: d, options: s }) => {
19787
+ const m = r.get(d.uri);
19788
+ return m ? cu(m, s) : null;
19757
19789
  });
19758
19790
  const t = /* @__PURE__ */ new Map();
19759
19791
  function a(d) {
@@ -19774,7 +19806,7 @@ function hu(e) {
19774
19806
  t.delete(d.uri);
19775
19807
  }), r.onDidChangeContent(l);
19776
19808
  function l({ document: d }) {
19777
- const { parseResult: s } = a(d), c = su({
19809
+ const { parseResult: s } = a(d), c = vu({
19778
19810
  parseResult: s,
19779
19811
  offsetToPos: (h) => d.positionAt(h)
19780
19812
  });
@@ -19787,6 +19819,6 @@ function hu(e) {
19787
19819
  r.listen(e), console.log("starting to listen"), e.listen();
19788
19820
  }
19789
19821
  export {
19790
- gn as m,
19791
- hu as s
19822
+ fn as m,
19823
+ Tu as s
19792
19824
  };