@dxos/node-std 0.12.0-next-73daef452f1464b62efdbca75fb0067c1066f264 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/lib/_/config.mjs +22 -0
  2. package/dist/lib/_/config.mjs.map +1 -0
  3. package/dist/lib/assert.mjs +1613 -0
  4. package/dist/lib/assert.mjs.map +1 -0
  5. package/dist/lib/buffer.mjs +6 -0
  6. package/dist/lib/buffer.mjs.map +1 -0
  7. package/dist/lib/chunk-buffer.mjs +1459 -0
  8. package/dist/lib/chunk-buffer.mjs.map +1 -0
  9. package/dist/lib/chunk-rolldown-runtime.mjs +24 -0
  10. package/dist/lib/chunk-util.mjs +1758 -0
  11. package/dist/lib/chunk-util.mjs.map +1 -0
  12. package/dist/lib/crypto.mjs +8 -0
  13. package/dist/lib/crypto.mjs.map +1 -0
  14. package/dist/lib/events.mjs +302 -0
  15. package/dist/lib/events.mjs.map +1 -0
  16. package/dist/lib/{browser/fs → fs}/promises.mjs +6 -37
  17. package/dist/lib/fs/promises.mjs.map +1 -0
  18. package/dist/lib/fs.mjs +20 -0
  19. package/dist/lib/fs.mjs.map +1 -0
  20. package/dist/lib/globals.mjs +17 -0
  21. package/dist/lib/globals.mjs.map +1 -0
  22. package/dist/lib/inject-globals.mjs +10 -0
  23. package/dist/lib/inject-globals.mjs.map +1 -0
  24. package/dist/lib/path.mjs +351 -0
  25. package/dist/lib/path.mjs.map +1 -0
  26. package/dist/lib/process.mjs +101 -0
  27. package/dist/lib/process.mjs.map +1 -0
  28. package/dist/lib/stream.mjs +2 -0
  29. package/dist/lib/util.mjs +18 -0
  30. package/dist/lib/util.mjs.map +1 -0
  31. package/dist/types/tsconfig.tsbuildinfo +1 -1
  32. package/package.json +18 -17
  33. package/dist/lib/browser/_/config.mjs +0 -21
  34. package/dist/lib/browser/_/config.mjs.map +0 -7
  35. package/dist/lib/browser/assert.mjs +0 -2069
  36. package/dist/lib/browser/assert.mjs.map +0 -7
  37. package/dist/lib/browser/buffer.mjs +0 -14
  38. package/dist/lib/browser/buffer.mjs.map +0 -7
  39. package/dist/lib/browser/chunk-4QUCD27N.mjs +0 -29
  40. package/dist/lib/browser/chunk-4QUCD27N.mjs.map +0 -7
  41. package/dist/lib/browser/chunk-6GGEUYZ7.mjs +0 -1797
  42. package/dist/lib/browser/chunk-6GGEUYZ7.mjs.map +0 -7
  43. package/dist/lib/browser/chunk-BSSMCHER.mjs +0 -35
  44. package/dist/lib/browser/chunk-BSSMCHER.mjs.map +0 -7
  45. package/dist/lib/browser/chunk-QN6WLX5Z.mjs +0 -111
  46. package/dist/lib/browser/chunk-QN6WLX5Z.mjs.map +0 -7
  47. package/dist/lib/browser/chunk-ZPZXUN32.mjs +0 -2265
  48. package/dist/lib/browser/chunk-ZPZXUN32.mjs.map +0 -7
  49. package/dist/lib/browser/crypto.mjs +0 -10
  50. package/dist/lib/browser/crypto.mjs.map +0 -7
  51. package/dist/lib/browser/events.mjs +0 -383
  52. package/dist/lib/browser/events.mjs.map +0 -7
  53. package/dist/lib/browser/fs/promises.mjs.map +0 -7
  54. package/dist/lib/browser/fs.mjs +0 -27
  55. package/dist/lib/browser/fs.mjs.map +0 -7
  56. package/dist/lib/browser/globals.mjs +0 -5
  57. package/dist/lib/browser/globals.mjs.map +0 -7
  58. package/dist/lib/browser/inject-globals.mjs +0 -20
  59. package/dist/lib/browser/inject-globals.mjs.map +0 -7
  60. package/dist/lib/browser/meta.json +0 -1
  61. package/dist/lib/browser/path.mjs +0 -440
  62. package/dist/lib/browser/path.mjs.map +0 -7
  63. package/dist/lib/browser/process.mjs +0 -8
  64. package/dist/lib/browser/process.mjs.map +0 -7
  65. package/dist/lib/browser/stream.mjs +0 -14
  66. package/dist/lib/browser/stream.mjs.map +0 -7
  67. package/dist/lib/browser/util.mjs +0 -30
  68. package/dist/lib/browser/util.mjs.map +0 -7
