@powerlines/deepkit 0.4.89 → 0.4.91

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 (117) hide show
  1. package/dist/capnp.cjs +187 -0
  2. package/dist/capnp.d.cts +169 -0
  3. package/dist/capnp.d.ts +169 -0
  4. package/dist/capnp.js +2 -0
  5. package/dist/chunk-2V4ET57D.js +6954 -0
  6. package/dist/chunk-4WJJKR53.js +3731 -0
  7. package/dist/chunk-55HOZO7D.cjs +33 -0
  8. package/dist/chunk-6ETLMANX.js +3472 -0
  9. package/dist/chunk-6OXPIOZY.cjs +43 -0
  10. package/dist/chunk-7WAH4JD3.js +115 -0
  11. package/dist/chunk-B4PTD5KQ.js +4 -0
  12. package/dist/chunk-BTXPY3B4.js +27 -0
  13. package/dist/chunk-DGXATHAN.js +5185 -0
  14. package/dist/chunk-FEBG7WWO.js +11 -0
  15. package/dist/chunk-FX2P4HL7.cjs +14 -0
  16. package/dist/chunk-ITQKPDCW.cjs +3859 -0
  17. package/dist/chunk-JHEBLHYK.cjs +13 -0
  18. package/dist/chunk-LBHO5BRF.js +2251 -0
  19. package/dist/chunk-MERFAWZE.js +12 -0
  20. package/dist/chunk-OYRIJX67.cjs +3487 -0
  21. package/dist/chunk-PANPZ6S6.cjs +6 -0
  22. package/dist/chunk-QPSZUUB6.cjs +2259 -0
  23. package/dist/chunk-QQ7GKXIS.js +43 -0
  24. package/dist/chunk-SA3DCC4M.cjs +6968 -0
  25. package/dist/chunk-SKYW5GV2.cjs +5251 -0
  26. package/dist/chunk-U4JSDAXK.js +36 -0
  27. package/dist/chunk-WVKPC33H.cjs +49 -0
  28. package/dist/{vendor/chunk-KC74I2LN.cjs → chunk-YKFG2BZQ.cjs} +3 -5
  29. package/dist/index.cjs +242 -0
  30. package/dist/index.d.cts +15 -0
  31. package/dist/index.d.ts +15 -0
  32. package/dist/index.js +11 -0
  33. package/dist/reflect-type.cjs +11 -0
  34. package/dist/reflect-type.d.cts +16 -0
  35. package/dist/reflect-type.d.ts +16 -0
  36. package/dist/reflect-type.js +2 -0
  37. package/dist/reflection-DTM1oT21.d.cts +1559 -0
  38. package/dist/reflection-DTM1oT21.d.ts +1559 -0
  39. package/dist/resolve-reflections.cjs +11 -0
  40. package/dist/resolve-reflections.d.cts +11 -0
  41. package/dist/resolve-reflections.d.ts +11 -0
  42. package/dist/resolve-reflections.js +2 -0
  43. package/dist/transformer.cjs +15 -0
  44. package/dist/transformer.d.cts +22 -0
  45. package/dist/transformer.d.ts +22 -0
  46. package/dist/transformer.js +2 -0
  47. package/dist/transpile.cjs +12 -0
  48. package/dist/transpile.d.cts +14 -0
  49. package/dist/transpile.d.ts +14 -0
  50. package/dist/transpile.js +3 -0
  51. package/dist/types.cjs +5 -0
  52. package/dist/types.d.cts +16 -0
  53. package/dist/types.d.ts +16 -0
  54. package/dist/types.js +2 -0
  55. package/dist/utilities.cjs +35 -0
  56. package/dist/utilities.d.cts +49 -0
  57. package/dist/utilities.d.ts +49 -0
  58. package/dist/utilities.js +2 -0
  59. package/dist/vendor/{chunk-6PEHRAEP.js → chunk-5BKT4CS5.js} +0 -2
  60. package/dist/vendor/{chunk-W6QNYN5U.cjs → chunk-BDXVTHBY.cjs} +176 -178
  61. package/dist/vendor/{chunk-AXYJRGEC.js → chunk-BLN7QVCP.js} +1 -3
  62. package/dist/vendor/{chunk-ORGCWC7F.js → chunk-BR2FK5K7.js} +0 -2
  63. package/dist/vendor/chunk-EQXMWOHO.cjs +115 -0
  64. package/dist/vendor/{chunk-6ARUMLA5.js → chunk-MCNMRQDT.js} +0 -2
  65. package/dist/vendor/{chunk-3QJYIKMR.cjs → chunk-MO4O4UYI.cjs} +0 -2
  66. package/dist/vendor/{chunk-M6ZTTT3A.js → chunk-RH4YMONA.js} +1 -3
  67. package/dist/vendor/{chunk-VUVWVXGY.cjs → chunk-RZKB5IQZ.cjs} +0 -2
  68. package/dist/vendor/{chunk-WZXSRPYO.cjs → chunk-WOXMCJJU.cjs} +505 -507
  69. package/dist/vendor/compiler.cjs +12 -14
  70. package/dist/vendor/compiler.js +2 -4
  71. package/dist/vendor/config.cjs +9 -11
  72. package/dist/vendor/config.js +2 -4
  73. package/dist/vendor/core.cjs +130 -132
  74. package/dist/vendor/core.d.cts +0 -2
  75. package/dist/vendor/core.d.ts +0 -2
  76. package/dist/vendor/core.js +5 -4
  77. package/dist/vendor/index.cjs +17 -19
  78. package/dist/vendor/index.js +3 -5
  79. package/dist/vendor/type-compiler/compiler.cjs +46 -0
  80. package/dist/vendor/type-compiler/compiler.d.cts +1 -0
  81. package/dist/vendor/type-compiler/compiler.d.ts +1 -0
  82. package/dist/vendor/type-compiler/compiler.js +7 -0
  83. package/dist/vendor/type-compiler/config.cjs +36 -0
  84. package/dist/vendor/type-compiler/config.d.cts +6 -0
  85. package/dist/vendor/type-compiler/config.d.ts +6 -0
  86. package/dist/vendor/type-compiler/config.js +5 -0
  87. package/dist/vendor/type-compiler/index.cjs +108 -0
  88. package/dist/vendor/type-compiler/index.d.cts +1 -0
  89. package/dist/vendor/type-compiler/index.d.ts +1 -0
  90. package/dist/vendor/type-compiler/index.js +67 -0
  91. package/dist/vendor/type-spec.cjs +5 -7
  92. package/dist/vendor/type-spec.js +5 -4
  93. package/dist/vendor/type.cjs +691 -2271
  94. package/dist/vendor/type.js +92 -1609
  95. package/package.json +4 -4
  96. package/dist/vendor/chunk-3QJYIKMR.cjs.map +0 -1
  97. package/dist/vendor/chunk-6ARUMLA5.js.map +0 -1
  98. package/dist/vendor/chunk-6PEHRAEP.js.map +0 -1
  99. package/dist/vendor/chunk-AXYJRGEC.js.map +0 -1
  100. package/dist/vendor/chunk-KC74I2LN.cjs.map +0 -1
  101. package/dist/vendor/chunk-M6ZTTT3A.js.map +0 -1
  102. package/dist/vendor/chunk-ORGCWC7F.js.map +0 -1
  103. package/dist/vendor/chunk-VUVWVXGY.cjs.map +0 -1
  104. package/dist/vendor/chunk-W6QNYN5U.cjs.map +0 -1
  105. package/dist/vendor/chunk-WZXSRPYO.cjs.map +0 -1
  106. package/dist/vendor/compiler.cjs.map +0 -1
  107. package/dist/vendor/compiler.js.map +0 -1
  108. package/dist/vendor/config.cjs.map +0 -1
  109. package/dist/vendor/config.js.map +0 -1
  110. package/dist/vendor/core.cjs.map +0 -1
  111. package/dist/vendor/core.js.map +0 -1
  112. package/dist/vendor/index.cjs.map +0 -1
  113. package/dist/vendor/index.js.map +0 -1
  114. package/dist/vendor/type-spec.cjs.map +0 -1
  115. package/dist/vendor/type-spec.js.map +0 -1
  116. package/dist/vendor/type.cjs.map +0 -1
  117. package/dist/vendor/type.js.map +0 -1
@@ -1,1572 +1,21 @@
1
- import { empty, __ΩAbstractClassType as ___AbstractClassType, __ΩClassType as ___ClassType, isFunction, stringifyValueWithType, isClass, isArray, getClassName, isPrototypeOfBase, arrayRemoveItem, indent, getParentClass, CustomError, CompilerContext, __ΩExtractClassType as ___ExtractClassType, isGlobalClass, getInheritanceChain, isObject, toFastProperties, isNumeric, hasProperty, isObjectLiteral, isIterable, iterableSize, getClassTypeFromInstance, __ΩTypeAnnotation as ___TypeAnnotation, getObjectKeysSize, isInteger } from './chunk-AXYJRGEC.js';
2
- import { ReflectionOp, TypeNumberBrand } from './chunk-ORGCWC7F.js';
3
- export { TypeNumberBrand } from './chunk-ORGCWC7F.js';
4
- import { __commonJS, __name, __toESM } from './chunk-6PEHRAEP.js';
1
+ import { empty, __ΩAbstractClassType as ___AbstractClassType, __ΩClassType as ___ClassType, isFunction, stringifyValueWithType, isClass, isArray, getClassName, isPrototypeOfBase, arrayRemoveItem, indent, getParentClass, CustomError, CompilerContext, __ΩExtractClassType as ___ExtractClassType, isGlobalClass, getInheritanceChain, isObject, toFastProperties, isNumeric, hasProperty, isObjectLiteral, isIterable, iterableSize, getClassTypeFromInstance, __ΩTypeAnnotation as ___TypeAnnotation, getObjectKeysSize, isInteger } from '../chunk-4WJJKR53.js';
2
+ import { ReflectionOp, TypeNumberBrand } from '../chunk-7WAH4JD3.js';
3
+ export { TypeNumberBrand } from '../chunk-7WAH4JD3.js';
4
+ import { init_esm_shims, __name } from '../chunk-QQ7GKXIS.js';
5
+ import { Buffer } from 'buffer';
6
+ import crypto from 'crypto';
5
7
 
6
- // ../../node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js
7
- var require_base64_js = __commonJS({
8
- "../../node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.js"(exports$1) {
9
- exports$1.byteLength = byteLength;
10
- exports$1.toByteArray = toByteArray;
11
- exports$1.fromByteArray = fromByteArray;
12
- var lookup = [];
13
- var revLookup = [];
14
- var Arr = typeof Uint8Array !== "undefined" ? Uint8Array : Array;
15
- var code = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
16
- for (i = 0, len = code.length; i < len; ++i) {
17
- lookup[i] = code[i];
18
- revLookup[code.charCodeAt(i)] = i;
19
- }
20
- var i;
21
- var len;
22
- revLookup["-".charCodeAt(0)] = 62;
23
- revLookup["_".charCodeAt(0)] = 63;
24
- function getLens(b64) {
25
- var len2 = b64.length;
26
- if (len2 % 4 > 0) {
27
- throw new Error("Invalid string. Length must be a multiple of 4");
28
- }
29
- var validLen = b64.indexOf("=");
30
- if (validLen === -1) validLen = len2;
31
- var placeHoldersLen = validLen === len2 ? 0 : 4 - validLen % 4;
32
- return [
33
- validLen,
34
- placeHoldersLen
35
- ];
36
- }
37
- __name(getLens, "getLens");
38
- function byteLength(b64) {
39
- var lens = getLens(b64);
40
- var validLen = lens[0];
41
- var placeHoldersLen = lens[1];
42
- return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
43
- }
44
- __name(byteLength, "byteLength");
45
- function _byteLength(b64, validLen, placeHoldersLen) {
46
- return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
47
- }
48
- __name(_byteLength, "_byteLength");
49
- function toByteArray(b64) {
50
- var tmp;
51
- var lens = getLens(b64);
52
- var validLen = lens[0];
53
- var placeHoldersLen = lens[1];
54
- var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen));
55
- var curByte = 0;
56
- var len2 = placeHoldersLen > 0 ? validLen - 4 : validLen;
57
- var i2;
58
- for (i2 = 0; i2 < len2; i2 += 4) {
59
- tmp = revLookup[b64.charCodeAt(i2)] << 18 | revLookup[b64.charCodeAt(i2 + 1)] << 12 | revLookup[b64.charCodeAt(i2 + 2)] << 6 | revLookup[b64.charCodeAt(i2 + 3)];
60
- arr[curByte++] = tmp >> 16 & 255;
61
- arr[curByte++] = tmp >> 8 & 255;
62
- arr[curByte++] = tmp & 255;
63
- }
64
- if (placeHoldersLen === 2) {
65
- tmp = revLookup[b64.charCodeAt(i2)] << 2 | revLookup[b64.charCodeAt(i2 + 1)] >> 4;
66
- arr[curByte++] = tmp & 255;
67
- }
68
- if (placeHoldersLen === 1) {
69
- tmp = revLookup[b64.charCodeAt(i2)] << 10 | revLookup[b64.charCodeAt(i2 + 1)] << 4 | revLookup[b64.charCodeAt(i2 + 2)] >> 2;
70
- arr[curByte++] = tmp >> 8 & 255;
71
- arr[curByte++] = tmp & 255;
72
- }
73
- return arr;
74
- }
75
- __name(toByteArray, "toByteArray");
76
- function tripletToBase64(num) {
77
- return lookup[num >> 18 & 63] + lookup[num >> 12 & 63] + lookup[num >> 6 & 63] + lookup[num & 63];
78
- }
79
- __name(tripletToBase64, "tripletToBase64");
80
- function encodeChunk(uint8, start, end) {
81
- var tmp;
82
- var output = [];
83
- for (var i2 = start; i2 < end; i2 += 3) {
84
- tmp = (uint8[i2] << 16 & 16711680) + (uint8[i2 + 1] << 8 & 65280) + (uint8[i2 + 2] & 255);
85
- output.push(tripletToBase64(tmp));
86
- }
87
- return output.join("");
88
- }
89
- __name(encodeChunk, "encodeChunk");
90
- function fromByteArray(uint8) {
91
- var tmp;
92
- var len2 = uint8.length;
93
- var extraBytes = len2 % 3;
94
- var parts = [];
95
- var maxChunkLength = 16383;
96
- for (var i2 = 0, len22 = len2 - extraBytes; i2 < len22; i2 += maxChunkLength) {
97
- parts.push(encodeChunk(uint8, i2, i2 + maxChunkLength > len22 ? len22 : i2 + maxChunkLength));
98
- }
99
- if (extraBytes === 1) {
100
- tmp = uint8[len2 - 1];
101
- parts.push(lookup[tmp >> 2] + lookup[tmp << 4 & 63] + "==");
102
- } else if (extraBytes === 2) {
103
- tmp = (uint8[len2 - 2] << 8) + uint8[len2 - 1];
104
- parts.push(lookup[tmp >> 10] + lookup[tmp >> 4 & 63] + lookup[tmp << 2 & 63] + "=");
105
- }
106
- return parts.join("");
107
- }
108
- __name(fromByteArray, "fromByteArray");
109
- }
110
- });
8
+ // src/vendor/type.ts
9
+ init_esm_shims();
111
10
 
