@mendable/firecrawl-js 1.23.2 → 1.23.5
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 +920 -47
- package/dist/index.js +917 -44
- package/dump.rdb +0 -0
- package/package.json +1 -1
- package/src/__tests__/v1/snips/change-tracking.test.ts +0 -105
package/dist/index.js
CHANGED
|
@@ -9138,6 +9138,852 @@ var require_asynckit = __commonJS({
|
|
|
9138
9138
|
}
|
|
9139
9139
|
});
|
|
9140
9140
|
|
|
9141
|
+
// node_modules/es-object-atoms/index.js
|
|
9142
|
+
var require_es_object_atoms = __commonJS({
|
|
9143
|
+
"node_modules/es-object-atoms/index.js"(exports, module) {
|
|
9144
|
+
"use strict";
|
|
9145
|
+
module.exports = Object;
|
|
9146
|
+
}
|
|
9147
|
+
});
|
|
9148
|
+
|
|
9149
|
+
// node_modules/es-errors/index.js
|
|
9150
|
+
var require_es_errors = __commonJS({
|
|
9151
|
+
"node_modules/es-errors/index.js"(exports, module) {
|
|
9152
|
+
"use strict";
|
|
9153
|
+
module.exports = Error;
|
|
9154
|
+
}
|
|
9155
|
+
});
|
|
9156
|
+
|
|
9157
|
+
// node_modules/es-errors/eval.js
|
|
9158
|
+
var require_eval = __commonJS({
|
|
9159
|
+
"node_modules/es-errors/eval.js"(exports, module) {
|
|
9160
|
+
"use strict";
|
|
9161
|
+
module.exports = EvalError;
|
|
9162
|
+
}
|
|
9163
|
+
});
|
|
9164
|
+
|
|
9165
|
+
// node_modules/es-errors/range.js
|
|
9166
|
+
var require_range = __commonJS({
|
|
9167
|
+
"node_modules/es-errors/range.js"(exports, module) {
|
|
9168
|
+
"use strict";
|
|
9169
|
+
module.exports = RangeError;
|
|
9170
|
+
}
|
|
9171
|
+
});
|
|
9172
|
+
|
|
9173
|
+
// node_modules/es-errors/ref.js
|
|
9174
|
+
var require_ref = __commonJS({
|
|
9175
|
+
"node_modules/es-errors/ref.js"(exports, module) {
|
|
9176
|
+
"use strict";
|
|
9177
|
+
module.exports = ReferenceError;
|
|
9178
|
+
}
|
|
9179
|
+
});
|
|
9180
|
+
|
|
9181
|
+
// node_modules/es-errors/syntax.js
|
|
9182
|
+
var require_syntax = __commonJS({
|
|
9183
|
+
"node_modules/es-errors/syntax.js"(exports, module) {
|
|
9184
|
+
"use strict";
|
|
9185
|
+
module.exports = SyntaxError;
|
|
9186
|
+
}
|
|
9187
|
+
});
|
|
9188
|
+
|
|
9189
|
+
// node_modules/es-errors/type.js
|
|
9190
|
+
var require_type = __commonJS({
|
|
9191
|
+
"node_modules/es-errors/type.js"(exports, module) {
|
|
9192
|
+
"use strict";
|
|
9193
|
+
module.exports = TypeError;
|
|
9194
|
+
}
|
|
9195
|
+
});
|
|
9196
|
+
|
|
9197
|
+
// node_modules/es-errors/uri.js
|
|
9198
|
+
var require_uri = __commonJS({
|
|
9199
|
+
"node_modules/es-errors/uri.js"(exports, module) {
|
|
9200
|
+
"use strict";
|
|
9201
|
+
module.exports = URIError;
|
|
9202
|
+
}
|
|
9203
|
+
});
|
|
9204
|
+
|
|
9205
|
+
// node_modules/math-intrinsics/abs.js
|
|
9206
|
+
var require_abs = __commonJS({
|
|
9207
|
+
"node_modules/math-intrinsics/abs.js"(exports, module) {
|
|
9208
|
+
"use strict";
|
|
9209
|
+
module.exports = Math.abs;
|
|
9210
|
+
}
|
|
9211
|
+
});
|
|
9212
|
+
|
|
9213
|
+
// node_modules/math-intrinsics/floor.js
|
|
9214
|
+
var require_floor = __commonJS({
|
|
9215
|
+
"node_modules/math-intrinsics/floor.js"(exports, module) {
|
|
9216
|
+
"use strict";
|
|
9217
|
+
module.exports = Math.floor;
|
|
9218
|
+
}
|
|
9219
|
+
});
|
|
9220
|
+
|
|
9221
|
+
// node_modules/math-intrinsics/max.js
|
|
9222
|
+
var require_max = __commonJS({
|
|
9223
|
+
"node_modules/math-intrinsics/max.js"(exports, module) {
|
|
9224
|
+
"use strict";
|
|
9225
|
+
module.exports = Math.max;
|
|
9226
|
+
}
|
|
9227
|
+
});
|
|
9228
|
+
|
|
9229
|
+
// node_modules/math-intrinsics/min.js
|
|
9230
|
+
var require_min = __commonJS({
|
|
9231
|
+
"node_modules/math-intrinsics/min.js"(exports, module) {
|
|
9232
|
+
"use strict";
|
|
9233
|
+
module.exports = Math.min;
|
|
9234
|
+
}
|
|
9235
|
+
});
|
|
9236
|
+
|
|
9237
|
+
// node_modules/math-intrinsics/pow.js
|
|
9238
|
+
var require_pow = __commonJS({
|
|
9239
|
+
"node_modules/math-intrinsics/pow.js"(exports, module) {
|
|
9240
|
+
"use strict";
|
|
9241
|
+
module.exports = Math.pow;
|
|
9242
|
+
}
|
|
9243
|
+
});
|
|
9244
|
+
|
|
9245
|
+
// node_modules/math-intrinsics/round.js
|
|
9246
|
+
var require_round = __commonJS({
|
|
9247
|
+
"node_modules/math-intrinsics/round.js"(exports, module) {
|
|
9248
|
+
"use strict";
|
|
9249
|
+
module.exports = Math.round;
|
|
9250
|
+
}
|
|
9251
|
+
});
|
|
9252
|
+
|
|
9253
|
+
// node_modules/math-intrinsics/isNaN.js
|
|
9254
|
+
var require_isNaN = __commonJS({
|
|
9255
|
+
"node_modules/math-intrinsics/isNaN.js"(exports, module) {
|
|
9256
|
+
"use strict";
|
|
9257
|
+
module.exports = Number.isNaN || function isNaN2(a) {
|
|
9258
|
+
return a !== a;
|
|
9259
|
+
};
|
|
9260
|
+
}
|
|
9261
|
+
});
|
|
9262
|
+
|
|
9263
|
+
// node_modules/math-intrinsics/sign.js
|
|
9264
|
+
var require_sign = __commonJS({
|
|
9265
|
+
"node_modules/math-intrinsics/sign.js"(exports, module) {
|
|
9266
|
+
"use strict";
|
|
9267
|
+
var $isNaN = require_isNaN();
|
|
9268
|
+
module.exports = function sign(number) {
|
|
9269
|
+
if ($isNaN(number) || number === 0) {
|
|
9270
|
+
return number;
|
|
9271
|
+
}
|
|
9272
|
+
return number < 0 ? -1 : 1;
|
|
9273
|
+
};
|
|
9274
|
+
}
|
|
9275
|
+
});
|
|
9276
|
+
|
|
9277
|
+
// node_modules/gopd/gOPD.js
|
|
9278
|
+
var require_gOPD = __commonJS({
|
|
9279
|
+
"node_modules/gopd/gOPD.js"(exports, module) {
|
|
9280
|
+
"use strict";
|
|
9281
|
+
module.exports = Object.getOwnPropertyDescriptor;
|
|
9282
|
+
}
|
|
9283
|
+
});
|
|
9284
|
+
|
|
9285
|
+
// node_modules/gopd/index.js
|
|
9286
|
+
var require_gopd = __commonJS({
|
|
9287
|
+
"node_modules/gopd/index.js"(exports, module) {
|
|
9288
|
+
"use strict";
|
|
9289
|
+
var $gOPD = require_gOPD();
|
|
9290
|
+
if ($gOPD) {
|
|
9291
|
+
try {
|
|
9292
|
+
$gOPD([], "length");
|
|
9293
|
+
} catch (e2) {
|
|
9294
|
+
$gOPD = null;
|
|
9295
|
+
}
|
|
9296
|
+
}
|
|
9297
|
+
module.exports = $gOPD;
|
|
9298
|
+
}
|
|
9299
|
+
});
|
|
9300
|
+
|
|
9301
|
+
// node_modules/es-define-property/index.js
|
|
9302
|
+
var require_es_define_property = __commonJS({
|
|
9303
|
+
"node_modules/es-define-property/index.js"(exports, module) {
|
|
9304
|
+
"use strict";
|
|
9305
|
+
var $defineProperty = Object.defineProperty || false;
|
|
9306
|
+
if ($defineProperty) {
|
|
9307
|
+
try {
|
|
9308
|
+
$defineProperty({}, "a", { value: 1 });
|
|
9309
|
+
} catch (e2) {
|
|
9310
|
+
$defineProperty = false;
|
|
9311
|
+
}
|
|
9312
|
+
}
|
|
9313
|
+
module.exports = $defineProperty;
|
|
9314
|
+
}
|
|
9315
|
+
});
|
|
9316
|
+
|
|
9317
|
+
// node_modules/has-symbols/shams.js
|
|
9318
|
+
var require_shams = __commonJS({
|
|
9319
|
+
"node_modules/has-symbols/shams.js"(exports, module) {
|
|
9320
|
+
"use strict";
|
|
9321
|
+
module.exports = function hasSymbols() {
|
|
9322
|
+
if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
|
|
9323
|
+
return false;
|
|
9324
|
+
}
|
|
9325
|
+
if (typeof Symbol.iterator === "symbol") {
|
|
9326
|
+
return true;
|
|
9327
|
+
}
|
|
9328
|
+
var obj = {};
|
|
9329
|
+
var sym = Symbol("test");
|
|
9330
|
+
var symObj = Object(sym);
|
|
9331
|
+
if (typeof sym === "string") {
|
|
9332
|
+
return false;
|
|
9333
|
+
}
|
|
9334
|
+
if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
|
|
9335
|
+
return false;
|
|
9336
|
+
}
|
|
9337
|
+
if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
|
|
9338
|
+
return false;
|
|
9339
|
+
}
|
|
9340
|
+
var symVal = 42;
|
|
9341
|
+
obj[sym] = symVal;
|
|
9342
|
+
for (var _ in obj) {
|
|
9343
|
+
return false;
|
|
9344
|
+
}
|
|
9345
|
+
if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
|
|
9346
|
+
return false;
|
|
9347
|
+
}
|
|
9348
|
+
if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
|
|
9349
|
+
return false;
|
|
9350
|
+
}
|
|
9351
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
9352
|
+
if (syms.length !== 1 || syms[0] !== sym) {
|
|
9353
|
+
return false;
|
|
9354
|
+
}
|
|
9355
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
|
|
9356
|
+
return false;
|
|
9357
|
+
}
|
|
9358
|
+
if (typeof Object.getOwnPropertyDescriptor === "function") {
|
|
9359
|
+
var descriptor = (
|
|
9360
|
+
/** @type {PropertyDescriptor} */
|
|
9361
|
+
Object.getOwnPropertyDescriptor(obj, sym)
|
|
9362
|
+
);
|
|
9363
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) {
|
|
9364
|
+
return false;
|
|
9365
|
+
}
|
|
9366
|
+
}
|
|
9367
|
+
return true;
|
|
9368
|
+
};
|
|
9369
|
+
}
|
|
9370
|
+
});
|
|
9371
|
+
|
|
9372
|
+
// node_modules/has-symbols/index.js
|
|
9373
|
+
var require_has_symbols = __commonJS({
|
|
9374
|
+
"node_modules/has-symbols/index.js"(exports, module) {
|
|
9375
|
+
"use strict";
|
|
9376
|
+
var origSymbol = typeof Symbol !== "undefined" && Symbol;
|
|
9377
|
+
var hasSymbolSham = require_shams();
|
|
9378
|
+
module.exports = function hasNativeSymbols() {
|
|
9379
|
+
if (typeof origSymbol !== "function") {
|
|
9380
|
+
return false;
|
|
9381
|
+
}
|
|
9382
|
+
if (typeof Symbol !== "function") {
|
|
9383
|
+
return false;
|
|
9384
|
+
}
|
|
9385
|
+
if (typeof origSymbol("foo") !== "symbol") {
|
|
9386
|
+
return false;
|
|
9387
|
+
}
|
|
9388
|
+
if (typeof Symbol("bar") !== "symbol") {
|
|
9389
|
+
return false;
|
|
9390
|
+
}
|
|
9391
|
+
return hasSymbolSham();
|
|
9392
|
+
};
|
|
9393
|
+
}
|
|
9394
|
+
});
|
|
9395
|
+
|
|
9396
|
+
// node_modules/get-proto/Reflect.getPrototypeOf.js
|
|
9397
|
+
var require_Reflect_getPrototypeOf = __commonJS({
|
|
9398
|
+
"node_modules/get-proto/Reflect.getPrototypeOf.js"(exports, module) {
|
|
9399
|
+
"use strict";
|
|
9400
|
+
module.exports = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
|
|
9401
|
+
}
|
|
9402
|
+
});
|
|
9403
|
+
|
|
9404
|
+
// node_modules/get-proto/Object.getPrototypeOf.js
|
|
9405
|
+
var require_Object_getPrototypeOf = __commonJS({
|
|
9406
|
+
"node_modules/get-proto/Object.getPrototypeOf.js"(exports, module) {
|
|
9407
|
+
"use strict";
|
|
9408
|
+
var $Object = require_es_object_atoms();
|
|
9409
|
+
module.exports = $Object.getPrototypeOf || null;
|
|
9410
|
+
}
|
|
9411
|
+
});
|
|
9412
|
+
|
|
9413
|
+
// node_modules/function-bind/implementation.js
|
|
9414
|
+
var require_implementation = __commonJS({
|
|
9415
|
+
"node_modules/function-bind/implementation.js"(exports, module) {
|
|
9416
|
+
"use strict";
|
|
9417
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
9418
|
+
var toStr = Object.prototype.toString;
|
|
9419
|
+
var max = Math.max;
|
|
9420
|
+
var funcType = "[object Function]";
|
|
9421
|
+
var concatty = function concatty2(a, b) {
|
|
9422
|
+
var arr = [];
|
|
9423
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
9424
|
+
arr[i] = a[i];
|
|
9425
|
+
}
|
|
9426
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
9427
|
+
arr[j + a.length] = b[j];
|
|
9428
|
+
}
|
|
9429
|
+
return arr;
|
|
9430
|
+
};
|
|
9431
|
+
var slicy = function slicy2(arrLike, offset) {
|
|
9432
|
+
var arr = [];
|
|
9433
|
+
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
9434
|
+
arr[j] = arrLike[i];
|
|
9435
|
+
}
|
|
9436
|
+
return arr;
|
|
9437
|
+
};
|
|
9438
|
+
var joiny = function(arr, joiner) {
|
|
9439
|
+
var str = "";
|
|
9440
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
9441
|
+
str += arr[i];
|
|
9442
|
+
if (i + 1 < arr.length) {
|
|
9443
|
+
str += joiner;
|
|
9444
|
+
}
|
|
9445
|
+
}
|
|
9446
|
+
return str;
|
|
9447
|
+
};
|
|
9448
|
+
module.exports = function bind2(that) {
|
|
9449
|
+
var target = this;
|
|
9450
|
+
if (typeof target !== "function" || toStr.apply(target) !== funcType) {
|
|
9451
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
9452
|
+
}
|
|
9453
|
+
var args = slicy(arguments, 1);
|
|
9454
|
+
var bound;
|
|
9455
|
+
var binder = function() {
|
|
9456
|
+
if (this instanceof bound) {
|
|
9457
|
+
var result = target.apply(
|
|
9458
|
+
this,
|
|
9459
|
+
concatty(args, arguments)
|
|
9460
|
+
);
|
|
9461
|
+
if (Object(result) === result) {
|
|
9462
|
+
return result;
|
|
9463
|
+
}
|
|
9464
|
+
return this;
|
|
9465
|
+
}
|
|
9466
|
+
return target.apply(
|
|
9467
|
+
that,
|
|
9468
|
+
concatty(args, arguments)
|
|
9469
|
+
);
|
|
9470
|
+
};
|
|
9471
|
+
var boundLength = max(0, target.length - args.length);
|
|
9472
|
+
var boundArgs = [];
|
|
9473
|
+
for (var i = 0; i < boundLength; i++) {
|
|
9474
|
+
boundArgs[i] = "$" + i;
|
|
9475
|
+
}
|
|
9476
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
9477
|
+
if (target.prototype) {
|
|
9478
|
+
var Empty = function Empty2() {
|
|
9479
|
+
};
|
|
9480
|
+
Empty.prototype = target.prototype;
|
|
9481
|
+
bound.prototype = new Empty();
|
|
9482
|
+
Empty.prototype = null;
|
|
9483
|
+
}
|
|
9484
|
+
return bound;
|
|
9485
|
+
};
|
|
9486
|
+
}
|
|
9487
|
+
});
|
|
9488
|
+
|
|
9489
|
+
// node_modules/function-bind/index.js
|
|
9490
|
+
var require_function_bind = __commonJS({
|
|
9491
|
+
"node_modules/function-bind/index.js"(exports, module) {
|
|
9492
|
+
"use strict";
|
|
9493
|
+
var implementation = require_implementation();
|
|
9494
|
+
module.exports = Function.prototype.bind || implementation;
|
|
9495
|
+
}
|
|
9496
|
+
});
|
|
9497
|
+
|
|
9498
|
+
// node_modules/call-bind-apply-helpers/functionCall.js
|
|
9499
|
+
var require_functionCall = __commonJS({
|
|
9500
|
+
"node_modules/call-bind-apply-helpers/functionCall.js"(exports, module) {
|
|
9501
|
+
"use strict";
|
|
9502
|
+
module.exports = Function.prototype.call;
|
|
9503
|
+
}
|
|
9504
|
+
});
|
|
9505
|
+
|
|
9506
|
+
// node_modules/call-bind-apply-helpers/functionApply.js
|
|
9507
|
+
var require_functionApply = __commonJS({
|
|
9508
|
+
"node_modules/call-bind-apply-helpers/functionApply.js"(exports, module) {
|
|
9509
|
+
"use strict";
|
|
9510
|
+
module.exports = Function.prototype.apply;
|
|
9511
|
+
}
|
|
9512
|
+
});
|
|
9513
|
+
|
|
9514
|
+
// node_modules/call-bind-apply-helpers/reflectApply.js
|
|
9515
|
+
var require_reflectApply = __commonJS({
|
|
9516
|
+
"node_modules/call-bind-apply-helpers/reflectApply.js"(exports, module) {
|
|
9517
|
+
"use strict";
|
|
9518
|
+
module.exports = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
9519
|
+
}
|
|
9520
|
+
});
|
|
9521
|
+
|
|
9522
|
+
// node_modules/call-bind-apply-helpers/actualApply.js
|
|
9523
|
+
var require_actualApply = __commonJS({
|
|
9524
|
+
"node_modules/call-bind-apply-helpers/actualApply.js"(exports, module) {
|
|
9525
|
+
"use strict";
|
|
9526
|
+
var bind2 = require_function_bind();
|
|
9527
|
+
var $apply = require_functionApply();
|
|
9528
|
+
var $call = require_functionCall();
|
|
9529
|
+
var $reflectApply = require_reflectApply();
|
|
9530
|
+
module.exports = $reflectApply || bind2.call($call, $apply);
|
|
9531
|
+
}
|
|
9532
|
+
});
|
|
9533
|
+
|
|
9534
|
+
// node_modules/call-bind-apply-helpers/index.js
|
|
9535
|
+
var require_call_bind_apply_helpers = __commonJS({
|
|
9536
|
+
"node_modules/call-bind-apply-helpers/index.js"(exports, module) {
|
|
9537
|
+
"use strict";
|
|
9538
|
+
var bind2 = require_function_bind();
|
|
9539
|
+
var $TypeError = require_type();
|
|
9540
|
+
var $call = require_functionCall();
|
|
9541
|
+
var $actualApply = require_actualApply();
|
|
9542
|
+
module.exports = function callBindBasic(args) {
|
|
9543
|
+
if (args.length < 1 || typeof args[0] !== "function") {
|
|
9544
|
+
throw new $TypeError("a function is required");
|
|
9545
|
+
}
|
|
9546
|
+
return $actualApply(bind2, $call, args);
|
|
9547
|
+
};
|
|
9548
|
+
}
|
|
9549
|
+
});
|
|
9550
|
+
|
|
9551
|
+
// node_modules/dunder-proto/get.js
|
|
9552
|
+
var require_get = __commonJS({
|
|
9553
|
+
"node_modules/dunder-proto/get.js"(exports, module) {
|
|
9554
|
+
"use strict";
|
|
9555
|
+
var callBind = require_call_bind_apply_helpers();
|
|
9556
|
+
var gOPD = require_gopd();
|
|
9557
|
+
var hasProtoAccessor;
|
|
9558
|
+
try {
|
|
9559
|
+
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
9560
|
+
[].__proto__ === Array.prototype;
|
|
9561
|
+
} catch (e2) {
|
|
9562
|
+
if (!e2 || typeof e2 !== "object" || !("code" in e2) || e2.code !== "ERR_PROTO_ACCESS") {
|
|
9563
|
+
throw e2;
|
|
9564
|
+
}
|
|
9565
|
+
}
|
|
9566
|
+
var desc = !!hasProtoAccessor && gOPD && gOPD(
|
|
9567
|
+
Object.prototype,
|
|
9568
|
+
/** @type {keyof typeof Object.prototype} */
|
|
9569
|
+
"__proto__"
|
|
9570
|
+
);
|
|
9571
|
+
var $Object = Object;
|
|
9572
|
+
var $getPrototypeOf = $Object.getPrototypeOf;
|
|
9573
|
+
module.exports = desc && typeof desc.get === "function" ? callBind([desc.get]) : typeof $getPrototypeOf === "function" ? (
|
|
9574
|
+
/** @type {import('./get')} */
|
|
9575
|
+
function getDunder(value) {
|
|
9576
|
+
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
9577
|
+
}
|
|
9578
|
+
) : false;
|
|
9579
|
+
}
|
|
9580
|
+
});
|
|
9581
|
+
|
|
9582
|
+
// node_modules/get-proto/index.js
|
|
9583
|
+
var require_get_proto = __commonJS({
|
|
9584
|
+
"node_modules/get-proto/index.js"(exports, module) {
|
|
9585
|
+
"use strict";
|
|
9586
|
+
var reflectGetProto = require_Reflect_getPrototypeOf();
|
|
9587
|
+
var originalGetProto = require_Object_getPrototypeOf();
|
|
9588
|
+
var getDunderProto = require_get();
|
|
9589
|
+
module.exports = reflectGetProto ? function getProto(O) {
|
|
9590
|
+
return reflectGetProto(O);
|
|
9591
|
+
} : originalGetProto ? function getProto(O) {
|
|
9592
|
+
if (!O || typeof O !== "object" && typeof O !== "function") {
|
|
9593
|
+
throw new TypeError("getProto: not an object");
|
|
9594
|
+
}
|
|
9595
|
+
return originalGetProto(O);
|
|
9596
|
+
} : getDunderProto ? function getProto(O) {
|
|
9597
|
+
return getDunderProto(O);
|
|
9598
|
+
} : null;
|
|
9599
|
+
}
|
|
9600
|
+
});
|
|
9601
|
+
|
|
9602
|
+
// node_modules/hasown/index.js
|
|
9603
|
+
var require_hasown = __commonJS({
|
|
9604
|
+
"node_modules/hasown/index.js"(exports, module) {
|
|
9605
|
+
"use strict";
|
|
9606
|
+
var call = Function.prototype.call;
|
|
9607
|
+
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
9608
|
+
var bind2 = require_function_bind();
|
|
9609
|
+
module.exports = bind2.call(call, $hasOwn);
|
|
9610
|
+
}
|
|
9611
|
+
});
|
|
9612
|
+
|
|
9613
|
+
// node_modules/get-intrinsic/index.js
|
|
9614
|
+
var require_get_intrinsic = __commonJS({
|
|
9615
|
+
"node_modules/get-intrinsic/index.js"(exports, module) {
|
|
9616
|
+
"use strict";
|
|
9617
|
+
var undefined2;
|
|
9618
|
+
var $Object = require_es_object_atoms();
|
|
9619
|
+
var $Error = require_es_errors();
|
|
9620
|
+
var $EvalError = require_eval();
|
|
9621
|
+
var $RangeError = require_range();
|
|
9622
|
+
var $ReferenceError = require_ref();
|
|
9623
|
+
var $SyntaxError = require_syntax();
|
|
9624
|
+
var $TypeError = require_type();
|
|
9625
|
+
var $URIError = require_uri();
|
|
9626
|
+
var abs = require_abs();
|
|
9627
|
+
var floor = require_floor();
|
|
9628
|
+
var max = require_max();
|
|
9629
|
+
var min = require_min();
|
|
9630
|
+
var pow = require_pow();
|
|
9631
|
+
var round = require_round();
|
|
9632
|
+
var sign = require_sign();
|
|
9633
|
+
var $Function = Function;
|
|
9634
|
+
var getEvalledConstructor = function(expressionSyntax) {
|
|
9635
|
+
try {
|
|
9636
|
+
return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
|
|
9637
|
+
} catch (e2) {
|
|
9638
|
+
}
|
|
9639
|
+
};
|
|
9640
|
+
var $gOPD = require_gopd();
|
|
9641
|
+
var $defineProperty = require_es_define_property();
|
|
9642
|
+
var throwTypeError = function() {
|
|
9643
|
+
throw new $TypeError();
|
|
9644
|
+
};
|
|
9645
|
+
var ThrowTypeError = $gOPD ? function() {
|
|
9646
|
+
try {
|
|
9647
|
+
arguments.callee;
|
|
9648
|
+
return throwTypeError;
|
|
9649
|
+
} catch (calleeThrows) {
|
|
9650
|
+
try {
|
|
9651
|
+
return $gOPD(arguments, "callee").get;
|
|
9652
|
+
} catch (gOPDthrows) {
|
|
9653
|
+
return throwTypeError;
|
|
9654
|
+
}
|
|
9655
|
+
}
|
|
9656
|
+
}() : throwTypeError;
|
|
9657
|
+
var hasSymbols = require_has_symbols()();
|
|
9658
|
+
var getProto = require_get_proto();
|
|
9659
|
+
var $ObjectGPO = require_Object_getPrototypeOf();
|
|
9660
|
+
var $ReflectGPO = require_Reflect_getPrototypeOf();
|
|
9661
|
+
var $apply = require_functionApply();
|
|
9662
|
+
var $call = require_functionCall();
|
|
9663
|
+
var needsEval = {};
|
|
9664
|
+
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined2 : getProto(Uint8Array);
|
|
9665
|
+
var INTRINSICS = {
|
|
9666
|
+
__proto__: null,
|
|
9667
|
+
"%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError,
|
|
9668
|
+
"%Array%": Array,
|
|
9669
|
+
"%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer,
|
|
9670
|
+
"%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined2,
|
|
9671
|
+
"%AsyncFromSyncIteratorPrototype%": undefined2,
|
|
9672
|
+
"%AsyncFunction%": needsEval,
|
|
9673
|
+
"%AsyncGenerator%": needsEval,
|
|
9674
|
+
"%AsyncGeneratorFunction%": needsEval,
|
|
9675
|
+
"%AsyncIteratorPrototype%": needsEval,
|
|
9676
|
+
"%Atomics%": typeof Atomics === "undefined" ? undefined2 : Atomics,
|
|
9677
|
+
"%BigInt%": typeof BigInt === "undefined" ? undefined2 : BigInt,
|
|
9678
|
+
"%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined2 : BigInt64Array,
|
|
9679
|
+
"%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined2 : BigUint64Array,
|
|
9680
|
+
"%Boolean%": Boolean,
|
|
9681
|
+
"%DataView%": typeof DataView === "undefined" ? undefined2 : DataView,
|
|
9682
|
+
"%Date%": Date,
|
|
9683
|
+
"%decodeURI%": decodeURI,
|
|
9684
|
+
"%decodeURIComponent%": decodeURIComponent,
|
|
9685
|
+
"%encodeURI%": encodeURI,
|
|
9686
|
+
"%encodeURIComponent%": encodeURIComponent,
|
|
9687
|
+
"%Error%": $Error,
|
|
9688
|
+
"%eval%": eval,
|
|
9689
|
+
// eslint-disable-line no-eval
|
|
9690
|
+
"%EvalError%": $EvalError,
|
|
9691
|
+
"%Float16Array%": typeof Float16Array === "undefined" ? undefined2 : Float16Array,
|
|
9692
|
+
"%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array,
|
|
9693
|
+
"%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array,
|
|
9694
|
+
"%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry,
|
|
9695
|
+
"%Function%": $Function,
|
|
9696
|
+
"%GeneratorFunction%": needsEval,
|
|
9697
|
+
"%Int8Array%": typeof Int8Array === "undefined" ? undefined2 : Int8Array,
|
|
9698
|
+
"%Int16Array%": typeof Int16Array === "undefined" ? undefined2 : Int16Array,
|
|
9699
|
+
"%Int32Array%": typeof Int32Array === "undefined" ? undefined2 : Int32Array,
|
|
9700
|
+
"%isFinite%": isFinite,
|
|
9701
|
+
"%isNaN%": isNaN,
|
|
9702
|
+
"%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined2,
|
|
9703
|
+
"%JSON%": typeof JSON === "object" ? JSON : undefined2,
|
|
9704
|
+
"%Map%": typeof Map === "undefined" ? undefined2 : Map,
|
|
9705
|
+
"%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
9706
|
+
"%Math%": Math,
|
|
9707
|
+
"%Number%": Number,
|
|
9708
|
+
"%Object%": $Object,
|
|
9709
|
+
"%Object.getOwnPropertyDescriptor%": $gOPD,
|
|
9710
|
+
"%parseFloat%": parseFloat,
|
|
9711
|
+
"%parseInt%": parseInt,
|
|
9712
|
+
"%Promise%": typeof Promise === "undefined" ? undefined2 : Promise,
|
|
9713
|
+
"%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy,
|
|
9714
|
+
"%RangeError%": $RangeError,
|
|
9715
|
+
"%ReferenceError%": $ReferenceError,
|
|
9716
|
+
"%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
|
|
9717
|
+
"%RegExp%": RegExp,
|
|
9718
|
+
"%Set%": typeof Set === "undefined" ? undefined2 : Set,
|
|
9719
|
+
"%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
9720
|
+
"%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined2 : SharedArrayBuffer,
|
|
9721
|
+
"%String%": String,
|
|
9722
|
+
"%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined2,
|
|
9723
|
+
"%Symbol%": hasSymbols ? Symbol : undefined2,
|
|
9724
|
+
"%SyntaxError%": $SyntaxError,
|
|
9725
|
+
"%ThrowTypeError%": ThrowTypeError,
|
|
9726
|
+
"%TypedArray%": TypedArray,
|
|
9727
|
+
"%TypeError%": $TypeError,
|
|
9728
|
+
"%Uint8Array%": typeof Uint8Array === "undefined" ? undefined2 : Uint8Array,
|
|
9729
|
+
"%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined2 : Uint8ClampedArray,
|
|
9730
|
+
"%Uint16Array%": typeof Uint16Array === "undefined" ? undefined2 : Uint16Array,
|
|
9731
|
+
"%Uint32Array%": typeof Uint32Array === "undefined" ? undefined2 : Uint32Array,
|
|
9732
|
+
"%URIError%": $URIError,
|
|
9733
|
+
"%WeakMap%": typeof WeakMap === "undefined" ? undefined2 : WeakMap,
|
|
9734
|
+
"%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef,
|
|
9735
|
+
"%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet,
|
|
9736
|
+
"%Function.prototype.call%": $call,
|
|
9737
|
+
"%Function.prototype.apply%": $apply,
|
|
9738
|
+
"%Object.defineProperty%": $defineProperty,
|
|
9739
|
+
"%Object.getPrototypeOf%": $ObjectGPO,
|
|
9740
|
+
"%Math.abs%": abs,
|
|
9741
|
+
"%Math.floor%": floor,
|
|
9742
|
+
"%Math.max%": max,
|
|
9743
|
+
"%Math.min%": min,
|
|
9744
|
+
"%Math.pow%": pow,
|
|
9745
|
+
"%Math.round%": round,
|
|
9746
|
+
"%Math.sign%": sign,
|
|
9747
|
+
"%Reflect.getPrototypeOf%": $ReflectGPO
|
|
9748
|
+
};
|
|
9749
|
+
if (getProto) {
|
|
9750
|
+
try {
|
|
9751
|
+
null.error;
|
|
9752
|
+
} catch (e2) {
|
|
9753
|
+
errorProto = getProto(getProto(e2));
|
|
9754
|
+
INTRINSICS["%Error.prototype%"] = errorProto;
|
|
9755
|
+
}
|
|
9756
|
+
}
|
|
9757
|
+
var errorProto;
|
|
9758
|
+
var doEval = function doEval2(name) {
|
|
9759
|
+
var value;
|
|
9760
|
+
if (name === "%AsyncFunction%") {
|
|
9761
|
+
value = getEvalledConstructor("async function () {}");
|
|
9762
|
+
} else if (name === "%GeneratorFunction%") {
|
|
9763
|
+
value = getEvalledConstructor("function* () {}");
|
|
9764
|
+
} else if (name === "%AsyncGeneratorFunction%") {
|
|
9765
|
+
value = getEvalledConstructor("async function* () {}");
|
|
9766
|
+
} else if (name === "%AsyncGenerator%") {
|
|
9767
|
+
var fn = doEval2("%AsyncGeneratorFunction%");
|
|
9768
|
+
if (fn) {
|
|
9769
|
+
value = fn.prototype;
|
|
9770
|
+
}
|
|
9771
|
+
} else if (name === "%AsyncIteratorPrototype%") {
|
|
9772
|
+
var gen = doEval2("%AsyncGenerator%");
|
|
9773
|
+
if (gen && getProto) {
|
|
9774
|
+
value = getProto(gen.prototype);
|
|
9775
|
+
}
|
|
9776
|
+
}
|
|
9777
|
+
INTRINSICS[name] = value;
|
|
9778
|
+
return value;
|
|
9779
|
+
};
|
|
9780
|
+
var LEGACY_ALIASES = {
|
|
9781
|
+
__proto__: null,
|
|
9782
|
+
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
9783
|
+
"%ArrayPrototype%": ["Array", "prototype"],
|
|
9784
|
+
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
9785
|
+
"%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
|
|
9786
|
+
"%ArrayProto_keys%": ["Array", "prototype", "keys"],
|
|
9787
|
+
"%ArrayProto_values%": ["Array", "prototype", "values"],
|
|
9788
|
+
"%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
|
|
9789
|
+
"%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
|
|
9790
|
+
"%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
|
|
9791
|
+
"%BooleanPrototype%": ["Boolean", "prototype"],
|
|
9792
|
+
"%DataViewPrototype%": ["DataView", "prototype"],
|
|
9793
|
+
"%DatePrototype%": ["Date", "prototype"],
|
|
9794
|
+
"%ErrorPrototype%": ["Error", "prototype"],
|
|
9795
|
+
"%EvalErrorPrototype%": ["EvalError", "prototype"],
|
|
9796
|
+
"%Float32ArrayPrototype%": ["Float32Array", "prototype"],
|
|
9797
|
+
"%Float64ArrayPrototype%": ["Float64Array", "prototype"],
|
|
9798
|
+
"%FunctionPrototype%": ["Function", "prototype"],
|
|
9799
|
+
"%Generator%": ["GeneratorFunction", "prototype"],
|
|
9800
|
+
"%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
|
|
9801
|
+
"%Int8ArrayPrototype%": ["Int8Array", "prototype"],
|
|
9802
|
+
"%Int16ArrayPrototype%": ["Int16Array", "prototype"],
|
|
9803
|
+
"%Int32ArrayPrototype%": ["Int32Array", "prototype"],
|
|
9804
|
+
"%JSONParse%": ["JSON", "parse"],
|
|
9805
|
+
"%JSONStringify%": ["JSON", "stringify"],
|
|
9806
|
+
"%MapPrototype%": ["Map", "prototype"],
|
|
9807
|
+
"%NumberPrototype%": ["Number", "prototype"],
|
|
9808
|
+
"%ObjectPrototype%": ["Object", "prototype"],
|
|
9809
|
+
"%ObjProto_toString%": ["Object", "prototype", "toString"],
|
|
9810
|
+
"%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
|
|
9811
|
+
"%PromisePrototype%": ["Promise", "prototype"],
|
|
9812
|
+
"%PromiseProto_then%": ["Promise", "prototype", "then"],
|
|
9813
|
+
"%Promise_all%": ["Promise", "all"],
|
|
9814
|
+
"%Promise_reject%": ["Promise", "reject"],
|
|
9815
|
+
"%Promise_resolve%": ["Promise", "resolve"],
|
|
9816
|
+
"%RangeErrorPrototype%": ["RangeError", "prototype"],
|
|
9817
|
+
"%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
|
|
9818
|
+
"%RegExpPrototype%": ["RegExp", "prototype"],
|
|
9819
|
+
"%SetPrototype%": ["Set", "prototype"],
|
|
9820
|
+
"%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
|
|
9821
|
+
"%StringPrototype%": ["String", "prototype"],
|
|
9822
|
+
"%SymbolPrototype%": ["Symbol", "prototype"],
|
|
9823
|
+
"%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
|
|
9824
|
+
"%TypedArrayPrototype%": ["TypedArray", "prototype"],
|
|
9825
|
+
"%TypeErrorPrototype%": ["TypeError", "prototype"],
|
|
9826
|
+
"%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
|
|
9827
|
+
"%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
|
|
9828
|
+
"%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
|
|
9829
|
+
"%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
|
|
9830
|
+
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
9831
|
+
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
9832
|
+
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
9833
|
+
};
|
|
9834
|
+
var bind2 = require_function_bind();
|
|
9835
|
+
var hasOwn = require_hasown();
|
|
9836
|
+
var $concat = bind2.call($call, Array.prototype.concat);
|
|
9837
|
+
var $spliceApply = bind2.call($apply, Array.prototype.splice);
|
|
9838
|
+
var $replace = bind2.call($call, String.prototype.replace);
|
|
9839
|
+
var $strSlice = bind2.call($call, String.prototype.slice);
|
|
9840
|
+
var $exec = bind2.call($call, RegExp.prototype.exec);
|
|
9841
|
+
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
9842
|
+
var reEscapeChar = /\\(\\)?/g;
|
|
9843
|
+
var stringToPath = function stringToPath2(string) {
|
|
9844
|
+
var first = $strSlice(string, 0, 1);
|
|
9845
|
+
var last = $strSlice(string, -1);
|
|
9846
|
+
if (first === "%" && last !== "%") {
|
|
9847
|
+
throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
|
|
9848
|
+
} else if (last === "%" && first !== "%") {
|
|
9849
|
+
throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
|
|
9850
|
+
}
|
|
9851
|
+
var result = [];
|
|
9852
|
+
$replace(string, rePropName, function(match, number, quote, subString) {
|
|
9853
|
+
result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number || match;
|
|
9854
|
+
});
|
|
9855
|
+
return result;
|
|
9856
|
+
};
|
|
9857
|
+
var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
|
|
9858
|
+
var intrinsicName = name;
|
|
9859
|
+
var alias;
|
|
9860
|
+
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
9861
|
+
alias = LEGACY_ALIASES[intrinsicName];
|
|
9862
|
+
intrinsicName = "%" + alias[0] + "%";
|
|
9863
|
+
}
|
|
9864
|
+
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
9865
|
+
var value = INTRINSICS[intrinsicName];
|
|
9866
|
+
if (value === needsEval) {
|
|
9867
|
+
value = doEval(intrinsicName);
|
|
9868
|
+
}
|
|
9869
|
+
if (typeof value === "undefined" && !allowMissing) {
|
|
9870
|
+
throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!");
|
|
9871
|
+
}
|
|
9872
|
+
return {
|
|
9873
|
+
alias,
|
|
9874
|
+
name: intrinsicName,
|
|
9875
|
+
value
|
|
9876
|
+
};
|
|
9877
|
+
}
|
|
9878
|
+
throw new $SyntaxError("intrinsic " + name + " does not exist!");
|
|
9879
|
+
};
|
|
9880
|
+
module.exports = function GetIntrinsic(name, allowMissing) {
|
|
9881
|
+
if (typeof name !== "string" || name.length === 0) {
|
|
9882
|
+
throw new $TypeError("intrinsic name must be a non-empty string");
|
|
9883
|
+
}
|
|
9884
|
+
if (arguments.length > 1 && typeof allowMissing !== "boolean") {
|
|
9885
|
+
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
9886
|
+
}
|
|
9887
|
+
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
|
9888
|
+
throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
9889
|
+
}
|
|
9890
|
+
var parts = stringToPath(name);
|
|
9891
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
|
|
9892
|
+
var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
|
|
9893
|
+
var intrinsicRealName = intrinsic.name;
|
|
9894
|
+
var value = intrinsic.value;
|
|
9895
|
+
var skipFurtherCaching = false;
|
|
9896
|
+
var alias = intrinsic.alias;
|
|
9897
|
+
if (alias) {
|
|
9898
|
+
intrinsicBaseName = alias[0];
|
|
9899
|
+
$spliceApply(parts, $concat([0, 1], alias));
|
|
9900
|
+
}
|
|
9901
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
9902
|
+
var part = parts[i];
|
|
9903
|
+
var first = $strSlice(part, 0, 1);
|
|
9904
|
+
var last = $strSlice(part, -1);
|
|
9905
|
+
if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
|
|
9906
|
+
throw new $SyntaxError("property names with quotes must have matching quotes");
|
|
9907
|
+
}
|
|
9908
|
+
if (part === "constructor" || !isOwn) {
|
|
9909
|
+
skipFurtherCaching = true;
|
|
9910
|
+
}
|
|
9911
|
+
intrinsicBaseName += "." + part;
|
|
9912
|
+
intrinsicRealName = "%" + intrinsicBaseName + "%";
|
|
9913
|
+
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
9914
|
+
value = INTRINSICS[intrinsicRealName];
|
|
9915
|
+
} else if (value != null) {
|
|
9916
|
+
if (!(part in value)) {
|
|
9917
|
+
if (!allowMissing) {
|
|
9918
|
+
throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
|
|
9919
|
+
}
|
|
9920
|
+
return void undefined2;
|
|
9921
|
+
}
|
|
9922
|
+
if ($gOPD && i + 1 >= parts.length) {
|
|
9923
|
+
var desc = $gOPD(value, part);
|
|
9924
|
+
isOwn = !!desc;
|
|
9925
|
+
if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
|
|
9926
|
+
value = desc.get;
|
|
9927
|
+
} else {
|
|
9928
|
+
value = value[part];
|
|
9929
|
+
}
|
|
9930
|
+
} else {
|
|
9931
|
+
isOwn = hasOwn(value, part);
|
|
9932
|
+
value = value[part];
|
|
9933
|
+
}
|
|
9934
|
+
if (isOwn && !skipFurtherCaching) {
|
|
9935
|
+
INTRINSICS[intrinsicRealName] = value;
|
|
9936
|
+
}
|
|
9937
|
+
}
|
|
9938
|
+
}
|
|
9939
|
+
return value;
|
|
9940
|
+
};
|
|
9941
|
+
}
|
|
9942
|
+
});
|
|
9943
|
+
|
|
9944
|
+
// node_modules/has-tostringtag/shams.js
|
|
9945
|
+
var require_shams2 = __commonJS({
|
|
9946
|
+
"node_modules/has-tostringtag/shams.js"(exports, module) {
|
|
9947
|
+
"use strict";
|
|
9948
|
+
var hasSymbols = require_shams();
|
|
9949
|
+
module.exports = function hasToStringTagShams() {
|
|
9950
|
+
return hasSymbols() && !!Symbol.toStringTag;
|
|
9951
|
+
};
|
|
9952
|
+
}
|
|
9953
|
+
});
|
|
9954
|
+
|
|
9955
|
+
// node_modules/es-set-tostringtag/index.js
|
|
9956
|
+
var require_es_set_tostringtag = __commonJS({
|
|
9957
|
+
"node_modules/es-set-tostringtag/index.js"(exports, module) {
|
|
9958
|
+
"use strict";
|
|
9959
|
+
var GetIntrinsic = require_get_intrinsic();
|
|
9960
|
+
var $defineProperty = GetIntrinsic("%Object.defineProperty%", true);
|
|
9961
|
+
var hasToStringTag = require_shams2()();
|
|
9962
|
+
var hasOwn = require_hasown();
|
|
9963
|
+
var $TypeError = require_type();
|
|
9964
|
+
var toStringTag = hasToStringTag ? Symbol.toStringTag : null;
|
|
9965
|
+
module.exports = function setToStringTag(object, value) {
|
|
9966
|
+
var overrideIfSet = arguments.length > 2 && !!arguments[2] && arguments[2].force;
|
|
9967
|
+
var nonConfigurable = arguments.length > 2 && !!arguments[2] && arguments[2].nonConfigurable;
|
|
9968
|
+
if (typeof overrideIfSet !== "undefined" && typeof overrideIfSet !== "boolean" || typeof nonConfigurable !== "undefined" && typeof nonConfigurable !== "boolean") {
|
|
9969
|
+
throw new $TypeError("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");
|
|
9970
|
+
}
|
|
9971
|
+
if (toStringTag && (overrideIfSet || !hasOwn(object, toStringTag))) {
|
|
9972
|
+
if ($defineProperty) {
|
|
9973
|
+
$defineProperty(object, toStringTag, {
|
|
9974
|
+
configurable: !nonConfigurable,
|
|
9975
|
+
enumerable: false,
|
|
9976
|
+
value,
|
|
9977
|
+
writable: false
|
|
9978
|
+
});
|
|
9979
|
+
} else {
|
|
9980
|
+
object[toStringTag] = value;
|
|
9981
|
+
}
|
|
9982
|
+
}
|
|
9983
|
+
};
|
|
9984
|
+
}
|
|
9985
|
+
});
|
|
9986
|
+
|
|
9141
9987
|
// node_modules/form-data/lib/populate.js
|
|
9142
9988
|
var require_populate = __commonJS({
|
|
9143
9989
|
"node_modules/form-data/lib/populate.js"(exports, module) {
|
|
@@ -9165,6 +10011,7 @@ var require_form_data = __commonJS({
|
|
|
9165
10011
|
var Stream = __require("stream").Stream;
|
|
9166
10012
|
var mime = require_mime_types();
|
|
9167
10013
|
var asynckit = require_asynckit();
|
|
10014
|
+
var setToStringTag = require_es_set_tostringtag();
|
|
9168
10015
|
var populate = require_populate();
|
|
9169
10016
|
module.exports = FormData3;
|
|
9170
10017
|
util3.inherits(FormData3, CombinedStream);
|
|
@@ -9192,7 +10039,7 @@ var require_form_data = __commonJS({
|
|
|
9192
10039
|
if (typeof value == "number") {
|
|
9193
10040
|
value = "" + value;
|
|
9194
10041
|
}
|
|
9195
|
-
if (
|
|
10042
|
+
if (Array.isArray(value)) {
|
|
9196
10043
|
this._error(new Error("Arrays are not supported."));
|
|
9197
10044
|
return;
|
|
9198
10045
|
}
|
|
@@ -9214,7 +10061,7 @@ var require_form_data = __commonJS({
|
|
|
9214
10061
|
}
|
|
9215
10062
|
this._valueLength += valueLength;
|
|
9216
10063
|
this._overheadLength += Buffer.byteLength(header) + FormData3.LINE_BREAK.length;
|
|
9217
|
-
if (!value || !value.path && !(value.readable &&
|
|
10064
|
+
if (!value || !value.path && !(value.readable && Object.prototype.hasOwnProperty.call(value, "httpVersion")) && !(value instanceof Stream)) {
|
|
9218
10065
|
return;
|
|
9219
10066
|
}
|
|
9220
10067
|
if (!options.knownLength) {
|
|
@@ -9222,7 +10069,7 @@ var require_form_data = __commonJS({
|
|
|
9222
10069
|
}
|
|
9223
10070
|
};
|
|
9224
10071
|
FormData3.prototype._lengthRetriever = function(value, callback) {
|
|
9225
|
-
if (
|
|
10072
|
+
if (Object.prototype.hasOwnProperty.call(value, "fd")) {
|
|
9226
10073
|
if (value.end != void 0 && value.end != Infinity && value.start != void 0) {
|
|
9227
10074
|
callback(null, value.end + 1 - (value.start ? value.start : 0));
|
|
9228
10075
|
} else {
|
|
@@ -9236,9 +10083,9 @@ var require_form_data = __commonJS({
|
|
|
9236
10083
|
callback(null, fileSize);
|
|
9237
10084
|
});
|
|
9238
10085
|
}
|
|
9239
|
-
} else if (
|
|
10086
|
+
} else if (Object.prototype.hasOwnProperty.call(value, "httpVersion")) {
|
|
9240
10087
|
callback(null, +value.headers["content-length"]);
|
|
9241
|
-
} else if (
|
|
10088
|
+
} else if (Object.prototype.hasOwnProperty.call(value, "httpModule")) {
|
|
9242
10089
|
value.on("response", function(response) {
|
|
9243
10090
|
value.pause();
|
|
9244
10091
|
callback(null, +response.headers["content-length"]);
|
|
@@ -9266,16 +10113,17 @@ var require_form_data = __commonJS({
|
|
|
9266
10113
|
}
|
|
9267
10114
|
var header;
|
|
9268
10115
|
for (var prop in headers) {
|
|
9269
|
-
if (
|
|
9270
|
-
|
|
9271
|
-
|
|
9272
|
-
|
|
9273
|
-
|
|
9274
|
-
|
|
9275
|
-
|
|
9276
|
-
|
|
9277
|
-
|
|
9278
|
-
|
|
10116
|
+
if (Object.prototype.hasOwnProperty.call(headers, prop)) {
|
|
10117
|
+
header = headers[prop];
|
|
10118
|
+
if (header == null) {
|
|
10119
|
+
continue;
|
|
10120
|
+
}
|
|
10121
|
+
if (!Array.isArray(header)) {
|
|
10122
|
+
header = [header];
|
|
10123
|
+
}
|
|
10124
|
+
if (header.length) {
|
|
10125
|
+
contents += prop + ": " + header.join("; ") + FormData3.LINE_BREAK;
|
|
10126
|
+
}
|
|
9279
10127
|
}
|
|
9280
10128
|
}
|
|
9281
10129
|
return "--" + this.getBoundary() + FormData3.LINE_BREAK + contents + FormData3.LINE_BREAK;
|
|
@@ -9286,7 +10134,7 @@ var require_form_data = __commonJS({
|
|
|
9286
10134
|
filename = path.normalize(options.filepath).replace(/\\/g, "/");
|
|
9287
10135
|
} else if (options.filename || value.name || value.path) {
|
|
9288
10136
|
filename = path.basename(options.filename || value.name || value.path);
|
|
9289
|
-
} else if (value.readable &&
|
|
10137
|
+
} else if (value.readable && Object.prototype.hasOwnProperty.call(value, "httpVersion")) {
|
|
9290
10138
|
filename = path.basename(value.client._httpMessage.path || "");
|
|
9291
10139
|
}
|
|
9292
10140
|
if (filename) {
|
|
@@ -9302,7 +10150,7 @@ var require_form_data = __commonJS({
|
|
|
9302
10150
|
if (!contentType && value.path) {
|
|
9303
10151
|
contentType = mime.lookup(value.path);
|
|
9304
10152
|
}
|
|
9305
|
-
if (!contentType && value.readable &&
|
|
10153
|
+
if (!contentType && value.readable && Object.prototype.hasOwnProperty.call(value, "httpVersion")) {
|
|
9306
10154
|
contentType = value.headers["content-type"];
|
|
9307
10155
|
}
|
|
9308
10156
|
if (!contentType && (options.filepath || options.filename)) {
|
|
@@ -9332,7 +10180,7 @@ var require_form_data = __commonJS({
|
|
|
9332
10180
|
"content-type": "multipart/form-data; boundary=" + this.getBoundary()
|
|
9333
10181
|
};
|
|
9334
10182
|
for (header in userHeaders) {
|
|
9335
|
-
if (
|
|
10183
|
+
if (Object.prototype.hasOwnProperty.call(userHeaders, header)) {
|
|
9336
10184
|
formHeaders[header.toLowerCase()] = userHeaders[header];
|
|
9337
10185
|
}
|
|
9338
10186
|
}
|
|
@@ -9463,6 +10311,7 @@ var require_form_data = __commonJS({
|
|
|
9463
10311
|
FormData3.prototype.toString = function() {
|
|
9464
10312
|
return "[object FormData]";
|
|
9465
10313
|
};
|
|
10314
|
+
setToStringTag(FormData3, "FormData");
|
|
9466
10315
|
}
|
|
9467
10316
|
});
|
|
9468
10317
|
|
|
@@ -9757,50 +10606,64 @@ var require_common = __commonJS({
|
|
|
9757
10606
|
createDebug.namespaces = namespaces;
|
|
9758
10607
|
createDebug.names = [];
|
|
9759
10608
|
createDebug.skips = [];
|
|
9760
|
-
|
|
9761
|
-
|
|
9762
|
-
|
|
9763
|
-
|
|
9764
|
-
|
|
9765
|
-
|
|
10609
|
+
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(" ", ",").split(",").filter(Boolean);
|
|
10610
|
+
for (const ns of split) {
|
|
10611
|
+
if (ns[0] === "-") {
|
|
10612
|
+
createDebug.skips.push(ns.slice(1));
|
|
10613
|
+
} else {
|
|
10614
|
+
createDebug.names.push(ns);
|
|
9766
10615
|
}
|
|
9767
|
-
|
|
9768
|
-
|
|
9769
|
-
|
|
10616
|
+
}
|
|
10617
|
+
}
|
|
10618
|
+
function matchesTemplate(search, template) {
|
|
10619
|
+
let searchIndex = 0;
|
|
10620
|
+
let templateIndex = 0;
|
|
10621
|
+
let starIndex = -1;
|
|
10622
|
+
let matchIndex = 0;
|
|
10623
|
+
while (searchIndex < search.length) {
|
|
10624
|
+
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
|
|
10625
|
+
if (template[templateIndex] === "*") {
|
|
10626
|
+
starIndex = templateIndex;
|
|
10627
|
+
matchIndex = searchIndex;
|
|
10628
|
+
templateIndex++;
|
|
10629
|
+
} else {
|
|
10630
|
+
searchIndex++;
|
|
10631
|
+
templateIndex++;
|
|
10632
|
+
}
|
|
10633
|
+
} else if (starIndex !== -1) {
|
|
10634
|
+
templateIndex = starIndex + 1;
|
|
10635
|
+
matchIndex++;
|
|
10636
|
+
searchIndex = matchIndex;
|
|
9770
10637
|
} else {
|
|
9771
|
-
|
|
10638
|
+
return false;
|
|
9772
10639
|
}
|
|
9773
10640
|
}
|
|
10641
|
+
while (templateIndex < template.length && template[templateIndex] === "*") {
|
|
10642
|
+
templateIndex++;
|
|
10643
|
+
}
|
|
10644
|
+
return templateIndex === template.length;
|
|
9774
10645
|
}
|
|
9775
10646
|
function disable() {
|
|
9776
10647
|
const namespaces = [
|
|
9777
|
-
...createDebug.names
|
|
9778
|
-
...createDebug.skips.map(
|
|
10648
|
+
...createDebug.names,
|
|
10649
|
+
...createDebug.skips.map((namespace) => "-" + namespace)
|
|
9779
10650
|
].join(",");
|
|
9780
10651
|
createDebug.enable("");
|
|
9781
10652
|
return namespaces;
|
|
9782
10653
|
}
|
|
9783
10654
|
function enabled(name) {
|
|
9784
|
-
|
|
9785
|
-
|
|
9786
|
-
}
|
|
9787
|
-
let i;
|
|
9788
|
-
let len;
|
|
9789
|
-
for (i = 0, len = createDebug.skips.length; i < len; i++) {
|
|
9790
|
-
if (createDebug.skips[i].test(name)) {
|
|
10655
|
+
for (const skip of createDebug.skips) {
|
|
10656
|
+
if (matchesTemplate(name, skip)) {
|
|
9791
10657
|
return false;
|
|
9792
10658
|
}
|
|
9793
10659
|
}
|
|
9794
|
-
for (
|
|
9795
|
-
if (
|
|
10660
|
+
for (const ns of createDebug.names) {
|
|
10661
|
+
if (matchesTemplate(name, ns)) {
|
|
9796
10662
|
return true;
|
|
9797
10663
|
}
|
|
9798
10664
|
}
|
|
9799
10665
|
return false;
|
|
9800
10666
|
}
|
|
9801
|
-
function toNamespace(regexp) {
|
|
9802
|
-
return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
|
|
9803
|
-
}
|
|
9804
10667
|
function coerce(val) {
|
|
9805
10668
|
if (val instanceof Error) {
|
|
9806
10669
|
return val.stack || val.message;
|
|
@@ -10322,9 +11185,17 @@ var require_follow_redirects = __commonJS({
|
|
|
10322
11185
|
var Writable = __require("stream").Writable;
|
|
10323
11186
|
var assert = __require("assert");
|
|
10324
11187
|
var debug = require_debug();
|
|
11188
|
+
(function detectUnsupportedEnvironment() {
|
|
11189
|
+
var looksLikeNode = typeof process !== "undefined";
|
|
11190
|
+
var looksLikeBrowser = typeof window !== "undefined" && typeof document !== "undefined";
|
|
11191
|
+
var looksLikeV8 = isFunction2(Error.captureStackTrace);
|
|
11192
|
+
if (!looksLikeNode && (looksLikeBrowser || !looksLikeV8)) {
|
|
11193
|
+
console.warn("The follow-redirects package should be excluded from browser builds.");
|
|
11194
|
+
}
|
|
11195
|
+
})();
|
|
10325
11196
|
var useNativeURL = false;
|
|
10326
11197
|
try {
|
|
10327
|
-
assert(new URL2());
|
|
11198
|
+
assert(new URL2(""));
|
|
10328
11199
|
} catch (error) {
|
|
10329
11200
|
useNativeURL = error.code === "ERR_INVALID_URL";
|
|
10330
11201
|
}
|
|
@@ -10751,7 +11622,9 @@ var require_follow_redirects = __commonJS({
|
|
|
10751
11622
|
}
|
|
10752
11623
|
function createErrorType(code, message, baseClass) {
|
|
10753
11624
|
function CustomError(properties) {
|
|
10754
|
-
Error.captureStackTrace
|
|
11625
|
+
if (isFunction2(Error.captureStackTrace)) {
|
|
11626
|
+
Error.captureStackTrace(this, this.constructor);
|
|
11627
|
+
}
|
|
10755
11628
|
Object.assign(this, properties || {});
|
|
10756
11629
|
this.code = code;
|
|
10757
11630
|
this.message = this.cause ? message + ": " + this.cause.message : message;
|