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