112
- // ../../node_modules/.pnpm/ieee754@1.2.1/node_modules/ieee754/index.js
113
- var require_ieee754 = __commonJS({
114
- "../../node_modules/.pnpm/ieee754@1.2.1/node_modules/ieee754/index.js"(exports$1) {
115
- exports$1.read = function(buffer, offset, isLE, mLen, nBytes) {
116
- var e, m;
117
- var eLen = nBytes * 8 - mLen - 1;
118
- var eMax = (1 << eLen) - 1;
119
- var eBias = eMax >> 1;
120
- var nBits = -7;
121
- var i = isLE ? nBytes - 1 : 0;
122
- var d = isLE ? -1 : 1;
123
- var s = buffer[offset + i];
124
- i += d;
125
- e = s & (1 << -nBits) - 1;
126
- s >>= -nBits;
127
- nBits += eLen;
128
- for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {
129
- }
130
- m = e & (1 << -nBits) - 1;
131
- e >>= -nBits;
132
- nBits += mLen;
133
- for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {
134
- }
135
- if (e === 0) {
136
- e = 1 - eBias;
137
- } else if (e === eMax) {
138
- return m ? NaN : (s ? -1 : 1) * Infinity;
139
- } else {
140
- m = m + Math.pow(2, mLen);
141
- e = e - eBias;
142
- }
143
- return (s ? -1 : 1) * m * Math.pow(2, e - mLen);
144
- };
145
- exports$1.write = function(buffer, value, offset, isLE, mLen, nBytes) {
146
- var e, m, c;
147
- var eLen = nBytes * 8 - mLen - 1;
148
- var eMax = (1 << eLen) - 1;
149
- var eBias = eMax >> 1;
150
- var rt = mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0;
151
- var i = isLE ? 0 : nBytes - 1;
152
- var d = isLE ? 1 : -1;
153
- var s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0;
154
- value = Math.abs(value);
155
- if (isNaN(value) || value === Infinity) {
156
- m = isNaN(value) ? 1 : 0;
157
- e = eMax;
158
- } else {
159
- e = Math.floor(Math.log(value) / Math.LN2);
160
- if (value * (c = Math.pow(2, -e)) < 1) {
161
- e--;
162
- c *= 2;
163
- }
164
- if (e + eBias >= 1) {
165
- value += rt / c;
166
- } else {
167
- value += rt * Math.pow(2, 1 - eBias);
168
- }
169
- if (value * c >= 2) {
170
- e++;
171
- c /= 2;
172
- }
173
- if (e + eBias >= eMax) {
174
- m = 0;
175
- e = eMax;
176
- } else if (e + eBias >= 1) {
177
- m = (value * c - 1) * Math.pow(2, mLen);
178
- e = e + eBias;
179
- } else {
180
- m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen);
181
- e = 0;
182
- }
183
- }
184
- for (; mLen >= 8; buffer[offset + i] = m & 255, i += d, m /= 256, mLen -= 8) {
185
- }
186
- e = e << mLen | m;
187
- eLen += mLen;
188
- for (; eLen > 0; buffer[offset + i] = e & 255, i += d, e /= 256, eLen -= 8) {
189
- }
190
- buffer[offset + i - d] |= s * 128;
191
- };
192
- }
193
- });
11
+ // ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/index.js
12
+ init_esm_shims();
194
13
 
