@powerlines/deepkit 0.6.167 → 0.7.0

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 (137) hide show
  1. package/bin/deepkit-install.cjs +55 -90
  2. package/dist/capnp-BLx1WTBU.cjs +5175 -0
  3. package/dist/capnp-BiGNkOmV.mjs +4905 -0
  4. package/dist/capnp.cjs +47 -186
  5. package/dist/capnp.d.cts +78 -77
  6. package/dist/{capnp.d.ts → capnp.d.mts} +78 -77
  7. package/dist/capnp.mjs +3 -0
  8. package/dist/chunk-C0xms8kb.cjs +34 -0
  9. package/dist/esbuild-plugin.cjs +47 -11
  10. package/dist/esbuild-plugin.d.cts +20 -18
  11. package/dist/esbuild-plugin.d.mts +35 -0
  12. package/dist/esbuild-plugin.mjs +48 -0
  13. package/dist/index.cjs +69 -250
  14. package/dist/index.d.cts +10 -19
  15. package/dist/index.d.mts +10 -0
  16. package/dist/index.mjs +11 -0
  17. package/dist/reflect-type.cjs +24 -12
  18. package/dist/reflect-type.d.cts +7 -5
  19. package/dist/{reflect-type.d.ts → reflect-type.d.mts} +7 -5
  20. package/dist/reflect-type.mjs +24 -0
  21. package/dist/{reflection-9KUpjPqV.d.cts → reflection-BwdnCwaK.d.cts} +11 -17
  22. package/dist/{reflection-9KUpjPqV.d.ts → reflection-D9R8cdSo.d.mts} +26 -32
  23. package/dist/resolve-reflections.cjs +15 -9
  24. package/dist/resolve-reflections.d.cts +4 -2
  25. package/dist/{resolve-reflections.d.ts → resolve-reflections.d.mts} +4 -2
  26. package/dist/resolve-reflections.mjs +16 -0
  27. package/dist/rolldown-plugin.cjs +44 -11
  28. package/dist/rolldown-plugin.d.cts +5 -3
  29. package/dist/{rolldown-plugin.d.ts → rolldown-plugin.d.mts} +5 -3
  30. package/dist/rolldown-plugin.mjs +45 -0
  31. package/dist/transformer.cjs +52 -13
  32. package/dist/transformer.d.cts +6 -4
  33. package/dist/{transformer.d.ts → transformer.d.mts} +6 -4
  34. package/dist/transformer.mjs +51 -0
  35. package/dist/transpile.cjs +29 -10
  36. package/dist/transpile.d.cts +6 -4
  37. package/dist/{transpile.d.ts → transpile.d.mts} +6 -4
  38. package/dist/transpile.mjs +29 -0
  39. package/dist/types.cjs +0 -4
  40. package/dist/types.d.cts +9 -9
  41. package/dist/{types.d.ts → types.d.mts} +9 -9
  42. package/dist/types.mjs +1 -0
  43. package/dist/utilities.cjs +116 -33
  44. package/dist/utilities.d.cts +4 -2
  45. package/dist/{utilities.d.ts → utilities.d.mts} +4 -2
  46. package/dist/utilities.mjs +111 -0
  47. package/dist/vendor/core.cjs +1240 -513
  48. package/dist/vendor/core.mjs +1116 -0
  49. package/dist/vendor/string-BoXo0wS7.cjs +2983 -0
  50. package/dist/vendor/string-BuMgdahD.mjs +2467 -0
  51. package/dist/vendor/type-BMLjRtLY.cjs +202 -0
  52. package/dist/vendor/type-Dgeqs-rL.mjs +190 -0
  53. package/dist/vendor/type-compiler/compiler-BUrWMhGi.cjs +6792 -0
  54. package/dist/vendor/type-compiler/compiler-Bg8jX6qU.mjs +6739 -0
  55. package/dist/vendor/type-compiler/compiler-D1z5h1MK.d.cts +578 -0
  56. package/dist/vendor/type-compiler/compiler-Nkxc4PLJ.d.mts +578 -0
  57. package/dist/vendor/type-compiler/compiler.cjs +11 -43
  58. package/dist/vendor/type-compiler/compiler.d.cts +2 -3
  59. package/dist/vendor/type-compiler/compiler.d.mts +2 -0
  60. package/dist/vendor/type-compiler/compiler.mjs +3 -0
  61. package/dist/vendor/type-compiler/config-BEX924PC.cjs +3709 -0
  62. package/dist/vendor/type-compiler/config-B_cKkYZm.d.cts +116 -0
  63. package/dist/vendor/type-compiler/config-D9DM7Du_.d.mts +116 -0
  64. package/dist/vendor/type-compiler/config-y0HNkbCH.mjs +3640 -0
  65. package/dist/vendor/type-compiler/config.cjs +9 -34
  66. package/dist/vendor/type-compiler/config.d.cts +2 -1
  67. package/dist/vendor/type-compiler/config.d.mts +2 -0
  68. package/dist/vendor/type-compiler/config.mjs +3 -0
  69. package/dist/vendor/type-compiler/index.cjs +56 -129
  70. package/dist/vendor/type-compiler/index.d.cts +22 -3
  71. package/dist/vendor/type-compiler/index.d.mts +22 -0
  72. package/dist/vendor/type-compiler/index.mjs +50 -0
  73. package/dist/vendor/type-spec.cjs +11 -12
  74. package/dist/vendor/type-spec.mjs +3 -0
  75. package/dist/vendor/type.cjs +8407 -17892
  76. package/dist/vendor/type.d.cts +10 -196
  77. package/dist/vendor/{type.d.ts → type.d.mts} +10 -196
  78. package/dist/vendor/type.mjs +9109 -0
  79. package/package.json +43 -31
  80. package/schemas/reflection.cjs +4018 -4129
  81. package/schemas/reflection.d.cts +30 -38
  82. package/schemas/{reflection.d.ts → reflection.d.mts} +30 -38
  83. package/schemas/reflection.mjs +4036 -0
  84. package/dist/capnp.js +0 -2
  85. package/dist/chunk-23YNDVRG.js +0 -34
  86. package/dist/chunk-27RKMKSF.cjs +0 -50
  87. package/dist/chunk-2XDQUCXZ.js +0 -2392
  88. package/dist/chunk-34OFD7LS.cjs +0 -68
  89. package/dist/chunk-7FXYDYVQ.cjs +0 -5246
  90. package/dist/chunk-7QZGCBH7.cjs +0 -11
  91. package/dist/chunk-ALM6UMVU.js +0 -9
  92. package/dist/chunk-BLLXF42T.cjs +0 -41
  93. package/dist/chunk-H3Q3XL3D.js +0 -19
  94. package/dist/chunk-HPVJ6OV3.cjs +0 -31
  95. package/dist/chunk-JQUKKAFM.js +0 -48
  96. package/dist/chunk-KK7TQA7L.cjs +0 -25
  97. package/dist/chunk-NPV2346T.js +0 -25
  98. package/dist/chunk-ORA4UQMU.cjs +0 -2
  99. package/dist/chunk-OUGDFUKJ.cjs +0 -2400
  100. package/dist/chunk-OULCUN6I.js +0 -1
  101. package/dist/chunk-SHUYVCID.js +0 -4
  102. package/dist/chunk-TDYIUJGY.js +0 -5180
  103. package/dist/chunk-USNT2KNT.cjs +0 -6
  104. package/dist/chunk-WYEFKIRL.js +0 -66
  105. package/dist/esbuild-plugin.d.ts +0 -33
  106. package/dist/esbuild-plugin.js +0 -4
  107. package/dist/index.d.ts +0 -19
  108. package/dist/index.js +0 -10
  109. package/dist/reflect-type.js +0 -5
  110. package/dist/resolve-reflections.js +0 -2
  111. package/dist/rolldown-plugin.js +0 -4
  112. package/dist/transformer.js +0 -2
  113. package/dist/transpile.js +0 -3
  114. package/dist/types.js +0 -1
  115. package/dist/utilities.js +0 -2
  116. package/dist/vendor/chunk-5BKT4CS5.js +0 -28
  117. package/dist/vendor/chunk-BLN7QVCP.js +0 -3704
  118. package/dist/vendor/chunk-BR2FK5K7.js +0 -109
  119. package/dist/vendor/chunk-EPQZMVJO.cjs +0 -3859
  120. package/dist/vendor/chunk-IFK6AU6M.cjs +0 -42
  121. package/dist/vendor/chunk-SHDAXCXF.cjs +0 -115
  122. package/dist/vendor/core.js +0 -2
  123. package/dist/vendor/type-compiler/chunk-3LL3TSRJ.js +0 -3762
  124. package/dist/vendor/type-compiler/chunk-CUTGHVNY.js +0 -7100
  125. package/dist/vendor/type-compiler/chunk-IAWCLVUK.cjs +0 -3780
  126. package/dist/vendor/type-compiler/chunk-UIWPG352.cjs +0 -7114
  127. package/dist/vendor/type-compiler/compiler.d.ts +0 -3
  128. package/dist/vendor/type-compiler/compiler.js +0 -5
  129. package/dist/vendor/type-compiler/config.d.ts +0 -1
  130. package/dist/vendor/type-compiler/config.js +0 -5
  131. package/dist/vendor/type-compiler/index.d.ts +0 -3
  132. package/dist/vendor/type-compiler/index.js +0 -66
  133. package/dist/vendor/type-spec.js +0 -2
  134. package/dist/vendor/type.js +0 -18359
  135. package/schemas/reflection.js +0 -4153
  136. /package/dist/vendor/{core.d.ts → core.d.mts} +0 -0
  137. /package/dist/vendor/{type-spec.d.ts → type-spec.d.mts} +0 -0
@@ -1,516 +1,1243 @@
1
- 'use strict';
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_string = require('./string-BoXo0wS7.cjs');
2
3
 
