@mendable/firecrawl-js 1.23.5 → 1.23.6
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 +489 -1687
- package/dist/index.js +488 -1686
- package/package.json +1 -1
- package/dump.rdb +0 -0
package/dist/index.cjs
CHANGED
|
@@ -35,7 +35,7 @@ var require_delayed_stream = __commonJS({
|
|
|
35
35
|
"node_modules/delayed-stream/lib/delayed_stream.js"(exports2, module2) {
|
|
36
36
|
"use strict";
|
|
37
37
|
var Stream = require("stream").Stream;
|
|
38
|
-
var
|
|
38
|
+
var util2 = require("util");
|
|
39
39
|
module2.exports = DelayedStream;
|
|
40
40
|
function DelayedStream() {
|
|
41
41
|
this.source = null;
|
|
@@ -46,7 +46,7 @@ var require_delayed_stream = __commonJS({
|
|
|
46
46
|
this._released = false;
|
|
47
47
|
this._bufferedEvents = [];
|
|
48
48
|
}
|
|
49
|
-
|
|
49
|
+
util2.inherits(DelayedStream, Stream);
|
|
50
50
|
DelayedStream.create = function(source, options) {
|
|
51
51
|
var delayedStream = new this();
|
|
52
52
|
options = options || {};
|
|
@@ -126,7 +126,7 @@ var require_delayed_stream = __commonJS({
|
|
|
126
126
|
var require_combined_stream = __commonJS({
|
|
127
127
|
"node_modules/combined-stream/lib/combined_stream.js"(exports2, module2) {
|
|
128
128
|
"use strict";
|
|
129
|
-
var
|
|
129
|
+
var util2 = require("util");
|
|
130
130
|
var Stream = require("stream").Stream;
|
|
131
131
|
var DelayedStream = require_delayed_stream();
|
|
132
132
|
module2.exports = CombinedStream;
|
|
@@ -142,7 +142,7 @@ var require_combined_stream = __commonJS({
|
|
|
142
142
|
this._insideLoop = false;
|
|
143
143
|
this._pendingNext = false;
|
|
144
144
|
}
|
|
145
|
-
|
|
145
|
+
util2.inherits(CombinedStream, Stream);
|
|
146
146
|
CombinedStream.create = function(options) {
|
|
147
147
|
var combinedStream = new this();
|
|
148
148
|
options = options || {};
|
|
@@ -9134,852 +9134,6 @@ 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
|
-
|
|
9983
9137
|
// node_modules/form-data/lib/populate.js
|
|
9984
9138
|
var require_populate = __commonJS({
|
|
9985
9139
|
"node_modules/form-data/lib/populate.js"(exports2, module2) {
|
|
@@ -9998,7 +9152,7 @@ var require_form_data = __commonJS({
|
|
|
9998
9152
|
"node_modules/form-data/lib/form_data.js"(exports2, module2) {
|
|
9999
9153
|
"use strict";
|
|
10000
9154
|
var CombinedStream = require_combined_stream();
|
|
10001
|
-
var
|
|
9155
|
+
var util2 = require("util");
|
|
10002
9156
|
var path = require("path");
|
|
10003
9157
|
var http2 = require("http");
|
|
10004
9158
|
var https2 = require("https");
|
|
@@ -10007,10 +9161,9 @@ var require_form_data = __commonJS({
|
|
|
10007
9161
|
var Stream = require("stream").Stream;
|
|
10008
9162
|
var mime = require_mime_types();
|
|
10009
9163
|
var asynckit = require_asynckit();
|
|
10010
|
-
var setToStringTag = require_es_set_tostringtag();
|
|
10011
9164
|
var populate = require_populate();
|
|
10012
9165
|
module2.exports = FormData3;
|
|
10013
|
-
|
|
9166
|
+
util2.inherits(FormData3, CombinedStream);
|
|
10014
9167
|
function FormData3(options) {
|
|
10015
9168
|
if (!(this instanceof FormData3)) {
|
|
10016
9169
|
return new FormData3(options);
|
|
@@ -10035,7 +9188,7 @@ var require_form_data = __commonJS({
|
|
|
10035
9188
|
if (typeof value == "number") {
|
|
10036
9189
|
value = "" + value;
|
|
10037
9190
|
}
|
|
10038
|
-
if (
|
|
9191
|
+
if (util2.isArray(value)) {
|
|
10039
9192
|
this._error(new Error("Arrays are not supported."));
|
|
10040
9193
|
return;
|
|
10041
9194
|
}
|
|
@@ -10057,7 +9210,7 @@ var require_form_data = __commonJS({
|
|
|
10057
9210
|
}
|
|
10058
9211
|
this._valueLength += valueLength;
|
|
10059
9212
|
this._overheadLength += Buffer.byteLength(header) + FormData3.LINE_BREAK.length;
|
|
10060
|
-
if (!value || !value.path && !(value.readable &&
|
|
9213
|
+
if (!value || !value.path && !(value.readable && value.hasOwnProperty("httpVersion")) && !(value instanceof Stream)) {
|
|
10061
9214
|
return;
|
|
10062
9215
|
}
|
|
10063
9216
|
if (!options.knownLength) {
|
|
@@ -10065,7 +9218,7 @@ var require_form_data = __commonJS({
|
|
|
10065
9218
|
}
|
|
10066
9219
|
};
|
|
10067
9220
|
FormData3.prototype._lengthRetriever = function(value, callback) {
|
|
10068
|
-
if (
|
|
9221
|
+
if (value.hasOwnProperty("fd")) {
|
|
10069
9222
|
if (value.end != void 0 && value.end != Infinity && value.start != void 0) {
|
|
10070
9223
|
callback(null, value.end + 1 - (value.start ? value.start : 0));
|
|
10071
9224
|
} else {
|
|
@@ -10079,9 +9232,9 @@ var require_form_data = __commonJS({
|
|
|
10079
9232
|
callback(null, fileSize);
|
|
10080
9233
|
});
|
|
10081
9234
|
}
|
|
10082
|
-
} else if (
|
|
9235
|
+
} else if (value.hasOwnProperty("httpVersion")) {
|
|
10083
9236
|
callback(null, +value.headers["content-length"]);
|
|
10084
|
-
} else if (
|
|
9237
|
+
} else if (value.hasOwnProperty("httpModule")) {
|
|
10085
9238
|
value.on("response", function(response) {
|
|
10086
9239
|
value.pause();
|
|
10087
9240
|
callback(null, +response.headers["content-length"]);
|
|
@@ -10109,17 +9262,16 @@ var require_form_data = __commonJS({
|
|
|
10109
9262
|
}
|
|
10110
9263
|
var header;
|
|
10111
9264
|
for (var prop in headers) {
|
|
10112
|
-
if (
|
|
10113
|
-
|
|
10114
|
-
|
|
10115
|
-
|
|
10116
|
-
|
|
10117
|
-
|
|
10118
|
-
|
|
10119
|
-
|
|
10120
|
-
|
|
10121
|
-
|
|
10122
|
-
}
|
|
9265
|
+
if (!headers.hasOwnProperty(prop)) continue;
|
|
9266
|
+
header = headers[prop];
|
|
9267
|
+
if (header == null) {
|
|
9268
|
+
continue;
|
|
9269
|
+
}
|
|
9270
|
+
if (!Array.isArray(header)) {
|
|
9271
|
+
header = [header];
|
|
9272
|
+
}
|
|
9273
|
+
if (header.length) {
|
|
9274
|
+
contents += prop + ": " + header.join("; ") + FormData3.LINE_BREAK;
|
|
10123
9275
|
}
|
|
10124
9276
|
}
|
|
10125
9277
|
return "--" + this.getBoundary() + FormData3.LINE_BREAK + contents + FormData3.LINE_BREAK;
|
|
@@ -10130,7 +9282,7 @@ var require_form_data = __commonJS({
|
|
|
10130
9282
|
filename = path.normalize(options.filepath).replace(/\\/g, "/");
|
|
10131
9283
|
} else if (options.filename || value.name || value.path) {
|
|
10132
9284
|
filename = path.basename(options.filename || value.name || value.path);
|
|
10133
|
-
} else if (value.readable &&
|
|
9285
|
+
} else if (value.readable && value.hasOwnProperty("httpVersion")) {
|
|
10134
9286
|
filename = path.basename(value.client._httpMessage.path || "");
|
|
10135
9287
|
}
|
|
10136
9288
|
if (filename) {
|
|
@@ -10146,7 +9298,7 @@ var require_form_data = __commonJS({
|
|
|
10146
9298
|
if (!contentType && value.path) {
|
|
10147
9299
|
contentType = mime.lookup(value.path);
|
|
10148
9300
|
}
|
|
10149
|
-
if (!contentType && value.readable &&
|
|
9301
|
+
if (!contentType && value.readable && value.hasOwnProperty("httpVersion")) {
|
|
10150
9302
|
contentType = value.headers["content-type"];
|
|
10151
9303
|
}
|
|
10152
9304
|
if (!contentType && (options.filepath || options.filename)) {
|
|
@@ -10176,7 +9328,7 @@ var require_form_data = __commonJS({
|
|
|
10176
9328
|
"content-type": "multipart/form-data; boundary=" + this.getBoundary()
|
|
10177
9329
|
};
|
|
10178
9330
|
for (header in userHeaders) {
|
|
10179
|
-
if (
|
|
9331
|
+
if (userHeaders.hasOwnProperty(header)) {
|
|
10180
9332
|
formHeaders[header.toLowerCase()] = userHeaders[header];
|
|
10181
9333
|
}
|
|
10182
9334
|
}
|
|
@@ -10307,7 +9459,6 @@ var require_form_data = __commonJS({
|
|
|
10307
9459
|
FormData3.prototype.toString = function() {
|
|
10308
9460
|
return "[object FormData]";
|
|
10309
9461
|
};
|
|
10310
|
-
setToStringTag(FormData3, "FormData");
|
|
10311
9462
|
}
|
|
10312
9463
|
});
|
|
10313
9464
|
|
|
@@ -10327,7 +9478,7 @@ var require_proxy_from_env = __commonJS({
|
|
|
10327
9478
|
var stringEndsWith = String.prototype.endsWith || function(s) {
|
|
10328
9479
|
return s.length <= this.length && this.indexOf(s, this.length - s.length) !== -1;
|
|
10329
9480
|
};
|
|
10330
|
-
function
|
|
9481
|
+
function getProxyForUrl2(url2) {
|
|
10331
9482
|
var parsedUrl = typeof url2 === "string" ? parseUrl(url2) : url2 || {};
|
|
10332
9483
|
var proto = parsedUrl.protocol;
|
|
10333
9484
|
var hostname = parsedUrl.host;
|
|
@@ -10377,7 +9528,7 @@ var require_proxy_from_env = __commonJS({
|
|
|
10377
9528
|
function getEnv(key) {
|
|
10378
9529
|
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
|
|
10379
9530
|
}
|
|
10380
|
-
exports2.getProxyForUrl =
|
|
9531
|
+
exports2.getProxyForUrl = getProxyForUrl2;
|
|
10381
9532
|
}
|
|
10382
9533
|
});
|
|
10383
9534
|
|
|
@@ -10602,64 +9753,50 @@ var require_common = __commonJS({
|
|
|
10602
9753
|
createDebug.namespaces = namespaces;
|
|
10603
9754
|
createDebug.names = [];
|
|
10604
9755
|
createDebug.skips = [];
|
|
10605
|
-
|
|
10606
|
-
|
|
10607
|
-
|
|
10608
|
-
|
|
10609
|
-
|
|
10610
|
-
|
|
9756
|
+
let i;
|
|
9757
|
+
const split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/);
|
|
9758
|
+
const len = split.length;
|
|
9759
|
+
for (i = 0; i < len; i++) {
|
|
9760
|
+
if (!split[i]) {
|
|
9761
|
+
continue;
|
|
10611
9762
|
}
|
|
10612
|
-
|
|
10613
|
-
|
|
10614
|
-
|
|
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;
|
|
9763
|
+
namespaces = split[i].replace(/\*/g, ".*?");
|
|
9764
|
+
if (namespaces[0] === "-") {
|
|
9765
|
+
createDebug.skips.push(new RegExp("^" + namespaces.slice(1) + "$"));
|
|
10633
9766
|
} else {
|
|
10634
|
-
|
|
9767
|
+
createDebug.names.push(new RegExp("^" + namespaces + "$"));
|
|
10635
9768
|
}
|
|
10636
9769
|
}
|
|
10637
|
-
while (templateIndex < template.length && template[templateIndex] === "*") {
|
|
10638
|
-
templateIndex++;
|
|
10639
|
-
}
|
|
10640
|
-
return templateIndex === template.length;
|
|
10641
9770
|
}
|
|
10642
9771
|
function disable() {
|
|
10643
9772
|
const namespaces = [
|
|
10644
|
-
...createDebug.names,
|
|
10645
|
-
...createDebug.skips.map((namespace) => "-" + namespace)
|
|
9773
|
+
...createDebug.names.map(toNamespace),
|
|
9774
|
+
...createDebug.skips.map(toNamespace).map((namespace) => "-" + namespace)
|
|
10646
9775
|
].join(",");
|
|
10647
9776
|
createDebug.enable("");
|
|
10648
9777
|
return namespaces;
|
|
10649
9778
|
}
|
|
10650
9779
|
function enabled(name) {
|
|
10651
|
-
|
|
10652
|
-
|
|
9780
|
+
if (name[name.length - 1] === "*") {
|
|
9781
|
+
return true;
|
|
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)) {
|
|
10653
9787
|
return false;
|
|
10654
9788
|
}
|
|
10655
9789
|
}
|
|
10656
|
-
for (
|
|
10657
|
-
if (
|
|
9790
|
+
for (i = 0, len = createDebug.names.length; i < len; i++) {
|
|
9791
|
+
if (createDebug.names[i].test(name)) {
|
|
10658
9792
|
return true;
|
|
10659
9793
|
}
|
|
10660
9794
|
}
|
|
10661
9795
|
return false;
|
|
10662
9796
|
}
|
|
9797
|
+
function toNamespace(regexp) {
|
|
9798
|
+
return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
|
|
9799
|
+
}
|
|
10663
9800
|
function coerce(val) {
|
|
10664
9801
|
if (val instanceof Error) {
|
|
10665
9802
|
return val.stack || val.message;
|
|
@@ -10967,14 +10104,14 @@ var require_node = __commonJS({
|
|
|
10967
10104
|
"node_modules/debug/src/node.js"(exports2, module2) {
|
|
10968
10105
|
"use strict";
|
|
10969
10106
|
var tty = require("tty");
|
|
10970
|
-
var
|
|
10107
|
+
var util2 = require("util");
|
|
10971
10108
|
exports2.init = init;
|
|
10972
10109
|
exports2.log = log;
|
|
10973
10110
|
exports2.formatArgs = formatArgs;
|
|
10974
10111
|
exports2.save = save;
|
|
10975
10112
|
exports2.load = load;
|
|
10976
10113
|
exports2.useColors = useColors;
|
|
10977
|
-
exports2.destroy =
|
|
10114
|
+
exports2.destroy = util2.deprecate(
|
|
10978
10115
|
() => {
|
|
10979
10116
|
},
|
|
10980
10117
|
"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
|
|
@@ -11105,7 +10242,7 @@ var require_node = __commonJS({
|
|
|
11105
10242
|
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
11106
10243
|
}
|
|
11107
10244
|
function log(...args) {
|
|
11108
|
-
return process.stderr.write(
|
|
10245
|
+
return process.stderr.write(util2.formatWithOptions(exports2.inspectOpts, ...args) + "\n");
|
|
11109
10246
|
}
|
|
11110
10247
|
function save(namespaces) {
|
|
11111
10248
|
if (namespaces) {
|
|
@@ -11128,11 +10265,11 @@ var require_node = __commonJS({
|
|
|
11128
10265
|
var { formatters } = module2.exports;
|
|
11129
10266
|
formatters.o = function(v) {
|
|
11130
10267
|
this.inspectOpts.colors = this.useColors;
|
|
11131
|
-
return
|
|
10268
|
+
return util2.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
11132
10269
|
};
|
|
11133
10270
|
formatters.O = function(v) {
|
|
11134
10271
|
this.inspectOpts.colors = this.useColors;
|
|
11135
|
-
return
|
|
10272
|
+
return util2.inspect(v, this.inspectOpts);
|
|
11136
10273
|
};
|
|
11137
10274
|
}
|
|
11138
10275
|
});
|
|
@@ -11181,17 +10318,9 @@ var require_follow_redirects = __commonJS({
|
|
|
11181
10318
|
var Writable = require("stream").Writable;
|
|
11182
10319
|
var assert = require("assert");
|
|
11183
10320
|
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
|
-
})();
|
|
11192
10321
|
var useNativeURL = false;
|
|
11193
10322
|
try {
|
|
11194
|
-
assert(new URL2(
|
|
10323
|
+
assert(new URL2());
|
|
11195
10324
|
} catch (error) {
|
|
11196
10325
|
useNativeURL = error.code === "ERR_INVALID_URL";
|
|
11197
10326
|
}
|
|
@@ -11618,9 +10747,7 @@ var require_follow_redirects = __commonJS({
|
|
|
11618
10747
|
}
|
|
11619
10748
|
function createErrorType(code, message, baseClass) {
|
|
11620
10749
|
function CustomError(properties) {
|
|
11621
|
-
|
|
11622
|
-
Error.captureStackTrace(this, this.constructor);
|
|
11623
|
-
}
|
|
10750
|
+
Error.captureStackTrace(this, this.constructor);
|
|
11624
10751
|
Object.assign(this, properties || {});
|
|
11625
10752
|
this.code = code;
|
|
11626
10753
|
this.message = this.cause ? message + ": " + this.cause.message : message;
|
|
@@ -11668,13 +10795,13 @@ var require_follow_redirects = __commonJS({
|
|
|
11668
10795
|
});
|
|
11669
10796
|
|
|
11670
10797
|
// src/index.ts
|
|
11671
|
-
var
|
|
11672
|
-
__export(
|
|
10798
|
+
var src_exports = {};
|
|
10799
|
+
__export(src_exports, {
|
|
11673
10800
|
CrawlWatcher: () => CrawlWatcher,
|
|
11674
10801
|
FirecrawlError: () => FirecrawlError,
|
|
11675
10802
|
default: () => FirecrawlApp
|
|
11676
10803
|
});
|
|
11677
|
-
module.exports = __toCommonJS(
|
|
10804
|
+
module.exports = __toCommonJS(src_exports);
|
|
11678
10805
|
|
|
11679
10806
|
// node_modules/axios/lib/helpers/bind.js
|
|
11680
10807
|
function bind(fn, thisArg) {
|
|
@@ -11733,7 +10860,6 @@ var isFormData = (thing) => {
|
|
|
11733
10860
|
kind === "object" && isFunction(thing.toString) && thing.toString() === "[object FormData]"));
|
|
11734
10861
|
};
|
|
11735
10862
|
var isURLSearchParams = kindOfTest("URLSearchParams");
|
|
11736
|
-
var [isReadableStream, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);
|
|
11737
10863
|
var trim = (str) => str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
11738
10864
|
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
11739
10865
|
if (obj === null || typeof obj === "undefined") {
|
|
@@ -11937,7 +11063,23 @@ var toObjectSet = (arrayOrString, delimiter) => {
|
|
|
11937
11063
|
var noop = () => {
|
|
11938
11064
|
};
|
|
11939
11065
|
var toFiniteNumber = (value, defaultValue) => {
|
|
11940
|
-
|
|
11066
|
+
value = +value;
|
|
11067
|
+
return Number.isFinite(value) ? value : defaultValue;
|
|
11068
|
+
};
|
|
11069
|
+
var ALPHA = "abcdefghijklmnopqrstuvwxyz";
|
|
11070
|
+
var DIGIT = "0123456789";
|
|
11071
|
+
var ALPHABET = {
|
|
11072
|
+
DIGIT,
|
|
11073
|
+
ALPHA,
|
|
11074
|
+
ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
|
|
11075
|
+
};
|
|
11076
|
+
var generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
11077
|
+
let str = "";
|
|
11078
|
+
const { length } = alphabet;
|
|
11079
|
+
while (size--) {
|
|
11080
|
+
str += alphabet[Math.random() * length | 0];
|
|
11081
|
+
}
|
|
11082
|
+
return str;
|
|
11941
11083
|
};
|
|
11942
11084
|
function isSpecCompliantForm(thing) {
|
|
11943
11085
|
return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === "FormData" && thing[Symbol.iterator]);
|
|
@@ -11966,26 +11108,6 @@ var toJSONObject = (obj) => {
|
|
|
11966
11108
|
};
|
|
11967
11109
|
var isAsyncFn = kindOfTest("AsyncFunction");
|
|
11968
11110
|
var isThenable = (thing) => thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
|
|
11969
|
-
var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
11970
|
-
if (setImmediateSupported) {
|
|
11971
|
-
return setImmediate;
|
|
11972
|
-
}
|
|
11973
|
-
return postMessageSupported ? ((token, callbacks) => {
|
|
11974
|
-
_global.addEventListener("message", ({ source, data }) => {
|
|
11975
|
-
if (source === _global && data === token) {
|
|
11976
|
-
callbacks.length && callbacks.shift()();
|
|
11977
|
-
}
|
|
11978
|
-
}, false);
|
|
11979
|
-
return (cb) => {
|
|
11980
|
-
callbacks.push(cb);
|
|
11981
|
-
_global.postMessage(token, "*");
|
|
11982
|
-
};
|
|
11983
|
-
})(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
|
|
11984
|
-
})(
|
|
11985
|
-
typeof setImmediate === "function",
|
|
11986
|
-
isFunction(_global.postMessage)
|
|
11987
|
-
);
|
|
11988
|
-
var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
|
11989
11111
|
var utils_default = {
|
|
11990
11112
|
isArray,
|
|
11991
11113
|
isArrayBuffer,
|
|
@@ -11997,10 +11119,6 @@ var utils_default = {
|
|
|
11997
11119
|
isBoolean,
|
|
11998
11120
|
isObject,
|
|
11999
11121
|
isPlainObject,
|
|
12000
|
-
isReadableStream,
|
|
12001
|
-
isRequest,
|
|
12002
|
-
isResponse,
|
|
12003
|
-
isHeaders,
|
|
12004
11122
|
isUndefined,
|
|
12005
11123
|
isDate,
|
|
12006
11124
|
isFile,
|
|
@@ -12037,12 +11155,12 @@ var utils_default = {
|
|
|
12037
11155
|
findKey,
|
|
12038
11156
|
global: _global,
|
|
12039
11157
|
isContextDefined,
|
|
11158
|
+
ALPHABET,
|
|
11159
|
+
generateString,
|
|
12040
11160
|
isSpecCompliantForm,
|
|
12041
11161
|
toJSONObject,
|
|
12042
11162
|
isAsyncFn,
|
|
12043
|
-
isThenable
|
|
12044
|
-
setImmediate: _setImmediate,
|
|
12045
|
-
asap
|
|
11163
|
+
isThenable
|
|
12046
11164
|
};
|
|
12047
11165
|
|
|
12048
11166
|
// node_modules/axios/lib/core/AxiosError.js
|
|
@@ -12058,10 +11176,7 @@ function AxiosError(message, code, config, request, response) {
|
|
|
12058
11176
|
code && (this.code = code);
|
|
12059
11177
|
config && (this.config = config);
|
|
12060
11178
|
request && (this.request = request);
|
|
12061
|
-
|
|
12062
|
-
this.response = response;
|
|
12063
|
-
this.status = response.status ? response.status : null;
|
|
12064
|
-
}
|
|
11179
|
+
response && (this.response = response);
|
|
12065
11180
|
}
|
|
12066
11181
|
utils_default.inherits(AxiosError, Error, {
|
|
12067
11182
|
toJSON: function toJSON() {
|
|
@@ -12080,7 +11195,7 @@ utils_default.inherits(AxiosError, Error, {
|
|
|
12080
11195
|
// Axios
|
|
12081
11196
|
config: utils_default.toJSONObject(this.config),
|
|
12082
11197
|
code: this.code,
|
|
12083
|
-
status: this.status
|
|
11198
|
+
status: this.response && this.response.status ? this.response.status : null
|
|
12084
11199
|
};
|
|
12085
11200
|
}
|
|
12086
11201
|
});
|
|
@@ -12278,11 +11393,6 @@ function buildURL(url2, params, options) {
|
|
|
12278
11393
|
return url2;
|
|
12279
11394
|
}
|
|
12280
11395
|
const _encode = options && options.encode || encode2;
|
|
12281
|
-
if (utils_default.isFunction(options)) {
|
|
12282
|
-
options = {
|
|
12283
|
-
serialize: options
|
|
12284
|
-
};
|
|
12285
|
-
}
|
|
12286
11396
|
const serializeFn = options && options.serialize;
|
|
12287
11397
|
let serializedParams;
|
|
12288
11398
|
if (serializeFn) {
|
|
@@ -12371,31 +11481,11 @@ var transitional_default = {
|
|
|
12371
11481
|
clarifyTimeoutError: false
|
|
12372
11482
|
};
|
|
12373
11483
|
|
|
12374
|
-
// node_modules/axios/lib/platform/node/index.js
|
|
12375
|
-
var import_crypto = __toESM(require("crypto"), 1);
|
|
12376
|
-
|
|
12377
11484
|
// node_modules/axios/lib/platform/node/classes/URLSearchParams.js
|
|
12378
11485
|
var import_url = __toESM(require("url"), 1);
|
|
12379
11486
|
var URLSearchParams_default = import_url.default.URLSearchParams;
|
|
12380
11487
|
|
|
12381
11488
|
// node_modules/axios/lib/platform/node/index.js
|
|
12382
|
-
var ALPHA = "abcdefghijklmnopqrstuvwxyz";
|
|
12383
|
-
var DIGIT = "0123456789";
|
|
12384
|
-
var ALPHABET = {
|
|
12385
|
-
DIGIT,
|
|
12386
|
-
ALPHA,
|
|
12387
|
-
ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
|
|
12388
|
-
};
|
|
12389
|
-
var generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
12390
|
-
let str = "";
|
|
12391
|
-
const { length } = alphabet;
|
|
12392
|
-
const randomValues = new Uint32Array(size);
|
|
12393
|
-
import_crypto.default.randomFillSync(randomValues);
|
|
12394
|
-
for (let i = 0; i < size; i++) {
|
|
12395
|
-
str += alphabet[randomValues[i] % length];
|
|
12396
|
-
}
|
|
12397
|
-
return str;
|
|
12398
|
-
};
|
|
12399
11489
|
var node_default = {
|
|
12400
11490
|
isNode: true,
|
|
12401
11491
|
classes: {
|
|
@@ -12403,8 +11493,6 @@ var node_default = {
|
|
|
12403
11493
|
FormData: FormData_default,
|
|
12404
11494
|
Blob: typeof Blob !== "undefined" && Blob || null
|
|
12405
11495
|
},
|
|
12406
|
-
ALPHABET,
|
|
12407
|
-
generateString,
|
|
12408
11496
|
protocols: ["http", "https", "file", "data"]
|
|
12409
11497
|
};
|
|
12410
11498
|
|
|
@@ -12413,18 +11501,16 @@ var utils_exports = {};
|
|
|
12413
11501
|
__export(utils_exports, {
|
|
12414
11502
|
hasBrowserEnv: () => hasBrowserEnv,
|
|
12415
11503
|
hasStandardBrowserEnv: () => hasStandardBrowserEnv,
|
|
12416
|
-
hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv
|
|
12417
|
-
navigator: () => _navigator,
|
|
12418
|
-
origin: () => origin
|
|
11504
|
+
hasStandardBrowserWebWorkerEnv: () => hasStandardBrowserWebWorkerEnv
|
|
12419
11505
|
});
|
|
12420
11506
|
var hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
|
|
12421
|
-
var
|
|
12422
|
-
|
|
11507
|
+
var hasStandardBrowserEnv = ((product) => {
|
|
11508
|
+
return hasBrowserEnv && ["ReactNative", "NativeScript", "NS"].indexOf(product) < 0;
|
|
11509
|
+
})(typeof navigator !== "undefined" && navigator.product);
|
|
12423
11510
|
var hasStandardBrowserWebWorkerEnv = (() => {
|
|
12424
11511
|
return typeof WorkerGlobalScope !== "undefined" && // eslint-disable-next-line no-undef
|
|
12425
11512
|
self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
|
|
12426
11513
|
})();
|
|
12427
|
-
var origin = hasBrowserEnv && window.location.href || "http://localhost";
|
|
12428
11514
|
|
|
12429
11515
|
// node_modules/axios/lib/platform/index.js
|
|
12430
11516
|
var platform_default = {
|
|
@@ -12514,7 +11600,7 @@ function stringifySafely(rawValue, parser, encoder) {
|
|
|
12514
11600
|
}
|
|
12515
11601
|
var defaults = {
|
|
12516
11602
|
transitional: transitional_default,
|
|
12517
|
-
adapter: ["xhr", "http"
|
|
11603
|
+
adapter: ["xhr", "http"],
|
|
12518
11604
|
transformRequest: [function transformRequest(data, headers) {
|
|
12519
11605
|
const contentType = headers.getContentType() || "";
|
|
12520
11606
|
const hasJSONContentType = contentType.indexOf("application/json") > -1;
|
|
@@ -12526,7 +11612,7 @@ var defaults = {
|
|
|
12526
11612
|
if (isFormData2) {
|
|
12527
11613
|
return hasJSONContentType ? JSON.stringify(formDataToJSON_default(data)) : data;
|
|
12528
11614
|
}
|
|
12529
|
-
if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data)
|
|
11615
|
+
if (utils_default.isArrayBuffer(data) || utils_default.isBuffer(data) || utils_default.isStream(data) || utils_default.isFile(data) || utils_default.isBlob(data)) {
|
|
12530
11616
|
return data;
|
|
12531
11617
|
}
|
|
12532
11618
|
if (utils_default.isArrayBufferView(data)) {
|
|
@@ -12560,9 +11646,6 @@ var defaults = {
|
|
|
12560
11646
|
const transitional2 = this.transitional || defaults.transitional;
|
|
12561
11647
|
const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
12562
11648
|
const JSONRequested = this.responseType === "json";
|
|
12563
|
-
if (utils_default.isResponse(data) || utils_default.isReadableStream(data)) {
|
|
12564
|
-
return data;
|
|
12565
|
-
}
|
|
12566
11649
|
if (data && utils_default.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
|
12567
11650
|
const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
12568
11651
|
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
@@ -12725,10 +11808,6 @@ var AxiosHeaders = class {
|
|
|
12725
11808
|
setHeaders(header, valueOrRewrite);
|
|
12726
11809
|
} else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
12727
11810
|
setHeaders(parseHeaders_default(header), valueOrRewrite);
|
|
12728
|
-
} else if (utils_default.isHeaders(header)) {
|
|
12729
|
-
for (const [key, value] of header.entries()) {
|
|
12730
|
-
setHeader(value, key, rewrite);
|
|
12731
|
-
}
|
|
12732
11811
|
} else {
|
|
12733
11812
|
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
12734
11813
|
}
|
|
@@ -12928,9 +12007,8 @@ function combineURLs(baseURL, relativeURL) {
|
|
|
12928
12007
|
}
|
|
12929
12008
|
|
|
12930
12009
|
// node_modules/axios/lib/core/buildFullPath.js
|
|
12931
|
-
function buildFullPath(baseURL, requestedURL
|
|
12932
|
-
|
|
12933
|
-
if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
|
|
12010
|
+
function buildFullPath(baseURL, requestedURL) {
|
|
12011
|
+
if (baseURL && !isAbsoluteURL(requestedURL)) {
|
|
12934
12012
|
return combineURLs(baseURL, requestedURL);
|
|
12935
12013
|
}
|
|
12936
12014
|
return requestedURL;
|
|
@@ -12945,7 +12023,7 @@ var import_follow_redirects = __toESM(require_follow_redirects(), 1);
|
|
|
12945
12023
|
var import_zlib = __toESM(require("zlib"), 1);
|
|
12946
12024
|
|
|
12947
12025
|
// node_modules/axios/lib/env/data.js
|
|
12948
|
-
var VERSION = "1.8
|
|
12026
|
+
var VERSION = "1.6.8";
|
|
12949
12027
|
|
|
12950
12028
|
// node_modules/axios/lib/helpers/parseProtocol.js
|
|
12951
12029
|
function parseProtocol(url2) {
|
|
@@ -12967,26 +12045,90 @@ function fromDataURI(uri, asBlob, options) {
|
|
|
12967
12045
|
if (!match) {
|
|
12968
12046
|
throw new AxiosError_default("Invalid URL", AxiosError_default.ERR_INVALID_URL);
|
|
12969
12047
|
}
|
|
12970
|
-
const mime = match[1];
|
|
12971
|
-
const isBase64 = match[2];
|
|
12972
|
-
const body = match[3];
|
|
12973
|
-
const buffer = Buffer.from(decodeURIComponent(body), isBase64 ? "base64" : "utf8");
|
|
12974
|
-
if (asBlob) {
|
|
12975
|
-
if (!_Blob) {
|
|
12976
|
-
throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
|
|
12977
|
-
}
|
|
12978
|
-
return new _Blob([buffer], { type: mime });
|
|
12048
|
+
const mime = match[1];
|
|
12049
|
+
const isBase64 = match[2];
|
|
12050
|
+
const body = match[3];
|
|
12051
|
+
const buffer = Buffer.from(decodeURIComponent(body), isBase64 ? "base64" : "utf8");
|
|
12052
|
+
if (asBlob) {
|
|
12053
|
+
if (!_Blob) {
|
|
12054
|
+
throw new AxiosError_default("Blob is not supported", AxiosError_default.ERR_NOT_SUPPORT);
|
|
12055
|
+
}
|
|
12056
|
+
return new _Blob([buffer], { type: mime });
|
|
12057
|
+
}
|
|
12058
|
+
return buffer;
|
|
12059
|
+
}
|
|
12060
|
+
throw new AxiosError_default("Unsupported protocol " + protocol, AxiosError_default.ERR_NOT_SUPPORT);
|
|
12061
|
+
}
|
|
12062
|
+
|
|
12063
|
+
// node_modules/axios/lib/adapters/http.js
|
|
12064
|
+
var import_stream4 = __toESM(require("stream"), 1);
|
|
12065
|
+
|
|
12066
|
+
// node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
12067
|
+
var import_stream = __toESM(require("stream"), 1);
|
|
12068
|
+
|
|
12069
|
+
// node_modules/axios/lib/helpers/throttle.js
|
|
12070
|
+
function throttle(fn, freq) {
|
|
12071
|
+
let timestamp = 0;
|
|
12072
|
+
const threshold = 1e3 / freq;
|
|
12073
|
+
let timer = null;
|
|
12074
|
+
return function throttled(force, args) {
|
|
12075
|
+
const now = Date.now();
|
|
12076
|
+
if (force || now - timestamp > threshold) {
|
|
12077
|
+
if (timer) {
|
|
12078
|
+
clearTimeout(timer);
|
|
12079
|
+
timer = null;
|
|
12080
|
+
}
|
|
12081
|
+
timestamp = now;
|
|
12082
|
+
return fn.apply(null, args);
|
|
12083
|
+
}
|
|
12084
|
+
if (!timer) {
|
|
12085
|
+
timer = setTimeout(() => {
|
|
12086
|
+
timer = null;
|
|
12087
|
+
timestamp = Date.now();
|
|
12088
|
+
return fn.apply(null, args);
|
|
12089
|
+
}, threshold - (now - timestamp));
|
|
12090
|
+
}
|
|
12091
|
+
};
|
|
12092
|
+
}
|
|
12093
|
+
var throttle_default = throttle;
|
|
12094
|
+
|
|
12095
|
+
// node_modules/axios/lib/helpers/speedometer.js
|
|
12096
|
+
function speedometer(samplesCount, min) {
|
|
12097
|
+
samplesCount = samplesCount || 10;
|
|
12098
|
+
const bytes = new Array(samplesCount);
|
|
12099
|
+
const timestamps = new Array(samplesCount);
|
|
12100
|
+
let head = 0;
|
|
12101
|
+
let tail = 0;
|
|
12102
|
+
let firstSampleTS;
|
|
12103
|
+
min = min !== void 0 ? min : 1e3;
|
|
12104
|
+
return function push(chunkLength) {
|
|
12105
|
+
const now = Date.now();
|
|
12106
|
+
const startedAt = timestamps[tail];
|
|
12107
|
+
if (!firstSampleTS) {
|
|
12108
|
+
firstSampleTS = now;
|
|
12109
|
+
}
|
|
12110
|
+
bytes[head] = chunkLength;
|
|
12111
|
+
timestamps[head] = now;
|
|
12112
|
+
let i = tail;
|
|
12113
|
+
let bytesCount = 0;
|
|
12114
|
+
while (i !== head) {
|
|
12115
|
+
bytesCount += bytes[i++];
|
|
12116
|
+
i = i % samplesCount;
|
|
12979
12117
|
}
|
|
12980
|
-
|
|
12981
|
-
|
|
12982
|
-
|
|
12118
|
+
head = (head + 1) % samplesCount;
|
|
12119
|
+
if (head === tail) {
|
|
12120
|
+
tail = (tail + 1) % samplesCount;
|
|
12121
|
+
}
|
|
12122
|
+
if (now - firstSampleTS < min) {
|
|
12123
|
+
return;
|
|
12124
|
+
}
|
|
12125
|
+
const passed = startedAt && now - startedAt;
|
|
12126
|
+
return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
|
|
12127
|
+
};
|
|
12983
12128
|
}
|
|
12984
|
-
|
|
12985
|
-
// node_modules/axios/lib/adapters/http.js
|
|
12986
|
-
var import_stream4 = __toESM(require("stream"), 1);
|
|
12129
|
+
var speedometer_default = speedometer;
|
|
12987
12130
|
|
|
12988
12131
|
// node_modules/axios/lib/helpers/AxiosTransformStream.js
|
|
12989
|
-
var import_stream = __toESM(require("stream"), 1);
|
|
12990
12132
|
var kInternals = Symbol("internals");
|
|
12991
12133
|
var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
12992
12134
|
constructor(options) {
|
|
@@ -13003,8 +12145,11 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
|
13003
12145
|
super({
|
|
13004
12146
|
readableHighWaterMark: options.chunkSize
|
|
13005
12147
|
});
|
|
12148
|
+
const self2 = this;
|
|
13006
12149
|
const internals = this[kInternals] = {
|
|
12150
|
+
length: options.length,
|
|
13007
12151
|
timeWindow: options.timeWindow,
|
|
12152
|
+
ticksRate: options.ticksRate,
|
|
13008
12153
|
chunkSize: options.chunkSize,
|
|
13009
12154
|
maxRate: options.maxRate,
|
|
13010
12155
|
minChunkSize: options.minChunkSize,
|
|
@@ -13015,6 +12160,7 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
|
13015
12160
|
bytes: 0,
|
|
13016
12161
|
onReadCallback: null
|
|
13017
12162
|
};
|
|
12163
|
+
const _speedometer = speedometer_default(internals.ticksRate * options.samplesCount, internals.timeWindow);
|
|
13018
12164
|
this.on("newListener", (event) => {
|
|
13019
12165
|
if (event === "progress") {
|
|
13020
12166
|
if (!internals.isCaptured) {
|
|
@@ -13022,6 +12168,30 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
|
13022
12168
|
}
|
|
13023
12169
|
}
|
|
13024
12170
|
});
|
|
12171
|
+
let bytesNotified = 0;
|
|
12172
|
+
internals.updateProgress = throttle_default(function throttledHandler() {
|
|
12173
|
+
const totalBytes = internals.length;
|
|
12174
|
+
const bytesTransferred = internals.bytesSeen;
|
|
12175
|
+
const progressBytes = bytesTransferred - bytesNotified;
|
|
12176
|
+
if (!progressBytes || self2.destroyed) return;
|
|
12177
|
+
const rate = _speedometer(progressBytes);
|
|
12178
|
+
bytesNotified = bytesTransferred;
|
|
12179
|
+
process.nextTick(() => {
|
|
12180
|
+
self2.emit("progress", {
|
|
12181
|
+
"loaded": bytesTransferred,
|
|
12182
|
+
"total": totalBytes,
|
|
12183
|
+
"progress": totalBytes ? bytesTransferred / totalBytes : void 0,
|
|
12184
|
+
"bytes": progressBytes,
|
|
12185
|
+
"rate": rate ? rate : void 0,
|
|
12186
|
+
"estimated": rate && totalBytes && bytesTransferred <= totalBytes ? (totalBytes - bytesTransferred) / rate : void 0
|
|
12187
|
+
});
|
|
12188
|
+
});
|
|
12189
|
+
}, internals.ticksRate);
|
|
12190
|
+
const onFinish = () => {
|
|
12191
|
+
internals.updateProgress(true);
|
|
12192
|
+
};
|
|
12193
|
+
this.once("end", onFinish);
|
|
12194
|
+
this.once("error", onFinish);
|
|
13025
12195
|
}
|
|
13026
12196
|
_read(size) {
|
|
13027
12197
|
const internals = this[kInternals];
|
|
@@ -13031,6 +12201,7 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
|
13031
12201
|
return super._read(size);
|
|
13032
12202
|
}
|
|
13033
12203
|
_transform(chunk, encoding, callback) {
|
|
12204
|
+
const self2 = this;
|
|
13034
12205
|
const internals = this[kInternals];
|
|
13035
12206
|
const maxRate = internals.maxRate;
|
|
13036
12207
|
const readableHighWaterMark = this.readableHighWaterMark;
|
|
@@ -13038,12 +12209,14 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
|
13038
12209
|
const divider = 1e3 / timeWindow;
|
|
13039
12210
|
const bytesThreshold = maxRate / divider;
|
|
13040
12211
|
const minChunkSize = internals.minChunkSize !== false ? Math.max(internals.minChunkSize, bytesThreshold * 0.01) : 0;
|
|
13041
|
-
|
|
12212
|
+
function pushChunk(_chunk, _callback) {
|
|
13042
12213
|
const bytes = Buffer.byteLength(_chunk);
|
|
13043
12214
|
internals.bytesSeen += bytes;
|
|
13044
12215
|
internals.bytes += bytes;
|
|
13045
|
-
|
|
13046
|
-
|
|
12216
|
+
if (internals.isCaptured) {
|
|
12217
|
+
internals.updateProgress();
|
|
12218
|
+
}
|
|
12219
|
+
if (self2.push(_chunk)) {
|
|
13047
12220
|
process.nextTick(_callback);
|
|
13048
12221
|
} else {
|
|
13049
12222
|
internals.onReadCallback = () => {
|
|
@@ -13051,7 +12224,7 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
|
13051
12224
|
process.nextTick(_callback);
|
|
13052
12225
|
};
|
|
13053
12226
|
}
|
|
13054
|
-
}
|
|
12227
|
+
}
|
|
13055
12228
|
const transformChunk = (_chunk, _callback) => {
|
|
13056
12229
|
const chunkSize = Buffer.byteLength(_chunk);
|
|
13057
12230
|
let chunkRemainder = null;
|
|
@@ -13097,6 +12270,10 @@ var AxiosTransformStream = class extends import_stream.default.Transform {
|
|
|
13097
12270
|
}
|
|
13098
12271
|
});
|
|
13099
12272
|
}
|
|
12273
|
+
setLength(length) {
|
|
12274
|
+
this[kInternals].length = +length;
|
|
12275
|
+
return this;
|
|
12276
|
+
}
|
|
13100
12277
|
};
|
|
13101
12278
|
var AxiosTransformStream_default = AxiosTransformStream;
|
|
13102
12279
|
|
|
@@ -13104,7 +12281,7 @@ var AxiosTransformStream_default = AxiosTransformStream;
|
|
|
13104
12281
|
var import_events = require("events");
|
|
13105
12282
|
|
|
13106
12283
|
// node_modules/axios/lib/helpers/formDataToStream.js
|
|
13107
|
-
var import_util =
|
|
12284
|
+
var import_util = require("util");
|
|
13108
12285
|
var import_stream2 = require("stream");
|
|
13109
12286
|
|
|
13110
12287
|
// node_modules/axios/lib/helpers/readBlob.js
|
|
@@ -13123,8 +12300,8 @@ var readBlob = async function* (blob) {
|
|
|
13123
12300
|
var readBlob_default = readBlob;
|
|
13124
12301
|
|
|
13125
12302
|
// node_modules/axios/lib/helpers/formDataToStream.js
|
|
13126
|
-
var BOUNDARY_ALPHABET =
|
|
13127
|
-
var textEncoder =
|
|
12303
|
+
var BOUNDARY_ALPHABET = utils_default.ALPHABET.ALPHA_DIGIT + "-_";
|
|
12304
|
+
var textEncoder = new import_util.TextEncoder();
|
|
13128
12305
|
var CRLF = "\r\n";
|
|
13129
12306
|
var CRLF_BYTES = textEncoder.encode(CRLF);
|
|
13130
12307
|
var CRLF_BYTES_COUNT = 2;
|
|
@@ -13166,7 +12343,7 @@ var formDataToStream = (form, headersHandler, options) => {
|
|
|
13166
12343
|
const {
|
|
13167
12344
|
tag = "form-data-boundary",
|
|
13168
12345
|
size = 25,
|
|
13169
|
-
boundary = tag + "-" +
|
|
12346
|
+
boundary = tag + "-" + utils_default.generateString(size, BOUNDARY_ALPHABET)
|
|
13170
12347
|
} = options || {};
|
|
13171
12348
|
if (!utils_default.isFormData(form)) {
|
|
13172
12349
|
throw TypeError("FormData instance required");
|
|
@@ -13238,112 +12415,6 @@ var callbackify = (fn, reducer) => {
|
|
|
13238
12415
|
};
|
|
13239
12416
|
var callbackify_default = callbackify;
|
|
13240
12417
|
|
|
13241
|
-
// node_modules/axios/lib/helpers/speedometer.js
|
|
13242
|
-
function speedometer(samplesCount, min) {
|
|
13243
|
-
samplesCount = samplesCount || 10;
|
|
13244
|
-
const bytes = new Array(samplesCount);
|
|
13245
|
-
const timestamps = new Array(samplesCount);
|
|
13246
|
-
let head = 0;
|
|
13247
|
-
let tail = 0;
|
|
13248
|
-
let firstSampleTS;
|
|
13249
|
-
min = min !== void 0 ? min : 1e3;
|
|
13250
|
-
return function push(chunkLength) {
|
|
13251
|
-
const now = Date.now();
|
|
13252
|
-
const startedAt = timestamps[tail];
|
|
13253
|
-
if (!firstSampleTS) {
|
|
13254
|
-
firstSampleTS = now;
|
|
13255
|
-
}
|
|
13256
|
-
bytes[head] = chunkLength;
|
|
13257
|
-
timestamps[head] = now;
|
|
13258
|
-
let i = tail;
|
|
13259
|
-
let bytesCount = 0;
|
|
13260
|
-
while (i !== head) {
|
|
13261
|
-
bytesCount += bytes[i++];
|
|
13262
|
-
i = i % samplesCount;
|
|
13263
|
-
}
|
|
13264
|
-
head = (head + 1) % samplesCount;
|
|
13265
|
-
if (head === tail) {
|
|
13266
|
-
tail = (tail + 1) % samplesCount;
|
|
13267
|
-
}
|
|
13268
|
-
if (now - firstSampleTS < min) {
|
|
13269
|
-
return;
|
|
13270
|
-
}
|
|
13271
|
-
const passed = startedAt && now - startedAt;
|
|
13272
|
-
return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
|
|
13273
|
-
};
|
|
13274
|
-
}
|
|
13275
|
-
var speedometer_default = speedometer;
|
|
13276
|
-
|
|
13277
|
-
// node_modules/axios/lib/helpers/throttle.js
|
|
13278
|
-
function throttle(fn, freq) {
|
|
13279
|
-
let timestamp = 0;
|
|
13280
|
-
let threshold = 1e3 / freq;
|
|
13281
|
-
let lastArgs;
|
|
13282
|
-
let timer;
|
|
13283
|
-
const invoke = (args, now = Date.now()) => {
|
|
13284
|
-
timestamp = now;
|
|
13285
|
-
lastArgs = null;
|
|
13286
|
-
if (timer) {
|
|
13287
|
-
clearTimeout(timer);
|
|
13288
|
-
timer = null;
|
|
13289
|
-
}
|
|
13290
|
-
fn.apply(null, args);
|
|
13291
|
-
};
|
|
13292
|
-
const throttled = (...args) => {
|
|
13293
|
-
const now = Date.now();
|
|
13294
|
-
const passed = now - timestamp;
|
|
13295
|
-
if (passed >= threshold) {
|
|
13296
|
-
invoke(args, now);
|
|
13297
|
-
} else {
|
|
13298
|
-
lastArgs = args;
|
|
13299
|
-
if (!timer) {
|
|
13300
|
-
timer = setTimeout(() => {
|
|
13301
|
-
timer = null;
|
|
13302
|
-
invoke(lastArgs);
|
|
13303
|
-
}, threshold - passed);
|
|
13304
|
-
}
|
|
13305
|
-
}
|
|
13306
|
-
};
|
|
13307
|
-
const flush = () => lastArgs && invoke(lastArgs);
|
|
13308
|
-
return [throttled, flush];
|
|
13309
|
-
}
|
|
13310
|
-
var throttle_default = throttle;
|
|
13311
|
-
|
|
13312
|
-
// node_modules/axios/lib/helpers/progressEventReducer.js
|
|
13313
|
-
var progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
13314
|
-
let bytesNotified = 0;
|
|
13315
|
-
const _speedometer = speedometer_default(50, 250);
|
|
13316
|
-
return throttle_default((e2) => {
|
|
13317
|
-
const loaded = e2.loaded;
|
|
13318
|
-
const total = e2.lengthComputable ? e2.total : void 0;
|
|
13319
|
-
const progressBytes = loaded - bytesNotified;
|
|
13320
|
-
const rate = _speedometer(progressBytes);
|
|
13321
|
-
const inRange = loaded <= total;
|
|
13322
|
-
bytesNotified = loaded;
|
|
13323
|
-
const data = {
|
|
13324
|
-
loaded,
|
|
13325
|
-
total,
|
|
13326
|
-
progress: total ? loaded / total : void 0,
|
|
13327
|
-
bytes: progressBytes,
|
|
13328
|
-
rate: rate ? rate : void 0,
|
|
13329
|
-
estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
|
|
13330
|
-
event: e2,
|
|
13331
|
-
lengthComputable: total != null,
|
|
13332
|
-
[isDownloadStream ? "download" : "upload"]: true
|
|
13333
|
-
};
|
|
13334
|
-
listener(data);
|
|
13335
|
-
}, freq);
|
|
13336
|
-
};
|
|
13337
|
-
var progressEventDecorator = (total, throttled) => {
|
|
13338
|
-
const lengthComputable = total != null;
|
|
13339
|
-
return [(loaded) => throttled[0]({
|
|
13340
|
-
lengthComputable,
|
|
13341
|
-
total,
|
|
13342
|
-
loaded
|
|
13343
|
-
}), throttled[1]];
|
|
13344
|
-
};
|
|
13345
|
-
var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
|
|
13346
|
-
|
|
13347
12418
|
// node_modules/axios/lib/adapters/http.js
|
|
13348
12419
|
var zlibOptions = {
|
|
13349
12420
|
flush: import_zlib.default.constants.Z_SYNC_FLUSH,
|
|
@@ -13359,10 +12430,6 @@ var isHttps = /https:?/;
|
|
|
13359
12430
|
var supportedProtocols = platform_default.protocols.map((protocol) => {
|
|
13360
12431
|
return protocol + ":";
|
|
13361
12432
|
});
|
|
13362
|
-
var flushOnFinish = (stream4, [throttled, flush]) => {
|
|
13363
|
-
stream4.on("end", flush).on("error", flush);
|
|
13364
|
-
return throttled;
|
|
13365
|
-
};
|
|
13366
12433
|
function dispatchBeforeRedirect(options, responseDetails) {
|
|
13367
12434
|
if (options.beforeRedirects.proxy) {
|
|
13368
12435
|
options.beforeRedirects.proxy(options);
|
|
@@ -13374,7 +12441,7 @@ function dispatchBeforeRedirect(options, responseDetails) {
|
|
|
13374
12441
|
function setProxy(options, configProxy, location) {
|
|
13375
12442
|
let proxy = configProxy;
|
|
13376
12443
|
if (!proxy && proxy !== false) {
|
|
13377
|
-
const proxyUrl = import_proxy_from_env.
|
|
12444
|
+
const proxyUrl = (0, import_proxy_from_env.getProxyForUrl)(location);
|
|
13378
12445
|
if (proxyUrl) {
|
|
13379
12446
|
proxy = new URL(proxyUrl);
|
|
13380
12447
|
}
|
|
@@ -13482,8 +12549,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13482
12549
|
config.signal.aborted ? abort() : config.signal.addEventListener("abort", abort);
|
|
13483
12550
|
}
|
|
13484
12551
|
}
|
|
13485
|
-
const fullPath = buildFullPath(config.baseURL, config.url
|
|
13486
|
-
const parsed = new URL(fullPath,
|
|
12552
|
+
const fullPath = buildFullPath(config.baseURL, config.url);
|
|
12553
|
+
const parsed = new URL(fullPath, "http://localhost");
|
|
13487
12554
|
const protocol = parsed.protocol || supportedProtocols[0];
|
|
13488
12555
|
if (protocol === "data:") {
|
|
13489
12556
|
let convertedData;
|
|
@@ -13527,7 +12594,8 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13527
12594
|
}
|
|
13528
12595
|
const headers = AxiosHeaders_default.from(config.headers).normalize();
|
|
13529
12596
|
headers.set("User-Agent", "axios/" + VERSION, false);
|
|
13530
|
-
const
|
|
12597
|
+
const onDownloadProgress = config.onDownloadProgress;
|
|
12598
|
+
const onUploadProgress = config.onUploadProgress;
|
|
13531
12599
|
const maxRate = config.maxRate;
|
|
13532
12600
|
let maxUploadRate = void 0;
|
|
13533
12601
|
let maxDownloadRate = void 0;
|
|
@@ -13548,7 +12616,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13548
12616
|
} catch (e2) {
|
|
13549
12617
|
}
|
|
13550
12618
|
}
|
|
13551
|
-
} else if (utils_default.isBlob(data)
|
|
12619
|
+
} else if (utils_default.isBlob(data)) {
|
|
13552
12620
|
data.size && headers.setContentType(data.type || "application/octet-stream");
|
|
13553
12621
|
headers.setContentLength(data.size || 0);
|
|
13554
12622
|
data = import_stream4.default.Readable.from(readBlob_default(data));
|
|
@@ -13586,15 +12654,14 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13586
12654
|
data = import_stream4.default.Readable.from(data, { objectMode: false });
|
|
13587
12655
|
}
|
|
13588
12656
|
data = import_stream4.default.pipeline([data, new AxiosTransformStream_default({
|
|
12657
|
+
length: contentLength,
|
|
13589
12658
|
maxRate: utils_default.toFiniteNumber(maxUploadRate)
|
|
13590
12659
|
})], utils_default.noop);
|
|
13591
|
-
onUploadProgress && data.on("progress",
|
|
13592
|
-
|
|
13593
|
-
|
|
13594
|
-
|
|
13595
|
-
|
|
13596
|
-
)
|
|
13597
|
-
));
|
|
12660
|
+
onUploadProgress && data.on("progress", (progress) => {
|
|
12661
|
+
onUploadProgress(Object.assign(progress, {
|
|
12662
|
+
upload: true
|
|
12663
|
+
}));
|
|
12664
|
+
});
|
|
13598
12665
|
}
|
|
13599
12666
|
let auth = void 0;
|
|
13600
12667
|
if (config.auth) {
|
|
@@ -13642,7 +12709,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13642
12709
|
if (config.socketPath) {
|
|
13643
12710
|
options.socketPath = config.socketPath;
|
|
13644
12711
|
} else {
|
|
13645
|
-
options.hostname = parsed.hostname
|
|
12712
|
+
options.hostname = parsed.hostname;
|
|
13646
12713
|
options.port = parsed.port;
|
|
13647
12714
|
setProxy(options, config.proxy, protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path);
|
|
13648
12715
|
}
|
|
@@ -13674,17 +12741,16 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13674
12741
|
if (req.destroyed) return;
|
|
13675
12742
|
const streams = [res];
|
|
13676
12743
|
const responseLength = +res.headers["content-length"];
|
|
13677
|
-
if (onDownloadProgress
|
|
12744
|
+
if (onDownloadProgress) {
|
|
13678
12745
|
const transformStream = new AxiosTransformStream_default({
|
|
12746
|
+
length: utils_default.toFiniteNumber(responseLength),
|
|
13679
12747
|
maxRate: utils_default.toFiniteNumber(maxDownloadRate)
|
|
13680
12748
|
});
|
|
13681
|
-
onDownloadProgress && transformStream.on("progress",
|
|
13682
|
-
|
|
13683
|
-
|
|
13684
|
-
|
|
13685
|
-
|
|
13686
|
-
)
|
|
13687
|
-
));
|
|
12749
|
+
onDownloadProgress && transformStream.on("progress", (progress) => {
|
|
12750
|
+
onDownloadProgress(Object.assign(progress, {
|
|
12751
|
+
download: true
|
|
12752
|
+
}));
|
|
12753
|
+
});
|
|
13688
12754
|
streams.push(transformStream);
|
|
13689
12755
|
}
|
|
13690
12756
|
let responseStream = res;
|
|
@@ -13751,7 +12817,7 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13751
12817
|
return;
|
|
13752
12818
|
}
|
|
13753
12819
|
const err = new AxiosError_default(
|
|
13754
|
-
"
|
|
12820
|
+
"maxContentLength size of " + config.maxContentLength + " exceeded",
|
|
13755
12821
|
AxiosError_default.ERR_BAD_RESPONSE,
|
|
13756
12822
|
config,
|
|
13757
12823
|
lastRequest
|
|
@@ -13820,206 +12886,162 @@ var http_default = isHttpAdapterSupported && function httpAdapter(config) {
|
|
|
13820
12886
|
config,
|
|
13821
12887
|
req
|
|
13822
12888
|
));
|
|
13823
|
-
abort();
|
|
13824
|
-
});
|
|
13825
|
-
}
|
|
13826
|
-
if (utils_default.isStream(data)) {
|
|
13827
|
-
let ended = false;
|
|
13828
|
-
let errored = false;
|
|
13829
|
-
data.on("end", () => {
|
|
13830
|
-
ended = true;
|
|
13831
|
-
});
|
|
13832
|
-
data.once("error", (err) => {
|
|
13833
|
-
errored = true;
|
|
13834
|
-
req.destroy(err);
|
|
13835
|
-
});
|
|
13836
|
-
data.on("close", () => {
|
|
13837
|
-
if (!ended && !errored) {
|
|
13838
|
-
abort(new CanceledError_default("Request stream has been aborted", config, req));
|
|
13839
|
-
}
|
|
13840
|
-
});
|
|
13841
|
-
data.pipe(req);
|
|
13842
|
-
} else {
|
|
13843
|
-
req.end(data);
|
|
13844
|
-
}
|
|
13845
|
-
});
|
|
13846
|
-
};
|
|
13847
|
-
|
|
13848
|
-
// node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
13849
|
-
var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? /* @__PURE__ */ ((origin2, isMSIE) => (url2) => {
|
|
13850
|
-
url2 = new URL(url2, platform_default.origin);
|
|
13851
|
-
return origin2.protocol === url2.protocol && origin2.host === url2.host && (isMSIE || origin2.port === url2.port);
|
|
13852
|
-
})(
|
|
13853
|
-
new URL(platform_default.origin),
|
|
13854
|
-
platform_default.navigator && /(msie|trident)/i.test(platform_default.navigator.userAgent)
|
|
13855
|
-
) : () => true;
|
|
13856
|
-
|
|
13857
|
-
// node_modules/axios/lib/helpers/cookies.js
|
|
13858
|
-
var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
13859
|
-
// Standard browser envs support document.cookie
|
|
13860
|
-
{
|
|
13861
|
-
write(name, value, expires, path, domain, secure) {
|
|
13862
|
-
const cookie = [name + "=" + encodeURIComponent(value)];
|
|
13863
|
-
utils_default.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());
|
|
13864
|
-
utils_default.isString(path) && cookie.push("path=" + path);
|
|
13865
|
-
utils_default.isString(domain) && cookie.push("domain=" + domain);
|
|
13866
|
-
secure === true && cookie.push("secure");
|
|
13867
|
-
document.cookie = cookie.join("; ");
|
|
13868
|
-
},
|
|
13869
|
-
read(name) {
|
|
13870
|
-
const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
|
|
13871
|
-
return match ? decodeURIComponent(match[3]) : null;
|
|
13872
|
-
},
|
|
13873
|
-
remove(name) {
|
|
13874
|
-
this.write(name, "", Date.now() - 864e5);
|
|
13875
|
-
}
|
|
13876
|
-
}
|
|
13877
|
-
) : (
|
|
13878
|
-
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
13879
|
-
{
|
|
13880
|
-
write() {
|
|
13881
|
-
},
|
|
13882
|
-
read() {
|
|
13883
|
-
return null;
|
|
13884
|
-
},
|
|
13885
|
-
remove() {
|
|
13886
|
-
}
|
|
13887
|
-
}
|
|
13888
|
-
);
|
|
13889
|
-
|
|
13890
|
-
// node_modules/axios/lib/core/mergeConfig.js
|
|
13891
|
-
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
|
|
13892
|
-
function mergeConfig(config1, config2) {
|
|
13893
|
-
config2 = config2 || {};
|
|
13894
|
-
const config = {};
|
|
13895
|
-
function getMergedValue(target, source, prop, caseless) {
|
|
13896
|
-
if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
|
|
13897
|
-
return utils_default.merge.call({ caseless }, target, source);
|
|
13898
|
-
} else if (utils_default.isPlainObject(source)) {
|
|
13899
|
-
return utils_default.merge({}, source);
|
|
13900
|
-
} else if (utils_default.isArray(source)) {
|
|
13901
|
-
return source.slice();
|
|
13902
|
-
}
|
|
13903
|
-
return source;
|
|
13904
|
-
}
|
|
13905
|
-
function mergeDeepProperties(a, b, prop, caseless) {
|
|
13906
|
-
if (!utils_default.isUndefined(b)) {
|
|
13907
|
-
return getMergedValue(a, b, prop, caseless);
|
|
13908
|
-
} else if (!utils_default.isUndefined(a)) {
|
|
13909
|
-
return getMergedValue(void 0, a, prop, caseless);
|
|
13910
|
-
}
|
|
13911
|
-
}
|
|
13912
|
-
function valueFromConfig2(a, b) {
|
|
13913
|
-
if (!utils_default.isUndefined(b)) {
|
|
13914
|
-
return getMergedValue(void 0, b);
|
|
13915
|
-
}
|
|
13916
|
-
}
|
|
13917
|
-
function defaultToConfig2(a, b) {
|
|
13918
|
-
if (!utils_default.isUndefined(b)) {
|
|
13919
|
-
return getMergedValue(void 0, b);
|
|
13920
|
-
} else if (!utils_default.isUndefined(a)) {
|
|
13921
|
-
return getMergedValue(void 0, a);
|
|
13922
|
-
}
|
|
13923
|
-
}
|
|
13924
|
-
function mergeDirectKeys(a, b, prop) {
|
|
13925
|
-
if (prop in config2) {
|
|
13926
|
-
return getMergedValue(a, b);
|
|
13927
|
-
} else if (prop in config1) {
|
|
13928
|
-
return getMergedValue(void 0, a);
|
|
13929
|
-
}
|
|
13930
|
-
}
|
|
13931
|
-
const mergeMap = {
|
|
13932
|
-
url: valueFromConfig2,
|
|
13933
|
-
method: valueFromConfig2,
|
|
13934
|
-
data: valueFromConfig2,
|
|
13935
|
-
baseURL: defaultToConfig2,
|
|
13936
|
-
transformRequest: defaultToConfig2,
|
|
13937
|
-
transformResponse: defaultToConfig2,
|
|
13938
|
-
paramsSerializer: defaultToConfig2,
|
|
13939
|
-
timeout: defaultToConfig2,
|
|
13940
|
-
timeoutMessage: defaultToConfig2,
|
|
13941
|
-
withCredentials: defaultToConfig2,
|
|
13942
|
-
withXSRFToken: defaultToConfig2,
|
|
13943
|
-
adapter: defaultToConfig2,
|
|
13944
|
-
responseType: defaultToConfig2,
|
|
13945
|
-
xsrfCookieName: defaultToConfig2,
|
|
13946
|
-
xsrfHeaderName: defaultToConfig2,
|
|
13947
|
-
onUploadProgress: defaultToConfig2,
|
|
13948
|
-
onDownloadProgress: defaultToConfig2,
|
|
13949
|
-
decompress: defaultToConfig2,
|
|
13950
|
-
maxContentLength: defaultToConfig2,
|
|
13951
|
-
maxBodyLength: defaultToConfig2,
|
|
13952
|
-
beforeRedirect: defaultToConfig2,
|
|
13953
|
-
transport: defaultToConfig2,
|
|
13954
|
-
httpAgent: defaultToConfig2,
|
|
13955
|
-
httpsAgent: defaultToConfig2,
|
|
13956
|
-
cancelToken: defaultToConfig2,
|
|
13957
|
-
socketPath: defaultToConfig2,
|
|
13958
|
-
responseEncoding: defaultToConfig2,
|
|
13959
|
-
validateStatus: mergeDirectKeys,
|
|
13960
|
-
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
13961
|
-
};
|
|
13962
|
-
utils_default.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
|
|
13963
|
-
const merge2 = mergeMap[prop] || mergeDeepProperties;
|
|
13964
|
-
const configValue = merge2(config1[prop], config2[prop], prop);
|
|
13965
|
-
utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
12889
|
+
abort();
|
|
12890
|
+
});
|
|
12891
|
+
}
|
|
12892
|
+
if (utils_default.isStream(data)) {
|
|
12893
|
+
let ended = false;
|
|
12894
|
+
let errored = false;
|
|
12895
|
+
data.on("end", () => {
|
|
12896
|
+
ended = true;
|
|
12897
|
+
});
|
|
12898
|
+
data.once("error", (err) => {
|
|
12899
|
+
errored = true;
|
|
12900
|
+
req.destroy(err);
|
|
12901
|
+
});
|
|
12902
|
+
data.on("close", () => {
|
|
12903
|
+
if (!ended && !errored) {
|
|
12904
|
+
abort(new CanceledError_default("Request stream has been aborted", config, req));
|
|
12905
|
+
}
|
|
12906
|
+
});
|
|
12907
|
+
data.pipe(req);
|
|
12908
|
+
} else {
|
|
12909
|
+
req.end(data);
|
|
12910
|
+
}
|
|
13966
12911
|
});
|
|
13967
|
-
|
|
13968
|
-
}
|
|
12912
|
+
};
|
|
13969
12913
|
|
|
13970
|
-
// node_modules/axios/lib/helpers/
|
|
13971
|
-
var
|
|
13972
|
-
|
|
13973
|
-
|
|
13974
|
-
|
|
13975
|
-
|
|
13976
|
-
|
|
13977
|
-
|
|
13978
|
-
"
|
|
13979
|
-
|
|
13980
|
-
|
|
13981
|
-
|
|
13982
|
-
|
|
13983
|
-
|
|
13984
|
-
|
|
13985
|
-
|
|
13986
|
-
|
|
13987
|
-
|
|
13988
|
-
headers.setContentType([type || "multipart/form-data", ...tokens].join("; "));
|
|
12914
|
+
// node_modules/axios/lib/helpers/cookies.js
|
|
12915
|
+
var cookies_default = platform_default.hasStandardBrowserEnv ? (
|
|
12916
|
+
// Standard browser envs support document.cookie
|
|
12917
|
+
{
|
|
12918
|
+
write(name, value, expires, path, domain, secure) {
|
|
12919
|
+
const cookie = [name + "=" + encodeURIComponent(value)];
|
|
12920
|
+
utils_default.isNumber(expires) && cookie.push("expires=" + new Date(expires).toGMTString());
|
|
12921
|
+
utils_default.isString(path) && cookie.push("path=" + path);
|
|
12922
|
+
utils_default.isString(domain) && cookie.push("domain=" + domain);
|
|
12923
|
+
secure === true && cookie.push("secure");
|
|
12924
|
+
document.cookie = cookie.join("; ");
|
|
12925
|
+
},
|
|
12926
|
+
read(name) {
|
|
12927
|
+
const match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
|
|
12928
|
+
return match ? decodeURIComponent(match[3]) : null;
|
|
12929
|
+
},
|
|
12930
|
+
remove(name) {
|
|
12931
|
+
this.write(name, "", Date.now() - 864e5);
|
|
13989
12932
|
}
|
|
13990
12933
|
}
|
|
13991
|
-
|
|
13992
|
-
|
|
13993
|
-
|
|
13994
|
-
|
|
13995
|
-
|
|
13996
|
-
|
|
13997
|
-
|
|
12934
|
+
) : (
|
|
12935
|
+
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
12936
|
+
{
|
|
12937
|
+
write() {
|
|
12938
|
+
},
|
|
12939
|
+
read() {
|
|
12940
|
+
return null;
|
|
12941
|
+
},
|
|
12942
|
+
remove() {
|
|
13998
12943
|
}
|
|
13999
12944
|
}
|
|
14000
|
-
|
|
14001
|
-
|
|
12945
|
+
);
|
|
12946
|
+
|
|
12947
|
+
// node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
12948
|
+
var isURLSameOrigin_default = platform_default.hasStandardBrowserEnv ? (
|
|
12949
|
+
// Standard browser envs have full support of the APIs needed to test
|
|
12950
|
+
// whether the request URL is of the same origin as current location.
|
|
12951
|
+
function standardBrowserEnv() {
|
|
12952
|
+
const msie = /(msie|trident)/i.test(navigator.userAgent);
|
|
12953
|
+
const urlParsingNode = document.createElement("a");
|
|
12954
|
+
let originURL;
|
|
12955
|
+
function resolveURL(url2) {
|
|
12956
|
+
let href = url2;
|
|
12957
|
+
if (msie) {
|
|
12958
|
+
urlParsingNode.setAttribute("href", href);
|
|
12959
|
+
href = urlParsingNode.href;
|
|
12960
|
+
}
|
|
12961
|
+
urlParsingNode.setAttribute("href", href);
|
|
12962
|
+
return {
|
|
12963
|
+
href: urlParsingNode.href,
|
|
12964
|
+
protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, "") : "",
|
|
12965
|
+
host: urlParsingNode.host,
|
|
12966
|
+
search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, "") : "",
|
|
12967
|
+
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, "") : "",
|
|
12968
|
+
hostname: urlParsingNode.hostname,
|
|
12969
|
+
port: urlParsingNode.port,
|
|
12970
|
+
pathname: urlParsingNode.pathname.charAt(0) === "/" ? urlParsingNode.pathname : "/" + urlParsingNode.pathname
|
|
12971
|
+
};
|
|
12972
|
+
}
|
|
12973
|
+
originURL = resolveURL(window.location.href);
|
|
12974
|
+
return function isURLSameOrigin(requestURL) {
|
|
12975
|
+
const parsed = utils_default.isString(requestURL) ? resolveURL(requestURL) : requestURL;
|
|
12976
|
+
return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
|
|
12977
|
+
};
|
|
12978
|
+
}()
|
|
12979
|
+
) : (
|
|
12980
|
+
// Non standard browser envs (web workers, react-native) lack needed support.
|
|
12981
|
+
/* @__PURE__ */ function nonStandardBrowserEnv() {
|
|
12982
|
+
return function isURLSameOrigin() {
|
|
12983
|
+
return true;
|
|
12984
|
+
};
|
|
12985
|
+
}()
|
|
12986
|
+
);
|
|
14002
12987
|
|
|
14003
12988
|
// node_modules/axios/lib/adapters/xhr.js
|
|
12989
|
+
function progressEventReducer(listener, isDownloadStream) {
|
|
12990
|
+
let bytesNotified = 0;
|
|
12991
|
+
const _speedometer = speedometer_default(50, 250);
|
|
12992
|
+
return (e2) => {
|
|
12993
|
+
const loaded = e2.loaded;
|
|
12994
|
+
const total = e2.lengthComputable ? e2.total : void 0;
|
|
12995
|
+
const progressBytes = loaded - bytesNotified;
|
|
12996
|
+
const rate = _speedometer(progressBytes);
|
|
12997
|
+
const inRange = loaded <= total;
|
|
12998
|
+
bytesNotified = loaded;
|
|
12999
|
+
const data = {
|
|
13000
|
+
loaded,
|
|
13001
|
+
total,
|
|
13002
|
+
progress: total ? loaded / total : void 0,
|
|
13003
|
+
bytes: progressBytes,
|
|
13004
|
+
rate: rate ? rate : void 0,
|
|
13005
|
+
estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
|
|
13006
|
+
event: e2
|
|
13007
|
+
};
|
|
13008
|
+
data[isDownloadStream ? "download" : "upload"] = true;
|
|
13009
|
+
listener(data);
|
|
13010
|
+
};
|
|
13011
|
+
}
|
|
14004
13012
|
var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
|
|
14005
13013
|
var xhr_default = isXHRAdapterSupported && function(config) {
|
|
14006
13014
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
14007
|
-
|
|
14008
|
-
|
|
14009
|
-
|
|
14010
|
-
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
|
13015
|
+
let requestData = config.data;
|
|
13016
|
+
const requestHeaders = AxiosHeaders_default.from(config.headers).normalize();
|
|
13017
|
+
let { responseType, withXSRFToken } = config;
|
|
14011
13018
|
let onCanceled;
|
|
14012
|
-
let uploadThrottled, downloadThrottled;
|
|
14013
|
-
let flushUpload, flushDownload;
|
|
14014
13019
|
function done() {
|
|
14015
|
-
|
|
14016
|
-
|
|
14017
|
-
|
|
14018
|
-
|
|
13020
|
+
if (config.cancelToken) {
|
|
13021
|
+
config.cancelToken.unsubscribe(onCanceled);
|
|
13022
|
+
}
|
|
13023
|
+
if (config.signal) {
|
|
13024
|
+
config.signal.removeEventListener("abort", onCanceled);
|
|
13025
|
+
}
|
|
13026
|
+
}
|
|
13027
|
+
let contentType;
|
|
13028
|
+
if (utils_default.isFormData(requestData)) {
|
|
13029
|
+
if (platform_default.hasStandardBrowserEnv || platform_default.hasStandardBrowserWebWorkerEnv) {
|
|
13030
|
+
requestHeaders.setContentType(false);
|
|
13031
|
+
} else if ((contentType = requestHeaders.getContentType()) !== false) {
|
|
13032
|
+
const [type, ...tokens] = contentType ? contentType.split(";").map((token) => token.trim()).filter(Boolean) : [];
|
|
13033
|
+
requestHeaders.setContentType([type || "multipart/form-data", ...tokens].join("; "));
|
|
13034
|
+
}
|
|
14019
13035
|
}
|
|
14020
13036
|
let request = new XMLHttpRequest();
|
|
14021
|
-
|
|
14022
|
-
|
|
13037
|
+
if (config.auth) {
|
|
13038
|
+
const username = config.auth.username || "";
|
|
13039
|
+
const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : "";
|
|
13040
|
+
requestHeaders.set("Authorization", "Basic " + btoa(username + ":" + password));
|
|
13041
|
+
}
|
|
13042
|
+
const fullPath = buildFullPath(config.baseURL, config.url);
|
|
13043
|
+
request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
|
|
13044
|
+
request.timeout = config.timeout;
|
|
14023
13045
|
function onloadend() {
|
|
14024
13046
|
if (!request) {
|
|
14025
13047
|
return;
|
|
@@ -14070,10 +13092,10 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
14070
13092
|
request = null;
|
|
14071
13093
|
};
|
|
14072
13094
|
request.ontimeout = function handleTimeout() {
|
|
14073
|
-
let timeoutErrorMessage =
|
|
14074
|
-
const transitional2 =
|
|
14075
|
-
if (
|
|
14076
|
-
timeoutErrorMessage =
|
|
13095
|
+
let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
|
|
13096
|
+
const transitional2 = config.transitional || transitional_default;
|
|
13097
|
+
if (config.timeoutErrorMessage) {
|
|
13098
|
+
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
14077
13099
|
}
|
|
14078
13100
|
reject(new AxiosError_default(
|
|
14079
13101
|
timeoutErrorMessage,
|
|
@@ -14083,28 +13105,34 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
14083
13105
|
));
|
|
14084
13106
|
request = null;
|
|
14085
13107
|
};
|
|
13108
|
+
if (platform_default.hasStandardBrowserEnv) {
|
|
13109
|
+
withXSRFToken && utils_default.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config));
|
|
13110
|
+
if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin_default(fullPath)) {
|
|
13111
|
+
const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies_default.read(config.xsrfCookieName);
|
|
13112
|
+
if (xsrfValue) {
|
|
13113
|
+
requestHeaders.set(config.xsrfHeaderName, xsrfValue);
|
|
13114
|
+
}
|
|
13115
|
+
}
|
|
13116
|
+
}
|
|
14086
13117
|
requestData === void 0 && requestHeaders.setContentType(null);
|
|
14087
13118
|
if ("setRequestHeader" in request) {
|
|
14088
13119
|
utils_default.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
|
|
14089
13120
|
request.setRequestHeader(key, val);
|
|
14090
13121
|
});
|
|
14091
13122
|
}
|
|
14092
|
-
if (!utils_default.isUndefined(
|
|
14093
|
-
request.withCredentials = !!
|
|
13123
|
+
if (!utils_default.isUndefined(config.withCredentials)) {
|
|
13124
|
+
request.withCredentials = !!config.withCredentials;
|
|
14094
13125
|
}
|
|
14095
13126
|
if (responseType && responseType !== "json") {
|
|
14096
|
-
request.responseType =
|
|
13127
|
+
request.responseType = config.responseType;
|
|
14097
13128
|
}
|
|
14098
|
-
if (onDownloadProgress) {
|
|
14099
|
-
|
|
14100
|
-
request.addEventListener("progress", downloadThrottled);
|
|
13129
|
+
if (typeof config.onDownloadProgress === "function") {
|
|
13130
|
+
request.addEventListener("progress", progressEventReducer(config.onDownloadProgress, true));
|
|
14101
13131
|
}
|
|
14102
|
-
if (onUploadProgress && request.upload) {
|
|
14103
|
-
|
|
14104
|
-
request.upload.addEventListener("progress", uploadThrottled);
|
|
14105
|
-
request.upload.addEventListener("loadend", flushUpload);
|
|
13132
|
+
if (typeof config.onUploadProgress === "function" && request.upload) {
|
|
13133
|
+
request.upload.addEventListener("progress", progressEventReducer(config.onUploadProgress));
|
|
14106
13134
|
}
|
|
14107
|
-
if (
|
|
13135
|
+
if (config.cancelToken || config.signal) {
|
|
14108
13136
|
onCanceled = (cancel) => {
|
|
14109
13137
|
if (!request) {
|
|
14110
13138
|
return;
|
|
@@ -14113,12 +13141,12 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
14113
13141
|
request.abort();
|
|
14114
13142
|
request = null;
|
|
14115
13143
|
};
|
|
14116
|
-
|
|
14117
|
-
if (
|
|
14118
|
-
|
|
13144
|
+
config.cancelToken && config.cancelToken.subscribe(onCanceled);
|
|
13145
|
+
if (config.signal) {
|
|
13146
|
+
config.signal.aborted ? onCanceled() : config.signal.addEventListener("abort", onCanceled);
|
|
14119
13147
|
}
|
|
14120
13148
|
}
|
|
14121
|
-
const protocol = parseProtocol(
|
|
13149
|
+
const protocol = parseProtocol(fullPath);
|
|
14122
13150
|
if (protocol && platform_default.protocols.indexOf(protocol) === -1) {
|
|
14123
13151
|
reject(new AxiosError_default("Unsupported protocol " + protocol + ":", AxiosError_default.ERR_BAD_REQUEST, config));
|
|
14124
13152
|
return;
|
|
@@ -14127,288 +13155,10 @@ var xhr_default = isXHRAdapterSupported && function(config) {
|
|
|
14127
13155
|
});
|
|
14128
13156
|
};
|
|
14129
13157
|
|
|
14130
|
-
// node_modules/axios/lib/helpers/composeSignals.js
|
|
14131
|
-
var composeSignals = (signals, timeout) => {
|
|
14132
|
-
const { length } = signals = signals ? signals.filter(Boolean) : [];
|
|
14133
|
-
if (timeout || length) {
|
|
14134
|
-
let controller = new AbortController();
|
|
14135
|
-
let aborted;
|
|
14136
|
-
const onabort = function(reason) {
|
|
14137
|
-
if (!aborted) {
|
|
14138
|
-
aborted = true;
|
|
14139
|
-
unsubscribe();
|
|
14140
|
-
const err = reason instanceof Error ? reason : this.reason;
|
|
14141
|
-
controller.abort(err instanceof AxiosError_default ? err : new CanceledError_default(err instanceof Error ? err.message : err));
|
|
14142
|
-
}
|
|
14143
|
-
};
|
|
14144
|
-
let timer = timeout && setTimeout(() => {
|
|
14145
|
-
timer = null;
|
|
14146
|
-
onabort(new AxiosError_default(`timeout ${timeout} of ms exceeded`, AxiosError_default.ETIMEDOUT));
|
|
14147
|
-
}, timeout);
|
|
14148
|
-
const unsubscribe = () => {
|
|
14149
|
-
if (signals) {
|
|
14150
|
-
timer && clearTimeout(timer);
|
|
14151
|
-
timer = null;
|
|
14152
|
-
signals.forEach((signal2) => {
|
|
14153
|
-
signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
|
|
14154
|
-
});
|
|
14155
|
-
signals = null;
|
|
14156
|
-
}
|
|
14157
|
-
};
|
|
14158
|
-
signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
|
|
14159
|
-
const { signal } = controller;
|
|
14160
|
-
signal.unsubscribe = () => utils_default.asap(unsubscribe);
|
|
14161
|
-
return signal;
|
|
14162
|
-
}
|
|
14163
|
-
};
|
|
14164
|
-
var composeSignals_default = composeSignals;
|
|
14165
|
-
|
|
14166
|
-
// node_modules/axios/lib/helpers/trackStream.js
|
|
14167
|
-
var streamChunk = function* (chunk, chunkSize) {
|
|
14168
|
-
let len = chunk.byteLength;
|
|
14169
|
-
if (!chunkSize || len < chunkSize) {
|
|
14170
|
-
yield chunk;
|
|
14171
|
-
return;
|
|
14172
|
-
}
|
|
14173
|
-
let pos = 0;
|
|
14174
|
-
let end;
|
|
14175
|
-
while (pos < len) {
|
|
14176
|
-
end = pos + chunkSize;
|
|
14177
|
-
yield chunk.slice(pos, end);
|
|
14178
|
-
pos = end;
|
|
14179
|
-
}
|
|
14180
|
-
};
|
|
14181
|
-
var readBytes = async function* (iterable, chunkSize) {
|
|
14182
|
-
for await (const chunk of readStream(iterable)) {
|
|
14183
|
-
yield* streamChunk(chunk, chunkSize);
|
|
14184
|
-
}
|
|
14185
|
-
};
|
|
14186
|
-
var readStream = async function* (stream4) {
|
|
14187
|
-
if (stream4[Symbol.asyncIterator]) {
|
|
14188
|
-
yield* stream4;
|
|
14189
|
-
return;
|
|
14190
|
-
}
|
|
14191
|
-
const reader = stream4.getReader();
|
|
14192
|
-
try {
|
|
14193
|
-
for (; ; ) {
|
|
14194
|
-
const { done, value } = await reader.read();
|
|
14195
|
-
if (done) {
|
|
14196
|
-
break;
|
|
14197
|
-
}
|
|
14198
|
-
yield value;
|
|
14199
|
-
}
|
|
14200
|
-
} finally {
|
|
14201
|
-
await reader.cancel();
|
|
14202
|
-
}
|
|
14203
|
-
};
|
|
14204
|
-
var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
|
|
14205
|
-
const iterator = readBytes(stream4, chunkSize);
|
|
14206
|
-
let bytes = 0;
|
|
14207
|
-
let done;
|
|
14208
|
-
let _onFinish = (e2) => {
|
|
14209
|
-
if (!done) {
|
|
14210
|
-
done = true;
|
|
14211
|
-
onFinish && onFinish(e2);
|
|
14212
|
-
}
|
|
14213
|
-
};
|
|
14214
|
-
return new ReadableStream({
|
|
14215
|
-
async pull(controller) {
|
|
14216
|
-
try {
|
|
14217
|
-
const { done: done2, value } = await iterator.next();
|
|
14218
|
-
if (done2) {
|
|
14219
|
-
_onFinish();
|
|
14220
|
-
controller.close();
|
|
14221
|
-
return;
|
|
14222
|
-
}
|
|
14223
|
-
let len = value.byteLength;
|
|
14224
|
-
if (onProgress) {
|
|
14225
|
-
let loadedBytes = bytes += len;
|
|
14226
|
-
onProgress(loadedBytes);
|
|
14227
|
-
}
|
|
14228
|
-
controller.enqueue(new Uint8Array(value));
|
|
14229
|
-
} catch (err) {
|
|
14230
|
-
_onFinish(err);
|
|
14231
|
-
throw err;
|
|
14232
|
-
}
|
|
14233
|
-
},
|
|
14234
|
-
cancel(reason) {
|
|
14235
|
-
_onFinish(reason);
|
|
14236
|
-
return iterator.return();
|
|
14237
|
-
}
|
|
14238
|
-
}, {
|
|
14239
|
-
highWaterMark: 2
|
|
14240
|
-
});
|
|
14241
|
-
};
|
|
14242
|
-
|
|
14243
|
-
// node_modules/axios/lib/adapters/fetch.js
|
|
14244
|
-
var isFetchSupported = typeof fetch === "function" && typeof Request === "function" && typeof Response === "function";
|
|
14245
|
-
var isReadableStreamSupported = isFetchSupported && typeof ReadableStream === "function";
|
|
14246
|
-
var encodeText = isFetchSupported && (typeof TextEncoder === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Response(str).arrayBuffer()));
|
|
14247
|
-
var test = (fn, ...args) => {
|
|
14248
|
-
try {
|
|
14249
|
-
return !!fn(...args);
|
|
14250
|
-
} catch (e2) {
|
|
14251
|
-
return false;
|
|
14252
|
-
}
|
|
14253
|
-
};
|
|
14254
|
-
var supportsRequestStream = isReadableStreamSupported && test(() => {
|
|
14255
|
-
let duplexAccessed = false;
|
|
14256
|
-
const hasContentType = new Request(platform_default.origin, {
|
|
14257
|
-
body: new ReadableStream(),
|
|
14258
|
-
method: "POST",
|
|
14259
|
-
get duplex() {
|
|
14260
|
-
duplexAccessed = true;
|
|
14261
|
-
return "half";
|
|
14262
|
-
}
|
|
14263
|
-
}).headers.has("Content-Type");
|
|
14264
|
-
return duplexAccessed && !hasContentType;
|
|
14265
|
-
});
|
|
14266
|
-
var DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
14267
|
-
var supportsResponseStream = isReadableStreamSupported && test(() => utils_default.isReadableStream(new Response("").body));
|
|
14268
|
-
var resolvers = {
|
|
14269
|
-
stream: supportsResponseStream && ((res) => res.body)
|
|
14270
|
-
};
|
|
14271
|
-
isFetchSupported && ((res) => {
|
|
14272
|
-
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type) => {
|
|
14273
|
-
!resolvers[type] && (resolvers[type] = utils_default.isFunction(res[type]) ? (res2) => res2[type]() : (_, config) => {
|
|
14274
|
-
throw new AxiosError_default(`Response type '${type}' is not supported`, AxiosError_default.ERR_NOT_SUPPORT, config);
|
|
14275
|
-
});
|
|
14276
|
-
});
|
|
14277
|
-
})(new Response());
|
|
14278
|
-
var getBodyLength = async (body) => {
|
|
14279
|
-
if (body == null) {
|
|
14280
|
-
return 0;
|
|
14281
|
-
}
|
|
14282
|
-
if (utils_default.isBlob(body)) {
|
|
14283
|
-
return body.size;
|
|
14284
|
-
}
|
|
14285
|
-
if (utils_default.isSpecCompliantForm(body)) {
|
|
14286
|
-
const _request = new Request(platform_default.origin, {
|
|
14287
|
-
method: "POST",
|
|
14288
|
-
body
|
|
14289
|
-
});
|
|
14290
|
-
return (await _request.arrayBuffer()).byteLength;
|
|
14291
|
-
}
|
|
14292
|
-
if (utils_default.isArrayBufferView(body) || utils_default.isArrayBuffer(body)) {
|
|
14293
|
-
return body.byteLength;
|
|
14294
|
-
}
|
|
14295
|
-
if (utils_default.isURLSearchParams(body)) {
|
|
14296
|
-
body = body + "";
|
|
14297
|
-
}
|
|
14298
|
-
if (utils_default.isString(body)) {
|
|
14299
|
-
return (await encodeText(body)).byteLength;
|
|
14300
|
-
}
|
|
14301
|
-
};
|
|
14302
|
-
var resolveBodyLength = async (headers, body) => {
|
|
14303
|
-
const length = utils_default.toFiniteNumber(headers.getContentLength());
|
|
14304
|
-
return length == null ? getBodyLength(body) : length;
|
|
14305
|
-
};
|
|
14306
|
-
var fetch_default = isFetchSupported && (async (config) => {
|
|
14307
|
-
let {
|
|
14308
|
-
url: url2,
|
|
14309
|
-
method,
|
|
14310
|
-
data,
|
|
14311
|
-
signal,
|
|
14312
|
-
cancelToken,
|
|
14313
|
-
timeout,
|
|
14314
|
-
onDownloadProgress,
|
|
14315
|
-
onUploadProgress,
|
|
14316
|
-
responseType,
|
|
14317
|
-
headers,
|
|
14318
|
-
withCredentials = "same-origin",
|
|
14319
|
-
fetchOptions
|
|
14320
|
-
} = resolveConfig_default(config);
|
|
14321
|
-
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
14322
|
-
let composedSignal = composeSignals_default([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
14323
|
-
let request;
|
|
14324
|
-
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
14325
|
-
composedSignal.unsubscribe();
|
|
14326
|
-
});
|
|
14327
|
-
let requestContentLength;
|
|
14328
|
-
try {
|
|
14329
|
-
if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
|
|
14330
|
-
let _request = new Request(url2, {
|
|
14331
|
-
method: "POST",
|
|
14332
|
-
body: data,
|
|
14333
|
-
duplex: "half"
|
|
14334
|
-
});
|
|
14335
|
-
let contentTypeHeader;
|
|
14336
|
-
if (utils_default.isFormData(data) && (contentTypeHeader = _request.headers.get("content-type"))) {
|
|
14337
|
-
headers.setContentType(contentTypeHeader);
|
|
14338
|
-
}
|
|
14339
|
-
if (_request.body) {
|
|
14340
|
-
const [onProgress, flush] = progressEventDecorator(
|
|
14341
|
-
requestContentLength,
|
|
14342
|
-
progressEventReducer(asyncDecorator(onUploadProgress))
|
|
14343
|
-
);
|
|
14344
|
-
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
14345
|
-
}
|
|
14346
|
-
}
|
|
14347
|
-
if (!utils_default.isString(withCredentials)) {
|
|
14348
|
-
withCredentials = withCredentials ? "include" : "omit";
|
|
14349
|
-
}
|
|
14350
|
-
const isCredentialsSupported = "credentials" in Request.prototype;
|
|
14351
|
-
request = new Request(url2, {
|
|
14352
|
-
...fetchOptions,
|
|
14353
|
-
signal: composedSignal,
|
|
14354
|
-
method: method.toUpperCase(),
|
|
14355
|
-
headers: headers.normalize().toJSON(),
|
|
14356
|
-
body: data,
|
|
14357
|
-
duplex: "half",
|
|
14358
|
-
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
14359
|
-
});
|
|
14360
|
-
let response = await fetch(request);
|
|
14361
|
-
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
14362
|
-
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
14363
|
-
const options = {};
|
|
14364
|
-
["status", "statusText", "headers"].forEach((prop) => {
|
|
14365
|
-
options[prop] = response[prop];
|
|
14366
|
-
});
|
|
14367
|
-
const responseContentLength = utils_default.toFiniteNumber(response.headers.get("content-length"));
|
|
14368
|
-
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
|
|
14369
|
-
responseContentLength,
|
|
14370
|
-
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
14371
|
-
) || [];
|
|
14372
|
-
response = new Response(
|
|
14373
|
-
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
14374
|
-
flush && flush();
|
|
14375
|
-
unsubscribe && unsubscribe();
|
|
14376
|
-
}),
|
|
14377
|
-
options
|
|
14378
|
-
);
|
|
14379
|
-
}
|
|
14380
|
-
responseType = responseType || "text";
|
|
14381
|
-
let responseData = await resolvers[utils_default.findKey(resolvers, responseType) || "text"](response, config);
|
|
14382
|
-
!isStreamResponse && unsubscribe && unsubscribe();
|
|
14383
|
-
return await new Promise((resolve, reject) => {
|
|
14384
|
-
settle(resolve, reject, {
|
|
14385
|
-
data: responseData,
|
|
14386
|
-
headers: AxiosHeaders_default.from(response.headers),
|
|
14387
|
-
status: response.status,
|
|
14388
|
-
statusText: response.statusText,
|
|
14389
|
-
config,
|
|
14390
|
-
request
|
|
14391
|
-
});
|
|
14392
|
-
});
|
|
14393
|
-
} catch (err) {
|
|
14394
|
-
unsubscribe && unsubscribe();
|
|
14395
|
-
if (err && err.name === "TypeError" && /fetch/i.test(err.message)) {
|
|
14396
|
-
throw Object.assign(
|
|
14397
|
-
new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config, request),
|
|
14398
|
-
{
|
|
14399
|
-
cause: err.cause || err
|
|
14400
|
-
}
|
|
14401
|
-
);
|
|
14402
|
-
}
|
|
14403
|
-
throw AxiosError_default.from(err, err && err.code, config, request);
|
|
14404
|
-
}
|
|
14405
|
-
});
|
|
14406
|
-
|
|
14407
13158
|
// node_modules/axios/lib/adapters/adapters.js
|
|
14408
13159
|
var knownAdapters = {
|
|
14409
13160
|
http: http_default,
|
|
14410
|
-
xhr: xhr_default
|
|
14411
|
-
fetch: fetch_default
|
|
13161
|
+
xhr: xhr_default
|
|
14412
13162
|
};
|
|
14413
13163
|
utils_default.forEach(knownAdapters, (fn, value) => {
|
|
14414
13164
|
if (fn) {
|
|
@@ -14503,6 +13253,86 @@ function dispatchRequest(config) {
|
|
|
14503
13253
|
});
|
|
14504
13254
|
}
|
|
14505
13255
|
|
|
13256
|
+
// node_modules/axios/lib/core/mergeConfig.js
|
|
13257
|
+
var headersToObject = (thing) => thing instanceof AxiosHeaders_default ? { ...thing } : thing;
|
|
13258
|
+
function mergeConfig(config1, config2) {
|
|
13259
|
+
config2 = config2 || {};
|
|
13260
|
+
const config = {};
|
|
13261
|
+
function getMergedValue(target, source, caseless) {
|
|
13262
|
+
if (utils_default.isPlainObject(target) && utils_default.isPlainObject(source)) {
|
|
13263
|
+
return utils_default.merge.call({ caseless }, target, source);
|
|
13264
|
+
} else if (utils_default.isPlainObject(source)) {
|
|
13265
|
+
return utils_default.merge({}, source);
|
|
13266
|
+
} else if (utils_default.isArray(source)) {
|
|
13267
|
+
return source.slice();
|
|
13268
|
+
}
|
|
13269
|
+
return source;
|
|
13270
|
+
}
|
|
13271
|
+
function mergeDeepProperties(a, b, caseless) {
|
|
13272
|
+
if (!utils_default.isUndefined(b)) {
|
|
13273
|
+
return getMergedValue(a, b, caseless);
|
|
13274
|
+
} else if (!utils_default.isUndefined(a)) {
|
|
13275
|
+
return getMergedValue(void 0, a, caseless);
|
|
13276
|
+
}
|
|
13277
|
+
}
|
|
13278
|
+
function valueFromConfig2(a, b) {
|
|
13279
|
+
if (!utils_default.isUndefined(b)) {
|
|
13280
|
+
return getMergedValue(void 0, b);
|
|
13281
|
+
}
|
|
13282
|
+
}
|
|
13283
|
+
function defaultToConfig2(a, b) {
|
|
13284
|
+
if (!utils_default.isUndefined(b)) {
|
|
13285
|
+
return getMergedValue(void 0, b);
|
|
13286
|
+
} else if (!utils_default.isUndefined(a)) {
|
|
13287
|
+
return getMergedValue(void 0, a);
|
|
13288
|
+
}
|
|
13289
|
+
}
|
|
13290
|
+
function mergeDirectKeys(a, b, prop) {
|
|
13291
|
+
if (prop in config2) {
|
|
13292
|
+
return getMergedValue(a, b);
|
|
13293
|
+
} else if (prop in config1) {
|
|
13294
|
+
return getMergedValue(void 0, a);
|
|
13295
|
+
}
|
|
13296
|
+
}
|
|
13297
|
+
const mergeMap = {
|
|
13298
|
+
url: valueFromConfig2,
|
|
13299
|
+
method: valueFromConfig2,
|
|
13300
|
+
data: valueFromConfig2,
|
|
13301
|
+
baseURL: defaultToConfig2,
|
|
13302
|
+
transformRequest: defaultToConfig2,
|
|
13303
|
+
transformResponse: defaultToConfig2,
|
|
13304
|
+
paramsSerializer: defaultToConfig2,
|
|
13305
|
+
timeout: defaultToConfig2,
|
|
13306
|
+
timeoutMessage: defaultToConfig2,
|
|
13307
|
+
withCredentials: defaultToConfig2,
|
|
13308
|
+
withXSRFToken: defaultToConfig2,
|
|
13309
|
+
adapter: defaultToConfig2,
|
|
13310
|
+
responseType: defaultToConfig2,
|
|
13311
|
+
xsrfCookieName: defaultToConfig2,
|
|
13312
|
+
xsrfHeaderName: defaultToConfig2,
|
|
13313
|
+
onUploadProgress: defaultToConfig2,
|
|
13314
|
+
onDownloadProgress: defaultToConfig2,
|
|
13315
|
+
decompress: defaultToConfig2,
|
|
13316
|
+
maxContentLength: defaultToConfig2,
|
|
13317
|
+
maxBodyLength: defaultToConfig2,
|
|
13318
|
+
beforeRedirect: defaultToConfig2,
|
|
13319
|
+
transport: defaultToConfig2,
|
|
13320
|
+
httpAgent: defaultToConfig2,
|
|
13321
|
+
httpsAgent: defaultToConfig2,
|
|
13322
|
+
cancelToken: defaultToConfig2,
|
|
13323
|
+
socketPath: defaultToConfig2,
|
|
13324
|
+
responseEncoding: defaultToConfig2,
|
|
13325
|
+
validateStatus: mergeDirectKeys,
|
|
13326
|
+
headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
|
|
13327
|
+
};
|
|
13328
|
+
utils_default.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
|
|
13329
|
+
const merge2 = mergeMap[prop] || mergeDeepProperties;
|
|
13330
|
+
const configValue = merge2(config1[prop], config2[prop], prop);
|
|
13331
|
+
utils_default.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config[prop] = configValue);
|
|
13332
|
+
});
|
|
13333
|
+
return config;
|
|
13334
|
+
}
|
|
13335
|
+
|
|
14506
13336
|
// node_modules/axios/lib/helpers/validator.js
|
|
14507
13337
|
var validators = {};
|
|
14508
13338
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((type, i) => {
|
|
@@ -14534,12 +13364,6 @@ validators.transitional = function transitional(validator, version, message) {
|
|
|
14534
13364
|
return validator ? validator(value, opt, opts) : true;
|
|
14535
13365
|
};
|
|
14536
13366
|
};
|
|
14537
|
-
validators.spelling = function spelling(correctSpelling) {
|
|
14538
|
-
return (value, opt) => {
|
|
14539
|
-
console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
|
|
14540
|
-
return true;
|
|
14541
|
-
};
|
|
14542
|
-
};
|
|
14543
13367
|
function assertOptions(options, schema, allowUnknown) {
|
|
14544
13368
|
if (typeof options !== "object") {
|
|
14545
13369
|
throw new AxiosError_default("options must be an object", AxiosError_default.ERR_BAD_OPTION_VALUE);
|
|
@@ -14590,16 +13414,13 @@ var Axios = class {
|
|
|
14590
13414
|
return await this._request(configOrUrl, config);
|
|
14591
13415
|
} catch (err) {
|
|
14592
13416
|
if (err instanceof Error) {
|
|
14593
|
-
let dummy
|
|
14594
|
-
Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
|
|
13417
|
+
let dummy;
|
|
13418
|
+
Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : dummy = new Error();
|
|
14595
13419
|
const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : "";
|
|
14596
|
-
|
|
14597
|
-
|
|
14598
|
-
|
|
14599
|
-
|
|
14600
|
-
err.stack += "\n" + stack;
|
|
14601
|
-
}
|
|
14602
|
-
} catch (e2) {
|
|
13420
|
+
if (!err.stack) {
|
|
13421
|
+
err.stack = stack;
|
|
13422
|
+
} else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) {
|
|
13423
|
+
err.stack += "\n" + stack;
|
|
14603
13424
|
}
|
|
14604
13425
|
}
|
|
14605
13426
|
throw err;
|
|
@@ -14633,16 +13454,6 @@ var Axios = class {
|
|
|
14633
13454
|
}, true);
|
|
14634
13455
|
}
|
|
14635
13456
|
}
|
|
14636
|
-
if (config.allowAbsoluteUrls !== void 0) {
|
|
14637
|
-
} else if (this.defaults.allowAbsoluteUrls !== void 0) {
|
|
14638
|
-
config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
|
|
14639
|
-
} else {
|
|
14640
|
-
config.allowAbsoluteUrls = true;
|
|
14641
|
-
}
|
|
14642
|
-
validator_default.assertOptions(config, {
|
|
14643
|
-
baseUrl: validators2.spelling("baseURL"),
|
|
14644
|
-
withXsrfToken: validators2.spelling("withXSRFToken")
|
|
14645
|
-
}, true);
|
|
14646
13457
|
config.method = (config.method || this.defaults.method || "get").toLowerCase();
|
|
14647
13458
|
let contextHeaders = headers && utils_default.merge(
|
|
14648
13459
|
headers.common,
|
|
@@ -14709,7 +13520,7 @@ var Axios = class {
|
|
|
14709
13520
|
}
|
|
14710
13521
|
getUri(config) {
|
|
14711
13522
|
config = mergeConfig(this.defaults, config);
|
|
14712
|
-
const fullPath = buildFullPath(config.baseURL, config.url
|
|
13523
|
+
const fullPath = buildFullPath(config.baseURL, config.url);
|
|
14713
13524
|
return buildURL(fullPath, config.params, config.paramsSerializer);
|
|
14714
13525
|
}
|
|
14715
13526
|
};
|
|
@@ -14812,15 +13623,6 @@ var CancelToken = class _CancelToken {
|
|
|
14812
13623
|
this._listeners.splice(index, 1);
|
|
14813
13624
|
}
|
|
14814
13625
|
}
|
|
14815
|
-
toAbortSignal() {
|
|
14816
|
-
const controller = new AbortController();
|
|
14817
|
-
const abort = (err) => {
|
|
14818
|
-
controller.abort(err);
|
|
14819
|
-
};
|
|
14820
|
-
this.subscribe(abort);
|
|
14821
|
-
controller.signal.unsubscribe = () => this.unsubscribe(abort);
|
|
14822
|
-
return controller.signal;
|
|
14823
|
-
}
|
|
14824
13626
|
/**
|
|
14825
13627
|
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
14826
13628
|
* cancels the `CancelToken`.
|