195
- // ../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js
196
- var require_buffer = __commonJS({
197
- "../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.js"(exports$1) {
198
- var base64 = require_base64_js();
199
- var ieee754 = require_ieee754();
200
- var customInspectSymbol = typeof Symbol === "function" && typeof Symbol["for"] === "function" ? Symbol["for"]("nodejs.util.inspect.custom") : null;
201
- exports$1.Buffer = Buffer2;
202
- exports$1.SlowBuffer = SlowBuffer;
203
- exports$1.INSPECT_MAX_BYTES = 50;
204
- var K_MAX_LENGTH = 2147483647;
205
- exports$1.kMaxLength = K_MAX_LENGTH;
206
- Buffer2.TYPED_ARRAY_SUPPORT = typedArraySupport();
207
- if (!Buffer2.TYPED_ARRAY_SUPPORT && typeof console !== "undefined" && typeof console.error === "function") {
208
- console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");
209
- }
210
- function typedArraySupport() {
211
- try {
212
- var arr = new Uint8Array(1);
213
- var proto = {
214
- foo: /* @__PURE__ */ __name(function() {
215
- return 42;
216
- }, "foo")
217
- };
218
- Object.setPrototypeOf(proto, Uint8Array.prototype);
219
- Object.setPrototypeOf(arr, proto);
220
- return arr.foo() === 42;
221
- } catch (e) {
222
- return false;
223
- }
224
- }
225
- __name(typedArraySupport, "typedArraySupport");
226
- Object.defineProperty(Buffer2.prototype, "parent", {
227
- enumerable: true,
228
- get: /* @__PURE__ */ __name(function() {
229
- if (!Buffer2.isBuffer(this)) return void 0;
230
- return this.buffer;
231
- }, "get")
232
- });
233
- Object.defineProperty(Buffer2.prototype, "offset", {
234
- enumerable: true,
235
- get: /* @__PURE__ */ __name(function() {
236
- if (!Buffer2.isBuffer(this)) return void 0;
237
- return this.byteOffset;
238
- }, "get")
239
- });
240
- function createBuffer(length) {
241
- if (length > K_MAX_LENGTH) {
242
- throw new RangeError('The value "' + length + '" is invalid for option "size"');
243
- }
244
- var buf = new Uint8Array(length);
245
- Object.setPrototypeOf(buf, Buffer2.prototype);
246
- return buf;
247
- }
248
- __name(createBuffer, "createBuffer");
249
- function Buffer2(arg, encodingOrOffset, length) {
250
- if (typeof arg === "number") {
251
- if (typeof encodingOrOffset === "string") {
252
- throw new TypeError('The "string" argument must be of type string. Received type number');
253
- }
254
- return allocUnsafe(arg);
255
- }
256
- return from(arg, encodingOrOffset, length);
257
- }
258
- __name(Buffer2, "Buffer");
259
- Buffer2.poolSize = 8192;
260
- function from(value, encodingOrOffset, length) {
261
- if (typeof value === "string") {
262
- return fromString(value, encodingOrOffset);
263
- }
264
- if (ArrayBuffer.isView(value)) {
265
- return fromArrayView(value);
266
- }
267
- if (value == null) {
268
- throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value);
269
- }
270
- if (isInstance(value, ArrayBuffer) || value && isInstance(value.buffer, ArrayBuffer)) {
271
- return fromArrayBuffer(value, encodingOrOffset, length);
272
- }
273
- if (typeof SharedArrayBuffer !== "undefined" && (isInstance(value, SharedArrayBuffer) || value && isInstance(value.buffer, SharedArrayBuffer))) {
274
- return fromArrayBuffer(value, encodingOrOffset, length);
275
- }
276
- if (typeof value === "number") {
277
- throw new TypeError('The "value" argument must not be of type number. Received type number');
278
- }
279
- var valueOf = value.valueOf && value.valueOf();
280
- if (valueOf != null && valueOf !== value) {
281
- return Buffer2.from(valueOf, encodingOrOffset, length);
282
- }
283
- var b = fromObject(value);
284
- if (b) return b;
285
- if (typeof Symbol !== "undefined" && Symbol.toPrimitive != null && typeof value[Symbol.toPrimitive] === "function") {
286
- return Buffer2.from(value[Symbol.toPrimitive]("string"), encodingOrOffset, length);
287
- }
288
- throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value);
289
- }
290
- __name(from, "from");
291
- Buffer2.from = function(value, encodingOrOffset, length) {
292
- return from(value, encodingOrOffset, length);
293
- };
294
- Object.setPrototypeOf(Buffer2.prototype, Uint8Array.prototype);
295
- Object.setPrototypeOf(Buffer2, Uint8Array);
296
- function assertSize(size) {
297
- if (typeof size !== "number") {
298
- throw new TypeError('"size" argument must be of type number');
299
- } else if (size < 0) {
300
- throw new RangeError('The value "' + size + '" is invalid for option "size"');
301
- }
302
- }
303
- __name(assertSize, "assertSize");
304
- function alloc(size, fill, encoding) {
305
- assertSize(size);
306
- if (size <= 0) {
307
- return createBuffer(size);
308
- }
309
- if (fill !== void 0) {
310
- return typeof encoding === "string" ? createBuffer(size).fill(fill, encoding) : createBuffer(size).fill(fill);
311
- }
312
- return createBuffer(size);
313
- }
314
- __name(alloc, "alloc");
315
- Buffer2.alloc = function(size, fill, encoding) {
316
- return alloc(size, fill, encoding);
317
- };
318
- function allocUnsafe(size) {
319
- assertSize(size);
320
- return createBuffer(size < 0 ? 0 : checked(size) | 0);
321
- }
322
- __name(allocUnsafe, "allocUnsafe");
323
- Buffer2.allocUnsafe = function(size) {
324
- return allocUnsafe(size);
325
- };
326
- Buffer2.allocUnsafeSlow = function(size) {
327
- return allocUnsafe(size);
328
- };
329
- function fromString(string, encoding) {
330
- if (typeof encoding !== "string" || encoding === "") {
331
- encoding = "utf8";
332
- }
333
- if (!Buffer2.isEncoding(encoding)) {
334
- throw new TypeError("Unknown encoding: " + encoding);
335
- }
336
- var length = byteLength(string, encoding) | 0;
337
- var buf = createBuffer(length);
338
- var actual = buf.write(string, encoding);
339
- if (actual !== length) {
340
- buf = buf.slice(0, actual);
341
- }
342
- return buf;
343
- }
344
- __name(fromString, "fromString");
345
- function fromArrayLike(array) {
346
- var length = array.length < 0 ? 0 : checked(array.length) | 0;
347
- var buf = createBuffer(length);
348
- for (var i = 0; i < length; i += 1) {
349
- buf[i] = array[i] & 255;
350
- }
351
- return buf;
352
- }
353
- __name(fromArrayLike, "fromArrayLike");
354
- function fromArrayView(arrayView) {
355
- if (isInstance(arrayView, Uint8Array)) {
356
- var copy = new Uint8Array(arrayView);
357
- return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength);
358
- }
359
- return fromArrayLike(arrayView);
360
- }
361
- __name(fromArrayView, "fromArrayView");
362
- function fromArrayBuffer(array, byteOffset, length) {
363
- if (byteOffset < 0 || array.byteLength < byteOffset) {
364
- throw new RangeError('"offset" is outside of buffer bounds');
365
- }
366
- if (array.byteLength < byteOffset + (length || 0)) {
367
- throw new RangeError('"length" is outside of buffer bounds');
368
- }
369
- var buf;
370
- if (byteOffset === void 0 && length === void 0) {
371
- buf = new Uint8Array(array);
372
- } else if (length === void 0) {
373
- buf = new Uint8Array(array, byteOffset);
374
- } else {
375
- buf = new Uint8Array(array, byteOffset, length);
376
- }
377
- Object.setPrototypeOf(buf, Buffer2.prototype);
378
- return buf;
379
- }
380
- __name(fromArrayBuffer, "fromArrayBuffer");
381
- function fromObject(obj) {
382
- if (Buffer2.isBuffer(obj)) {
383
- var len = checked(obj.length) | 0;
384
- var buf = createBuffer(len);
385
- if (buf.length === 0) {
386
- return buf;
387
- }
388
- obj.copy(buf, 0, 0, len);
389
- return buf;
390
- }
391
- if (obj.length !== void 0) {
392
- if (typeof obj.length !== "number" || numberIsNaN(obj.length)) {
393
- return createBuffer(0);
394
- }
395
- return fromArrayLike(obj);
396
- }
397
- if (obj.type === "Buffer" && Array.isArray(obj.data)) {
398
- return fromArrayLike(obj.data);
399
- }
400
- }
401
- __name(fromObject, "fromObject");
402
- function checked(length) {
403
- if (length >= K_MAX_LENGTH) {
404
- throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + K_MAX_LENGTH.toString(16) + " bytes");
405
- }
406
- return length | 0;
407
- }
408
- __name(checked, "checked");
409
- function SlowBuffer(length) {
410
- if (+length != length) {
411
- length = 0;
412
- }
413
- return Buffer2.alloc(+length);
414
- }
415
- __name(SlowBuffer, "SlowBuffer");
416
- Buffer2.isBuffer = /* @__PURE__ */ __name(function isBuffer(b) {
417
- return b != null && b._isBuffer === true && b !== Buffer2.prototype;
418
- }, "isBuffer");
419
- Buffer2.compare = /* @__PURE__ */ __name(function compare(a, b) {
420
- if (isInstance(a, Uint8Array)) a = Buffer2.from(a, a.offset, a.byteLength);
421
- if (isInstance(b, Uint8Array)) b = Buffer2.from(b, b.offset, b.byteLength);
422
- if (!Buffer2.isBuffer(a) || !Buffer2.isBuffer(b)) {
423
- throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');
424
- }
425
- if (a === b) return 0;
426
- var x = a.length;
427
- var y = b.length;
428
- for (var i = 0, len = Math.min(x, y); i < len; ++i) {
429
- if (a[i] !== b[i]) {
430
- x = a[i];
431
- y = b[i];
432
- break;
433
- }
434
- }
435
- if (x < y) return -1;
436
- if (y < x) return 1;
437
- return 0;
438
- }, "compare");
439
- Buffer2.isEncoding = /* @__PURE__ */ __name(function isEncoding(encoding) {
440
- switch (String(encoding).toLowerCase()) {
441
- case "hex":
442
- case "utf8":
443
- case "utf-8":
444
- case "ascii":
445
- case "latin1":
446
- case "binary":
447
- case "base64":
448
- case "ucs2":
449
- case "ucs-2":
450
- case "utf16le":
451
- case "utf-16le":
452
- return true;
453
- default:
454
- return false;
455
- }
456
- }, "isEncoding");
457
- Buffer2.concat = /* @__PURE__ */ __name(function concat(list, length) {
458
- if (!Array.isArray(list)) {
459
- throw new TypeError('"list" argument must be an Array of Buffers');
460
- }
461
- if (list.length === 0) {
462
- return Buffer2.alloc(0);
463
- }
464
- var i;
465
- if (length === void 0) {
466
- length = 0;
467
- for (i = 0; i < list.length; ++i) {
468
- length += list[i].length;
469
- }
470
- }
471
- var buffer = Buffer2.allocUnsafe(length);
472
- var pos = 0;
473
- for (i = 0; i < list.length; ++i) {
474
- var buf = list[i];
475
- if (isInstance(buf, Uint8Array)) {
476
- if (pos + buf.length > buffer.length) {
477
- Buffer2.from(buf).copy(buffer, pos);
478
- } else {
479
- Uint8Array.prototype.set.call(buffer, buf, pos);
480
- }
481
- } else if (!Buffer2.isBuffer(buf)) {
482
- throw new TypeError('"list" argument must be an Array of Buffers');
483
- } else {
484
- buf.copy(buffer, pos);
485
- }
486
- pos += buf.length;
487
- }
488
- return buffer;
489
- }, "concat");
490
- function byteLength(string, encoding) {
491
- if (Buffer2.isBuffer(string)) {
492
- return string.length;
493
- }
494
- if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {
495
- return string.byteLength;
496
- }
497
- if (typeof string !== "string") {
498
- throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof string);
499
- }
500
- var len = string.length;
501
- var mustMatch = arguments.length > 2 && arguments[2] === true;
502
- if (!mustMatch && len === 0) return 0;
503
- var loweredCase = false;
504
- for (; ; ) {
505
- switch (encoding) {
506
- case "ascii":
507
- case "latin1":
508
- case "binary":
509
- return len;
510
- case "utf8":
511
- case "utf-8":
512
- return utf8ToBytes(string).length;
513
- case "ucs2":
514
- case "ucs-2":
515
- case "utf16le":
516
- case "utf-16le":
517
- return len * 2;
518
- case "hex":
519
- return len >>> 1;
520
- case "base64":
521
- return base64ToBytes(string).length;
522
- default:
523
- if (loweredCase) {
524
- return mustMatch ? -1 : utf8ToBytes(string).length;
525
- }
526
- encoding = ("" + encoding).toLowerCase();
527
- loweredCase = true;
528
- }
529
- }
530
- }
531
- __name(byteLength, "byteLength");
532
- Buffer2.byteLength = byteLength;
533
- function slowToString(encoding, start, end) {
534
- var loweredCase = false;
535
- if (start === void 0 || start < 0) {
536
- start = 0;
537
- }
538
- if (start > this.length) {
539
- return "";
540
- }
541
- if (end === void 0 || end > this.length) {
542
- end = this.length;
543
- }
544
- if (end <= 0) {
545
- return "";
546
- }
547
- end >>>= 0;
548
- start >>>= 0;
549
- if (end <= start) {
550
- return "";
551
- }
552
- if (!encoding) encoding = "utf8";
553
- while (true) {
554
- switch (encoding) {
555
- case "hex":
556
- return hexSlice(this, start, end);
557
- case "utf8":
558
- case "utf-8":
559
- return utf8Slice(this, start, end);
560
- case "ascii":
561
- return asciiSlice(this, start, end);
562
- case "latin1":
563
- case "binary":
564
- return latin1Slice(this, start, end);
565
- case "base64":
566
- return base64Slice(this, start, end);
567
- case "ucs2":
568
- case "ucs-2":
569
- case "utf16le":
570
- case "utf-16le":
571
- return utf16leSlice(this, start, end);
572
- default:
573
- if (loweredCase) throw new TypeError("Unknown encoding: " + encoding);
574
- encoding = (encoding + "").toLowerCase();
575
- loweredCase = true;
576
- }
577
- }
578
- }
579
- __name(slowToString, "slowToString");
580
- Buffer2.prototype._isBuffer = true;
581
- function swap(b, n, m) {
582
- var i = b[n];
583
- b[n] = b[m];
584
- b[m] = i;
585
- }
586
- __name(swap, "swap");
587
- Buffer2.prototype.swap16 = /* @__PURE__ */ __name(function swap16() {
588
- var len = this.length;
589
- if (len % 2 !== 0) {
590
- throw new RangeError("Buffer size must be a multiple of 16-bits");
591
- }
592
- for (var i = 0; i < len; i += 2) {
593
- swap(this, i, i + 1);
594
- }
595
- return this;
596
- }, "swap16");
597
- Buffer2.prototype.swap32 = /* @__PURE__ */ __name(function swap32() {
598
- var len = this.length;
599
- if (len % 4 !== 0) {
600
- throw new RangeError("Buffer size must be a multiple of 32-bits");
601
- }
602
- for (var i = 0; i < len; i += 4) {
603
- swap(this, i, i + 3);
604
- swap(this, i + 1, i + 2);
605
- }
606
- return this;
607
- }, "swap32");
608
- Buffer2.prototype.swap64 = /* @__PURE__ */ __name(function swap64() {
609
- var len = this.length;
610
- if (len % 8 !== 0) {
611
- throw new RangeError("Buffer size must be a multiple of 64-bits");
612
- }
613
- for (var i = 0; i < len; i += 8) {
614
- swap(this, i, i + 7);
615
- swap(this, i + 1, i + 6);
616
- swap(this, i + 2, i + 5);
617
- swap(this, i + 3, i + 4);
618
- }
619
- return this;
620
- }, "swap64");
621
- Buffer2.prototype.toString = /* @__PURE__ */ __name(function toString() {
622
- var length = this.length;
623
- if (length === 0) return "";
624
- if (arguments.length === 0) return utf8Slice(this, 0, length);
625
- return slowToString.apply(this, arguments);
626
- }, "toString");
627
- Buffer2.prototype.toLocaleString = Buffer2.prototype.toString;
628
- Buffer2.prototype.equals = /* @__PURE__ */ __name(function equals(b) {
629
- if (!Buffer2.isBuffer(b)) throw new TypeError("Argument must be a Buffer");
630
- if (this === b) return true;
631
- return Buffer2.compare(this, b) === 0;
632
- }, "equals");
633
- Buffer2.prototype.inspect = /* @__PURE__ */ __name(function inspect() {
634
- var str = "";
635
- var max = exports$1.INSPECT_MAX_BYTES;
636
- str = this.toString("hex", 0, max).replace(/(.{2})/g, "$1 ").trim();
637
- if (this.length > max) str += " ... ";
638
- return "<Buffer " + str + ">";
639
- }, "inspect");
640
- if (customInspectSymbol) {
641
- Buffer2.prototype[customInspectSymbol] = Buffer2.prototype.inspect;
642
- }
643
- Buffer2.prototype.compare = /* @__PURE__ */ __name(function compare(target, start, end, thisStart, thisEnd) {
644
- if (isInstance(target, Uint8Array)) {
645
- target = Buffer2.from(target, target.offset, target.byteLength);
646
- }
647
- if (!Buffer2.isBuffer(target)) {
648
- throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof target);
649
- }
650
- if (start === void 0) {
651
- start = 0;
652
- }
653
- if (end === void 0) {
654
- end = target ? target.length : 0;
655
- }
656
- if (thisStart === void 0) {
657
- thisStart = 0;
658
- }
659
- if (thisEnd === void 0) {
660
- thisEnd = this.length;
661
- }
662
- if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
663
- throw new RangeError("out of range index");
664
- }
665
- if (thisStart >= thisEnd && start >= end) {
666
- return 0;
667
- }
668
- if (thisStart >= thisEnd) {
669
- return -1;
670
- }
671
- if (start >= end) {
672
- return 1;
673
- }
674
- start >>>= 0;
675
- end >>>= 0;
676
- thisStart >>>= 0;
677
- thisEnd >>>= 0;
678
- if (this === target) return 0;
679
- var x = thisEnd - thisStart;
680
- var y = end - start;
681
- var len = Math.min(x, y);
682
- var thisCopy = this.slice(thisStart, thisEnd);
683
- var targetCopy = target.slice(start, end);
684
- for (var i = 0; i < len; ++i) {
685
- if (thisCopy[i] !== targetCopy[i]) {
686
- x = thisCopy[i];
687
- y = targetCopy[i];
688
- break;
689
- }
690
- }
691
- if (x < y) return -1;
692
- if (y < x) return 1;
693
- return 0;
694
- }, "compare");
695
- function bidirectionalIndexOf(buffer, val, byteOffset, encoding, dir) {
696
- if (buffer.length === 0) return -1;
697
- if (typeof byteOffset === "string") {
698
- encoding = byteOffset;
699
- byteOffset = 0;
700
- } else if (byteOffset > 2147483647) {
701
- byteOffset = 2147483647;
702
- } else if (byteOffset < -2147483648) {
703
- byteOffset = -2147483648;
704
- }
705
- byteOffset = +byteOffset;
706
- if (numberIsNaN(byteOffset)) {
707
- byteOffset = dir ? 0 : buffer.length - 1;
708
- }
709
- if (byteOffset < 0) byteOffset = buffer.length + byteOffset;
710
- if (byteOffset >= buffer.length) {
711
- if (dir) return -1;
712
- else byteOffset = buffer.length - 1;
713
- } else if (byteOffset < 0) {
714
- if (dir) byteOffset = 0;
715
- else return -1;
716
- }
717
- if (typeof val === "string") {
718
- val = Buffer2.from(val, encoding);
719
- }
720
- if (Buffer2.isBuffer(val)) {
721
- if (val.length === 0) {
722
- return -1;
723
- }
724
- return arrayIndexOf(buffer, val, byteOffset, encoding, dir);
725
- } else if (typeof val === "number") {
726
- val = val & 255;
727
- if (typeof Uint8Array.prototype.indexOf === "function") {
728
- if (dir) {
729
- return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset);
730
- } else {
731
- return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset);
732
- }
733
- }
734
- return arrayIndexOf(buffer, [
735
- val
736
- ], byteOffset, encoding, dir);
737
- }
738
- throw new TypeError("val must be string, number or Buffer");
739
- }
740
- __name(bidirectionalIndexOf, "bidirectionalIndexOf");
741
- function arrayIndexOf(arr, val, byteOffset, encoding, dir) {
742
- var indexSize = 1;
743
- var arrLength = arr.length;
744
- var valLength = val.length;
745
- if (encoding !== void 0) {
746
- encoding = String(encoding).toLowerCase();
747
- if (encoding === "ucs2" || encoding === "ucs-2" || encoding === "utf16le" || encoding === "utf-16le") {
748
- if (arr.length < 2 || val.length < 2) {
749
- return -1;
750
- }
751
- indexSize = 2;
752
- arrLength /= 2;
753
- valLength /= 2;
754
- byteOffset /= 2;
755
- }
756
- }
757
- function read(buf, i2) {
758
- if (indexSize === 1) {
759
- return buf[i2];
760
- } else {
761
- return buf.readUInt16BE(i2 * indexSize);
762
- }
763
- }
764
- __name(read, "read");
765
- var i;
766
- if (dir) {
767
- var foundIndex = -1;
768
- for (i = byteOffset; i < arrLength; i++) {
769
- if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
770
- if (foundIndex === -1) foundIndex = i;
771
- if (i - foundIndex + 1 === valLength) return foundIndex * indexSize;
772
- } else {
773
- if (foundIndex !== -1) i -= i - foundIndex;
774
- foundIndex = -1;
775
- }
776
- }
777
- } else {
778
- if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength;
779
- for (i = byteOffset; i >= 0; i--) {
780
- var found = true;
781
- for (var j = 0; j < valLength; j++) {
782
- if (read(arr, i + j) !== read(val, j)) {
783
- found = false;
784
- break;
785
- }
786
- }
787
- if (found) return i;
788
- }
789
- }
790
- return -1;
791
- }
792
- __name(arrayIndexOf, "arrayIndexOf");
793
- Buffer2.prototype.includes = /* @__PURE__ */ __name(function includes(val, byteOffset, encoding) {
794
- return this.indexOf(val, byteOffset, encoding) !== -1;
795
- }, "includes");
796
- Buffer2.prototype.indexOf = /* @__PURE__ */ __name(function indexOf(val, byteOffset, encoding) {
797
- return bidirectionalIndexOf(this, val, byteOffset, encoding, true);
798
- }, "indexOf");
799
- Buffer2.prototype.lastIndexOf = /* @__PURE__ */ __name(function lastIndexOf(val, byteOffset, encoding) {
800
- return bidirectionalIndexOf(this, val, byteOffset, encoding, false);
801
- }, "lastIndexOf");
802
- function hexWrite(buf, string, offset, length) {
803
- offset = Number(offset) || 0;
804
- var remaining = buf.length - offset;
805
- if (!length) {
806
- length = remaining;
807
- } else {
808
- length = Number(length);
809
- if (length > remaining) {
810
- length = remaining;
811
- }
812
- }
813
- var strLen = string.length;
814
- if (length > strLen / 2) {
815
- length = strLen / 2;
816
- }
817
- for (var i = 0; i < length; ++i) {
818
- var parsed = parseInt(string.substr(i * 2, 2), 16);
819
- if (numberIsNaN(parsed)) return i;
820
- buf[offset + i] = parsed;
821
- }
822
- return i;
823
- }
824
- __name(hexWrite, "hexWrite");
825
- function utf8Write(buf, string, offset, length) {
826
- return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length);
827
- }
828
- __name(utf8Write, "utf8Write");
829
- function asciiWrite(buf, string, offset, length) {
830
- return blitBuffer(asciiToBytes(string), buf, offset, length);
831
- }
832
- __name(asciiWrite, "asciiWrite");
833
- function base64Write(buf, string, offset, length) {
834
- return blitBuffer(base64ToBytes(string), buf, offset, length);
835
- }
836
- __name(base64Write, "base64Write");
837
- function ucs2Write(buf, string, offset, length) {
838
- return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length);
839
- }
840
- __name(ucs2Write, "ucs2Write");
841
- Buffer2.prototype.write = /* @__PURE__ */ __name(function write(string, offset, length, encoding) {
842
- if (offset === void 0) {
843
- encoding = "utf8";
844
- length = this.length;
845
- offset = 0;
846
- } else if (length === void 0 && typeof offset === "string") {
847
- encoding = offset;
848
- length = this.length;
849
- offset = 0;
850
- } else if (isFinite(offset)) {
851
- offset = offset >>> 0;
852
- if (isFinite(length)) {
853
- length = length >>> 0;
854
- if (encoding === void 0) encoding = "utf8";
855
- } else {
856
- encoding = length;
857
- length = void 0;
858
- }
859
- } else {
860
- throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
861
- }
862
- var remaining = this.length - offset;
863
- if (length === void 0 || length > remaining) length = remaining;
864
- if (string.length > 0 && (length < 0 || offset < 0) || offset > this.length) {
865
- throw new RangeError("Attempt to write outside buffer bounds");
866
- }
867
- if (!encoding) encoding = "utf8";
868
- var loweredCase = false;
869
- for (; ; ) {
870
- switch (encoding) {
871
- case "hex":
872
- return hexWrite(this, string, offset, length);
873
- case "utf8":
874
- case "utf-8":
875
- return utf8Write(this, string, offset, length);
876
- case "ascii":
877
- case "latin1":
878
- case "binary":
879
- return asciiWrite(this, string, offset, length);
880
- case "base64":
881
- return base64Write(this, string, offset, length);
882
- case "ucs2":
883
- case "ucs-2":
884
- case "utf16le":
885
- case "utf-16le":
886
- return ucs2Write(this, string, offset, length);
887
- default:
888
- if (loweredCase) throw new TypeError("Unknown encoding: " + encoding);
889
- encoding = ("" + encoding).toLowerCase();
890
- loweredCase = true;
891
- }
892
- }
893
- }, "write");
894
- Buffer2.prototype.toJSON = /* @__PURE__ */ __name(function toJSON() {
895
- return {
896
- type: "Buffer",
897
- data: Array.prototype.slice.call(this._arr || this, 0)
898
- };
899
- }, "toJSON");
900
- function base64Slice(buf, start, end) {
901
- if (start === 0 && end === buf.length) {
902
- return base64.fromByteArray(buf);
903
- } else {
904
- return base64.fromByteArray(buf.slice(start, end));
905
- }
906
- }
907
- __name(base64Slice, "base64Slice");
908
- function utf8Slice(buf, start, end) {
909
- end = Math.min(buf.length, end);
910
- var res = [];
911
- var i = start;
912
- while (i < end) {
913
- var firstByte = buf[i];
914
- var codePoint = null;
915
- var bytesPerSequence = firstByte > 239 ? 4 : firstByte > 223 ? 3 : firstByte > 191 ? 2 : 1;
916
- if (i + bytesPerSequence <= end) {
917
- var secondByte, thirdByte, fourthByte, tempCodePoint;
918
- switch (bytesPerSequence) {
919
- case 1:
920
- if (firstByte < 128) {
921
- codePoint = firstByte;
922
- }
923
- break;
924
- case 2:
925
- secondByte = buf[i + 1];
926
- if ((secondByte & 192) === 128) {
927
- tempCodePoint = (firstByte & 31) << 6 | secondByte & 63;
928
- if (tempCodePoint > 127) {
929
- codePoint = tempCodePoint;
930
- }
931
- }
932
- break;
933
- case 3:
934
- secondByte = buf[i + 1];
935
- thirdByte = buf[i + 2];
936
- if ((secondByte & 192) === 128 && (thirdByte & 192) === 128) {
937
- tempCodePoint = (firstByte & 15) << 12 | (secondByte & 63) << 6 | thirdByte & 63;
938
- if (tempCodePoint > 2047 && (tempCodePoint < 55296 || tempCodePoint > 57343)) {
939
- codePoint = tempCodePoint;
940
- }
941
- }
942
- break;
943
- case 4:
944
- secondByte = buf[i + 1];
945
- thirdByte = buf[i + 2];
946
- fourthByte = buf[i + 3];
947
- if ((secondByte & 192) === 128 && (thirdByte & 192) === 128 && (fourthByte & 192) === 128) {
948
- tempCodePoint = (firstByte & 15) << 18 | (secondByte & 63) << 12 | (thirdByte & 63) << 6 | fourthByte & 63;
949
- if (tempCodePoint > 65535 && tempCodePoint < 1114112) {
950
- codePoint = tempCodePoint;
951
- }
952
- }
953
- }
954
- }
955
- if (codePoint === null) {
956
- codePoint = 65533;
957
- bytesPerSequence = 1;
958
- } else if (codePoint > 65535) {
959
- codePoint -= 65536;
960
- res.push(codePoint >>> 10 & 1023 | 55296);
961
- codePoint = 56320 | codePoint & 1023;
962
- }
963
- res.push(codePoint);
964
- i += bytesPerSequence;
965
- }
966
- return decodeCodePointsArray(res);
967
- }
968
- __name(utf8Slice, "utf8Slice");
969
- var MAX_ARGUMENTS_LENGTH = 4096;
970
- function decodeCodePointsArray(codePoints) {
971
- var len = codePoints.length;
972
- if (len <= MAX_ARGUMENTS_LENGTH) {
973
- return String.fromCharCode.apply(String, codePoints);
974
- }
975
- var res = "";
976
- var i = 0;
977
- while (i < len) {
978
- res += String.fromCharCode.apply(String, codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH));
979
- }
980
- return res;
981
- }
982
- __name(decodeCodePointsArray, "decodeCodePointsArray");
983
- function asciiSlice(buf, start, end) {
984
- var ret = "";
985
- end = Math.min(buf.length, end);
986
- for (var i = start; i < end; ++i) {
987
- ret += String.fromCharCode(buf[i] & 127);
988
- }
989
- return ret;
990
- }
991
- __name(asciiSlice, "asciiSlice");
992
- function latin1Slice(buf, start, end) {
993
- var ret = "";
994
- end = Math.min(buf.length, end);
995
- for (var i = start; i < end; ++i) {
996
- ret += String.fromCharCode(buf[i]);
997
- }
998
- return ret;
999
- }
1000
- __name(latin1Slice, "latin1Slice");
1001
- function hexSlice(buf, start, end) {
1002
- var len = buf.length;
1003
- if (!start || start < 0) start = 0;
1004
- if (!end || end < 0 || end > len) end = len;
1005
- var out = "";
1006
- for (var i = start; i < end; ++i) {
1007
- out += hexSliceLookupTable[buf[i]];
1008
- }
1009
- return out;
1010
- }
1011
- __name(hexSlice, "hexSlice");
1012
- function utf16leSlice(buf, start, end) {
1013
- var bytes = buf.slice(start, end);
1014
- var res = "";
1015
- for (var i = 0; i < bytes.length - 1; i += 2) {
1016
- res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256);
1017
- }
1018
- return res;
1019
- }
1020
- __name(utf16leSlice, "utf16leSlice");
1021
- Buffer2.prototype.slice = /* @__PURE__ */ __name(function slice(start, end) {
1022
- var len = this.length;
1023
- start = ~~start;
1024
- end = end === void 0 ? len : ~~end;
1025
- if (start < 0) {
1026
- start += len;
1027
- if (start < 0) start = 0;
1028
- } else if (start > len) {
1029
- start = len;
1030
- }
1031
- if (end < 0) {
1032
- end += len;
1033
- if (end < 0) end = 0;
1034
- } else if (end > len) {
1035
- end = len;
1036
- }
1037
- if (end < start) end = start;
1038
- var newBuf = this.subarray(start, end);
1039
- Object.setPrototypeOf(newBuf, Buffer2.prototype);
1040
- return newBuf;
1041
- }, "slice");
1042
- function checkOffset(offset, ext, length) {
1043
- if (offset % 1 !== 0 || offset < 0) throw new RangeError("offset is not uint");
1044
- if (offset + ext > length) throw new RangeError("Trying to access beyond buffer length");
1045
- }
1046
- __name(checkOffset, "checkOffset");
1047
- Buffer2.prototype.readUintLE = Buffer2.prototype.readUIntLE = /* @__PURE__ */ __name(function readUIntLE(offset, byteLength2, noAssert) {
1048
- offset = offset >>> 0;
1049
- byteLength2 = byteLength2 >>> 0;
1050
- if (!noAssert) checkOffset(offset, byteLength2, this.length);
1051
- var val = this[offset];
1052
- var mul = 1;
1053
- var i = 0;
1054
- while (++i < byteLength2 && (mul *= 256)) {
1055
- val += this[offset + i] * mul;
1056
- }
1057
- return val;
1058
- }, "readUIntLE");
1059
- Buffer2.prototype.readUintBE = Buffer2.prototype.readUIntBE = /* @__PURE__ */ __name(function readUIntBE(offset, byteLength2, noAssert) {
1060
- offset = offset >>> 0;
1061
- byteLength2 = byteLength2 >>> 0;
1062
- if (!noAssert) {
1063
- checkOffset(offset, byteLength2, this.length);
1064
- }
1065
- var val = this[offset + --byteLength2];
1066
- var mul = 1;
1067
- while (byteLength2 > 0 && (mul *= 256)) {
1068
- val += this[offset + --byteLength2] * mul;
1069
- }
1070
- return val;
1071
- }, "readUIntBE");
1072
- Buffer2.prototype.readUint8 = Buffer2.prototype.readUInt8 = /* @__PURE__ */ __name(function readUInt8(offset, noAssert) {
1073
- offset = offset >>> 0;
1074
- if (!noAssert) checkOffset(offset, 1, this.length);
1075
- return this[offset];
1076
- }, "readUInt8");
1077
- Buffer2.prototype.readUint16LE = Buffer2.prototype.readUInt16LE = /* @__PURE__ */ __name(function readUInt16LE(offset, noAssert) {
1078
- offset = offset >>> 0;
1079
- if (!noAssert) checkOffset(offset, 2, this.length);
1080
- return this[offset] | this[offset + 1] << 8;
1081
- }, "readUInt16LE");
1082
- Buffer2.prototype.readUint16BE = Buffer2.prototype.readUInt16BE = /* @__PURE__ */ __name(function readUInt16BE(offset, noAssert) {
1083
- offset = offset >>> 0;
1084
- if (!noAssert) checkOffset(offset, 2, this.length);
1085
- return this[offset] << 8 | this[offset + 1];
1086
- }, "readUInt16BE");
1087
- Buffer2.prototype.readUint32LE = Buffer2.prototype.readUInt32LE = /* @__PURE__ */ __name(function readUInt32LE(offset, noAssert) {
1088
- offset = offset >>> 0;
1089
- if (!noAssert) checkOffset(offset, 4, this.length);
1090
- return (this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16) + this[offset + 3] * 16777216;
1091
- }, "readUInt32LE");
1092
- Buffer2.prototype.readUint32BE = Buffer2.prototype.readUInt32BE = /* @__PURE__ */ __name(function readUInt32BE(offset, noAssert) {
1093
- offset = offset >>> 0;
1094
- if (!noAssert) checkOffset(offset, 4, this.length);
1095
- return this[offset] * 16777216 + (this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3]);
1096
- }, "readUInt32BE");
1097
- Buffer2.prototype.readIntLE = /* @__PURE__ */ __name(function readIntLE(offset, byteLength2, noAssert) {
1098
- offset = offset >>> 0;
1099
- byteLength2 = byteLength2 >>> 0;
1100
- if (!noAssert) checkOffset(offset, byteLength2, this.length);
1101
- var val = this[offset];
1102
- var mul = 1;
1103
- var i = 0;
1104
- while (++i < byteLength2 && (mul *= 256)) {
1105
- val += this[offset + i] * mul;
1106
- }
1107
- mul *= 128;
1108
- if (val >= mul) val -= Math.pow(2, 8 * byteLength2);
1109
- return val;
1110
- }, "readIntLE");
1111
- Buffer2.prototype.readIntBE = /* @__PURE__ */ __name(function readIntBE(offset, byteLength2, noAssert) {
1112
- offset = offset >>> 0;
1113
- byteLength2 = byteLength2 >>> 0;
1114
- if (!noAssert) checkOffset(offset, byteLength2, this.length);
1115
- var i = byteLength2;
1116
- var mul = 1;
1117
- var val = this[offset + --i];
1118
- while (i > 0 && (mul *= 256)) {
1119
- val += this[offset + --i] * mul;
1120
- }
1121
- mul *= 128;
1122
- if (val >= mul) val -= Math.pow(2, 8 * byteLength2);
1123
- return val;
1124
- }, "readIntBE");
1125
- Buffer2.prototype.readInt8 = /* @__PURE__ */ __name(function readInt8(offset, noAssert) {
1126
- offset = offset >>> 0;
1127
- if (!noAssert) checkOffset(offset, 1, this.length);
1128
- if (!(this[offset] & 128)) return this[offset];
1129
- return (255 - this[offset] + 1) * -1;
1130
- }, "readInt8");
1131
- Buffer2.prototype.readInt16LE = /* @__PURE__ */ __name(function readInt16LE(offset, noAssert) {
1132
- offset = offset >>> 0;
1133
- if (!noAssert) checkOffset(offset, 2, this.length);
1134
- var val = this[offset] | this[offset + 1] << 8;
1135
- return val & 32768 ? val | 4294901760 : val;
1136
- }, "readInt16LE");
1137
- Buffer2.prototype.readInt16BE = /* @__PURE__ */ __name(function readInt16BE(offset, noAssert) {
1138
- offset = offset >>> 0;
1139
- if (!noAssert) checkOffset(offset, 2, this.length);
1140
- var val = this[offset + 1] | this[offset] << 8;
1141
- return val & 32768 ? val | 4294901760 : val;
1142
- }, "readInt16BE");
1143
- Buffer2.prototype.readInt32LE = /* @__PURE__ */ __name(function readInt32LE(offset, noAssert) {
1144
- offset = offset >>> 0;
1145
- if (!noAssert) checkOffset(offset, 4, this.length);
1146
- return this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16 | this[offset + 3] << 24;
1147
- }, "readInt32LE");
1148
- Buffer2.prototype.readInt32BE = /* @__PURE__ */ __name(function readInt32BE(offset, noAssert) {
1149
- offset = offset >>> 0;
1150
- if (!noAssert) checkOffset(offset, 4, this.length);
1151
- return this[offset] << 24 | this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3];
1152
- }, "readInt32BE");
1153
- Buffer2.prototype.readFloatLE = /* @__PURE__ */ __name(function readFloatLE(offset, noAssert) {
1154
- offset = offset >>> 0;
1155
- if (!noAssert) checkOffset(offset, 4, this.length);
1156
- return ieee754.read(this, offset, true, 23, 4);
1157
- }, "readFloatLE");
1158
- Buffer2.prototype.readFloatBE = /* @__PURE__ */ __name(function readFloatBE(offset, noAssert) {
1159
- offset = offset >>> 0;
1160
- if (!noAssert) checkOffset(offset, 4, this.length);
1161
- return ieee754.read(this, offset, false, 23, 4);
1162
- }, "readFloatBE");
1163
- Buffer2.prototype.readDoubleLE = /* @__PURE__ */ __name(function readDoubleLE(offset, noAssert) {
1164
- offset = offset >>> 0;
1165
- if (!noAssert) checkOffset(offset, 8, this.length);
1166
- return ieee754.read(this, offset, true, 52, 8);
1167
- }, "readDoubleLE");
1168
- Buffer2.prototype.readDoubleBE = /* @__PURE__ */ __name(function readDoubleBE(offset, noAssert) {
1169
- offset = offset >>> 0;
1170
- if (!noAssert) checkOffset(offset, 8, this.length);
1171
- return ieee754.read(this, offset, false, 52, 8);
1172
- }, "readDoubleBE");
1173
- function checkInt(buf, value, offset, ext, max, min) {
1174
- if (!Buffer2.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance');
1175
- if (value > max || value < min) throw new RangeError('"value" argument is out of bounds');
1176
- if (offset + ext > buf.length) throw new RangeError("Index out of range");
1177
- }
1178
- __name(checkInt, "checkInt");
1179
- Buffer2.prototype.writeUintLE = Buffer2.prototype.writeUIntLE = /* @__PURE__ */ __name(function writeUIntLE(value, offset, byteLength2, noAssert) {
1180
- value = +value;
1181
- offset = offset >>> 0;
1182
- byteLength2 = byteLength2 >>> 0;
1183
- if (!noAssert) {
1184
- var maxBytes = Math.pow(2, 8 * byteLength2) - 1;
1185
- checkInt(this, value, offset, byteLength2, maxBytes, 0);
1186
- }
1187
- var mul = 1;
1188
- var i = 0;
1189
- this[offset] = value & 255;
1190
- while (++i < byteLength2 && (mul *= 256)) {
1191
- this[offset + i] = value / mul & 255;
1192
- }
1193
- return offset + byteLength2;
1194
- }, "writeUIntLE");
1195
- Buffer2.prototype.writeUintBE = Buffer2.prototype.writeUIntBE = /* @__PURE__ */ __name(function writeUIntBE(value, offset, byteLength2, noAssert) {
1196
- value = +value;
1197
- offset = offset >>> 0;
1198
- byteLength2 = byteLength2 >>> 0;
1199
- if (!noAssert) {
1200
- var maxBytes = Math.pow(2, 8 * byteLength2) - 1;
1201
- checkInt(this, value, offset, byteLength2, maxBytes, 0);
1202
- }
1203
- var i = byteLength2 - 1;
1204
- var mul = 1;
1205
- this[offset + i] = value & 255;
1206
- while (--i >= 0 && (mul *= 256)) {
1207
- this[offset + i] = value / mul & 255;
1208
- }
1209
- return offset + byteLength2;
1210
- }, "writeUIntBE");
1211
- Buffer2.prototype.writeUint8 = Buffer2.prototype.writeUInt8 = /* @__PURE__ */ __name(function writeUInt8(value, offset, noAssert) {
1212
- value = +value;
1213
- offset = offset >>> 0;
1214
- if (!noAssert) checkInt(this, value, offset, 1, 255, 0);
1215
- this[offset] = value & 255;
1216
- return offset + 1;
1217
- }, "writeUInt8");
1218
- Buffer2.prototype.writeUint16LE = Buffer2.prototype.writeUInt16LE = /* @__PURE__ */ __name(function writeUInt16LE(value, offset, noAssert) {
1219
- value = +value;
1220
- offset = offset >>> 0;
1221
- if (!noAssert) checkInt(this, value, offset, 2, 65535, 0);
1222
- this[offset] = value & 255;
1223
- this[offset + 1] = value >>> 8;
1224
- return offset + 2;
1225
- }, "writeUInt16LE");
1226
- Buffer2.prototype.writeUint16BE = Buffer2.prototype.writeUInt16BE = /* @__PURE__ */ __name(function writeUInt16BE(value, offset, noAssert) {
1227
- value = +value;
1228
- offset = offset >>> 0;
1229
- if (!noAssert) checkInt(this, value, offset, 2, 65535, 0);
1230
- this[offset] = value >>> 8;
1231
- this[offset + 1] = value & 255;
1232
- return offset + 2;
1233
- }, "writeUInt16BE");
1234
- Buffer2.prototype.writeUint32LE = Buffer2.prototype.writeUInt32LE = /* @__PURE__ */ __name(function writeUInt32LE(value, offset, noAssert) {
1235
- value = +value;
1236
- offset = offset >>> 0;
1237
- if (!noAssert) checkInt(this, value, offset, 4, 4294967295, 0);
1238
- this[offset + 3] = value >>> 24;
1239
- this[offset + 2] = value >>> 16;
1240
- this[offset + 1] = value >>> 8;
1241
- this[offset] = value & 255;
1242
- return offset + 4;
1243
- }, "writeUInt32LE");
1244
- Buffer2.prototype.writeUint32BE = Buffer2.prototype.writeUInt32BE = /* @__PURE__ */ __name(function writeUInt32BE(value, offset, noAssert) {
1245
- value = +value;
1246
- offset = offset >>> 0;
1247
- if (!noAssert) checkInt(this, value, offset, 4, 4294967295, 0);
1248
- this[offset] = value >>> 24;
1249
- this[offset + 1] = value >>> 16;
1250
- this[offset + 2] = value >>> 8;
1251
- this[offset + 3] = value & 255;
1252
- return offset + 4;
1253
- }, "writeUInt32BE");
1254
- Buffer2.prototype.writeIntLE = /* @__PURE__ */ __name(function writeIntLE(value, offset, byteLength2, noAssert) {
1255
- value = +value;
1256
- offset = offset >>> 0;
1257
- if (!noAssert) {
1258
- var limit = Math.pow(2, 8 * byteLength2 - 1);
1259
- checkInt(this, value, offset, byteLength2, limit - 1, -limit);
1260
- }
1261
- var i = 0;
1262
- var mul = 1;
1263
- var sub = 0;
1264
- this[offset] = value & 255;
1265
- while (++i < byteLength2 && (mul *= 256)) {
1266
- if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
1267
- sub = 1;
1268
- }
1269
- this[offset + i] = (value / mul >> 0) - sub & 255;
1270
- }
1271
- return offset + byteLength2;
1272
- }, "writeIntLE");
1273
- Buffer2.prototype.writeIntBE = /* @__PURE__ */ __name(function writeIntBE(value, offset, byteLength2, noAssert) {
1274
- value = +value;
1275
- offset = offset >>> 0;
1276
- if (!noAssert) {
1277
- var limit = Math.pow(2, 8 * byteLength2 - 1);
1278
- checkInt(this, value, offset, byteLength2, limit - 1, -limit);
1279
- }
1280
- var i = byteLength2 - 1;
1281
- var mul = 1;
1282
- var sub = 0;
1283
- this[offset + i] = value & 255;
1284
- while (--i >= 0 && (mul *= 256)) {
1285
- if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
1286
- sub = 1;
1287
- }
1288
- this[offset + i] = (value / mul >> 0) - sub & 255;
1289
- }
1290
- return offset + byteLength2;
1291
- }, "writeIntBE");
1292
- Buffer2.prototype.writeInt8 = /* @__PURE__ */ __name(function writeInt8(value, offset, noAssert) {
1293
- value = +value;
1294
- offset = offset >>> 0;
1295
- if (!noAssert) checkInt(this, value, offset, 1, 127, -128);
1296
- if (value < 0) value = 255 + value + 1;
1297
- this[offset] = value & 255;
1298
- return offset + 1;
1299
- }, "writeInt8");
1300
- Buffer2.prototype.writeInt16LE = /* @__PURE__ */ __name(function writeInt16LE(value, offset, noAssert) {
1301
- value = +value;
1302
- offset = offset >>> 0;
1303
- if (!noAssert) checkInt(this, value, offset, 2, 32767, -32768);
1304
- this[offset] = value & 255;
1305
- this[offset + 1] = value >>> 8;
1306
- return offset + 2;
1307
- }, "writeInt16LE");
1308
- Buffer2.prototype.writeInt16BE = /* @__PURE__ */ __name(function writeInt16BE(value, offset, noAssert) {
1309
- value = +value;
1310
- offset = offset >>> 0;
1311
- if (!noAssert) checkInt(this, value, offset, 2, 32767, -32768);
1312
- this[offset] = value >>> 8;
1313
- this[offset + 1] = value & 255;
1314
- return offset + 2;
1315
- }, "writeInt16BE");
1316
- Buffer2.prototype.writeInt32LE = /* @__PURE__ */ __name(function writeInt32LE(value, offset, noAssert) {
1317
- value = +value;
1318
- offset = offset >>> 0;
1319
- if (!noAssert) checkInt(this, value, offset, 4, 2147483647, -2147483648);
1320
- this[offset] = value & 255;
1321
- this[offset + 1] = value >>> 8;
1322
- this[offset + 2] = value >>> 16;
1323
- this[offset + 3] = value >>> 24;
1324
- return offset + 4;
1325
- }, "writeInt32LE");
1326
- Buffer2.prototype.writeInt32BE = /* @__PURE__ */ __name(function writeInt32BE(value, offset, noAssert) {
1327
- value = +value;
1328
- offset = offset >>> 0;
1329
- if (!noAssert) checkInt(this, value, offset, 4, 2147483647, -2147483648);
1330
- if (value < 0) value = 4294967295 + value + 1;
1331
- this[offset] = value >>> 24;
1332
- this[offset + 1] = value >>> 16;
1333
- this[offset + 2] = value >>> 8;
1334
- this[offset + 3] = value & 255;
1335
- return offset + 4;
1336
- }, "writeInt32BE");
1337
- function checkIEEE754(buf, value, offset, ext, max, min) {
1338
- if (offset + ext > buf.length) throw new RangeError("Index out of range");
1339
- if (offset < 0) throw new RangeError("Index out of range");
1340
- }
1341
- __name(checkIEEE754, "checkIEEE754");
1342
- function writeFloat(buf, value, offset, littleEndian, noAssert) {
1343
- value = +value;
1344
- offset = offset >>> 0;
1345
- if (!noAssert) {
1346
- checkIEEE754(buf, value, offset, 4);
1347
- }
1348
- ieee754.write(buf, value, offset, littleEndian, 23, 4);
1349
- return offset + 4;
1350
- }
1351
- __name(writeFloat, "writeFloat");
1352
- Buffer2.prototype.writeFloatLE = /* @__PURE__ */ __name(function writeFloatLE(value, offset, noAssert) {
1353
- return writeFloat(this, value, offset, true, noAssert);
1354
- }, "writeFloatLE");
1355
- Buffer2.prototype.writeFloatBE = /* @__PURE__ */ __name(function writeFloatBE(value, offset, noAssert) {
1356
- return writeFloat(this, value, offset, false, noAssert);
1357
- }, "writeFloatBE");
1358
- function writeDouble(buf, value, offset, littleEndian, noAssert) {
1359
- value = +value;
1360
- offset = offset >>> 0;
1361
- if (!noAssert) {
1362
- checkIEEE754(buf, value, offset, 8);
1363
- }
1364
- ieee754.write(buf, value, offset, littleEndian, 52, 8);
1365
- return offset + 8;
1366
- }
1367
- __name(writeDouble, "writeDouble");
1368
- Buffer2.prototype.writeDoubleLE = /* @__PURE__ */ __name(function writeDoubleLE(value, offset, noAssert) {
1369
- return writeDouble(this, value, offset, true, noAssert);
1370
- }, "writeDoubleLE");
1371
- Buffer2.prototype.writeDoubleBE = /* @__PURE__ */ __name(function writeDoubleBE(value, offset, noAssert) {
1372
- return writeDouble(this, value, offset, false, noAssert);
1373
- }, "writeDoubleBE");
1374
- Buffer2.prototype.copy = /* @__PURE__ */ __name(function copy(target, targetStart, start, end) {
1375
- if (!Buffer2.isBuffer(target)) throw new TypeError("argument should be a Buffer");
1376
- if (!start) start = 0;
1377
- if (!end && end !== 0) end = this.length;
1378
- if (targetStart >= target.length) targetStart = target.length;
1379
- if (!targetStart) targetStart = 0;
1380
- if (end > 0 && end < start) end = start;
1381
- if (end === start) return 0;
1382
- if (target.length === 0 || this.length === 0) return 0;
1383
- if (targetStart < 0) {
1384
- throw new RangeError("targetStart out of bounds");
1385
- }
1386
- if (start < 0 || start >= this.length) throw new RangeError("Index out of range");
1387
- if (end < 0) throw new RangeError("sourceEnd out of bounds");
1388
- if (end > this.length) end = this.length;
1389
- if (target.length - targetStart < end - start) {
1390
- end = target.length - targetStart + start;
1391
- }
1392
- var len = end - start;
1393
- if (this === target && typeof Uint8Array.prototype.copyWithin === "function") {
1394
- this.copyWithin(targetStart, start, end);
1395
- } else {
1396
- Uint8Array.prototype.set.call(target, this.subarray(start, end), targetStart);
1397
- }
1398
- return len;
1399
- }, "copy");
1400
- Buffer2.prototype.fill = /* @__PURE__ */ __name(function fill(val, start, end, encoding) {
1401
- if (typeof val === "string") {
1402
- if (typeof start === "string") {
1403
- encoding = start;
1404
- start = 0;
1405
- end = this.length;
1406
- } else if (typeof end === "string") {
1407
- encoding = end;
1408
- end = this.length;
1409
- }
1410
- if (encoding !== void 0 && typeof encoding !== "string") {
1411
- throw new TypeError("encoding must be a string");
1412
- }
1413
- if (typeof encoding === "string" && !Buffer2.isEncoding(encoding)) {
1414
- throw new TypeError("Unknown encoding: " + encoding);
1415
- }
1416
- if (val.length === 1) {
1417
- var code = val.charCodeAt(0);
1418
- if (encoding === "utf8" && code < 128 || encoding === "latin1") {
1419
- val = code;
1420
- }
1421
- }
1422
- } else if (typeof val === "number") {
1423
- val = val & 255;
1424
- } else if (typeof val === "boolean") {
1425
- val = Number(val);
1426
- }
1427
- if (start < 0 || this.length < start || this.length < end) {
1428
- throw new RangeError("Out of range index");
1429
- }
1430
- if (end <= start) {
1431
- return this;
1432
- }
1433
- start = start >>> 0;
1434
- end = end === void 0 ? this.length : end >>> 0;
1435
- if (!val) val = 0;
1436
- var i;
1437
- if (typeof val === "number") {
1438
- for (i = start; i < end; ++i) {
1439
- this[i] = val;
1440
- }
1441
- } else {
1442
- var bytes = Buffer2.isBuffer(val) ? val : Buffer2.from(val, encoding);
1443
- var len = bytes.length;
1444
- if (len === 0) {
1445
- throw new TypeError('The value "' + val + '" is invalid for argument "value"');
1446
- }
1447
- for (i = 0; i < end - start; ++i) {
1448
- this[i + start] = bytes[i % len];
1449
- }
1450
- }
1451
- return this;
1452
- }, "fill");
1453
- var INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g;
1454
- function base64clean(str) {
1455
- str = str.split("=")[0];
1456
- str = str.trim().replace(INVALID_BASE64_RE, "");
1457
- if (str.length < 2) return "";
1458
- while (str.length % 4 !== 0) {
1459
- str = str + "=";
1460
- }
1461
- return str;
1462
- }
1463
- __name(base64clean, "base64clean");
1464
- function utf8ToBytes(string, units) {
1465
- units = units || Infinity;
1466
- var codePoint;
1467
- var length = string.length;
1468
- var leadSurrogate = null;
1469
- var bytes = [];
1470
- for (var i = 0; i < length; ++i) {
1471
- codePoint = string.charCodeAt(i);
1472
- if (codePoint > 55295 && codePoint < 57344) {
1473
- if (!leadSurrogate) {
1474
- if (codePoint > 56319) {
1475
- if ((units -= 3) > -1) bytes.push(239, 191, 189);
1476
- continue;
1477
- } else if (i + 1 === length) {
1478
- if ((units -= 3) > -1) bytes.push(239, 191, 189);
1479
- continue;
1480
- }
1481
- leadSurrogate = codePoint;
1482
- continue;
1483
- }
1484
- if (codePoint < 56320) {
1485
- if ((units -= 3) > -1) bytes.push(239, 191, 189);
1486
- leadSurrogate = codePoint;
1487
- continue;
1488
- }
1489
- codePoint = (leadSurrogate - 55296 << 10 | codePoint - 56320) + 65536;
1490
- } else if (leadSurrogate) {
1491
- if ((units -= 3) > -1) bytes.push(239, 191, 189);
1492
- }
1493
- leadSurrogate = null;
1494
- if (codePoint < 128) {
1495
- if ((units -= 1) < 0) break;
1496
- bytes.push(codePoint);
1497
- } else if (codePoint < 2048) {
1498
- if ((units -= 2) < 0) break;
1499
- bytes.push(codePoint >> 6 | 192, codePoint & 63 | 128);
1500
- } else if (codePoint < 65536) {
1501
- if ((units -= 3) < 0) break;
1502
- bytes.push(codePoint >> 12 | 224, codePoint >> 6 & 63 | 128, codePoint & 63 | 128);
1503
- } else if (codePoint < 1114112) {
1504
- if ((units -= 4) < 0) break;
1505
- bytes.push(codePoint >> 18 | 240, codePoint >> 12 & 63 | 128, codePoint >> 6 & 63 | 128, codePoint & 63 | 128);
1506
- } else {
1507
- throw new Error("Invalid code point");
1508
- }
1509
- }
1510
- return bytes;
1511
- }
1512
- __name(utf8ToBytes, "utf8ToBytes");
1513
- function asciiToBytes(str) {
1514
- var byteArray = [];
1515
- for (var i = 0; i < str.length; ++i) {
1516
- byteArray.push(str.charCodeAt(i) & 255);
1517
- }
1518
- return byteArray;
1519
- }
1520
- __name(asciiToBytes, "asciiToBytes");
1521
- function utf16leToBytes(str, units) {
1522
- var c, hi, lo;
1523
- var byteArray = [];
1524
- for (var i = 0; i < str.length; ++i) {
1525
- if ((units -= 2) < 0) break;
1526
- c = str.charCodeAt(i);
1527
- hi = c >> 8;
1528
- lo = c % 256;
1529
- byteArray.push(lo);
1530
- byteArray.push(hi);
1531
- }
1532
- return byteArray;
1533
- }
1534
- __name(utf16leToBytes, "utf16leToBytes");
1535
- function base64ToBytes(str) {
1536
- return base64.toByteArray(base64clean(str));
1537
- }
1538
- __name(base64ToBytes, "base64ToBytes");
1539
- function blitBuffer(src, dst, offset, length) {
1540
- for (var i = 0; i < length; ++i) {
1541
- if (i + offset >= dst.length || i >= src.length) break;
1542
- dst[i + offset] = src[i];
1543
- }
1544
- return i;
1545
- }
1546
- __name(blitBuffer, "blitBuffer");
1547
- function isInstance(obj, type) {
1548
- return obj instanceof type || obj != null && obj.constructor != null && obj.constructor.name != null && obj.constructor.name === type.name;
1549
- }
1550
- __name(isInstance, "isInstance");
1551
- function numberIsNaN(obj) {
1552
- return obj !== obj;
1553
- }
1554
- __name(numberIsNaN, "numberIsNaN");
1555
- var hexSliceLookupTable = (function() {
1556
- var alphabet = "0123456789abcdef";
1557
- var table = new Array(256);
1558
- for (var i = 0; i < 16; ++i) {
1559
- var i16 = i * 16;
1560
- for (var j = 0; j < 16; ++j) {
1561
- table[i16 + j] = alphabet[i] + alphabet[j];
1562
- }
1563
- }
1564
- return table;
1565
- })();
1566
- }
1567
- });
14
+ // ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/change-detector.js
15
+ init_esm_shims();
1568
16
 