3
- var chunkEPQZMVJO_cjs = require('./chunk-EPQZMVJO.cjs');
4
- var chunkIFK6AU6M_cjs = require('./chunk-IFK6AU6M.cjs');
4
+ //#region ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/decorators.js
5
+ const __ΩPropertyDescriptor = [
6
+ "configurable",
7
+ "enumerable",
8
+ "value",
9
+ "writable",
10
+ "get",
11
+ "v",
12
+ "set",
13
+ "PropertyDescriptor",
14
+ "P)4!8)4\"8\"4#8)4$8P\"1%P\"2&$1'Mw(y"
15
+ ];
16
+ const __ΩTypedPropertyDescriptor = [
17
+ "T",
18
+ "enumerable",
19
+ "configurable",
20
+ "writable",
21
+ "value",
22
+ "",
23
+ "get",
24
+ "set",
25
+ "TypedPropertyDescriptor",
26
+ "b!P)4\"8)4#8)4$8e\"!4%8Pe#!/&4'8Pe#!2%$/&4(8Mw)y"
27
+ ];
28
+ function __assignType$6(fn, args) {
29
+ fn.__type = args;
30
+ return fn;
31
+ }
32
+ /**
33
+ * Logs every call to this method on stdout.
34
+ *
35
+ * @public
36
+ */
37
+ function log() {
38
+ return __assignType$6(function(target, propertyKey, descriptor) {
39
+ const orig = descriptor.value;
40
+ descriptor.value = __assignType$6(function(...args) {
41
+ const a = args.map(__assignType$6((v) => typeof v, [
42
+ "v",
43
+ "",
44
+ "P\"2!\"/\""
45
+ ])).join(",");
46
+ console.info(require_string.getClassName(target) + "::" + String(propertyKey) + "(" + a + ")");
47
+ return orig.apply(this, args);
48
+ }, [
49
+ "args",
50
+ "",
51
+ "P\"@2!\"/\""
52
+ ]);
53
+ return descriptor;
54
+ }, [
55
+ "target",
56
+ "propertyKey",
57
+ () => __ΩPropertyDescriptor,
58
+ "descriptor",
59
+ "",
60
+ "P%2!P&+J2\"n#2$\"/%"
61
+ ]);
62
+ }
63
+ log.__type = ["log", "P\"/!"];
64
+ /**
65
+ * Makes sure that calls to this async method are stacked up and are called one after another and not parallel.
66
+ *
67
+ * @public
68
+ */
69
+ function stack() {
70
+ return __assignType$6(function(target, propertyKey, descriptor) {
71
+ const orig = descriptor.value;
72
+ descriptor.value = __assignType$6(async function(...args) {
73
+ const name = "__c_" + propertyKey;
74
+ if (this[name] === void 0) {
75
+ this[name] = null;
76
+ require_string.toFastProperties(this);
77
+ }
78
+ while (this[name]) await this[name];
79
+ this[name] = orig.apply(this, args);
80
+ try {
81
+ return await this[name];
82
+ } finally {
83
+ this[name] = null;
84
+ }
85
+ }, [
86
+ "args",
87
+ "",
88
+ "P\"@2!\"/\""
89
+ ]);
90
+ }, [
91
+ "target",
92
+ "propertyKey",
93
+ () => __ΩTypedPropertyDescriptor,
94
+ "args",
95
+ "",
96
+ "descriptor",
97
+ "P%2!&2\"P\"@2$\"`/%o#\"2&\"/%"
98
+ ]);
99
+ }
100
+ stack.__type = ["stack", "P\"/!"];
101
+ /**
102
+ * Makes sure that this async method is only running once at a time. When this method is running and it is tried
103
+ * to call it another times, that call is "dropped" and it returns simply the result of the previous running call (waiting for it to complete first).
104
+ *
105
+ * @public
106
+ */
107
+ function singleStack() {
108
+ return __assignType$6(function(target, propertyKey, descriptor) {
109
+ const orig = descriptor.value;
110
+ descriptor.value = __assignType$6(async function(...args) {
111
+ const name = "__sc_" + propertyKey;
112
+ if (this[name] === void 0) {
113
+ this[name] = null;
114
+ require_string.toFastProperties(this);
115
+ }
116
+ if (this[name]) return await this[name];
117
+ this[name] = orig.apply(this, args);
118
+ try {
119
+ return await this[name];
120
+ } finally {
121
+ this[name] = null;
122
+ }
123
+ }, [
124
+ "args",
125
+ "",
126
+ "P\"@2!\"/\""
127
+ ]);
128
+ }, [
129
+ "target",
130
+ "propertyKey",
131
+ () => __ΩTypedPropertyDescriptor,
132
+ "args",
133
+ "",
134
+ "descriptor",
135
+ "P%2!&2\"P\"@2$\"`/%o#\"2&\"/%"
136
+ ]);
137
+ }
138
+ singleStack.__type = ["singleStack", "P\"/!"];
5
139
 
6
- // src/vendor/core.ts
7
- chunkIFK6AU6M_cjs.init_cjs_shims();
140
+ //#endregion
141
+ //#region ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/enum.js
142
+ const __ΩObject = [
143
+ () => Function,
144
+ "constructor",
145
+ "toString",
146
+ "toLocaleString",
147
+ 0,
148
+ "valueOf",
149
+ () => __ΩPropertyKey,
150
+ "v",
151
+ "hasOwnProperty",
152
+ 0,
153
+ "isPrototypeOf",
154
+ () => __ΩPropertyKey,
155
+ "propertyIsEnumerable",
156
+ "Object",
157
+ "PPu!4\"P&1#P&1$Pn%1&Pn'2()1)Pn*2()1+Pn,2()1-Mw.y"
158
+ ];
159
+ const __ΩPropertyKey = ["PropertyKey", "P&'+Jw!y"];
160
+ function __assignType$5(fn, args) {
161
+ fn.__type = args;
162
+ return fn;
163
+ }
164
+ const cacheEnumLabels = (Map.Ω = [[() => __ΩObject, "n!"], ["&F"]], /* @__PURE__ */ new Map());
165
+ /**
166
+ * Returns the enum label for a given enum value.
167
+ *
168
+ * @public
169
+ */
170
+ function getEnumLabel(enumType, id) {
171
+ for (const i of require_string.eachKey(enumType)) if (id === enumType[i]) return i;
172
+ }
173
+ getEnumLabel.__type = [
174
+ "enumType",
175
+ "id",
176
+ "getEnumLabel",
177
+ "PP&\"LM2!\"2\"\"/#"
178
+ ];
179
+ /**
180
+ * Returns all possible enum labels.
181
+ *
182
+ * @public
183
+ */
184
+ function getEnumLabels(enumDefinition) {
185
+ let value = cacheEnumLabels.get(enumDefinition);
186
+ if (!value) {
187
+ value = Object.keys(enumDefinition).filter(__assignType$5((v) => !Number.isFinite(parseInt(v, 10)), [
188
+ "v",
189
+ "",
190
+ "P\"2!\"/\""
191
+ ]));
192
+ cacheEnumLabels.set(enumDefinition, value);
193
+ }
194
+ return value;
195
+ }
196
+ getEnumLabels.__type = [
197
+ "enumDefinition",
198
+ "getEnumLabels",
199
+ "P\"2!\"/\""
200
+ ];
201
+ const cacheEnumKeys = (Map.Ω = [[() => __ΩObject, "n!"], ["&F"]], /* @__PURE__ */ new Map());
202
+ /**
203
+ * Returns all possible enum keys.
204
+ *
205
+ * @public
206
+ */
207
+ function getEnumValues(enumDefinition) {
208
+ let value = cacheEnumKeys.get(enumDefinition);
209
+ if (!value) {
210
+ value = Object.values(enumDefinition).filter(__assignType$5((v) => {
211
+ return "number" !== typeof enumDefinition[v];
212
+ }, [
213
+ "v",
214
+ "",
215
+ "P\"2!\"/\""
216
+ ]));
217
+ cacheEnumKeys.set(enumDefinition, value);
218
+ }
219
+ return value;
220
+ }
221
+ getEnumValues.__type = [
222
+ "enumDefinition",
223
+ "getEnumValues",
224
+ "P\"2!\"F/\""
225
+ ];
226
+ function getEnumKeyLabelMap(enumDefinition) {
227
+ const map = (Map.Ω = [["\""], ["&"]], /* @__PURE__ */ new Map());
228
+ const keys = getEnumValues(enumDefinition);
229
+ const labels = getEnumLabels(enumDefinition);
230
+ for (let i = 0; i < keys.length; i++) map.set(keys[i], labels[i]);
231
+ return map;
232
+ }
233
+ getEnumKeyLabelMap.__type = [
234
+ "enumDefinition",
235
+ "getEnumKeyLabelMap",
236
+ "P\"2!\"&E/\""
237
+ ];
238
+ /**
239
+ * Checks whether given enum value is valid.
240
+ *
241
+ * @public
242
+ */
243
+ function isValidEnumValue(enumDefinition, value, allowLabelsAsValue = false) {
244
+ if (allowLabelsAsValue) {
245
+ if (-1 !== getEnumLabels(enumDefinition).indexOf(String(value))) return true;
246
+ }
247
+ const values = getEnumValues(enumDefinition);
248
+ return -1 !== values.indexOf(+value) || -1 !== values.indexOf(value) || -1 !== values.indexOf(String(value));
249
+ }
250
+ isValidEnumValue.__type = [
251
+ "enumDefinition",
252
+ "value",
253
+ "allowLabelsAsValue",
254
+ "isValidEnumValue",
255
+ "P\"2!\"2\"\"2#\"/$"
256
+ ];
257
+ /**
258
+ * @public
259
+ */
260
+ function getValidEnumValue(enumDefinition, value, allowLabelsAsValue = false) {
261
+ if (allowLabelsAsValue) {
262
+ if (-1 !== getEnumLabels(enumDefinition).indexOf(String(value))) return enumDefinition[String(value)];
263
+ }
264
+ const values = getEnumValues(enumDefinition);
265
+ if (-1 !== values.indexOf(value)) return value;
266
+ if (-1 !== values.indexOf(+value)) return +value;
267
+ if (-1 !== values.indexOf(String(value))) return String(value);
268
+ }
269
+ getValidEnumValue.__type = [
270
+ "enumDefinition",
271
+ "value",
272
+ "allowLabelsAsValue",
273
+ "getValidEnumValue",
274
+ "P\"2!\"2\"\"2#\"/$"
275
+ ];
8
276
 
