@plumile/ui 0.1.112 → 0.1.113

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 (57) hide show
  1. package/lib/esm/atomic/molecules/markdown/components/MarkdownArticleContainer.css.js +0 -1
  2. package/lib/esm/atomic/molecules/markdown/components/MarkdownTableCell.css.js +1 -0
  3. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/browser/main.js +1 -1
  4. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/api.js +1 -1
  5. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/connection.js +1 -1
  6. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/messages.js +1 -1
  7. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +1 -1
  8. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +1 -1
  9. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/browser.js +11 -0
  10. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/browser.js.map +1 -0
  11. package/lib/esm/node_modules/{vscode-jsonrpc → vscode-languageserver-protocol/node_modules/vscode-jsonrpc}/lib/browser/main.js +2 -2
  12. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/main.js.map +1 -0
  13. package/lib/esm/node_modules/{vscode-jsonrpc → vscode-languageserver-protocol/node_modules/vscode-jsonrpc}/lib/browser/ril.js +2 -2
  14. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/ril.js.map +1 -0
  15. package/lib/esm/node_modules/{vscode-jsonrpc → vscode-languageserver-protocol/node_modules/vscode-jsonrpc}/lib/common/api.js +14 -14
  16. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/api.js.map +1 -0
  17. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/cancellation.js +61 -0
  18. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/cancellation.js.map +1 -0
  19. package/lib/esm/node_modules/{vscode-jsonrpc → vscode-languageserver-protocol/node_modules/vscode-jsonrpc}/lib/common/connection.js +9 -9
  20. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/connection.js.map +1 -0
  21. package/lib/esm/node_modules/{vscode-jsonrpc → vscode-languageserver-protocol/node_modules/vscode-jsonrpc}/lib/common/disposable.js +2 -2
  22. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/disposable.js.map +1 -0
  23. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/events.js +68 -0
  24. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/events.js.map +1 -0
  25. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/is.js +38 -0
  26. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/is.js.map +1 -0
  27. package/lib/esm/node_modules/{vscode-jsonrpc → vscode-languageserver-protocol/node_modules/vscode-jsonrpc}/lib/common/linkedMap.js +2 -2
  28. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/linkedMap.js.map +1 -0
  29. package/lib/esm/node_modules/{vscode-jsonrpc → vscode-languageserver-protocol/node_modules/vscode-jsonrpc}/lib/common/messageBuffer.js +2 -2
  30. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js.map +1 -0
  31. package/lib/esm/node_modules/{vscode-jsonrpc → vscode-languageserver-protocol/node_modules/vscode-jsonrpc}/lib/common/messageReader.js +5 -5
  32. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageReader.js.map +1 -0
  33. package/lib/esm/node_modules/{vscode-jsonrpc → vscode-languageserver-protocol/node_modules/vscode-jsonrpc}/lib/common/messageWriter.js +5 -5
  34. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageWriter.js.map +1 -0
  35. package/lib/esm/node_modules/{vscode-jsonrpc → vscode-languageserver-protocol/node_modules/vscode-jsonrpc}/lib/common/messages.js +2 -2
  36. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messages.js.map +1 -0
  37. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/ral.js +22 -0
  38. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/ral.js.map +1 -0
  39. package/lib/esm/node_modules/{vscode-jsonrpc → vscode-languageserver-protocol/node_modules/vscode-jsonrpc}/lib/common/semaphore.js +2 -2
  40. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/semaphore.js.map +1 -0
  41. package/lib/esm/node_modules/{vscode-jsonrpc → vscode-languageserver-protocol/node_modules/vscode-jsonrpc}/lib/common/sharedArrayCancellation.js +2 -2
  42. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js.map +1 -0
  43. package/package.json +6 -6
  44. package/lib/esm/node_modules/vscode-jsonrpc/browser.js +0 -11
  45. package/lib/esm/node_modules/vscode-jsonrpc/browser.js.map +0 -1
  46. package/lib/esm/node_modules/vscode-jsonrpc/lib/browser/main.js.map +0 -1
  47. package/lib/esm/node_modules/vscode-jsonrpc/lib/browser/ril.js.map +0 -1
  48. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/api.js.map +0 -1
  49. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/connection.js.map +0 -1
  50. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/disposable.js.map +0 -1
  51. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/linkedMap.js.map +0 -1
  52. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js.map +0 -1
  53. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/messageReader.js.map +0 -1
  54. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/messageWriter.js.map +0 -1
  55. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/messages.js.map +0 -1
  56. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/semaphore.js.map +0 -1
  57. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js.map +0 -1