@@ -0,0 +1,1758 @@
1
+ import { t as __commonJSMin } from "./chunk-rolldown-runtime.mjs";
2
+ //#region ../../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js
3
+ var require_shams$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4
+ /** @type {import('./shams')} */
5
+ module.exports = function hasSymbols() {
6
+ if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") return false;
7
+ if (typeof Symbol.iterator === "symbol") return true;
8
+ /** @type {{ [k in symbol]?: unknown }} */
9
+ var obj = {};
10
+ var sym = Symbol("test");
11
+ var symObj = Object(sym);
12
+ if (typeof sym === "string") return false;
13
+ if (Object.prototype.toString.call(sym) !== "[object Symbol]") return false;
14
+ if (Object.prototype.toString.call(symObj) !== "[object Symbol]") return false;
15
+ var symVal = 42;
16
+ obj[sym] = symVal;
17
+ for (var _ in obj) return false;
18
+ if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) return false;
19
+ if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) return false;
20
+ var syms = Object.getOwnPropertySymbols(obj);
21
+ if (syms.length !== 1 || syms[0] !== sym) return false;
22
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) return false;
23
+ if (typeof Object.getOwnPropertyDescriptor === "function") {
24
+ var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
25
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) return false;
26
+ }
27
+ return true;
28
+ };
29
+ }));
30
+ //#endregion
31
+ //#region ../../../node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js
32
+ var require_shams = /* @__PURE__ */ __commonJSMin(((exports, module) => {
33
+ var hasSymbols = require_shams$1();
34
+ /** @type {import('.')} */
35
+ module.exports = function hasToStringTagShams() {
36
+ return hasSymbols() && !!Symbol.toStringTag;
37
+ };
38
+ }));
39
+ //#endregion
40
+ //#region ../../../node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js
41
+ var require_es_object_atoms = /* @__PURE__ */ __commonJSMin(((exports, module) => {
42
+ /** @type {import('.')} */
43
+ module.exports = Object;
44
+ }));
45
+ //#endregion
46
+ //#region ../../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js
47
+ var require_es_errors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
48
+ /** @type {import('.')} */
49
+ module.exports = Error;
50
+ }));
51
+ //#endregion
52
+ //#region ../../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js
53
+ var require_eval = /* @__PURE__ */ __commonJSMin(((exports, module) => {
54
+ /** @type {import('./eval')} */
55
+ module.exports = EvalError;
56
+ }));
57
+ //#endregion
58
+ //#region ../../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js
59
+ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
60
+ /** @type {import('./range')} */
61
+ module.exports = RangeError;
62
+ }));
63
+ //#endregion
64
+ //#region ../../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js
65
+ var require_ref = /* @__PURE__ */ __commonJSMin(((exports, module) => {
66
+ /** @type {import('./ref')} */
67
+ module.exports = ReferenceError;
68
+ }));
69
+ //#endregion
70
+ //#region ../../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js
71
+ var require_syntax = /* @__PURE__ */ __commonJSMin(((exports, module) => {
72
+ /** @type {import('./syntax')} */
73
+ module.exports = SyntaxError;
74
+ }));
75
+ //#endregion
76
+ //#region ../../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js
77
+ var require_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
78
+ /** @type {import('./type')} */
79
+ module.exports = TypeError;
80
+ }));
81
+ //#endregion
82
+ //#region ../../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js
83
+ var require_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
84
+ /** @type {import('./uri')} */
85
+ module.exports = URIError;
86
+ }));
87
+ //#endregion
88
+ //#region ../../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js
89
+ var require_abs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
90
+ /** @type {import('./abs')} */
91
+ module.exports = Math.abs;
92
+ }));
93
+ //#endregion
94
+ //#region ../../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js
95
+ var require_floor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
96
+ /** @type {import('./floor')} */
97
+ module.exports = Math.floor;
98
+ }));
99
+ //#endregion
100
+ //#region ../../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js
101
+ var require_max = /* @__PURE__ */ __commonJSMin(((exports, module) => {
102
+ /** @type {import('./max')} */
103
+ module.exports = Math.max;
104
+ }));
105
+ //#endregion
106
+ //#region ../../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js
107
+ var require_min = /* @__PURE__ */ __commonJSMin(((exports, module) => {
108
+ /** @type {import('./min')} */
109
+ module.exports = Math.min;
110
+ }));
111
+ //#endregion
112
+ //#region ../../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js
113
+ var require_pow = /* @__PURE__ */ __commonJSMin(((exports, module) => {
114
+ /** @type {import('./pow')} */
115
+ module.exports = Math.pow;
116
+ }));
117
+ //#endregion
118
+ //#region ../../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js
119
+ var require_round = /* @__PURE__ */ __commonJSMin(((exports, module) => {
120
+ /** @type {import('./round')} */
121
+ module.exports = Math.round;
122
+ }));
123
+ //#endregion
124
+ //#region ../../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js
125
+ var require_isNaN = /* @__PURE__ */ __commonJSMin(((exports, module) => {
126
+ /** @type {import('./isNaN')} */
127
+ module.exports = Number.isNaN || function isNaN(a) {
128
+ return a !== a;
129
+ };
130
+ }));
131
+ //#endregion
132
+ //#region ../../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js
133
+ var require_sign = /* @__PURE__ */ __commonJSMin(((exports, module) => {
134
+ var $isNaN = require_isNaN();
135
+ /** @type {import('./sign')} */
136
+ module.exports = function sign(number) {
137
+ if ($isNaN(number) || number === 0) return number;
138
+ return number < 0 ? -1 : 1;
139
+ };
140
+ }));
141
+ //#endregion
142
+ //#region ../../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js
143
+ var require_gOPD = /* @__PURE__ */ __commonJSMin(((exports, module) => {
144
+ /** @type {import('./gOPD')} */
145
+ module.exports = Object.getOwnPropertyDescriptor;
146
+ }));
147
+ //#endregion
148
+ //#region ../../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js
149
+ var require_gopd = /* @__PURE__ */ __commonJSMin(((exports, module) => {
150
+ /** @type {import('.')} */
151
+ var $gOPD = require_gOPD();
152
+ if ($gOPD) try {
153
+ $gOPD([], "length");
154
+ } catch (e) {
155
+ $gOPD = null;
156
+ }
157
+ module.exports = $gOPD;
158
+ }));
159
+ //#endregion
160
+ //#region ../../../node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js
161
+ var require_es_define_property = /* @__PURE__ */ __commonJSMin(((exports, module) => {
162
+ /** @type {import('.')} */
163
+ var $defineProperty = Object.defineProperty || false;
164
+ if ($defineProperty) try {
165
+ $defineProperty({}, "a", { value: 1 });
166
+ } catch (e) {
167
+ $defineProperty = false;
168
+ }
169
+ module.exports = $defineProperty;
170
+ }));
171
+ //#endregion
172
+ //#region ../../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js
173
+ var require_has_symbols = /* @__PURE__ */ __commonJSMin(((exports, module) => {
174
+ var origSymbol = typeof Symbol !== "undefined" && Symbol;
175
+ var hasSymbolSham = require_shams$1();
176
+ /** @type {import('.')} */
177
+ module.exports = function hasNativeSymbols() {
178
+ if (typeof origSymbol !== "function") return false;
179
+ if (typeof Symbol !== "function") return false;
180
+ if (typeof origSymbol("foo") !== "symbol") return false;
181
+ if (typeof Symbol("bar") !== "symbol") return false;
182
+ return hasSymbolSham();
183
+ };
184
+ }));
185
+ //#endregion
186
+ //#region ../../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js
187
+ var require_Reflect_getPrototypeOf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
188
+ /** @type {import('./Reflect.getPrototypeOf')} */
189
+ module.exports = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
190
+ }));
191
+ //#endregion
192
+ //#region ../../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js
193
+ var require_Object_getPrototypeOf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
194
+ /** @type {import('./Object.getPrototypeOf')} */
195
+ module.exports = require_es_object_atoms().getPrototypeOf || null;
196
+ }));
197
+ //#endregion
198
+ //#region ../../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js
199
+ var require_implementation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
200
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
201
+ var toStr = Object.prototype.toString;
202
+ var max = Math.max;
203
+ var funcType = "[object Function]";
204
+ var concatty = function concatty(a, b) {
205
+ var arr = [];
206
+ for (var i = 0; i < a.length; i += 1) arr[i] = a[i];
207
+ for (var j = 0; j < b.length; j += 1) arr[j + a.length] = b[j];
208
+ return arr;
209
+ };
210
+ var slicy = function slicy(arrLike, offset) {
211
+ var arr = [];
212
+ for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) arr[j] = arrLike[i];
213
+ return arr;
214
+ };
215
+ var joiny = function(arr, joiner) {
216
+ var str = "";
217
+ for (var i = 0; i < arr.length; i += 1) {
218
+ str += arr[i];
219
+ if (i + 1 < arr.length) str += joiner;
220
+ }
221
+ return str;
222
+ };
223
+ module.exports = function bind(that) {
224
+ var target = this;
225
+ if (typeof target !== "function" || toStr.apply(target) !== funcType) throw new TypeError(ERROR_MESSAGE + target);
226
+ var args = slicy(arguments, 1);
227
+ var bound;
228
+ var binder = function() {
229
+ if (this instanceof bound) {
230
+ var result = target.apply(this, concatty(args, arguments));
231
+ if (Object(result) === result) return result;
232
+ return this;
233
+ }
234
+ return target.apply(that, concatty(args, arguments));
235
+ };
236
+ var boundLength = max(0, target.length - args.length);
237
+ var boundArgs = [];
238
+ for (var i = 0; i < boundLength; i++) boundArgs[i] = "$" + i;
239
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
240
+ if (target.prototype) {
241
+ var Empty = function Empty() {};
242
+ Empty.prototype = target.prototype;
243
+ bound.prototype = new Empty();
244
+ Empty.prototype = null;
245
+ }
246
+ return bound;
247
+ };
248
+ }));
249
+ //#endregion
250
+ //#region ../../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js
251
+ var require_function_bind = /* @__PURE__ */ __commonJSMin(((exports, module) => {
252
+ var implementation = require_implementation();
253
+ module.exports = Function.prototype.bind || implementation;
254
+ }));
255
+ //#endregion
256
+ //#region ../../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js
257
+ var require_functionCall = /* @__PURE__ */ __commonJSMin(((exports, module) => {
258
+ /** @type {import('./functionCall')} */
259
+ module.exports = Function.prototype.call;
260
+ }));
261
+ //#endregion
262
+ //#region ../../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js
263
+ var require_functionApply = /* @__PURE__ */ __commonJSMin(((exports, module) => {
264
+ /** @type {import('./functionApply')} */
265
+ module.exports = Function.prototype.apply;
266
+ }));
267
+ //#endregion
268
+ //#region ../../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js
269
+ var require_reflectApply = /* @__PURE__ */ __commonJSMin(((exports, module) => {
270
+ /** @type {import('./reflectApply')} */
271
+ module.exports = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
272
+ }));
273
+ //#endregion
274
+ //#region ../../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js
275
+ var require_actualApply = /* @__PURE__ */ __commonJSMin(((exports, module) => {
276
+ var bind = require_function_bind();
277
+ var $apply = require_functionApply();
278
+ var $call = require_functionCall();
279
+ /** @type {import('./actualApply')} */
280
+ module.exports = require_reflectApply() || bind.call($call, $apply);
281
+ }));
282
+ //#endregion
283
+ //#region ../../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js
284
+ var require_call_bind_apply_helpers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
285
+ var bind = require_function_bind();
286
+ var $TypeError = require_type();
287
+ var $call = require_functionCall();
288
+ var $actualApply = require_actualApply();
289
+ /** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
290
+ module.exports = function callBindBasic(args) {
291
+ if (args.length < 1 || typeof args[0] !== "function") throw new $TypeError("a function is required");
292
+ return $actualApply(bind, $call, args);
293
+ };
294
+ }));
295
+ //#endregion
296
+ //#region ../../../node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js
297
+ var require_get = /* @__PURE__ */ __commonJSMin(((exports, module) => {
298
+ var callBind = require_call_bind_apply_helpers();
299
+ var gOPD = require_gopd();
300
+ var hasProtoAccessor;
301
+ try {
302
+ hasProtoAccessor = [].__proto__ === Array.prototype;
303
+ } catch (e) {
304
+ if (!e || typeof e !== "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS") throw e;
305
+ }
306
+ var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, "__proto__");
307
+ var $Object = Object;
308
+ var $getPrototypeOf = $Object.getPrototypeOf;
309
+ /** @type {import('./get')} */
310
+ module.exports = desc && typeof desc.get === "function" ? callBind([desc.get]) : typeof $getPrototypeOf === "function" ? function getDunder(value) {
311
+ return $getPrototypeOf(value == null ? value : $Object(value));
312
+ } : false;
313
+ }));
314
+ //#endregion
315
+ //#region ../../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js
316
+ var require_get_proto = /* @__PURE__ */ __commonJSMin(((exports, module) => {
317
+ var reflectGetProto = require_Reflect_getPrototypeOf();
318
+ var originalGetProto = require_Object_getPrototypeOf();
319
+ var getDunderProto = require_get();
320
+ /** @type {import('.')} */
321
+ module.exports = reflectGetProto ? function getProto(O) {
322
+ return reflectGetProto(O);
323
+ } : originalGetProto ? function getProto(O) {
324
+ if (!O || typeof O !== "object" && typeof O !== "function") throw new TypeError("getProto: not an object");
325
+ return originalGetProto(O);
326
+ } : getDunderProto ? function getProto(O) {
327
+ return getDunderProto(O);
328
+ } : null;
329
+ }));
330
+ //#endregion
331
+ //#region ../../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js
332
+ var require_hasown = /* @__PURE__ */ __commonJSMin(((exports, module) => {
333
+ var call = Function.prototype.call;
334
+ var $hasOwn = Object.prototype.hasOwnProperty;
335
+ /** @type {import('.')} */
336
+ module.exports = require_function_bind().call(call, $hasOwn);
337
+ }));
338
+ //#endregion
339
+ //#region ../../../node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js
340
+ var require_get_intrinsic = /* @__PURE__ */ __commonJSMin(((exports, module) => {
341
+ var undefined;
342
+ var $Object = require_es_object_atoms();
343
+ var $Error = require_es_errors();
344
+ var $EvalError = require_eval();
345
+ var $RangeError = require_range();
346
+ var $ReferenceError = require_ref();
347
+ var $SyntaxError = require_syntax();
348
+ var $TypeError = require_type();
349
+ var $URIError = require_uri();
350
+ var abs = require_abs();
351
+ var floor = require_floor();
352
+ var max = require_max();
353
+ var min = require_min();
354
+ var pow = require_pow();
355
+ var round = require_round();
356
+ var sign = require_sign();
357
+ var $Function = Function;
358
+ var getEvalledConstructor = function(expressionSyntax) {
359
+ try {
360
+ return $Function("\"use strict\"; return (" + expressionSyntax + ").constructor;")();
361
+ } catch (e) {}
362
+ };
363
+ var $gOPD = require_gopd();
364
+ var $defineProperty = require_es_define_property();
365
+ var throwTypeError = function() {
366
+ throw new $TypeError();
367
+ };
368
+ var ThrowTypeError = $gOPD ? function() {
369
+ try {
370
+ arguments.callee;
371
+ return throwTypeError;
372
+ } catch (calleeThrows) {
373
+ try {
374
+ return $gOPD(arguments, "callee").get;
375
+ } catch (gOPDthrows) {
376
+ return throwTypeError;
377
+ }
378
+ }
379
+ }() : throwTypeError;
380
+ var hasSymbols = require_has_symbols()();
381
+ var getProto = require_get_proto();
382
+ var $ObjectGPO = require_Object_getPrototypeOf();
383
+ var $ReflectGPO = require_Reflect_getPrototypeOf();
384
+ var $apply = require_functionApply();
385
+ var $call = require_functionCall();
386
+ var needsEval = {};
387
+ var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined : getProto(Uint8Array);
388
+ var INTRINSICS = {
389
+ __proto__: null,
390
+ "%AggregateError%": typeof AggregateError === "undefined" ? undefined : AggregateError,
391
+ "%Array%": Array,
392
+ "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined : ArrayBuffer,
393
+ "%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,
394
+ "%AsyncFromSyncIteratorPrototype%": undefined,
395
+ "%AsyncFunction%": needsEval,
396
+ "%AsyncGenerator%": needsEval,
397
+ "%AsyncGeneratorFunction%": needsEval,
398
+ "%AsyncIteratorPrototype%": needsEval,
399
+ "%Atomics%": typeof Atomics === "undefined" ? undefined : Atomics,
400
+ "%BigInt%": typeof BigInt === "undefined" ? undefined : BigInt,
401
+ "%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined : BigInt64Array,
402
+ "%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined : BigUint64Array,
403
+ "%Boolean%": Boolean,
404
+ "%DataView%": typeof DataView === "undefined" ? undefined : DataView,
405
+ "%Date%": Date,
406
+ "%decodeURI%": decodeURI,
407
+ "%decodeURIComponent%": decodeURIComponent,
408
+ "%encodeURI%": encodeURI,
409
+ "%encodeURIComponent%": encodeURIComponent,
410
+ "%Error%": $Error,
411
+ "%eval%": eval,
412
+ "%EvalError%": $EvalError,
413
+ "%Float16Array%": typeof Float16Array === "undefined" ? undefined : Float16Array,
414
+ "%Float32Array%": typeof Float32Array === "undefined" ? undefined : Float32Array,
415
+ "%Float64Array%": typeof Float64Array === "undefined" ? undefined : Float64Array,
416
+ "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined : FinalizationRegistry,
417
+ "%Function%": $Function,
418
+ "%GeneratorFunction%": needsEval,
419
+ "%Int8Array%": typeof Int8Array === "undefined" ? undefined : Int8Array,
420
+ "%Int16Array%": typeof Int16Array === "undefined" ? undefined : Int16Array,
421
+ "%Int32Array%": typeof Int32Array === "undefined" ? undefined : Int32Array,
422
+ "%isFinite%": isFinite,
423
+ "%isNaN%": isNaN,
424
+ "%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,
425
+ "%JSON%": typeof JSON === "object" ? JSON : undefined,
426
+ "%Map%": typeof Map === "undefined" ? undefined : Map,
427
+ "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
428
+ "%Math%": Math,
429
+ "%Number%": Number,
430
+ "%Object%": $Object,
431
+ "%Object.getOwnPropertyDescriptor%": $gOPD,
432
+ "%parseFloat%": parseFloat,
433
+ "%parseInt%": parseInt,
434
+ "%Promise%": typeof Promise === "undefined" ? undefined : Promise,
435
+ "%Proxy%": typeof Proxy === "undefined" ? undefined : Proxy,
436
+ "%RangeError%": $RangeError,
437
+ "%ReferenceError%": $ReferenceError,
438
+ "%Reflect%": typeof Reflect === "undefined" ? undefined : Reflect,
439
+ "%RegExp%": RegExp,
440
+ "%Set%": typeof Set === "undefined" ? undefined : Set,
441
+ "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
442
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined : SharedArrayBuffer,
443
+ "%String%": String,
444
+ "%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined,
445
+ "%Symbol%": hasSymbols ? Symbol : undefined,
446
+ "%SyntaxError%": $SyntaxError,
447
+ "%ThrowTypeError%": ThrowTypeError,
448
+ "%TypedArray%": TypedArray,
449
+ "%TypeError%": $TypeError,
450
+ "%Uint8Array%": typeof Uint8Array === "undefined" ? undefined : Uint8Array,
451
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined : Uint8ClampedArray,
452
+ "%Uint16Array%": typeof Uint16Array === "undefined" ? undefined : Uint16Array,
453
+ "%Uint32Array%": typeof Uint32Array === "undefined" ? undefined : Uint32Array,
454
+ "%URIError%": $URIError,
455
+ "%WeakMap%": typeof WeakMap === "undefined" ? undefined : WeakMap,
456
+ "%WeakRef%": typeof WeakRef === "undefined" ? undefined : WeakRef,
457
+ "%WeakSet%": typeof WeakSet === "undefined" ? undefined : WeakSet,
458
+ "%Function.prototype.call%": $call,
459
+ "%Function.prototype.apply%": $apply,
460
+ "%Object.defineProperty%": $defineProperty,
461
+ "%Object.getPrototypeOf%": $ObjectGPO,
462
+ "%Math.abs%": abs,
463
+ "%Math.floor%": floor,
464
+ "%Math.max%": max,
465
+ "%Math.min%": min,
466
+ "%Math.pow%": pow,
467
+ "%Math.round%": round,
468
+ "%Math.sign%": sign,
469
+ "%Reflect.getPrototypeOf%": $ReflectGPO
470
+ };
471
+ if (getProto) try {
472
+ null.error;
473
+ } catch (e) {
474
+ INTRINSICS["%Error.prototype%"] = getProto(getProto(e));
475
+ }
476
+ var doEval = function doEval(name) {
477
+ var value;
478
+ if (name === "%AsyncFunction%") value = getEvalledConstructor("async function () {}");
479
+ else if (name === "%GeneratorFunction%") value = getEvalledConstructor("function* () {}");
480
+ else if (name === "%AsyncGeneratorFunction%") value = getEvalledConstructor("async function* () {}");
481
+ else if (name === "%AsyncGenerator%") {
482
+ var fn = doEval("%AsyncGeneratorFunction%");
483
+ if (fn) value = fn.prototype;
484
+ } else if (name === "%AsyncIteratorPrototype%") {
485
+ var gen = doEval("%AsyncGenerator%");
486
+ if (gen && getProto) value = getProto(gen.prototype);
487
+ }
488
+ INTRINSICS[name] = value;
489
+ return value;
490
+ };
491
+ var LEGACY_ALIASES = {
492
+ __proto__: null,
493
+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
494
+ "%ArrayPrototype%": ["Array", "prototype"],
495
+ "%ArrayProto_entries%": [
496
+ "Array",
497
+ "prototype",
498
+ "entries"
499
+ ],
500
+ "%ArrayProto_forEach%": [
501
+ "Array",
502
+ "prototype",
503
+ "forEach"
504
+ ],
505
+ "%ArrayProto_keys%": [
506
+ "Array",
507
+ "prototype",
508
+ "keys"
509
+ ],
510
+ "%ArrayProto_values%": [
511
+ "Array",
512
+ "prototype",
513
+ "values"
514
+ ],
515
+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
516
+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
517
+ "%AsyncGeneratorPrototype%": [
518
+ "AsyncGeneratorFunction",
519
+ "prototype",
520
+ "prototype"
521
+ ],
522
+ "%BooleanPrototype%": ["Boolean", "prototype"],
523
+ "%DataViewPrototype%": ["DataView", "prototype"],
524
+ "%DatePrototype%": ["Date", "prototype"],
525
+ "%ErrorPrototype%": ["Error", "prototype"],
526
+ "%EvalErrorPrototype%": ["EvalError", "prototype"],
527
+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
528
+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
529
+ "%FunctionPrototype%": ["Function", "prototype"],
530
+ "%Generator%": ["GeneratorFunction", "prototype"],
531
+ "%GeneratorPrototype%": [
532
+ "GeneratorFunction",
533
+ "prototype",
534
+ "prototype"
535
+ ],
536
+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
537
+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
538
+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
539
+ "%JSONParse%": ["JSON", "parse"],
540
+ "%JSONStringify%": ["JSON", "stringify"],
541
+ "%MapPrototype%": ["Map", "prototype"],
542
+ "%NumberPrototype%": ["Number", "prototype"],
543
+ "%ObjectPrototype%": ["Object", "prototype"],
544
+ "%ObjProto_toString%": [
545
+ "Object",
546
+ "prototype",
547
+ "toString"
548
+ ],
549
+ "%ObjProto_valueOf%": [
550
+ "Object",
551
+ "prototype",
552
+ "valueOf"
553
+ ],
554
+ "%PromisePrototype%": ["Promise", "prototype"],
555
+ "%PromiseProto_then%": [
556
+ "Promise",
557
+ "prototype",
558
+ "then"
559
+ ],
560
+ "%Promise_all%": ["Promise", "all"],
561
+ "%Promise_reject%": ["Promise", "reject"],
562
+ "%Promise_resolve%": ["Promise", "resolve"],
563
+ "%RangeErrorPrototype%": ["RangeError", "prototype"],
564
+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
565
+ "%RegExpPrototype%": ["RegExp", "prototype"],
566
+ "%SetPrototype%": ["Set", "prototype"],
567
+ "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
568
+ "%StringPrototype%": ["String", "prototype"],
569
+ "%SymbolPrototype%": ["Symbol", "prototype"],
570
+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
571
+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],
572
+ "%TypeErrorPrototype%": ["TypeError", "prototype"],
573
+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
574
+ "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
575
+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
576
+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
577
+ "%URIErrorPrototype%": ["URIError", "prototype"],
578
+ "%WeakMapPrototype%": ["WeakMap", "prototype"],
579
+ "%WeakSetPrototype%": ["WeakSet", "prototype"]
580
+ };
581
+ var bind = require_function_bind();
582
+ var hasOwn = require_hasown();
583
+ var $concat = bind.call($call, Array.prototype.concat);
584
+ var $spliceApply = bind.call($apply, Array.prototype.splice);
585
+ var $replace = bind.call($call, String.prototype.replace);
586
+ var $strSlice = bind.call($call, String.prototype.slice);
587
+ var $exec = bind.call($call, RegExp.prototype.exec);
588
+ var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
589
+ var reEscapeChar = /\\(\\)?/g;
590
+ var stringToPath = function stringToPath(string) {
591
+ var first = $strSlice(string, 0, 1);
592
+ var last = $strSlice(string, -1);
593
+ if (first === "%" && last !== "%") throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
594
+ else if (last === "%" && first !== "%") throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
595
+ var result = [];
596
+ $replace(string, rePropName, function(match, number, quote, subString) {
597
+ result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number || match;
598
+ });
599
+ return result;
600
+ };
601
+ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
602
+ var intrinsicName = name;
603
+ var alias;
604
+ if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
605
+ alias = LEGACY_ALIASES[intrinsicName];
606
+ intrinsicName = "%" + alias[0] + "%";
607
+ }
608
+ if (hasOwn(INTRINSICS, intrinsicName)) {
609
+ var value = INTRINSICS[intrinsicName];
610
+ if (value === needsEval) value = doEval(intrinsicName);
611
+ if (typeof value === "undefined" && !allowMissing) throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!");
612
+ return {
613
+ alias,
614
+ name: intrinsicName,
615
+ value
616
+ };
617
+ }
618
+ throw new $SyntaxError("intrinsic " + name + " does not exist!");
619
+ };
620
+ module.exports = function GetIntrinsic(name, allowMissing) {
621
+ if (typeof name !== "string" || name.length === 0) throw new $TypeError("intrinsic name must be a non-empty string");
622
+ if (arguments.length > 1 && typeof allowMissing !== "boolean") throw new $TypeError("\"allowMissing\" argument must be a boolean");
623
+ if ($exec(/^%?[^%]*%?$/, name) === null) throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
624
+ var parts = stringToPath(name);
625
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
626
+ var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
627
+ var intrinsicRealName = intrinsic.name;
628
+ var value = intrinsic.value;
629
+ var skipFurtherCaching = false;
630
+ var alias = intrinsic.alias;
631
+ if (alias) {
632
+ intrinsicBaseName = alias[0];
633
+ $spliceApply(parts, $concat([0, 1], alias));
634
+ }
635
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
636
+ var part = parts[i];
637
+ var first = $strSlice(part, 0, 1);
638
+ var last = $strSlice(part, -1);
639
+ if ((first === "\"" || first === "'" || first === "`" || last === "\"" || last === "'" || last === "`") && first !== last) throw new $SyntaxError("property names with quotes must have matching quotes");
640
+ if (part === "constructor" || !isOwn) skipFurtherCaching = true;
641
+ intrinsicBaseName += "." + part;
642
+ intrinsicRealName = "%" + intrinsicBaseName + "%";
643
+ if (hasOwn(INTRINSICS, intrinsicRealName)) value = INTRINSICS[intrinsicRealName];
644
+ else if (value != null) {
645
+ if (!(part in value)) {
646
+ if (!allowMissing) throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
647
+ return;
648
+ }
649
+ if ($gOPD && i + 1 >= parts.length) {
650
+ var desc = $gOPD(value, part);
651
+ isOwn = !!desc;
652
+ if (isOwn && "get" in desc && !("originalValue" in desc.get)) value = desc.get;
653
+ else value = value[part];
654
+ } else {
655
+ isOwn = hasOwn(value, part);
656
+ value = value[part];
657
+ }
658
+ if (isOwn && !skipFurtherCaching) INTRINSICS[intrinsicRealName] = value;
659
+ }
660
+ }
661
+ return value;
662
+ };
663
+ }));
664
+ //#endregion
665
+ //#region ../../../node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js
666
+ var require_define_data_property = /* @__PURE__ */ __commonJSMin(((exports, module) => {
667
+ var $defineProperty = require_es_define_property();
668
+ var $SyntaxError = require_syntax();
669
+ var $TypeError = require_type();
670
+ var gopd = require_gopd();
671
+ /** @type {import('.')} */
672
+ module.exports = function defineDataProperty(obj, property, value) {
673
+ if (!obj || typeof obj !== "object" && typeof obj !== "function") throw new $TypeError("`obj` must be an object or a function`");
674
+ if (typeof property !== "string" && typeof property !== "symbol") throw new $TypeError("`property` must be a string or a symbol`");
675
+ if (arguments.length > 3 && typeof arguments[3] !== "boolean" && arguments[3] !== null) throw new $TypeError("`nonEnumerable`, if provided, must be a boolean or null");
676
+ if (arguments.length > 4 && typeof arguments[4] !== "boolean" && arguments[4] !== null) throw new $TypeError("`nonWritable`, if provided, must be a boolean or null");
677
+ if (arguments.length > 5 && typeof arguments[5] !== "boolean" && arguments[5] !== null) throw new $TypeError("`nonConfigurable`, if provided, must be a boolean or null");
678
+ if (arguments.length > 6 && typeof arguments[6] !== "boolean") throw new $TypeError("`loose`, if provided, must be a boolean");
679
+ var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
680
+ var nonWritable = arguments.length > 4 ? arguments[4] : null;
681
+ var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
682
+ var loose = arguments.length > 6 ? arguments[6] : false;
683
+ var desc = !!gopd && gopd(obj, property);
684
+ if ($defineProperty) $defineProperty(obj, property, {
685
+ configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
686
+ enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
687
+ value,
688
+ writable: nonWritable === null && desc ? desc.writable : !nonWritable
689
+ });
690
+ else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) obj[property] = value;
691
+ else throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
692
+ };
693
+ }));
694
+ //#endregion
695
+ //#region ../../../node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js
696
+ var require_has_property_descriptors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
697
+ var $defineProperty = require_es_define_property();
698
+ var hasPropertyDescriptors = function hasPropertyDescriptors() {
699
+ return !!$defineProperty;
700
+ };
701
+ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
702
+ if (!$defineProperty) return null;
703
+ try {
704
+ return $defineProperty([], "length", { value: 1 }).length !== 1;
705
+ } catch (e) {
706
+ return true;
707
+ }
708
+ };
709
+ module.exports = hasPropertyDescriptors;
710
+ }));
711
+ //#endregion
712
+ //#region ../../../node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.js
713
+ var require_set_function_length = /* @__PURE__ */ __commonJSMin(((exports, module) => {
714
+ var GetIntrinsic = require_get_intrinsic();
715
+ var define = require_define_data_property();
716
+ var hasDescriptors = require_has_property_descriptors()();
717
+ var gOPD = require_gopd();
718
+ var $TypeError = require_type();
719
+ var $floor = GetIntrinsic("%Math.floor%");
720
+ /** @type {import('.')} */
721
+ module.exports = function setFunctionLength(fn, length) {
722
+ if (typeof fn !== "function") throw new $TypeError("`fn` is not a function");
723
+ if (typeof length !== "number" || length < 0 || length > 4294967295 || $floor(length) !== length) throw new $TypeError("`length` must be a positive 32-bit integer");
724
+ var loose = arguments.length > 2 && !!arguments[2];
725
+ var functionLengthIsConfigurable = true;
726
+ var functionLengthIsWritable = true;
727
+ if ("length" in fn && gOPD) {
728
+ var desc = gOPD(fn, "length");
729
+ if (desc && !desc.configurable) functionLengthIsConfigurable = false;
730
+ if (desc && !desc.writable) functionLengthIsWritable = false;
731
+ }
732
+ if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
733
+ if (hasDescriptors) define(fn, "length", length, true, true);
734
+ else define(fn, "length", length);
735
+ }
736
+ return fn;
737
+ };
738
+ }));
739
+ //#endregion
740
+ //#region ../../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/applyBind.js
741
+ var require_applyBind = /* @__PURE__ */ __commonJSMin(((exports, module) => {
742
+ var bind = require_function_bind();
743
+ var $apply = require_functionApply();
744
+ var actualApply = require_actualApply();
745
+ /** @type {import('./applyBind')} */
746
+ module.exports = function applyBind() {
747
+ return actualApply(bind, $apply, arguments);
748
+ };
749
+ }));
750
+ //#endregion
751
+ //#region ../../../node_modules/.pnpm/call-bind@1.0.8/node_modules/call-bind/index.js
752
+ var require_call_bind = /* @__PURE__ */ __commonJSMin(((exports, module) => {
753
+ var setFunctionLength = require_set_function_length();
754
+ var $defineProperty = require_es_define_property();
755
+ var callBindBasic = require_call_bind_apply_helpers();
756
+ var applyBind = require_applyBind();
757
+ module.exports = function callBind(originalFunction) {
758
+ var func = callBindBasic(arguments);
759
+ var adjustedLength = originalFunction.length - (arguments.length - 1);
760
+ return setFunctionLength(func, 1 + (adjustedLength > 0 ? adjustedLength : 0), true);
761
+ };
762
+ if ($defineProperty) $defineProperty(module.exports, "apply", { value: applyBind });
763
+ else module.exports.apply = applyBind;
764
+ }));
765
+ //#endregion
766
+ //#region ../../../node_modules/.pnpm/call-bind@1.0.8/node_modules/call-bind/callBound.js
767
+ var require_callBound = /* @__PURE__ */ __commonJSMin(((exports, module) => {
768
+ var GetIntrinsic = require_get_intrinsic();
769
+ var callBind = require_call_bind();
770
+ var $indexOf = callBind(GetIntrinsic("String.prototype.indexOf"));
771
+ module.exports = function callBoundIntrinsic(name, allowMissing) {
772
+ var intrinsic = GetIntrinsic(name, !!allowMissing);
773
+ if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) return callBind(intrinsic);
774
+ return intrinsic;
775
+ };
776
+ }));
777
+ //#endregion
778
+ //#region ../../../node_modules/.pnpm/is-arguments@1.1.1/node_modules/is-arguments/index.js
779
+ var require_is_arguments = /* @__PURE__ */ __commonJSMin(((exports, module) => {
780
+ var hasToStringTag = require_shams()();
781
+ var $toString = require_callBound()("Object.prototype.toString");
782
+ var isStandardArguments = function isArguments(value) {
783
+ if (hasToStringTag && value && typeof value === "object" && Symbol.toStringTag in value) return false;
784
+ return $toString(value) === "[object Arguments]";
785
+ };
786
+ var isLegacyArguments = function isArguments(value) {
787
+ if (isStandardArguments(value)) return true;
788
+ return value !== null && typeof value === "object" && typeof value.length === "number" && value.length >= 0 && $toString(value) !== "[object Array]" && $toString(value.callee) === "[object Function]";
789
+ };
790
+ var supportsStandardArguments = function() {
791
+ return isStandardArguments(arguments);
792
+ }();
793
+ isStandardArguments.isLegacyArguments = isLegacyArguments;
794
+ module.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
795
+ }));
796
+ //#endregion
797
+ //#region ../../../node_modules/.pnpm/is-generator-function@1.0.10/node_modules/is-generator-function/index.js
798
+ var require_is_generator_function = /* @__PURE__ */ __commonJSMin(((exports, module) => {
799
+ var toStr = Object.prototype.toString;
800
+ var fnToStr = Function.prototype.toString;
801
+ var isFnRegex = /^\s*(?:function)?\*/;
802
+ var hasToStringTag = require_shams()();
803
+ var getProto = Object.getPrototypeOf;
804
+ var getGeneratorFunc = function() {
805
+ if (!hasToStringTag) return false;
806
+ try {
807
+ return Function("return function*() {}")();
808
+ } catch (e) {}
809
+ };
810
+ var GeneratorFunction;
811
+ module.exports = function isGeneratorFunction(fn) {
812
+ if (typeof fn !== "function") return false;
813
+ if (isFnRegex.test(fnToStr.call(fn))) return true;
814
+ if (!hasToStringTag) return toStr.call(fn) === "[object GeneratorFunction]";
815
+ if (!getProto) return false;
816
+ if (typeof GeneratorFunction === "undefined") {
817
+ var generatorFunc = getGeneratorFunc();
818
+ GeneratorFunction = generatorFunc ? getProto(generatorFunc) : false;
819
+ }
820
+ return getProto(fn) === GeneratorFunction;
821
+ };
822
+ }));
823
+ //#endregion
824
+ //#region ../../../node_modules/.pnpm/is-callable@1.2.7/node_modules/is-callable/index.js
825
+ var require_is_callable = /* @__PURE__ */ __commonJSMin(((exports, module) => {
826
+ var fnToStr = Function.prototype.toString;
827
+ var reflectApply = typeof Reflect === "object" && Reflect !== null && Reflect.apply;
828
+ var badArrayLike;
829
+ var isCallableMarker;
830
+ if (typeof reflectApply === "function" && typeof Object.defineProperty === "function") try {
831
+ badArrayLike = Object.defineProperty({}, "length", { get: function() {
832
+ throw isCallableMarker;
833
+ } });
834
+ isCallableMarker = {};
835
+ reflectApply(function() {
836
+ throw 42;
837
+ }, null, badArrayLike);
838
+ } catch (_) {
839
+ if (_ !== isCallableMarker) reflectApply = null;
840
+ }
841
+ else reflectApply = null;
842
+ var constructorRegex = /^\s*class\b/;
843
+ var isES6ClassFn = function isES6ClassFunction(value) {
844
+ try {
845
+ var fnStr = fnToStr.call(value);
846
+ return constructorRegex.test(fnStr);
847
+ } catch (e) {
848
+ return false;
849
+ }
850
+ };
851
+ var tryFunctionObject = function tryFunctionToStr(value) {
852
+ try {
853
+ if (isES6ClassFn(value)) return false;
854
+ fnToStr.call(value);
855
+ return true;
856
+ } catch (e) {
857
+ return false;
858
+ }
859
+ };
860
+ var toStr = Object.prototype.toString;
861
+ var objectClass = "[object Object]";
862
+ var fnClass = "[object Function]";
863
+ var genClass = "[object GeneratorFunction]";
864
+ var ddaClass = "[object HTMLAllCollection]";
865
+ var ddaClass2 = "[object HTML document.all class]";
866
+ var ddaClass3 = "[object HTMLCollection]";
867
+ var hasToStringTag = typeof Symbol === "function" && !!Symbol.toStringTag;
868
+ var isIE68 = !(0 in [,]);
869
+ var isDDA = function isDocumentDotAll() {
870
+ return false;
871
+ };
872
+ if (typeof document === "object") {
873
+ var all = document.all;
874
+ if (toStr.call(all) === toStr.call(document.all)) isDDA = function isDocumentDotAll(value) {
875
+ if ((isIE68 || !value) && (typeof value === "undefined" || typeof value === "object")) try {
876
+ var str = toStr.call(value);
877
+ return (str === ddaClass || str === ddaClass2 || str === ddaClass3 || str === objectClass) && value("") == null;
878
+ } catch (e) {}
879
+ return false;
880
+ };
881
+ }
882
+ module.exports = reflectApply ? function isCallable(value) {
883
+ if (isDDA(value)) return true;
884
+ if (!value) return false;
885
+ if (typeof value !== "function" && typeof value !== "object") return false;
886
+ try {
887
+ reflectApply(value, null, badArrayLike);
888
+ } catch (e) {
889
+ if (e !== isCallableMarker) return false;
890
+ }
891
+ return !isES6ClassFn(value) && tryFunctionObject(value);
892
+ } : function isCallable(value) {
893
+ if (isDDA(value)) return true;
894
+ if (!value) return false;
895
+ if (typeof value !== "function" && typeof value !== "object") return false;
896
+ if (hasToStringTag) return tryFunctionObject(value);
897
+ if (isES6ClassFn(value)) return false;
898
+ var strClass = toStr.call(value);
899
+ if (strClass !== fnClass && strClass !== genClass && !/^\[object HTML/.test(strClass)) return false;
900
+ return tryFunctionObject(value);
901
+ };
902
+ }));
903
+ //#endregion
904
+ //#region ../../../node_modules/.pnpm/for-each@0.3.5/node_modules/for-each/index.js
905
+ var require_for_each = /* @__PURE__ */ __commonJSMin(((exports, module) => {
906
+ var isCallable = require_is_callable();
907
+ var toStr = Object.prototype.toString;
908
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
909
+ /** @type {<This, A extends readonly unknown[]>(arr: A, iterator: (this: This | void, value: A[number], index: number, arr: A) => void, receiver: This | undefined) => void} */
910
+ var forEachArray = function forEachArray(array, iterator, receiver) {
911
+ for (var i = 0, len = array.length; i < len; i++) if (hasOwnProperty.call(array, i)) {
912
+ if (receiver == null) iterator(array[i], i, array);
913
+ else iterator.call(receiver, array[i], i, array);
914
+ }
915
+ };
916
+ /** @type {<This, S extends string>(string: S, iterator: (this: This | void, value: S[number], index: number, string: S) => void, receiver: This | undefined) => void} */
917
+ var forEachString = function forEachString(string, iterator, receiver) {
918
+ for (var i = 0, len = string.length; i < len; i++) if (receiver == null) iterator(string.charAt(i), i, string);
919
+ else iterator.call(receiver, string.charAt(i), i, string);
920
+ };
921
+ /** @type {<This, O>(obj: O, iterator: (this: This | void, value: O[keyof O], index: keyof O, obj: O) => void, receiver: This | undefined) => void} */
922
+ var forEachObject = function forEachObject(object, iterator, receiver) {
923
+ for (var k in object) if (hasOwnProperty.call(object, k)) {
924
+ if (receiver == null) iterator(object[k], k, object);
925
+ else iterator.call(receiver, object[k], k, object);
926
+ }
927
+ };
928
+ /** @type {(x: unknown) => x is readonly unknown[]} */
929
+ function isArray(x) {
930
+ return toStr.call(x) === "[object Array]";
931
+ }
932
+ /** @type {import('.')._internal} */
933
+ module.exports = function forEach(list, iterator, thisArg) {
934
+ if (!isCallable(iterator)) throw new TypeError("iterator must be a function");
935
+ var receiver;
936
+ if (arguments.length >= 3) receiver = thisArg;
937
+ if (isArray(list)) forEachArray(list, iterator, receiver);
938
+ else if (typeof list === "string") forEachString(list, iterator, receiver);
939
+ else forEachObject(list, iterator, receiver);
940
+ };
941
+ }));
942
+ //#endregion
943
+ //#region ../../../node_modules/.pnpm/possible-typed-array-names@1.1.0/node_modules/possible-typed-array-names/index.js
944
+ var require_possible_typed_array_names = /* @__PURE__ */ __commonJSMin(((exports, module) => {
945
+ /** @type {import('.')} */
946
+ module.exports = [
947
+ "Float16Array",
948
+ "Float32Array",
949
+ "Float64Array",
950
+ "Int8Array",
951
+ "Int16Array",
952
+ "Int32Array",
953
+ "Uint8Array",
954
+ "Uint8ClampedArray",
955
+ "Uint16Array",
956
+ "Uint32Array",
957
+ "BigInt64Array",
958
+ "BigUint64Array"
959
+ ];
960
+ }));
961
+ //#endregion
962
+ //#region ../../../node_modules/.pnpm/available-typed-arrays@1.0.7/node_modules/available-typed-arrays/index.js
963
+ var require_available_typed_arrays = /* @__PURE__ */ __commonJSMin(((exports, module) => {
964
+ var possibleNames = require_possible_typed_array_names();
965
+ var g = typeof globalThis === "undefined" ? global : globalThis;
966
+ /** @type {import('.')} */
967
+ module.exports = function availableTypedArrays() {
968
+ var out = [];
969
+ for (var i = 0; i < possibleNames.length; i++) if (typeof g[possibleNames[i]] === "function") out[out.length] = possibleNames[i];
970
+ return out;
971
+ };
972
+ }));
973
+ //#endregion
974
+ //#region ../../../node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js
975
+ var require_call_bound = /* @__PURE__ */ __commonJSMin(((exports, module) => {
976
+ var GetIntrinsic = require_get_intrinsic();
977
+ var callBindBasic = require_call_bind_apply_helpers();
978
+ /** @type {(thisArg: string, searchString: string, position?: number) => number} */
979
+ var $indexOf = callBindBasic([GetIntrinsic("%String.prototype.indexOf%")]);
980
+ /** @type {import('.')} */
981
+ module.exports = function callBoundIntrinsic(name, allowMissing) {
982
+ var intrinsic = GetIntrinsic(name, !!allowMissing);
983
+ if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) return callBindBasic([intrinsic]);
984
+ return intrinsic;
985
+ };
986
+ }));
987
+ //#endregion
988
+ //#region ../../../node_modules/.pnpm/which-typed-array@1.1.19/node_modules/which-typed-array/index.js
989
+ var require_which_typed_array = /* @__PURE__ */ __commonJSMin(((exports, module) => {
990
+ var forEach = require_for_each();
991
+ var availableTypedArrays = require_available_typed_arrays();
992
+ var callBind = require_call_bind();
993
+ var callBound = require_call_bound();
994
+ var gOPD = require_gopd();
995
+ var getProto = require_get_proto();
996
+ var $toString = callBound("Object.prototype.toString");
997
+ var hasToStringTag = require_shams()();
998
+ var g = typeof globalThis === "undefined" ? global : globalThis;
999
+ var typedArrays = availableTypedArrays();
1000
+ var $slice = callBound("String.prototype.slice");
1001
+ /** @type {<T = unknown>(array: readonly T[], value: unknown) => number} */
1002
+ var $indexOf = callBound("Array.prototype.indexOf", true) || function indexOf(array, value) {
1003
+ for (var i = 0; i < array.length; i += 1) if (array[i] === value) return i;
1004
+ return -1;
1005
+ };
1006
+ /** @typedef {import('./types').Getter} Getter */
1007
+ /** @type {import('./types').Cache} */
1008
+ var cache = { __proto__: null };
1009
+ if (hasToStringTag && gOPD && getProto) forEach(typedArrays, function(typedArray) {
1010
+ var arr = new g[typedArray]();
1011
+ if (Symbol.toStringTag in arr && getProto) {
1012
+ var proto = getProto(arr);
1013
+ var descriptor = gOPD(proto, Symbol.toStringTag);
1014
+ if (!descriptor && proto) descriptor = gOPD(getProto(proto), Symbol.toStringTag);
1015
+ cache["$" + typedArray] = callBind(descriptor.get);
1016
+ }
1017
+ });
1018
+ else forEach(typedArrays, function(typedArray) {
1019
+ var arr = new g[typedArray]();
1020
+ var fn = arr.slice || arr.set;
1021
+ if (fn) cache["$" + typedArray] = callBind(fn);
1022
+ });
1023
+ /** @type {(value: object) => false | import('.').TypedArrayName} */
1024
+ var tryTypedArrays = function tryAllTypedArrays(value) {
1025
+ /** @type {ReturnType<typeof tryAllTypedArrays>} */ var found = false;
1026
+ forEach(
1027
+ cache,
1028
+ /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
1029
+ function(getter, typedArray) {
1030
+ if (!found) try {
1031
+ if ("$" + getter(value) === typedArray) found = $slice(typedArray, 1);
1032
+ } catch (e) {}
1033
+ }
1034
+ );
1035
+ return found;
1036
+ };
1037
+ /** @type {(value: object) => false | import('.').TypedArrayName} */
1038
+ var trySlices = function tryAllSlices(value) {
1039
+ /** @type {ReturnType<typeof tryAllSlices>} */ var found = false;
1040
+ forEach(
1041
+ cache,
1042
+ /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
1043
+ function(getter, name) {
1044
+ if (!found) try {
1045
+ getter(value);
1046
+ found = $slice(name, 1);
1047
+ } catch (e) {}
1048
+ }
1049
+ );
1050
+ return found;
1051
+ };
1052
+ /** @type {import('.')} */
1053
+ module.exports = function whichTypedArray(value) {
1054
+ if (!value || typeof value !== "object") return false;
1055
+ if (!hasToStringTag) {
1056
+ /** @type {string} */
1057
+ var tag = $slice($toString(value), 8, -1);
1058
+ if ($indexOf(typedArrays, tag) > -1) return tag;
1059
+ if (tag !== "Object") return false;
1060
+ return trySlices(value);
1061
+ }
1062
+ if (!gOPD) return null;
1063
+ return tryTypedArrays(value);
1064
+ };
1065
+ }));
1066
+ //#endregion
1067
+ //#region ../../../node_modules/.pnpm/is-typed-array@1.1.15/node_modules/is-typed-array/index.js
1068
+ var require_is_typed_array = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1069
+ var whichTypedArray = require_which_typed_array();
1070
+ /** @type {import('.')} */
1071
+ module.exports = function isTypedArray(value) {
1072
+ return !!whichTypedArray(value);
1073
+ };
1074
+ }));
1075
+ //#endregion
1076
+ //#region ../../../node_modules/.pnpm/util@0.12.5/node_modules/util/support/types.js
1077
+ var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
1078
+ var isArgumentsObject = require_is_arguments();
1079
+ var isGeneratorFunction = require_is_generator_function();
1080
+ var whichTypedArray = require_which_typed_array();
1081
+ var isTypedArray = require_is_typed_array();
1082
+ function uncurryThis(f) {
1083
+ return f.call.bind(f);
1084
+ }
1085
+ var BigIntSupported = typeof BigInt !== "undefined";
1086
+ var SymbolSupported = typeof Symbol !== "undefined";
1087
+ var ObjectToString = uncurryThis(Object.prototype.toString);
1088
+ var numberValue = uncurryThis(Number.prototype.valueOf);
1089
+ var stringValue = uncurryThis(String.prototype.valueOf);
1090
+ var booleanValue = uncurryThis(Boolean.prototype.valueOf);
1091
+ if (BigIntSupported) var bigIntValue = uncurryThis(BigInt.prototype.valueOf);
1092
+ if (SymbolSupported) var symbolValue = uncurryThis(Symbol.prototype.valueOf);
1093
+ function checkBoxedPrimitive(value, prototypeValueOf) {
1094
+ if (typeof value !== "object") return false;
1095
+ try {
1096
+ prototypeValueOf(value);
1097
+ return true;
1098
+ } catch (e) {
1099
+ return false;
1100
+ }
1101
+ }
1102
+ exports.isArgumentsObject = isArgumentsObject;
1103
+ exports.isGeneratorFunction = isGeneratorFunction;
1104
+ exports.isTypedArray = isTypedArray;
1105
+ function isPromise(input) {
1106
+ return typeof Promise !== "undefined" && input instanceof Promise || input !== null && typeof input === "object" && typeof input.then === "function" && typeof input.catch === "function";
1107
+ }
1108
+ exports.isPromise = isPromise;
1109
+ function isArrayBufferView(value) {
1110
+ if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) return ArrayBuffer.isView(value);
1111
+ return isTypedArray(value) || isDataView(value);
1112
+ }
1113
+ exports.isArrayBufferView = isArrayBufferView;
1114
+ function isUint8Array(value) {
1115
+ return whichTypedArray(value) === "Uint8Array";
1116
+ }
1117
+ exports.isUint8Array = isUint8Array;
1118
+ function isUint8ClampedArray(value) {
1119
+ return whichTypedArray(value) === "Uint8ClampedArray";
1120
+ }
1121
+ exports.isUint8ClampedArray = isUint8ClampedArray;
1122
+ function isUint16Array(value) {
1123
+ return whichTypedArray(value) === "Uint16Array";
1124
+ }
1125
+ exports.isUint16Array = isUint16Array;
1126
+ function isUint32Array(value) {
1127
+ return whichTypedArray(value) === "Uint32Array";
1128
+ }
1129
+ exports.isUint32Array = isUint32Array;
1130
+ function isInt8Array(value) {
1131
+ return whichTypedArray(value) === "Int8Array";
1132
+ }
1133
+ exports.isInt8Array = isInt8Array;
1134
+ function isInt16Array(value) {
1135
+ return whichTypedArray(value) === "Int16Array";
1136
+ }
1137
+ exports.isInt16Array = isInt16Array;
1138
+ function isInt32Array(value) {
1139
+ return whichTypedArray(value) === "Int32Array";
1140
+ }
1141
+ exports.isInt32Array = isInt32Array;
1142
+ function isFloat32Array(value) {
1143
+ return whichTypedArray(value) === "Float32Array";
1144
+ }
1145
+ exports.isFloat32Array = isFloat32Array;
1146
+ function isFloat64Array(value) {
1147
+ return whichTypedArray(value) === "Float64Array";
1148
+ }
1149
+ exports.isFloat64Array = isFloat64Array;
1150
+ function isBigInt64Array(value) {
1151
+ return whichTypedArray(value) === "BigInt64Array";
1152
+ }
1153
+ exports.isBigInt64Array = isBigInt64Array;
1154
+ function isBigUint64Array(value) {
1155
+ return whichTypedArray(value) === "BigUint64Array";
1156
+ }
1157
+ exports.isBigUint64Array = isBigUint64Array;
1158
+ function isMapToString(value) {
1159
+ return ObjectToString(value) === "[object Map]";
1160
+ }
1161
+ isMapToString.working = typeof Map !== "undefined" && isMapToString(/* @__PURE__ */ new Map());
1162
+ function isMap(value) {
1163
+ if (typeof Map === "undefined") return false;
1164
+ return isMapToString.working ? isMapToString(value) : value instanceof Map;
1165
+ }
1166
+ exports.isMap = isMap;
1167
+ function isSetToString(value) {
1168
+ return ObjectToString(value) === "[object Set]";
1169
+ }
1170
+ isSetToString.working = typeof Set !== "undefined" && isSetToString(/* @__PURE__ */ new Set());
1171
+ function isSet(value) {
1172
+ if (typeof Set === "undefined") return false;
1173
+ return isSetToString.working ? isSetToString(value) : value instanceof Set;
1174
+ }
1175
+ exports.isSet = isSet;
1176
+ function isWeakMapToString(value) {
1177
+ return ObjectToString(value) === "[object WeakMap]";
1178
+ }
1179
+ isWeakMapToString.working = typeof WeakMap !== "undefined" && isWeakMapToString(/* @__PURE__ */ new WeakMap());
1180
+ function isWeakMap(value) {
1181
+ if (typeof WeakMap === "undefined") return false;
1182
+ return isWeakMapToString.working ? isWeakMapToString(value) : value instanceof WeakMap;
1183
+ }
1184
+ exports.isWeakMap = isWeakMap;
1185
+ function isWeakSetToString(value) {
1186
+ return ObjectToString(value) === "[object WeakSet]";
1187
+ }
1188
+ isWeakSetToString.working = typeof WeakSet !== "undefined" && isWeakSetToString(/* @__PURE__ */ new WeakSet());
1189
+ function isWeakSet(value) {
1190
+ return isWeakSetToString(value);
1191
+ }
1192
+ exports.isWeakSet = isWeakSet;
1193
+ function isArrayBufferToString(value) {
1194
+ return ObjectToString(value) === "[object ArrayBuffer]";
1195
+ }
1196
+ isArrayBufferToString.working = typeof ArrayBuffer !== "undefined" && isArrayBufferToString(/* @__PURE__ */ new ArrayBuffer());
1197
+ function isArrayBuffer(value) {
1198
+ if (typeof ArrayBuffer === "undefined") return false;
1199
+ return isArrayBufferToString.working ? isArrayBufferToString(value) : value instanceof ArrayBuffer;
1200
+ }
1201
+ exports.isArrayBuffer = isArrayBuffer;
1202
+ function isDataViewToString(value) {
1203
+ return ObjectToString(value) === "[object DataView]";
1204
+ }
1205
+ isDataViewToString.working = typeof ArrayBuffer !== "undefined" && typeof DataView !== "undefined" && isDataViewToString(new DataView(/* @__PURE__ */ new ArrayBuffer(1), 0, 1));
1206
+ function isDataView(value) {
1207
+ if (typeof DataView === "undefined") return false;
1208
+ return isDataViewToString.working ? isDataViewToString(value) : value instanceof DataView;
1209
+ }
1210
+ exports.isDataView = isDataView;
1211
+ var SharedArrayBufferCopy = typeof SharedArrayBuffer !== "undefined" ? SharedArrayBuffer : void 0;
1212
+ function isSharedArrayBufferToString(value) {
1213
+ return ObjectToString(value) === "[object SharedArrayBuffer]";
1214
+ }
1215
+ function isSharedArrayBuffer(value) {
1216
+ if (typeof SharedArrayBufferCopy === "undefined") return false;
1217
+ if (typeof isSharedArrayBufferToString.working === "undefined") isSharedArrayBufferToString.working = isSharedArrayBufferToString(new SharedArrayBufferCopy());
1218
+ return isSharedArrayBufferToString.working ? isSharedArrayBufferToString(value) : value instanceof SharedArrayBufferCopy;
1219
+ }
1220
+ exports.isSharedArrayBuffer = isSharedArrayBuffer;
1221
+ function isAsyncFunction(value) {
1222
+ return ObjectToString(value) === "[object AsyncFunction]";
1223
+ }
1224
+ exports.isAsyncFunction = isAsyncFunction;
1225
+ function isMapIterator(value) {
1226
+ return ObjectToString(value) === "[object Map Iterator]";
1227
+ }
1228
+ exports.isMapIterator = isMapIterator;
1229
+ function isSetIterator(value) {
1230
+ return ObjectToString(value) === "[object Set Iterator]";
1231
+ }
1232
+ exports.isSetIterator = isSetIterator;
1233
+ function isGeneratorObject(value) {
1234
+ return ObjectToString(value) === "[object Generator]";
1235
+ }
1236
+ exports.isGeneratorObject = isGeneratorObject;
1237
+ function isWebAssemblyCompiledModule(value) {
1238
+ return ObjectToString(value) === "[object WebAssembly.Module]";
1239
+ }
1240
+ exports.isWebAssemblyCompiledModule = isWebAssemblyCompiledModule;
1241
+ function isNumberObject(value) {
1242
+ return checkBoxedPrimitive(value, numberValue);
1243
+ }
1244
+ exports.isNumberObject = isNumberObject;
1245
+ function isStringObject(value) {
1246
+ return checkBoxedPrimitive(value, stringValue);
1247
+ }
1248
+ exports.isStringObject = isStringObject;
1249
+ function isBooleanObject(value) {
1250
+ return checkBoxedPrimitive(value, booleanValue);
1251
+ }
1252
+ exports.isBooleanObject = isBooleanObject;
1253
+ function isBigIntObject(value) {
1254
+ return BigIntSupported && checkBoxedPrimitive(value, bigIntValue);
1255
+ }
1256
+ exports.isBigIntObject = isBigIntObject;
1257
+ function isSymbolObject(value) {
1258
+ return SymbolSupported && checkBoxedPrimitive(value, symbolValue);
1259
+ }
1260
+ exports.isSymbolObject = isSymbolObject;
1261
+ function isBoxedPrimitive(value) {
1262
+ return isNumberObject(value) || isStringObject(value) || isBooleanObject(value) || isBigIntObject(value) || isSymbolObject(value);
1263
+ }
1264
+ exports.isBoxedPrimitive = isBoxedPrimitive;
1265
+ function isAnyArrayBuffer(value) {
1266
+ return typeof Uint8Array !== "undefined" && (isArrayBuffer(value) || isSharedArrayBuffer(value));
1267
+ }
1268
+ exports.isAnyArrayBuffer = isAnyArrayBuffer;
1269
+ [
1270
+ "isProxy",
1271
+ "isExternal",
1272
+ "isModuleNamespaceObject"
1273
+ ].forEach(function(method) {
1274
+ Object.defineProperty(exports, method, {
1275
+ enumerable: false,
1276
+ value: function() {
1277
+ throw new Error(method + " is not supported in userland");
1278
+ }
1279
+ });
1280
+ });
1281
+ }));
1282
+ //#endregion
1283
+ //#region ../../../node_modules/.pnpm/util@0.12.5/node_modules/util/support/isBufferBrowser.js
1284
+ var require_isBufferBrowser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1285
+ module.exports = function isBuffer(arg) {
1286
+ return arg && typeof arg === "object" && typeof arg.copy === "function" && typeof arg.fill === "function" && typeof arg.readUInt8 === "function";
1287
+ };
1288
+ }));
1289
+ //#endregion
1290
+ //#region ../../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js
1291
+ var require_inherits_browser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1292
+ if (typeof Object.create === "function") module.exports = function inherits(ctor, superCtor) {
1293
+ if (superCtor) {
1294
+ ctor.super_ = superCtor;
1295
+ ctor.prototype = Object.create(superCtor.prototype, { constructor: {
1296
+ value: ctor,
1297
+ enumerable: false,
1298
+ writable: true,
1299
+ configurable: true
1300
+ } });
1301
+ }
1302
+ };
1303
+ else module.exports = function inherits(ctor, superCtor) {
1304
+ if (superCtor) {
1305
+ ctor.super_ = superCtor;
1306
+ var TempCtor = function() {};
1307
+ TempCtor.prototype = superCtor.prototype;
1308
+ ctor.prototype = new TempCtor();
1309
+ ctor.prototype.constructor = ctor;
1310
+ }
1311
+ };
1312
+ }));
1313
+ //#endregion
1314
+ //#region ../../../node_modules/.pnpm/util@0.12.5/node_modules/util/util.js
1315
+ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
1316
+ var getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors || function getOwnPropertyDescriptors(obj) {
1317
+ var keys = Object.keys(obj);
1318
+ var descriptors = {};
1319
+ for (var i = 0; i < keys.length; i++) descriptors[keys[i]] = Object.getOwnPropertyDescriptor(obj, keys[i]);
1320
+ return descriptors;
1321
+ };
1322
+ var formatRegExp = /%[sdj%]/g;
1323
+ exports.format = function(f) {
1324
+ if (!isString(f)) {
1325
+ var objects = [];
1326
+ for (var i = 0; i < arguments.length; i++) objects.push(inspect(arguments[i]));
1327
+ return objects.join(" ");
1328
+ }
1329
+ var i = 1;
1330
+ var args = arguments;
1331
+ var len = args.length;
1332
+ var str = String(f).replace(formatRegExp, function(x) {
1333
+ if (x === "%%") return "%";
1334
+ if (i >= len) return x;
1335
+ switch (x) {
1336
+ case "%s": return String(args[i++]);
1337
+ case "%d": return Number(args[i++]);
1338
+ case "%j": try {
1339
+ return JSON.stringify(args[i++]);
1340
+ } catch (_) {
1341
+ return "[Circular]";
1342
+ }
1343
+ default: return x;
1344
+ }
1345
+ });
1346
+ for (var x = args[i]; i < len; x = args[++i]) if (isNull(x) || !isObject(x)) str += " " + x;
1347
+ else str += " " + inspect(x);
1348
+ return str;
1349
+ };
1350
+ exports.deprecate = function(fn, msg) {
1351
+ if (typeof process !== "undefined" && process.noDeprecation === true) return fn;
1352
+ if (typeof process === "undefined") return function() {
1353
+ return exports.deprecate(fn, msg).apply(this, arguments);
1354
+ };
1355
+ var warned = false;
1356
+ function deprecated() {
1357
+ if (!warned) {
1358
+ if (process.throwDeprecation) throw new Error(msg);
1359
+ else if (process.traceDeprecation) console.trace(msg);
1360
+ else console.error(msg);
1361
+ warned = true;
1362
+ }
1363
+ return fn.apply(this, arguments);
1364
+ }
1365
+ return deprecated;
1366
+ };
1367
+ var debugs = {};
1368
+ var debugEnvRegex = /^$/;
1369
+ if (process.env.NODE_DEBUG) {
1370
+ var debugEnv = process.env.NODE_DEBUG;
1371
+ debugEnv = debugEnv.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase();
1372
+ debugEnvRegex = new RegExp("^" + debugEnv + "$", "i");
1373
+ }
1374
+ exports.debuglog = function(set) {
1375
+ set = set.toUpperCase();
1376
+ if (!debugs[set]) {
1377
+ if (debugEnvRegex.test(set)) {
1378
+ var pid = process.pid;
1379
+ debugs[set] = function() {
1380
+ var msg = exports.format.apply(exports, arguments);
1381
+ console.error("%s %d: %s", set, pid, msg);
1382
+ };
1383
+ } else debugs[set] = function() {};
1384
+ }
1385
+ return debugs[set];
1386
+ };
1387
+ /**
1388
+ * Echos the value of a value. Trys to print the value out
1389
+ * in the best way possible given the different types.
1390
+ *
1391
+ * @param {Object} obj The object to print out.
1392
+ * @param {Object} opts Optional options object that alters the output.
1393
+ */
1394
+ function inspect(obj, opts) {
1395
+ var ctx = {
1396
+ seen: [],
1397
+ stylize: stylizeNoColor
1398
+ };
1399
+ if (arguments.length >= 3) ctx.depth = arguments[2];
1400
+ if (arguments.length >= 4) ctx.colors = arguments[3];
1401
+ if (isBoolean(opts)) ctx.showHidden = opts;
1402
+ else if (opts) exports._extend(ctx, opts);
1403
+ if (isUndefined(ctx.showHidden)) ctx.showHidden = false;
1404
+ if (isUndefined(ctx.depth)) ctx.depth = 2;
1405
+ if (isUndefined(ctx.colors)) ctx.colors = false;
1406
+ if (isUndefined(ctx.customInspect)) ctx.customInspect = true;
1407
+ if (ctx.colors) ctx.stylize = stylizeWithColor;
1408
+ return formatValue(ctx, obj, ctx.depth);
1409
+ }
1410
+ exports.inspect = inspect;
1411
+ inspect.colors = {
1412
+ "bold": [1, 22],
1413
+ "italic": [3, 23],
1414
+ "underline": [4, 24],
1415
+ "inverse": [7, 27],
1416
+ "white": [37, 39],
1417
+ "grey": [90, 39],
1418
+ "black": [30, 39],
1419
+ "blue": [34, 39],
1420
+ "cyan": [36, 39],
1421
+ "green": [32, 39],
1422
+ "magenta": [35, 39],
1423
+ "red": [31, 39],
1424
+ "yellow": [33, 39]
1425
+ };
1426
+ inspect.styles = {
1427
+ "special": "cyan",
1428
+ "number": "yellow",
1429
+ "boolean": "yellow",
1430
+ "undefined": "grey",
1431
+ "null": "bold",
1432
+ "string": "green",
1433
+ "date": "magenta",
1434
+ "regexp": "red"
1435
+ };
1436
+ function stylizeWithColor(str, styleType) {
1437
+ var style = inspect.styles[styleType];
1438
+ if (style) return "\x1B[" + inspect.colors[style][0] + "m" + str + "\x1B[" + inspect.colors[style][1] + "m";
1439
+ else return str;
1440
+ }
1441
+ function stylizeNoColor(str, styleType) {
1442
+ return str;
1443
+ }
1444
+ function arrayToHash(array) {
1445
+ var hash = {};
1446
+ array.forEach(function(val, idx) {
1447
+ hash[val] = true;
1448
+ });
1449
+ return hash;
1450
+ }
1451
+ function formatValue(ctx, value, recurseTimes) {
1452
+ if (ctx.customInspect && value && isFunction(value.inspect) && value.inspect !== exports.inspect && !(value.constructor && value.constructor.prototype === value)) {
1453
+ var ret = value.inspect(recurseTimes, ctx);
1454
+ if (!isString(ret)) ret = formatValue(ctx, ret, recurseTimes);
1455
+ return ret;
1456
+ }
1457
+ var primitive = formatPrimitive(ctx, value);
1458
+ if (primitive) return primitive;
1459
+ var keys = Object.keys(value);
1460
+ var visibleKeys = arrayToHash(keys);
1461
+ if (ctx.showHidden) keys = Object.getOwnPropertyNames(value);
1462
+ if (isError(value) && (keys.indexOf("message") >= 0 || keys.indexOf("description") >= 0)) return formatError(value);
1463
+ if (keys.length === 0) {
1464
+ if (isFunction(value)) {
1465
+ var name = value.name ? ": " + value.name : "";
1466
+ return ctx.stylize("[Function" + name + "]", "special");
1467
+ }
1468
+ if (isRegExp(value)) return ctx.stylize(RegExp.prototype.toString.call(value), "regexp");
1469
+ if (isDate(value)) return ctx.stylize(Date.prototype.toString.call(value), "date");
1470
+ if (isError(value)) return formatError(value);
1471
+ }
1472
+ var base = "", array = false, braces = ["{", "}"];
1473
+ if (isArray(value)) {
1474
+ array = true;
1475
+ braces = ["[", "]"];
1476
+ }
1477
+ if (isFunction(value)) base = " [Function" + (value.name ? ": " + value.name : "") + "]";
1478
+ if (isRegExp(value)) base = " " + RegExp.prototype.toString.call(value);
1479
+ if (isDate(value)) base = " " + Date.prototype.toUTCString.call(value);
1480
+ if (isError(value)) base = " " + formatError(value);
1481
+ if (keys.length === 0 && (!array || value.length == 0)) return braces[0] + base + braces[1];
1482
+ if (recurseTimes < 0) {
1483
+ if (isRegExp(value)) return ctx.stylize(RegExp.prototype.toString.call(value), "regexp");
1484
+ else return ctx.stylize("[Object]", "special");
1485
+ }
1486
+ ctx.seen.push(value);
1487
+ var output;
1488
+ if (array) output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);
1489
+ else output = keys.map(function(key) {
1490
+ return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
1491
+ });
1492
+ ctx.seen.pop();
1493
+ return reduceToSingleString(output, base, braces);
1494
+ }
1495
+ function formatPrimitive(ctx, value) {
1496
+ if (isUndefined(value)) return ctx.stylize("undefined", "undefined");
1497
+ if (isString(value)) {
1498
+ var simple = "'" + JSON.stringify(value).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, "\"") + "'";
1499
+ return ctx.stylize(simple, "string");
1500
+ }
1501
+ if (isNumber(value)) return ctx.stylize("" + value, "number");
1502
+ if (isBoolean(value)) return ctx.stylize("" + value, "boolean");
1503
+ if (isNull(value)) return ctx.stylize("null", "null");
1504
+ }
1505
+ function formatError(value) {
1506
+ return "[" + Error.prototype.toString.call(value) + "]";
1507
+ }
1508
+ function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
1509
+ var output = [];
1510
+ for (var i = 0, l = value.length; i < l; ++i) if (hasOwnProperty(value, String(i))) output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, String(i), true));
1511
+ else output.push("");
1512
+ keys.forEach(function(key) {
1513
+ if (!key.match(/^\d+$/)) output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, key, true));
1514
+ });
1515
+ return output;
1516
+ }
1517
+ function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
1518
+ var name, str, desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
1519
+ if (desc.get) {
1520
+ if (desc.set) str = ctx.stylize("[Getter/Setter]", "special");
1521
+ else str = ctx.stylize("[Getter]", "special");
1522
+ } else if (desc.set) str = ctx.stylize("[Setter]", "special");
1523
+ if (!hasOwnProperty(visibleKeys, key)) name = "[" + key + "]";
1524
+ if (!str) {
1525
+ if (ctx.seen.indexOf(desc.value) < 0) {
1526
+ if (isNull(recurseTimes)) str = formatValue(ctx, desc.value, null);
1527
+ else str = formatValue(ctx, desc.value, recurseTimes - 1);
1528
+ if (str.indexOf("\n") > -1) {
1529
+ if (array) str = str.split("\n").map(function(line) {
1530
+ return " " + line;
1531
+ }).join("\n").slice(2);
1532
+ else str = "\n" + str.split("\n").map(function(line) {
1533
+ return " " + line;
1534
+ }).join("\n");
1535
+ }
1536
+ } else str = ctx.stylize("[Circular]", "special");
1537
+ }
1538
+ if (isUndefined(name)) {
1539
+ if (array && key.match(/^\d+$/)) return str;
1540
+ name = JSON.stringify("" + key);
1541
+ if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
1542
+ name = name.slice(1, -1);
1543
+ name = ctx.stylize(name, "name");
1544
+ } else {
1545
+ name = name.replace(/'/g, "\\'").replace(/\\"/g, "\"").replace(/(^"|"$)/g, "'");
1546
+ name = ctx.stylize(name, "string");
1547
+ }
1548
+ }
1549
+ return name + ": " + str;
1550
+ }
1551
+ function reduceToSingleString(output, base, braces) {
1552
+ var numLinesEst = 0;
1553
+ if (output.reduce(function(prev, cur) {
1554
+ numLinesEst++;
1555
+ if (cur.indexOf("\n") >= 0) numLinesEst++;
1556
+ return prev + cur.replace(/\u001b\[\d\d?m/g, "").length + 1;
1557
+ }, 0) > 60) return braces[0] + (base === "" ? "" : base + "\n ") + " " + output.join(",\n ") + " " + braces[1];
1558
+ return braces[0] + base + " " + output.join(", ") + " " + braces[1];
1559
+ }
1560
+ exports.types = require_types();
1561
+ function isArray(ar) {
1562
+ return Array.isArray(ar);
1563
+ }
1564
+ exports.isArray = isArray;
1565
+ function isBoolean(arg) {
1566
+ return typeof arg === "boolean";
1567
+ }
1568
+ exports.isBoolean = isBoolean;
1569
+ function isNull(arg) {
1570
+ return arg === null;
1571
+ }
1572
+ exports.isNull = isNull;
1573
+ function isNullOrUndefined(arg) {
1574
+ return arg == null;
1575
+ }
1576
+ exports.isNullOrUndefined = isNullOrUndefined;
1577
+ function isNumber(arg) {
1578
+ return typeof arg === "number";
1579
+ }
1580
+ exports.isNumber = isNumber;
1581
+ function isString(arg) {
1582
+ return typeof arg === "string";
1583
+ }
1584
+ exports.isString = isString;
1585
+ function isSymbol(arg) {
1586
+ return typeof arg === "symbol";
1587
+ }
1588
+ exports.isSymbol = isSymbol;
1589
+ function isUndefined(arg) {
1590
+ return arg === void 0;
1591
+ }
1592
+ exports.isUndefined = isUndefined;
1593
+ function isRegExp(re) {
1594
+ return isObject(re) && objectToString(re) === "[object RegExp]";
1595
+ }
1596
+ exports.isRegExp = isRegExp;
1597
+ exports.types.isRegExp = isRegExp;
1598
+ function isObject(arg) {
1599
+ return typeof arg === "object" && arg !== null;
1600
+ }
1601
+ exports.isObject = isObject;
1602
+ function isDate(d) {
1603
+ return isObject(d) && objectToString(d) === "[object Date]";
1604
+ }
1605
+ exports.isDate = isDate;
1606
+ exports.types.isDate = isDate;
1607
+ function isError(e) {
1608
+ return isObject(e) && (objectToString(e) === "[object Error]" || e instanceof Error);
1609
+ }
1610
+ exports.isError = isError;
1611
+ exports.types.isNativeError = isError;
1612
+ function isFunction(arg) {
1613
+ return typeof arg === "function";
1614
+ }
1615
+ exports.isFunction = isFunction;
1616
+ function isPrimitive(arg) {
1617
+ return arg === null || typeof arg === "boolean" || typeof arg === "number" || typeof arg === "string" || typeof arg === "symbol" || typeof arg === "undefined";
1618
+ }
1619
+ exports.isPrimitive = isPrimitive;
1620
+ exports.isBuffer = require_isBufferBrowser();
1621
+ function objectToString(o) {
1622
+ return Object.prototype.toString.call(o);
1623
+ }
1624
+ function pad(n) {
1625
+ return n < 10 ? "0" + n.toString(10) : n.toString(10);
1626
+ }
1627
+ var months = [
1628
+ "Jan",
1629
+ "Feb",
1630
+ "Mar",
1631
+ "Apr",
1632
+ "May",
1633
+ "Jun",
1634
+ "Jul",
1635
+ "Aug",
1636
+ "Sep",
1637
+ "Oct",
1638
+ "Nov",
1639
+ "Dec"
1640
+ ];
1641
+ function timestamp() {
1642
+ var d = /* @__PURE__ */ new Date();
1643
+ var time = [
1644
+ pad(d.getHours()),
1645
+ pad(d.getMinutes()),
1646
+ pad(d.getSeconds())
1647
+ ].join(":");
1648
+ return [
1649
+ d.getDate(),
1650
+ months[d.getMonth()],
1651
+ time
1652
+ ].join(" ");
1653
+ }
1654
+ exports.log = function() {
1655
+ console.log("%s - %s", timestamp(), exports.format.apply(exports, arguments));
1656
+ };
1657
+ /**
1658
+ * Inherit the prototype methods from one constructor into another.
1659
+ *
1660
+ * The Function.prototype.inherits from lang.js rewritten as a standalone
1661
+ * function (not on Function.prototype). NOTE: If this file is to be loaded
1662
+ * during bootstrapping this function needs to be rewritten using some native
1663
+ * functions as prototype setup using normal JavaScript does not work as
1664
+ * expected during bootstrapping (see mirror.js in r114903).
1665
+ *
1666
+ * @param {function} ctor Constructor function which needs to inherit the
1667
+ * prototype.
1668
+ * @param {function} superCtor Constructor function to inherit prototype from.
1669
+ */
1670
+ exports.inherits = require_inherits_browser();
1671
+ exports._extend = function(origin, add) {
1672
+ if (!add || !isObject(add)) return origin;
1673
+ var keys = Object.keys(add);
1674
+ var i = keys.length;
1675
+ while (i--) origin[keys[i]] = add[keys[i]];
1676
+ return origin;
1677
+ };
1678
+ function hasOwnProperty(obj, prop) {
1679
+ return Object.prototype.hasOwnProperty.call(obj, prop);
1680
+ }
1681
+ var kCustomPromisifiedSymbol = typeof Symbol !== "undefined" ? Symbol("util.promisify.custom") : void 0;
1682
+ exports.promisify = function promisify(original) {
1683
+ if (typeof original !== "function") throw new TypeError("The \"original\" argument must be of type Function");
1684
+ if (kCustomPromisifiedSymbol && original[kCustomPromisifiedSymbol]) {
1685
+ var fn = original[kCustomPromisifiedSymbol];
1686
+ if (typeof fn !== "function") throw new TypeError("The \"util.promisify.custom\" argument must be of type Function");
1687
+ Object.defineProperty(fn, kCustomPromisifiedSymbol, {
1688
+ value: fn,
1689
+ enumerable: false,
1690
+ writable: false,
1691
+ configurable: true
1692
+ });
1693
+ return fn;
1694
+ }
1695
+ function fn() {
1696
+ var promiseResolve, promiseReject;
1697
+ var promise = new Promise(function(resolve, reject) {
1698
+ promiseResolve = resolve;
1699
+ promiseReject = reject;
1700
+ });
1701
+ var args = [];
1702
+ for (var i = 0; i < arguments.length; i++) args.push(arguments[i]);
1703
+ args.push(function(err, value) {
1704
+ if (err) promiseReject(err);
1705
+ else promiseResolve(value);
1706
+ });
1707
+ try {
1708
+ original.apply(this, args);
1709
+ } catch (err) {
1710
+ promiseReject(err);
1711
+ }
1712
+ return promise;
1713
+ }
1714
+ Object.setPrototypeOf(fn, Object.getPrototypeOf(original));
1715
+ if (kCustomPromisifiedSymbol) Object.defineProperty(fn, kCustomPromisifiedSymbol, {
1716
+ value: fn,
1717
+ enumerable: false,
1718
+ writable: false,
1719
+ configurable: true
1720
+ });
1721
+ return Object.defineProperties(fn, getOwnPropertyDescriptors(original));
1722
+ };
1723
+ exports.promisify.custom = kCustomPromisifiedSymbol;
1724
+ function callbackifyOnRejected(reason, cb) {
1725
+ if (!reason) {
1726
+ var newReason = /* @__PURE__ */ new Error("Promise was rejected with a falsy value");
1727
+ newReason.reason = reason;
1728
+ reason = newReason;
1729
+ }
1730
+ return cb(reason);
1731
+ }
1732
+ function callbackify(original) {
1733
+ if (typeof original !== "function") throw new TypeError("The \"original\" argument must be of type Function");
1734
+ function callbackified() {
1735
+ var args = [];
1736
+ for (var i = 0; i < arguments.length; i++) args.push(arguments[i]);
1737
+ var maybeCb = args.pop();
1738
+ if (typeof maybeCb !== "function") throw new TypeError("The last argument must be of type Function");
1739
+ var self = this;
1740
+ var cb = function() {
1741
+ return maybeCb.apply(self, arguments);
1742
+ };
1743
+ original.apply(this, args).then(function(ret) {
1744
+ process.nextTick(cb.bind(null, null, ret));
1745
+ }, function(rej) {
1746
+ process.nextTick(callbackifyOnRejected.bind(null, rej, cb));
1747
+ });
1748
+ }
1749
+ Object.setPrototypeOf(callbackified, Object.getPrototypeOf(original));
1750
+ Object.defineProperties(callbackified, getOwnPropertyDescriptors(original));
1751
+ return callbackified;
1752
+ }
1753
+ exports.callbackify = callbackify;
1754
+ }));
1755
+ //#endregion
1756
+ export { require_define_data_property as i, require_call_bind as n, require_has_property_descriptors as r, require_util as t };
1757
+
1758
+ //# sourceMappingURL=chunk-util.mjs.map