9
- Object.defineProperty(exports, "AsyncEventEmitter", {
10
- enumerable: true,
11
- get: function () { return chunkEPQZMVJO_cjs.AsyncEventEmitter; }
12
- });
13
- Object.defineProperty(exports, "AsyncFunction", {
14
- enumerable: true,
15
- get: function () { return chunkEPQZMVJO_cjs.AsyncFunction; }
16
- });
17
- Object.defineProperty(exports, "CompilerContext", {
18
- enumerable: true,
19
- get: function () { return chunkEPQZMVJO_cjs.CompilerContext; }
20
- });
21
- Object.defineProperty(exports, "CustomError", {
22
- enumerable: true,
23
- get: function () { return chunkEPQZMVJO_cjs.CustomError; }
24
- });
25
- Object.defineProperty(exports, "EmitterEvent", {
26
- enumerable: true,
27
- get: function () { return chunkEPQZMVJO_cjs.EmitterEvent; }
28
- });
29
- Object.defineProperty(exports, "EventEmitter", {
30
- enumerable: true,
31
- get: function () { return chunkEPQZMVJO_cjs.EventEmitter; }
32
- });
33
- Object.defineProperty(exports, "Mutex", {
34
- enumerable: true,
35
- get: function () { return chunkEPQZMVJO_cjs.Mutex; }
36
- });
37
- Object.defineProperty(exports, "ParsedHost", {
38
- enumerable: true,
39
- get: function () { return chunkEPQZMVJO_cjs.ParsedHost; }
40
- });
41
- Object.defineProperty(exports, "ProcessLock", {
42
- enumerable: true,
43
- get: function () { return chunkEPQZMVJO_cjs.ProcessLock; }
44
- });
45
- Object.defineProperty(exports, "ProcessLocker", {
46
- enumerable: true,
47
- get: function () { return chunkEPQZMVJO_cjs.ProcessLocker; }
48
- });
49
- Object.defineProperty(exports, "Timer", {
50
- enumerable: true,
51
- get: function () { return chunkEPQZMVJO_cjs.Timer; }
52
- });
53
- Object.defineProperty(exports, "__ΩAbstractClassType", {
54
- enumerable: true,
55
- get: function () { return chunkEPQZMVJO_cjs.__ΩAbstractClassType; }
56
- });
57
- Object.defineProperty(exports, "__ΩAsyncEventSubscription", {
58
- enumerable: true,
59
- get: function () { return chunkEPQZMVJO_cjs.__ΩAsyncEventSubscription; }
60
- });
61
- Object.defineProperty(exports, "__ΩClassType", {
62
- enumerable: true,
63
- get: function () { return chunkEPQZMVJO_cjs.__ΩClassType; }
64
- });
65
- Object.defineProperty(exports, "__ΩCustomError", {
66
- enumerable: true,
67
- get: function () { return chunkEPQZMVJO_cjs.__ΩCustomError; }
68
- });
69
- Object.defineProperty(exports, "__ΩEventSubscription", {
70
- enumerable: true,
71
- get: function () { return chunkEPQZMVJO_cjs.__ΩEventSubscription; }
72
- });
73
- Object.defineProperty(exports, "__ΩExtractClassType", {
74
- enumerable: true,
75
- get: function () { return chunkEPQZMVJO_cjs.__ΩExtractClassType; }
76
- });
77
- Object.defineProperty(exports, "__ΩInject", {
78
- enumerable: true,
79
- get: function () { return chunkEPQZMVJO_cjs.__ΩInject; }
80
- });
81
- Object.defineProperty(exports, "__ΩInjectMeta", {
82
- enumerable: true,
83
- get: function () { return chunkEPQZMVJO_cjs.__ΩInjectMeta; }
84
- });
85
- Object.defineProperty(exports, "__ΩTypeAnnotation", {
86
- enumerable: true,
87
- get: function () { return chunkEPQZMVJO_cjs.__ΩTypeAnnotation; }
88
- });
89
- Object.defineProperty(exports, "appendObject", {
90
- enumerable: true,
91
- get: function () { return chunkEPQZMVJO_cjs.appendObject; }
92
- });
93
- Object.defineProperty(exports, "applyDefaults", {
94
- enumerable: true,
95
- get: function () { return chunkEPQZMVJO_cjs.applyDefaults; }
96
- });
97
- Object.defineProperty(exports, "arrayClear", {
98
- enumerable: true,
99
- get: function () { return chunkEPQZMVJO_cjs.arrayClear; }
100
- });
101
- Object.defineProperty(exports, "arrayHasItem", {
102
- enumerable: true,
103
- get: function () { return chunkEPQZMVJO_cjs.arrayHasItem; }
104
- });
105
- Object.defineProperty(exports, "arrayMoveItem", {
106
- enumerable: true,
107
- get: function () { return chunkEPQZMVJO_cjs.arrayMoveItem; }
108
- });
109
- Object.defineProperty(exports, "arrayRemoveItem", {
110
- enumerable: true,
111
- get: function () { return chunkEPQZMVJO_cjs.arrayRemoveItem; }
112
- });
113
- Object.defineProperty(exports, "assertDefined", {
114
- enumerable: true,
115
- get: function () { return chunkEPQZMVJO_cjs.assertDefined; }
116
- });
117
- Object.defineProperty(exports, "assertInstanceOf", {
118
- enumerable: true,
119
- get: function () { return chunkEPQZMVJO_cjs.assertInstanceOf; }
120
- });
121
- Object.defineProperty(exports, "asyncOperation", {
122
- enumerable: true,
123
- get: function () { return chunkEPQZMVJO_cjs.asyncOperation; }
124
- });
125
- Object.defineProperty(exports, "average", {
126
- enumerable: true,
127
- get: function () { return chunkEPQZMVJO_cjs.average; }
128
- });
129
- Object.defineProperty(exports, "base64ToUint8Array", {
130
- enumerable: true,
131
- get: function () { return chunkEPQZMVJO_cjs.base64ToUint8Array; }
132
- });
133
- Object.defineProperty(exports, "bufferConcat", {
134
- enumerable: true,
135
- get: function () { return chunkEPQZMVJO_cjs.bufferConcat; }
136
- });
137
- Object.defineProperty(exports, "bufferToString", {
138
- enumerable: true,
139
- get: function () { return chunkEPQZMVJO_cjs.bufferToString; }
140
- });
141
- Object.defineProperty(exports, "bufferedGate", {
142
- enumerable: true,
143
- get: function () { return chunkEPQZMVJO_cjs.bufferedGate; }
144
- });
145
- Object.defineProperty(exports, "capitalize", {
146
- enumerable: true,
147
- get: function () { return chunkEPQZMVJO_cjs.capitalize; }
148
- });
149
- Object.defineProperty(exports, "changeClass", {
150
- enumerable: true,
151
- get: function () { return chunkEPQZMVJO_cjs.changeClass; }
152
- });
153
- Object.defineProperty(exports, "clearTick", {
154
- enumerable: true,
155
- get: function () { return chunkEPQZMVJO_cjs.clearTick; }
156
- });
157
- Object.defineProperty(exports, "collectForMicrotask", {
158
- enumerable: true,
159
- get: function () { return chunkEPQZMVJO_cjs.collectForMicrotask; }
160
- });
161
- Object.defineProperty(exports, "copy", {
162
- enumerable: true,
163
- get: function () { return chunkEPQZMVJO_cjs.copy; }
164
- });
165
- Object.defineProperty(exports, "createBuffer", {
166
- enumerable: true,
167
- get: function () { return chunkEPQZMVJO_cjs.createBuffer; }
168
- });
169
- Object.defineProperty(exports, "createDynamicClass", {
170
- enumerable: true,
171
- get: function () { return chunkEPQZMVJO_cjs.createDynamicClass; }
172
- });
173
- Object.defineProperty(exports, "createStack", {
174
- enumerable: true,
175
- get: function () { return chunkEPQZMVJO_cjs.createStack; }
176
- });
177
- Object.defineProperty(exports, "deletePathValue", {
178
- enumerable: true,
179
- get: function () { return chunkEPQZMVJO_cjs.deletePathValue; }
180
- });
181
- Object.defineProperty(exports, "each", {
182
- enumerable: true,
183
- get: function () { return chunkEPQZMVJO_cjs.each; }
184
- });
185
- Object.defineProperty(exports, "eachKey", {
186
- enumerable: true,
187
- get: function () { return chunkEPQZMVJO_cjs.eachKey; }
188
- });
189
- Object.defineProperty(exports, "eachPair", {
190
- enumerable: true,
191
- get: function () { return chunkEPQZMVJO_cjs.eachPair; }
192
- });
193
- Object.defineProperty(exports, "empty", {
194
- enumerable: true,
195
- get: function () { return chunkEPQZMVJO_cjs.empty; }
196
- });
197
- Object.defineProperty(exports, "ensureError", {
198
- enumerable: true,
199
- get: function () { return chunkEPQZMVJO_cjs.ensureError; }
200
- });
201
- Object.defineProperty(exports, "escapeRegExp", {
202
- enumerable: true,
203
- get: function () { return chunkEPQZMVJO_cjs.escapeRegExp; }
204
- });
205
- Object.defineProperty(exports, "extractMethodBody", {
206
- enumerable: true,
207
- get: function () { return chunkEPQZMVJO_cjs.extractMethodBody; }
208
- });
209
- Object.defineProperty(exports, "extractParameters", {
210
- enumerable: true,
211
- get: function () { return chunkEPQZMVJO_cjs.extractParameters; }
212
- });
213
- Object.defineProperty(exports, "first", {
214
- enumerable: true,
215
- get: function () { return chunkEPQZMVJO_cjs.first; }
216
- });
217
- Object.defineProperty(exports, "firstKey", {
218
- enumerable: true,
219
- get: function () { return chunkEPQZMVJO_cjs.firstKey; }
220
- });
221
- Object.defineProperty(exports, "fixAsyncOperation", {
222
- enumerable: true,
223
- get: function () { return chunkEPQZMVJO_cjs.fixAsyncOperation; }
224
- });
225
- Object.defineProperty(exports, "formatError", {
226
- enumerable: true,
227
- get: function () { return chunkEPQZMVJO_cjs.formatError; }
228
- });
229
- Object.defineProperty(exports, "forwardTypeArguments", {
230
- enumerable: true,
231
- get: function () { return chunkEPQZMVJO_cjs.forwardTypeArguments; }
232
- });
233
- Object.defineProperty(exports, "getClassName", {
234
- enumerable: true,
235
- get: function () { return chunkEPQZMVJO_cjs.getClassName; }
236
- });
237
- Object.defineProperty(exports, "getClassPropertyName", {
238
- enumerable: true,
239
- get: function () { return chunkEPQZMVJO_cjs.getClassPropertyName; }
240
- });
241
- Object.defineProperty(exports, "getClassTypeFromInstance", {
242
- enumerable: true,
243
- get: function () { return chunkEPQZMVJO_cjs.getClassTypeFromInstance; }
244
- });
245
- Object.defineProperty(exports, "getCurrentFileName", {
246
- enumerable: true,
247
- get: function () { return chunkEPQZMVJO_cjs.getCurrentFileName; }
248
- });
249
- Object.defineProperty(exports, "getEnumKeyLabelMap", {
250
- enumerable: true,
251
- get: function () { return chunkEPQZMVJO_cjs.getEnumKeyLabelMap; }
252
- });
253
- Object.defineProperty(exports, "getEnumLabel", {
254
- enumerable: true,
255
- get: function () { return chunkEPQZMVJO_cjs.getEnumLabel; }
256
- });
257
- Object.defineProperty(exports, "getEnumLabels", {
258
- enumerable: true,
259
- get: function () { return chunkEPQZMVJO_cjs.getEnumLabels; }
260
- });
261
- Object.defineProperty(exports, "getEnumValues", {
262
- enumerable: true,
263
- get: function () { return chunkEPQZMVJO_cjs.getEnumValues; }
264
- });
265
- Object.defineProperty(exports, "getInheritanceChain", {
266
- enumerable: true,
267
- get: function () { return chunkEPQZMVJO_cjs.getInheritanceChain; }
268
- });
269
- Object.defineProperty(exports, "getObjectKeysSize", {
270
- enumerable: true,
271
- get: function () { return chunkEPQZMVJO_cjs.getObjectKeysSize; }
272
- });
273
- Object.defineProperty(exports, "getParentClass", {
274
- enumerable: true,
275
- get: function () { return chunkEPQZMVJO_cjs.getParentClass; }
276
- });
277
- Object.defineProperty(exports, "getPathValue", {
278
- enumerable: true,
279
- get: function () { return chunkEPQZMVJO_cjs.getPathValue; }
280
- });
281
- Object.defineProperty(exports, "getValidEnumValue", {
282
- enumerable: true,
283
- get: function () { return chunkEPQZMVJO_cjs.getValidEnumValue; }
284
- });
285
- Object.defineProperty(exports, "hasProperty", {
286
- enumerable: true,
287
- get: function () { return chunkEPQZMVJO_cjs.hasProperty; }
288
- });
289
- Object.defineProperty(exports, "humanBytes", {
290
- enumerable: true,
291
- get: function () { return chunkEPQZMVJO_cjs.humanBytes; }
292
- });
293
- Object.defineProperty(exports, "identifyType", {
294
- enumerable: true,
295
- get: function () { return chunkEPQZMVJO_cjs.identifyType; }
296
- });
297
- Object.defineProperty(exports, "inDebugMode", {
298
- enumerable: true,
299
- get: function () { return chunkEPQZMVJO_cjs.inDebugMode; }
300
- });
301
- Object.defineProperty(exports, "indent", {
302
- enumerable: true,
303
- get: function () { return chunkEPQZMVJO_cjs.indent; }
304
- });
305
- Object.defineProperty(exports, "indexOf", {
306
- enumerable: true,
307
- get: function () { return chunkEPQZMVJO_cjs.indexOf; }
308
- });
309
- Object.defineProperty(exports, "isArray", {
310
- enumerable: true,
311
- get: function () { return chunkEPQZMVJO_cjs.isArray; }
312
- });
313
- Object.defineProperty(exports, "isAsyncFunction", {
314
- enumerable: true,
315
- get: function () { return chunkEPQZMVJO_cjs.isAsyncFunction; }
316
- });
317
- Object.defineProperty(exports, "isClass", {
318
- enumerable: true,
319
- get: function () { return chunkEPQZMVJO_cjs.isClass; }
320
- });
321
- Object.defineProperty(exports, "isClassInstance", {
322
- enumerable: true,
323
- get: function () { return chunkEPQZMVJO_cjs.isClassInstance; }
324
- });
325
- Object.defineProperty(exports, "isConstructable", {
326
- enumerable: true,
327
- get: function () { return chunkEPQZMVJO_cjs.isConstructable; }
328
- });
329
- Object.defineProperty(exports, "isFunction", {
330
- enumerable: true,
331
- get: function () { return chunkEPQZMVJO_cjs.isFunction; }
332
- });
333
- Object.defineProperty(exports, "isGlobalClass", {
334
- enumerable: true,
335
- get: function () { return chunkEPQZMVJO_cjs.isGlobalClass; }
336
- });
337
- Object.defineProperty(exports, "isInteger", {
338
- enumerable: true,
339
- get: function () { return chunkEPQZMVJO_cjs.isInteger; }
340
- });
341
- Object.defineProperty(exports, "isIterable", {
342
- enumerable: true,
343
- get: function () { return chunkEPQZMVJO_cjs.isIterable; }
344
- });
345
- Object.defineProperty(exports, "isNull", {
346
- enumerable: true,
347
- get: function () { return chunkEPQZMVJO_cjs.isNull; }
348
- });
349
- Object.defineProperty(exports, "isNumber", {
350
- enumerable: true,
351
- get: function () { return chunkEPQZMVJO_cjs.isNumber; }
352
- });
353
- Object.defineProperty(exports, "isNumeric", {
354
- enumerable: true,
355
- get: function () { return chunkEPQZMVJO_cjs.isNumeric; }
356
- });
357
- Object.defineProperty(exports, "isObject", {
358
- enumerable: true,
359
- get: function () { return chunkEPQZMVJO_cjs.isObject; }
360
- });
361
- Object.defineProperty(exports, "isObjectLiteral", {
362
- enumerable: true,
363
- get: function () { return chunkEPQZMVJO_cjs.isObjectLiteral; }
364
- });
365
- Object.defineProperty(exports, "isPlainObject", {
366
- enumerable: true,
367
- get: function () { return chunkEPQZMVJO_cjs.isPlainObject; }
368
- });
369
- Object.defineProperty(exports, "isPromise", {
370
- enumerable: true,
371
- get: function () { return chunkEPQZMVJO_cjs.isPromise; }
372
- });
373
- Object.defineProperty(exports, "isPrototypeOfBase", {
374
- enumerable: true,
375
- get: function () { return chunkEPQZMVJO_cjs.isPrototypeOfBase; }
376
- });
377
- Object.defineProperty(exports, "isSet", {
378
- enumerable: true,
379
- get: function () { return chunkEPQZMVJO_cjs.isSet; }
380
- });
381
- Object.defineProperty(exports, "isString", {
382
- enumerable: true,
383
- get: function () { return chunkEPQZMVJO_cjs.isString; }
384
- });
385
- Object.defineProperty(exports, "isUndefined", {
386
- enumerable: true,
387
- get: function () { return chunkEPQZMVJO_cjs.isUndefined; }
388
- });
389
- Object.defineProperty(exports, "isValidEnumValue", {
390
- enumerable: true,
391
- get: function () { return chunkEPQZMVJO_cjs.isValidEnumValue; }
392
- });
393
- Object.defineProperty(exports, "iterableSize", {
394
- enumerable: true,
395
- get: function () { return chunkEPQZMVJO_cjs.iterableSize; }
396
- });
397
- Object.defineProperty(exports, "last", {
398
- enumerable: true,
399
- get: function () { return chunkEPQZMVJO_cjs.last; }
400
- });
401
- Object.defineProperty(exports, "lastKey", {
402
- enumerable: true,
403
- get: function () { return chunkEPQZMVJO_cjs.lastKey; }
404
- });
405
- Object.defineProperty(exports, "log", {
406
- enumerable: true,
407
- get: function () { return chunkEPQZMVJO_cjs.log; }
408
- });
409
- Object.defineProperty(exports, "mergePromiseStack", {
410
- enumerable: true,
411
- get: function () { return chunkEPQZMVJO_cjs.mergePromiseStack; }
412
- });
413
- Object.defineProperty(exports, "mergeStack", {
414
- enumerable: true,
415
- get: function () { return chunkEPQZMVJO_cjs.mergeStack; }
416
- });
417
- Object.defineProperty(exports, "nativeBase64ToUint8Array", {
418
- enumerable: true,
419
- get: function () { return chunkEPQZMVJO_cjs.nativeBase64ToUint8Array; }
420
- });
421
- Object.defineProperty(exports, "nextTick", {
422
- enumerable: true,
423
- get: function () { return chunkEPQZMVJO_cjs.nextTick; }
424
- });
425
- Object.defineProperty(exports, "parseHost", {
426
- enumerable: true,
427
- get: function () { return chunkEPQZMVJO_cjs.parseHost; }
428
- });
429
- Object.defineProperty(exports, "pathBasename", {
430
- enumerable: true,
431
- get: function () { return chunkEPQZMVJO_cjs.pathBasename; }
432
- });
433
- Object.defineProperty(exports, "pathDirectory", {
434
- enumerable: true,
435
- get: function () { return chunkEPQZMVJO_cjs.pathDirectory; }
436
- });
437
- Object.defineProperty(exports, "pathExtension", {
438
- enumerable: true,
439
- get: function () { return chunkEPQZMVJO_cjs.pathExtension; }
440
- });
441
- Object.defineProperty(exports, "pathJoin", {
442
- enumerable: true,
443
- get: function () { return chunkEPQZMVJO_cjs.pathJoin; }
444
- });
445
- Object.defineProperty(exports, "pathNormalize", {
446
- enumerable: true,
447
- get: function () { return chunkEPQZMVJO_cjs.pathNormalize; }
448
- });
449
- Object.defineProperty(exports, "prependObjectKeys", {
450
- enumerable: true,
451
- get: function () { return chunkEPQZMVJO_cjs.prependObjectKeys; }
452
- });
453
- Object.defineProperty(exports, "prettyPrintObject", {
454
- enumerable: true,
455
- get: function () { return chunkEPQZMVJO_cjs.prettyPrintObject; }
456
- });
457
- Object.defineProperty(exports, "range", {
458
- enumerable: true,
459
- get: function () { return chunkEPQZMVJO_cjs.range; }
460
- });
461
- Object.defineProperty(exports, "rangeArray", {
462
- enumerable: true,
463
- get: function () { return chunkEPQZMVJO_cjs.rangeArray; }
464
- });
465
- Object.defineProperty(exports, "removeStrings", {
466
- enumerable: true,
467
- get: function () { return chunkEPQZMVJO_cjs.removeStrings; }
468
- });
469
- Object.defineProperty(exports, "setPathValue", {
470
- enumerable: true,
471
- get: function () { return chunkEPQZMVJO_cjs.setPathValue; }
472
- });
473
- Object.defineProperty(exports, "singleStack", {
474
- enumerable: true,
475
- get: function () { return chunkEPQZMVJO_cjs.singleStack; }
476
- });
477
- Object.defineProperty(exports, "size", {
478
- enumerable: true,
479
- get: function () { return chunkEPQZMVJO_cjs.size; }
480
- });
481
- Object.defineProperty(exports, "sleep", {
482
- enumerable: true,
483
- get: function () { return chunkEPQZMVJO_cjs.sleep; }
484
- });
485
- Object.defineProperty(exports, "stack", {
486
- enumerable: true,
487
- get: function () { return chunkEPQZMVJO_cjs.stack; }
488
- });
489
- Object.defineProperty(exports, "stringifyValueWithType", {
490
- enumerable: true,
491
- get: function () { return chunkEPQZMVJO_cjs.stringifyValueWithType; }
492
- });
493
- Object.defineProperty(exports, "throttleTime", {
494
- enumerable: true,
495
- get: function () { return chunkEPQZMVJO_cjs.throttleTime; }
496
- });
497
- Object.defineProperty(exports, "time", {
498
- enumerable: true,
499
- get: function () { return chunkEPQZMVJO_cjs.time; }
500
- });
501
- Object.defineProperty(exports, "toFastProperties", {
502
- enumerable: true,
503
- get: function () { return chunkEPQZMVJO_cjs.toFastProperties; }
504
- });
505
- Object.defineProperty(exports, "uint8ArrayToUtf8", {
506
- enumerable: true,
507
- get: function () { return chunkEPQZMVJO_cjs.uint8ArrayToUtf8; }
508
- });
509
- Object.defineProperty(exports, "urlJoin", {
510
- enumerable: true,
511
- get: function () { return chunkEPQZMVJO_cjs.urlJoin; }
512
- });
513
- Object.defineProperty(exports, "zip", {
514
- enumerable: true,
515
- get: function () { return chunkEPQZMVJO_cjs.zip; }
516
- });
277
+ //#endregion
278
+ //#region ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/timer.js
279
+ var Timer = class {
280
+ constructor() {
281
+ this.timeoutTimers = [];
282
+ }
283
+ setTimeout(cb, timeout) {
284
+ const timer = setTimeout(cb, timeout);
285
+ this.timeoutTimers.push(timer);
286
+ return timer;
287
+ }
288
+ /**
289
+ * Clears all timers at once.
290
+ */
291
+ clear() {
292
+ for (const timeout of this.timeoutTimers) clearTimeout(timeout);
293
+ }
294
+ };
295
+ Timer.__type = [
296
+ "timeoutTimers",
297
+ function() {
298
+ return [];
299
+ },
300
+ "",
301
+ "cb",
302
+ "timeout",
303
+ "setTimeout",
304
+ "clear",
305
+ "Timer",
306
+ "\"F3!<>\"PP$/#2$'2%\"0&P\"0'5w("
307
+ ];
308
+
309
+ //#endregion
310
+ //#region ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/process-locker.js
311
+ function __assignType$4(fn, args) {
312
+ fn.__type = args;
313
+ return fn;
314
+ }
315
+ const LOCKS = {};
316
+ /**
317
+ * This lock mechanism works only for one process (worker).
318
+ *
319
+ * live-mutex: has horrible API and doesn't allow to check if an key is currently locked.
320
+ * proper-filelock: No way to do a correct mutex locking with event-driven blocking acquire() method.
321
+ * redislock: Very bad performance on high-load (when multiple locks on the same key `wait`, since it loops)
322
+ * mongodb lock: even worse performance than redis. Jesus.
323
+ */
324
+ var ProcessLock = class {
325
+ constructor(id) {
326
+ this.id = id;
327
+ this.holding = false;
328
+ }
329
+ async acquire(ttl = 0, timeout = 0) {
330
+ if (this.holding) throw new Error("Lock already acquired");
331
+ return Promise.Ω = [["$"]], new Promise(__assignType$4((resolve, reject) => {
332
+ if (LOCKS[this.id]) {
333
+ let timeoutId;
334
+ const ourTake = () => {
335
+ LOCKS[this.id].time = Date.now() / 1e3;
336
+ clearTimeout(timeoutId);
337
+ this.holding = true;
338
+ resolve();
339
+ if (ttl) this.ttlTimeout = setTimeout(() => {
340
+ this.unlock();
341
+ }, ttl * 1e3);
342
+ };
343
+ if (timeout > 0) timeoutId = setTimeout(() => {
344
+ if (LOCKS[this.id]) require_string.arrayRemoveItem(LOCKS[this.id].queue, ourTake);
345
+ reject("Lock timed out " + this.id);
346
+ }, timeout * 1e3);
347
+ LOCKS[this.id].queue.push(ourTake);
348
+ } else {
349
+ LOCKS[this.id] = {
350
+ time: Date.now() / 1e3,
351
+ queue: []
352
+ };
353
+ this.holding = true;
354
+ resolve();
355
+ if (ttl) this.ttlTimeout = setTimeout(() => {
356
+ this.unlock();
357
+ }, ttl * 1e3);
358
+ }
359
+ }, [
360
+ "resolve",
361
+ "reject",
362
+ "",
363
+ "P\"2!\"2\"\"/#"
364
+ ]));
365
+ }
366
+ isLocked() {
367
+ return this.holding;
368
+ }
369
+ tryLock(ttl = 0) {
370
+ this.holding = false;
371
+ if (!LOCKS[this.id]) {
372
+ LOCKS[this.id] = {
373
+ time: Date.now() / 1e3,
374
+ queue: []
375
+ };
376
+ this.holding = true;
377
+ if (ttl) this.ttlTimeout = setTimeout(() => {
378
+ this.unlock();
379
+ }, ttl * 1e3);
380
+ }
381
+ return this.holding;
382
+ }
383
+ unlock() {
384
+ clearTimeout(this.ttlTimeout);
385
+ if (!this.holding) return;
386
+ this.holding = false;
387
+ if (LOCKS[this.id].queue.length) LOCKS[this.id].queue.shift()();
388
+ else delete LOCKS[this.id];
389
+ }
390
+ };
391
+ ProcessLock.__type = [
392
+ "holding",
393
+ function() {
394
+ return false;
395
+ },
396
+ "ttlTimeout",
397
+ "id",
398
+ "constructor",
399
+ "ttl",
400
+ () => 0,
401
+ "timeout",
402
+ () => 0,
403
+ "acquire",
404
+ "isLocked",
405
+ () => 0,
406
+ "tryLock",
407
+ "unlock",
408
+ "ProcessLock",
409
+ ")3!;>\"\"3#<P&2$:9\"0%P'2&>''2(>)\"0*P\"0+P'2&>,\"0-P\"0.5w/"
410
+ ];
411
+ var ProcessLocker = class {
412
+ /**
413
+ *
414
+ * @param id
415
+ * @param ttl optional defines when the times automatically unlocks.
416
+ * @param timeout if after `timeout` seconds the lock isn't acquired, it throws an error.
417
+ */
418
+ async acquireLock(id, ttl = 0, timeout = 0) {
419
+ const lock = new ProcessLock(id);
420
+ await lock.acquire(ttl, timeout);
421
+ return lock;
422
+ }
423
+ async tryLock(id, ttl = 0) {
424
+ const lock = new ProcessLock(id);
425
+ if (lock.tryLock(ttl)) return lock;
426
+ }
427
+ isLocked(id) {
428
+ return !!LOCKS[id];
429
+ }
430
+ };
431
+ ProcessLocker.__type = [
432
+ "id",
433
+ "ttl",
434
+ () => 0,
435
+ "timeout",
436
+ () => 0,
437
+ () => ProcessLock,
438
+ "acquireLock",
439
+ () => 0,
440
+ () => ProcessLock,
441
+ "tryLock",
442
+ "isLocked",
443
+ "ProcessLocker",
444
+ "P&2!'2\">#'2$>%P7&`0'P&2!'2\">(PP7)-J`0*P&2!)0+5w,"
445
+ ];
446
+ var Mutex = class {
447
+ unlock() {
448
+ if (this.resolver) this.resolver();
449
+ this.promise = void 0;
450
+ }
451
+ async lock() {
452
+ while (this.promise) await this.promise;
453
+ this.promise = new Promise(__assignType$4((resolver) => {
454
+ this.resolver = resolver;
455
+ }, [
456
+ "resolver",
457
+ "",
458
+ "P\"2!\"/\""
459
+ ]));
460
+ }
461
+ };
462
+ Mutex.__type = [
463
+ "promise",
464
+ () => Function,
465
+ "resolver",
466
+ "unlock",
467
+ "lock",
468
+ "Mutex",
469
+ "$`3!8<Pu\"3#8<P$0$P$`0%5w&"
470
+ ];
471
+
472
+ //#endregion
473
+ //#region ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/network.js
474
+ var ParsedHost = class {
475
+ constructor() {
476
+ this.host = "127.0.0.1";
477
+ this.port = 0;
478
+ this.unixSocket = "";
479
+ }
480
+ get isUnixSocket() {
481
+ return this.unixSocket !== "";
482
+ }
483
+ get isHostname() {
484
+ return this.unixSocket === "";
485
+ }
486
+ get hostWithIp() {
487
+ return this.host + (this.port ? (this.host && ":") + this.port : "");
488
+ }
489
+ toString() {
490
+ return this.isUnixSocket ? this.unixSocket : this.hostWithIp;
491
+ }
492
+ getWebSocketUrl(secure = false) {
493
+ const protocol = secure ? "wss" : "ws";
494
+ if (this.isUnixSocket) return `${protocol}+unix://${this.unixSocket}`;
495
+ return `${protocol}://${this.hostWithIp}`;
496
+ }
497
+ getHttpUrl(secure = false) {
498
+ if (this.isUnixSocket) return `file://${this.unixSocket}`;
499
+ return `${secure ? "https" : "http"}://${this.hostWithIp}`;
500
+ }
501
+ };
502
+ ParsedHost.__type = [
503
+ "host",
504
+ function() {
505
+ return "127.0.0.1";
506
+ },
507
+ "port",
508
+ function() {
509
+ return 0;
510
+ },
511
+ "unixSocket",
512
+ function() {
513
+ return "";
514
+ },
515
+ "toString",
516
+ "secure",
517
+ () => false,
518
+ "getWebSocketUrl",
519
+ () => false,
520
+ "getHttpUrl",
521
+ "ParsedHost",
522
+ "&3!>\"'3#>$&3%>&!!!P&0'P)2(>)\"0*P)2(>+\"0,5w-"
523
+ ];
524
+ function parseHost(hostWithIpOrUnixPath) {
525
+ const parsedHost = new ParsedHost();
526
+ if (hostWithIpOrUnixPath.includes("/") || hostWithIpOrUnixPath.includes("\\") || hostWithIpOrUnixPath.endsWith(".sock")) parsedHost.unixSocket = hostWithIpOrUnixPath;
527
+ else if (hostWithIpOrUnixPath.includes(":")) {
528
+ const [host, port] = hostWithIpOrUnixPath.split(":");
529
+ if (host) parsedHost.host = host;
530
+ if (port) parsedHost.port = parseInt(port, 10);
531
+ } else if (hostWithIpOrUnixPath) parsedHost.host = hostWithIpOrUnixPath;
532
+ return parsedHost;
533
+ }
534
+ parseHost.__type = [
535
+ "hostWithIpOrUnixPath",
536
+ () => ParsedHost,
537
+ "parseHost",
538
+ "P&2!P7\"/#"
539
+ ];
540
+
541
+ //#endregion
542
+ //#region ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/emitter.js
543
+ const __ΩAsyncSubscriber = [
544
+ "T",
545
+ "event",
546
+ "",
547
+ "AsyncSubscriber",
548
+ "b!Pe\"!2\"P$`$J/#w$y"
549
+ ];
550
+ const __ΩSubscriber = [
551
+ "T",
552
+ "event",
553
+ "",
554
+ "Subscriber",
555
+ "b!Pe\"!2\"P$`$J/#w$y"
556
+ ];
557
+ const __ΩAsyncEventSubscription = [
558
+ "",
559
+ "unsubscribe",
560
+ "AsyncEventSubscription",
561
+ "PP$/!4\"Mw#y"
562
+ ];
563
+ const __ΩEventSubscription = [
564
+ "",
565
+ "unsubscribe",
566
+ "EventSubscription",
567
+ "PP$/!4\"Mw#y"
568
+ ];
569
+ let asyncId = 0;
570
+ var EmitterEvent = class {
571
+ constructor() {
572
+ this.id = asyncId++;
573
+ this.stopped = false;
574
+ this.propagationStopped = false;
575
+ }
576
+ /**
577
+ * Stop propagating the event to subsequent event listeners.
578
+ */
579
+ stopPropagation() {
580
+ this.propagationStopped = true;
581
+ }
582
+ /**
583
+ * Signal the emitter that you want to abort.
584
+ * Subsequent event listeners will still be called.
585
+ */
586
+ stop() {
587
+ this.stopped = true;
588
+ }
589
+ };
590
+ EmitterEvent.__type = [
591
+ "id",
592
+ function() {
593
+ return asyncId++;
594
+ },
595
+ "stopped",
596
+ function() {
597
+ return false;
598
+ },
599
+ "propagationStopped",
600
+ function() {
601
+ return false;
602
+ },
603
+ "stopPropagation",
604
+ "stop",
605
+ "EmitterEvent",
606
+ "!3!9>\")3#>$)3%>&P\"0'P\"0(5w)"
607
+ ];
608
+ var EventEmitter = class {
609
+ constructor(parent) {
610
+ this.parent = parent;
611
+ this.subscribers = [];
612
+ }
613
+ subscribe(callback) {
614
+ this.subscribers.push(callback);
615
+ return { unsubscribe: () => {
616
+ require_string.arrayRemoveItem(this.subscribers, callback);
617
+ } };
618
+ }
619
+ emit(event) {
620
+ if (this.parent) this.parent.emit(event);
621
+ if (event.propagationStopped) return;
622
+ for (const subscriber of this.subscribers) {
623
+ subscriber(event);
624
+ if (event.propagationStopped) return;
625
+ }
626
+ }
627
+ hasSubscriptions() {
628
+ return this.subscribers.length > 0;
629
+ }
630
+ };
631
+ EventEmitter.__type = [
632
+ "T",
633
+ () => __ΩSubscriber,
634
+ "subscribers",
635
+ function() {
636
+ return [];
637
+ },
638
+ () => EventEmitter,
639
+ "parent",
640
+ "constructor",
641
+ () => __ΩSubscriber,
642
+ "callback",
643
+ () => __ΩEventSubscription,
644
+ "subscribe",
645
+ "event",
646
+ "emit",
647
+ "hasSubscriptions",
648
+ "EventEmitter",
649
+ "b!e!!o\"\"F3#<>$PP\"7%2&8<\"0'Pe\"!o(\"2)n*0+Pe\"!2,$0-P)0.5w/"
650
+ ];
651
+ var AsyncEventEmitter = class {
652
+ constructor(parent) {
653
+ this.parent = parent;
654
+ this.subscribers = [];
655
+ }
656
+ subscribe(callback) {
657
+ this.subscribers.push(callback);
658
+ return { unsubscribe: () => {
659
+ require_string.arrayRemoveItem(this.subscribers, callback);
660
+ } };
661
+ }
662
+ async emit(event) {
663
+ if (this.parent) await this.parent.emit(event);
664
+ if (event.propagationStopped) return;
665
+ for (const subscriber of this.subscribers) {
666
+ await subscriber(event);
667
+ if (event.propagationStopped) return;
668
+ }
669
+ }
670
+ hasSubscriptions() {
671
+ return this.subscribers.length > 0;
672
+ }
673
+ };
674
+ AsyncEventEmitter.__type = [
675
+ "T",
676
+ () => __ΩAsyncSubscriber,
677
+ "subscribers",
678
+ function() {
679
+ return [];
680
+ },
681
+ () => AsyncEventEmitter,
682
+ "parent",
683
+ "constructor",
684
+ () => __ΩAsyncSubscriber,
685
+ "callback",
686
+ () => __ΩAsyncEventSubscription,
687
+ "subscribe",
688
+ "event",
689
+ "emit",
690
+ "hasSubscriptions",
691
+ "AsyncEventEmitter",
692
+ "b!e!!o\"\"F3#<>$PP\"7%2&8<\"0'Pe\"!o(\"2)n*0+Pe\"!2,$`0-P)0.5w/"
693
+ ];
694
+
695
+ //#endregion
696
+ //#region ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/reactive.js
697
+ function __assignType$3(fn, args) {
698
+ fn.__type = args;
699
+ return fn;
700
+ }
701
+ const nextTick = typeof requestAnimationFrame !== "undefined" ? __assignType$3((cb) => requestAnimationFrame(cb), [
702
+ "",
703
+ "cb",
704
+ "PP$/!2\"\"/!"
705
+ ]) : __assignType$3((cb) => setTimeout(cb), [
706
+ "",
707
+ "cb",
708
+ "PP$/!2\"\"/!"
709
+ ]);
710
+ const clearTick = typeof requestAnimationFrame !== "undefined" ? __assignType$3((id) => cancelAnimationFrame(id), [
711
+ "id",
712
+ "",
713
+ "P\"2!\"/\""
714
+ ]) : __assignType$3((id) => clearTick(id), [
715
+ "id",
716
+ "",
717
+ "P\"2!\"/\""
718
+ ]);
719
+ /**
720
+ * Wraps a function and calls it only `cps` times per frame.
721
+ *
722
+ * This is handy to throttle all kind of rapid calls, like mouse move events or other kind of events.
723
+ *
724
+ * @example
725
+ * ```typescript
726
+ * function expensiveFunction() {
727
+ * //...
728
+ * }
729
+ *
730
+ * const throttled = throttleTime(expensiveFunction, 5); //5 calls per second max
731
+ *
732
+ * throttled();
733
+ * throttled();
734
+ * throttled();
735
+ * //throttled will here only be called once
736
+ * ```
737
+ */
738
+ function throttleTime(call, cps = 5) {
739
+ let last = Date.now();
740
+ let dirty = false;
741
+ let lastArgs = [];
742
+ let execution = false;
743
+ function tick() {
744
+ if (!execution && Date.now() - last > 1e3 / cps) {
745
+ execution = true;
746
+ call(...lastArgs);
747
+ dirty = false;
748
+ last = Date.now();
749
+ execution = false;
750
+ }
751
+ if (dirty) nextTick(tick);
752
+ }
753
+ tick.__type = ["tick", "P\"/!"];
754
+ return __assignType$3((...args) => {
755
+ dirty = true;
756
+ lastArgs = args;
757
+ tick();
758
+ }, [
759
+ "args",
760
+ "",
761
+ "P\"@2!\"/\""
762
+ ]);
763
+ }
764
+ throttleTime.__type = [
765
+ () => Function,
766
+ "call",
767
+ "cps",
768
+ "args",
769
+ "",
770
+ "throttleTime",
771
+ "PPu!2\"\"2#P\"@2$$/%/&"
772
+ ];
773
+ /**
774
+ * This functions returns a stack that is filled as long as the gate is not activated.
775
+ * Once activated all recorded calls go to given callback and subsequent calls go directly to given callback.
776
+ */
777
+ function bufferedGate(callback) {
778
+ const q = [];
779
+ let activated = false;
780
+ const throttled = throttleTime(async () => {
781
+ if (q.length === 0) return;
782
+ for (const t of q) {
783
+ const result = callback(t);
784
+ if (result instanceof Promise) await result;
785
+ }
786
+ q.splice(0, q.length);
787
+ });
788
+ return {
789
+ activate: () => {
790
+ activated = true;
791
+ throttled();
792
+ },
793
+ call: __assignType$3((i) => {
794
+ q.push(i);
795
+ if (activated) throttled();
796
+ }, [
797
+ () => callback,
798
+ "arg",
799
+ "",
800
+ "i",
801
+ "PPdi!Ph\"!2\"\"/#qe!!!j2$\"/#"
802
+ ])
803
+ };
804
+ }
805
+ bufferedGate.__type = [
806
+ "arg",
807
+ "",
808
+ "callback",
809
+ "bufferedGate",
810
+ "PP\"2!\"/\"2#\"/$"
811
+ ];
812
+
813
+ //#endregion
814
+ //#region ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/reflection.js
815
+ const COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;
816
+ const DEFAULT_PARAMS = /=[^,]+/gm;
817
+ const FAT_ARROWS = /=>.*$/gm;
818
+ function extractParameters(fn) {
819
+ fn = typeof fn === "string" ? fn : fn.toString();
820
+ fn = removeStrings(fn);
821
+ if (fn.startsWith("class")) {
822
+ const start = fn.match(/* @__PURE__ */ new RegExp("[ \n{]constructor\\("));
823
+ if (!start) return [];
824
+ fn = fn.substr((start.index || 0) + start[0].length);
825
+ fn = fn.replace(COMMENTS, "").replace(FAT_ARROWS, "").replace(DEFAULT_PARAMS, "");
826
+ return fn.slice(0, fn.indexOf("{")).match(/([^\(\){\s,]+)/g) || [];
827
+ } else {
828
+ fn = fn.replace(COMMENTS, "").replace(FAT_ARROWS, "").replace(DEFAULT_PARAMS, "");
829
+ return fn.slice(fn.indexOf("(") + 1, fn.indexOf("{")).match(/([^\(\)\{\}\s,]+)/g) || [];
830
+ }
831
+ }
832
+ extractParameters.__type = [
833
+ () => Function,
834
+ () => require_string.__ΩClassType,
835
+ "fn",
836
+ "extractParameters",
837
+ "PP&Pu!n\"J2#&F/$"
838
+ ];
839
+ function extractMethodBody(classCode, name) {
840
+ let methodCode = "";
841
+ classCode = removeStrings(classCode);
842
+ const start = classCode.match(new RegExp("[ \n]" + name + "\\("));
843
+ if (!start) return "";
844
+ classCode = classCode.substr((start.index || 0) + start[0].length);
845
+ let blockDepth = 1;
846
+ classCode = classCode.substr(classCode.indexOf("{") + 1);
847
+ for (let i = 0; i < classCode.length; i++) {
848
+ const char = classCode[i];
849
+ if (char === "{") blockDepth++;
850
+ if (char === "}") blockDepth--;
851
+ if (blockDepth === 0) return methodCode;
852
+ if (char === "\n" || char === " " || char === " ") continue;
853
+ methodCode += char;
854
+ }
855
+ return methodCode;
856
+ }
857
+ extractMethodBody.__type = [
858
+ "classCode",
859
+ "name",
860
+ "extractMethodBody",
861
+ "P&2!&2\"&/#"
862
+ ];
863
+ function removeStrings(code) {
864
+ let result = "";
865
+ let inString = false;
866
+ for (let i = 0; i < code.length; i++) {
867
+ const char = code[i];
868
+ if (inString && char === "\\") {
869
+ i++;
870
+ continue;
871
+ }
872
+ if (char === "\"") {
873
+ if (inString === "\"") {
874
+ inString = false;
875
+ continue;
876
+ }
877
+ if (!inString) {
878
+ inString = "\"";
879
+ continue;
880
+ }
881
+ }
882
+ if (char === "'") {
883
+ if (inString === "'") {
884
+ inString = false;
885
+ continue;
886
+ }
887
+ if (!inString) {
888
+ inString = "'";
889
+ continue;
890
+ }
891
+ }
892
+ if (!inString) result += char;
893
+ }
894
+ return result;
895
+ }
896
+ removeStrings.__type = [
897
+ "code",
898
+ "removeStrings",
899
+ "P&2!\"/\""
900
+ ];
901
+
902
+ //#endregion
903
+ //#region ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/url.js
904
+ function __assignType$2(fn, args) {
905
+ fn.__type = args;
906
+ return fn;
907
+ }
908
+ function removeSlash(v) {
909
+ return v.replace(/(^\/+)|(\/+$)/g, "");
910
+ }
911
+ removeSlash.__type = [
912
+ "v",
913
+ "removeSlash",
914
+ "P&2!&/\""
915
+ ];
916
+ function urlJoin(...path) {
917
+ const leadingSlash = path[0] && path[0] !== "/" && path[0][0] === "/";
918
+ const last = path[path.length - 1];
919
+ const trailingSlash = last && last !== "/" && last[last.length - 1] === "/";
920
+ return (leadingSlash ? "/" : "") + path.filter(__assignType$2((v) => !!v, [
921
+ "v",
922
+ "",
923
+ "P\"2!\"/\""
924
+ ])).map(__assignType$2((v) => v === "/" ? "" : removeSlash(v.trim()), [
925
+ "v",
926
+ "",
927
+ "P\"2!\"/\""
928
+ ])).join("/") + (trailingSlash ? "/" : "");
929
+ }
930
+ urlJoin.__type = [
931
+ "path",
932
+ "urlJoin",
933
+ "P&@2!&/\""
934
+ ];
935
+
936
+ //#endregion
937
+ //#region ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/types.js
938
+ const __ΩTypeAnnotation = [
939
+ "T",
940
+ "Options",
941
+ "TypeAnnotation",
942
+ "b!!c\"#w#y"
943
+ ];
944
+ const __ΩInjectMeta = [
945
+ "T",
946
+ () => __ΩTypeAnnotation,
947
+ "inject",
948
+ "InjectMeta",
949
+ "!c!.#e!!o\"#w$y"
950
+ ];
951
+ const __ΩInject = [
952
+ "Type",
953
+ "Token",
954
+ () => __ΩInjectMeta,
955
+ "Inject",
956
+ "b!!c\"Pe\"!e\"\"o#\"Kw$y"
957
+ ];
958
+
959
+ //#endregion
960
+ //#region ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/buffer.js
961
+ function __assignType$1(fn, args) {
962
+ fn.__type = args;
963
+ return fn;
964
+ }
965
+ /**
966
+ * Create a buffer of the given size (uninitialized, so it may contain random data).
967
+ *
968
+ * Note that the result is either Uin8Array or Buffer, depending on the environment.
969
+ * Buffer from NodeJS works slightly different than Uint8Array.
970
+ */
971
+ const createBuffer = "undefined" !== typeof Buffer && "function" === typeof Buffer.allocUnsafe ? Buffer.allocUnsafe : __assignType$1((size) => new Uint8Array(size), [
972
+ "size",
973
+ "",
974
+ "P\"2!\"/\""
975
+ ]);
976
+ /**
977
+ * Concat multiple buffers into one.
978
+ */
979
+ function bufferConcat(chunks, length) {
980
+ if (void 0 === length) {
981
+ length = 0;
982
+ for (const chunk of chunks) length += chunk.length;
983
+ }
984
+ const result = createBuffer(length);
985
+ let offset = 0;
986
+ for (const chunk of chunks) {
987
+ result.set(chunk, offset);
988
+ offset += chunk.length;
989
+ }
990
+ return result;
991
+ }
992
+ bufferConcat.__type = [
993
+ "chunks",
994
+ "length",
995
+ "bufferConcat",
996
+ "PWF2!'2\"8W/#"
997
+ ];
998
+ const textEncoder = new TextDecoder();
999
+ const uint8ArrayToUtf8 = "undefined" !== typeof Buffer ? __assignType$1((buffer) => Buffer.from(buffer).toString("utf8"), [
1000
+ "buffer",
1001
+ "",
1002
+ "PW2!\"/\""
1003
+ ]) : __assignType$1((buffer) => textEncoder.decode(buffer), [
1004
+ "buffer",
1005
+ "",
1006
+ "PW2!\"/\""
1007
+ ]);
1008
+ /**
1009
+ * Convert a buffer to a string.
1010
+ */
1011
+ function bufferToString(buffer) {
1012
+ if ("string" === typeof buffer) return buffer;
1013
+ return uint8ArrayToUtf8(buffer);
1014
+ }
1015
+ bufferToString.__type = [
1016
+ "buffer",
1017
+ "bufferToString",
1018
+ "PP&WJ2!&/\""
1019
+ ];
1020
+ function nativeBase64ToUint8Array(base64) {
1021
+ const raw = atob(base64);
1022
+ const rawLength = raw.length;
1023
+ const array = createBuffer(rawLength);
1024
+ for (let i = 0; i < rawLength; i++) array[i] = raw.charCodeAt(i);
1025
+ return array;
1026
+ }
1027
+ nativeBase64ToUint8Array.__type = [
1028
+ "base64",
1029
+ "nativeBase64ToUint8Array",
1030
+ "P&2!W/\""
1031
+ ];
1032
+ /**
1033
+ * Converts a base64 string to a Uint8Array.
1034
+ */
1035
+ const base64ToUint8Array = "undefined" === typeof Buffer ? nativeBase64ToUint8Array : __assignType$1((base64) => Buffer.from(base64, "base64"), [
1036
+ "base64",
1037
+ "",
1038
+ "P&2!\"/\""
1039
+ ]);
1040
+
1041
+ //#endregion
1042
+ //#region ../../node_modules/.pnpm/@deepkit+core@1.0.5_patch_hash=8c3beca4372c6a8941162780ddd0f977ef3d461c2018f0809f86f416260ba440/node_modules/@deepkit/core/dist/esm/src/path.js
1043
+ function __assignType(fn, args) {
1044
+ fn.__type = args;
1045
+ return fn;
1046
+ }
1047
+ /**
1048
+ * Normalizes the given path.
1049
+ * Removes duplicate slashes, removes trailing slashes, adds a leading slash.
1050
+ */
1051
+ function pathNormalize(path) {
1052
+ path = path[0] !== "/" ? "/" + path : path;
1053
+ path = path.length > 1 && path[path.length - 1] === "/" ? path.slice(0, -1) : path;
1054
+ return path.replace(/\/+/g, "/");
1055
+ }
1056
+ pathNormalize.__type = [
1057
+ "path",
1058
+ "pathNormalize",
1059
+ "P&2!&/\""
1060
+ ];
1061
+ /**
1062
+ * Returns the directory (dirname) of the given path.
1063
+ */
1064
+ function pathDirectory(path) {
1065
+ if (path === "/") return "/";
1066
+ const lastSlash = path.lastIndexOf("/");
1067
+ return lastSlash <= 0 ? "/" : path.slice(0, lastSlash);
1068
+ }
1069
+ pathDirectory.__type = [
1070
+ "path",
1071
+ "pathDirectory",
1072
+ "P&2!&/\""
1073
+ ];
1074
+ /**
1075
+ * Returns the basename of the given path.
1076
+ */
1077
+ function pathBasename(path) {
1078
+ const lastSlash = path.lastIndexOf("/");
1079
+ return lastSlash === -1 ? path : path.slice(lastSlash + 1);
1080
+ }
1081
+ pathBasename.__type = [
1082
+ "path",
1083
+ "pathBasename",
1084
+ "P&2!&/\""
1085
+ ];
1086
+ /**
1087
+ * Returns the extension of the given path.
1088
+ */
1089
+ function pathExtension(path) {
1090
+ const basename = pathBasename(path);
1091
+ const lastDot = basename.lastIndexOf(".");
1092
+ return lastDot === -1 ? "" : basename.slice(lastDot + 1);
1093
+ }
1094
+ pathExtension.__type = [
1095
+ "path",
1096
+ "pathExtension",
1097
+ "P&2!&/\""
1098
+ ];
1099
+ function pathJoin(...paths) {
1100
+ return "/" + paths.map(__assignType((v) => pathNormalize(v).slice(1), [
1101
+ "v",
1102
+ "",
1103
+ "P\"2!\"/\""
1104
+ ])).filter(__assignType((v) => !!v, [
1105
+ "v",
1106
+ "",
1107
+ "P\"2!\"/\""
1108
+ ])).join("/");
1109
+ }
1110
+ pathJoin.__type = [
1111
+ "paths",
1112
+ "pathJoin",
1113
+ "P&@2!&/\""
1114
+ ];
1115
+
1116
+ //#endregion
1117
+ exports.AsyncEventEmitter = AsyncEventEmitter;
1118
+ exports.AsyncFunction = require_string.AsyncFunction;
1119
+ exports.CompilerContext = require_string.CompilerContext;
1120
+ exports.CustomError = require_string.CustomError;
1121
+ exports.EmitterEvent = EmitterEvent;
1122
+ exports.EventEmitter = EventEmitter;
1123
+ exports.Mutex = Mutex;
1124
+ exports.ParsedHost = ParsedHost;
1125
+ exports.ProcessLock = ProcessLock;
1126
+ exports.ProcessLocker = ProcessLocker;
1127
+ exports.Timer = Timer;
1128
+ exports.__ΩAbstractClassType = require_string.__ΩAbstractClassType;
1129
+ exports.__ΩAsyncEventSubscription = __ΩAsyncEventSubscription;
1130
+ exports.__ΩClassType = require_string.__ΩClassType;
1131
+ exports.__ΩCustomError = require_string.__ΩCustomError;
1132
+ exports.__ΩEventSubscription = __ΩEventSubscription;
1133
+ exports.__ΩExtractClassType = require_string.__ΩExtractClassType;
1134
+ exports.__ΩInject = __ΩInject;
1135
+ exports.__ΩInjectMeta = __ΩInjectMeta;
1136
+ exports.__ΩTypeAnnotation = __ΩTypeAnnotation;
1137
+ exports.appendObject = require_string.appendObject;
1138
+ exports.applyDefaults = require_string.applyDefaults;
1139
+ exports.arrayClear = require_string.arrayClear;
1140
+ exports.arrayHasItem = require_string.arrayHasItem;
1141
+ exports.arrayMoveItem = require_string.arrayMoveItem;
1142
+ exports.arrayRemoveItem = require_string.arrayRemoveItem;
1143
+ exports.assertDefined = require_string.assertDefined;
1144
+ exports.assertInstanceOf = require_string.assertInstanceOf;
1145
+ exports.asyncOperation = require_string.asyncOperation;
1146
+ exports.average = require_string.average;
1147
+ exports.base64ToUint8Array = base64ToUint8Array;
1148
+ exports.bufferConcat = bufferConcat;
1149
+ exports.bufferToString = bufferToString;
1150
+ exports.bufferedGate = bufferedGate;
1151
+ exports.capitalize = require_string.capitalize;
1152
+ exports.changeClass = require_string.changeClass;
1153
+ exports.clearTick = clearTick;
1154
+ exports.collectForMicrotask = require_string.collectForMicrotask;
1155
+ exports.copy = require_string.copy;
1156
+ exports.createBuffer = createBuffer;
1157
+ exports.createDynamicClass = require_string.createDynamicClass;
1158
+ exports.createStack = require_string.createStack;
1159
+ exports.deletePathValue = require_string.deletePathValue;
1160
+ exports.each = require_string.each;
1161
+ exports.eachKey = require_string.eachKey;
1162
+ exports.eachPair = require_string.eachPair;
1163
+ exports.empty = require_string.empty;
1164
+ exports.ensureError = require_string.ensureError;
1165
+ exports.escapeRegExp = require_string.escapeRegExp;
1166
+ exports.extractMethodBody = extractMethodBody;
1167
+ exports.extractParameters = extractParameters;
1168
+ exports.first = require_string.first;
1169
+ exports.firstKey = require_string.firstKey;
1170
+ exports.fixAsyncOperation = require_string.fixAsyncOperation;
1171
+ exports.formatError = require_string.formatError;
1172
+ exports.forwardTypeArguments = require_string.forwardTypeArguments;
1173
+ exports.getClassName = require_string.getClassName;
1174
+ exports.getClassPropertyName = require_string.getClassPropertyName;
1175
+ exports.getClassTypeFromInstance = require_string.getClassTypeFromInstance;
1176
+ exports.getCurrentFileName = require_string.getCurrentFileName;
1177
+ exports.getEnumKeyLabelMap = getEnumKeyLabelMap;
1178
+ exports.getEnumLabel = getEnumLabel;
1179
+ exports.getEnumLabels = getEnumLabels;
1180
+ exports.getEnumValues = getEnumValues;
1181
+ exports.getInheritanceChain = require_string.getInheritanceChain;
1182
+ exports.getObjectKeysSize = require_string.getObjectKeysSize;
1183
+ exports.getParentClass = require_string.getParentClass;
1184
+ exports.getPathValue = require_string.getPathValue;
1185
+ exports.getValidEnumValue = getValidEnumValue;
1186
+ exports.hasProperty = require_string.hasProperty;
1187
+ exports.humanBytes = require_string.humanBytes;
1188
+ exports.identifyType = require_string.identifyType;
1189
+ exports.inDebugMode = require_string.inDebugMode;
1190
+ exports.indent = require_string.indent;
1191
+ exports.indexOf = require_string.indexOf;
1192
+ exports.isArray = require_string.isArray;
1193
+ exports.isAsyncFunction = require_string.isAsyncFunction;
1194
+ exports.isClass = require_string.isClass;
1195
+ exports.isClassInstance = require_string.isClassInstance;
1196
+ exports.isConstructable = require_string.isConstructable;
1197
+ exports.isFunction = require_string.isFunction;
1198
+ exports.isGlobalClass = require_string.isGlobalClass;
1199
+ exports.isInteger = require_string.isInteger;
1200
+ exports.isIterable = require_string.isIterable;
1201
+ exports.isNull = require_string.isNull;
1202
+ exports.isNumber = require_string.isNumber;
1203
+ exports.isNumeric = require_string.isNumeric;
1204
+ exports.isObject = require_string.isObject;
1205
+ exports.isObjectLiteral = require_string.isObjectLiteral;
1206
+ exports.isPlainObject = require_string.isPlainObject;
1207
+ exports.isPromise = require_string.isPromise;
1208
+ exports.isPrototypeOfBase = require_string.isPrototypeOfBase;
1209
+ exports.isSet = require_string.isSet;
1210
+ exports.isString = require_string.isString;
1211
+ exports.isUndefined = require_string.isUndefined;
1212
+ exports.isValidEnumValue = isValidEnumValue;
1213
+ exports.iterableSize = require_string.iterableSize;
1214
+ exports.last = require_string.last;
1215
+ exports.lastKey = require_string.lastKey;
1216
+ exports.log = log;
1217
+ exports.mergePromiseStack = require_string.mergePromiseStack;
1218
+ exports.mergeStack = require_string.mergeStack;
1219
+ exports.nativeBase64ToUint8Array = nativeBase64ToUint8Array;
1220
+ exports.nextTick = nextTick;
1221
+ exports.parseHost = parseHost;
1222
+ exports.pathBasename = pathBasename;
1223
+ exports.pathDirectory = pathDirectory;
1224
+ exports.pathExtension = pathExtension;
1225
+ exports.pathJoin = pathJoin;
1226
+ exports.pathNormalize = pathNormalize;
1227
+ exports.prependObjectKeys = require_string.prependObjectKeys;
1228
+ exports.prettyPrintObject = require_string.prettyPrintObject;
1229
+ exports.range = require_string.range;
1230
+ exports.rangeArray = require_string.rangeArray;
1231
+ exports.removeStrings = removeStrings;
1232
+ exports.setPathValue = require_string.setPathValue;
1233
+ exports.singleStack = singleStack;
1234
+ exports.size = require_string.size;
1235
+ exports.sleep = require_string.sleep;
1236
+ exports.stack = stack;
1237
+ exports.stringifyValueWithType = require_string.stringifyValueWithType;
1238
+ exports.throttleTime = throttleTime;
1239
+ exports.time = require_string.time;
1240
+ exports.toFastProperties = require_string.toFastProperties;
1241
+ exports.uint8ArrayToUtf8 = uint8ArrayToUtf8;
1242
+ exports.urlJoin = urlJoin;
1243
+ exports.zip = require_string.zip;