@@ -0,0 +1,68 @@
1
+ import { __commonJSMin as e } from "../../../../../../_virtual/_rolldown/runtime.js";
2
+ import { require_ral as t } from "./ral.js";
3
+ //#region ../../node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/events.js
4
+ var n = /* @__PURE__ */ e(((e) => {
5
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.Emitter = e.Event = void 0;
6
+ var n = t(), r;
7
+ (function(e) {
8
+ let t = { dispose() {} };
9
+ e.None = function() {
10
+ return t;
11
+ };
12
+ })(r || (e.Event = r = {}));
13
+ var i = class {
14
+ add(e, t = null, n) {
15
+ this._callbacks || (this._callbacks = [], this._contexts = []), this._callbacks.push(e), this._contexts.push(t), Array.isArray(n) && n.push({ dispose: () => this.remove(e, t) });
16
+ }
17
+ remove(e, t = null) {
18
+ if (!this._callbacks) return;
19
+ let n = !1;
20
+ for (let r = 0, i = this._callbacks.length; r < i; r++) if (this._callbacks[r] === e) if (this._contexts[r] === t) {
21
+ this._callbacks.splice(r, 1), this._contexts.splice(r, 1);
22
+ return;
23
+ } else n = !0;
24
+ if (n) throw Error("When adding a listener with a context, you should remove it with the same context");
25
+ }
26
+ invoke(...e) {
27
+ if (!this._callbacks) return [];
28
+ let t = [], r = this._callbacks.slice(0), i = this._contexts.slice(0);
29
+ for (let a = 0, o = r.length; a < o; a++) try {
30
+ t.push(r[a].apply(i[a], e));
31
+ } catch (e) {
32
+ (0, n.default)().console.error(e);
33
+ }
34
+ return t;
35
+ }
36
+ isEmpty() {
37
+ return !this._callbacks || this._callbacks.length === 0;
38
+ }
39
+ dispose() {
40
+ this._callbacks = void 0, this._contexts = void 0;
41
+ }
42
+ }, a = class e {
43
+ constructor(e) {
44
+ this._options = e;
45
+ }
46
+ get event() {
47
+ return this._event ||= (t, n, r) => {
48
+ this._callbacks ||= new i(), this._options && this._options.onFirstListenerAdd && this._callbacks.isEmpty() && this._options.onFirstListenerAdd(this), this._callbacks.add(t, n);
49
+ let a = { dispose: () => {
50
+ this._callbacks && (this._callbacks.remove(t, n), a.dispose = e._noop, this._options && this._options.onLastListenerRemove && this._callbacks.isEmpty() && this._options.onLastListenerRemove(this));
51
+ } };
52
+ return Array.isArray(r) && r.push(a), a;
53
+ }, this._event;
54
+ }
55
+ fire(e) {
56
+ this._callbacks && this._callbacks.invoke.call(this._callbacks, e);
57
+ }
58
+ dispose() {
59
+ this._callbacks &&= (this._callbacks.dispose(), void 0);
60
+ }
61
+ };
62
+ e.Emitter = a, a._noop = function() {};
63
+ }));
64
+ //#endregion
65
+ export default n();
66
+ export { n as require_events };
67
+
68
+ //# sourceMappingURL=events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.js","names":[],"sources":["../../../../../../../../../../node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/events.js"],"sourcesContent":["\"use strict\";\n/* --------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n * ------------------------------------------------------------------------------------------ */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Emitter = exports.Event = void 0;\nconst ral_1 = require(\"./ral\");\nvar Event;\n(function (Event) {\n const _disposable = { dispose() { } };\n Event.None = function () { return _disposable; };\n})(Event || (exports.Event = Event = {}));\nclass CallbackList {\n add(callback, context = null, bucket) {\n if (!this._callbacks) {\n this._callbacks = [];\n this._contexts = [];\n }\n this._callbacks.push(callback);\n this._contexts.push(context);\n if (Array.isArray(bucket)) {\n bucket.push({ dispose: () => this.remove(callback, context) });\n }\n }\n remove(callback, context = null) {\n if (!this._callbacks) {\n return;\n }\n let foundCallbackWithDifferentContext = false;\n for (let i = 0, len = this._callbacks.length; i < len; i++) {\n if (this._callbacks[i] === callback) {\n if (this._contexts[i] === context) {\n // callback & context match => remove it\n this._callbacks.splice(i, 1);\n this._contexts.splice(i, 1);\n return;\n }\n else {\n foundCallbackWithDifferentContext = true;\n }\n }\n }\n if (foundCallbackWithDifferentContext) {\n throw new Error('When adding a listener with a context, you should remove it with the same context');\n }\n }\n invoke(...args) {\n if (!this._callbacks) {\n return [];\n }\n const ret = [], callbacks = this._callbacks.slice(0), contexts = this._contexts.slice(0);\n for (let i = 0, len = callbacks.length; i < len; i++) {\n try {\n ret.push(callbacks[i].apply(contexts[i], args));\n }\n catch (e) {\n // eslint-disable-next-line no-console\n (0, ral_1.default)().console.error(e);\n }\n }\n return ret;\n }\n isEmpty() {\n return !this._callbacks || this._callbacks.length === 0;\n }\n dispose() {\n this._callbacks = undefined;\n this._contexts = undefined;\n }\n}\nclass Emitter {\n constructor(_options) {\n this._options = _options;\n }\n /**\n * For the public to allow to subscribe\n * to events from this Emitter\n */\n get event() {\n if (!this._event) {\n this._event = (listener, thisArgs, disposables) => {\n if (!this._callbacks) {\n this._callbacks = new CallbackList();\n }\n if (this._options && this._options.onFirstListenerAdd && this._callbacks.isEmpty()) {\n this._options.onFirstListenerAdd(this);\n }\n this._callbacks.add(listener, thisArgs);\n const result = {\n dispose: () => {\n if (!this._callbacks) {\n // disposable is disposed after emitter is disposed.\n return;\n }\n this._callbacks.remove(listener, thisArgs);\n result.dispose = Emitter._noop;\n if (this._options && this._options.onLastListenerRemove && this._callbacks.isEmpty()) {\n this._options.onLastListenerRemove(this);\n }\n }\n };\n if (Array.isArray(disposables)) {\n disposables.push(result);\n }\n return result;\n };\n }\n return this._event;\n }\n /**\n * To be kept private to fire an event to\n * subscribers\n */\n fire(event) {\n if (this._callbacks) {\n this._callbacks.invoke.call(this._callbacks, event);\n }\n }\n dispose() {\n if (this._callbacks) {\n this._callbacks.dispose();\n this._callbacks = undefined;\n }\n }\n}\nexports.Emitter = Emitter;\nEmitter._noop = function () { };\n"],"x_google_ignoreList":[0],"mappings":";;;;CAMA,AADA,OAAO,eAAe,GAAS,cAAc,EAAE,OAAO,IAAM,CAAC,EAC7D,EAAQ,UAAU,EAAQ,QAAQ,KAAK;CACvC,IAAM,IAAA,GAAA,EACF;CACJ,CAAC,SAAU,GAAO;EACd,IAAM,IAAc,EAAE,UAAU,IAAK;EACrC,EAAM,OAAO,WAAY;GAAE,OAAO;;IACnC,MAAU,EAAQ,QAAQ,IAAQ,EAAE,EAAE;CACzC,IAAM,IAAN,MAAmB;EACf,IAAI,GAAU,IAAU,MAAM,GAAQ;GAOlC,AANK,KAAK,eACN,KAAK,aAAa,EAAE,EACpB,KAAK,YAAY,EAAE,GAEvB,KAAK,WAAW,KAAK,EAAS,EAC9B,KAAK,UAAU,KAAK,EAAQ,EACxB,MAAM,QAAQ,EAAO,IACrB,EAAO,KAAK,EAAE,eAAe,KAAK,OAAO,GAAU,EAAQ,EAAE,CAAC;;EAGtE,OAAO,GAAU,IAAU,MAAM;GAC7B,IAAI,CAAC,KAAK,YACN;GAEJ,IAAI,IAAoC;GACxC,KAAK,IAAI,IAAI,GAAG,IAAM,KAAK,WAAW,QAAQ,IAAI,GAAK,KACnD,IAAI,KAAK,WAAW,OAAO,GACvB,IAAI,KAAK,UAAU,OAAO,GAAS;IAG/B,AADA,KAAK,WAAW,OAAO,GAAG,EAAE,EAC5B,KAAK,UAAU,OAAO,GAAG,EAAE;IAC3B;UAGA,IAAoC;GAIhD,IAAI,GACA,MAAU,MAAM,oFAAoF;;EAG5G,OAAO,GAAG,GAAM;GACZ,IAAI,CAAC,KAAK,YACN,OAAO,EAAE;GAEb,IAAM,IAAM,EAAE,EAAE,IAAY,KAAK,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tual/_rolldown/runtime.js";
2
+ //#region ../../node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/is.js
3
+ var t = /* @__PURE__ */ e(((e) => {
4
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.stringArray = e.array = e.func = e.error = e.number = e.string = e.boolean = void 0;
5
+ function t(e) {
6
+ return e === !0 || e === !1;
7
+ }
8
+ e.boolean = t;
9
+ function n(e) {
10
+ return typeof e == "string" || e instanceof String;
11
+ }
12
+ e.string = n;
13
+ function r(e) {
14
+ return typeof e == "number" || e instanceof Number;
15
+ }
16
+ e.number = r;
17
+ function i(e) {
18
+ return e instanceof Error;
19
+ }
20
+ e.error = i;
21
+ function a(e) {
22
+ return typeof e == "function";
23
+ }
24
+ e.func = a;
25
+ function o(e) {
26
+ return Array.isArray(e);
27
+ }
28
+ e.array = o;
29
+ function s(e) {
30
+ return o(e) && e.every((e) => n(e));
31
+ }
32
+ e.stringArray = s;
33
+ }));
34
+ //#endregion
35
+ export default t();
36
+ export { t as require_is };
37
+
38
+ //# sourceMappingURL=is.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is.js","names":[],"sources":["../../../../../../../../../../node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/is.js"],"sourcesContent":["\"use strict\";\n/* --------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n * ------------------------------------------------------------------------------------------ */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.stringArray = exports.array = exports.func = exports.error = exports.number = exports.string = exports.boolean = void 0;\nfunction boolean(value) {\n return value === true || value === false;\n}\nexports.boolean = boolean;\nfunction string(value) {\n return typeof value === 'string' || value instanceof String;\n}\nexports.string = string;\nfunction number(value) {\n return typeof value === 'number' || value instanceof Number;\n}\nexports.number = number;\nfunction error(value) {\n return value instanceof Error;\n}\nexports.error = error;\nfunction func(value) {\n return typeof value === 'function';\n}\nexports.func = func;\nfunction array(value) {\n return Array.isArray(value);\n}\nexports.array = array;\nfunction stringArray(value) {\n return array(value) && value.every(elem => string(elem));\n}\nexports.stringArray = stringArray;\n"],"x_google_ignoreList":[0],"mappings":";;;CAMA,AADA,OAAO,eAAe,GAAS,cAAc,EAAE,OAAO,IAAM,CAAC,EAC7D,EAAQ,cAAc,EAAQ,QAAQ,EAAQ,OAAO,EAAQ,QAAQ,EAAQ,SAAS,EAAQ,SAAS,EAAQ,UAAU,KAAK;CAC9H,SAAS,EAAQ,GAAO;EACpB,OAAO,MAAU,MAAQ,MAAU;;CAEvC,EAAQ,UAAU;CAClB,SAAS,EAAO,GAAO;EACnB,OAAO,OAAO,KAAU,YAAY,aAAiB;;CAEzD,EAAQ,SAAS;CACjB,SAAS,EAAO,GAAO;EACnB,OAAO,OAAO,KAAU,YAAY,aAAiB;;CAEzD,EAAQ,SAAS;CACjB,SAAS,EAAM,GAAO;EAClB,OAAO,aAAiB;;CAE5B,EAAQ,QAAQ;CAChB,SAAS,EAAK,GAAO;EACjB,OAAO,OAAO,KAAU;;CAE5B,EAAQ,OAAO;CACf,SAAS,EAAM,GAAO;EAClB,OAAO,MAAM,QAAQ,EAAM;;CAE/B,EAAQ,QAAQ;CAChB,SAAS,EAAY,GAAO;EACxB,OAAO,EAAM,EAAM,IAAI,EAAM,OAAM,MAAQ,EAAO,EAAK,CAAC;;CAE5D,EAAQ,cAAc"}
@@ -1,5 +1,5 @@
1
- import { __commonJSMin as e } from "../../../../_virtual/_rolldown/runtime.js";
2
- //#region ../../node_modules/vscode-jsonrpc/lib/common/linkedMap.js
1
+ import { __commonJSMin as e } from "../../../../../../_virtual/_rolldown/runtime.js";
2
+ //#region ../../node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/linkedMap.js
3
3
  var t = /* @__PURE__ */ e(((e) => {
4
4
  var t;
5
5
  Object.defineProperty(e, "__esModule", { value: !0 }), e.LRUCache = e.LinkedMap = e.Touch = void 0;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linkedMap.js","names":[],"sources":["../../../../../../../../../../node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/linkedMap.js"],"sourcesContent":["\"use strict\";\n/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.LRUCache = exports.LinkedMap = exports.Touch = void 0;\nvar Touch;\n(function (Touch) {\n Touch.None = 0;\n Touch.First = 1;\n Touch.AsOld = Touch.First;\n Touch.Last = 2;\n Touch.AsNew = Touch.Last;\n})(Touch || (exports.Touch = Touch = {}));\nclass LinkedMap {\n constructor() {\n this[_a] = 'LinkedMap';\n this._map = new Map();\n this._head = undefined;\n this._tail = undefined;\n this._size = 0;\n this._state = 0;\n }\n clear() {\n this._map.clear();\n this._head = undefined;\n this._tail = undefined;\n this._size = 0;\n this._state++;\n }\n isEmpty() {\n return !this._head && !this._tail;\n }\n get size() {\n return this._size;\n }\n get first() {\n return this._head?.value;\n }\n get last() {\n return this._tail?.value;\n }\n has(key) {\n return this._map.has(key);\n }\n get(key, touch = Touch.None) {\n const item = this._map.get(key);\n if (!item) {\n return undefined;\n }\n if (touch !== Touch.None) {\n this.touch(item, touch);\n }\n return item.value;\n }\n set(key, value, touch = Touch.None) {\n let item = this._map.get(key);\n if (item) {\n item.value = value;\n if (touch !== Touch.None) {\n this.touch(item, touch);\n }\n }\n else {\n item = { key, value, next: undefined, previous: undefined };\n switch (touch) {\n case Touch.None:\n this.addItemLast(item);\n break;\n case Touch.First:\n this.addItemFirst(item);\n break;\n case Touch.Last:\n this.addItemLast(item);\n break;\n default:\n this.addItemLast(item);\n break;\n }\n this._map.set(key, item);\n this._size++;\n }\n return this;\n }\n delete(key) {\n return !!this.remove(key);\n }\n remove(key) {\n const item = this._map.get(key);\n if (!item) {\n return undefined;\n }\n this._map.delete(key);\n this.removeItem(item);\n this._size--;\n return item.value;\n }\n shift() {\n if (!this._head && !this._tail) {\n return undefined;\n }\n if (!this._head || !this._tail) {\n throw new Error('Invalid list');\n }\n const item = this._head;\n this._map.delete(item.key);\n this.removeItem(item);\n this._size--;\n return item.value;\n }\n forEach(callbackfn, thisArg) {\n const state = this._state;\n let current = this._head;\n while (current) {\n if (thisArg) {\n callbackfn.bind(thisArg)(current.value, current.key, this);\n }\n else {\n callbackfn(current.value, current.key, this);\n }\n if (this._state !== state) {\n throw new Error(`LinkedMap got modified during iteration.`);\n }\n current = current.next;\n }\n }\n keys() {\n const state = this._state;\n let current = this._head;\n const iterator = {\n [Symbol.iterator]: () => {\n return iterator;\n },\n next: () => {\n if (this._state !== state) {\n throw new Error(`LinkedMap got modified during iteration.`);\n }\n if (current) {\n const result = { value: current.key, done: false };\n current = current.next;\n return result;\n }\n else {\n return { value: undefined, done: true };\n }\n }\n };\n return iterator;\n }\n values() {\n const state = this._state;\n let current = this._head;\n const iterator = {\n [Symbol.iterator]: () => {\n return iterator;\n },\n next: () => {\n if (this._state !== state) {\n throw new Error(`LinkedMap got modified during iteration.`);\n }\n if (current) {\n const result = { value: current.value, done: false };\n current = current.next;\n return result;\n }\n else {\n return { value: undefined, done: true };\n }\n }\n };\n return iterator;\n }\n entries() {\n const state = this._state;\n let current = this._head;\n const iterator = {\n [Symbol.iterator]: () => {\n return iterator;\n },\n next: () => {\n if (this._state !== state) {\n throw new Error(`LinkedMap got modified during iteration.`);\n }\n if (current) {\n const result = { value: [current.key, current.value], done: false };\n current = current.next;\n return result;\n }\n else {\n return { value: undefined, done: true };\n }\n }\n };\n return iterator;\n }\n [(_a = Symbol.toStringTag, Symbol.iterator)]() {\n return this.entries();\n }\n trimOld(newSize) {\n if (newSize >= this.size) {\n return;\n }\n if (newSize === 0) {\n this.clear();\n return;\n }\n let current = this._head;\n let currentSize = this.size;\n while (current && currentSize > newSize) {\n this._map.delete(current.key);\n current = current.next;\n currentSize--;\n }\n this._head = current;\n this._size = currentSize;\n if (current) {\n current.previous = undefined;\n }\n this._state++;\n }\n addItemFirst(item) {\n // First time Insert\n if (!this._head && !this._tail) {\n this._tail = item;\n }\n else if (!this._head) {\n throw new Error('Invalid list');\n }\n else {\n item.next = this._head;\n this._head.previous = item;\n }\n this._head = item;\n this._state++;\n }\n addItemLast(item) {\n // First time Insert\n if (!this._head && !this._tail) {\n this._head = item;\n }\n else if (!this._tail) {\n throw new Error('Invalid list');\n }\n else {\n item.previous = this._tail;\n this._tail.next = item;\n }\n this._tail = item;\n this._state++;\n }\n removeItem(item) {\n if (item === this._head && item === this._tail) {\n this._head = undefined;\n this._tail = undefined;\n }\n else if (item === this._head) {\n // This can only happened if size === 1 which is handle\n // by the case above.\n if (!item.next) {\n throw new Error('Invalid list');\n }\n item.next.previous = undefined;\n this._head = item.next;\n }\n else if (item === this._tail) {\n // This can only happened if size === 1 which is handle\n // by the case above.\n if (!item.previous) {\n throw new Error('Invalid list');\n }\n item.previous.next = undefined;\n this._tail = item.previous;\n }\n else {\n const next = item.next;\n const previous = item.previous;\n if (!next || !previous) {\n throw new Error('Invalid list');\n }\n next.previous = previous;\n previous.next = next;\n }\n item.next = undefined;\n item.previous = undefined;\n this._state++;\n }\n touch(item, touch) {\n if (!this._head || !this._tail) {\n throw new Error('Invalid list');\n }\n if ((touch !== Touch.First && touch !== Touch.Last)) {\n return;\n }\n if (touch === Touch.First) {\n if (item === this._head) {\n return;\n }\n const next = item.next;\n const previous = item.previous;\n // Unlink the item\n if (item === this._tail) {\n // previous must be defined since item was not head but is tail\n // So there are more than on item in the map\n previous.next = undefined;\n this._tail = previous;\n }\n else {\n // Both next and previous are not undefined since item was neither head nor tail.\n next.previous = previous;\n previous.next = next;\n }\n // Insert the node at head\n item.previous = undefined;\n item.next = this._head;\n this._head.previous = item;\n this._head = item;\n this._state++;\n }\n else if (touch === Touch.Last) {\n if (item === this._tail) {\n return;\n }\n const next = item.next;\n const previous = item.previous;\n // Unlink the item.\n if (item === this._head) {\n // next must be defined since item was not tail but is head\n // So there are more than on item in the map\n next.previous = undefined;\n this._head = next;\n }\n else {\n // Both next and previous are not undefined since item was neither head nor tail.\n next.previous = previous;\n previous.next = next;\n }\n item.next = undefined;\n item.previous = this._tail;\n this._tail.next = item;\n this._tail = item;\n this._state++;\n }\n }\n toJSON() {\n const data = [];\n this.forEach((value, key) => {\n data.push([key, value]);\n });\n return data;\n }\n fromJSON(data) {\n this.clear();\n for (const [key, value] of data) {\n this.set(key, value);\n }\n }\n}\nexports.LinkedMap = LinkedMap;\nclass LRUCache extends LinkedMap {\n constructor(limit, ratio = 1) {\n super();\n this._limit = limit;\n this._ratio = Math.min(Math.max(0, ratio), 1);\n }\n get limit() {\n return this._limit;\n }\n set limit(limit) {\n this._limit = limit;\n this.checkTrim();\n }\n get ratio() {\n return this._ratio;\n }\n set ratio(ratio) {\n this._ratio = Math.min(Math.max(0, ratio), 1);\n this.checkTrim();\n }\n get(key, touch = Touch.AsNew) {\n return super.get(key, touch);\n }\n peek(key) {\n return super.get(key, Touch.None);\n }\n set(key, value) {\n super.set(key, value, Touch.Last);\n this.checkTrim();\n return this;\n }\n checkTrim() {\n if (this.size > this._limit) {\n this.trimOld(Math.round(this._limit * this._ratio));\n }\n }\n}\nexports.LRUCache = LRUCache;\n"],"x_google_ignoreList":[0],"mappings":";;;CAKA,IAAI;CAEJ,AADA,OAAO,eAAe,GAAS,cAAc,EAAE,OAAO,IAAM,CAAC,EAC7D,EAAQ,WAAW,EAAQ,YAAY,EAAQ,QAAQ,KAAK;CAC5D,IAAI;CACJ,CAAC,SAAU,GAAO;EAKd,AAJA,EAAM,OAAO,GACb,EAAM,QAAQ,GACd,EAAM,QAAQ,EAAM,OACpB,EAAM,OAAO,GACb,EAAM,QAAQ,EAAM;IACrB,MAAU,EAAQ,QAAQ,IAAQ,EAAE,EAAE;CACzC,IAAM,IAAN,MAAgB;EACZ,cAAc;GAMV,AALA,KAAK,KAAM,aACX,KAAK,uBAAO,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WAAW,KAAK,OACrB,KAAK,MAAM,OAAO,GAClB,KAAK,QAAQ,GACb,KAAK;;;;EAGb,SAAS;GACL,IAAM,IAAO,EAAE;GAIf,OAHA,KAAK,SAAS,GAAO,MAAQ;IACzB,EAAK,KAAK,CAAC,GAAK,EAAM,CAAC;KACzB,EACK;;EAEX,SAAS,GAAM;GACX,KAAK,OAAO;GACZ,KAAK,IAAM,CAAC,GAAK,MAAU,GACvB,KAAK,IAAI,GAAK,EAAM;;;CA0ChC,AAtCA,EAAQ,YAAY,GAsCpB,EAAQ,WAAW,cArCI,EAAU;EAC7B,YAAY,GAAO,IAAQ,GAAG;GAG1B,AAFA,OAAO,EACP,KAAK,SAAS,GACd,KAAK,SAAS,KAAK,IAAI,KAAK,IAAI,GAAG,EAAM,EAAE,EAAE;;EAEjD,IAAI,QAAQ;GACR,OAAO,KAAK;;EAEhB,IAAI,MAAM,GAAO;GAEb,AADA,KAAK,SAAS,GACd,KAAK,WAAW;;EAEpB,IAAI,QAAQ;GACR,OAAO,KAAK;;EAEhB,IAAI,MAAM,GAAO;GAEb,AADA,KAAK,SAAS,KAAK,IAAI,KAAK,IAAI,GAAG,EAAM,EAAE,EAAE,EAC7C,KAAK,WAAW;;EAEpB,IAAI,GAAK,IAAQ,EAAM,OAAO;GAC1B,OAAO,MAAM,IAAI,GAAK,EAAM;;EAEhC,KAAK,GAAK;GACN,OAAO,MAAM,IAAI,GAAK,EAAM,KAAK;;EAErC,IAAI,GAAK,GAAO;GAGZ,OAFA,MAAM,IAAI,GAAK,GAAO,EAAM,KAAK,EACjC,KAAK,WAAW,EACT;;EAEX,YAAY;GACR,AAAI,KAAK,OAAO,KAAK,UACjB,KAAK,QAAQ,KAAK,MAAM,KAAK,SAAS,KAAK,OAAO,CAAC"}
@@ -1,5 +1,5 @@
1
- import { __commonJSMin as e } from "../../../../_virtual/_rolldown/runtime.js";
2
- //#region ../../node_modules/vscode-jsonrpc/lib/common/messageBuffer.js
1
+ import { __commonJSMin as e } from "../../../../../../_virtual/_rolldown/runtime.js";
2
+ //#region ../../node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js
3
3
  var t = /* @__PURE__ */ e(((e) => {
4
4
  Object.defineProperty(e, "__esModule", { value: !0 }), e.AbstractMessageBuffer = void 0;
5
5
  var t = 13, n = 10, r = "\r\n";
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messageBuffer.js","names":[],"sources":["../../../../../../../../../../node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"],"sourcesContent":["\"use strict\";\n/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.AbstractMessageBuffer = void 0;\nconst CR = 13;\nconst LF = 10;\nconst CRLF = '\\r\\n';\nclass AbstractMessageBuffer {\n constructor(encoding = 'utf-8') {\n this._encoding = encoding;\n this._chunks = [];\n this._totalLength = 0;\n }\n get encoding() {\n return this._encoding;\n }\n append(chunk) {\n const toAppend = typeof chunk === 'string' ? this.fromString(chunk, this._encoding) : chunk;\n this._chunks.push(toAppend);\n this._totalLength += toAppend.byteLength;\n }\n tryReadHeaders(lowerCaseKeys = false) {\n if (this._chunks.length === 0) {\n return undefined;\n }\n let state = 0;\n let chunkIndex = 0;\n let offset = 0;\n let chunkBytesRead = 0;\n row: while (chunkIndex < this._chunks.length) {\n const chunk = this._chunks[chunkIndex];\n offset = 0;\n column: while (offset < chunk.length) {\n const value = chunk[offset];\n switch (value) {\n case CR:\n switch (state) {\n case 0:\n state = 1;\n break;\n case 2:\n state = 3;\n break;\n default:\n state = 0;\n }\n break;\n case LF:\n switch (state) {\n case 1:\n state = 2;\n break;\n case 3:\n state = 4;\n offset++;\n break row;\n default:\n state = 0;\n }\n break;\n default:\n state = 0;\n }\n offset++;\n }\n chunkBytesRead += chunk.byteLength;\n chunkIndex++;\n }\n if (state !== 4) {\n return undefined;\n }\n // The buffer contains the two CRLF at the end. So we will\n // have two empty lines after the split at the end as well.\n const buffer = this._read(chunkBytesRead + offset);\n const result = new Map();\n const headers = this.toString(buffer, 'ascii').split(CRLF);\n if (headers.length < 2) {\n return result;\n }\n for (let i = 0; i < headers.length - 2; i++) {\n const header = headers[i];\n const index = header.indexOf(':');\n if (index === -1) {\n throw new Error(`Message header must separate key and value using ':'\\n${header}`);\n }\n const key = header.substr(0, index);\n const value = header.substr(index + 1).trim();\n result.set(lowerCaseKeys ? key.toLowerCase() : key, value);\n }\n return result;\n }\n tryReadBody(length) {\n if (this._totalLength < length) {\n return undefined;\n }\n return this._read(length);\n }\n get numberOfBytes() {\n return this._totalLength;\n }\n _read(byteCount) {\n if (byteCount === 0) {\n return this.emptyBuffer();\n }\n if (byteCount > this._totalLength) {\n throw new Error(`Cannot read so many bytes!`);\n }\n if (this._chunks[0].byteLength === byteCount) {\n // super fast path, precisely first chunk must be returned\n const chunk = this._chunks[0];\n this._chunks.shift();\n this._totalLength -= byteCount;\n return this.asNative(chunk);\n }\n if (this._chunks[0].byteLength > byteCount) {\n // fast path, the reading is entirely within the first chunk\n const chunk = this._chunks[0];\n const result = this.asNative(chunk, byteCount);\n this._chunks[0] = chunk.slice(byteCount);\n this._totalLength -= byteCount;\n return result;\n }\n const result = this.allocNative(byteCount);\n let resultOffset = 0;\n let chunkIndex = 0;\n while (byteCount > 0) {\n const chunk = this._chunks[chunkIndex];\n if (chunk.byteLength > byteCount) {\n // this chunk will survive\n const chunkPart = chunk.slice(0, byteCount);\n result.set(chunkPart, resultOffset);\n resultOffset += byteCount;\n this._chunks[chunkIndex] = chunk.slice(byteCount);\n this._totalLength -= byteCount;\n byteCount -= byteCount;\n }\n else {\n // this chunk will be entirely read\n result.set(chunk, resultOffset);\n resultOffset += chunk.byteLength;\n this._chunks.shift();\n this._totalLength -= chunk.byteLength;\n byteCount -= chunk.byteLength;\n }\n }\n return result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K,gBAAgB,GACrB,KAAa;WAQb,AAJA,EAAO,IAAI,GAAO,EAAa,EAC/B,KAAgB,EAAM,YACtB,KAAK,QAAQ,OAAO,EACpB,KAAK,gBAAgB,EAAM,YAC3B,KAAa,EAAM;;GAG3B,OAAO"}
@@ -1,12 +1,12 @@
1
- import { __commonJSMin as e } from "../../../../_virtual/_rolldown/runtime.js";
2
- import { require_ral as t } from "./ral.js";
3
- import { require_is as n } from "./is.js";
1
+ import { __commonJSMin as e } from "../../../../../../_virtual/_rolldown/runtime.js";
2
+ import { require_is as t } from "./is.js";
3
+ import { require_ral as n } from "./ral.js";
4
4
  import { require_events as r } from "./events.js";
5
5
  import { require_semaphore as i } from "./semaphore.js";
6
- //#region ../../node_modules/vscode-jsonrpc/lib/common/messageReader.js
6
+ //#region ../../node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageReader.js
7
7
  var a = /* @__PURE__ */ e(((e) => {
8
8
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ReadableStreamMessageReader = e.AbstractMessageReader = e.MessageReader = void 0;
9
- var a = t(), o = n(), s = r(), c = i(), l;
9
+ var a = n(), o = t(), s = r(), c = i(), l;
10
10
  (function(e) {
11
11
  function t(e) {
12
12
  let t = e;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messageReader.js","names":[],"sources":["../../../../../../../../../../node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageReader.js"],"sourcesContent":["\"use strict\";\n/* --------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n * ------------------------------------------------------------------------------------------ */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ReadableStreamMessageReader = exports.AbstractMessageReader = exports.MessageReader = void 0;\nconst ral_1 = require(\"./ral\");\nconst Is = require(\"./is\");\nconst events_1 = require(\"./events\");\nconst semaphore_1 = require(\"./semaphore\");\nvar MessageReader;\n(function (MessageReader) {\n function is(value) {\n let candidate = value;\n return candidate && Is.func(candidate.listen) && Is.func(candidate.dispose) &&\n Is.func(candidate.onError) && Is.func(candidate.onClose) && Is.func(candidate.onPartialMessage);\n }\n MessageReader.is = is;\n})(MessageReader || (exports.MessageReader = MessageReader = {}));\nclass AbstractMessageReader {\n constructor() {\n this.errorEmitter = new events_1.Emitter();\n this.closeEmitter = new events_1.Emitter();\n this.partialMessageEmitter = new events_1.Emitter();\n }\n dispose() {\n this.errorEmitter.dispose();\n this.closeEmitter.dispose();\n }\n get onError() {\n return this.errorEmitter.event;\n }\n fireError(error) {\n this.errorEmitter.fire(this.asError(error));\n }\n get onClose() {\n return this.closeEmitter.event;\n }\n fireClose() {\n this.closeEmitter.fire(undefined);\n }\n get onPartialMessage() {\n return this.partialMessageEmitter.event;\n }\n firePartialMessage(info) {\n this.partialMessageEmitter.fire(info);\n }\n asError(error) {\n if (error instanceof Error) {\n return error;\n }\n else {\n return new Error(`Reader received error. Reason: ${Is.string(error.message) ? error.message : 'unknown'}`);\n }\n }\n}\nexports.AbstractMessageReader = AbstractMessageReader;\nvar ResolvedMessageReaderOptions;\n(function (ResolvedMessageReaderOptions) {\n function fromOptions(options) {\n let charset;\n let result;\n let contentDecoder;\n const contentDecoders = new Map();\n let contentTypeDecoder;\n const contentTypeDecoders = new Map();\n if (options === undefined || typeof options === 'string') {\n charset = options ?? 'utf-8';\n }\n else {\n charset = options.charset ?? 'utf-8';\n if (options.contentDecoder !== undefined) {\n contentDecoder = options.contentDecoder;\n contentDecoders.set(contentDecoder.name, contentDecoder);\n }\n if (options.contentDecoders !== undefined) {\n for (const decoder of options.contentDecoders) {\n contentDecoders.set(decoder.name, decoder);\n }\n }\n if (options.contentTypeDecoder !== undefined) {\n contentTypeDecoder = options.contentTypeDecoder;\n contentTypeDecoders.set(contentTypeDecoder.name, contentTypeDecoder);\n }\n if (options.contentTypeDecoders !== undefined) {\n for (const decoder of options.contentTypeDecoders) {\n contentTypeDecoders.set(decoder.name, decoder);\n }\n }\n }\n if (contentTypeDecoder === undefined) {\n contentTypeDecoder = (0, ral_1.default)().applicationJson.decoder;\n contentTypeDecoders.set(contentTypeDecoder.name, contentTypeDecoder);\n }\n return { charset, contentDecoder, contentDecoders, contentTypeDecoder, contentTypeDecoders };\n }\n ResolvedMessageReaderOptions.fromOptions = fromOptions;\n})(ResolvedMessageReaderOptions || (ResolvedMessageReaderOptions = {}));\nclass ReadableStreamMessageReader extends AbstractMessageReader {\n constructor(readable, options) {\n super();\n this.readable = readable;\n this.options = ResolvedMessageReaderOptions.fromOptions(options);\n this.buffer = (0, ral_1.default)().messageBuffer.create(this.options.charset);\n this._partialMessageTimeout = 10000;\n this.nextMessageLength = -1;\n this.messageToken = 0;\n this.readSemaphore = new semaphore_1.Semaphore(1);\n }\n set partialMessageTimeout(timeout) {\n this._partialMessageTimeout = timeout;\n }\n get partialMessageTimeout() {\n return this._partialMessageTimeout;\n }\n listen(callback) {\n this.nextMessageLength = -1;\n this.messageToken = 0;\n this.partialMessageTimer = undefined;\n this.callback = callback;\n const result = this.readable.onData((data) => {\n this.onData(data);\n });\n this.readable.onError((error) => this.fireError(error));\n this.readable.onClose(() => this.fireClose());\n return result;\n }\n onData(data) {\n try {\n this.buffer.append(data);\n while (true) {\n if (this.nextMessageLength === -1) {\n const headers = this.buffer.tryReadHeaders(true);\n if (!headers) {\n return;\n }\n const contentLength = headers.get('content-length');\n if (!contentLength) {\n this.fireError(new Error(`Header must provide a Content-Length property.\\n${JSON.stringify(Object.fromEntries(headers))}`));\n return;\n }\n const length = parseInt(contentLength);\n if (isNaN(length)) {\n this.fireError(new Error(`Content-Length value must be a number. Got ${contentLength}`));\n return;\n }\n this.nextMessageLength = length;\n }\n const body = this.buffer.tryReadBody(this.nextMessageLength);\n if (body === undefined) {\n /** We haven't received the full message yet. */\n this.setPartialMessageTimer();\n return;\n }\n this.clearPartialMessageTimer();\n this.nextMessageLength = -1;\n // Make sure that we convert one received message after the\n // other. Otherwise it could happen that a decoding of a second\n // smaller message finished before the decoding of a first larger\n // message and then we would deliver the second message first.\n this.readSemaphore.lock(async () => {\n const bytes = this.options.contentDecoder !== undefined\n ? await this.options.contentDecoder.decode(body)\n : body;\n const message = await this.options.contentTypeDecoder.decode(bytes, this.options);\n this.callback(message);\n }).catch((error) => {\n this.fireError(error);\n });\n }\n }\n catch (error) {\n this.fireError(error);\n }\n }\n clearPartialMessageTimer() {\n if (this.partialMessageTimer) {\n this.partialMessageTimer.dispose();\n this.partialMessageTimer = undefined;\n }\n }\n setPartialMessageTimer() {\n this.clearPartialMessageTimer();\n if (this._partialMessageTimeout <= 0) {\n return;\n }\n this.partialMessageTimer = (0, ral_1.default)().timer.setTimeout((token, timeout) => {\n this.partialMessageTimer = undefined;\n if (token === this.messageToken) {\n this.firePartialMessage({ messageToken: token, waitingTime: timeout });\n this.setPartialMessageTimer();\n }\n }, this._partialMessageTimeout, this.messageToken, this._partialMessageTimeout);\n }\n}\nexports.ReadableStreamMessageReader = ReadableStreamMessageReader;\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;CAMA,AADA,OAAO,eAAe,GAAS,cAAc,EAAE,OAAO,IAAM,CAAC,EAC7D,EAAQ,8BAA8B,EAAQ,wBAAwB,EAAQ,gBAAgB,KAAK;CACnG,IAAM,IAAA,GAAA,EACA,IAAA,GAAA,EACA,IAAA,GAAA,EACA,IAAA,GAAA,EACF;CACJ,CAAC,SAAU,GAAe;EACtB,SAAS,EAAG,GAAO;GACf,IAAI,IAAY;GAChB,OAAO,KAAa,EAAG,KAAK,EAAU,OAAO,IAAI,EAAG,KAAK,EAAU,QAAQ,IACvE,EAAG,KAAK,EAAU,QAAQ,IAAI,EAAG,KAAK,EAAU,QAAQ,IAAI,EAAG,KAAK,EAAU,iBAAiB;;EAEvG,EAAc,KAAK;IACpB,MAAkB,EAAQ,gBAAgB,IAAgB,EAAE,EAAE;CACjE,IAAM,IAAN,MAA4B;EACxB,cAAc;GAGV,AAFA,KAAK,eAAe,IAAI,EAA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,CAAC,GAAG,CAAC;OAC3H;;MAEJ,IAAM,IAAS,SAAS,EAAc;MACtC,IAAI,MAAM,EAAO,EAAE;OACf,KAAK,UAAU,gBAAI,MAAM,8CAA8C,IAAgB,CAAC;OACxF;;MAEJ,KAAK,oBAAoB;;KAE7B,IAAM,IAAO,KAAK,OAAO,YAAY,KAAK,kBAAkB;KAC5D,IAAI,MAAS,KAAA,GAAW;MAEpB,KAAK,wBAAwB;MAC7B;;KAQJ,AANA,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,IAKzB,KAAK,cAAc,KAAK,YAAY;MAChC,IAAM,IAAQ,KAAK,QAAQ,mBAAmB,KAAA,IAExC,IADA,MAAM,KAAK,QAAQ,eAAe,OAAO,EAAK,EAE9C,IAAU,MAAM,KAAK,QAAQ,mBAAmB,OAAO,GAAO,KAAK,QAAQ;MACjF,KAAK,SAAS,EAAQ;OACxB,CAAC,OAAO,MAAU;MAChB,KAAK,UAAU,EAAM;OACvB;;YAGH,GAAO;IACV,KAAK,UAAU,EAAM;;;EAG7B,2BAA2B;GACvB,AAEI,KAAK,yBADL,KAAK,oBAAoB,SAAS,EACP,KAAA;;EAGnC,yBAAyB;GACrB,KAAK,0BAA0B,EAC3B,OAAK,0BAA0B,OAGnC,KAAK,uBAAuB,GAAG,EAAM,UAAU,CAAC,MAAM,YAAY,GAAO,MAAY;IAEjF,AADA,KAAK,sBAAsB,KAAA,GACvB,MAAU,KAAK,iBACf,KAAK,mBAAmB;KAAE,cAAc;KAAO,aAAa;KAAS,CAAC,EACtE,KAAK,wBAAwB;MAElC,KAAK,wBAAwB,KAAK,cAAc,KAAK,uBAAuB"}
@@ -1,12 +1,12 @@
1
- import { __commonJSMin as e } from "../../../../_virtual/_rolldown/runtime.js";
2
- import { require_ral as t } from "./ral.js";
3
- import { require_is as n } from "./is.js";
1
+ import { __commonJSMin as e } from "../../../../../../_virtual/_rolldown/runtime.js";
2
+ import { require_is as t } from "./is.js";
3
+ import { require_ral as n } from "./ral.js";
4
4
  import { require_events as r } from "./events.js";
5
5
  import { require_semaphore as i } from "./semaphore.js";
6
- //#region ../../node_modules/vscode-jsonrpc/lib/common/messageWriter.js
6
+ //#region ../../node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageWriter.js
7
7
  var a = /* @__PURE__ */ e(((e) => {
8
8
  Object.defineProperty(e, "__esModule", { value: !0 }), e.WriteableStreamMessageWriter = e.AbstractMessageWriter = e.MessageWriter = void 0;
9
- var a = t(), o = n(), s = i(), c = r(), l = "Content-Length: ", u = "\r\n", d;
9
+ var a = n(), o = t(), s = i(), c = r(), l = "Content-Length: ", u = "\r\n", d;
10
10
  (function(e) {
11
11
  function t(e) {
12
12
  let t = e;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messageWriter.js","names":[],"sources":["../../../../../../../../../../node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageWriter.js"],"sourcesContent":["\"use strict\";\n/* --------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n * ------------------------------------------------------------------------------------------ */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.WriteableStreamMessageWriter = exports.AbstractMessageWriter = exports.MessageWriter = void 0;\nconst ral_1 = require(\"./ral\");\nconst Is = require(\"./is\");\nconst semaphore_1 = require(\"./semaphore\");\nconst events_1 = require(\"./events\");\nconst ContentLength = 'Content-Length: ';\nconst CRLF = '\\r\\n';\nvar MessageWriter;\n(function (MessageWriter) {\n function is(value) {\n let candidate = value;\n return candidate && Is.func(candidate.dispose) && Is.func(candidate.onClose) &&\n Is.func(candidate.onError) && Is.func(candidate.write);\n }\n MessageWriter.is = is;\n})(MessageWriter || (exports.MessageWriter = MessageWriter = {}));\nclass AbstractMessageWriter {\n constructor() {\n this.errorEmitter = new events_1.Emitter();\n this.closeEmitter = new events_1.Emitter();\n }\n dispose() {\n this.errorEmitter.dispose();\n this.closeEmitter.dispose();\n }\n get onError() {\n return this.errorEmitter.event;\n }\n fireError(error, message, count) {\n this.errorEmitter.fire([this.asError(error), message, count]);\n }\n get onClose() {\n return this.closeEmitter.event;\n }\n fireClose() {\n this.closeEmitter.fire(undefined);\n }\n asError(error) {\n if (error instanceof Error) {\n return error;\n }\n else {\n return new Error(`Writer received error. Reason: ${Is.string(error.message) ? error.message : 'unknown'}`);\n }\n }\n}\nexports.AbstractMessageWriter = AbstractMessageWriter;\nvar ResolvedMessageWriterOptions;\n(function (ResolvedMessageWriterOptions) {\n function fromOptions(options) {\n if (options === undefined || typeof options === 'string') {\n return { charset: options ?? 'utf-8', contentTypeEncoder: (0, ral_1.default)().applicationJson.encoder };\n }\n else {\n return { charset: options.charset ?? 'utf-8', contentEncoder: options.contentEncoder, contentTypeEncoder: options.contentTypeEncoder ?? (0, ral_1.default)().applicationJson.encoder };\n }\n }\n ResolvedMessageWriterOptions.fromOptions = fromOptions;\n})(ResolvedMessageWriterOptions || (ResolvedMessageWriterOptions = {}));\nclass WriteableStreamMessageWriter extends AbstractMessageWriter {\n constructor(writable, options) {\n super();\n this.writable = writable;\n this.options = ResolvedMessageWriterOptions.fromOptions(options);\n this.errorCount = 0;\n this.writeSemaphore = new semaphore_1.Semaphore(1);\n this.writable.onError((error) => this.fireError(error));\n this.writable.onClose(() => this.fireClose());\n }\n async write(msg) {\n return this.writeSemaphore.lock(async () => {\n const payload = this.options.contentTypeEncoder.encode(msg, this.options).then((buffer) => {\n if (this.options.contentEncoder !== undefined) {\n return this.options.contentEncoder.encode(buffer);\n }\n else {\n return buffer;\n }\n });\n return payload.then((buffer) => {\n const headers = [];\n headers.push(ContentLength, buffer.byteLength.toString(), CRLF);\n headers.push(CRLF);\n return this.doWrite(msg, headers, buffer);\n }, (error) => {\n this.fireError(error);\n throw error;\n });\n });\n }\n async doWrite(msg, headers, data) {\n try {\n await this.writable.write(headers.join(''), 'ascii');\n return this.writable.write(data);\n }\n catch (error) {\n this.handleError(error, msg);\n return Promise.reject(error);\n }\n }\n handleError(error, msg) {\n this.errorCount++;\n this.fireError(error, msg, this.errorCount);\n }\n end() {\n this.writable.end();\n }\n}\nexports.WriteableStreamMessageWriter = WriteableStreamMessageWriter;\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;CAMA,AADA,OAAO,eAAe,GAAS,cAAc,EAAE,OAAO,IAAM,CAAC,EAC7D,EAAQ,+BAA+B,EAAQ,wBAAwB,EAAQ,gBAAgB,KAAK;CACpG,IAAM,IAAA,GAAA,EACA,IAAA,GAAA,EACA,IAAA,GAAA,EACA,IAAA,GAAA,EACA,IAAgB,oBAChB,IAAO,QACT;CACJ,CAAC,SAAU,GAAe;EACtB,SAAS,EAAG,GAAO;GACf,IAAI,IAAY;GAChB,OAAO,KAAa,EAAG,KAAK,EAAU,QAAQ,IAAI,EAAG,KAAK,EAAU,QAAQ,IACxE,EAAG,KAAK,EAAU,QAAQ,IAAI,EAAG,KAAK,EAAU,MAAM;;EAE9D,EAAc,KAAK;IACpB,MAAkB,EAAQ,gBAAgB,IAAgB,EAAE,EAAE;CACjE,IAAM,IAAN,MAA4B;EACxB,cAAc;GAEV,AADA,KAAK,eAAe,IAAI,EAAS,SAAS,EAC1C,KAAK,eAAe,IAAI,EAAS,SAAS;;EAE9C,UAAU;GAEN,AADA,KAAK,aAAa,SAAS,EAC3B,KAAK,aAAa,SAAS;;EAE/B,IAAI,UAAU;GACV,OAAO,KAAK,aAAa;;EAE7B,UAAU,GAAO,GAAS,GAAO;GAC7B,KAAK,aAAa,KAAK;IAAC,KAAK,QAAQ,EAAM;IAAE;IAAS;IAAM,CAAC;;EAEjE,IAAI,UAAU;GACV,OAAO,KAAK,aAAa;;EAE7B,YAAY;GACR,KAAK,aAAa,KAAK,KAAA,EAAU;;EAErC,QAAQ,GAAO;GAKP,OAJA,aAAiB,QACV,IAGA,gBAAI,MAAM,kCAAkC,EAAG,OAAO,EAAM,QAAQ,GAAG,EAAM,UAAU,YAAY;;;CAItH,EAAQ,wBA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S,MAAM,EAAK;YAE7B,GAAO;IAEV,OADA,KAAK,YAAY,GAAO,EAAI,EACrB,QAAQ,OAAO,EAAM;;;EAGpC,YAAY,GAAO,GAAK;GAEpB,AADA,KAAK,cACL,KAAK,UAAU,GAAO,GAAK,KAAK,WAAW;;EAE/C,MAAM;GACF,KAAK,SAAS,KAAK"}
@@ -1,6 +1,6 @@
1
- import { __commonJSMin as e } from "../../../../_virtual/_rolldown/runtime.js";
1
+ import { __commonJSMin as e } from "../../../../../../_virtual/_rolldown/runtime.js";
2
2
  import { require_is as t } from "./is.js";
3
- //#region ../../node_modules/vscode-jsonrpc/lib/common/messages.js
3
+ //#region ../../node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messages.js
4
4
  var n = /* @__PURE__ */ e(((e) => {
5
5
  Object.defineProperty(e, "__esModule", { value: !0 }), e.Message = e.NotificationType9 = e.NotificationType8 = e.NotificationType7 = e.NotificationType6 = e.NotificationType5 = e.NotificationType4 = e.NotificationType3 = e.NotificationType2 = e.NotificationType1 = e.NotificationType0 = e.NotificationType = e.RequestType9 = e.RequestType8 = e.RequestType7 = e.RequestType6 = e.RequestType5 = e.RequestType4 = e.RequestType3 = e.RequestType2 = e.RequestType1 = e.RequestType = e.RequestType0 = e.AbstractMessageSignature = e.ParameterStructures = e.ResponseError = e.ErrorCodes = void 0;
6
6
  var n = t(), r;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.js","names":[],"sources":["../../../../../../../../../../node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messages.js"],"sourcesContent":["\"use strict\";\n/* --------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n * ------------------------------------------------------------------------------------------ */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Message = exports.NotificationType9 = exports.NotificationType8 = exports.NotificationType7 = exports.NotificationType6 = exports.NotificationType5 = exports.NotificationType4 = exports.NotificationType3 = exports.NotificationType2 = exports.NotificationType1 = exports.NotificationType0 = exports.NotificationType = exports.RequestType9 = exports.RequestType8 = exports.RequestType7 = exports.RequestType6 = exports.RequestType5 = exports.RequestType4 = exports.RequestType3 = exports.RequestType2 = exports.RequestType1 = exports.RequestType = exports.RequestType0 = exports.AbstractMessageSignature = exports.ParameterStructures = exports.ResponseError = exports.ErrorCodes = void 0;\nconst is = require(\"./is\");\n/**\n * Predefined error codes.\n */\nvar ErrorCodes;\n(function (ErrorCodes) {\n // Defined by JSON RPC\n ErrorCodes.ParseError = -32700;\n ErrorCodes.InvalidRequest = -32600;\n ErrorCodes.MethodNotFound = -32601;\n ErrorCodes.InvalidParams = -32602;\n ErrorCodes.InternalError = -32603;\n /**\n * This is the start range of JSON RPC reserved error codes.\n * It doesn't denote a real error code. No application error codes should\n * be defined between the start and end range. For backwards\n * compatibility the `ServerNotInitialized` and the `UnknownErrorCode`\n * are left in the range.\n *\n * @since 3.16.0\n */\n ErrorCodes.jsonrpcReservedErrorRangeStart = -32099;\n /** @deprecated use jsonrpcReservedErrorRangeStart */\n ErrorCodes.serverErrorStart = -32099;\n /**\n * An error occurred when write a message to the transport layer.\n */\n ErrorCodes.MessageWriteError = -32099;\n /**\n * An error occurred when reading a message from the transport layer.\n */\n ErrorCodes.MessageReadError = -32098;\n /**\n * The connection got disposed or lost and all pending responses got\n * rejected.\n */\n ErrorCodes.PendingResponseRejected = -32097;\n /**\n * The connection is inactive and a use of it failed.\n */\n ErrorCodes.ConnectionInactive = -32096;\n /**\n * Error code indicating that a server received a notification or\n * request before the server has received the `initialize` request.\n */\n ErrorCodes.ServerNotInitialized = -32002;\n ErrorCodes.UnknownErrorCode = -32001;\n /**\n * This is the end range of JSON RPC reserved error codes.\n * It doesn't denote a real error code.\n *\n * @since 3.16.0\n */\n ErrorCodes.jsonrpcReservedErrorRangeEnd = -32000;\n /** @deprecated use jsonrpcReservedErrorRangeEnd */\n ErrorCodes.serverErrorEnd = -32000;\n})(ErrorCodes || (exports.ErrorCodes = ErrorCodes = {}));\n/**\n * An error object return in a response in case a request\n * has failed.\n */\nclass ResponseError extends Error {\n constructor(code, message, data) {\n super(message);\n this.code = is.number(code) ? code : ErrorCodes.UnknownErrorCode;\n this.data = data;\n Object.setPrototypeOf(this, ResponseError.prototype);\n }\n toJson() {\n const result = {\n code: this.code,\n message: this.message\n };\n if (this.data !== undefined) {\n result.data = this.data;\n }\n return result;\n }\n}\nexports.ResponseError = ResponseError;\nclass ParameterStructures {\n constructor(kind) {\n this.kind = kind;\n }\n static is(value) {\n return value === ParameterStructures.auto || value === ParameterStructures.byName || value === ParameterStructures.byPosition;\n }\n toString() {\n return this.kind;\n }\n}\nexports.ParameterStructures = ParameterStructures;\n/**\n * The parameter structure is automatically inferred on the number of parameters\n * and the parameter type in case of a single param.\n */\nParameterStructures.auto = new ParameterStructures('auto');\n/**\n * Forces `byPosition` parameter structure. This is useful if you have a single\n * parameter which has a literal type.\n */\nParameterStructures.byPosition = new ParameterStructures('byPosition');\n/**\n * Forces `byName` parameter structure. This is only useful when having a single\n * parameter. The library will report errors if used with a different number of\n * parameters.\n */\nParameterStructures.byName = new ParameterStructures('byName');\n/**\n * An abstract implementation of a MessageType.\n */\nclass AbstractMessageSignature {\n constructor(method, numberOfParams) {\n this.method = method;\n this.numberOfParams = numberOfParams;\n }\n get parameterStructures() {\n return ParameterStructures.auto;\n }\n}\nexports.AbstractMessageSignature = AbstractMessageSignature;\n/**\n * Classes to type request response pairs\n */\nclass RequestType0 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 0);\n }\n}\nexports.RequestType0 = RequestType0;\nclass RequestType extends AbstractMessageSignature {\n constructor(method, _parameterStructures = ParameterStructures.auto) {\n super(method, 1);\n this._parameterStructures = _parameterStructures;\n }\n get parameterStructures() {\n return this._parameterStructures;\n }\n}\nexports.RequestType = RequestType;\nclass RequestType1 extends AbstractMessageSignature {\n constructor(method, _parameterStructures = ParameterStructures.auto) {\n super(method, 1);\n this._parameterStructures = _parameterStructures;\n }\n get parameterStructures() {\n return this._parameterStructures;\n }\n}\nexports.RequestType1 = RequestType1;\nclass RequestType2 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 2);\n }\n}\nexports.RequestType2 = RequestType2;\nclass RequestType3 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 3);\n }\n}\nexports.RequestType3 = RequestType3;\nclass RequestType4 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 4);\n }\n}\nexports.RequestType4 = RequestType4;\nclass RequestType5 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 5);\n }\n}\nexports.RequestType5 = RequestType5;\nclass RequestType6 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 6);\n }\n}\nexports.RequestType6 = RequestType6;\nclass RequestType7 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 7);\n }\n}\nexports.RequestType7 = RequestType7;\nclass RequestType8 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 8);\n }\n}\nexports.RequestType8 = RequestType8;\nclass RequestType9 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 9);\n }\n}\nexports.RequestType9 = RequestType9;\nclass NotificationType extends AbstractMessageSignature {\n constructor(method, _parameterStructures = ParameterStructures.auto) {\n super(method, 1);\n this._parameterStructures = _parameterStructures;\n }\n get parameterStructures() {\n return this._parameterStructures;\n }\n}\nexports.NotificationType = NotificationType;\nclass NotificationType0 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 0);\n }\n}\nexports.NotificationType0 = NotificationType0;\nclass NotificationType1 extends AbstractMessageSignature {\n constructor(method, _parameterStructures = ParameterStructures.auto) {\n super(method, 1);\n this._parameterStructures = _parameterStructures;\n }\n get parameterStructures() {\n return this._parameterStructures;\n }\n}\nexports.NotificationType1 = NotificationType1;\nclass NotificationType2 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 2);\n }\n}\nexports.NotificationType2 = NotificationType2;\nclass NotificationType3 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 3);\n }\n}\nexports.NotificationType3 = NotificationType3;\nclass NotificationType4 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 4);\n }\n}\nexports.NotificationType4 = NotificationType4;\nclass NotificationType5 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 5);\n }\n}\nexports.NotificationType5 = NotificationType5;\nclass NotificationType6 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 6);\n }\n}\nexports.NotificationType6 = NotificationType6;\nclass NotificationType7 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 7);\n }\n}\nexports.NotificationType7 = NotificationType7;\nclass NotificationType8 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 8);\n }\n}\nexports.NotificationType8 = NotificationType8;\nclass NotificationType9 extends AbstractMessageSignature {\n constructor(method) {\n super(method, 9);\n }\n}\nexports.NotificationType9 = NotificationType9;\nvar Message;\n(function (Message) {\n /**\n * Tests if the given message is a request message\n */\n function isRequest(message) {\n const candidate = message;\n return candidate && is.string(candidate.method) && (is.string(candidate.id) || is.number(candidate.id));\n }\n Message.isRequest = isRequest;\n /**\n * Tests if the given message is a notification message\n */\n function isNotification(message) {\n const candidate = message;\n return candidate && is.string(candidate.method) && message.id === void 0;\n }\n Message.isNotification = isNotification;\n /**\n * Tests if the given message is a response message\n */\n function isResponse(message) {\n const candidate = message;\n return candidate && (candidate.result !== void 0 || !!candidate.error) && (is.string(candidate.id) || is.number(candidate.id) || candidate.id === null);\n }\n Message.isResponse = isResponse;\n})(Message || (exports.Message = Message = {}));\n"],"x_google_ignoreList":[0],"mappings":";;;;CAMA,AADA,OAAO,eAAe,GAAS,cAAc,EAAE,OAAO,IAAM,CAAC,EAC7D,EAAQ,UAAU,EAAQ,oBAAoB,EAAQ,oBAAoB,EAAQ,oBAAoB,EAAQ,oBAAoB,EAAQ,oBAAoB,EAAQ,oBAAoB,EAAQ,oBAAoB,EAAQ,oBAAoB,EAAQ,oBAAoB,EAAQ,oBAAoB,EAAQ,mBAAmB,EAAQ,eAAe,EAAQ,e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EAAU,GAAG,IAAI,EAAG,OAAO,EAAU,GAAG;;EAE1G,EAAQ,YAAY;EAIpB,SAAS,EAAe,GAAS;GAC7B,IAAM,IAAY;GAClB,OAAO,KAAa,EAAG,OAAO,EAAU,OAAO,IAAI,EAAQ,OAAO,KAAK;;EAE3E,EAAQ,iBAAiB;EAIzB,SAAS,EAAW,GAAS;GACzB,IAAM,IAAY;GAClB,OAAO,MAAc,EAAU,WAAW,KAAK,KAAK,CAAC,CAAC,EAAU,WAAW,EAAG,OAAO,EAAU,GAAG,IAAI,EAAG,OAAO,EAAU,GAAG,IAAI,EAAU,OAAO;;EAEtJ,EAAQ,aAAa;IACtB,MAAY,EAAQ,UAAU,IAAU,EAAE,EAAE"}
@@ -0,0 +1,22 @@
1
+ import { __commonJSMin as e } from "../../../../../../_virtual/_rolldown/runtime.js";
2
+ //#region ../../node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/ral.js
3
+ var t = /* @__PURE__ */ e(((e) => {
4
+ Object.defineProperty(e, "__esModule", { value: !0 });
5
+ var t;
6
+ function n() {
7
+ if (t === void 0) throw Error("No runtime abstraction layer installed");
8
+ return t;
9
+ }
10
+ (function(e) {
11
+ function n(e) {
12
+ if (e === void 0) throw Error("No runtime abstraction layer provided");
13
+ t = e;
14
+ }
15
+ e.install = n;
16
+ })(n ||= {}), e.default = n;
17
+ }));
18
+ //#endregion
19
+ export default t();
20
+ export { t as require_ral };
21
+
22
+ //# sourceMappingURL=ral.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ral.js","names":[],"sources":["../../../../../../../../../../node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/ral.js"],"sourcesContent":["\"use strict\";\n/* --------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n * ------------------------------------------------------------------------------------------ */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nlet _ral;\nfunction RAL() {\n if (_ral === undefined) {\n throw new Error(`No runtime abstraction layer installed`);\n }\n return _ral;\n}\n(function (RAL) {\n function install(ral) {\n if (ral === undefined) {\n throw new Error(`No runtime abstraction layer provided`);\n }\n _ral = ral;\n }\n RAL.install = install;\n})(RAL || (RAL = {}));\nexports.default = RAL;\n"],"x_google_ignoreList":[0],"mappings":";;;CAKA,OAAO,eAAe,GAAS,cAAc,EAAE,OAAO,IAAM,CAAC;CAC7D,IAAI;CACJ,SAAS,IAAM;EACX,IAAI,MAAS,KAAA,GACT,MAAU,MAAM,yCAAyC;EAE7D,OAAO;;CAWX,CATC,SAAU,GAAK;EACZ,SAAS,EAAQ,GAAK;GAClB,IAAI,MAAQ,KAAA,GACR,MAAU,MAAM,wCAAwC;GAE5D,IAAO;;EAEX,EAAI,UAAU;IACf,AAAQ,MAAM,EAAE,CAAE,EACrB,EAAQ,UAAU"}
@@ -1,6 +1,6 @@
1
- import { __commonJSMin as e } from "../../../../_virtual/_rolldown/runtime.js";
1
+ import { __commonJSMin as e } from "../../../../../../_virtual/_rolldown/runtime.js";
2
2
  import { require_ral as t } from "./ral.js";
3
- //#region ../../node_modules/vscode-jsonrpc/lib/common/semaphore.js
3
+ //#region ../../node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/semaphore.js
4
4
  var n = /* @__PURE__ */ e(((e) => {
5
5
  Object.defineProperty(e, "__esModule", { value: !0 }), e.Semaphore = void 0;
6
6
  var n = t();
@@ -0,0 +1 @@
1
+ {"version":3,"file":"semaphore.js","names":[],"sources":["../../../../../../../../../../node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/semaphore.js"],"sourcesContent":["\"use strict\";\n/* --------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n * ------------------------------------------------------------------------------------------ */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Semaphore = void 0;\nconst ral_1 = require(\"./ral\");\nclass Semaphore {\n constructor(capacity = 1) {\n if (capacity <= 0) {\n throw new Error('Capacity must be greater than 0');\n }\n this._capacity = capacity;\n this._active = 0;\n this._waiting = [];\n }\n lock(thunk) {\n return new Promise((resolve, reject) => {\n this._waiting.push({ thunk, resolve, reject });\n this.runNext();\n });\n }\n get active() {\n return this._active;\n }\n runNext() {\n if (this._waiting.length === 0 || this._active === this._capacity) {\n return;\n }\n (0, ral_1.default)().timer.setImmediate(() => this.doRunNext());\n }\n doRunNext() {\n if (this._waiting.length === 0 || this._active === this._capacity) {\n return;\n }\n const next = this._waiting.shift();\n this._active++;\n if (this._active > this._capacity) {\n throw new Error(`To many thunks active`);\n }\n try {\n const result = next.thunk();\n if (result instanceof Promise) {\n result.then((value) => {\n this._active--;\n next.resolve(value);\n this.runNext();\n }, (err) => {\n this._active--;\n next.reject(err);\n this.runNext();\n });\n }\n else {\n this._active--;\n next.resolve(result);\n this.runNext();\n }\n }\n catch (err) {\n this._active--;\n next.reject(err);\n this.runNext();\n }\n }\n}\nexports.Semaphore = Semaphore;\n"],"x_google_ignoreList":[0],"mappings":";;;;CAMA,AADA,OAAO,eAAe,GAAS,cAAc,EAAE,OAAO,IAAM,CAAC,EAC7D,EAAQ,YAAY,KAAK;CACzB,IAAM,IAAA,GAAA;CA4DN,EAAQ,YAAY,MA3DJ;EACZ,YAAY,IAAW,GAAG;GACtB,IAAI,KAAY,GACZ,MAAU,MAAM,kCAAkC;GAItD,AAFA,KAAK,YAAY,GACjB,KAAK,UAAU,GACf,KAAK,WAAW,EAAE;;EAEtB,KAAK,GAAO;GACR,OAAO,IAAI,SAAS,GAAS,MAAW;IAEpC,AADA,KAAK,SAAS,KAAK;KAAE;KAAO;KAAS;KAAQ,CAAC,EAC9C,KAAK,SAAS;KAChB;;EAEN,IAAI,SAAS;GACT,OAAO,KAAK;;EAEhB,UAAU;GACF,KAAK,SAAS,WAAW,KAAK,KAAK,YAAY,KAAK,cAGvD,GAAG,EAAM,UAAU,CAAC,MAAM,mBAAmB,KAAK,WAAW,CAAC;;EAEnE,YAAY;GACR,IAAI,KAAK,SAAS,WAAW,KAAK,KAAK,YAAY,KAAK,WACpD;GAEJ,IAAM,IAAO,KAAK,SAAS,OAAO;GAElC,IADA,KAAK,WACD,KAAK,UAAU,KAAK,WACpB,MAAU,MAAM,wBAAwB;GAE5C,IAAI;IACA,IAAM,IAAS,EAAK,OAAO;IAC3B,AAAI,aAAkB,UAClB,EAAO,MAAM,MAAU;KAGnB,AAFA,KAAK,WACL,EAAK,QAAQ,EAAM,EACnB,KAAK,SAAS;QACd,MAAQ;KAGR,AAFA,KAAK,WACL,EAAK,OAAO,EAAI,EAChB,KAAK,SAAS;MAChB,IAGF,KAAK,WACL,EAAK,QAAQ,EAAO,EACpB,KAAK,SAAS;YAGf,GAAK;IAGR,AAFA,KAAK,WACL,EAAK,OAAO,EAAI,EAChB,KAAK,SAAS"}
@@ -1,6 +1,6 @@
1
- import { __commonJSMin as e } from "../../../../_virtual/_rolldown/runtime.js";
1
+ import { __commonJSMin as e } from "../../../../../../_virtual/_rolldown/runtime.js";
2
2
  import { require_cancellation as t } from "./cancellation.js";
3
- //#region ../../node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js
3
+ //#region ../../node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js
4
4
  var n = /* @__PURE__ */ e(((e) => {
5
5
  Object.defineProperty(e, "__esModule", { value: !0 }), e.SharedArrayReceiverStrategy = e.SharedArraySenderStrategy = void 0;
6
6
  var n = t(), r;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sharedArrayCancellation.js","names":[],"sources":["../../../../../../../../../../node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js"],"sourcesContent":["\"use strict\";\n/* --------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n * ------------------------------------------------------------------------------------------ */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SharedArrayReceiverStrategy = exports.SharedArraySenderStrategy = void 0;\nconst cancellation_1 = require(\"./cancellation\");\nvar CancellationState;\n(function (CancellationState) {\n CancellationState.Continue = 0;\n CancellationState.Cancelled = 1;\n})(CancellationState || (CancellationState = {}));\nclass SharedArraySenderStrategy {\n constructor() {\n this.buffers = new Map();\n }\n enableCancellation(request) {\n if (request.id === null) {\n return;\n }\n const buffer = new SharedArrayBuffer(4);\n const data = new Int32Array(buffer, 0, 1);\n data[0] = CancellationState.Continue;\n this.buffers.set(request.id, buffer);\n request.$cancellationData = buffer;\n }\n async sendCancellation(_conn, id) {\n const buffer = this.buffers.get(id);\n if (buffer === undefined) {\n return;\n }\n const data = new Int32Array(buffer, 0, 1);\n Atomics.store(data, 0, CancellationState.Cancelled);\n }\n cleanup(id) {\n this.buffers.delete(id);\n }\n dispose() {\n this.buffers.clear();\n }\n}\nexports.SharedArraySenderStrategy = SharedArraySenderStrategy;\nclass SharedArrayBufferCancellationToken {\n constructor(buffer) {\n this.data = new Int32Array(buffer, 0, 1);\n }\n get isCancellationRequested() {\n return Atomics.load(this.data, 0) === CancellationState.Cancelled;\n }\n get onCancellationRequested() {\n throw new Error(`Cancellation over SharedArrayBuffer doesn't support cancellation events`);\n }\n}\nclass SharedArrayBufferCancellationTokenSource {\n constructor(buffer) {\n this.token = new SharedArrayBufferCancellationToken(buffer);\n }\n cancel() {\n }\n dispose() {\n }\n}\nclass SharedArrayReceiverStrategy {\n constructor() {\n this.kind = 'request';\n }\n createCancellationTokenSource(request) {\n const buffer = request.$cancellationData;\n if (buffer === undefined) {\n return new cancellation_1.CancellationTokenSource();\n }\n return new SharedArrayBufferCancellationTokenSource(buffer);\n }\n}\nexports.SharedArrayReceiverStrategy = SharedArrayReceiverStrategy;\n"],"x_google_ignoreList":[0],"mappings":";;;;CAMA,AADA,OAAO,eAAe,GAAS,cAAc,EAAE,OAAO,IAAM,CAAC,EAC7D,EAAQ,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W,KAAA,IACJ,IAAI,EAAe,yBAAyB,GAEhD,IAAI,EAAyC,EAAO"}
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@plumile/ui",
3
- "version": "0.1.112",
3
+ "version": "0.1.113",
4
4
  "description": "Shared React UI primitives and theme for Kronex applications",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
- "main": "lib/esm/ui.js",
8
- "module": "lib/esm/ui.js",
7
+ "main": "lib/esm/index.js",
8
+ "module": "lib/esm/index.js",
9
9
  "types": "lib/types/index.d.ts",
10
10
  "typings": "lib/types/index.d.ts",
11
11
  "exports": {
12
12
  ".": {
13
13
  "types": "./lib/types/index.d.ts",
14
- "import": "./lib/esm/ui.js",
15
- "default": "./lib/esm/ui.js"
14
+ "import": "./lib/esm/index.js",
15
+ "default": "./lib/esm/index.js"
16
16
  },
17
17
  "./admin/*.js": {
18
18
  "types": "./lib/types/admin/*.d.ts",
@@ -162,7 +162,7 @@
162
162
  "tslib": "^2.8.1"
163
163
  },
164
164
  "devDependencies": {
165
- "@plumile/router": "^0.1.112",
165
+ "@plumile/router": "^0.1.113",
166
166
  "@types/react": "19.2.14",
167
167
  "@types/react-dom": "19.2.3",
168
168
  "i18next": "26.1.0",
@@ -1,11 +0,0 @@
1
- import { __commonJSMin as e } from "../../_virtual/_rolldown/runtime.js";
2
- import { require_main as t } from "./lib/browser/main.js";
3
- //#region ../../node_modules/vscode-jsonrpc/browser.js
4
- var n = /* @__PURE__ */ e(((e, n) => {
5
- n.exports = t();
6
- }));
7
- //#endregion
8
- export default n();
9
- export { n as require_browser };
10
-
11
- //# sourceMappingURL=browser.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"browser.js","names":[],"sources":["../../../../../../node_modules/vscode-jsonrpc/browser.js"],"sourcesContent":["/* --------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n * ----------------------------------------------------------------------------------------- */\n'use strict';\n\nmodule.exports = require('./lib/browser/main');"],"x_google_ignoreList":[0],"mappings":";;;;CAMA,EAAO,UAAA,GAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"main.js","names":["exports"],"sources":["../../../../../../../../node_modules/vscode-jsonrpc/lib/browser/main.js"],"sourcesContent":["\"use strict\";\n/* --------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n * ------------------------------------------------------------------------------------------ */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.createMessageConnection = exports.BrowserMessageWriter = exports.BrowserMessageReader = void 0;\nconst ril_1 = require(\"./ril\");\n// Install the browser runtime abstract.\nril_1.default.install();\nconst api_1 = require(\"../common/api\");\n__exportStar(require(\"../common/api\"), exports);\nclass BrowserMessageReader extends api_1.AbstractMessageReader {\n constructor(port) {\n super();\n this._onData = new api_1.Emitter();\n this._messageListener = (event) => {\n this._onData.fire(event.data);\n };\n port.addEventListener('error', (event) => this.fireError(event));\n port.onmessage = this._messageListener;\n }\n listen(callback) {\n return this._onData.event(callback);\n }\n}\nexports.BrowserMessageReader = BrowserMessageReader;\nclass BrowserMessageWriter extends api_1.AbstractMessageWriter {\n constructor(port) {\n super();\n this.port = port;\n this.errorCount = 0;\n port.addEventListener('error', (event) => this.fireError(event));\n }\n write(msg) {\n try {\n this.port.postMessage(msg);\n return Promise.resolve();\n }\n catch (error) {\n this.handleError(error, msg);\n return Promise.reject(error);\n }\n }\n handleError(error, msg) {\n this.errorCount++;\n this.fireError(error, msg, this.errorCount);\n }\n end() {\n }\n}\nexports.BrowserMessageWriter = BrowserMessageWriter;\nfunction createMessageConnection(reader, writer, logger, options) {\n if (logger === undefined) {\n logger = api_1.NullLogger;\n }\n if (api_1.ConnectionStrategy.is(options)) {\n options = { connectionStrategy: options };\n }\n return (0, api_1.createMessageConnection)(reader, writer, logger, options);\n}\nexports.createMessageConnection = createMessageConnection;\n"],"x_google_ignoreList":[0],"mappings":";;;;;CAKA,IAAI,IAAA,KAAA,EAAgC,oBAAqB,OAAO,UAAU,SAAS,GAAG,GAAG,GAAG,GAAI;EAC5F,AAAI,MAAO,KAAA,MAAW,IAAK;EAC3B,IAAI,IAAO,OAAO,yBAAyB,GAAG,EAAE;EAIhD,CAHI,CAAC,MAAS,SAAS,IAAO,CAAC,EAAE,aAAa,EAAK,YAAY,EAAK,mBAClE,IAAO;GAAE,YAAY;GAAM,KAAK,WAAW;IAAE,OAAO,EAAE;;GAAO,GAE/D,OAAO,eAAe,GAAG,GAAI,EAAK;OAChC,SAAS,GAAG,GAAG,GAAG,GAAI;EAExB,AADI,MAAO,KAAA,MAAW,IAAK,IAC3B,EAAE,KAAM,EAAE;MAEV,IAAA,KAAA,EAA6B,gBAAiB,SAAS,GAAG,GAAS;EACnE,KAAK,IAAI,KAAK,GAAG,AAAI,MAAM,aAAa,CAAC,OAAO,UAAU,eAAe,KAAKA,GAAS,EAAE,IAAE,EAAgBA,GAAS,GAAG,EAAE;;CAM7H,AAJA,OAAO,eAAe,GAAS,cAAc,EAAE,OAAO,IAAM,CAAC,EAC7D,EAAQ,0BAA0B,EAAQ,uBAAuB,EAAQ,uBAAuB,KAAK,GAGrG,GAAA,CAAM,QAAQ,SAAS;CACvB,IAAM,IAAA,GAAA;CAyCN,AAxCA,EAAA,GAAA,EAAuC,EAAQ,EAe/C,EAAQ,uBAAuB,cAdI,EAAM,sBAAsB;EAC3D,YAAY,GAAM;GAOd,AANA,OAAO,EACP,KAAK,UAAU,IAAI,EAAM,SAAS,EAClC,KAAK,oBAAoB,MAAU;IAC/B,KAAK,QAAQ,KAAK,EAAM,KAAK;MAEjC,EAAK,iBAAiB,UAAU,MAAU,KAAK,UAAU,EAAM,CAAC,EAChE,EAAK,YAAY,KAAK;;EAE1B,OAAO,GAAU;GACb,OAAO,KAAK,QAAQ,MAAM,EAAS;;IA4B3C,EAAQ,uBAAuB,cAxBI,EAAM,sBAAsB;EAC3D,YAAY,GAAM;GAId,AAHA,OAAO,EACP,KAAK,OAAO,GACZ,KAAK,aAAa,GAClB,EAAK,iBAAiB,UAAU,MAAU,KAAK,UAAU,EAAM,CAAC;;EAEpE,MAAM,GAAK;GACP,IAAI;IAEA,OADA,KAAK,KAAK,YAAY,EAAI,EACnB,QAAQ,SAAS;YAErB,GAAO;IAEV,OADA,KAAK,YAAY,GAAO,EAAI,EACrB,QAAQ,OAAO,EAAM;;;EAGpC,YAAY,GAAO,GAAK;GAEpB,AADA,KAAK,cACL,KAAK,UAAU,GAAO,GAAK,KAAK,WAAW;;EAE/C,MAAM;;CAIV,SAAS,EAAwB,GAAQ,GAAQ,GAAQ,GAAS;EAO9D,OANI,MAAW,KAAA,MACX,IAAS,EAAM,aAEf,EAAM,mBAAmB,GAAG,EAAQ,KACpC,IAAU,EAAE,oBAAoB,GAAS,IAErC,GAAG,EAAM,yBAAyB,GAAQ,GAAQ,GAAQ,EAAQ;;CAE9E,EAAQ,0BAA0B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ril.js","names":[],"sources":["../../../../../../../../node_modules/vscode-jsonrpc/lib/browser/ril.js"],"sourcesContent":["\"use strict\";\n/* --------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n * ------------------------------------------------------------------------------------------ */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst api_1 = require(\"../common/api\");\nclass MessageBuffer extends api_1.AbstractMessageBuffer {\n constructor(encoding = 'utf-8') {\n super(encoding);\n this.asciiDecoder = new TextDecoder('ascii');\n }\n emptyBuffer() {\n return MessageBuffer.emptyBuffer;\n }\n fromString(value, _encoding) {\n return (new TextEncoder()).encode(value);\n }\n toString(value, encoding) {\n if (encoding === 'ascii') {\n return this.asciiDecoder.decode(value);\n }\n else {\n return (new TextDecoder(encoding)).decode(value);\n }\n }\n asNative(buffer, length) {\n if (length === undefined) {\n return buffer;\n }\n else {\n return buffer.slice(0, length);\n }\n }\n allocNative(length) {\n return new Uint8Array(length);\n }\n}\nMessageBuffer.emptyBuffer = new Uint8Array(0);\nclass ReadableStreamWrapper {\n constructor(socket) {\n this.socket = socket;\n this._onData = new api_1.Emitter();\n this._messageListener = (event) => {\n const blob = event.data;\n blob.arrayBuffer().then((buffer) => {\n this._onData.fire(new Uint8Array(buffer));\n }, () => {\n (0, api_1.RAL)().console.error(`Converting blob to array buffer failed.`);\n });\n };\n this.socket.addEventListener('message', this._messageListener);\n }\n onClose(listener) {\n this.socket.addEventListener('close', listener);\n return api_1.Disposable.create(() => this.socket.removeEventListener('close', listener));\n }\n onError(listener) {\n this.socket.addEventListener('error', listener);\n return api_1.Disposable.create(() => this.socket.removeEventListener('error', listener));\n }\n onEnd(listener) {\n this.socket.addEventListener('end', listener);\n return api_1.Disposable.create(() => this.socket.removeEventListener('end', listener));\n }\n onData(listener) {\n return this._onData.event(listener);\n }\n}\nclass WritableStreamWrapper {\n constructor(socket) {\n this.socket = socket;\n }\n onClose(listener) {\n this.socket.addEventListener('close', listener);\n return api_1.Disposable.create(() => this.socket.removeEventListener('close', listener));\n }\n onError(listener) {\n this.socket.addEventListener('error', listener);\n return api_1.Disposable.create(() => this.socket.removeEventListener('error', listener));\n }\n onEnd(listener) {\n this.socket.addEventListener('end', listener);\n return api_1.Disposable.create(() => this.socket.removeEventListener('end', listener));\n }\n write(data, encoding) {\n if (typeof data === 'string') {\n if (encoding !== undefined && encoding !== 'utf-8') {\n throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${encoding}`);\n }\n this.socket.send(data);\n }\n else {\n this.socket.send(data);\n }\n return Promise.resolve();\n }\n end() {\n this.socket.close();\n }\n}\nconst _textEncoder = new TextEncoder();\nconst _ril = Object.freeze({\n messageBuffer: Object.freeze({\n create: (encoding) => new MessageBuffer(encoding)\n }),\n applicationJson: Object.freeze({\n encoder: Object.freeze({\n name: 'application/json',\n encode: (msg, options) => {\n if (options.charset !== 'utf-8') {\n throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${options.charset}`);\n }\n return Promise.resolve(_textEncoder.encode(JSON.stringify(msg, undefined, 0)));\n }\n }),\n decoder: Object.freeze({\n name: 'application/json',\n decode: (buffer, options) => {\n if (!(buffer instanceof Uint8Array)) {\n throw new Error(`In a Browser environments only Uint8Arrays are supported.`);\n }\n return Promise.resolve(JSON.parse(new TextDecoder(options.charset).decode(buffer)));\n }\n })\n }),\n stream: Object.freeze({\n asReadableStream: (socket) => new ReadableStreamWrapper(socket),\n asWritableStream: (socket) => new WritableStreamWrapper(socket)\n }),\n console: console,\n timer: Object.freeze({\n setTimeout(callback, ms, ...args) {\n const handle = setTimeout(callback, ms, ...args);\n return { dispose: () => clearTimeout(handle) };\n },\n setImmediate(callback, ...args) {\n const handle = setTimeout(callback, 0, ...args);\n return { dispose: () => clearTimeout(handle) };\n },\n setInterval(callback, ms, ...args) {\n const handle = setInterval(callback, ms, ...args);\n return { dispose: () => clearInterval(handle) };\n },\n })\n});\nfunction RIL() {\n return _ril;\n}\n(function (RIL) {\n function install() {\n api_1.RAL.install(_ril);\n }\n RIL.install = install;\n})(RIL || (RIL = {}));\nexports.default = RIL;\n"],"x_google_ignoreList":[0],"mappings":";;;;CAKA,OAAO,eAAe,GAAS,cAAc,EAAE,OAAO,IAAM,CAAC;CAC7D,IAAM,IAAA,GAAA,EACA,IAAN,M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hF,OAAO,QAAQ,QAAQ,KAAK,MAAM,IAAI,YAAY,EAAQ,QAAQ,CAAC,OAAO,EAAO,CAAC,CAAC;;IAE1F,CAAC;GACL,CAAC;EACF,QAAQ,OAAO,OAAO;GAClB,mBAAmB,MAAW,IAAI,EAAsB,EAAO;GAC/D,mBAAmB,MAAW,IAAI,EAAsB,EAAO;GAClE,CAAC;EACO;EACT,OAAO,OAAO,OAAO;GACjB,WAAW,GAAU,GAAI,GAAG,GAAM;IAC9B,IAAM,IAAS,WAAW,GAAU,GAAI,GAAG,EAAK;IAChD,OAAO,EAAE,eAAe,aAAa,EAAO,EAAE;;GAElD,aAAa,GAAU,GAAG,GAAM;IAC5B,IAAM,IAAS,WAAW,GAAU,GAAG,GAAG,EAAK;IAC/C,OAAO,EAAE,eAAe,aAAa,EAAO,EAAE;;GAElD,YAAY,GAAU,GAAI,GAAG,GAAM;IAC/B,IAAM,IAAS,YAAY,GAAU,GAAI,GAAG,EAAK;IACjD,OAAO,EAAE,eAAe,cAAc,EAAO,EAAE;;GAEtD,CAAC;EACL,CAAC;CACF,SAAS,IAAM;EACX,OAAO;;CAQX,CANC,SAAU,GAAK;EACZ,SAAS,IAAU;GACf,EAAM,IAAI,QAAQ,EAAK;;EAE3B,EAAI,UAAU;IACf,AAAQ,MAAM,EAAE,CAAE,EACrB,EAAQ,UAAU"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"api.js","names":[],"sources":["../../../../../../../../node_modules/vscode-jsonrpc/lib/common/api.js"],"sourcesContent":["\"use strict\";\n/* --------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n * ------------------------------------------------------------------------------------------ */\n/// <reference path=\"../../typings/thenable.d.ts\" />\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ProgressType = exports.ProgressToken = exports.createMessageConnection = exports.NullLogger = exports.ConnectionOptions = exports.ConnectionStrategy = exports.AbstractMessageBuffer = exports.WriteableStreamMessageWriter = exports.AbstractMessageWriter = exports.MessageWriter = exports.ReadableStreamMessageReader = exports.AbstractMessageReader = exports.MessageReader = exports.SharedArrayReceiverStrategy = exports.SharedArraySenderStrategy = exports.CancellationToken = exports.CancellationTokenSource = exports.Emitter = exports.Event = exports.Disposable = exports.LRUCache = exports.Touch = exports.LinkedMap = exports.ParameterStructures = exports.NotificationType9 = exports.NotificationType8 = exports.NotificationType7 = exports.NotificationType6 = exports.NotificationType5 = exports.NotificationType4 = exports.NotificationType3 = exports.NotificationType2 = exports.NotificationType1 = exports.NotificationType0 = exports.NotificationType = exports.ErrorCodes = exports.ResponseError = exports.RequestType9 = exports.RequestType8 = exports.RequestType7 = exports.RequestType6 = exports.RequestType5 = exports.RequestType4 = exports.RequestType3 = exports.RequestType2 = exports.RequestType1 = exports.RequestType0 = exports.RequestType = exports.Message = exports.RAL = void 0;\nexports.MessageStrategy = exports.CancellationStrategy = exports.CancellationSenderStrategy = exports.CancellationReceiverStrategy = exports.ConnectionError = exports.ConnectionErrors = exports.LogTraceNotification = exports.SetTraceNotification = exports.TraceFormat = exports.TraceValues = exports.Trace = void 0;\nconst messages_1 = require(\"./messages\");\nObject.defineProperty(exports, \"Message\", { enumerable: true, get: function () { return messages_1.Message; } });\nObject.defineProperty(exports, \"RequestType\", { enumerable: true, get: function () { return messages_1.RequestType; } });\nObject.defineProperty(exports, \"RequestType0\", { enumerable: true, get: function () { return messages_1.RequestType0; } });\nObject.defineProperty(exports, \"RequestType1\", { enumerable: true, get: function () { return messages_1.RequestType1; } });\nObject.defineProperty(exports, \"RequestType2\", { enumerable: true, get: function () { return messages_1.RequestType2; } });\nObject.defineProperty(exports, \"RequestType3\", { enumerable: true, get: function () { return messages_1.RequestType3; } });\nObject.defineProperty(exports, \"RequestType4\", { enumerable: true, get: function () { return messages_1.RequestType4; } });\nObject.defineProperty(exports, \"RequestType5\", { enumerable: true, get: function () { return messages_1.RequestType5; } });\nObject.defineProperty(exports, \"RequestType6\", { enumerable: true, get: function () { return messages_1.RequestType6; } });\nObject.defineProperty(exports, \"RequestType7\", { enumerable: true, get: function () { return messages_1.RequestType7; } });\nObject.defineProperty(exports, \"RequestType8\", { enumerable: true, get: function () { return messages_1.RequestType8; } });\nObject.defineProperty(exports, \"RequestType9\", { enumerable: true, get: function () { return messages_1.RequestType9; } });\nObject.defineProperty(exports, \"ResponseError\", { enumerable: true, get: function () { return messages_1.ResponseError; } });\nObject.defineProperty(exports, \"ErrorCodes\", { enumerable: true, get: function () { return messages_1.ErrorCodes; } });\nObject.defineProperty(exports, \"NotificationType\", { enumerable: true, get: function () { return messages_1.NotificationType; } });\nObject.defineProperty(exports, \"NotificationType0\", { enumerable: true, get: function () { return messages_1.NotificationType0; } });\nObject.defineProperty(exports, \"NotificationType1\", { enumerable: true, get: function () { return messages_1.NotificationType1; } });\nObject.defineProperty(exports, \"NotificationType2\", { enumerable: true, get: function () { return messages_1.NotificationType2; } });\nObject.defineProperty(exports, \"NotificationType3\", { enumerable: true, get: function () { return messages_1.NotificationType3; } });\nObject.defineProperty(exports, \"NotificationType4\", { enumerable: true, get: function () { return messages_1.NotificationType4; } });\nObject.defineProperty(exports, \"NotificationType5\", { enumerable: true, get: function () { return messages_1.NotificationType5; } });\nObject.defineProperty(exports, \"NotificationType6\", { enumerable: true, get: function () { return messages_1.NotificationType6; } });\nObject.defineProperty(exports, \"NotificationType7\", { enumerable: true, get: function () { return messages_1.NotificationType7; } });\nObject.defineProperty(exports, \"NotificationType8\", { enumerable: true, get: function () { return messages_1.NotificationType8; } });\nObject.defineProperty(exports, \"NotificationType9\", { enumerable: true, get: function () { return messages_1.NotificationType9; } });\nObject.defineProperty(exports, \"ParameterStructures\", { enumerable: true, get: function () { return messages_1.ParameterStructures; } });\nconst linkedMap_1 = require(\"./linkedMap\");\nObject.defineProperty(exports, \"LinkedMap\", { enumerable: true, get: function () { return linkedMap_1.LinkedMap; } });\nObject.defineProperty(exports, \"LRUCache\", { enumerable: true, get: function () { return linkedMap_1.LRUCache; } });\nObject.defineProperty(exports, \"Touch\", { enumerable: true, get: function () { return linkedMap_1.Touch; } });\nconst disposable_1 = require(\"./disposable\");\nObject.defineProperty(exports, \"Disposable\", { enumerable: true, get: function () { return disposable_1.Disposable; } });\nconst events_1 = require(\"./events\");\nObject.defineProperty(exports, \"Event\", { enumerable: true, get: function () { return events_1.Event; } });\nObject.defineProperty(exports, \"Emitter\", { enumerable: true, get: function () { return events_1.Emitter; } });\nconst cancellation_1 = require(\"./cancellation\");\nObject.defineProperty(exports, \"CancellationTokenSource\", { enumerable: true, get: function () { return cancellation_1.CancellationTokenSource; } });\nObject.defineProperty(exports, \"CancellationToken\", { enumerable: true, get: function () { return cancellation_1.CancellationToken; } });\nconst sharedArrayCancellation_1 = require(\"./sharedArrayCancellation\");\nObject.defineProperty(exports, \"SharedArraySenderStrategy\", { enumerable: true, get: function () { return sharedArrayCancellation_1.SharedArraySenderStrategy; } });\nObject.defineProperty(exports, \"SharedArrayReceiverStrategy\", { enumerable: true, get: function () { return sharedArrayCancellation_1.SharedArrayReceiverStrategy; } });\nconst messageReader_1 = require(\"./messageReader\");\nObject.defineProperty(exports, \"MessageReader\", { enumerable: true, get: function () { return messageReader_1.MessageReader; } });\nObject.defineProperty(exports, \"AbstractMessageReader\", { enumerable: true, get: function () { return messageReader_1.AbstractMessageReader; } });\nObject.defineProperty(exports, \"ReadableStreamMessageReader\", { enumerable: true, get: function () { return messageReader_1.ReadableStreamMessageReader; } });\nconst messageWriter_1 = require(\"./messageWriter\");\nObject.defineProperty(exports, \"MessageWriter\", { enumerable: true, get: function () { return messageWriter_1.MessageWriter; } });\nObject.defineProperty(exports, \"AbstractMessageWriter\", { enumerable: true, get: function () { return messageWriter_1.AbstractMessageWriter; } });\nObject.defineProperty(exports, \"WriteableStreamMessageWriter\", { enumerable: true, get: function () { return messageWriter_1.WriteableStreamMessageWriter; } });\nconst messageBuffer_1 = require(\"./messageBuffer\");\nObject.defineProperty(exports, \"AbstractMessageBuffer\", { enumerable: true, get: function () { return messageBuffer_1.AbstractMessageBuffer; } });\nconst connection_1 = require(\"./connection\");\nObject.defineProperty(exports, \"ConnectionStrategy\", { enumerable: true, get: function () { return connection_1.ConnectionStrategy; } });\nObject.defineProperty(exports, \"ConnectionOptions\", { enumerable: true, get: function () { return connection_1.ConnectionOptions; } });\nObject.defineProperty(exports, \"NullLogger\", { enumerable: true, get: function () { return connection_1.NullLogger; } });\nObject.defineProperty(exports, \"createMessageConnection\", { enumerable: true, get: function () { return connection_1.createMessageConnection; } });\nObject.defineProperty(exports, \"ProgressToken\", { enumerable: true, get: function () { return connection_1.ProgressToken; } });\nObject.defineProperty(exports, \"ProgressType\", { enumerable: true, get: function () { return connection_1.ProgressType; } });\nObject.defineProperty(exports, \"Trace\", { enumerable: true, get: function () { return connection_1.Trace; } });\nObject.defineProperty(exports, \"TraceValues\", { enumerable: true, get: function () { return connection_1.TraceValues; } });\nObject.defineProperty(exports, \"TraceFormat\", { enumerable: true, get: function () { return connection_1.TraceFormat; } });\nObject.defineProperty(exports, \"SetTraceNotification\", { enumerable: true, get: function () { return connection_1.SetTraceNotification; } });\nObject.defineProperty(exports, \"LogTraceNotification\", { enumerable: true, get: function () { return connection_1.LogTraceNotification; } });\nObject.defineProperty(exports, \"ConnectionErrors\", { enumerable: true, get: function () { return connection_1.ConnectionErrors; } });\nObject.defineProperty(exports, \"ConnectionError\", { enumerable: true, get: function () { return connection_1.ConnectionError; } });\nObject.defineProperty(exports, \"CancellationReceiverStrategy\", { enumerable: true, get: function () { return connection_1.CancellationReceiverStrategy; } });\nObject.defineProperty(exports, \"CancellationSenderStrategy\", { enumerable: true, get: function () { return connection_1.CancellationSenderStrategy; } });\nObject.defineProperty(exports, \"CancellationStrategy\", { enumerable: true, get: function () { return connection_1.CancellationStrategy; } });\nObject.defineProperty(exports, \"MessageStrategy\", { enumerable: true, get: function () { return connection_1.MessageStrategy; } });\nconst ral_1 = require(\"./ral\");\nexports.RAL = ral_1.default;\n"],"x_google_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