@ks-web/use 0.1.0 → 0.1.1
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/index.cjs.js +366 -80
- package/dist/index.esm.mjs +366 -80
- package/package.json +11 -10
package/dist/index.esm.mjs
CHANGED
|
@@ -41,6 +41,62 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
41
41
|
mod
|
|
42
42
|
));
|
|
43
43
|
|
|
44
|
+
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js
|
|
45
|
+
var require_es_errors = __commonJS({
|
|
46
|
+
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(exports2, module2) {
|
|
47
|
+
"use strict";
|
|
48
|
+
module2.exports = Error;
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js
|
|
53
|
+
var require_eval = __commonJS({
|
|
54
|
+
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(exports2, module2) {
|
|
55
|
+
"use strict";
|
|
56
|
+
module2.exports = EvalError;
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js
|
|
61
|
+
var require_range = __commonJS({
|
|
62
|
+
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(exports2, module2) {
|
|
63
|
+
"use strict";
|
|
64
|
+
module2.exports = RangeError;
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js
|
|
69
|
+
var require_ref = __commonJS({
|
|
70
|
+
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(exports2, module2) {
|
|
71
|
+
"use strict";
|
|
72
|
+
module2.exports = ReferenceError;
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js
|
|
77
|
+
var require_syntax = __commonJS({
|
|
78
|
+
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(exports2, module2) {
|
|
79
|
+
"use strict";
|
|
80
|
+
module2.exports = SyntaxError;
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js
|
|
85
|
+
var require_type = __commonJS({
|
|
86
|
+
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(exports2, module2) {
|
|
87
|
+
"use strict";
|
|
88
|
+
module2.exports = TypeError;
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
// ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js
|
|
93
|
+
var require_uri = __commonJS({
|
|
94
|
+
"../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(exports2, module2) {
|
|
95
|
+
"use strict";
|
|
96
|
+
module2.exports = URIError;
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
|
|
44
100
|
// ../../node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/shams.js
|
|
45
101
|
var require_shams = __commonJS({
|
|
46
102
|
"../../node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/shams.js"(exports2, module2) {
|
|
@@ -117,44 +173,85 @@ var require_has_symbols = __commonJS({
|
|
|
117
173
|
}
|
|
118
174
|
});
|
|
119
175
|
|
|
120
|
-
// ../../node_modules/.pnpm/
|
|
176
|
+
// ../../node_modules/.pnpm/has-proto@1.0.3/node_modules/has-proto/index.js
|
|
177
|
+
var require_has_proto = __commonJS({
|
|
178
|
+
"../../node_modules/.pnpm/has-proto@1.0.3/node_modules/has-proto/index.js"(exports2, module2) {
|
|
179
|
+
"use strict";
|
|
180
|
+
var test = {
|
|
181
|
+
__proto__: null,
|
|
182
|
+
foo: {}
|
|
183
|
+
};
|
|
184
|
+
var $Object = Object;
|
|
185
|
+
module2.exports = function hasProto() {
|
|
186
|
+
return { __proto__: test }.foo === test.foo && !(test instanceof $Object);
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
|
|
191
|
+
// ../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js
|
|
121
192
|
var require_implementation = __commonJS({
|
|
122
|
-
"../../node_modules/.pnpm/function-bind@1.1.
|
|
193
|
+
"../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(exports2, module2) {
|
|
123
194
|
"use strict";
|
|
124
195
|
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
125
|
-
var slice = Array.prototype.slice;
|
|
126
196
|
var toStr = Object.prototype.toString;
|
|
197
|
+
var max = Math.max;
|
|
127
198
|
var funcType = "[object Function]";
|
|
199
|
+
var concatty = function concatty2(a, b) {
|
|
200
|
+
var arr = [];
|
|
201
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
202
|
+
arr[i] = a[i];
|
|
203
|
+
}
|
|
204
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
205
|
+
arr[j + a.length] = b[j];
|
|
206
|
+
}
|
|
207
|
+
return arr;
|
|
208
|
+
};
|
|
209
|
+
var slicy = function slicy2(arrLike, offset) {
|
|
210
|
+
var arr = [];
|
|
211
|
+
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
212
|
+
arr[j] = arrLike[i];
|
|
213
|
+
}
|
|
214
|
+
return arr;
|
|
215
|
+
};
|
|
216
|
+
var joiny = function(arr, joiner) {
|
|
217
|
+
var str = "";
|
|
218
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
219
|
+
str += arr[i];
|
|
220
|
+
if (i + 1 < arr.length) {
|
|
221
|
+
str += joiner;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
return str;
|
|
225
|
+
};
|
|
128
226
|
module2.exports = function bind2(that) {
|
|
129
227
|
var target = this;
|
|
130
|
-
if (typeof target !== "function" || toStr.
|
|
228
|
+
if (typeof target !== "function" || toStr.apply(target) !== funcType) {
|
|
131
229
|
throw new TypeError(ERROR_MESSAGE + target);
|
|
132
230
|
}
|
|
133
|
-
var args =
|
|
231
|
+
var args = slicy(arguments, 1);
|
|
134
232
|
var bound;
|
|
135
233
|
var binder = function() {
|
|
136
234
|
if (this instanceof bound) {
|
|
137
235
|
var result = target.apply(
|
|
138
236
|
this,
|
|
139
|
-
args
|
|
237
|
+
concatty(args, arguments)
|
|
140
238
|
);
|
|
141
239
|
if (Object(result) === result) {
|
|
142
240
|
return result;
|
|
143
241
|
}
|
|
144
242
|
return this;
|
|
145
|
-
} else {
|
|
146
|
-
return target.apply(
|
|
147
|
-
that,
|
|
148
|
-
args.concat(slice.call(arguments))
|
|
149
|
-
);
|
|
150
243
|
}
|
|
244
|
+
return target.apply(
|
|
245
|
+
that,
|
|
246
|
+
concatty(args, arguments)
|
|
247
|
+
);
|
|
151
248
|
};
|
|
152
|
-
var boundLength =
|
|
249
|
+
var boundLength = max(0, target.length - args.length);
|
|
153
250
|
var boundArgs = [];
|
|
154
251
|
for (var i = 0; i < boundLength; i++) {
|
|
155
|
-
boundArgs
|
|
252
|
+
boundArgs[i] = "$" + i;
|
|
156
253
|
}
|
|
157
|
-
bound = Function("binder", "return function (" + boundArgs
|
|
254
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
158
255
|
if (target.prototype) {
|
|
159
256
|
var Empty = function Empty2() {
|
|
160
257
|
};
|
|
@@ -167,32 +264,39 @@ var require_implementation = __commonJS({
|
|
|
167
264
|
}
|
|
168
265
|
});
|
|
169
266
|
|
|
170
|
-
// ../../node_modules/.pnpm/function-bind@1.1.
|
|
267
|
+
// ../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js
|
|
171
268
|
var require_function_bind = __commonJS({
|
|
172
|
-
"../../node_modules/.pnpm/function-bind@1.1.
|
|
269
|
+
"../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(exports2, module2) {
|
|
173
270
|
"use strict";
|
|
174
271
|
var implementation = require_implementation();
|
|
175
272
|
module2.exports = Function.prototype.bind || implementation;
|
|
176
273
|
}
|
|
177
274
|
});
|
|
178
275
|
|
|
179
|
-
// ../../node_modules/.pnpm/
|
|
180
|
-
var
|
|
181
|
-
"../../node_modules/.pnpm/
|
|
276
|
+
// ../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js
|
|
277
|
+
var require_hasown = __commonJS({
|
|
278
|
+
"../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(exports2, module2) {
|
|
182
279
|
"use strict";
|
|
280
|
+
var call = Function.prototype.call;
|
|
281
|
+
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
183
282
|
var bind2 = require_function_bind();
|
|
184
|
-
module2.exports = bind2.call(
|
|
283
|
+
module2.exports = bind2.call(call, $hasOwn);
|
|
185
284
|
}
|
|
186
285
|
});
|
|
187
286
|
|
|
188
|
-
// ../../node_modules/.pnpm/get-intrinsic@1.
|
|
287
|
+
// ../../node_modules/.pnpm/get-intrinsic@1.2.4/node_modules/get-intrinsic/index.js
|
|
189
288
|
var require_get_intrinsic = __commonJS({
|
|
190
|
-
"../../node_modules/.pnpm/get-intrinsic@1.
|
|
289
|
+
"../../node_modules/.pnpm/get-intrinsic@1.2.4/node_modules/get-intrinsic/index.js"(exports2, module2) {
|
|
191
290
|
"use strict";
|
|
192
291
|
var undefined2;
|
|
193
|
-
var $
|
|
292
|
+
var $Error = require_es_errors();
|
|
293
|
+
var $EvalError = require_eval();
|
|
294
|
+
var $RangeError = require_range();
|
|
295
|
+
var $ReferenceError = require_ref();
|
|
296
|
+
var $SyntaxError = require_syntax();
|
|
297
|
+
var $TypeError = require_type();
|
|
298
|
+
var $URIError = require_uri();
|
|
194
299
|
var $Function = Function;
|
|
195
|
-
var $TypeError = TypeError;
|
|
196
300
|
var getEvalledConstructor = function(expressionSyntax) {
|
|
197
301
|
try {
|
|
198
302
|
return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
|
|
@@ -223,16 +327,18 @@ var require_get_intrinsic = __commonJS({
|
|
|
223
327
|
}
|
|
224
328
|
}() : throwTypeError;
|
|
225
329
|
var hasSymbols = require_has_symbols()();
|
|
226
|
-
var
|
|
330
|
+
var hasProto = require_has_proto()();
|
|
331
|
+
var getProto = Object.getPrototypeOf || (hasProto ? function(x) {
|
|
227
332
|
return x.__proto__;
|
|
228
|
-
};
|
|
333
|
+
} : null);
|
|
229
334
|
var needsEval = {};
|
|
230
|
-
var TypedArray = typeof Uint8Array === "undefined" ? undefined2 : getProto(Uint8Array);
|
|
335
|
+
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined2 : getProto(Uint8Array);
|
|
231
336
|
var INTRINSICS = {
|
|
337
|
+
__proto__: null,
|
|
232
338
|
"%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError,
|
|
233
339
|
"%Array%": Array,
|
|
234
340
|
"%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer,
|
|
235
|
-
"%ArrayIteratorPrototype%": hasSymbols ? getProto([][Symbol.iterator]()) : undefined2,
|
|
341
|
+
"%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined2,
|
|
236
342
|
"%AsyncFromSyncIteratorPrototype%": undefined2,
|
|
237
343
|
"%AsyncFunction%": needsEval,
|
|
238
344
|
"%AsyncGenerator%": needsEval,
|
|
@@ -240,6 +346,8 @@ var require_get_intrinsic = __commonJS({
|
|
|
240
346
|
"%AsyncIteratorPrototype%": needsEval,
|
|
241
347
|
"%Atomics%": typeof Atomics === "undefined" ? undefined2 : Atomics,
|
|
242
348
|
"%BigInt%": typeof BigInt === "undefined" ? undefined2 : BigInt,
|
|
349
|
+
"%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined2 : BigInt64Array,
|
|
350
|
+
"%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined2 : BigUint64Array,
|
|
243
351
|
"%Boolean%": Boolean,
|
|
244
352
|
"%DataView%": typeof DataView === "undefined" ? undefined2 : DataView,
|
|
245
353
|
"%Date%": Date,
|
|
@@ -247,10 +355,10 @@ var require_get_intrinsic = __commonJS({
|
|
|
247
355
|
"%decodeURIComponent%": decodeURIComponent,
|
|
248
356
|
"%encodeURI%": encodeURI,
|
|
249
357
|
"%encodeURIComponent%": encodeURIComponent,
|
|
250
|
-
"%Error%": Error,
|
|
358
|
+
"%Error%": $Error,
|
|
251
359
|
"%eval%": eval,
|
|
252
360
|
// eslint-disable-line no-eval
|
|
253
|
-
"%EvalError%": EvalError,
|
|
361
|
+
"%EvalError%": $EvalError,
|
|
254
362
|
"%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array,
|
|
255
363
|
"%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array,
|
|
256
364
|
"%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry,
|
|
@@ -261,10 +369,10 @@ var require_get_intrinsic = __commonJS({
|
|
|
261
369
|
"%Int32Array%": typeof Int32Array === "undefined" ? undefined2 : Int32Array,
|
|
262
370
|
"%isFinite%": isFinite,
|
|
263
371
|
"%isNaN%": isNaN,
|
|
264
|
-
"%IteratorPrototype%": hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined2,
|
|
372
|
+
"%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined2,
|
|
265
373
|
"%JSON%": typeof JSON === "object" ? JSON : undefined2,
|
|
266
374
|
"%Map%": typeof Map === "undefined" ? undefined2 : Map,
|
|
267
|
-
"%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
375
|
+
"%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
268
376
|
"%Math%": Math,
|
|
269
377
|
"%Number%": Number,
|
|
270
378
|
"%Object%": Object,
|
|
@@ -272,15 +380,15 @@ var require_get_intrinsic = __commonJS({
|
|
|
272
380
|
"%parseInt%": parseInt,
|
|
273
381
|
"%Promise%": typeof Promise === "undefined" ? undefined2 : Promise,
|
|
274
382
|
"%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy,
|
|
275
|
-
"%RangeError%": RangeError,
|
|
276
|
-
"%ReferenceError%": ReferenceError,
|
|
383
|
+
"%RangeError%": $RangeError,
|
|
384
|
+
"%ReferenceError%": $ReferenceError,
|
|
277
385
|
"%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
|
|
278
386
|
"%RegExp%": RegExp,
|
|
279
387
|
"%Set%": typeof Set === "undefined" ? undefined2 : Set,
|
|
280
|
-
"%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
388
|
+
"%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
281
389
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined2 : SharedArrayBuffer,
|
|
282
390
|
"%String%": String,
|
|
283
|
-
"%StringIteratorPrototype%": hasSymbols ? getProto(""[Symbol.iterator]()) : undefined2,
|
|
391
|
+
"%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined2,
|
|
284
392
|
"%Symbol%": hasSymbols ? Symbol : undefined2,
|
|
285
393
|
"%SyntaxError%": $SyntaxError,
|
|
286
394
|
"%ThrowTypeError%": ThrowTypeError,
|
|
@@ -290,11 +398,20 @@ var require_get_intrinsic = __commonJS({
|
|
|
290
398
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined2 : Uint8ClampedArray,
|
|
291
399
|
"%Uint16Array%": typeof Uint16Array === "undefined" ? undefined2 : Uint16Array,
|
|
292
400
|
"%Uint32Array%": typeof Uint32Array === "undefined" ? undefined2 : Uint32Array,
|
|
293
|
-
"%URIError%": URIError,
|
|
401
|
+
"%URIError%": $URIError,
|
|
294
402
|
"%WeakMap%": typeof WeakMap === "undefined" ? undefined2 : WeakMap,
|
|
295
403
|
"%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef,
|
|
296
404
|
"%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet
|
|
297
405
|
};
|
|
406
|
+
if (getProto) {
|
|
407
|
+
try {
|
|
408
|
+
null.error;
|
|
409
|
+
} catch (e) {
|
|
410
|
+
errorProto = getProto(getProto(e));
|
|
411
|
+
INTRINSICS["%Error.prototype%"] = errorProto;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
var errorProto;
|
|
298
415
|
var doEval = function doEval2(name) {
|
|
299
416
|
var value;
|
|
300
417
|
if (name === "%AsyncFunction%") {
|
|
@@ -310,7 +427,7 @@ var require_get_intrinsic = __commonJS({
|
|
|
310
427
|
}
|
|
311
428
|
} else if (name === "%AsyncIteratorPrototype%") {
|
|
312
429
|
var gen = doEval2("%AsyncGenerator%");
|
|
313
|
-
if (gen) {
|
|
430
|
+
if (gen && getProto) {
|
|
314
431
|
value = getProto(gen.prototype);
|
|
315
432
|
}
|
|
316
433
|
}
|
|
@@ -318,6 +435,7 @@ var require_get_intrinsic = __commonJS({
|
|
|
318
435
|
return value;
|
|
319
436
|
};
|
|
320
437
|
var LEGACY_ALIASES = {
|
|
438
|
+
__proto__: null,
|
|
321
439
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
322
440
|
"%ArrayPrototype%": ["Array", "prototype"],
|
|
323
441
|
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
@@ -371,7 +489,7 @@ var require_get_intrinsic = __commonJS({
|
|
|
371
489
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
372
490
|
};
|
|
373
491
|
var bind2 = require_function_bind();
|
|
374
|
-
var hasOwn =
|
|
492
|
+
var hasOwn = require_hasown();
|
|
375
493
|
var $concat = bind2.call(Function.call, Array.prototype.concat);
|
|
376
494
|
var $spliceApply = bind2.call(Function.apply, Array.prototype.splice);
|
|
377
495
|
var $replace = bind2.call(Function.call, String.prototype.replace);
|
|
@@ -480,38 +598,186 @@ var require_get_intrinsic = __commonJS({
|
|
|
480
598
|
}
|
|
481
599
|
});
|
|
482
600
|
|
|
483
|
-
// ../../node_modules/.pnpm/
|
|
484
|
-
var
|
|
485
|
-
"../../node_modules/.pnpm/
|
|
601
|
+
// ../../node_modules/.pnpm/es-define-property@1.0.0/node_modules/es-define-property/index.js
|
|
602
|
+
var require_es_define_property = __commonJS({
|
|
603
|
+
"../../node_modules/.pnpm/es-define-property@1.0.0/node_modules/es-define-property/index.js"(exports2, module2) {
|
|
486
604
|
"use strict";
|
|
487
|
-
var bind2 = require_function_bind();
|
|
488
605
|
var GetIntrinsic = require_get_intrinsic();
|
|
489
|
-
var $
|
|
490
|
-
var $call = GetIntrinsic("%Function.prototype.call%");
|
|
491
|
-
var $reflectApply = GetIntrinsic("%Reflect.apply%", true) || bind2.call($call, $apply);
|
|
492
|
-
var $gOPD = GetIntrinsic("%Object.getOwnPropertyDescriptor%", true);
|
|
493
|
-
var $defineProperty = GetIntrinsic("%Object.defineProperty%", true);
|
|
494
|
-
var $max = GetIntrinsic("%Math.max%");
|
|
606
|
+
var $defineProperty = GetIntrinsic("%Object.defineProperty%", true) || false;
|
|
495
607
|
if ($defineProperty) {
|
|
496
608
|
try {
|
|
497
609
|
$defineProperty({}, "a", { value: 1 });
|
|
498
610
|
} catch (e) {
|
|
499
|
-
$defineProperty =
|
|
611
|
+
$defineProperty = false;
|
|
500
612
|
}
|
|
501
613
|
}
|
|
502
|
-
module2.exports =
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
614
|
+
module2.exports = $defineProperty;
|
|
615
|
+
}
|
|
616
|
+
});
|
|
617
|
+
|
|
618
|
+
// ../../node_modules/.pnpm/gopd@1.0.1/node_modules/gopd/index.js
|
|
619
|
+
var require_gopd = __commonJS({
|
|
620
|
+
"../../node_modules/.pnpm/gopd@1.0.1/node_modules/gopd/index.js"(exports2, module2) {
|
|
621
|
+
"use strict";
|
|
622
|
+
var GetIntrinsic = require_get_intrinsic();
|
|
623
|
+
var $gOPD = GetIntrinsic("%Object.getOwnPropertyDescriptor%", true);
|
|
624
|
+
if ($gOPD) {
|
|
625
|
+
try {
|
|
626
|
+
$gOPD([], "length");
|
|
627
|
+
} catch (e) {
|
|
628
|
+
$gOPD = null;
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
module2.exports = $gOPD;
|
|
632
|
+
}
|
|
633
|
+
});
|
|
634
|
+
|
|
635
|
+
// ../../node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js
|
|
636
|
+
var require_define_data_property = __commonJS({
|
|
637
|
+
"../../node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js"(exports2, module2) {
|
|
638
|
+
"use strict";
|
|
639
|
+
var $defineProperty = require_es_define_property();
|
|
640
|
+
var $SyntaxError = require_syntax();
|
|
641
|
+
var $TypeError = require_type();
|
|
642
|
+
var gopd = require_gopd();
|
|
643
|
+
module2.exports = function defineDataProperty(obj, property, value) {
|
|
644
|
+
if (!obj || typeof obj !== "object" && typeof obj !== "function") {
|
|
645
|
+
throw new $TypeError("`obj` must be an object or a function`");
|
|
646
|
+
}
|
|
647
|
+
if (typeof property !== "string" && typeof property !== "symbol") {
|
|
648
|
+
throw new $TypeError("`property` must be a string or a symbol`");
|
|
649
|
+
}
|
|
650
|
+
if (arguments.length > 3 && typeof arguments[3] !== "boolean" && arguments[3] !== null) {
|
|
651
|
+
throw new $TypeError("`nonEnumerable`, if provided, must be a boolean or null");
|
|
652
|
+
}
|
|
653
|
+
if (arguments.length > 4 && typeof arguments[4] !== "boolean" && arguments[4] !== null) {
|
|
654
|
+
throw new $TypeError("`nonWritable`, if provided, must be a boolean or null");
|
|
655
|
+
}
|
|
656
|
+
if (arguments.length > 5 && typeof arguments[5] !== "boolean" && arguments[5] !== null) {
|
|
657
|
+
throw new $TypeError("`nonConfigurable`, if provided, must be a boolean or null");
|
|
658
|
+
}
|
|
659
|
+
if (arguments.length > 6 && typeof arguments[6] !== "boolean") {
|
|
660
|
+
throw new $TypeError("`loose`, if provided, must be a boolean");
|
|
661
|
+
}
|
|
662
|
+
var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
|
|
663
|
+
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
664
|
+
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
665
|
+
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
666
|
+
var desc = !!gopd && gopd(obj, property);
|
|
667
|
+
if ($defineProperty) {
|
|
668
|
+
$defineProperty(obj, property, {
|
|
669
|
+
configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
|
|
670
|
+
enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
|
|
671
|
+
value,
|
|
672
|
+
writable: nonWritable === null && desc ? desc.writable : !nonWritable
|
|
673
|
+
});
|
|
674
|
+
} else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) {
|
|
675
|
+
obj[property] = value;
|
|
676
|
+
} else {
|
|
677
|
+
throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
678
|
+
}
|
|
679
|
+
};
|
|
680
|
+
}
|
|
681
|
+
});
|
|
682
|
+
|
|
683
|
+
// ../../node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js
|
|
684
|
+
var require_has_property_descriptors = __commonJS({
|
|
685
|
+
"../../node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js"(exports2, module2) {
|
|
686
|
+
"use strict";
|
|
687
|
+
var $defineProperty = require_es_define_property();
|
|
688
|
+
var hasPropertyDescriptors = function hasPropertyDescriptors2() {
|
|
689
|
+
return !!$defineProperty;
|
|
690
|
+
};
|
|
691
|
+
hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
|
|
692
|
+
if (!$defineProperty) {
|
|
693
|
+
return null;
|
|
694
|
+
}
|
|
695
|
+
try {
|
|
696
|
+
return $defineProperty([], "length", { value: 1 }).length !== 1;
|
|
697
|
+
} catch (e) {
|
|
698
|
+
return true;
|
|
699
|
+
}
|
|
700
|
+
};
|
|
701
|
+
module2.exports = hasPropertyDescriptors;
|
|
702
|
+
}
|
|
703
|
+
});
|
|
704
|
+
|
|
705
|
+
// ../../node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.js
|
|
706
|
+
var require_set_function_length = __commonJS({
|
|
707
|
+
"../../node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.js"(exports2, module2) {
|
|
708
|
+
"use strict";
|
|
709
|
+
var GetIntrinsic = require_get_intrinsic();
|
|
710
|
+
var define2 = require_define_data_property();
|
|
711
|
+
var hasDescriptors = require_has_property_descriptors()();
|
|
712
|
+
var gOPD = require_gopd();
|
|
713
|
+
var $TypeError = require_type();
|
|
714
|
+
var $floor = GetIntrinsic("%Math.floor%");
|
|
715
|
+
module2.exports = function setFunctionLength(fn, length) {
|
|
716
|
+
if (typeof fn !== "function") {
|
|
717
|
+
throw new $TypeError("`fn` is not a function");
|
|
718
|
+
}
|
|
719
|
+
if (typeof length !== "number" || length < 0 || length > 4294967295 || $floor(length) !== length) {
|
|
720
|
+
throw new $TypeError("`length` must be a positive 32-bit integer");
|
|
721
|
+
}
|
|
722
|
+
var loose = arguments.length > 2 && !!arguments[2];
|
|
723
|
+
var functionLengthIsConfigurable = true;
|
|
724
|
+
var functionLengthIsWritable = true;
|
|
725
|
+
if ("length" in fn && gOPD) {
|
|
726
|
+
var desc = gOPD(fn, "length");
|
|
727
|
+
if (desc && !desc.configurable) {
|
|
728
|
+
functionLengthIsConfigurable = false;
|
|
729
|
+
}
|
|
730
|
+
if (desc && !desc.writable) {
|
|
731
|
+
functionLengthIsWritable = false;
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
|
|
735
|
+
if (hasDescriptors) {
|
|
736
|
+
define2(
|
|
737
|
+
/** @type {Parameters<define>[0]} */
|
|
738
|
+
fn,
|
|
739
|
+
"length",
|
|
740
|
+
length,
|
|
741
|
+
true,
|
|
742
|
+
true
|
|
743
|
+
);
|
|
744
|
+
} else {
|
|
745
|
+
define2(
|
|
746
|
+
/** @type {Parameters<define>[0]} */
|
|
747
|
+
fn,
|
|
509
748
|
"length",
|
|
510
|
-
|
|
749
|
+
length
|
|
511
750
|
);
|
|
512
751
|
}
|
|
513
752
|
}
|
|
514
|
-
return
|
|
753
|
+
return fn;
|
|
754
|
+
};
|
|
755
|
+
}
|
|
756
|
+
});
|
|
757
|
+
|
|
758
|
+
// ../../node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/index.js
|
|
759
|
+
var require_call_bind = __commonJS({
|
|
760
|
+
"../../node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/index.js"(exports2, module2) {
|
|
761
|
+
"use strict";
|
|
762
|
+
var bind2 = require_function_bind();
|
|
763
|
+
var GetIntrinsic = require_get_intrinsic();
|
|
764
|
+
var setFunctionLength = require_set_function_length();
|
|
765
|
+
var $TypeError = require_type();
|
|
766
|
+
var $apply = GetIntrinsic("%Function.prototype.apply%");
|
|
767
|
+
var $call = GetIntrinsic("%Function.prototype.call%");
|
|
768
|
+
var $reflectApply = GetIntrinsic("%Reflect.apply%", true) || bind2.call($call, $apply);
|
|
769
|
+
var $defineProperty = require_es_define_property();
|
|
770
|
+
var $max = GetIntrinsic("%Math.max%");
|
|
771
|
+
module2.exports = function callBind(originalFunction) {
|
|
772
|
+
if (typeof originalFunction !== "function") {
|
|
773
|
+
throw new $TypeError("a function is required");
|
|
774
|
+
}
|
|
775
|
+
var func = $reflectApply(bind2, $call, arguments);
|
|
776
|
+
return setFunctionLength(
|
|
777
|
+
func,
|
|
778
|
+
1 + $max(0, originalFunction.length - (arguments.length - 1)),
|
|
779
|
+
true
|
|
780
|
+
);
|
|
515
781
|
};
|
|
516
782
|
var applyBind = function applyBind2() {
|
|
517
783
|
return $reflectApply(bind2, $apply, arguments);
|
|
@@ -524,9 +790,9 @@ var require_call_bind = __commonJS({
|
|
|
524
790
|
}
|
|
525
791
|
});
|
|
526
792
|
|
|
527
|
-
// ../../node_modules/.pnpm/call-bind@1.0.
|
|
793
|
+
// ../../node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/callBound.js
|
|
528
794
|
var require_callBound = __commonJS({
|
|
529
|
-
"../../node_modules/.pnpm/call-bind@1.0.
|
|
795
|
+
"../../node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/callBound.js"(exports2, module2) {
|
|
530
796
|
"use strict";
|
|
531
797
|
var GetIntrinsic = require_get_intrinsic();
|
|
532
798
|
var callBind = require_call_bind();
|
|
@@ -541,15 +807,15 @@ var require_callBound = __commonJS({
|
|
|
541
807
|
}
|
|
542
808
|
});
|
|
543
809
|
|
|
544
|
-
// (disabled):../../node_modules/.pnpm/object-inspect@1.
|
|
810
|
+
// (disabled):../../node_modules/.pnpm/object-inspect@1.13.1/node_modules/object-inspect/util.inspect
|
|
545
811
|
var require_util = __commonJS({
|
|
546
|
-
"(disabled):../../node_modules/.pnpm/object-inspect@1.
|
|
812
|
+
"(disabled):../../node_modules/.pnpm/object-inspect@1.13.1/node_modules/object-inspect/util.inspect"() {
|
|
547
813
|
}
|
|
548
814
|
});
|
|
549
815
|
|
|
550
|
-
// ../../node_modules/.pnpm/object-inspect@1.
|
|
816
|
+
// ../../node_modules/.pnpm/object-inspect@1.13.1/node_modules/object-inspect/index.js
|
|
551
817
|
var require_object_inspect = __commonJS({
|
|
552
|
-
"../../node_modules/.pnpm/object-inspect@1.
|
|
818
|
+
"../../node_modules/.pnpm/object-inspect@1.13.1/node_modules/object-inspect/index.js"(exports2, module2) {
|
|
553
819
|
var hasMap = typeof Map === "function" && Map.prototype;
|
|
554
820
|
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null;
|
|
555
821
|
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === "function" ? mapSizeDescriptor.get : null;
|
|
@@ -726,16 +992,20 @@ var require_object_inspect = __commonJS({
|
|
|
726
992
|
}
|
|
727
993
|
if (isMap(obj)) {
|
|
728
994
|
var mapParts = [];
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
995
|
+
if (mapForEach) {
|
|
996
|
+
mapForEach.call(obj, function(value, key) {
|
|
997
|
+
mapParts.push(inspect(key, obj, true) + " => " + inspect(value, obj));
|
|
998
|
+
});
|
|
999
|
+
}
|
|
732
1000
|
return collectionOf("Map", mapSize.call(obj), mapParts, indent);
|
|
733
1001
|
}
|
|
734
1002
|
if (isSet(obj)) {
|
|
735
1003
|
var setParts = [];
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
1004
|
+
if (setForEach) {
|
|
1005
|
+
setForEach.call(obj, function(value) {
|
|
1006
|
+
setParts.push(inspect(value, obj));
|
|
1007
|
+
});
|
|
1008
|
+
}
|
|
739
1009
|
return collectionOf("Set", setSize.call(obj), setParts, indent);
|
|
740
1010
|
}
|
|
741
1011
|
if (isWeakMap(obj)) {
|
|
@@ -759,6 +1029,12 @@ var require_object_inspect = __commonJS({
|
|
|
759
1029
|
if (isString3(obj)) {
|
|
760
1030
|
return markBoxed(inspect(String(obj)));
|
|
761
1031
|
}
|
|
1032
|
+
if (typeof window !== "undefined" && obj === window) {
|
|
1033
|
+
return "{ [object Window] }";
|
|
1034
|
+
}
|
|
1035
|
+
if (obj === global) {
|
|
1036
|
+
return "{ [object globalThis] }";
|
|
1037
|
+
}
|
|
762
1038
|
if (!isDate2(obj) && !isRegExp2(obj)) {
|
|
763
1039
|
var ys = arrObjKeys(obj, inspect);
|
|
764
1040
|
var isPlainObject2 = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
@@ -1052,14 +1328,14 @@ var require_object_inspect = __commonJS({
|
|
|
1052
1328
|
}
|
|
1053
1329
|
});
|
|
1054
1330
|
|
|
1055
|
-
// ../../node_modules/.pnpm/side-channel@1.0.
|
|
1331
|
+
// ../../node_modules/.pnpm/side-channel@1.0.6/node_modules/side-channel/index.js
|
|
1056
1332
|
var require_side_channel = __commonJS({
|
|
1057
|
-
"../../node_modules/.pnpm/side-channel@1.0.
|
|
1333
|
+
"../../node_modules/.pnpm/side-channel@1.0.6/node_modules/side-channel/index.js"(exports2, module2) {
|
|
1058
1334
|
"use strict";
|
|
1059
1335
|
var GetIntrinsic = require_get_intrinsic();
|
|
1060
1336
|
var callBound = require_callBound();
|
|
1061
1337
|
var inspect = require_object_inspect();
|
|
1062
|
-
var $TypeError =
|
|
1338
|
+
var $TypeError = require_type();
|
|
1063
1339
|
var $WeakMap = GetIntrinsic("%WeakMap%", true);
|
|
1064
1340
|
var $Map = GetIntrinsic("%Map%", true);
|
|
1065
1341
|
var $weakMapGet = callBound("WeakMap.prototype.get", true);
|
|
@@ -1069,10 +1345,13 @@ var require_side_channel = __commonJS({
|
|
|
1069
1345
|
var $mapSet = callBound("Map.prototype.set", true);
|
|
1070
1346
|
var $mapHas = callBound("Map.prototype.has", true);
|
|
1071
1347
|
var listGetNode = function(list, key) {
|
|
1072
|
-
|
|
1348
|
+
var prev = list;
|
|
1349
|
+
var curr;
|
|
1350
|
+
for (; (curr = prev.next) !== null; prev = curr) {
|
|
1073
1351
|
if (curr.key === key) {
|
|
1074
1352
|
prev.next = curr.next;
|
|
1075
|
-
curr.next = list.next
|
|
1353
|
+
curr.next = /** @type {NonNullable<typeof list.next>} */
|
|
1354
|
+
list.next;
|
|
1076
1355
|
list.next = curr;
|
|
1077
1356
|
return curr;
|
|
1078
1357
|
}
|
|
@@ -1087,8 +1366,9 @@ var require_side_channel = __commonJS({
|
|
|
1087
1366
|
if (node) {
|
|
1088
1367
|
node.value = value;
|
|
1089
1368
|
} else {
|
|
1090
|
-
objects.next = {
|
|
1091
|
-
|
|
1369
|
+
objects.next = /** @type {import('.').ListNode<typeof value>} */
|
|
1370
|
+
{
|
|
1371
|
+
// eslint-disable-line no-param-reassign, no-extra-parens
|
|
1092
1372
|
key,
|
|
1093
1373
|
next: objects.next,
|
|
1094
1374
|
value
|
|
@@ -5157,8 +5437,14 @@ function handleOptions(httpInstance, url, method2, param, config) {
|
|
|
5157
5437
|
break;
|
|
5158
5438
|
case CONTENT_TYPE.form:
|
|
5159
5439
|
const formData = new FormData();
|
|
5160
|
-
|
|
5161
|
-
|
|
5440
|
+
if (param instanceof FormData) {
|
|
5441
|
+
for (const [key, val] of param.entries()) {
|
|
5442
|
+
formData.append(key, val);
|
|
5443
|
+
}
|
|
5444
|
+
} else if (param && typeof param === "object") {
|
|
5445
|
+
for (const [key, val] of Object.entries(param)) {
|
|
5446
|
+
formData.append(key, val);
|
|
5447
|
+
}
|
|
5162
5448
|
}
|
|
5163
5449
|
options.data = formData;
|
|
5164
5450
|
break;
|