1569
17
  // ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/changes.js
18
+ init_esm_shims();
1570
19
  var __\u03A9Pick = [
1571
20
  "T",
1572
21
  "K",
@@ -1807,7 +256,20 @@ atomicChange.__type = [
1807
256
  'P"2!"/"'
1808
257
  ];
1809
258
 
259
+ // ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/snapshot.js
260
+ init_esm_shims();
261
+
262
+ // ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/reflection/type.js
263
+ init_esm_shims();
264
+
265
+ // ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/reflection/reflection.js
266
+ init_esm_shims();
267
+
268
+ // ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/reflection/processor.js
269
+ init_esm_shims();
270
+
1810
271
  // ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/debug.js
272
+ init_esm_shims();
1811
273
  function isDebug(level = 1) {
1812
274
  const expected = "deepkit" + (level > 1 ? "+".repeat(level - 1) : "");
1813
275
  return "undefined" !== typeof process && "string" === typeof process.env.DEBUG && process.env.DEBUG.includes(expected);
@@ -1842,7 +304,11 @@ debug2.__type = [
1842
304
  'P"@2!$/"'
1843
305
  ];
1844
306
 
307
+ // ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/decorator.js
308
+ init_esm_shims();
309
+
1845
310
  // ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/decorator-builder.js
311
+ init_esm_shims();
1846
312
  var __\u03A9Omit = [
1847
313
  "T",
1848
314
  "K",
@@ -2486,7 +952,7 @@ isDecoratorContext.__type = [
2486
952
  ];
2487
953
 
2488
954
  // ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/core.js
2489
- var import_buffer = __toESM(require_buffer(), 1);
955
+ init_esm_shims();
2490
956
  var __\u03A9ArrayBufferLike = [
2491
957
  () => __\u03A9ArrayBufferTypes,
2492
958
  () => __\u03A9ArrayBufferTypes,
@@ -2547,7 +1013,7 @@ function nodeBufferToTypedArray(buf, type) {
2547
1013
  }
2548
1014
  __name(nodeBufferToTypedArray, "nodeBufferToTypedArray");
2549
1015
  nodeBufferToTypedArray.__type = [
2550
- () => import_buffer.Buffer,
1016
+ () => Buffer,
2551
1017
  "buf",
2552
1018
  () => __\u03A9TypedArrayClassType,
2553
1019
  "type",
@@ -2573,7 +1039,7 @@ function base64ToTypedArray(base64, type) {
2573
1039
  if ("function" === typeof atob) {
2574
1040
  return new type(base64ToUint8ArrayAtoB(base64).buffer);
2575
1041
  }
2576
- return nodeBufferToTypedArray(import_buffer.Buffer.from(base64, "base64"), type);
1042
+ return nodeBufferToTypedArray(Buffer.from(base64, "base64"), type);
2577
1043
  }
2578
1044
  __name(base64ToTypedArray, "base64ToTypedArray");
2579
1045
  base64ToTypedArray.__type = [
@@ -2587,7 +1053,7 @@ function base64ToArrayBuffer(base64) {
2587
1053
  if ("function" === typeof atob) {
2588
1054
  return base64ToUint8ArrayAtoB(base64).buffer;
2589
1055
  }
2590
- return nodeBufferToArrayBuffer(import_buffer.Buffer.from(base64, "base64"));
1056
+ return nodeBufferToArrayBuffer(Buffer.from(base64, "base64"));
2591
1057
  }
2592
1058
  __name(base64ToArrayBuffer, "base64ToArrayBuffer");
2593
1059
  base64ToArrayBuffer.__type = [
@@ -2606,19 +1072,19 @@ nodeBufferToArrayBuffer.__type = [
2606
1072
  'PPW_J2!_/"'
2607
1073
  ];
2608
1074
  function typedArrayToBuffer(typedArray) {
2609
- if (typedArray instanceof import_buffer.Buffer) return typedArray;
2610
- return import_buffer.Buffer.from(typedArray.buffer, typedArray.byteOffset, typedArray.byteLength);
1075
+ if (typedArray instanceof Buffer) return typedArray;
1076
+ return Buffer.from(typedArray.buffer, typedArray.byteOffset, typedArray.byteLength);
2611
1077
  }
2612
1078
  __name(typedArrayToBuffer, "typedArrayToBuffer");
2613
1079
  typedArrayToBuffer.__type = [
2614
1080
  () => __\u03A9TypedArray,
2615
1081
  "typedArray",
2616
- () => import_buffer.Buffer,
1082
+ () => Buffer,
2617
1083
  "typedArrayToBuffer",
2618
1084
  'Pn!2"P7#/$'
2619
1085
  ];
2620
1086
  function arrayBufferToBase64(arrayBuffer) {
2621
- return import_buffer.Buffer.from(arrayBuffer).toString("base64");
1087
+ return Buffer.from(arrayBuffer).toString("base64");
2622
1088
  }
2623
1089
  __name(arrayBufferToBase64, "arrayBufferToBase64");
2624
1090
  arrayBufferToBase64.__type = [
@@ -2637,7 +1103,7 @@ typedArrayToBase64.__type = [
2637
1103
  'Pn!2"&/#'
2638
1104
  ];
2639
1105
  function arrayBufferFrom(data, encoding) {
2640
- return nodeBufferToArrayBuffer(import_buffer.Buffer.from(data, encoding));
1106
+ return nodeBufferToArrayBuffer(Buffer.from(data, encoding));
2641
1107
  }
2642
1108
  __name(arrayBufferFrom, "arrayBufferFrom");
2643
1109
  arrayBufferFrom.__type = [
@@ -2647,7 +1113,7 @@ arrayBufferFrom.__type = [
2647
1113
  'P&2!&2"8_/#'
2648
1114
  ];
2649
1115
  function arrayBufferTo(arrayBuffer, encoding) {
2650
- return import_buffer.Buffer.from(arrayBuffer).toString(encoding);
1116
+ return Buffer.from(arrayBuffer).toString(encoding);
2651
1117
  }
2652
1118
  __name(arrayBufferTo, "arrayBufferTo");
2653
1119
  arrayBufferTo.__type = [
@@ -2837,6 +1303,7 @@ addDeferredDecorator.__type = [
2837
1303
  ];
2838
1304
 
2839
1305
  // ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/reflection/extends.js
1306
+ init_esm_shims();
2840
1307
  function __assignType2(fn, args) {
2841
1308
  fn.__type = args;
2842
1309
  return fn;
@@ -3579,6 +2046,7 @@ inferFromTuple.__type = [
3579
2046
  ];
3580
2047
 
3581
2048
  // ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/reflection/state.js
2049
+ init_esm_shims();
3582
2050
  var state = {
3583
2051
  nominalId: 1
3584
2052
  };
@@ -5981,6 +4449,7 @@ resolveFunction.__type = [
5981
4449
  ];
5982
4450
 
5983
4451
  // ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/inheritance.js
4452
+ init_esm_shims();
5984
4453
  function findCommonLiteral(reflectionClasses) {
5985
4454
  const candidates = {};
5986
4455
  for (const schema of reflectionClasses) {
@@ -6023,39 +4492,52 @@ findCommonLiteral.__type = [
6023
4492
  'PP"7!F2"P&-J/#'
6024
4493
  ];
6025
4494
 
6026
- // ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-browser/rng.js
6027
- var getRandomValues;
6028
- var rnds8 = new Uint8Array(16);
4495
+ // ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/type-serialization.js
4496
+ init_esm_shims();
4497
+
4498
+ // ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/utils.js
4499
+ init_esm_shims();
4500
+
4501
+ // ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-node/index.js
4502
+ init_esm_shims();
4503
+
4504
+ // ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-node/rng.js
4505
+ init_esm_shims();
4506
+ var rnds8Pool = new Uint8Array(256);
4507
+ var poolPtr = rnds8Pool.length;
6029
4508
  function rng() {
6030
- if (!getRandomValues) {
6031
- getRandomValues = typeof crypto !== "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== "undefined" && typeof msCrypto.getRandomValues === "function" && msCrypto.getRandomValues.bind(msCrypto);
6032
- if (!getRandomValues) {
6033
- throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
6034
- }
4509
+ if (poolPtr > rnds8Pool.length - 16) {
4510
+ crypto.randomFillSync(rnds8Pool);
4511
+ poolPtr = 0;
6035
4512
  }
6036
- return getRandomValues(rnds8);
4513
+ return rnds8Pool.slice(poolPtr, poolPtr += 16);
6037
4514
  }
6038
4515
  __name(rng, "rng");
6039
4516
 
6040
- // ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-browser/regex.js
4517
+ // ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-node/stringify.js
4518
+ init_esm_shims();
4519
+
4520
+ // ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-node/validate.js
4521
+ init_esm_shims();
4522
+
4523
+ // ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-node/regex.js
4524
+ init_esm_shims();
6041
4525
  var regex_default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
6042
4526
 
6043
- // ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-browser/validate.js
4527
+ // ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-node/validate.js
6044
4528
  function validate(uuid2) {
6045
4529
  return typeof uuid2 === "string" && regex_default.test(uuid2);
6046
4530
  }
6047
4531
  __name(validate, "validate");
6048
4532
  var validate_default = validate;
6049
4533
 
6050
- // ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-browser/stringify.js
4534
+ // ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-node/stringify.js
6051
4535
  var byteToHex = [];
6052
- for (i = 0; i < 256; ++i) {
4536
+ for (let i = 0; i < 256; ++i) {
6053
4537
  byteToHex.push((i + 256).toString(16).substr(1));
6054
4538
  }
6055
- var i;
6056
- function stringify(arr) {
6057
- var offset = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
6058
- var uuid2 = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
4539
+ function stringify(arr, offset = 0) {
4540
+ const uuid2 = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
6059
4541
  if (!validate_default(uuid2)) {
6060
4542
  throw TypeError("Stringified UUID is invalid");
6061
4543
  }
@@ -6064,15 +4546,16 @@ function stringify(arr) {
6064
4546
  __name(stringify, "stringify");
6065
4547
  var stringify_default = stringify;
6066
4548
 
6067
- // ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-browser/v4.js
4549
+ // ../../node_modules/.pnpm/uuid@8.3.2/node_modules/uuid/dist/esm-node/v4.js
4550
+ init_esm_shims();
6068
4551
  function v4(options, buf, offset) {
6069
4552
  options = options || {};
6070
- var rnds = options.random || (options.rng || rng)();
4553
+ const rnds = options.random || (options.rng || rng)();
6071
4554
  rnds[6] = rnds[6] & 15 | 64;
6072
4555
  rnds[8] = rnds[8] & 63 | 128;
6073
4556
  if (buf) {
6074
4557
  offset = offset || 0;
6075
- for (var i = 0; i < 16; ++i) {
4558
+ for (let i = 0; i < 16; ++i) {
6076
4559
  buf[offset + i] = rnds[i];
6077
4560
  }
6078
4561
  return buf;
@@ -12686,7 +11169,11 @@ annotateClass.__type = [
12686
11169
  'PPn!n"J2#"o$"2%8"/&'
12687
11170
  ];
12688
11171
 
11172
+ // ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/serializer.js
11173
+ init_esm_shims();
11174
+
12689
11175
  // ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/reference.js
11176
+ init_esm_shims();
12690
11177
  function __assignType7(fn, args) {
12691
11178
  fn.__type = args;
12692
11179
  return fn;
@@ -12876,7 +11363,11 @@ createReferenceClass.__type = [
12876
11363
  'PP"7!2""o#"/$'
12877
11364
  ];
12878
11365
 
11366
+ // ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/validator.js
11367
+ init_esm_shims();
11368
+
12879
11369
  // ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/typeguard.js
11370
+ init_esm_shims();
12880
11371
  function __assignType8(fn, args) {
12881
11372
  fn.__type = args;
12882
11373
  return fn;
@@ -13324,6 +11815,7 @@ validates.__type = [
13324
11815
  ];
13325
11816
 
13326
11817
  // ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/validators.js
11818
+ init_esm_shims();
13327
11819
  function __assignType10(fn, args) {
13328
11820
  fn.__type = args;
13329
11821
  return fn;
@@ -17612,6 +16104,7 @@ buildChanges.__type = [
17612
16104
  ];
17613
16105
 
17614
16106
  // ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/default.js
16107
+ init_esm_shims();
17615
16108
  function defaultValue(type) {
17616
16109
  switch (type.kind) {
17617
16110
  case ReflectionKind.void:
@@ -17714,6 +16207,7 @@ defaultValue.__type = [
17714
16207
  ];
17715
16208
 
17716
16209
  // ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/mixin.js
16210
+ init_esm_shims();
17717
16211
  function __assignType14(fn, args) {
17718
16212
  fn.__type = args;
17719
16213
  return fn;
@@ -17778,6 +16272,7 @@ mixin.__type = [
17778
16272
  ];
17779
16273
 
17780
16274
  // ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/path.js
16275
+ init_esm_shims();
17781
16276
  var __\u03A9Resolver = [
17782
16277
  "path",
17783
16278
  "Type",
@@ -17918,6 +16413,7 @@ pathResolver.__type = [
17918
16413
  ];
17919
16414
 
17920
16415
  // ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/registry.js
16416
+ init_esm_shims();
17921
16417
  var __\u03A9RegistryDecorator = [
17922
16418
  "T",
17923
16419
  "Type",
@@ -18052,6 +16548,7 @@ TypeRegistry.__type = [
18052
16548
  ];
18053
16549
 
18054
16550
  // ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/serializer-facade.js
16551
+ init_esm_shims();
18055
16552
  function __assignType15(fn, args) {
18056
16553
  fn.__type = args;
18057
16554
  return fn;
@@ -18335,6 +16832,7 @@ validatedDeserialize.__type = [
18335
16832
  ];
18336
16833
 
18337
16834
  // ../../node_modules/.pnpm/@deepkit+type@1.0.5_patch_hash=b2d2ba2e4ddca11757d65b5c17ef456439accd6f1b86325f0a81d5ff_9c5066bcad2b41c430f9fe2a690de22b/node_modules/@deepkit/type/dist/esm/src/types.js
16835
+ init_esm_shims();
18338
16836
  var __\u03A9AutoId = [
18339
16837
  () => __\u03A9PrimaryKey,
18340
16838
  () => __\u03A9AutoIncrement,
@@ -18342,20 +16840,5 @@ var __\u03A9AutoId = [
18342
16840
  "AutoId",
18343
16841
  `P'n!n"n#Kw$y`
18344
16842
  ];
18345
- /*! Bundled license information:
18346
-
18347
- ieee754/index.js:
18348
- (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
18349
-
18350
- buffer/index.js:
18351
- (*!
18352
- * The buffer module from node.js, for the browser.
18353
- *
18354
- * @author Feross Aboukhadijeh <https://feross.org>
18355
- * @license MIT
18356
- *)
18357
- */
18358
16843
 
18359
16844
  export { AnnotationDefinition, AtomicChangeInstance, CartesianProduct, Changes, ContainerAccessor, EMAIL_REGEX, EmptySerializer, EntityData, ItemChanges, JitStack, NamingStrategy, NoTypeReceived, PackStruct, Processor, ReflectionClass, ReflectionFunction, ReflectionKind, ReflectionMethod, ReflectionParameter, ReflectionProperty, ReflectionVisibility, RuntimeCode, SerializationError, Serializer, TData, TemplateRegistry, TemplateState, TypeGuardRegistry, TypeRegistry, UUIDAnnotation, UnpopulatedCheck, ValidationError, ValidationErrorItem, ValidatorError, __ΩAPIClass, __ΩAPIProperty, __ΩAfterDate, __ΩAfterNow, __ΩAlpha, __ΩAlphanumeric, __ΩAnnotationType, __ΩAnnotations, __ΩAscii, __ΩAutoId, __ΩAutoIncrement, __ΩBackReference, __ΩBackReferenceOptions, __ΩBackReferenceOptionsResolved, __ΩBeforeDate, __ΩBeforeNow, __ΩBinary, __ΩBinaryBigInt, __ΩBinaryBigIntType, __ΩChangesInterface, __ΩClassApiTypeInterface, __ΩClassDecoratorFn, __ΩClassDecoratorResult, __ΩData, __ΩDatabaseField, __ΩDatabaseFieldOptions, __ΩDecimal, __ΩDecoratorAndFetchSignature, __ΩDeepPartial, __ΩDualDecorator, __ΩEmail, __ΩEmbedded, __ΩEmbeddedMeta, __ΩEmbeddedOptions, __ΩEntity, __ΩEntityOptions, __ΩExcluded, __ΩExcludes, __ΩExclusiveMaximum, __ΩExclusiveMinimum, __ΩExpression, __ΩExtractApiDataType, __ΩExtractClass, __ΩFindType, __ΩFluidDecorator, __ΩFreeDecoratorFn, __ΩFreeDecoratorResult, __ΩFreeFluidDecorator, __ΩGroup, __ΩGuard, __ΩIncludes, __ΩIndex, __ΩIndexOptions, __ΩInlineRuntimeType, __ΩJSONEntity, __ΩJSONPartial, __ΩJSONPartialObject, __ΩJSONSingle, __ΩJitContainer, __ΩMapName, __ΩMaxLength, __ΩMaximum, __ΩMerge, __ΩMinLength, __ΩMinimum, __ΩMongoId, __ΩMultipleOf, __ΩMySQL, __ΩMySQLOptions, __ΩNegative, __ΩNegativeNoZero, __ΩNumberFields, __ΩPacked, __ΩParentLessType, __ΩPartial, __ΩPattern, __ΩPositive, __ΩPositiveNoZero, __ΩPostgres, __ΩPostgresOptions, __ΩPrimaryKey, __ΩPrimaryKeyFields, __ΩPrimaryKeyType, __ΩPropertyApiTypeInterface, __ΩPropertyDecoratorFn, __ΩPropertyDecoratorResult, __ΩReceiveType, __ΩReference, __ΩReferenceActions, __ΩReferenceFields, __ΩReferenceInfo, __ΩReferenceItemInfo, __ΩReferenceOptions, __ΩReflectOptions, __ΩReflectionKind, __ΩReflectionVisibility, __ΩResetAnnotation, __ΩResolver, __ΩRuntimeStackEntry, __ΩSQLite, __ΩSerializationOptions, __ΩSerializeFunction, __ΩSerializedType, __ΩSerializedTypeAnnotations, __ΩSerializedTypeArray, __ΩSerializedTypeBaseMember, __ΩSerializedTypeClassType, __ΩSerializedTypeEnum, __ΩSerializedTypeFunction, __ΩSerializedTypeIndexSignature, __ΩSerializedTypeInfer, __ΩSerializedTypeIntersection, __ΩSerializedTypeLiteral, __ΩSerializedTypeMethod, __ΩSerializedTypeMethodSignature, __ΩSerializedTypeObjectLiteral, __ΩSerializedTypeParameter, __ΩSerializedTypePromise, __ΩSerializedTypeProperty, __ΩSerializedTypePropertySignature, __ΩSerializedTypeReference, __ΩSerializedTypeRest, __ΩSerializedTypeTemplateLiteral, __ΩSerializedTypeTuple, __ΩSerializedTypeTupleMember, __ΩSerializedTypeTypeParameter, __ΩSerializedTypeUnion, __ΩSerializedTypes, __ΩSerializerFn, __ΩSerializerState, __ΩSignedBinaryBigInt, __ΩSimpleSerializedType, __ΩSqliteOptions, __ΩTagsReflection, __ΩTemplate, __ΩTemplateHook, __ΩTypeAny, __ΩTypeArray, __ΩTypeBaseMember, __ΩTypeBigInt, __ΩTypeBoolean, __ΩTypeCallSignature, __ΩTypeClass, __ΩTypeDecorator, __ΩTypeEnum, __ΩTypeEnumMember, __ΩTypeFunction, __ΩTypeIndexSignature, __ΩTypeInfer, __ΩTypeIntersection, __ΩTypeLiteral, __ΩTypeMethod, __ΩTypeMethodSignature, __ΩTypeNever, __ΩTypeNull, __ΩTypeNumber, __ΩTypeObject, __ΩTypeObjectLiteral, __ΩTypeParameter, __ΩTypePromise, __ΩTypeProperty, __ΩTypePropertySignature, __ΩTypeRegexp, __ΩTypeRest, __ΩTypeSettings, __ΩTypeString, __ΩTypeSymbol, __ΩTypeTemplateLiteral, __ΩTypeTuple, __ΩTypeTupleMember, __ΩTypeTypeParameter, __ΩTypeUndefined, __ΩTypeUnion, __ΩTypeUnknown, __ΩTypeVoid, __ΩTypedArray, __ΩTypedArrayClassType, __ΩUUID, __ΩUnionToIntersection, __ΩUnique, __ΩUnpopulatedCheck, __ΩValidate, __ΩValidateFunction, __ΩValidatorMeta, __ΩWiden, __ΩWithAnnotations, __Ωfloat, __Ωfloat32, __Ωfloat64, __Ωint16, __Ωint32, __Ωint8, __Ωinteger, __Ωuint16, __Ωuint32, __Ωuint8, _isExtendable, addType, annotateClass, applyScheduledAnnotations, arrayBufferFrom, arrayBufferTo, arrayBufferToBase64, assert, assertType, atomicChange, autoIncrementAnnotation, backReferenceAnnotation, base64ToArrayBuffer, base64ToTypedArray, binaryBigIntAnnotation, binaryTypes, buildChanges, buildFunction, callExtractedFunctionIfAvailable, cast, castFunction, changeSetSymbol, clearTypeJitContainer, cloneClass, collapsePath, copyAndSetParent, createClassDecoratorContext, createConverterJSForMember, createFluidDecorator, createFreeDecoratorContext, createPromiseObjectLiteral, createPropertyDecoratorContext, createReference, createReferenceClass, createSerializeFunction, createSnapshot, createTypeGuardFunction, dataAnnotation, databaseAnnotation, defaultAnnotation, defaultValue, deserialize2 as deserialize, deserializeEmbedded, deserializeFunction, deserializeType, embeddedAnnotation, emptyObject, encodeOps, entity, entityAnnotation, excludedAnnotation, executeTemplates, executeTypeArgumentAsArray, extendTemplateLiteral, extractStateToFunctionAndCallIt, findMember, flatten, flattenUnionTypes, forwardMapToArray, forwardSetToArray, genericEqual, getAlias, getAnnotationMeta, getAnnotations, getBackReferenceType, getChangeDetector, getClassType, getConstructorProperties, getConverterForSnapshot, getDeepConstructorProperties, getDomain, getEmbeddedProperty, getEnumType, getEnumValueIndexMatcher, getIndexCheck, getKeyType, getMapTypeToArray, getMember, getNTypeToArray, getNameExpression, getNominalId, getOrCreateReferenceItemInfo, getPartialSerializeFunction, getPartialType, getPatchSerializeFunction, getPermission, getPrimaryKeyExtractor, getPrimaryKeyHashGenerator, getProperty, getPropertyNameString, getReferenceInfo, getReferenceItemInfo, getReferenceType, getSerializeFunction, getSetTypeToArray, getSimplePrimaryKeyHashGenerator, getStaticDefaultCodeForProperty, getTags, getTitle, getTypeJitContainer, getTypeObjectLiteralFromTypeClass, getValidatorFunction, getValueType, groupAnnotation, guard, handleUnion, hasCircularReference, hasDefaultValue, hasEmbedded, hasMember, hasTypeInformation, inAccessor, indexAccess, indexAnnotation, is, isAutoIncrementType, isBackReferenceType, isBinary, isBinaryBigIntType, isCustomTypeClass, isDateType, isDecoratorContext, isExtendable, isGlobalTypeClass, isHidden, isIgnore, isIntegerType, isInternal, isMapType, isMember, isMongoIdType, isNullable, isOptional, isPrimaryKeyType, isPrimitive, isPropertyMemberType, isPropertyType, isReadonly, isReferenceHydrated, isReferenceInstance, isReferenceType, isSameType, isSetType, isType, isTypeClassOf, isTypeIncluded, isUUIDType, isWithAnnotations, isWithDeferredDecorators, mapNameAnnotation, markAsHydrated, memberNameToString, merge, mergeDecorator, typeAnnotation as metaAnnotation, mixin, mongoIdAnnotation, narrowOriginalLiteral, nodeBufferToArrayBuffer, nodeBufferToTypedArray, noopTemplate, pack, parametersToTuple, patch, pathResolver, primaryKeyAnnotation, propertiesOf, referenceAnnotation, referenceItemSymbol, referenceSymbol, reflect, reflectOrUndefined, reflectionClassSymbol, regExpFromString, registerTypeDecorator, removeNominal, removeTypeName, resolveClassType, resolveForeignReflectionClass, resolvePacked, resolvePath, resolveProperty, resolveReceiveType, resolveRuntimeType, resolveTypeMembers, serializableKinds, serialize2 as serialize, serializeArray, serializeFunction, serializeObjectLiteral, serializePropertyOrParameter, serializeType, serializer, snapshotSerializer, sortSignatures, stringifyResolvedType, stringifyShortResolvedType, stringifyType, stringifyUuid, t, toSignature, typeAnnotation, typeDecorators, typeGuardArray, typeGuardEmbedded, typeGuardObjectLiteral, typeInfer, typeOf, typeSettings, typeToObject, typedArrayToBase64, typedArrayToBuffer, unboxUnion, underscoreNamingStrategy, unpack, unpopulatedSymbol, uuid, uuidAnnotation, validate2 as validate, validateFunction, validatePropertyOrParameter, validatedDeserialize, validates, validationAnnotation, validators, valuesOf, visit, widenLiteral, writeUuid };
18360
- //# sourceMappingURL=type.js.map
18361
- //# sourceMappingURL=type.js.map