@dxos/node-std 0.8.3 → 0.8.4-main.f9ba587
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.
- package/dist/lib/browser/_/config.mjs +1 -1
- package/dist/lib/browser/assert.mjs +37 -38
- package/dist/lib/browser/assert.mjs.map +1 -1
- package/dist/lib/browser/buffer.mjs +2 -2
- package/dist/lib/browser/{chunk-W3AYESYQ.mjs → chunk-LJ5EWKWX.mjs} +4 -4
- package/dist/lib/browser/{chunk-QWZSWMMO.mjs → chunk-WA6DPORN.mjs} +2 -2
- package/dist/lib/browser/{chunk-GM2BGSSZ.mjs → chunk-WIBV42KC.mjs} +219 -750
- package/dist/lib/browser/chunk-WIBV42KC.mjs.map +7 -0
- package/dist/lib/browser/{chunk-PY2IJ42L.mjs → chunk-YERYCS33.mjs} +7 -7
- package/dist/lib/browser/crypto.mjs +1 -1
- package/dist/lib/browser/events.mjs +3 -3
- package/dist/lib/browser/fs/promises.mjs +1 -1
- package/dist/lib/browser/fs.mjs +1 -1
- package/dist/lib/browser/globals.mjs +3 -3
- package/dist/lib/browser/inject-globals.mjs +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/path.mjs +3 -3
- package/dist/lib/browser/stream.mjs +1 -1
- package/dist/lib/browser/util.mjs +5 -5
- package/dist/lib/node-esm/_/config.mjs +1 -1
- package/dist/lib/node-esm/assert.mjs +1 -1
- package/dist/lib/node-esm/buffer.mjs +2 -2
- package/dist/lib/node-esm/{chunk-KIVTZY6Z.mjs → chunk-3EE3KRAW.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-SOGAFZTS.mjs → chunk-F5GZS76O.mjs} +7 -7
- package/dist/lib/node-esm/{chunk-I3G4DBJU.mjs → chunk-RJ7I7ZC3.mjs} +4 -4
- package/dist/lib/node-esm/crypto.mjs +1 -1
- package/dist/lib/node-esm/events.mjs +1 -1
- package/dist/lib/node-esm/fs/promises.mjs +1 -1
- package/dist/lib/node-esm/fs.mjs +1 -1
- package/dist/lib/node-esm/globals.mjs +3 -3
- package/dist/lib/node-esm/inject-globals.mjs +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/path.mjs +3 -3
- package/dist/lib/node-esm/stream.mjs +1 -1
- package/dist/lib/node-esm/util.mjs +182 -712
- package/dist/lib/node-esm/util.mjs.map +4 -4
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/package.json +2 -2
- package/dist/lib/browser/chunk-GM2BGSSZ.mjs.map +0 -7
- package/dist/lib/node/_/config.cjs +0 -44
- package/dist/lib/node/_/config.cjs.map +0 -7
- package/dist/lib/node/assert.cjs +0 -37
- package/dist/lib/node/assert.cjs.map +0 -7
- package/dist/lib/node/buffer.cjs +0 -32
- package/dist/lib/node/buffer.cjs.map +0 -7
- package/dist/lib/node/chunk-6SZKM6EC.cjs +0 -63
- package/dist/lib/node/chunk-6SZKM6EC.cjs.map +0 -7
- package/dist/lib/node/chunk-ENV4LVNZ.cjs +0 -133
- package/dist/lib/node/chunk-ENV4LVNZ.cjs.map +0 -7
- package/dist/lib/node/chunk-FCCITQEP.cjs +0 -1812
- package/dist/lib/node/chunk-FCCITQEP.cjs.map +0 -7
- package/dist/lib/node/chunk-P2R5OUNF.cjs +0 -22
- package/dist/lib/node/chunk-P2R5OUNF.cjs.map +0 -7
- package/dist/lib/node/crypto.cjs +0 -32
- package/dist/lib/node/crypto.cjs.map +0 -7
- package/dist/lib/node/events.cjs +0 -32
- package/dist/lib/node/events.cjs.map +0 -7
- package/dist/lib/node/fs/promises.cjs +0 -120
- package/dist/lib/node/fs/promises.cjs.map +0 -7
- package/dist/lib/node/fs.cjs +0 -53
- package/dist/lib/node/fs.cjs.map +0 -7
- package/dist/lib/node/globals.cjs +0 -6
- package/dist/lib/node/globals.cjs.map +0 -7
- package/dist/lib/node/inject-globals.cjs +0 -38
- package/dist/lib/node/inject-globals.cjs.map +0 -7
- package/dist/lib/node/meta.json +0 -1
- package/dist/lib/node/path.cjs +0 -466
- package/dist/lib/node/path.cjs.map +0 -7
- package/dist/lib/node/stream.cjs +0 -42
- package/dist/lib/node/stream.cjs.map +0 -7
- package/dist/lib/node/util.cjs +0 -2493
- package/dist/lib/node/util.cjs.map +0 -7
- /package/dist/lib/browser/{chunk-W3AYESYQ.mjs.map → chunk-LJ5EWKWX.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-QWZSWMMO.mjs.map → chunk-WA6DPORN.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-PY2IJ42L.mjs.map → chunk-YERYCS33.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-KIVTZY6Z.mjs.map → chunk-3EE3KRAW.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-SOGAFZTS.mjs.map → chunk-F5GZS76O.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-I3G4DBJU.mjs.map → chunk-RJ7I7ZC3.mjs.map} +0 -0
package/dist/lib/node/util.cjs
DELETED
|
@@ -1,2493 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var util_exports = {};
|
|
20
|
-
__export(util_exports, {
|
|
21
|
-
callbackify: () => export_callbackify,
|
|
22
|
-
default: () => util_default,
|
|
23
|
-
inspect: () => export_inspect,
|
|
24
|
-
promisify: () => export_promisify
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(util_exports);
|
|
27
|
-
var import_chunk_P2R5OUNF = require("./chunk-P2R5OUNF.cjs");
|
|
28
|
-
var import_chunk_ENV4LVNZ = require("./chunk-ENV4LVNZ.cjs");
|
|
29
|
-
var import_chunk_FCCITQEP = require("./chunk-FCCITQEP.cjs");
|
|
30
|
-
var import_chunk_6SZKM6EC = require("./chunk-6SZKM6EC.cjs");
|
|
31
|
-
var require_shams = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
32
|
-
"node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/shams.js"(exports2, module2) {
|
|
33
|
-
"use strict";
|
|
34
|
-
module2.exports = function hasSymbols() {
|
|
35
|
-
if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
|
|
36
|
-
return false;
|
|
37
|
-
}
|
|
38
|
-
if (typeof Symbol.iterator === "symbol") {
|
|
39
|
-
return true;
|
|
40
|
-
}
|
|
41
|
-
var obj = {};
|
|
42
|
-
var sym = Symbol("test");
|
|
43
|
-
var symObj = Object(sym);
|
|
44
|
-
if (typeof sym === "string") {
|
|
45
|
-
return false;
|
|
46
|
-
}
|
|
47
|
-
if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
|
|
48
|
-
return false;
|
|
49
|
-
}
|
|
50
|
-
if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
|
|
51
|
-
return false;
|
|
52
|
-
}
|
|
53
|
-
var symVal = 42;
|
|
54
|
-
obj[sym] = symVal;
|
|
55
|
-
for (sym in obj) {
|
|
56
|
-
return false;
|
|
57
|
-
}
|
|
58
|
-
if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
|
|
59
|
-
return false;
|
|
60
|
-
}
|
|
61
|
-
if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
|
|
62
|
-
return false;
|
|
63
|
-
}
|
|
64
|
-
var syms = Object.getOwnPropertySymbols(obj);
|
|
65
|
-
if (syms.length !== 1 || syms[0] !== sym) {
|
|
66
|
-
return false;
|
|
67
|
-
}
|
|
68
|
-
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
|
|
69
|
-
return false;
|
|
70
|
-
}
|
|
71
|
-
if (typeof Object.getOwnPropertyDescriptor === "function") {
|
|
72
|
-
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
|
|
73
|
-
if (descriptor.value !== symVal || descriptor.enumerable !== true) {
|
|
74
|
-
return false;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
return true;
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
var require_shams2 = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
82
|
-
"node_modules/.pnpm/has-tostringtag@1.0.0/node_modules/has-tostringtag/shams.js"(exports2, module2) {
|
|
83
|
-
"use strict";
|
|
84
|
-
var hasSymbols = require_shams();
|
|
85
|
-
module2.exports = function hasToStringTagShams() {
|
|
86
|
-
return hasSymbols() && !!Symbol.toStringTag;
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
var require_has_symbols = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
91
|
-
"node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/index.js"(exports2, module2) {
|
|
92
|
-
"use strict";
|
|
93
|
-
var origSymbol = typeof Symbol !== "undefined" && Symbol;
|
|
94
|
-
var hasSymbolSham = require_shams();
|
|
95
|
-
module2.exports = function hasNativeSymbols() {
|
|
96
|
-
if (typeof origSymbol !== "function") {
|
|
97
|
-
return false;
|
|
98
|
-
}
|
|
99
|
-
if (typeof Symbol !== "function") {
|
|
100
|
-
return false;
|
|
101
|
-
}
|
|
102
|
-
if (typeof origSymbol("foo") !== "symbol") {
|
|
103
|
-
return false;
|
|
104
|
-
}
|
|
105
|
-
if (typeof Symbol("bar") !== "symbol") {
|
|
106
|
-
return false;
|
|
107
|
-
}
|
|
108
|
-
return hasSymbolSham();
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
var require_has_proto = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
113
|
-
"node_modules/.pnpm/has-proto@1.0.1/node_modules/has-proto/index.js"(exports2, module2) {
|
|
114
|
-
"use strict";
|
|
115
|
-
var test = {
|
|
116
|
-
foo: {}
|
|
117
|
-
};
|
|
118
|
-
var $Object = Object;
|
|
119
|
-
module2.exports = function hasProto() {
|
|
120
|
-
return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
var require_implementation = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
125
|
-
"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(exports2, module2) {
|
|
126
|
-
"use strict";
|
|
127
|
-
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
128
|
-
var toStr = Object.prototype.toString;
|
|
129
|
-
var max = Math.max;
|
|
130
|
-
var funcType = "[object Function]";
|
|
131
|
-
var concatty = function concatty2(a, b) {
|
|
132
|
-
var arr = [];
|
|
133
|
-
for (var i = 0; i < a.length; i += 1) {
|
|
134
|
-
arr[i] = a[i];
|
|
135
|
-
}
|
|
136
|
-
for (var j = 0; j < b.length; j += 1) {
|
|
137
|
-
arr[j + a.length] = b[j];
|
|
138
|
-
}
|
|
139
|
-
return arr;
|
|
140
|
-
};
|
|
141
|
-
var slicy = function slicy2(arrLike, offset) {
|
|
142
|
-
var arr = [];
|
|
143
|
-
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
144
|
-
arr[j] = arrLike[i];
|
|
145
|
-
}
|
|
146
|
-
return arr;
|
|
147
|
-
};
|
|
148
|
-
var joiny = function(arr, joiner) {
|
|
149
|
-
var str = "";
|
|
150
|
-
for (var i = 0; i < arr.length; i += 1) {
|
|
151
|
-
str += arr[i];
|
|
152
|
-
if (i + 1 < arr.length) {
|
|
153
|
-
str += joiner;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
return str;
|
|
157
|
-
};
|
|
158
|
-
module2.exports = function bind(that) {
|
|
159
|
-
var target = this;
|
|
160
|
-
if (typeof target !== "function" || toStr.apply(target) !== funcType) {
|
|
161
|
-
throw new TypeError(ERROR_MESSAGE + target);
|
|
162
|
-
}
|
|
163
|
-
var args = slicy(arguments, 1);
|
|
164
|
-
var bound;
|
|
165
|
-
var binder = function() {
|
|
166
|
-
if (this instanceof bound) {
|
|
167
|
-
var result = target.apply(
|
|
168
|
-
this,
|
|
169
|
-
concatty(args, arguments)
|
|
170
|
-
);
|
|
171
|
-
if (Object(result) === result) {
|
|
172
|
-
return result;
|
|
173
|
-
}
|
|
174
|
-
return this;
|
|
175
|
-
}
|
|
176
|
-
return target.apply(
|
|
177
|
-
that,
|
|
178
|
-
concatty(args, arguments)
|
|
179
|
-
);
|
|
180
|
-
};
|
|
181
|
-
var boundLength = max(0, target.length - args.length);
|
|
182
|
-
var boundArgs = [];
|
|
183
|
-
for (var i = 0; i < boundLength; i++) {
|
|
184
|
-
boundArgs[i] = "$" + i;
|
|
185
|
-
}
|
|
186
|
-
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
187
|
-
if (target.prototype) {
|
|
188
|
-
var Empty = function Empty2() {
|
|
189
|
-
};
|
|
190
|
-
Empty.prototype = target.prototype;
|
|
191
|
-
bound.prototype = new Empty();
|
|
192
|
-
Empty.prototype = null;
|
|
193
|
-
}
|
|
194
|
-
return bound;
|
|
195
|
-
};
|
|
196
|
-
}
|
|
197
|
-
});
|
|
198
|
-
var require_function_bind = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
199
|
-
"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(exports2, module2) {
|
|
200
|
-
"use strict";
|
|
201
|
-
var implementation = require_implementation();
|
|
202
|
-
module2.exports = Function.prototype.bind || implementation;
|
|
203
|
-
}
|
|
204
|
-
});
|
|
205
|
-
var require_hasown = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
206
|
-
"node_modules/.pnpm/hasown@2.0.0/node_modules/hasown/index.js"(exports2, module2) {
|
|
207
|
-
"use strict";
|
|
208
|
-
var call = Function.prototype.call;
|
|
209
|
-
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
210
|
-
var bind = require_function_bind();
|
|
211
|
-
module2.exports = bind.call(call, $hasOwn);
|
|
212
|
-
}
|
|
213
|
-
});
|
|
214
|
-
var require_get_intrinsic = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
215
|
-
"node_modules/.pnpm/get-intrinsic@1.2.2/node_modules/get-intrinsic/index.js"(exports2, module2) {
|
|
216
|
-
"use strict";
|
|
217
|
-
var undefined2;
|
|
218
|
-
var $SyntaxError = SyntaxError;
|
|
219
|
-
var $Function = Function;
|
|
220
|
-
var $TypeError = TypeError;
|
|
221
|
-
var getEvalledConstructor = function(expressionSyntax) {
|
|
222
|
-
try {
|
|
223
|
-
return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
|
|
224
|
-
} catch (e) {
|
|
225
|
-
}
|
|
226
|
-
};
|
|
227
|
-
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
228
|
-
if ($gOPD) {
|
|
229
|
-
try {
|
|
230
|
-
$gOPD({}, "");
|
|
231
|
-
} catch (e) {
|
|
232
|
-
$gOPD = null;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
var throwTypeError = function() {
|
|
236
|
-
throw new $TypeError();
|
|
237
|
-
};
|
|
238
|
-
var ThrowTypeError = $gOPD ? function() {
|
|
239
|
-
try {
|
|
240
|
-
arguments.callee;
|
|
241
|
-
return throwTypeError;
|
|
242
|
-
} catch (calleeThrows) {
|
|
243
|
-
try {
|
|
244
|
-
return $gOPD(arguments, "callee").get;
|
|
245
|
-
} catch (gOPDthrows) {
|
|
246
|
-
return throwTypeError;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
}() : throwTypeError;
|
|
250
|
-
var hasSymbols = require_has_symbols()();
|
|
251
|
-
var hasProto = require_has_proto()();
|
|
252
|
-
var getProto = Object.getPrototypeOf || (hasProto ? function(x) {
|
|
253
|
-
return x.__proto__;
|
|
254
|
-
} : null);
|
|
255
|
-
var needsEval = {};
|
|
256
|
-
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined2 : getProto(Uint8Array);
|
|
257
|
-
var INTRINSICS = {
|
|
258
|
-
"%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError,
|
|
259
|
-
"%Array%": Array,
|
|
260
|
-
"%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer,
|
|
261
|
-
"%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined2,
|
|
262
|
-
"%AsyncFromSyncIteratorPrototype%": undefined2,
|
|
263
|
-
"%AsyncFunction%": needsEval,
|
|
264
|
-
"%AsyncGenerator%": needsEval,
|
|
265
|
-
"%AsyncGeneratorFunction%": needsEval,
|
|
266
|
-
"%AsyncIteratorPrototype%": needsEval,
|
|
267
|
-
"%Atomics%": typeof Atomics === "undefined" ? undefined2 : Atomics,
|
|
268
|
-
"%BigInt%": typeof BigInt === "undefined" ? undefined2 : BigInt,
|
|
269
|
-
"%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined2 : BigInt64Array,
|
|
270
|
-
"%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined2 : BigUint64Array,
|
|
271
|
-
"%Boolean%": Boolean,
|
|
272
|
-
"%DataView%": typeof DataView === "undefined" ? undefined2 : DataView,
|
|
273
|
-
"%Date%": Date,
|
|
274
|
-
"%decodeURI%": decodeURI,
|
|
275
|
-
"%decodeURIComponent%": decodeURIComponent,
|
|
276
|
-
"%encodeURI%": encodeURI,
|
|
277
|
-
"%encodeURIComponent%": encodeURIComponent,
|
|
278
|
-
"%Error%": Error,
|
|
279
|
-
"%eval%": eval,
|
|
280
|
-
// eslint-disable-line no-eval
|
|
281
|
-
"%EvalError%": EvalError,
|
|
282
|
-
"%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array,
|
|
283
|
-
"%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array,
|
|
284
|
-
"%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry,
|
|
285
|
-
"%Function%": $Function,
|
|
286
|
-
"%GeneratorFunction%": needsEval,
|
|
287
|
-
"%Int8Array%": typeof Int8Array === "undefined" ? undefined2 : Int8Array,
|
|
288
|
-
"%Int16Array%": typeof Int16Array === "undefined" ? undefined2 : Int16Array,
|
|
289
|
-
"%Int32Array%": typeof Int32Array === "undefined" ? undefined2 : Int32Array,
|
|
290
|
-
"%isFinite%": isFinite,
|
|
291
|
-
"%isNaN%": isNaN,
|
|
292
|
-
"%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined2,
|
|
293
|
-
"%JSON%": typeof JSON === "object" ? JSON : undefined2,
|
|
294
|
-
"%Map%": typeof Map === "undefined" ? undefined2 : Map,
|
|
295
|
-
"%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
296
|
-
"%Math%": Math,
|
|
297
|
-
"%Number%": Number,
|
|
298
|
-
"%Object%": Object,
|
|
299
|
-
"%parseFloat%": parseFloat,
|
|
300
|
-
"%parseInt%": parseInt,
|
|
301
|
-
"%Promise%": typeof Promise === "undefined" ? undefined2 : Promise,
|
|
302
|
-
"%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy,
|
|
303
|
-
"%RangeError%": RangeError,
|
|
304
|
-
"%ReferenceError%": ReferenceError,
|
|
305
|
-
"%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
|
|
306
|
-
"%RegExp%": RegExp,
|
|
307
|
-
"%Set%": typeof Set === "undefined" ? undefined2 : Set,
|
|
308
|
-
"%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
309
|
-
"%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined2 : SharedArrayBuffer,
|
|
310
|
-
"%String%": String,
|
|
311
|
-
"%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined2,
|
|
312
|
-
"%Symbol%": hasSymbols ? Symbol : undefined2,
|
|
313
|
-
"%SyntaxError%": $SyntaxError,
|
|
314
|
-
"%ThrowTypeError%": ThrowTypeError,
|
|
315
|
-
"%TypedArray%": TypedArray,
|
|
316
|
-
"%TypeError%": $TypeError,
|
|
317
|
-
"%Uint8Array%": typeof Uint8Array === "undefined" ? undefined2 : Uint8Array,
|
|
318
|
-
"%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined2 : Uint8ClampedArray,
|
|
319
|
-
"%Uint16Array%": typeof Uint16Array === "undefined" ? undefined2 : Uint16Array,
|
|
320
|
-
"%Uint32Array%": typeof Uint32Array === "undefined" ? undefined2 : Uint32Array,
|
|
321
|
-
"%URIError%": URIError,
|
|
322
|
-
"%WeakMap%": typeof WeakMap === "undefined" ? undefined2 : WeakMap,
|
|
323
|
-
"%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef,
|
|
324
|
-
"%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet
|
|
325
|
-
};
|
|
326
|
-
if (getProto) {
|
|
327
|
-
try {
|
|
328
|
-
null.error;
|
|
329
|
-
} catch (e) {
|
|
330
|
-
errorProto = getProto(getProto(e));
|
|
331
|
-
INTRINSICS["%Error.prototype%"] = errorProto;
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
var errorProto;
|
|
335
|
-
var doEval = function doEval2(name) {
|
|
336
|
-
var value;
|
|
337
|
-
if (name === "%AsyncFunction%") {
|
|
338
|
-
value = getEvalledConstructor("async function () {}");
|
|
339
|
-
} else if (name === "%GeneratorFunction%") {
|
|
340
|
-
value = getEvalledConstructor("function* () {}");
|
|
341
|
-
} else if (name === "%AsyncGeneratorFunction%") {
|
|
342
|
-
value = getEvalledConstructor("async function* () {}");
|
|
343
|
-
} else if (name === "%AsyncGenerator%") {
|
|
344
|
-
var fn = doEval2("%AsyncGeneratorFunction%");
|
|
345
|
-
if (fn) {
|
|
346
|
-
value = fn.prototype;
|
|
347
|
-
}
|
|
348
|
-
} else if (name === "%AsyncIteratorPrototype%") {
|
|
349
|
-
var gen = doEval2("%AsyncGenerator%");
|
|
350
|
-
if (gen && getProto) {
|
|
351
|
-
value = getProto(gen.prototype);
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
INTRINSICS[name] = value;
|
|
355
|
-
return value;
|
|
356
|
-
};
|
|
357
|
-
var LEGACY_ALIASES = {
|
|
358
|
-
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
359
|
-
"%ArrayPrototype%": ["Array", "prototype"],
|
|
360
|
-
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
361
|
-
"%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
|
|
362
|
-
"%ArrayProto_keys%": ["Array", "prototype", "keys"],
|
|
363
|
-
"%ArrayProto_values%": ["Array", "prototype", "values"],
|
|
364
|
-
"%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
|
|
365
|
-
"%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
|
|
366
|
-
"%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
|
|
367
|
-
"%BooleanPrototype%": ["Boolean", "prototype"],
|
|
368
|
-
"%DataViewPrototype%": ["DataView", "prototype"],
|
|
369
|
-
"%DatePrototype%": ["Date", "prototype"],
|
|
370
|
-
"%ErrorPrototype%": ["Error", "prototype"],
|
|
371
|
-
"%EvalErrorPrototype%": ["EvalError", "prototype"],
|
|
372
|
-
"%Float32ArrayPrototype%": ["Float32Array", "prototype"],
|
|
373
|
-
"%Float64ArrayPrototype%": ["Float64Array", "prototype"],
|
|
374
|
-
"%FunctionPrototype%": ["Function", "prototype"],
|
|
375
|
-
"%Generator%": ["GeneratorFunction", "prototype"],
|
|
376
|
-
"%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
|
|
377
|
-
"%Int8ArrayPrototype%": ["Int8Array", "prototype"],
|
|
378
|
-
"%Int16ArrayPrototype%": ["Int16Array", "prototype"],
|
|
379
|
-
"%Int32ArrayPrototype%": ["Int32Array", "prototype"],
|
|
380
|
-
"%JSONParse%": ["JSON", "parse"],
|
|
381
|
-
"%JSONStringify%": ["JSON", "stringify"],
|
|
382
|
-
"%MapPrototype%": ["Map", "prototype"],
|
|
383
|
-
"%NumberPrototype%": ["Number", "prototype"],
|
|
384
|
-
"%ObjectPrototype%": ["Object", "prototype"],
|
|
385
|
-
"%ObjProto_toString%": ["Object", "prototype", "toString"],
|
|
386
|
-
"%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
|
|
387
|
-
"%PromisePrototype%": ["Promise", "prototype"],
|
|
388
|
-
"%PromiseProto_then%": ["Promise", "prototype", "then"],
|
|
389
|
-
"%Promise_all%": ["Promise", "all"],
|
|
390
|
-
"%Promise_reject%": ["Promise", "reject"],
|
|
391
|
-
"%Promise_resolve%": ["Promise", "resolve"],
|
|
392
|
-
"%RangeErrorPrototype%": ["RangeError", "prototype"],
|
|
393
|
-
"%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
|
|
394
|
-
"%RegExpPrototype%": ["RegExp", "prototype"],
|
|
395
|
-
"%SetPrototype%": ["Set", "prototype"],
|
|
396
|
-
"%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
|
|
397
|
-
"%StringPrototype%": ["String", "prototype"],
|
|
398
|
-
"%SymbolPrototype%": ["Symbol", "prototype"],
|
|
399
|
-
"%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
|
|
400
|
-
"%TypedArrayPrototype%": ["TypedArray", "prototype"],
|
|
401
|
-
"%TypeErrorPrototype%": ["TypeError", "prototype"],
|
|
402
|
-
"%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
|
|
403
|
-
"%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
|
|
404
|
-
"%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
|
|
405
|
-
"%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
|
|
406
|
-
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
407
|
-
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
408
|
-
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
409
|
-
};
|
|
410
|
-
var bind = require_function_bind();
|
|
411
|
-
var hasOwn = require_hasown();
|
|
412
|
-
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
413
|
-
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
414
|
-
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
415
|
-
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
416
|
-
var $exec = bind.call(Function.call, RegExp.prototype.exec);
|
|
417
|
-
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
418
|
-
var reEscapeChar = /\\(\\)?/g;
|
|
419
|
-
var stringToPath = function stringToPath2(string) {
|
|
420
|
-
var first = $strSlice(string, 0, 1);
|
|
421
|
-
var last = $strSlice(string, -1);
|
|
422
|
-
if (first === "%" && last !== "%") {
|
|
423
|
-
throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
|
|
424
|
-
} else if (last === "%" && first !== "%") {
|
|
425
|
-
throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
|
|
426
|
-
}
|
|
427
|
-
var result = [];
|
|
428
|
-
$replace(string, rePropName, function(match, number, quote, subString) {
|
|
429
|
-
result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number || match;
|
|
430
|
-
});
|
|
431
|
-
return result;
|
|
432
|
-
};
|
|
433
|
-
var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
|
|
434
|
-
var intrinsicName = name;
|
|
435
|
-
var alias;
|
|
436
|
-
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
437
|
-
alias = LEGACY_ALIASES[intrinsicName];
|
|
438
|
-
intrinsicName = "%" + alias[0] + "%";
|
|
439
|
-
}
|
|
440
|
-
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
441
|
-
var value = INTRINSICS[intrinsicName];
|
|
442
|
-
if (value === needsEval) {
|
|
443
|
-
value = doEval(intrinsicName);
|
|
444
|
-
}
|
|
445
|
-
if (typeof value === "undefined" && !allowMissing) {
|
|
446
|
-
throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!");
|
|
447
|
-
}
|
|
448
|
-
return {
|
|
449
|
-
alias,
|
|
450
|
-
name: intrinsicName,
|
|
451
|
-
value
|
|
452
|
-
};
|
|
453
|
-
}
|
|
454
|
-
throw new $SyntaxError("intrinsic " + name + " does not exist!");
|
|
455
|
-
};
|
|
456
|
-
module2.exports = function GetIntrinsic(name, allowMissing) {
|
|
457
|
-
if (typeof name !== "string" || name.length === 0) {
|
|
458
|
-
throw new $TypeError("intrinsic name must be a non-empty string");
|
|
459
|
-
}
|
|
460
|
-
if (arguments.length > 1 && typeof allowMissing !== "boolean") {
|
|
461
|
-
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
462
|
-
}
|
|
463
|
-
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
|
464
|
-
throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
465
|
-
}
|
|
466
|
-
var parts = stringToPath(name);
|
|
467
|
-
var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
|
|
468
|
-
var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
|
|
469
|
-
var intrinsicRealName = intrinsic.name;
|
|
470
|
-
var value = intrinsic.value;
|
|
471
|
-
var skipFurtherCaching = false;
|
|
472
|
-
var alias = intrinsic.alias;
|
|
473
|
-
if (alias) {
|
|
474
|
-
intrinsicBaseName = alias[0];
|
|
475
|
-
$spliceApply(parts, $concat([0, 1], alias));
|
|
476
|
-
}
|
|
477
|
-
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
478
|
-
var part = parts[i];
|
|
479
|
-
var first = $strSlice(part, 0, 1);
|
|
480
|
-
var last = $strSlice(part, -1);
|
|
481
|
-
if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
|
|
482
|
-
throw new $SyntaxError("property names with quotes must have matching quotes");
|
|
483
|
-
}
|
|
484
|
-
if (part === "constructor" || !isOwn) {
|
|
485
|
-
skipFurtherCaching = true;
|
|
486
|
-
}
|
|
487
|
-
intrinsicBaseName += "." + part;
|
|
488
|
-
intrinsicRealName = "%" + intrinsicBaseName + "%";
|
|
489
|
-
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
490
|
-
value = INTRINSICS[intrinsicRealName];
|
|
491
|
-
} else if (value != null) {
|
|
492
|
-
if (!(part in value)) {
|
|
493
|
-
if (!allowMissing) {
|
|
494
|
-
throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
|
|
495
|
-
}
|
|
496
|
-
return void 0;
|
|
497
|
-
}
|
|
498
|
-
if ($gOPD && i + 1 >= parts.length) {
|
|
499
|
-
var desc = $gOPD(value, part);
|
|
500
|
-
isOwn = !!desc;
|
|
501
|
-
if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
|
|
502
|
-
value = desc.get;
|
|
503
|
-
} else {
|
|
504
|
-
value = value[part];
|
|
505
|
-
}
|
|
506
|
-
} else {
|
|
507
|
-
isOwn = hasOwn(value, part);
|
|
508
|
-
value = value[part];
|
|
509
|
-
}
|
|
510
|
-
if (isOwn && !skipFurtherCaching) {
|
|
511
|
-
INTRINSICS[intrinsicRealName] = value;
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
return value;
|
|
516
|
-
};
|
|
517
|
-
}
|
|
518
|
-
});
|
|
519
|
-
var require_has_property_descriptors = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
520
|
-
"node_modules/.pnpm/has-property-descriptors@1.0.0/node_modules/has-property-descriptors/index.js"(exports2, module2) {
|
|
521
|
-
"use strict";
|
|
522
|
-
var GetIntrinsic = require_get_intrinsic();
|
|
523
|
-
var $defineProperty = GetIntrinsic("%Object.defineProperty%", true);
|
|
524
|
-
var hasPropertyDescriptors = function hasPropertyDescriptors2() {
|
|
525
|
-
if ($defineProperty) {
|
|
526
|
-
try {
|
|
527
|
-
$defineProperty({}, "a", { value: 1 });
|
|
528
|
-
return true;
|
|
529
|
-
} catch (e) {
|
|
530
|
-
return false;
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
return false;
|
|
534
|
-
};
|
|
535
|
-
hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
|
|
536
|
-
if (!hasPropertyDescriptors()) {
|
|
537
|
-
return null;
|
|
538
|
-
}
|
|
539
|
-
try {
|
|
540
|
-
return $defineProperty([], "length", { value: 1 }).length !== 1;
|
|
541
|
-
} catch (e) {
|
|
542
|
-
return true;
|
|
543
|
-
}
|
|
544
|
-
};
|
|
545
|
-
module2.exports = hasPropertyDescriptors;
|
|
546
|
-
}
|
|
547
|
-
});
|
|
548
|
-
var require_es_errors = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
549
|
-
"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(exports2, module2) {
|
|
550
|
-
"use strict";
|
|
551
|
-
module2.exports = Error;
|
|
552
|
-
}
|
|
553
|
-
});
|
|
554
|
-
var require_eval = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
555
|
-
"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(exports2, module2) {
|
|
556
|
-
"use strict";
|
|
557
|
-
module2.exports = EvalError;
|
|
558
|
-
}
|
|
559
|
-
});
|
|
560
|
-
var require_range = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
561
|
-
"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(exports2, module2) {
|
|
562
|
-
"use strict";
|
|
563
|
-
module2.exports = RangeError;
|
|
564
|
-
}
|
|
565
|
-
});
|
|
566
|
-
var require_ref = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
567
|
-
"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(exports2, module2) {
|
|
568
|
-
"use strict";
|
|
569
|
-
module2.exports = ReferenceError;
|
|
570
|
-
}
|
|
571
|
-
});
|
|
572
|
-
var require_syntax = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
573
|
-
"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(exports2, module2) {
|
|
574
|
-
"use strict";
|
|
575
|
-
module2.exports = SyntaxError;
|
|
576
|
-
}
|
|
577
|
-
});
|
|
578
|
-
var require_type = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
579
|
-
"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(exports2, module2) {
|
|
580
|
-
"use strict";
|
|
581
|
-
module2.exports = TypeError;
|
|
582
|
-
}
|
|
583
|
-
});
|
|
584
|
-
var require_uri = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
585
|
-
"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(exports2, module2) {
|
|
586
|
-
"use strict";
|
|
587
|
-
module2.exports = URIError;
|
|
588
|
-
}
|
|
589
|
-
});
|
|
590
|
-
var require_has_proto2 = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
591
|
-
"node_modules/.pnpm/has-proto@1.0.3/node_modules/has-proto/index.js"(exports2, module2) {
|
|
592
|
-
"use strict";
|
|
593
|
-
var test = {
|
|
594
|
-
__proto__: null,
|
|
595
|
-
foo: {}
|
|
596
|
-
};
|
|
597
|
-
var $Object = Object;
|
|
598
|
-
module2.exports = function hasProto() {
|
|
599
|
-
return { __proto__: test }.foo === test.foo && !(test instanceof $Object);
|
|
600
|
-
};
|
|
601
|
-
}
|
|
602
|
-
});
|
|
603
|
-
var require_hasown2 = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
604
|
-
"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(exports2, module2) {
|
|
605
|
-
"use strict";
|
|
606
|
-
var call = Function.prototype.call;
|
|
607
|
-
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
608
|
-
var bind = require_function_bind();
|
|
609
|
-
module2.exports = bind.call(call, $hasOwn);
|
|
610
|
-
}
|
|
611
|
-
});
|
|
612
|
-
var require_get_intrinsic2 = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
613
|
-
"node_modules/.pnpm/get-intrinsic@1.2.4/node_modules/get-intrinsic/index.js"(exports2, module2) {
|
|
614
|
-
"use strict";
|
|
615
|
-
var undefined2;
|
|
616
|
-
var $Error = require_es_errors();
|
|
617
|
-
var $EvalError = require_eval();
|
|
618
|
-
var $RangeError = require_range();
|
|
619
|
-
var $ReferenceError = require_ref();
|
|
620
|
-
var $SyntaxError = require_syntax();
|
|
621
|
-
var $TypeError = require_type();
|
|
622
|
-
var $URIError = require_uri();
|
|
623
|
-
var $Function = Function;
|
|
624
|
-
var getEvalledConstructor = function(expressionSyntax) {
|
|
625
|
-
try {
|
|
626
|
-
return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
|
|
627
|
-
} catch (e) {
|
|
628
|
-
}
|
|
629
|
-
};
|
|
630
|
-
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
631
|
-
if ($gOPD) {
|
|
632
|
-
try {
|
|
633
|
-
$gOPD({}, "");
|
|
634
|
-
} catch (e) {
|
|
635
|
-
$gOPD = null;
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
var throwTypeError = function() {
|
|
639
|
-
throw new $TypeError();
|
|
640
|
-
};
|
|
641
|
-
var ThrowTypeError = $gOPD ? function() {
|
|
642
|
-
try {
|
|
643
|
-
arguments.callee;
|
|
644
|
-
return throwTypeError;
|
|
645
|
-
} catch (calleeThrows) {
|
|
646
|
-
try {
|
|
647
|
-
return $gOPD(arguments, "callee").get;
|
|
648
|
-
} catch (gOPDthrows) {
|
|
649
|
-
return throwTypeError;
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
}() : throwTypeError;
|
|
653
|
-
var hasSymbols = require_has_symbols()();
|
|
654
|
-
var hasProto = require_has_proto2()();
|
|
655
|
-
var getProto = Object.getPrototypeOf || (hasProto ? function(x) {
|
|
656
|
-
return x.__proto__;
|
|
657
|
-
} : null);
|
|
658
|
-
var needsEval = {};
|
|
659
|
-
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined2 : getProto(Uint8Array);
|
|
660
|
-
var INTRINSICS = {
|
|
661
|
-
__proto__: null,
|
|
662
|
-
"%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError,
|
|
663
|
-
"%Array%": Array,
|
|
664
|
-
"%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer,
|
|
665
|
-
"%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined2,
|
|
666
|
-
"%AsyncFromSyncIteratorPrototype%": undefined2,
|
|
667
|
-
"%AsyncFunction%": needsEval,
|
|
668
|
-
"%AsyncGenerator%": needsEval,
|
|
669
|
-
"%AsyncGeneratorFunction%": needsEval,
|
|
670
|
-
"%AsyncIteratorPrototype%": needsEval,
|
|
671
|
-
"%Atomics%": typeof Atomics === "undefined" ? undefined2 : Atomics,
|
|
672
|
-
"%BigInt%": typeof BigInt === "undefined" ? undefined2 : BigInt,
|
|
673
|
-
"%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined2 : BigInt64Array,
|
|
674
|
-
"%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined2 : BigUint64Array,
|
|
675
|
-
"%Boolean%": Boolean,
|
|
676
|
-
"%DataView%": typeof DataView === "undefined" ? undefined2 : DataView,
|
|
677
|
-
"%Date%": Date,
|
|
678
|
-
"%decodeURI%": decodeURI,
|
|
679
|
-
"%decodeURIComponent%": decodeURIComponent,
|
|
680
|
-
"%encodeURI%": encodeURI,
|
|
681
|
-
"%encodeURIComponent%": encodeURIComponent,
|
|
682
|
-
"%Error%": $Error,
|
|
683
|
-
"%eval%": eval,
|
|
684
|
-
// eslint-disable-line no-eval
|
|
685
|
-
"%EvalError%": $EvalError,
|
|
686
|
-
"%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array,
|
|
687
|
-
"%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array,
|
|
688
|
-
"%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry,
|
|
689
|
-
"%Function%": $Function,
|
|
690
|
-
"%GeneratorFunction%": needsEval,
|
|
691
|
-
"%Int8Array%": typeof Int8Array === "undefined" ? undefined2 : Int8Array,
|
|
692
|
-
"%Int16Array%": typeof Int16Array === "undefined" ? undefined2 : Int16Array,
|
|
693
|
-
"%Int32Array%": typeof Int32Array === "undefined" ? undefined2 : Int32Array,
|
|
694
|
-
"%isFinite%": isFinite,
|
|
695
|
-
"%isNaN%": isNaN,
|
|
696
|
-
"%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined2,
|
|
697
|
-
"%JSON%": typeof JSON === "object" ? JSON : undefined2,
|
|
698
|
-
"%Map%": typeof Map === "undefined" ? undefined2 : Map,
|
|
699
|
-
"%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
700
|
-
"%Math%": Math,
|
|
701
|
-
"%Number%": Number,
|
|
702
|
-
"%Object%": Object,
|
|
703
|
-
"%parseFloat%": parseFloat,
|
|
704
|
-
"%parseInt%": parseInt,
|
|
705
|
-
"%Promise%": typeof Promise === "undefined" ? undefined2 : Promise,
|
|
706
|
-
"%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy,
|
|
707
|
-
"%RangeError%": $RangeError,
|
|
708
|
-
"%ReferenceError%": $ReferenceError,
|
|
709
|
-
"%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
|
|
710
|
-
"%RegExp%": RegExp,
|
|
711
|
-
"%Set%": typeof Set === "undefined" ? undefined2 : Set,
|
|
712
|
-
"%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
713
|
-
"%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined2 : SharedArrayBuffer,
|
|
714
|
-
"%String%": String,
|
|
715
|
-
"%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined2,
|
|
716
|
-
"%Symbol%": hasSymbols ? Symbol : undefined2,
|
|
717
|
-
"%SyntaxError%": $SyntaxError,
|
|
718
|
-
"%ThrowTypeError%": ThrowTypeError,
|
|
719
|
-
"%TypedArray%": TypedArray,
|
|
720
|
-
"%TypeError%": $TypeError,
|
|
721
|
-
"%Uint8Array%": typeof Uint8Array === "undefined" ? undefined2 : Uint8Array,
|
|
722
|
-
"%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined2 : Uint8ClampedArray,
|
|
723
|
-
"%Uint16Array%": typeof Uint16Array === "undefined" ? undefined2 : Uint16Array,
|
|
724
|
-
"%Uint32Array%": typeof Uint32Array === "undefined" ? undefined2 : Uint32Array,
|
|
725
|
-
"%URIError%": $URIError,
|
|
726
|
-
"%WeakMap%": typeof WeakMap === "undefined" ? undefined2 : WeakMap,
|
|
727
|
-
"%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef,
|
|
728
|
-
"%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet
|
|
729
|
-
};
|
|
730
|
-
if (getProto) {
|
|
731
|
-
try {
|
|
732
|
-
null.error;
|
|
733
|
-
} catch (e) {
|
|
734
|
-
errorProto = getProto(getProto(e));
|
|
735
|
-
INTRINSICS["%Error.prototype%"] = errorProto;
|
|
736
|
-
}
|
|
737
|
-
}
|
|
738
|
-
var errorProto;
|
|
739
|
-
var doEval = function doEval2(name) {
|
|
740
|
-
var value;
|
|
741
|
-
if (name === "%AsyncFunction%") {
|
|
742
|
-
value = getEvalledConstructor("async function () {}");
|
|
743
|
-
} else if (name === "%GeneratorFunction%") {
|
|
744
|
-
value = getEvalledConstructor("function* () {}");
|
|
745
|
-
} else if (name === "%AsyncGeneratorFunction%") {
|
|
746
|
-
value = getEvalledConstructor("async function* () {}");
|
|
747
|
-
} else if (name === "%AsyncGenerator%") {
|
|
748
|
-
var fn = doEval2("%AsyncGeneratorFunction%");
|
|
749
|
-
if (fn) {
|
|
750
|
-
value = fn.prototype;
|
|
751
|
-
}
|
|
752
|
-
} else if (name === "%AsyncIteratorPrototype%") {
|
|
753
|
-
var gen = doEval2("%AsyncGenerator%");
|
|
754
|
-
if (gen && getProto) {
|
|
755
|
-
value = getProto(gen.prototype);
|
|
756
|
-
}
|
|
757
|
-
}
|
|
758
|
-
INTRINSICS[name] = value;
|
|
759
|
-
return value;
|
|
760
|
-
};
|
|
761
|
-
var LEGACY_ALIASES = {
|
|
762
|
-
__proto__: null,
|
|
763
|
-
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
764
|
-
"%ArrayPrototype%": ["Array", "prototype"],
|
|
765
|
-
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
766
|
-
"%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
|
|
767
|
-
"%ArrayProto_keys%": ["Array", "prototype", "keys"],
|
|
768
|
-
"%ArrayProto_values%": ["Array", "prototype", "values"],
|
|
769
|
-
"%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
|
|
770
|
-
"%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
|
|
771
|
-
"%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
|
|
772
|
-
"%BooleanPrototype%": ["Boolean", "prototype"],
|
|
773
|
-
"%DataViewPrototype%": ["DataView", "prototype"],
|
|
774
|
-
"%DatePrototype%": ["Date", "prototype"],
|
|
775
|
-
"%ErrorPrototype%": ["Error", "prototype"],
|
|
776
|
-
"%EvalErrorPrototype%": ["EvalError", "prototype"],
|
|
777
|
-
"%Float32ArrayPrototype%": ["Float32Array", "prototype"],
|
|
778
|
-
"%Float64ArrayPrototype%": ["Float64Array", "prototype"],
|
|
779
|
-
"%FunctionPrototype%": ["Function", "prototype"],
|
|
780
|
-
"%Generator%": ["GeneratorFunction", "prototype"],
|
|
781
|
-
"%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
|
|
782
|
-
"%Int8ArrayPrototype%": ["Int8Array", "prototype"],
|
|
783
|
-
"%Int16ArrayPrototype%": ["Int16Array", "prototype"],
|
|
784
|
-
"%Int32ArrayPrototype%": ["Int32Array", "prototype"],
|
|
785
|
-
"%JSONParse%": ["JSON", "parse"],
|
|
786
|
-
"%JSONStringify%": ["JSON", "stringify"],
|
|
787
|
-
"%MapPrototype%": ["Map", "prototype"],
|
|
788
|
-
"%NumberPrototype%": ["Number", "prototype"],
|
|
789
|
-
"%ObjectPrototype%": ["Object", "prototype"],
|
|
790
|
-
"%ObjProto_toString%": ["Object", "prototype", "toString"],
|
|
791
|
-
"%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
|
|
792
|
-
"%PromisePrototype%": ["Promise", "prototype"],
|
|
793
|
-
"%PromiseProto_then%": ["Promise", "prototype", "then"],
|
|
794
|
-
"%Promise_all%": ["Promise", "all"],
|
|
795
|
-
"%Promise_reject%": ["Promise", "reject"],
|
|
796
|
-
"%Promise_resolve%": ["Promise", "resolve"],
|
|
797
|
-
"%RangeErrorPrototype%": ["RangeError", "prototype"],
|
|
798
|
-
"%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
|
|
799
|
-
"%RegExpPrototype%": ["RegExp", "prototype"],
|
|
800
|
-
"%SetPrototype%": ["Set", "prototype"],
|
|
801
|
-
"%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
|
|
802
|
-
"%StringPrototype%": ["String", "prototype"],
|
|
803
|
-
"%SymbolPrototype%": ["Symbol", "prototype"],
|
|
804
|
-
"%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
|
|
805
|
-
"%TypedArrayPrototype%": ["TypedArray", "prototype"],
|
|
806
|
-
"%TypeErrorPrototype%": ["TypeError", "prototype"],
|
|
807
|
-
"%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
|
|
808
|
-
"%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
|
|
809
|
-
"%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
|
|
810
|
-
"%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
|
|
811
|
-
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
812
|
-
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
813
|
-
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
814
|
-
};
|
|
815
|
-
var bind = require_function_bind();
|
|
816
|
-
var hasOwn = require_hasown2();
|
|
817
|
-
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
818
|
-
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
819
|
-
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
820
|
-
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
821
|
-
var $exec = bind.call(Function.call, RegExp.prototype.exec);
|
|
822
|
-
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
823
|
-
var reEscapeChar = /\\(\\)?/g;
|
|
824
|
-
var stringToPath = function stringToPath2(string) {
|
|
825
|
-
var first = $strSlice(string, 0, 1);
|
|
826
|
-
var last = $strSlice(string, -1);
|
|
827
|
-
if (first === "%" && last !== "%") {
|
|
828
|
-
throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
|
|
829
|
-
} else if (last === "%" && first !== "%") {
|
|
830
|
-
throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
|
|
831
|
-
}
|
|
832
|
-
var result = [];
|
|
833
|
-
$replace(string, rePropName, function(match, number, quote, subString) {
|
|
834
|
-
result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number || match;
|
|
835
|
-
});
|
|
836
|
-
return result;
|
|
837
|
-
};
|
|
838
|
-
var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
|
|
839
|
-
var intrinsicName = name;
|
|
840
|
-
var alias;
|
|
841
|
-
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
842
|
-
alias = LEGACY_ALIASES[intrinsicName];
|
|
843
|
-
intrinsicName = "%" + alias[0] + "%";
|
|
844
|
-
}
|
|
845
|
-
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
846
|
-
var value = INTRINSICS[intrinsicName];
|
|
847
|
-
if (value === needsEval) {
|
|
848
|
-
value = doEval(intrinsicName);
|
|
849
|
-
}
|
|
850
|
-
if (typeof value === "undefined" && !allowMissing) {
|
|
851
|
-
throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!");
|
|
852
|
-
}
|
|
853
|
-
return {
|
|
854
|
-
alias,
|
|
855
|
-
name: intrinsicName,
|
|
856
|
-
value
|
|
857
|
-
};
|
|
858
|
-
}
|
|
859
|
-
throw new $SyntaxError("intrinsic " + name + " does not exist!");
|
|
860
|
-
};
|
|
861
|
-
module2.exports = function GetIntrinsic(name, allowMissing) {
|
|
862
|
-
if (typeof name !== "string" || name.length === 0) {
|
|
863
|
-
throw new $TypeError("intrinsic name must be a non-empty string");
|
|
864
|
-
}
|
|
865
|
-
if (arguments.length > 1 && typeof allowMissing !== "boolean") {
|
|
866
|
-
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
867
|
-
}
|
|
868
|
-
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
|
869
|
-
throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
870
|
-
}
|
|
871
|
-
var parts = stringToPath(name);
|
|
872
|
-
var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
|
|
873
|
-
var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
|
|
874
|
-
var intrinsicRealName = intrinsic.name;
|
|
875
|
-
var value = intrinsic.value;
|
|
876
|
-
var skipFurtherCaching = false;
|
|
877
|
-
var alias = intrinsic.alias;
|
|
878
|
-
if (alias) {
|
|
879
|
-
intrinsicBaseName = alias[0];
|
|
880
|
-
$spliceApply(parts, $concat([0, 1], alias));
|
|
881
|
-
}
|
|
882
|
-
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
883
|
-
var part = parts[i];
|
|
884
|
-
var first = $strSlice(part, 0, 1);
|
|
885
|
-
var last = $strSlice(part, -1);
|
|
886
|
-
if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
|
|
887
|
-
throw new $SyntaxError("property names with quotes must have matching quotes");
|
|
888
|
-
}
|
|
889
|
-
if (part === "constructor" || !isOwn) {
|
|
890
|
-
skipFurtherCaching = true;
|
|
891
|
-
}
|
|
892
|
-
intrinsicBaseName += "." + part;
|
|
893
|
-
intrinsicRealName = "%" + intrinsicBaseName + "%";
|
|
894
|
-
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
895
|
-
value = INTRINSICS[intrinsicRealName];
|
|
896
|
-
} else if (value != null) {
|
|
897
|
-
if (!(part in value)) {
|
|
898
|
-
if (!allowMissing) {
|
|
899
|
-
throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
|
|
900
|
-
}
|
|
901
|
-
return void 0;
|
|
902
|
-
}
|
|
903
|
-
if ($gOPD && i + 1 >= parts.length) {
|
|
904
|
-
var desc = $gOPD(value, part);
|
|
905
|
-
isOwn = !!desc;
|
|
906
|
-
if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
|
|
907
|
-
value = desc.get;
|
|
908
|
-
} else {
|
|
909
|
-
value = value[part];
|
|
910
|
-
}
|
|
911
|
-
} else {
|
|
912
|
-
isOwn = hasOwn(value, part);
|
|
913
|
-
value = value[part];
|
|
914
|
-
}
|
|
915
|
-
if (isOwn && !skipFurtherCaching) {
|
|
916
|
-
INTRINSICS[intrinsicRealName] = value;
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
}
|
|
920
|
-
return value;
|
|
921
|
-
};
|
|
922
|
-
}
|
|
923
|
-
});
|
|
924
|
-
var require_gopd = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
925
|
-
"node_modules/.pnpm/gopd@1.0.1/node_modules/gopd/index.js"(exports2, module2) {
|
|
926
|
-
"use strict";
|
|
927
|
-
var GetIntrinsic = require_get_intrinsic();
|
|
928
|
-
var $gOPD = GetIntrinsic("%Object.getOwnPropertyDescriptor%", true);
|
|
929
|
-
if ($gOPD) {
|
|
930
|
-
try {
|
|
931
|
-
$gOPD([], "length");
|
|
932
|
-
} catch (e) {
|
|
933
|
-
$gOPD = null;
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
module2.exports = $gOPD;
|
|
937
|
-
}
|
|
938
|
-
});
|
|
939
|
-
var require_define_data_property = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
940
|
-
"node_modules/.pnpm/define-data-property@1.1.1/node_modules/define-data-property/index.js"(exports2, module2) {
|
|
941
|
-
"use strict";
|
|
942
|
-
var hasPropertyDescriptors = require_has_property_descriptors()();
|
|
943
|
-
var GetIntrinsic = require_get_intrinsic2();
|
|
944
|
-
var $defineProperty = hasPropertyDescriptors && GetIntrinsic("%Object.defineProperty%", true);
|
|
945
|
-
if ($defineProperty) {
|
|
946
|
-
try {
|
|
947
|
-
$defineProperty({}, "a", { value: 1 });
|
|
948
|
-
} catch (e) {
|
|
949
|
-
$defineProperty = false;
|
|
950
|
-
}
|
|
951
|
-
}
|
|
952
|
-
var $SyntaxError = GetIntrinsic("%SyntaxError%");
|
|
953
|
-
var $TypeError = GetIntrinsic("%TypeError%");
|
|
954
|
-
var gopd = require_gopd();
|
|
955
|
-
module2.exports = function defineDataProperty(obj, property, value) {
|
|
956
|
-
if (!obj || typeof obj !== "object" && typeof obj !== "function") {
|
|
957
|
-
throw new $TypeError("`obj` must be an object or a function`");
|
|
958
|
-
}
|
|
959
|
-
if (typeof property !== "string" && typeof property !== "symbol") {
|
|
960
|
-
throw new $TypeError("`property` must be a string or a symbol`");
|
|
961
|
-
}
|
|
962
|
-
if (arguments.length > 3 && typeof arguments[3] !== "boolean" && arguments[3] !== null) {
|
|
963
|
-
throw new $TypeError("`nonEnumerable`, if provided, must be a boolean or null");
|
|
964
|
-
}
|
|
965
|
-
if (arguments.length > 4 && typeof arguments[4] !== "boolean" && arguments[4] !== null) {
|
|
966
|
-
throw new $TypeError("`nonWritable`, if provided, must be a boolean or null");
|
|
967
|
-
}
|
|
968
|
-
if (arguments.length > 5 && typeof arguments[5] !== "boolean" && arguments[5] !== null) {
|
|
969
|
-
throw new $TypeError("`nonConfigurable`, if provided, must be a boolean or null");
|
|
970
|
-
}
|
|
971
|
-
if (arguments.length > 6 && typeof arguments[6] !== "boolean") {
|
|
972
|
-
throw new $TypeError("`loose`, if provided, must be a boolean");
|
|
973
|
-
}
|
|
974
|
-
var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
|
|
975
|
-
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
976
|
-
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
977
|
-
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
978
|
-
var desc = !!gopd && gopd(obj, property);
|
|
979
|
-
if ($defineProperty) {
|
|
980
|
-
$defineProperty(obj, property, {
|
|
981
|
-
configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
|
|
982
|
-
enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
|
|
983
|
-
value,
|
|
984
|
-
writable: nonWritable === null && desc ? desc.writable : !nonWritable
|
|
985
|
-
});
|
|
986
|
-
} else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) {
|
|
987
|
-
obj[property] = value;
|
|
988
|
-
} else {
|
|
989
|
-
throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
990
|
-
}
|
|
991
|
-
};
|
|
992
|
-
}
|
|
993
|
-
});
|
|
994
|
-
var require_set_function_length = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
995
|
-
"node_modules/.pnpm/set-function-length@1.1.1/node_modules/set-function-length/index.js"(exports2, module2) {
|
|
996
|
-
"use strict";
|
|
997
|
-
var GetIntrinsic = require_get_intrinsic();
|
|
998
|
-
var define = require_define_data_property();
|
|
999
|
-
var hasDescriptors = require_has_property_descriptors()();
|
|
1000
|
-
var gOPD = require_gopd();
|
|
1001
|
-
var $TypeError = GetIntrinsic("%TypeError%");
|
|
1002
|
-
var $floor = GetIntrinsic("%Math.floor%");
|
|
1003
|
-
module2.exports = function setFunctionLength(fn, length) {
|
|
1004
|
-
if (typeof fn !== "function") {
|
|
1005
|
-
throw new $TypeError("`fn` is not a function");
|
|
1006
|
-
}
|
|
1007
|
-
if (typeof length !== "number" || length < 0 || length > 4294967295 || $floor(length) !== length) {
|
|
1008
|
-
throw new $TypeError("`length` must be a positive 32-bit integer");
|
|
1009
|
-
}
|
|
1010
|
-
var loose = arguments.length > 2 && !!arguments[2];
|
|
1011
|
-
var functionLengthIsConfigurable = true;
|
|
1012
|
-
var functionLengthIsWritable = true;
|
|
1013
|
-
if ("length" in fn && gOPD) {
|
|
1014
|
-
var desc = gOPD(fn, "length");
|
|
1015
|
-
if (desc && !desc.configurable) {
|
|
1016
|
-
functionLengthIsConfigurable = false;
|
|
1017
|
-
}
|
|
1018
|
-
if (desc && !desc.writable) {
|
|
1019
|
-
functionLengthIsWritable = false;
|
|
1020
|
-
}
|
|
1021
|
-
}
|
|
1022
|
-
if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
|
|
1023
|
-
if (hasDescriptors) {
|
|
1024
|
-
define(fn, "length", length, true, true);
|
|
1025
|
-
} else {
|
|
1026
|
-
define(fn, "length", length);
|
|
1027
|
-
}
|
|
1028
|
-
}
|
|
1029
|
-
return fn;
|
|
1030
|
-
};
|
|
1031
|
-
}
|
|
1032
|
-
});
|
|
1033
|
-
var require_call_bind = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
1034
|
-
"node_modules/.pnpm/call-bind@1.0.5/node_modules/call-bind/index.js"(exports2, module2) {
|
|
1035
|
-
"use strict";
|
|
1036
|
-
var bind = require_function_bind();
|
|
1037
|
-
var GetIntrinsic = require_get_intrinsic();
|
|
1038
|
-
var setFunctionLength = require_set_function_length();
|
|
1039
|
-
var $TypeError = GetIntrinsic("%TypeError%");
|
|
1040
|
-
var $apply = GetIntrinsic("%Function.prototype.apply%");
|
|
1041
|
-
var $call = GetIntrinsic("%Function.prototype.call%");
|
|
1042
|
-
var $reflectApply = GetIntrinsic("%Reflect.apply%", true) || bind.call($call, $apply);
|
|
1043
|
-
var $defineProperty = GetIntrinsic("%Object.defineProperty%", true);
|
|
1044
|
-
var $max = GetIntrinsic("%Math.max%");
|
|
1045
|
-
if ($defineProperty) {
|
|
1046
|
-
try {
|
|
1047
|
-
$defineProperty({}, "a", { value: 1 });
|
|
1048
|
-
} catch (e) {
|
|
1049
|
-
$defineProperty = null;
|
|
1050
|
-
}
|
|
1051
|
-
}
|
|
1052
|
-
module2.exports = function callBind(originalFunction) {
|
|
1053
|
-
if (typeof originalFunction !== "function") {
|
|
1054
|
-
throw new $TypeError("a function is required");
|
|
1055
|
-
}
|
|
1056
|
-
var func = $reflectApply(bind, $call, arguments);
|
|
1057
|
-
return setFunctionLength(
|
|
1058
|
-
func,
|
|
1059
|
-
1 + $max(0, originalFunction.length - (arguments.length - 1)),
|
|
1060
|
-
true
|
|
1061
|
-
);
|
|
1062
|
-
};
|
|
1063
|
-
var applyBind = function applyBind2() {
|
|
1064
|
-
return $reflectApply(bind, $apply, arguments);
|
|
1065
|
-
};
|
|
1066
|
-
if ($defineProperty) {
|
|
1067
|
-
$defineProperty(module2.exports, "apply", { value: applyBind });
|
|
1068
|
-
} else {
|
|
1069
|
-
module2.exports.apply = applyBind;
|
|
1070
|
-
}
|
|
1071
|
-
}
|
|
1072
|
-
});
|
|
1073
|
-
var require_callBound = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
1074
|
-
"node_modules/.pnpm/call-bind@1.0.5/node_modules/call-bind/callBound.js"(exports2, module2) {
|
|
1075
|
-
"use strict";
|
|
1076
|
-
var GetIntrinsic = require_get_intrinsic();
|
|
1077
|
-
var callBind = require_call_bind();
|
|
1078
|
-
var $indexOf = callBind(GetIntrinsic("String.prototype.indexOf"));
|
|
1079
|
-
module2.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
1080
|
-
var intrinsic = GetIntrinsic(name, !!allowMissing);
|
|
1081
|
-
if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) {
|
|
1082
|
-
return callBind(intrinsic);
|
|
1083
|
-
}
|
|
1084
|
-
return intrinsic;
|
|
1085
|
-
};
|
|
1086
|
-
}
|
|
1087
|
-
});
|
|
1088
|
-
var require_is_arguments = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
1089
|
-
"node_modules/.pnpm/is-arguments@1.1.1/node_modules/is-arguments/index.js"(exports2, module2) {
|
|
1090
|
-
"use strict";
|
|
1091
|
-
var hasToStringTag = require_shams2()();
|
|
1092
|
-
var callBound = require_callBound();
|
|
1093
|
-
var $toString = callBound("Object.prototype.toString");
|
|
1094
|
-
var isStandardArguments = function isArguments(value) {
|
|
1095
|
-
if (hasToStringTag && value && typeof value === "object" && Symbol.toStringTag in value) {
|
|
1096
|
-
return false;
|
|
1097
|
-
}
|
|
1098
|
-
return $toString(value) === "[object Arguments]";
|
|
1099
|
-
};
|
|
1100
|
-
var isLegacyArguments = function isArguments(value) {
|
|
1101
|
-
if (isStandardArguments(value)) {
|
|
1102
|
-
return true;
|
|
1103
|
-
}
|
|
1104
|
-
return value !== null && typeof value === "object" && typeof value.length === "number" && value.length >= 0 && $toString(value) !== "[object Array]" && $toString(value.callee) === "[object Function]";
|
|
1105
|
-
};
|
|
1106
|
-
var supportsStandardArguments = function() {
|
|
1107
|
-
return isStandardArguments(arguments);
|
|
1108
|
-
}();
|
|
1109
|
-
isStandardArguments.isLegacyArguments = isLegacyArguments;
|
|
1110
|
-
module2.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
|
|
1111
|
-
}
|
|
1112
|
-
});
|
|
1113
|
-
var require_is_generator_function = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
1114
|
-
"node_modules/.pnpm/is-generator-function@1.0.10/node_modules/is-generator-function/index.js"(exports2, module2) {
|
|
1115
|
-
"use strict";
|
|
1116
|
-
var toStr = Object.prototype.toString;
|
|
1117
|
-
var fnToStr = Function.prototype.toString;
|
|
1118
|
-
var isFnRegex = /^\s*(?:function)?\*/;
|
|
1119
|
-
var hasToStringTag = require_shams2()();
|
|
1120
|
-
var getProto = Object.getPrototypeOf;
|
|
1121
|
-
var getGeneratorFunc = function() {
|
|
1122
|
-
if (!hasToStringTag) {
|
|
1123
|
-
return false;
|
|
1124
|
-
}
|
|
1125
|
-
try {
|
|
1126
|
-
return Function("return function*() {}")();
|
|
1127
|
-
} catch (e) {
|
|
1128
|
-
}
|
|
1129
|
-
};
|
|
1130
|
-
var GeneratorFunction;
|
|
1131
|
-
module2.exports = function isGeneratorFunction(fn) {
|
|
1132
|
-
if (typeof fn !== "function") {
|
|
1133
|
-
return false;
|
|
1134
|
-
}
|
|
1135
|
-
if (isFnRegex.test(fnToStr.call(fn))) {
|
|
1136
|
-
return true;
|
|
1137
|
-
}
|
|
1138
|
-
if (!hasToStringTag) {
|
|
1139
|
-
var str = toStr.call(fn);
|
|
1140
|
-
return str === "[object GeneratorFunction]";
|
|
1141
|
-
}
|
|
1142
|
-
if (!getProto) {
|
|
1143
|
-
return false;
|
|
1144
|
-
}
|
|
1145
|
-
if (typeof GeneratorFunction === "undefined") {
|
|
1146
|
-
var generatorFunc = getGeneratorFunc();
|
|
1147
|
-
GeneratorFunction = generatorFunc ? getProto(generatorFunc) : false;
|
|
1148
|
-
}
|
|
1149
|
-
return getProto(fn) === GeneratorFunction;
|
|
1150
|
-
};
|
|
1151
|
-
}
|
|
1152
|
-
});
|
|
1153
|
-
var require_is_callable = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
1154
|
-
"node_modules/.pnpm/is-callable@1.2.7/node_modules/is-callable/index.js"(exports2, module2) {
|
|
1155
|
-
"use strict";
|
|
1156
|
-
var fnToStr = Function.prototype.toString;
|
|
1157
|
-
var reflectApply = typeof Reflect === "object" && Reflect !== null && Reflect.apply;
|
|
1158
|
-
var badArrayLike;
|
|
1159
|
-
var isCallableMarker;
|
|
1160
|
-
if (typeof reflectApply === "function" && typeof Object.defineProperty === "function") {
|
|
1161
|
-
try {
|
|
1162
|
-
badArrayLike = Object.defineProperty({}, "length", {
|
|
1163
|
-
get: function() {
|
|
1164
|
-
throw isCallableMarker;
|
|
1165
|
-
}
|
|
1166
|
-
});
|
|
1167
|
-
isCallableMarker = {};
|
|
1168
|
-
reflectApply(function() {
|
|
1169
|
-
throw 42;
|
|
1170
|
-
}, null, badArrayLike);
|
|
1171
|
-
} catch (_) {
|
|
1172
|
-
if (_ !== isCallableMarker) {
|
|
1173
|
-
reflectApply = null;
|
|
1174
|
-
}
|
|
1175
|
-
}
|
|
1176
|
-
} else {
|
|
1177
|
-
reflectApply = null;
|
|
1178
|
-
}
|
|
1179
|
-
var constructorRegex = /^\s*class\b/;
|
|
1180
|
-
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
1181
|
-
try {
|
|
1182
|
-
var fnStr = fnToStr.call(value);
|
|
1183
|
-
return constructorRegex.test(fnStr);
|
|
1184
|
-
} catch (e) {
|
|
1185
|
-
return false;
|
|
1186
|
-
}
|
|
1187
|
-
};
|
|
1188
|
-
var tryFunctionObject = function tryFunctionToStr(value) {
|
|
1189
|
-
try {
|
|
1190
|
-
if (isES6ClassFn(value)) {
|
|
1191
|
-
return false;
|
|
1192
|
-
}
|
|
1193
|
-
fnToStr.call(value);
|
|
1194
|
-
return true;
|
|
1195
|
-
} catch (e) {
|
|
1196
|
-
return false;
|
|
1197
|
-
}
|
|
1198
|
-
};
|
|
1199
|
-
var toStr = Object.prototype.toString;
|
|
1200
|
-
var objectClass = "[object Object]";
|
|
1201
|
-
var fnClass = "[object Function]";
|
|
1202
|
-
var genClass = "[object GeneratorFunction]";
|
|
1203
|
-
var ddaClass = "[object HTMLAllCollection]";
|
|
1204
|
-
var ddaClass2 = "[object HTML document.all class]";
|
|
1205
|
-
var ddaClass3 = "[object HTMLCollection]";
|
|
1206
|
-
var hasToStringTag = typeof Symbol === "function" && !!Symbol.toStringTag;
|
|
1207
|
-
var isIE68 = !(0 in [,]);
|
|
1208
|
-
var isDDA = function isDocumentDotAll() {
|
|
1209
|
-
return false;
|
|
1210
|
-
};
|
|
1211
|
-
if (typeof document === "object") {
|
|
1212
|
-
all = document.all;
|
|
1213
|
-
if (toStr.call(all) === toStr.call(document.all)) {
|
|
1214
|
-
isDDA = function isDocumentDotAll(value) {
|
|
1215
|
-
if ((isIE68 || !value) && (typeof value === "undefined" || typeof value === "object")) {
|
|
1216
|
-
try {
|
|
1217
|
-
var str = toStr.call(value);
|
|
1218
|
-
return (str === ddaClass || str === ddaClass2 || str === ddaClass3 || str === objectClass) && value("") == null;
|
|
1219
|
-
} catch (e) {
|
|
1220
|
-
}
|
|
1221
|
-
}
|
|
1222
|
-
return false;
|
|
1223
|
-
};
|
|
1224
|
-
}
|
|
1225
|
-
}
|
|
1226
|
-
var all;
|
|
1227
|
-
module2.exports = reflectApply ? function isCallable(value) {
|
|
1228
|
-
if (isDDA(value)) {
|
|
1229
|
-
return true;
|
|
1230
|
-
}
|
|
1231
|
-
if (!value) {
|
|
1232
|
-
return false;
|
|
1233
|
-
}
|
|
1234
|
-
if (typeof value !== "function" && typeof value !== "object") {
|
|
1235
|
-
return false;
|
|
1236
|
-
}
|
|
1237
|
-
try {
|
|
1238
|
-
reflectApply(value, null, badArrayLike);
|
|
1239
|
-
} catch (e) {
|
|
1240
|
-
if (e !== isCallableMarker) {
|
|
1241
|
-
return false;
|
|
1242
|
-
}
|
|
1243
|
-
}
|
|
1244
|
-
return !isES6ClassFn(value) && tryFunctionObject(value);
|
|
1245
|
-
} : function isCallable(value) {
|
|
1246
|
-
if (isDDA(value)) {
|
|
1247
|
-
return true;
|
|
1248
|
-
}
|
|
1249
|
-
if (!value) {
|
|
1250
|
-
return false;
|
|
1251
|
-
}
|
|
1252
|
-
if (typeof value !== "function" && typeof value !== "object") {
|
|
1253
|
-
return false;
|
|
1254
|
-
}
|
|
1255
|
-
if (hasToStringTag) {
|
|
1256
|
-
return tryFunctionObject(value);
|
|
1257
|
-
}
|
|
1258
|
-
if (isES6ClassFn(value)) {
|
|
1259
|
-
return false;
|
|
1260
|
-
}
|
|
1261
|
-
var strClass = toStr.call(value);
|
|
1262
|
-
if (strClass !== fnClass && strClass !== genClass && !/^\[object HTML/.test(strClass)) {
|
|
1263
|
-
return false;
|
|
1264
|
-
}
|
|
1265
|
-
return tryFunctionObject(value);
|
|
1266
|
-
};
|
|
1267
|
-
}
|
|
1268
|
-
});
|
|
1269
|
-
var require_for_each = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
1270
|
-
"node_modules/.pnpm/for-each@0.3.3/node_modules/for-each/index.js"(exports2, module2) {
|
|
1271
|
-
"use strict";
|
|
1272
|
-
var isCallable = require_is_callable();
|
|
1273
|
-
var toStr = Object.prototype.toString;
|
|
1274
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
1275
|
-
var forEachArray = function forEachArray2(array, iterator, receiver) {
|
|
1276
|
-
for (var i = 0, len = array.length; i < len; i++) {
|
|
1277
|
-
if (hasOwnProperty.call(array, i)) {
|
|
1278
|
-
if (receiver == null) {
|
|
1279
|
-
iterator(array[i], i, array);
|
|
1280
|
-
} else {
|
|
1281
|
-
iterator.call(receiver, array[i], i, array);
|
|
1282
|
-
}
|
|
1283
|
-
}
|
|
1284
|
-
}
|
|
1285
|
-
};
|
|
1286
|
-
var forEachString = function forEachString2(string, iterator, receiver) {
|
|
1287
|
-
for (var i = 0, len = string.length; i < len; i++) {
|
|
1288
|
-
if (receiver == null) {
|
|
1289
|
-
iterator(string.charAt(i), i, string);
|
|
1290
|
-
} else {
|
|
1291
|
-
iterator.call(receiver, string.charAt(i), i, string);
|
|
1292
|
-
}
|
|
1293
|
-
}
|
|
1294
|
-
};
|
|
1295
|
-
var forEachObject = function forEachObject2(object, iterator, receiver) {
|
|
1296
|
-
for (var k in object) {
|
|
1297
|
-
if (hasOwnProperty.call(object, k)) {
|
|
1298
|
-
if (receiver == null) {
|
|
1299
|
-
iterator(object[k], k, object);
|
|
1300
|
-
} else {
|
|
1301
|
-
iterator.call(receiver, object[k], k, object);
|
|
1302
|
-
}
|
|
1303
|
-
}
|
|
1304
|
-
}
|
|
1305
|
-
};
|
|
1306
|
-
var forEach = function forEach2(list, iterator, thisArg) {
|
|
1307
|
-
if (!isCallable(iterator)) {
|
|
1308
|
-
throw new TypeError("iterator must be a function");
|
|
1309
|
-
}
|
|
1310
|
-
var receiver;
|
|
1311
|
-
if (arguments.length >= 3) {
|
|
1312
|
-
receiver = thisArg;
|
|
1313
|
-
}
|
|
1314
|
-
if (toStr.call(list) === "[object Array]") {
|
|
1315
|
-
forEachArray(list, iterator, receiver);
|
|
1316
|
-
} else if (typeof list === "string") {
|
|
1317
|
-
forEachString(list, iterator, receiver);
|
|
1318
|
-
} else {
|
|
1319
|
-
forEachObject(list, iterator, receiver);
|
|
1320
|
-
}
|
|
1321
|
-
};
|
|
1322
|
-
module2.exports = forEach;
|
|
1323
|
-
}
|
|
1324
|
-
});
|
|
1325
|
-
var require_available_typed_arrays = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
1326
|
-
"node_modules/.pnpm/available-typed-arrays@1.0.5/node_modules/available-typed-arrays/index.js"(exports2, module2) {
|
|
1327
|
-
"use strict";
|
|
1328
|
-
var possibleNames = [
|
|
1329
|
-
"BigInt64Array",
|
|
1330
|
-
"BigUint64Array",
|
|
1331
|
-
"Float32Array",
|
|
1332
|
-
"Float64Array",
|
|
1333
|
-
"Int16Array",
|
|
1334
|
-
"Int32Array",
|
|
1335
|
-
"Int8Array",
|
|
1336
|
-
"Uint16Array",
|
|
1337
|
-
"Uint32Array",
|
|
1338
|
-
"Uint8Array",
|
|
1339
|
-
"Uint8ClampedArray"
|
|
1340
|
-
];
|
|
1341
|
-
var g = typeof globalThis === "undefined" ? global : globalThis;
|
|
1342
|
-
module2.exports = function availableTypedArrays() {
|
|
1343
|
-
var out = [];
|
|
1344
|
-
for (var i = 0; i < possibleNames.length; i++) {
|
|
1345
|
-
if (typeof g[possibleNames[i]] === "function") {
|
|
1346
|
-
out[out.length] = possibleNames[i];
|
|
1347
|
-
}
|
|
1348
|
-
}
|
|
1349
|
-
return out;
|
|
1350
|
-
};
|
|
1351
|
-
}
|
|
1352
|
-
});
|
|
1353
|
-
var require_call_bind2 = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
1354
|
-
"node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/index.js"(exports2, module2) {
|
|
1355
|
-
"use strict";
|
|
1356
|
-
var bind = require_function_bind();
|
|
1357
|
-
var GetIntrinsic = require_get_intrinsic();
|
|
1358
|
-
var $apply = GetIntrinsic("%Function.prototype.apply%");
|
|
1359
|
-
var $call = GetIntrinsic("%Function.prototype.call%");
|
|
1360
|
-
var $reflectApply = GetIntrinsic("%Reflect.apply%", true) || bind.call($call, $apply);
|
|
1361
|
-
var $gOPD = GetIntrinsic("%Object.getOwnPropertyDescriptor%", true);
|
|
1362
|
-
var $defineProperty = GetIntrinsic("%Object.defineProperty%", true);
|
|
1363
|
-
var $max = GetIntrinsic("%Math.max%");
|
|
1364
|
-
if ($defineProperty) {
|
|
1365
|
-
try {
|
|
1366
|
-
$defineProperty({}, "a", { value: 1 });
|
|
1367
|
-
} catch (e) {
|
|
1368
|
-
$defineProperty = null;
|
|
1369
|
-
}
|
|
1370
|
-
}
|
|
1371
|
-
module2.exports = function callBind(originalFunction) {
|
|
1372
|
-
var func = $reflectApply(bind, $call, arguments);
|
|
1373
|
-
if ($gOPD && $defineProperty) {
|
|
1374
|
-
var desc = $gOPD(func, "length");
|
|
1375
|
-
if (desc.configurable) {
|
|
1376
|
-
$defineProperty(
|
|
1377
|
-
func,
|
|
1378
|
-
"length",
|
|
1379
|
-
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
|
1380
|
-
);
|
|
1381
|
-
}
|
|
1382
|
-
}
|
|
1383
|
-
return func;
|
|
1384
|
-
};
|
|
1385
|
-
var applyBind = function applyBind2() {
|
|
1386
|
-
return $reflectApply(bind, $apply, arguments);
|
|
1387
|
-
};
|
|
1388
|
-
if ($defineProperty) {
|
|
1389
|
-
$defineProperty(module2.exports, "apply", { value: applyBind });
|
|
1390
|
-
} else {
|
|
1391
|
-
module2.exports.apply = applyBind;
|
|
1392
|
-
}
|
|
1393
|
-
}
|
|
1394
|
-
});
|
|
1395
|
-
var require_callBound2 = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
1396
|
-
"node_modules/.pnpm/call-bind@1.0.2/node_modules/call-bind/callBound.js"(exports2, module2) {
|
|
1397
|
-
"use strict";
|
|
1398
|
-
var GetIntrinsic = require_get_intrinsic();
|
|
1399
|
-
var callBind = require_call_bind2();
|
|
1400
|
-
var $indexOf = callBind(GetIntrinsic("String.prototype.indexOf"));
|
|
1401
|
-
module2.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
1402
|
-
var intrinsic = GetIntrinsic(name, !!allowMissing);
|
|
1403
|
-
if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) {
|
|
1404
|
-
return callBind(intrinsic);
|
|
1405
|
-
}
|
|
1406
|
-
return intrinsic;
|
|
1407
|
-
};
|
|
1408
|
-
}
|
|
1409
|
-
});
|
|
1410
|
-
var require_getOwnPropertyDescriptor = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
1411
|
-
"node_modules/.pnpm/es-abstract@1.20.4/node_modules/es-abstract/helpers/getOwnPropertyDescriptor.js"(exports2, module2) {
|
|
1412
|
-
"use strict";
|
|
1413
|
-
var GetIntrinsic = require_get_intrinsic();
|
|
1414
|
-
var $gOPD = GetIntrinsic("%Object.getOwnPropertyDescriptor%", true);
|
|
1415
|
-
if ($gOPD) {
|
|
1416
|
-
try {
|
|
1417
|
-
$gOPD([], "length");
|
|
1418
|
-
} catch (e) {
|
|
1419
|
-
$gOPD = null;
|
|
1420
|
-
}
|
|
1421
|
-
}
|
|
1422
|
-
module2.exports = $gOPD;
|
|
1423
|
-
}
|
|
1424
|
-
});
|
|
1425
|
-
var require_which_typed_array = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
1426
|
-
"node_modules/.pnpm/which-typed-array@1.1.13/node_modules/which-typed-array/index.js"(exports2, module2) {
|
|
1427
|
-
"use strict";
|
|
1428
|
-
var forEach = require_for_each();
|
|
1429
|
-
var availableTypedArrays = require_available_typed_arrays();
|
|
1430
|
-
var callBind = require_call_bind();
|
|
1431
|
-
var callBound = require_callBound();
|
|
1432
|
-
var gOPD = require_gopd();
|
|
1433
|
-
var $toString = callBound("Object.prototype.toString");
|
|
1434
|
-
var hasToStringTag = require_shams2()();
|
|
1435
|
-
var g = typeof globalThis === "undefined" ? global : globalThis;
|
|
1436
|
-
var typedArrays = availableTypedArrays();
|
|
1437
|
-
var $slice = callBound("String.prototype.slice");
|
|
1438
|
-
var getPrototypeOf = Object.getPrototypeOf;
|
|
1439
|
-
var $indexOf = callBound("Array.prototype.indexOf", true) || function indexOf(array, value) {
|
|
1440
|
-
for (var i = 0; i < array.length; i += 1) {
|
|
1441
|
-
if (array[i] === value) {
|
|
1442
|
-
return i;
|
|
1443
|
-
}
|
|
1444
|
-
}
|
|
1445
|
-
return -1;
|
|
1446
|
-
};
|
|
1447
|
-
var cache = { __proto__: null };
|
|
1448
|
-
if (hasToStringTag && gOPD && getPrototypeOf) {
|
|
1449
|
-
forEach(typedArrays, function(typedArray) {
|
|
1450
|
-
var arr = new g[typedArray]();
|
|
1451
|
-
if (Symbol.toStringTag in arr) {
|
|
1452
|
-
var proto = getPrototypeOf(arr);
|
|
1453
|
-
var descriptor = gOPD(proto, Symbol.toStringTag);
|
|
1454
|
-
if (!descriptor) {
|
|
1455
|
-
var superProto = getPrototypeOf(proto);
|
|
1456
|
-
descriptor = gOPD(superProto, Symbol.toStringTag);
|
|
1457
|
-
}
|
|
1458
|
-
cache["$" + typedArray] = callBind(descriptor.get);
|
|
1459
|
-
}
|
|
1460
|
-
});
|
|
1461
|
-
} else {
|
|
1462
|
-
forEach(typedArrays, function(typedArray) {
|
|
1463
|
-
var arr = new g[typedArray]();
|
|
1464
|
-
var fn = arr.slice || arr.set;
|
|
1465
|
-
if (fn) {
|
|
1466
|
-
cache["$" + typedArray] = callBind(fn);
|
|
1467
|
-
}
|
|
1468
|
-
});
|
|
1469
|
-
}
|
|
1470
|
-
var tryTypedArrays = function tryAllTypedArrays(value) {
|
|
1471
|
-
var found = false;
|
|
1472
|
-
forEach(cache, function(getter, typedArray) {
|
|
1473
|
-
if (!found) {
|
|
1474
|
-
try {
|
|
1475
|
-
if ("$" + getter(value) === typedArray) {
|
|
1476
|
-
found = $slice(typedArray, 1);
|
|
1477
|
-
}
|
|
1478
|
-
} catch (e) {
|
|
1479
|
-
}
|
|
1480
|
-
}
|
|
1481
|
-
});
|
|
1482
|
-
return found;
|
|
1483
|
-
};
|
|
1484
|
-
var trySlices = function tryAllSlices(value) {
|
|
1485
|
-
var found = false;
|
|
1486
|
-
forEach(cache, function(getter, name) {
|
|
1487
|
-
if (!found) {
|
|
1488
|
-
try {
|
|
1489
|
-
getter(value);
|
|
1490
|
-
found = $slice(name, 1);
|
|
1491
|
-
} catch (e) {
|
|
1492
|
-
}
|
|
1493
|
-
}
|
|
1494
|
-
});
|
|
1495
|
-
return found;
|
|
1496
|
-
};
|
|
1497
|
-
module2.exports = function whichTypedArray(value) {
|
|
1498
|
-
if (!value || typeof value !== "object") {
|
|
1499
|
-
return false;
|
|
1500
|
-
}
|
|
1501
|
-
if (!hasToStringTag) {
|
|
1502
|
-
var tag = $slice($toString(value), 8, -1);
|
|
1503
|
-
if ($indexOf(typedArrays, tag) > -1) {
|
|
1504
|
-
return tag;
|
|
1505
|
-
}
|
|
1506
|
-
if (tag !== "Object") {
|
|
1507
|
-
return false;
|
|
1508
|
-
}
|
|
1509
|
-
return trySlices(value);
|
|
1510
|
-
}
|
|
1511
|
-
if (!gOPD) {
|
|
1512
|
-
return null;
|
|
1513
|
-
}
|
|
1514
|
-
return tryTypedArrays(value);
|
|
1515
|
-
};
|
|
1516
|
-
}
|
|
1517
|
-
});
|
|
1518
|
-
var require_is_typed_array = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
1519
|
-
"node_modules/.pnpm/is-typed-array@1.1.12/node_modules/is-typed-array/index.js"(exports2, module2) {
|
|
1520
|
-
"use strict";
|
|
1521
|
-
var whichTypedArray = require_which_typed_array();
|
|
1522
|
-
module2.exports = function isTypedArray(value) {
|
|
1523
|
-
return !!whichTypedArray(value);
|
|
1524
|
-
};
|
|
1525
|
-
}
|
|
1526
|
-
});
|
|
1527
|
-
var require_which_typed_array2 = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
1528
|
-
"node_modules/.pnpm/which-typed-array@1.1.8/node_modules/which-typed-array/index.js"(exports2, module2) {
|
|
1529
|
-
"use strict";
|
|
1530
|
-
var forEach = require_for_each();
|
|
1531
|
-
var availableTypedArrays = require_available_typed_arrays();
|
|
1532
|
-
var callBound = require_callBound2();
|
|
1533
|
-
var $toString = callBound("Object.prototype.toString");
|
|
1534
|
-
var hasToStringTag = require_shams2()();
|
|
1535
|
-
var g = typeof globalThis === "undefined" ? global : globalThis;
|
|
1536
|
-
var typedArrays = availableTypedArrays();
|
|
1537
|
-
var $slice = callBound("String.prototype.slice");
|
|
1538
|
-
var toStrTags = {};
|
|
1539
|
-
var gOPD = require_getOwnPropertyDescriptor();
|
|
1540
|
-
var getPrototypeOf = Object.getPrototypeOf;
|
|
1541
|
-
if (hasToStringTag && gOPD && getPrototypeOf) {
|
|
1542
|
-
forEach(typedArrays, function(typedArray) {
|
|
1543
|
-
if (typeof g[typedArray] === "function") {
|
|
1544
|
-
var arr = new g[typedArray]();
|
|
1545
|
-
if (Symbol.toStringTag in arr) {
|
|
1546
|
-
var proto = getPrototypeOf(arr);
|
|
1547
|
-
var descriptor = gOPD(proto, Symbol.toStringTag);
|
|
1548
|
-
if (!descriptor) {
|
|
1549
|
-
var superProto = getPrototypeOf(proto);
|
|
1550
|
-
descriptor = gOPD(superProto, Symbol.toStringTag);
|
|
1551
|
-
}
|
|
1552
|
-
toStrTags[typedArray] = descriptor.get;
|
|
1553
|
-
}
|
|
1554
|
-
}
|
|
1555
|
-
});
|
|
1556
|
-
}
|
|
1557
|
-
var tryTypedArrays = function tryAllTypedArrays(value) {
|
|
1558
|
-
var foundName = false;
|
|
1559
|
-
forEach(toStrTags, function(getter, typedArray) {
|
|
1560
|
-
if (!foundName) {
|
|
1561
|
-
try {
|
|
1562
|
-
var name = getter.call(value);
|
|
1563
|
-
if (name === typedArray) {
|
|
1564
|
-
foundName = name;
|
|
1565
|
-
}
|
|
1566
|
-
} catch (e) {
|
|
1567
|
-
}
|
|
1568
|
-
}
|
|
1569
|
-
});
|
|
1570
|
-
return foundName;
|
|
1571
|
-
};
|
|
1572
|
-
var isTypedArray = require_is_typed_array();
|
|
1573
|
-
module2.exports = function whichTypedArray(value) {
|
|
1574
|
-
if (!isTypedArray(value)) {
|
|
1575
|
-
return false;
|
|
1576
|
-
}
|
|
1577
|
-
if (!hasToStringTag || !(Symbol.toStringTag in value)) {
|
|
1578
|
-
return $slice($toString(value), 8, -1);
|
|
1579
|
-
}
|
|
1580
|
-
return tryTypedArrays(value);
|
|
1581
|
-
};
|
|
1582
|
-
}
|
|
1583
|
-
});
|
|
1584
|
-
var require_is_typed_array2 = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
1585
|
-
"node_modules/.pnpm/is-typed-array@1.1.9/node_modules/is-typed-array/index.js"(exports2, module2) {
|
|
1586
|
-
"use strict";
|
|
1587
|
-
var forEach = require_for_each();
|
|
1588
|
-
var availableTypedArrays = require_available_typed_arrays();
|
|
1589
|
-
var callBound = require_callBound2();
|
|
1590
|
-
var $toString = callBound("Object.prototype.toString");
|
|
1591
|
-
var hasToStringTag = require_shams2()();
|
|
1592
|
-
var g = typeof globalThis === "undefined" ? global : globalThis;
|
|
1593
|
-
var typedArrays = availableTypedArrays();
|
|
1594
|
-
var $indexOf = callBound("Array.prototype.indexOf", true) || function indexOf(array, value) {
|
|
1595
|
-
for (var i = 0; i < array.length; i += 1) {
|
|
1596
|
-
if (array[i] === value) {
|
|
1597
|
-
return i;
|
|
1598
|
-
}
|
|
1599
|
-
}
|
|
1600
|
-
return -1;
|
|
1601
|
-
};
|
|
1602
|
-
var $slice = callBound("String.prototype.slice");
|
|
1603
|
-
var toStrTags = {};
|
|
1604
|
-
var gOPD = require_getOwnPropertyDescriptor();
|
|
1605
|
-
var getPrototypeOf = Object.getPrototypeOf;
|
|
1606
|
-
if (hasToStringTag && gOPD && getPrototypeOf) {
|
|
1607
|
-
forEach(typedArrays, function(typedArray) {
|
|
1608
|
-
var arr = new g[typedArray]();
|
|
1609
|
-
if (Symbol.toStringTag in arr) {
|
|
1610
|
-
var proto = getPrototypeOf(arr);
|
|
1611
|
-
var descriptor = gOPD(proto, Symbol.toStringTag);
|
|
1612
|
-
if (!descriptor) {
|
|
1613
|
-
var superProto = getPrototypeOf(proto);
|
|
1614
|
-
descriptor = gOPD(superProto, Symbol.toStringTag);
|
|
1615
|
-
}
|
|
1616
|
-
toStrTags[typedArray] = descriptor.get;
|
|
1617
|
-
}
|
|
1618
|
-
});
|
|
1619
|
-
}
|
|
1620
|
-
var tryTypedArrays = function tryAllTypedArrays(value) {
|
|
1621
|
-
var anyTrue = false;
|
|
1622
|
-
forEach(toStrTags, function(getter, typedArray) {
|
|
1623
|
-
if (!anyTrue) {
|
|
1624
|
-
try {
|
|
1625
|
-
anyTrue = getter.call(value) === typedArray;
|
|
1626
|
-
} catch (e) {
|
|
1627
|
-
}
|
|
1628
|
-
}
|
|
1629
|
-
});
|
|
1630
|
-
return anyTrue;
|
|
1631
|
-
};
|
|
1632
|
-
module2.exports = function isTypedArray(value) {
|
|
1633
|
-
if (!value || typeof value !== "object") {
|
|
1634
|
-
return false;
|
|
1635
|
-
}
|
|
1636
|
-
if (!hasToStringTag || !(Symbol.toStringTag in value)) {
|
|
1637
|
-
var tag = $slice($toString(value), 8, -1);
|
|
1638
|
-
return $indexOf(typedArrays, tag) > -1;
|
|
1639
|
-
}
|
|
1640
|
-
if (!gOPD) {
|
|
1641
|
-
return false;
|
|
1642
|
-
}
|
|
1643
|
-
return tryTypedArrays(value);
|
|
1644
|
-
};
|
|
1645
|
-
}
|
|
1646
|
-
});
|
|
1647
|
-
var require_types = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
1648
|
-
"node_modules/.pnpm/util@0.12.5/node_modules/util/support/types.js"(exports2) {
|
|
1649
|
-
"use strict";
|
|
1650
|
-
var isArgumentsObject = require_is_arguments();
|
|
1651
|
-
var isGeneratorFunction = require_is_generator_function();
|
|
1652
|
-
var whichTypedArray = require_which_typed_array2();
|
|
1653
|
-
var isTypedArray = require_is_typed_array2();
|
|
1654
|
-
function uncurryThis(f) {
|
|
1655
|
-
return f.call.bind(f);
|
|
1656
|
-
}
|
|
1657
|
-
var BigIntSupported = typeof BigInt !== "undefined";
|
|
1658
|
-
var SymbolSupported = typeof Symbol !== "undefined";
|
|
1659
|
-
var ObjectToString = uncurryThis(Object.prototype.toString);
|
|
1660
|
-
var numberValue = uncurryThis(Number.prototype.valueOf);
|
|
1661
|
-
var stringValue = uncurryThis(String.prototype.valueOf);
|
|
1662
|
-
var booleanValue = uncurryThis(Boolean.prototype.valueOf);
|
|
1663
|
-
if (BigIntSupported) {
|
|
1664
|
-
bigIntValue = uncurryThis(BigInt.prototype.valueOf);
|
|
1665
|
-
}
|
|
1666
|
-
var bigIntValue;
|
|
1667
|
-
if (SymbolSupported) {
|
|
1668
|
-
symbolValue = uncurryThis(Symbol.prototype.valueOf);
|
|
1669
|
-
}
|
|
1670
|
-
var symbolValue;
|
|
1671
|
-
function checkBoxedPrimitive(value, prototypeValueOf) {
|
|
1672
|
-
if (typeof value !== "object") {
|
|
1673
|
-
return false;
|
|
1674
|
-
}
|
|
1675
|
-
try {
|
|
1676
|
-
prototypeValueOf(value);
|
|
1677
|
-
return true;
|
|
1678
|
-
} catch (e) {
|
|
1679
|
-
return false;
|
|
1680
|
-
}
|
|
1681
|
-
}
|
|
1682
|
-
exports2.isArgumentsObject = isArgumentsObject;
|
|
1683
|
-
exports2.isGeneratorFunction = isGeneratorFunction;
|
|
1684
|
-
exports2.isTypedArray = isTypedArray;
|
|
1685
|
-
function isPromise(input) {
|
|
1686
|
-
return typeof Promise !== "undefined" && input instanceof Promise || input !== null && typeof input === "object" && typeof input.then === "function" && typeof input.catch === "function";
|
|
1687
|
-
}
|
|
1688
|
-
exports2.isPromise = isPromise;
|
|
1689
|
-
function isArrayBufferView(value) {
|
|
1690
|
-
if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
|
|
1691
|
-
return ArrayBuffer.isView(value);
|
|
1692
|
-
}
|
|
1693
|
-
return isTypedArray(value) || isDataView(value);
|
|
1694
|
-
}
|
|
1695
|
-
exports2.isArrayBufferView = isArrayBufferView;
|
|
1696
|
-
function isUint8Array(value) {
|
|
1697
|
-
return whichTypedArray(value) === "Uint8Array";
|
|
1698
|
-
}
|
|
1699
|
-
exports2.isUint8Array = isUint8Array;
|
|
1700
|
-
function isUint8ClampedArray(value) {
|
|
1701
|
-
return whichTypedArray(value) === "Uint8ClampedArray";
|
|
1702
|
-
}
|
|
1703
|
-
exports2.isUint8ClampedArray = isUint8ClampedArray;
|
|
1704
|
-
function isUint16Array(value) {
|
|
1705
|
-
return whichTypedArray(value) === "Uint16Array";
|
|
1706
|
-
}
|
|
1707
|
-
exports2.isUint16Array = isUint16Array;
|
|
1708
|
-
function isUint32Array(value) {
|
|
1709
|
-
return whichTypedArray(value) === "Uint32Array";
|
|
1710
|
-
}
|
|
1711
|
-
exports2.isUint32Array = isUint32Array;
|
|
1712
|
-
function isInt8Array(value) {
|
|
1713
|
-
return whichTypedArray(value) === "Int8Array";
|
|
1714
|
-
}
|
|
1715
|
-
exports2.isInt8Array = isInt8Array;
|
|
1716
|
-
function isInt16Array(value) {
|
|
1717
|
-
return whichTypedArray(value) === "Int16Array";
|
|
1718
|
-
}
|
|
1719
|
-
exports2.isInt16Array = isInt16Array;
|
|
1720
|
-
function isInt32Array(value) {
|
|
1721
|
-
return whichTypedArray(value) === "Int32Array";
|
|
1722
|
-
}
|
|
1723
|
-
exports2.isInt32Array = isInt32Array;
|
|
1724
|
-
function isFloat32Array(value) {
|
|
1725
|
-
return whichTypedArray(value) === "Float32Array";
|
|
1726
|
-
}
|
|
1727
|
-
exports2.isFloat32Array = isFloat32Array;
|
|
1728
|
-
function isFloat64Array(value) {
|
|
1729
|
-
return whichTypedArray(value) === "Float64Array";
|
|
1730
|
-
}
|
|
1731
|
-
exports2.isFloat64Array = isFloat64Array;
|
|
1732
|
-
function isBigInt64Array(value) {
|
|
1733
|
-
return whichTypedArray(value) === "BigInt64Array";
|
|
1734
|
-
}
|
|
1735
|
-
exports2.isBigInt64Array = isBigInt64Array;
|
|
1736
|
-
function isBigUint64Array(value) {
|
|
1737
|
-
return whichTypedArray(value) === "BigUint64Array";
|
|
1738
|
-
}
|
|
1739
|
-
exports2.isBigUint64Array = isBigUint64Array;
|
|
1740
|
-
function isMapToString(value) {
|
|
1741
|
-
return ObjectToString(value) === "[object Map]";
|
|
1742
|
-
}
|
|
1743
|
-
isMapToString.working = typeof Map !== "undefined" && isMapToString(/* @__PURE__ */ new Map());
|
|
1744
|
-
function isMap(value) {
|
|
1745
|
-
if (typeof Map === "undefined") {
|
|
1746
|
-
return false;
|
|
1747
|
-
}
|
|
1748
|
-
return isMapToString.working ? isMapToString(value) : value instanceof Map;
|
|
1749
|
-
}
|
|
1750
|
-
exports2.isMap = isMap;
|
|
1751
|
-
function isSetToString(value) {
|
|
1752
|
-
return ObjectToString(value) === "[object Set]";
|
|
1753
|
-
}
|
|
1754
|
-
isSetToString.working = typeof Set !== "undefined" && isSetToString(/* @__PURE__ */ new Set());
|
|
1755
|
-
function isSet(value) {
|
|
1756
|
-
if (typeof Set === "undefined") {
|
|
1757
|
-
return false;
|
|
1758
|
-
}
|
|
1759
|
-
return isSetToString.working ? isSetToString(value) : value instanceof Set;
|
|
1760
|
-
}
|
|
1761
|
-
exports2.isSet = isSet;
|
|
1762
|
-
function isWeakMapToString(value) {
|
|
1763
|
-
return ObjectToString(value) === "[object WeakMap]";
|
|
1764
|
-
}
|
|
1765
|
-
isWeakMapToString.working = typeof WeakMap !== "undefined" && isWeakMapToString(/* @__PURE__ */ new WeakMap());
|
|
1766
|
-
function isWeakMap(value) {
|
|
1767
|
-
if (typeof WeakMap === "undefined") {
|
|
1768
|
-
return false;
|
|
1769
|
-
}
|
|
1770
|
-
return isWeakMapToString.working ? isWeakMapToString(value) : value instanceof WeakMap;
|
|
1771
|
-
}
|
|
1772
|
-
exports2.isWeakMap = isWeakMap;
|
|
1773
|
-
function isWeakSetToString(value) {
|
|
1774
|
-
return ObjectToString(value) === "[object WeakSet]";
|
|
1775
|
-
}
|
|
1776
|
-
isWeakSetToString.working = typeof WeakSet !== "undefined" && isWeakSetToString(/* @__PURE__ */ new WeakSet());
|
|
1777
|
-
function isWeakSet(value) {
|
|
1778
|
-
return isWeakSetToString(value);
|
|
1779
|
-
}
|
|
1780
|
-
exports2.isWeakSet = isWeakSet;
|
|
1781
|
-
function isArrayBufferToString(value) {
|
|
1782
|
-
return ObjectToString(value) === "[object ArrayBuffer]";
|
|
1783
|
-
}
|
|
1784
|
-
isArrayBufferToString.working = typeof ArrayBuffer !== "undefined" && isArrayBufferToString(new ArrayBuffer());
|
|
1785
|
-
function isArrayBuffer(value) {
|
|
1786
|
-
if (typeof ArrayBuffer === "undefined") {
|
|
1787
|
-
return false;
|
|
1788
|
-
}
|
|
1789
|
-
return isArrayBufferToString.working ? isArrayBufferToString(value) : value instanceof ArrayBuffer;
|
|
1790
|
-
}
|
|
1791
|
-
exports2.isArrayBuffer = isArrayBuffer;
|
|
1792
|
-
function isDataViewToString(value) {
|
|
1793
|
-
return ObjectToString(value) === "[object DataView]";
|
|
1794
|
-
}
|
|
1795
|
-
isDataViewToString.working = typeof ArrayBuffer !== "undefined" && typeof DataView !== "undefined" && isDataViewToString(new DataView(new ArrayBuffer(1), 0, 1));
|
|
1796
|
-
function isDataView(value) {
|
|
1797
|
-
if (typeof DataView === "undefined") {
|
|
1798
|
-
return false;
|
|
1799
|
-
}
|
|
1800
|
-
return isDataViewToString.working ? isDataViewToString(value) : value instanceof DataView;
|
|
1801
|
-
}
|
|
1802
|
-
exports2.isDataView = isDataView;
|
|
1803
|
-
var SharedArrayBufferCopy = typeof SharedArrayBuffer !== "undefined" ? SharedArrayBuffer : void 0;
|
|
1804
|
-
function isSharedArrayBufferToString(value) {
|
|
1805
|
-
return ObjectToString(value) === "[object SharedArrayBuffer]";
|
|
1806
|
-
}
|
|
1807
|
-
function isSharedArrayBuffer(value) {
|
|
1808
|
-
if (typeof SharedArrayBufferCopy === "undefined") {
|
|
1809
|
-
return false;
|
|
1810
|
-
}
|
|
1811
|
-
if (typeof isSharedArrayBufferToString.working === "undefined") {
|
|
1812
|
-
isSharedArrayBufferToString.working = isSharedArrayBufferToString(new SharedArrayBufferCopy());
|
|
1813
|
-
}
|
|
1814
|
-
return isSharedArrayBufferToString.working ? isSharedArrayBufferToString(value) : value instanceof SharedArrayBufferCopy;
|
|
1815
|
-
}
|
|
1816
|
-
exports2.isSharedArrayBuffer = isSharedArrayBuffer;
|
|
1817
|
-
function isAsyncFunction(value) {
|
|
1818
|
-
return ObjectToString(value) === "[object AsyncFunction]";
|
|
1819
|
-
}
|
|
1820
|
-
exports2.isAsyncFunction = isAsyncFunction;
|
|
1821
|
-
function isMapIterator(value) {
|
|
1822
|
-
return ObjectToString(value) === "[object Map Iterator]";
|
|
1823
|
-
}
|
|
1824
|
-
exports2.isMapIterator = isMapIterator;
|
|
1825
|
-
function isSetIterator(value) {
|
|
1826
|
-
return ObjectToString(value) === "[object Set Iterator]";
|
|
1827
|
-
}
|
|
1828
|
-
exports2.isSetIterator = isSetIterator;
|
|
1829
|
-
function isGeneratorObject(value) {
|
|
1830
|
-
return ObjectToString(value) === "[object Generator]";
|
|
1831
|
-
}
|
|
1832
|
-
exports2.isGeneratorObject = isGeneratorObject;
|
|
1833
|
-
function isWebAssemblyCompiledModule(value) {
|
|
1834
|
-
return ObjectToString(value) === "[object WebAssembly.Module]";
|
|
1835
|
-
}
|
|
1836
|
-
exports2.isWebAssemblyCompiledModule = isWebAssemblyCompiledModule;
|
|
1837
|
-
function isNumberObject(value) {
|
|
1838
|
-
return checkBoxedPrimitive(value, numberValue);
|
|
1839
|
-
}
|
|
1840
|
-
exports2.isNumberObject = isNumberObject;
|
|
1841
|
-
function isStringObject(value) {
|
|
1842
|
-
return checkBoxedPrimitive(value, stringValue);
|
|
1843
|
-
}
|
|
1844
|
-
exports2.isStringObject = isStringObject;
|
|
1845
|
-
function isBooleanObject(value) {
|
|
1846
|
-
return checkBoxedPrimitive(value, booleanValue);
|
|
1847
|
-
}
|
|
1848
|
-
exports2.isBooleanObject = isBooleanObject;
|
|
1849
|
-
function isBigIntObject(value) {
|
|
1850
|
-
return BigIntSupported && checkBoxedPrimitive(value, bigIntValue);
|
|
1851
|
-
}
|
|
1852
|
-
exports2.isBigIntObject = isBigIntObject;
|
|
1853
|
-
function isSymbolObject(value) {
|
|
1854
|
-
return SymbolSupported && checkBoxedPrimitive(value, symbolValue);
|
|
1855
|
-
}
|
|
1856
|
-
exports2.isSymbolObject = isSymbolObject;
|
|
1857
|
-
function isBoxedPrimitive(value) {
|
|
1858
|
-
return isNumberObject(value) || isStringObject(value) || isBooleanObject(value) || isBigIntObject(value) || isSymbolObject(value);
|
|
1859
|
-
}
|
|
1860
|
-
exports2.isBoxedPrimitive = isBoxedPrimitive;
|
|
1861
|
-
function isAnyArrayBuffer(value) {
|
|
1862
|
-
return typeof Uint8Array !== "undefined" && (isArrayBuffer(value) || isSharedArrayBuffer(value));
|
|
1863
|
-
}
|
|
1864
|
-
exports2.isAnyArrayBuffer = isAnyArrayBuffer;
|
|
1865
|
-
["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(method) {
|
|
1866
|
-
Object.defineProperty(exports2, method, {
|
|
1867
|
-
enumerable: false,
|
|
1868
|
-
value: function() {
|
|
1869
|
-
throw new Error(method + " is not supported in userland");
|
|
1870
|
-
}
|
|
1871
|
-
});
|
|
1872
|
-
});
|
|
1873
|
-
}
|
|
1874
|
-
});
|
|
1875
|
-
var require_isBuffer = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
1876
|
-
"node_modules/.pnpm/util@0.12.5/node_modules/util/support/isBuffer.js"(exports2, module2) {
|
|
1877
|
-
module2.exports = function isBuffer(arg) {
|
|
1878
|
-
return arg instanceof Buffer;
|
|
1879
|
-
};
|
|
1880
|
-
}
|
|
1881
|
-
});
|
|
1882
|
-
var require_inherits_browser = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
1883
|
-
"node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js"(exports2, module2) {
|
|
1884
|
-
if (typeof Object.create === "function") {
|
|
1885
|
-
module2.exports = function inherits(ctor, superCtor) {
|
|
1886
|
-
if (superCtor) {
|
|
1887
|
-
ctor.super_ = superCtor;
|
|
1888
|
-
ctor.prototype = Object.create(superCtor.prototype, {
|
|
1889
|
-
constructor: {
|
|
1890
|
-
value: ctor,
|
|
1891
|
-
enumerable: false,
|
|
1892
|
-
writable: true,
|
|
1893
|
-
configurable: true
|
|
1894
|
-
}
|
|
1895
|
-
});
|
|
1896
|
-
}
|
|
1897
|
-
};
|
|
1898
|
-
} else {
|
|
1899
|
-
module2.exports = function inherits(ctor, superCtor) {
|
|
1900
|
-
if (superCtor) {
|
|
1901
|
-
ctor.super_ = superCtor;
|
|
1902
|
-
var TempCtor = function() {
|
|
1903
|
-
};
|
|
1904
|
-
TempCtor.prototype = superCtor.prototype;
|
|
1905
|
-
ctor.prototype = new TempCtor();
|
|
1906
|
-
ctor.prototype.constructor = ctor;
|
|
1907
|
-
}
|
|
1908
|
-
};
|
|
1909
|
-
}
|
|
1910
|
-
}
|
|
1911
|
-
});
|
|
1912
|
-
var require_inherits = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
1913
|
-
"node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js"(exports2, module2) {
|
|
1914
|
-
try {
|
|
1915
|
-
util2 = (0, import_chunk_6SZKM6EC.__require)("util");
|
|
1916
|
-
if (typeof util2.inherits !== "function") throw "";
|
|
1917
|
-
module2.exports = util2.inherits;
|
|
1918
|
-
} catch (e) {
|
|
1919
|
-
module2.exports = require_inherits_browser();
|
|
1920
|
-
}
|
|
1921
|
-
var util2;
|
|
1922
|
-
}
|
|
1923
|
-
});
|
|
1924
|
-
var require_util = (0, import_chunk_6SZKM6EC.__commonJS)({
|
|
1925
|
-
"node_modules/.pnpm/util@0.12.5/node_modules/util/util.js"(exports2) {
|
|
1926
|
-
var getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors || function getOwnPropertyDescriptors2(obj) {
|
|
1927
|
-
var keys = Object.keys(obj);
|
|
1928
|
-
var descriptors = {};
|
|
1929
|
-
for (var i = 0; i < keys.length; i++) {
|
|
1930
|
-
descriptors[keys[i]] = Object.getOwnPropertyDescriptor(obj, keys[i]);
|
|
1931
|
-
}
|
|
1932
|
-
return descriptors;
|
|
1933
|
-
};
|
|
1934
|
-
var formatRegExp = /%[sdj%]/g;
|
|
1935
|
-
exports2.format = function(f) {
|
|
1936
|
-
if (!isString(f)) {
|
|
1937
|
-
var objects = [];
|
|
1938
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
1939
|
-
objects.push(inspect2(arguments[i]));
|
|
1940
|
-
}
|
|
1941
|
-
return objects.join(" ");
|
|
1942
|
-
}
|
|
1943
|
-
var i = 1;
|
|
1944
|
-
var args = arguments;
|
|
1945
|
-
var len = args.length;
|
|
1946
|
-
var str = String(f).replace(formatRegExp, function(x2) {
|
|
1947
|
-
if (x2 === "%%") return "%";
|
|
1948
|
-
if (i >= len) return x2;
|
|
1949
|
-
switch (x2) {
|
|
1950
|
-
case "%s":
|
|
1951
|
-
return String(args[i++]);
|
|
1952
|
-
case "%d":
|
|
1953
|
-
return Number(args[i++]);
|
|
1954
|
-
case "%j":
|
|
1955
|
-
try {
|
|
1956
|
-
return JSON.stringify(args[i++]);
|
|
1957
|
-
} catch (_) {
|
|
1958
|
-
return "[Circular]";
|
|
1959
|
-
}
|
|
1960
|
-
default:
|
|
1961
|
-
return x2;
|
|
1962
|
-
}
|
|
1963
|
-
});
|
|
1964
|
-
for (var x = args[i]; i < len; x = args[++i]) {
|
|
1965
|
-
if (isNull(x) || !isObject(x)) {
|
|
1966
|
-
str += " " + x;
|
|
1967
|
-
} else {
|
|
1968
|
-
str += " " + inspect2(x);
|
|
1969
|
-
}
|
|
1970
|
-
}
|
|
1971
|
-
return str;
|
|
1972
|
-
};
|
|
1973
|
-
exports2.deprecate = function(fn, msg) {
|
|
1974
|
-
if (typeof process !== "undefined" && process.noDeprecation === true) {
|
|
1975
|
-
return fn;
|
|
1976
|
-
}
|
|
1977
|
-
if (typeof process === "undefined") {
|
|
1978
|
-
return function() {
|
|
1979
|
-
return exports2.deprecate(fn, msg).apply(this, arguments);
|
|
1980
|
-
};
|
|
1981
|
-
}
|
|
1982
|
-
var warned = false;
|
|
1983
|
-
function deprecated() {
|
|
1984
|
-
if (!warned) {
|
|
1985
|
-
if (process.throwDeprecation) {
|
|
1986
|
-
throw new Error(msg);
|
|
1987
|
-
} else if (process.traceDeprecation) {
|
|
1988
|
-
console.trace(msg);
|
|
1989
|
-
} else {
|
|
1990
|
-
console.error(msg);
|
|
1991
|
-
}
|
|
1992
|
-
warned = true;
|
|
1993
|
-
}
|
|
1994
|
-
return fn.apply(this, arguments);
|
|
1995
|
-
}
|
|
1996
|
-
return deprecated;
|
|
1997
|
-
};
|
|
1998
|
-
var debugs = {};
|
|
1999
|
-
var debugEnvRegex = /^$/;
|
|
2000
|
-
if (process.env.NODE_DEBUG) {
|
|
2001
|
-
debugEnv = process.env.NODE_DEBUG;
|
|
2002
|
-
debugEnv = debugEnv.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase();
|
|
2003
|
-
debugEnvRegex = new RegExp("^" + debugEnv + "$", "i");
|
|
2004
|
-
}
|
|
2005
|
-
var debugEnv;
|
|
2006
|
-
exports2.debuglog = function(set) {
|
|
2007
|
-
set = set.toUpperCase();
|
|
2008
|
-
if (!debugs[set]) {
|
|
2009
|
-
if (debugEnvRegex.test(set)) {
|
|
2010
|
-
var pid = process.pid;
|
|
2011
|
-
debugs[set] = function() {
|
|
2012
|
-
var msg = exports2.format.apply(exports2, arguments);
|
|
2013
|
-
console.error("%s %d: %s", set, pid, msg);
|
|
2014
|
-
};
|
|
2015
|
-
} else {
|
|
2016
|
-
debugs[set] = function() {
|
|
2017
|
-
};
|
|
2018
|
-
}
|
|
2019
|
-
}
|
|
2020
|
-
return debugs[set];
|
|
2021
|
-
};
|
|
2022
|
-
function inspect2(obj, opts) {
|
|
2023
|
-
var ctx = {
|
|
2024
|
-
seen: [],
|
|
2025
|
-
stylize: stylizeNoColor
|
|
2026
|
-
};
|
|
2027
|
-
if (arguments.length >= 3) ctx.depth = arguments[2];
|
|
2028
|
-
if (arguments.length >= 4) ctx.colors = arguments[3];
|
|
2029
|
-
if (isBoolean(opts)) {
|
|
2030
|
-
ctx.showHidden = opts;
|
|
2031
|
-
} else if (opts) {
|
|
2032
|
-
exports2._extend(ctx, opts);
|
|
2033
|
-
}
|
|
2034
|
-
if (isUndefined(ctx.showHidden)) ctx.showHidden = false;
|
|
2035
|
-
if (isUndefined(ctx.depth)) ctx.depth = 2;
|
|
2036
|
-
if (isUndefined(ctx.colors)) ctx.colors = false;
|
|
2037
|
-
if (isUndefined(ctx.customInspect)) ctx.customInspect = true;
|
|
2038
|
-
if (ctx.colors) ctx.stylize = stylizeWithColor;
|
|
2039
|
-
return formatValue(ctx, obj, ctx.depth);
|
|
2040
|
-
}
|
|
2041
|
-
exports2.inspect = inspect2;
|
|
2042
|
-
inspect2.colors = {
|
|
2043
|
-
"bold": [1, 22],
|
|
2044
|
-
"italic": [3, 23],
|
|
2045
|
-
"underline": [4, 24],
|
|
2046
|
-
"inverse": [7, 27],
|
|
2047
|
-
"white": [37, 39],
|
|
2048
|
-
"grey": [90, 39],
|
|
2049
|
-
"black": [30, 39],
|
|
2050
|
-
"blue": [34, 39],
|
|
2051
|
-
"cyan": [36, 39],
|
|
2052
|
-
"green": [32, 39],
|
|
2053
|
-
"magenta": [35, 39],
|
|
2054
|
-
"red": [31, 39],
|
|
2055
|
-
"yellow": [33, 39]
|
|
2056
|
-
};
|
|
2057
|
-
inspect2.styles = {
|
|
2058
|
-
"special": "cyan",
|
|
2059
|
-
"number": "yellow",
|
|
2060
|
-
"boolean": "yellow",
|
|
2061
|
-
"undefined": "grey",
|
|
2062
|
-
"null": "bold",
|
|
2063
|
-
"string": "green",
|
|
2064
|
-
"date": "magenta",
|
|
2065
|
-
// "name": intentionally not styling
|
|
2066
|
-
"regexp": "red"
|
|
2067
|
-
};
|
|
2068
|
-
function stylizeWithColor(str, styleType) {
|
|
2069
|
-
var style = inspect2.styles[styleType];
|
|
2070
|
-
if (style) {
|
|
2071
|
-
return "\x1B[" + inspect2.colors[style][0] + "m" + str + "\x1B[" + inspect2.colors[style][1] + "m";
|
|
2072
|
-
} else {
|
|
2073
|
-
return str;
|
|
2074
|
-
}
|
|
2075
|
-
}
|
|
2076
|
-
function stylizeNoColor(str, styleType) {
|
|
2077
|
-
return str;
|
|
2078
|
-
}
|
|
2079
|
-
function arrayToHash(array) {
|
|
2080
|
-
var hash = {};
|
|
2081
|
-
array.forEach(function(val, idx) {
|
|
2082
|
-
hash[val] = true;
|
|
2083
|
-
});
|
|
2084
|
-
return hash;
|
|
2085
|
-
}
|
|
2086
|
-
function formatValue(ctx, value, recurseTimes) {
|
|
2087
|
-
if (ctx.customInspect && value && isFunction(value.inspect) && // Filter out the util module, it's inspect function is special
|
|
2088
|
-
value.inspect !== exports2.inspect && // Also filter out any prototype objects using the circular check.
|
|
2089
|
-
!(value.constructor && value.constructor.prototype === value)) {
|
|
2090
|
-
var ret = value.inspect(recurseTimes, ctx);
|
|
2091
|
-
if (!isString(ret)) {
|
|
2092
|
-
ret = formatValue(ctx, ret, recurseTimes);
|
|
2093
|
-
}
|
|
2094
|
-
return ret;
|
|
2095
|
-
}
|
|
2096
|
-
var primitive = formatPrimitive(ctx, value);
|
|
2097
|
-
if (primitive) {
|
|
2098
|
-
return primitive;
|
|
2099
|
-
}
|
|
2100
|
-
var keys = Object.keys(value);
|
|
2101
|
-
var visibleKeys = arrayToHash(keys);
|
|
2102
|
-
if (ctx.showHidden) {
|
|
2103
|
-
keys = Object.getOwnPropertyNames(value);
|
|
2104
|
-
}
|
|
2105
|
-
if (isError(value) && (keys.indexOf("message") >= 0 || keys.indexOf("description") >= 0)) {
|
|
2106
|
-
return formatError(value);
|
|
2107
|
-
}
|
|
2108
|
-
if (keys.length === 0) {
|
|
2109
|
-
if (isFunction(value)) {
|
|
2110
|
-
var name = value.name ? ": " + value.name : "";
|
|
2111
|
-
return ctx.stylize("[Function" + name + "]", "special");
|
|
2112
|
-
}
|
|
2113
|
-
if (isRegExp(value)) {
|
|
2114
|
-
return ctx.stylize(RegExp.prototype.toString.call(value), "regexp");
|
|
2115
|
-
}
|
|
2116
|
-
if (isDate(value)) {
|
|
2117
|
-
return ctx.stylize(Date.prototype.toString.call(value), "date");
|
|
2118
|
-
}
|
|
2119
|
-
if (isError(value)) {
|
|
2120
|
-
return formatError(value);
|
|
2121
|
-
}
|
|
2122
|
-
}
|
|
2123
|
-
var base = "", array = false, braces = ["{", "}"];
|
|
2124
|
-
if (isArray(value)) {
|
|
2125
|
-
array = true;
|
|
2126
|
-
braces = ["[", "]"];
|
|
2127
|
-
}
|
|
2128
|
-
if (isFunction(value)) {
|
|
2129
|
-
var n = value.name ? ": " + value.name : "";
|
|
2130
|
-
base = " [Function" + n + "]";
|
|
2131
|
-
}
|
|
2132
|
-
if (isRegExp(value)) {
|
|
2133
|
-
base = " " + RegExp.prototype.toString.call(value);
|
|
2134
|
-
}
|
|
2135
|
-
if (isDate(value)) {
|
|
2136
|
-
base = " " + Date.prototype.toUTCString.call(value);
|
|
2137
|
-
}
|
|
2138
|
-
if (isError(value)) {
|
|
2139
|
-
base = " " + formatError(value);
|
|
2140
|
-
}
|
|
2141
|
-
if (keys.length === 0 && (!array || value.length == 0)) {
|
|
2142
|
-
return braces[0] + base + braces[1];
|
|
2143
|
-
}
|
|
2144
|
-
if (recurseTimes < 0) {
|
|
2145
|
-
if (isRegExp(value)) {
|
|
2146
|
-
return ctx.stylize(RegExp.prototype.toString.call(value), "regexp");
|
|
2147
|
-
} else {
|
|
2148
|
-
return ctx.stylize("[Object]", "special");
|
|
2149
|
-
}
|
|
2150
|
-
}
|
|
2151
|
-
ctx.seen.push(value);
|
|
2152
|
-
var output;
|
|
2153
|
-
if (array) {
|
|
2154
|
-
output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);
|
|
2155
|
-
} else {
|
|
2156
|
-
output = keys.map(function(key) {
|
|
2157
|
-
return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);
|
|
2158
|
-
});
|
|
2159
|
-
}
|
|
2160
|
-
ctx.seen.pop();
|
|
2161
|
-
return reduceToSingleString(output, base, braces);
|
|
2162
|
-
}
|
|
2163
|
-
function formatPrimitive(ctx, value) {
|
|
2164
|
-
if (isUndefined(value))
|
|
2165
|
-
return ctx.stylize("undefined", "undefined");
|
|
2166
|
-
if (isString(value)) {
|
|
2167
|
-
var simple = "'" + JSON.stringify(value).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
|
|
2168
|
-
return ctx.stylize(simple, "string");
|
|
2169
|
-
}
|
|
2170
|
-
if (isNumber(value))
|
|
2171
|
-
return ctx.stylize("" + value, "number");
|
|
2172
|
-
if (isBoolean(value))
|
|
2173
|
-
return ctx.stylize("" + value, "boolean");
|
|
2174
|
-
if (isNull(value))
|
|
2175
|
-
return ctx.stylize("null", "null");
|
|
2176
|
-
}
|
|
2177
|
-
function formatError(value) {
|
|
2178
|
-
return "[" + Error.prototype.toString.call(value) + "]";
|
|
2179
|
-
}
|
|
2180
|
-
function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {
|
|
2181
|
-
var output = [];
|
|
2182
|
-
for (var i = 0, l = value.length; i < l; ++i) {
|
|
2183
|
-
if (hasOwnProperty(value, String(i))) {
|
|
2184
|
-
output.push(formatProperty(
|
|
2185
|
-
ctx,
|
|
2186
|
-
value,
|
|
2187
|
-
recurseTimes,
|
|
2188
|
-
visibleKeys,
|
|
2189
|
-
String(i),
|
|
2190
|
-
true
|
|
2191
|
-
));
|
|
2192
|
-
} else {
|
|
2193
|
-
output.push("");
|
|
2194
|
-
}
|
|
2195
|
-
}
|
|
2196
|
-
keys.forEach(function(key) {
|
|
2197
|
-
if (!key.match(/^\d+$/)) {
|
|
2198
|
-
output.push(formatProperty(
|
|
2199
|
-
ctx,
|
|
2200
|
-
value,
|
|
2201
|
-
recurseTimes,
|
|
2202
|
-
visibleKeys,
|
|
2203
|
-
key,
|
|
2204
|
-
true
|
|
2205
|
-
));
|
|
2206
|
-
}
|
|
2207
|
-
});
|
|
2208
|
-
return output;
|
|
2209
|
-
}
|
|
2210
|
-
function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {
|
|
2211
|
-
var name, str, desc;
|
|
2212
|
-
desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };
|
|
2213
|
-
if (desc.get) {
|
|
2214
|
-
if (desc.set) {
|
|
2215
|
-
str = ctx.stylize("[Getter/Setter]", "special");
|
|
2216
|
-
} else {
|
|
2217
|
-
str = ctx.stylize("[Getter]", "special");
|
|
2218
|
-
}
|
|
2219
|
-
} else {
|
|
2220
|
-
if (desc.set) {
|
|
2221
|
-
str = ctx.stylize("[Setter]", "special");
|
|
2222
|
-
}
|
|
2223
|
-
}
|
|
2224
|
-
if (!hasOwnProperty(visibleKeys, key)) {
|
|
2225
|
-
name = "[" + key + "]";
|
|
2226
|
-
}
|
|
2227
|
-
if (!str) {
|
|
2228
|
-
if (ctx.seen.indexOf(desc.value) < 0) {
|
|
2229
|
-
if (isNull(recurseTimes)) {
|
|
2230
|
-
str = formatValue(ctx, desc.value, null);
|
|
2231
|
-
} else {
|
|
2232
|
-
str = formatValue(ctx, desc.value, recurseTimes - 1);
|
|
2233
|
-
}
|
|
2234
|
-
if (str.indexOf("\n") > -1) {
|
|
2235
|
-
if (array) {
|
|
2236
|
-
str = str.split("\n").map(function(line) {
|
|
2237
|
-
return " " + line;
|
|
2238
|
-
}).join("\n").slice(2);
|
|
2239
|
-
} else {
|
|
2240
|
-
str = "\n" + str.split("\n").map(function(line) {
|
|
2241
|
-
return " " + line;
|
|
2242
|
-
}).join("\n");
|
|
2243
|
-
}
|
|
2244
|
-
}
|
|
2245
|
-
} else {
|
|
2246
|
-
str = ctx.stylize("[Circular]", "special");
|
|
2247
|
-
}
|
|
2248
|
-
}
|
|
2249
|
-
if (isUndefined(name)) {
|
|
2250
|
-
if (array && key.match(/^\d+$/)) {
|
|
2251
|
-
return str;
|
|
2252
|
-
}
|
|
2253
|
-
name = JSON.stringify("" + key);
|
|
2254
|
-
if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
|
|
2255
|
-
name = name.slice(1, -1);
|
|
2256
|
-
name = ctx.stylize(name, "name");
|
|
2257
|
-
} else {
|
|
2258
|
-
name = name.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'");
|
|
2259
|
-
name = ctx.stylize(name, "string");
|
|
2260
|
-
}
|
|
2261
|
-
}
|
|
2262
|
-
return name + ": " + str;
|
|
2263
|
-
}
|
|
2264
|
-
function reduceToSingleString(output, base, braces) {
|
|
2265
|
-
var numLinesEst = 0;
|
|
2266
|
-
var length = output.reduce(function(prev, cur) {
|
|
2267
|
-
numLinesEst++;
|
|
2268
|
-
if (cur.indexOf("\n") >= 0) numLinesEst++;
|
|
2269
|
-
return prev + cur.replace(/\u001b\[\d\d?m/g, "").length + 1;
|
|
2270
|
-
}, 0);
|
|
2271
|
-
if (length > 60) {
|
|
2272
|
-
return braces[0] + (base === "" ? "" : base + "\n ") + " " + output.join(",\n ") + " " + braces[1];
|
|
2273
|
-
}
|
|
2274
|
-
return braces[0] + base + " " + output.join(", ") + " " + braces[1];
|
|
2275
|
-
}
|
|
2276
|
-
exports2.types = require_types();
|
|
2277
|
-
function isArray(ar) {
|
|
2278
|
-
return Array.isArray(ar);
|
|
2279
|
-
}
|
|
2280
|
-
exports2.isArray = isArray;
|
|
2281
|
-
function isBoolean(arg) {
|
|
2282
|
-
return typeof arg === "boolean";
|
|
2283
|
-
}
|
|
2284
|
-
exports2.isBoolean = isBoolean;
|
|
2285
|
-
function isNull(arg) {
|
|
2286
|
-
return arg === null;
|
|
2287
|
-
}
|
|
2288
|
-
exports2.isNull = isNull;
|
|
2289
|
-
function isNullOrUndefined(arg) {
|
|
2290
|
-
return arg == null;
|
|
2291
|
-
}
|
|
2292
|
-
exports2.isNullOrUndefined = isNullOrUndefined;
|
|
2293
|
-
function isNumber(arg) {
|
|
2294
|
-
return typeof arg === "number";
|
|
2295
|
-
}
|
|
2296
|
-
exports2.isNumber = isNumber;
|
|
2297
|
-
function isString(arg) {
|
|
2298
|
-
return typeof arg === "string";
|
|
2299
|
-
}
|
|
2300
|
-
exports2.isString = isString;
|
|
2301
|
-
function isSymbol(arg) {
|
|
2302
|
-
return typeof arg === "symbol";
|
|
2303
|
-
}
|
|
2304
|
-
exports2.isSymbol = isSymbol;
|
|
2305
|
-
function isUndefined(arg) {
|
|
2306
|
-
return arg === void 0;
|
|
2307
|
-
}
|
|
2308
|
-
exports2.isUndefined = isUndefined;
|
|
2309
|
-
function isRegExp(re) {
|
|
2310
|
-
return isObject(re) && objectToString(re) === "[object RegExp]";
|
|
2311
|
-
}
|
|
2312
|
-
exports2.isRegExp = isRegExp;
|
|
2313
|
-
exports2.types.isRegExp = isRegExp;
|
|
2314
|
-
function isObject(arg) {
|
|
2315
|
-
return typeof arg === "object" && arg !== null;
|
|
2316
|
-
}
|
|
2317
|
-
exports2.isObject = isObject;
|
|
2318
|
-
function isDate(d) {
|
|
2319
|
-
return isObject(d) && objectToString(d) === "[object Date]";
|
|
2320
|
-
}
|
|
2321
|
-
exports2.isDate = isDate;
|
|
2322
|
-
exports2.types.isDate = isDate;
|
|
2323
|
-
function isError(e) {
|
|
2324
|
-
return isObject(e) && (objectToString(e) === "[object Error]" || e instanceof Error);
|
|
2325
|
-
}
|
|
2326
|
-
exports2.isError = isError;
|
|
2327
|
-
exports2.types.isNativeError = isError;
|
|
2328
|
-
function isFunction(arg) {
|
|
2329
|
-
return typeof arg === "function";
|
|
2330
|
-
}
|
|
2331
|
-
exports2.isFunction = isFunction;
|
|
2332
|
-
function isPrimitive(arg) {
|
|
2333
|
-
return arg === null || typeof arg === "boolean" || typeof arg === "number" || typeof arg === "string" || typeof arg === "symbol" || // ES6 symbol
|
|
2334
|
-
typeof arg === "undefined";
|
|
2335
|
-
}
|
|
2336
|
-
exports2.isPrimitive = isPrimitive;
|
|
2337
|
-
exports2.isBuffer = require_isBuffer();
|
|
2338
|
-
function objectToString(o) {
|
|
2339
|
-
return Object.prototype.toString.call(o);
|
|
2340
|
-
}
|
|
2341
|
-
function pad(n) {
|
|
2342
|
-
return n < 10 ? "0" + n.toString(10) : n.toString(10);
|
|
2343
|
-
}
|
|
2344
|
-
var months = [
|
|
2345
|
-
"Jan",
|
|
2346
|
-
"Feb",
|
|
2347
|
-
"Mar",
|
|
2348
|
-
"Apr",
|
|
2349
|
-
"May",
|
|
2350
|
-
"Jun",
|
|
2351
|
-
"Jul",
|
|
2352
|
-
"Aug",
|
|
2353
|
-
"Sep",
|
|
2354
|
-
"Oct",
|
|
2355
|
-
"Nov",
|
|
2356
|
-
"Dec"
|
|
2357
|
-
];
|
|
2358
|
-
function timestamp() {
|
|
2359
|
-
var d = /* @__PURE__ */ new Date();
|
|
2360
|
-
var time = [
|
|
2361
|
-
pad(d.getHours()),
|
|
2362
|
-
pad(d.getMinutes()),
|
|
2363
|
-
pad(d.getSeconds())
|
|
2364
|
-
].join(":");
|
|
2365
|
-
return [d.getDate(), months[d.getMonth()], time].join(" ");
|
|
2366
|
-
}
|
|
2367
|
-
exports2.log = function() {
|
|
2368
|
-
console.log("%s - %s", timestamp(), exports2.format.apply(exports2, arguments));
|
|
2369
|
-
};
|
|
2370
|
-
exports2.inherits = require_inherits();
|
|
2371
|
-
exports2._extend = function(origin, add) {
|
|
2372
|
-
if (!add || !isObject(add)) return origin;
|
|
2373
|
-
var keys = Object.keys(add);
|
|
2374
|
-
var i = keys.length;
|
|
2375
|
-
while (i--) {
|
|
2376
|
-
origin[keys[i]] = add[keys[i]];
|
|
2377
|
-
}
|
|
2378
|
-
return origin;
|
|
2379
|
-
};
|
|
2380
|
-
function hasOwnProperty(obj, prop) {
|
|
2381
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
2382
|
-
}
|
|
2383
|
-
var kCustomPromisifiedSymbol = typeof Symbol !== "undefined" ? Symbol("util.promisify.custom") : void 0;
|
|
2384
|
-
exports2.promisify = function promisify2(original) {
|
|
2385
|
-
if (typeof original !== "function")
|
|
2386
|
-
throw new TypeError('The "original" argument must be of type Function');
|
|
2387
|
-
if (kCustomPromisifiedSymbol && original[kCustomPromisifiedSymbol]) {
|
|
2388
|
-
var fn = original[kCustomPromisifiedSymbol];
|
|
2389
|
-
if (typeof fn !== "function") {
|
|
2390
|
-
throw new TypeError('The "util.promisify.custom" argument must be of type Function');
|
|
2391
|
-
}
|
|
2392
|
-
Object.defineProperty(fn, kCustomPromisifiedSymbol, {
|
|
2393
|
-
value: fn,
|
|
2394
|
-
enumerable: false,
|
|
2395
|
-
writable: false,
|
|
2396
|
-
configurable: true
|
|
2397
|
-
});
|
|
2398
|
-
return fn;
|
|
2399
|
-
}
|
|
2400
|
-
function fn() {
|
|
2401
|
-
var promiseResolve, promiseReject;
|
|
2402
|
-
var promise = new Promise(function(resolve, reject) {
|
|
2403
|
-
promiseResolve = resolve;
|
|
2404
|
-
promiseReject = reject;
|
|
2405
|
-
});
|
|
2406
|
-
var args = [];
|
|
2407
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
2408
|
-
args.push(arguments[i]);
|
|
2409
|
-
}
|
|
2410
|
-
args.push(function(err, value) {
|
|
2411
|
-
if (err) {
|
|
2412
|
-
promiseReject(err);
|
|
2413
|
-
} else {
|
|
2414
|
-
promiseResolve(value);
|
|
2415
|
-
}
|
|
2416
|
-
});
|
|
2417
|
-
try {
|
|
2418
|
-
original.apply(this, args);
|
|
2419
|
-
} catch (err) {
|
|
2420
|
-
promiseReject(err);
|
|
2421
|
-
}
|
|
2422
|
-
return promise;
|
|
2423
|
-
}
|
|
2424
|
-
Object.setPrototypeOf(fn, Object.getPrototypeOf(original));
|
|
2425
|
-
if (kCustomPromisifiedSymbol) Object.defineProperty(fn, kCustomPromisifiedSymbol, {
|
|
2426
|
-
value: fn,
|
|
2427
|
-
enumerable: false,
|
|
2428
|
-
writable: false,
|
|
2429
|
-
configurable: true
|
|
2430
|
-
});
|
|
2431
|
-
return Object.defineProperties(
|
|
2432
|
-
fn,
|
|
2433
|
-
getOwnPropertyDescriptors(original)
|
|
2434
|
-
);
|
|
2435
|
-
};
|
|
2436
|
-
exports2.promisify.custom = kCustomPromisifiedSymbol;
|
|
2437
|
-
function callbackifyOnRejected(reason, cb) {
|
|
2438
|
-
if (!reason) {
|
|
2439
|
-
var newReason = new Error("Promise was rejected with a falsy value");
|
|
2440
|
-
newReason.reason = reason;
|
|
2441
|
-
reason = newReason;
|
|
2442
|
-
}
|
|
2443
|
-
return cb(reason);
|
|
2444
|
-
}
|
|
2445
|
-
function callbackify2(original) {
|
|
2446
|
-
if (typeof original !== "function") {
|
|
2447
|
-
throw new TypeError('The "original" argument must be of type Function');
|
|
2448
|
-
}
|
|
2449
|
-
function callbackified() {
|
|
2450
|
-
var args = [];
|
|
2451
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
2452
|
-
args.push(arguments[i]);
|
|
2453
|
-
}
|
|
2454
|
-
var maybeCb = args.pop();
|
|
2455
|
-
if (typeof maybeCb !== "function") {
|
|
2456
|
-
throw new TypeError("The last argument must be of type Function");
|
|
2457
|
-
}
|
|
2458
|
-
var self = this;
|
|
2459
|
-
var cb = function() {
|
|
2460
|
-
return maybeCb.apply(self, arguments);
|
|
2461
|
-
};
|
|
2462
|
-
original.apply(this, args).then(
|
|
2463
|
-
function(ret) {
|
|
2464
|
-
process.nextTick(cb.bind(null, null, ret));
|
|
2465
|
-
},
|
|
2466
|
-
function(rej) {
|
|
2467
|
-
process.nextTick(callbackifyOnRejected.bind(null, rej, cb));
|
|
2468
|
-
}
|
|
2469
|
-
);
|
|
2470
|
-
}
|
|
2471
|
-
Object.setPrototypeOf(callbackified, Object.getPrototypeOf(original));
|
|
2472
|
-
Object.defineProperties(
|
|
2473
|
-
callbackified,
|
|
2474
|
-
getOwnPropertyDescriptors(original)
|
|
2475
|
-
);
|
|
2476
|
-
return callbackified;
|
|
2477
|
-
}
|
|
2478
|
-
exports2.callbackify = callbackify2;
|
|
2479
|
-
}
|
|
2480
|
-
});
|
|
2481
|
-
var import_util = (0, import_chunk_6SZKM6EC.__toESM)(require_util(), 1);
|
|
2482
|
-
var import_util2 = (0, import_chunk_6SZKM6EC.__toESM)(require_util(), 1);
|
|
2483
|
-
var util_default = import_util.default;
|
|
2484
|
-
var export_callbackify = import_util2.callbackify;
|
|
2485
|
-
var export_inspect = import_util2.inspect;
|
|
2486
|
-
var export_promisify = import_util2.promisify;
|
|
2487
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
2488
|
-
0 && (module.exports = {
|
|
2489
|
-
callbackify,
|
|
2490
|
-
inspect,
|
|
2491
|
-
promisify
|
|
2492
|
-
});
|
|
2493
|
-
//# sourceMappingURL=util.cjs.map
|