publish-microfrontend 1.9.0-beta.8154 → 1.9.0-beta.8182
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/lib/index.js +1020 -78
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -19416,9 +19416,9 @@ var require_iterate = __commonJS({
|
|
|
19416
19416
|
var async = require_async();
|
|
19417
19417
|
var abort = require_abort();
|
|
19418
19418
|
module2.exports = iterate;
|
|
19419
|
-
function iterate(list,
|
|
19419
|
+
function iterate(list, iterator2, state, callback) {
|
|
19420
19420
|
var key = state["keyedList"] ? state["keyedList"][state.index] : state.index;
|
|
19421
|
-
state.jobs[key] = runJob(
|
|
19421
|
+
state.jobs[key] = runJob(iterator2, key, list[key], function(error, output) {
|
|
19422
19422
|
if (!(key in state.jobs)) {
|
|
19423
19423
|
return;
|
|
19424
19424
|
}
|
|
@@ -19431,12 +19431,12 @@ var require_iterate = __commonJS({
|
|
|
19431
19431
|
callback(error, state.results);
|
|
19432
19432
|
});
|
|
19433
19433
|
}
|
|
19434
|
-
function runJob(
|
|
19434
|
+
function runJob(iterator2, key, item, callback) {
|
|
19435
19435
|
var aborter;
|
|
19436
|
-
if (
|
|
19437
|
-
aborter =
|
|
19436
|
+
if (iterator2.length == 2) {
|
|
19437
|
+
aborter = iterator2(item, async(callback));
|
|
19438
19438
|
} else {
|
|
19439
|
-
aborter =
|
|
19439
|
+
aborter = iterator2(item, key, async(callback));
|
|
19440
19440
|
}
|
|
19441
19441
|
return aborter;
|
|
19442
19442
|
}
|
|
@@ -19489,10 +19489,10 @@ var require_parallel = __commonJS({
|
|
|
19489
19489
|
var initState = require_state();
|
|
19490
19490
|
var terminator = require_terminator();
|
|
19491
19491
|
module2.exports = parallel;
|
|
19492
|
-
function parallel(list,
|
|
19492
|
+
function parallel(list, iterator2, callback) {
|
|
19493
19493
|
var state = initState(list);
|
|
19494
19494
|
while (state.index < (state["keyedList"] || list).length) {
|
|
19495
|
-
iterate(list,
|
|
19495
|
+
iterate(list, iterator2, state, function(error, result) {
|
|
19496
19496
|
if (error) {
|
|
19497
19497
|
callback(error, result);
|
|
19498
19498
|
return;
|
|
@@ -19518,16 +19518,16 @@ var require_serialOrdered = __commonJS({
|
|
|
19518
19518
|
module2.exports = serialOrdered;
|
|
19519
19519
|
module2.exports.ascending = ascending;
|
|
19520
19520
|
module2.exports.descending = descending;
|
|
19521
|
-
function serialOrdered(list,
|
|
19521
|
+
function serialOrdered(list, iterator2, sortMethod, callback) {
|
|
19522
19522
|
var state = initState(list, sortMethod);
|
|
19523
|
-
iterate(list,
|
|
19523
|
+
iterate(list, iterator2, state, function iteratorHandler(error, result) {
|
|
19524
19524
|
if (error) {
|
|
19525
19525
|
callback(error, result);
|
|
19526
19526
|
return;
|
|
19527
19527
|
}
|
|
19528
19528
|
state.index++;
|
|
19529
19529
|
if (state.index < (state["keyedList"] || list).length) {
|
|
19530
|
-
iterate(list,
|
|
19530
|
+
iterate(list, iterator2, state, iteratorHandler);
|
|
19531
19531
|
return;
|
|
19532
19532
|
}
|
|
19533
19533
|
callback(null, state.results);
|
|
@@ -19548,8 +19548,8 @@ var require_serial = __commonJS({
|
|
|
19548
19548
|
"../../../node_modules/asynckit/serial.js"(exports2, module2) {
|
|
19549
19549
|
var serialOrdered = require_serialOrdered();
|
|
19550
19550
|
module2.exports = serial;
|
|
19551
|
-
function serial(list,
|
|
19552
|
-
return serialOrdered(list,
|
|
19551
|
+
function serial(list, iterator2, callback) {
|
|
19552
|
+
return serialOrdered(list, iterator2, null, callback);
|
|
19553
19553
|
}
|
|
19554
19554
|
}
|
|
19555
19555
|
});
|
|
@@ -19565,9 +19565,932 @@ var require_asynckit = __commonJS({
|
|
|
19565
19565
|
}
|
|
19566
19566
|
});
|
|
19567
19567
|
|
|
19568
|
+
// ../../../node_modules/es-object-atoms/index.js
|
|
19569
|
+
var require_es_object_atoms = __commonJS({
|
|
19570
|
+
"../../../node_modules/es-object-atoms/index.js"(exports2, module2) {
|
|
19571
|
+
"use strict";
|
|
19572
|
+
module2.exports = Object;
|
|
19573
|
+
}
|
|
19574
|
+
});
|
|
19575
|
+
|
|
19576
|
+
// ../../../node_modules/es-errors/index.js
|
|
19577
|
+
var require_es_errors = __commonJS({
|
|
19578
|
+
"../../../node_modules/es-errors/index.js"(exports2, module2) {
|
|
19579
|
+
"use strict";
|
|
19580
|
+
module2.exports = Error;
|
|
19581
|
+
}
|
|
19582
|
+
});
|
|
19583
|
+
|
|
19584
|
+
// ../../../node_modules/es-errors/eval.js
|
|
19585
|
+
var require_eval = __commonJS({
|
|
19586
|
+
"../../../node_modules/es-errors/eval.js"(exports2, module2) {
|
|
19587
|
+
"use strict";
|
|
19588
|
+
module2.exports = EvalError;
|
|
19589
|
+
}
|
|
19590
|
+
});
|
|
19591
|
+
|
|
19592
|
+
// ../../../node_modules/es-errors/range.js
|
|
19593
|
+
var require_range = __commonJS({
|
|
19594
|
+
"../../../node_modules/es-errors/range.js"(exports2, module2) {
|
|
19595
|
+
"use strict";
|
|
19596
|
+
module2.exports = RangeError;
|
|
19597
|
+
}
|
|
19598
|
+
});
|
|
19599
|
+
|
|
19600
|
+
// ../../../node_modules/es-errors/ref.js
|
|
19601
|
+
var require_ref = __commonJS({
|
|
19602
|
+
"../../../node_modules/es-errors/ref.js"(exports2, module2) {
|
|
19603
|
+
"use strict";
|
|
19604
|
+
module2.exports = ReferenceError;
|
|
19605
|
+
}
|
|
19606
|
+
});
|
|
19607
|
+
|
|
19608
|
+
// ../../../node_modules/es-errors/syntax.js
|
|
19609
|
+
var require_syntax = __commonJS({
|
|
19610
|
+
"../../../node_modules/es-errors/syntax.js"(exports2, module2) {
|
|
19611
|
+
"use strict";
|
|
19612
|
+
module2.exports = SyntaxError;
|
|
19613
|
+
}
|
|
19614
|
+
});
|
|
19615
|
+
|
|
19616
|
+
// ../../../node_modules/es-errors/type.js
|
|
19617
|
+
var require_type = __commonJS({
|
|
19618
|
+
"../../../node_modules/es-errors/type.js"(exports2, module2) {
|
|
19619
|
+
"use strict";
|
|
19620
|
+
module2.exports = TypeError;
|
|
19621
|
+
}
|
|
19622
|
+
});
|
|
19623
|
+
|
|
19624
|
+
// ../../../node_modules/es-errors/uri.js
|
|
19625
|
+
var require_uri = __commonJS({
|
|
19626
|
+
"../../../node_modules/es-errors/uri.js"(exports2, module2) {
|
|
19627
|
+
"use strict";
|
|
19628
|
+
module2.exports = URIError;
|
|
19629
|
+
}
|
|
19630
|
+
});
|
|
19631
|
+
|
|
19632
|
+
// ../../../node_modules/math-intrinsics/abs.js
|
|
19633
|
+
var require_abs = __commonJS({
|
|
19634
|
+
"../../../node_modules/math-intrinsics/abs.js"(exports2, module2) {
|
|
19635
|
+
"use strict";
|
|
19636
|
+
module2.exports = Math.abs;
|
|
19637
|
+
}
|
|
19638
|
+
});
|
|
19639
|
+
|
|
19640
|
+
// ../../../node_modules/math-intrinsics/floor.js
|
|
19641
|
+
var require_floor = __commonJS({
|
|
19642
|
+
"../../../node_modules/math-intrinsics/floor.js"(exports2, module2) {
|
|
19643
|
+
"use strict";
|
|
19644
|
+
module2.exports = Math.floor;
|
|
19645
|
+
}
|
|
19646
|
+
});
|
|
19647
|
+
|
|
19648
|
+
// ../../../node_modules/math-intrinsics/max.js
|
|
19649
|
+
var require_max = __commonJS({
|
|
19650
|
+
"../../../node_modules/math-intrinsics/max.js"(exports2, module2) {
|
|
19651
|
+
"use strict";
|
|
19652
|
+
module2.exports = Math.max;
|
|
19653
|
+
}
|
|
19654
|
+
});
|
|
19655
|
+
|
|
19656
|
+
// ../../../node_modules/math-intrinsics/min.js
|
|
19657
|
+
var require_min = __commonJS({
|
|
19658
|
+
"../../../node_modules/math-intrinsics/min.js"(exports2, module2) {
|
|
19659
|
+
"use strict";
|
|
19660
|
+
module2.exports = Math.min;
|
|
19661
|
+
}
|
|
19662
|
+
});
|
|
19663
|
+
|
|
19664
|
+
// ../../../node_modules/math-intrinsics/pow.js
|
|
19665
|
+
var require_pow = __commonJS({
|
|
19666
|
+
"../../../node_modules/math-intrinsics/pow.js"(exports2, module2) {
|
|
19667
|
+
"use strict";
|
|
19668
|
+
module2.exports = Math.pow;
|
|
19669
|
+
}
|
|
19670
|
+
});
|
|
19671
|
+
|
|
19672
|
+
// ../../../node_modules/math-intrinsics/round.js
|
|
19673
|
+
var require_round = __commonJS({
|
|
19674
|
+
"../../../node_modules/math-intrinsics/round.js"(exports2, module2) {
|
|
19675
|
+
"use strict";
|
|
19676
|
+
module2.exports = Math.round;
|
|
19677
|
+
}
|
|
19678
|
+
});
|
|
19679
|
+
|
|
19680
|
+
// ../../../node_modules/math-intrinsics/isNaN.js
|
|
19681
|
+
var require_isNaN = __commonJS({
|
|
19682
|
+
"../../../node_modules/math-intrinsics/isNaN.js"(exports2, module2) {
|
|
19683
|
+
"use strict";
|
|
19684
|
+
module2.exports = Number.isNaN || function isNaN2(a) {
|
|
19685
|
+
return a !== a;
|
|
19686
|
+
};
|
|
19687
|
+
}
|
|
19688
|
+
});
|
|
19689
|
+
|
|
19690
|
+
// ../../../node_modules/math-intrinsics/sign.js
|
|
19691
|
+
var require_sign = __commonJS({
|
|
19692
|
+
"../../../node_modules/math-intrinsics/sign.js"(exports2, module2) {
|
|
19693
|
+
"use strict";
|
|
19694
|
+
var $isNaN = require_isNaN();
|
|
19695
|
+
module2.exports = function sign(number) {
|
|
19696
|
+
if ($isNaN(number) || number === 0) {
|
|
19697
|
+
return number;
|
|
19698
|
+
}
|
|
19699
|
+
return number < 0 ? -1 : 1;
|
|
19700
|
+
};
|
|
19701
|
+
}
|
|
19702
|
+
});
|
|
19703
|
+
|
|
19704
|
+
// ../../../node_modules/es-set-tostringtag/node_modules/gopd/gOPD.js
|
|
19705
|
+
var require_gOPD = __commonJS({
|
|
19706
|
+
"../../../node_modules/es-set-tostringtag/node_modules/gopd/gOPD.js"(exports2, module2) {
|
|
19707
|
+
"use strict";
|
|
19708
|
+
module2.exports = Object.getOwnPropertyDescriptor;
|
|
19709
|
+
}
|
|
19710
|
+
});
|
|
19711
|
+
|
|
19712
|
+
// ../../../node_modules/es-set-tostringtag/node_modules/gopd/index.js
|
|
19713
|
+
var require_gopd = __commonJS({
|
|
19714
|
+
"../../../node_modules/es-set-tostringtag/node_modules/gopd/index.js"(exports2, module2) {
|
|
19715
|
+
"use strict";
|
|
19716
|
+
var $gOPD = require_gOPD();
|
|
19717
|
+
if ($gOPD) {
|
|
19718
|
+
try {
|
|
19719
|
+
$gOPD([], "length");
|
|
19720
|
+
} catch (e) {
|
|
19721
|
+
$gOPD = null;
|
|
19722
|
+
}
|
|
19723
|
+
}
|
|
19724
|
+
module2.exports = $gOPD;
|
|
19725
|
+
}
|
|
19726
|
+
});
|
|
19727
|
+
|
|
19728
|
+
// ../../../node_modules/es-set-tostringtag/node_modules/es-define-property/index.js
|
|
19729
|
+
var require_es_define_property = __commonJS({
|
|
19730
|
+
"../../../node_modules/es-set-tostringtag/node_modules/es-define-property/index.js"(exports2, module2) {
|
|
19731
|
+
"use strict";
|
|
19732
|
+
var $defineProperty = Object.defineProperty || false;
|
|
19733
|
+
if ($defineProperty) {
|
|
19734
|
+
try {
|
|
19735
|
+
$defineProperty({}, "a", { value: 1 });
|
|
19736
|
+
} catch (e) {
|
|
19737
|
+
$defineProperty = false;
|
|
19738
|
+
}
|
|
19739
|
+
}
|
|
19740
|
+
module2.exports = $defineProperty;
|
|
19741
|
+
}
|
|
19742
|
+
});
|
|
19743
|
+
|
|
19744
|
+
// ../../../node_modules/es-set-tostringtag/node_modules/get-intrinsic/node_modules/has-symbols/shams.js
|
|
19745
|
+
var require_shams = __commonJS({
|
|
19746
|
+
"../../../node_modules/es-set-tostringtag/node_modules/get-intrinsic/node_modules/has-symbols/shams.js"(exports2, module2) {
|
|
19747
|
+
"use strict";
|
|
19748
|
+
module2.exports = function hasSymbols() {
|
|
19749
|
+
if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
|
|
19750
|
+
return false;
|
|
19751
|
+
}
|
|
19752
|
+
if (typeof Symbol.iterator === "symbol") {
|
|
19753
|
+
return true;
|
|
19754
|
+
}
|
|
19755
|
+
var obj = {};
|
|
19756
|
+
var sym = Symbol("test");
|
|
19757
|
+
var symObj = Object(sym);
|
|
19758
|
+
if (typeof sym === "string") {
|
|
19759
|
+
return false;
|
|
19760
|
+
}
|
|
19761
|
+
if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
|
|
19762
|
+
return false;
|
|
19763
|
+
}
|
|
19764
|
+
if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
|
|
19765
|
+
return false;
|
|
19766
|
+
}
|
|
19767
|
+
var symVal = 42;
|
|
19768
|
+
obj[sym] = symVal;
|
|
19769
|
+
for (var _ in obj) {
|
|
19770
|
+
return false;
|
|
19771
|
+
}
|
|
19772
|
+
if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
|
|
19773
|
+
return false;
|
|
19774
|
+
}
|
|
19775
|
+
if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
|
|
19776
|
+
return false;
|
|
19777
|
+
}
|
|
19778
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
19779
|
+
if (syms.length !== 1 || syms[0] !== sym) {
|
|
19780
|
+
return false;
|
|
19781
|
+
}
|
|
19782
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
|
|
19783
|
+
return false;
|
|
19784
|
+
}
|
|
19785
|
+
if (typeof Object.getOwnPropertyDescriptor === "function") {
|
|
19786
|
+
var descriptor = (
|
|
19787
|
+
/** @type {PropertyDescriptor} */
|
|
19788
|
+
Object.getOwnPropertyDescriptor(obj, sym)
|
|
19789
|
+
);
|
|
19790
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) {
|
|
19791
|
+
return false;
|
|
19792
|
+
}
|
|
19793
|
+
}
|
|
19794
|
+
return true;
|
|
19795
|
+
};
|
|
19796
|
+
}
|
|
19797
|
+
});
|
|
19798
|
+
|
|
19799
|
+
// ../../../node_modules/es-set-tostringtag/node_modules/get-intrinsic/node_modules/has-symbols/index.js
|
|
19800
|
+
var require_has_symbols = __commonJS({
|
|
19801
|
+
"../../../node_modules/es-set-tostringtag/node_modules/get-intrinsic/node_modules/has-symbols/index.js"(exports2, module2) {
|
|
19802
|
+
"use strict";
|
|
19803
|
+
var origSymbol = typeof Symbol !== "undefined" && Symbol;
|
|
19804
|
+
var hasSymbolSham = require_shams();
|
|
19805
|
+
module2.exports = function hasNativeSymbols() {
|
|
19806
|
+
if (typeof origSymbol !== "function") {
|
|
19807
|
+
return false;
|
|
19808
|
+
}
|
|
19809
|
+
if (typeof Symbol !== "function") {
|
|
19810
|
+
return false;
|
|
19811
|
+
}
|
|
19812
|
+
if (typeof origSymbol("foo") !== "symbol") {
|
|
19813
|
+
return false;
|
|
19814
|
+
}
|
|
19815
|
+
if (typeof Symbol("bar") !== "symbol") {
|
|
19816
|
+
return false;
|
|
19817
|
+
}
|
|
19818
|
+
return hasSymbolSham();
|
|
19819
|
+
};
|
|
19820
|
+
}
|
|
19821
|
+
});
|
|
19822
|
+
|
|
19823
|
+
// ../../../node_modules/get-proto/Reflect.getPrototypeOf.js
|
|
19824
|
+
var require_Reflect_getPrototypeOf = __commonJS({
|
|
19825
|
+
"../../../node_modules/get-proto/Reflect.getPrototypeOf.js"(exports2, module2) {
|
|
19826
|
+
"use strict";
|
|
19827
|
+
module2.exports = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
|
|
19828
|
+
}
|
|
19829
|
+
});
|
|
19830
|
+
|
|
19831
|
+
// ../../../node_modules/get-proto/Object.getPrototypeOf.js
|
|
19832
|
+
var require_Object_getPrototypeOf = __commonJS({
|
|
19833
|
+
"../../../node_modules/get-proto/Object.getPrototypeOf.js"(exports2, module2) {
|
|
19834
|
+
"use strict";
|
|
19835
|
+
var $Object = require_es_object_atoms();
|
|
19836
|
+
module2.exports = $Object.getPrototypeOf || null;
|
|
19837
|
+
}
|
|
19838
|
+
});
|
|
19839
|
+
|
|
19840
|
+
// ../../../node_modules/function-bind/implementation.js
|
|
19841
|
+
var require_implementation = __commonJS({
|
|
19842
|
+
"../../../node_modules/function-bind/implementation.js"(exports2, module2) {
|
|
19843
|
+
"use strict";
|
|
19844
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
19845
|
+
var toStr = Object.prototype.toString;
|
|
19846
|
+
var max = Math.max;
|
|
19847
|
+
var funcType = "[object Function]";
|
|
19848
|
+
var concatty = function concatty2(a, b) {
|
|
19849
|
+
var arr = [];
|
|
19850
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
19851
|
+
arr[i] = a[i];
|
|
19852
|
+
}
|
|
19853
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
19854
|
+
arr[j + a.length] = b[j];
|
|
19855
|
+
}
|
|
19856
|
+
return arr;
|
|
19857
|
+
};
|
|
19858
|
+
var slicy = function slicy2(arrLike, offset) {
|
|
19859
|
+
var arr = [];
|
|
19860
|
+
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
19861
|
+
arr[j] = arrLike[i];
|
|
19862
|
+
}
|
|
19863
|
+
return arr;
|
|
19864
|
+
};
|
|
19865
|
+
var joiny = function(arr, joiner) {
|
|
19866
|
+
var str = "";
|
|
19867
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
19868
|
+
str += arr[i];
|
|
19869
|
+
if (i + 1 < arr.length) {
|
|
19870
|
+
str += joiner;
|
|
19871
|
+
}
|
|
19872
|
+
}
|
|
19873
|
+
return str;
|
|
19874
|
+
};
|
|
19875
|
+
module2.exports = function bind2(that) {
|
|
19876
|
+
var target = this;
|
|
19877
|
+
if (typeof target !== "function" || toStr.apply(target) !== funcType) {
|
|
19878
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
19879
|
+
}
|
|
19880
|
+
var args2 = slicy(arguments, 1);
|
|
19881
|
+
var bound;
|
|
19882
|
+
var binder = function() {
|
|
19883
|
+
if (this instanceof bound) {
|
|
19884
|
+
var result = target.apply(
|
|
19885
|
+
this,
|
|
19886
|
+
concatty(args2, arguments)
|
|
19887
|
+
);
|
|
19888
|
+
if (Object(result) === result) {
|
|
19889
|
+
return result;
|
|
19890
|
+
}
|
|
19891
|
+
return this;
|
|
19892
|
+
}
|
|
19893
|
+
return target.apply(
|
|
19894
|
+
that,
|
|
19895
|
+
concatty(args2, arguments)
|
|
19896
|
+
);
|
|
19897
|
+
};
|
|
19898
|
+
var boundLength = max(0, target.length - args2.length);
|
|
19899
|
+
var boundArgs = [];
|
|
19900
|
+
for (var i = 0; i < boundLength; i++) {
|
|
19901
|
+
boundArgs[i] = "$" + i;
|
|
19902
|
+
}
|
|
19903
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
19904
|
+
if (target.prototype) {
|
|
19905
|
+
var Empty = function Empty2() {
|
|
19906
|
+
};
|
|
19907
|
+
Empty.prototype = target.prototype;
|
|
19908
|
+
bound.prototype = new Empty();
|
|
19909
|
+
Empty.prototype = null;
|
|
19910
|
+
}
|
|
19911
|
+
return bound;
|
|
19912
|
+
};
|
|
19913
|
+
}
|
|
19914
|
+
});
|
|
19915
|
+
|
|
19916
|
+
// ../../../node_modules/function-bind/index.js
|
|
19917
|
+
var require_function_bind = __commonJS({
|
|
19918
|
+
"../../../node_modules/function-bind/index.js"(exports2, module2) {
|
|
19919
|
+
"use strict";
|
|
19920
|
+
var implementation = require_implementation();
|
|
19921
|
+
module2.exports = Function.prototype.bind || implementation;
|
|
19922
|
+
}
|
|
19923
|
+
});
|
|
19924
|
+
|
|
19925
|
+
// ../../../node_modules/call-bind-apply-helpers/functionCall.js
|
|
19926
|
+
var require_functionCall = __commonJS({
|
|
19927
|
+
"../../../node_modules/call-bind-apply-helpers/functionCall.js"(exports2, module2) {
|
|
19928
|
+
"use strict";
|
|
19929
|
+
module2.exports = Function.prototype.call;
|
|
19930
|
+
}
|
|
19931
|
+
});
|
|
19932
|
+
|
|
19933
|
+
// ../../../node_modules/call-bind-apply-helpers/functionApply.js
|
|
19934
|
+
var require_functionApply = __commonJS({
|
|
19935
|
+
"../../../node_modules/call-bind-apply-helpers/functionApply.js"(exports2, module2) {
|
|
19936
|
+
"use strict";
|
|
19937
|
+
module2.exports = Function.prototype.apply;
|
|
19938
|
+
}
|
|
19939
|
+
});
|
|
19940
|
+
|
|
19941
|
+
// ../../../node_modules/call-bind-apply-helpers/reflectApply.js
|
|
19942
|
+
var require_reflectApply = __commonJS({
|
|
19943
|
+
"../../../node_modules/call-bind-apply-helpers/reflectApply.js"(exports2, module2) {
|
|
19944
|
+
"use strict";
|
|
19945
|
+
module2.exports = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
19946
|
+
}
|
|
19947
|
+
});
|
|
19948
|
+
|
|
19949
|
+
// ../../../node_modules/call-bind-apply-helpers/actualApply.js
|
|
19950
|
+
var require_actualApply = __commonJS({
|
|
19951
|
+
"../../../node_modules/call-bind-apply-helpers/actualApply.js"(exports2, module2) {
|
|
19952
|
+
"use strict";
|
|
19953
|
+
var bind2 = require_function_bind();
|
|
19954
|
+
var $apply = require_functionApply();
|
|
19955
|
+
var $call = require_functionCall();
|
|
19956
|
+
var $reflectApply = require_reflectApply();
|
|
19957
|
+
module2.exports = $reflectApply || bind2.call($call, $apply);
|
|
19958
|
+
}
|
|
19959
|
+
});
|
|
19960
|
+
|
|
19961
|
+
// ../../../node_modules/call-bind-apply-helpers/index.js
|
|
19962
|
+
var require_call_bind_apply_helpers = __commonJS({
|
|
19963
|
+
"../../../node_modules/call-bind-apply-helpers/index.js"(exports2, module2) {
|
|
19964
|
+
"use strict";
|
|
19965
|
+
var bind2 = require_function_bind();
|
|
19966
|
+
var $TypeError = require_type();
|
|
19967
|
+
var $call = require_functionCall();
|
|
19968
|
+
var $actualApply = require_actualApply();
|
|
19969
|
+
module2.exports = function callBindBasic(args2) {
|
|
19970
|
+
if (args2.length < 1 || typeof args2[0] !== "function") {
|
|
19971
|
+
throw new $TypeError("a function is required");
|
|
19972
|
+
}
|
|
19973
|
+
return $actualApply(bind2, $call, args2);
|
|
19974
|
+
};
|
|
19975
|
+
}
|
|
19976
|
+
});
|
|
19977
|
+
|
|
19978
|
+
// ../../../node_modules/dunder-proto/node_modules/gopd/gOPD.js
|
|
19979
|
+
var require_gOPD2 = __commonJS({
|
|
19980
|
+
"../../../node_modules/dunder-proto/node_modules/gopd/gOPD.js"(exports2, module2) {
|
|
19981
|
+
"use strict";
|
|
19982
|
+
module2.exports = Object.getOwnPropertyDescriptor;
|
|
19983
|
+
}
|
|
19984
|
+
});
|
|
19985
|
+
|
|
19986
|
+
// ../../../node_modules/dunder-proto/node_modules/gopd/index.js
|
|
19987
|
+
var require_gopd2 = __commonJS({
|
|
19988
|
+
"../../../node_modules/dunder-proto/node_modules/gopd/index.js"(exports2, module2) {
|
|
19989
|
+
"use strict";
|
|
19990
|
+
var $gOPD = require_gOPD2();
|
|
19991
|
+
if ($gOPD) {
|
|
19992
|
+
try {
|
|
19993
|
+
$gOPD([], "length");
|
|
19994
|
+
} catch (e) {
|
|
19995
|
+
$gOPD = null;
|
|
19996
|
+
}
|
|
19997
|
+
}
|
|
19998
|
+
module2.exports = $gOPD;
|
|
19999
|
+
}
|
|
20000
|
+
});
|
|
20001
|
+
|
|
20002
|
+
// ../../../node_modules/dunder-proto/get.js
|
|
20003
|
+
var require_get = __commonJS({
|
|
20004
|
+
"../../../node_modules/dunder-proto/get.js"(exports2, module2) {
|
|
20005
|
+
"use strict";
|
|
20006
|
+
var callBind = require_call_bind_apply_helpers();
|
|
20007
|
+
var gOPD = require_gopd2();
|
|
20008
|
+
var hasProtoAccessor;
|
|
20009
|
+
try {
|
|
20010
|
+
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
20011
|
+
[].__proto__ === Array.prototype;
|
|
20012
|
+
} catch (e) {
|
|
20013
|
+
if (!e || typeof e !== "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS") {
|
|
20014
|
+
throw e;
|
|
20015
|
+
}
|
|
20016
|
+
}
|
|
20017
|
+
var desc = !!hasProtoAccessor && gOPD && gOPD(
|
|
20018
|
+
Object.prototype,
|
|
20019
|
+
/** @type {keyof typeof Object.prototype} */
|
|
20020
|
+
"__proto__"
|
|
20021
|
+
);
|
|
20022
|
+
var $Object = Object;
|
|
20023
|
+
var $getPrototypeOf = $Object.getPrototypeOf;
|
|
20024
|
+
module2.exports = desc && typeof desc.get === "function" ? callBind([desc.get]) : typeof $getPrototypeOf === "function" ? (
|
|
20025
|
+
/** @type {import('./get')} */
|
|
20026
|
+
function getDunder(value) {
|
|
20027
|
+
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
20028
|
+
}
|
|
20029
|
+
) : false;
|
|
20030
|
+
}
|
|
20031
|
+
});
|
|
20032
|
+
|
|
20033
|
+
// ../../../node_modules/get-proto/index.js
|
|
20034
|
+
var require_get_proto = __commonJS({
|
|
20035
|
+
"../../../node_modules/get-proto/index.js"(exports2, module2) {
|
|
20036
|
+
"use strict";
|
|
20037
|
+
var reflectGetProto = require_Reflect_getPrototypeOf();
|
|
20038
|
+
var originalGetProto = require_Object_getPrototypeOf();
|
|
20039
|
+
var getDunderProto = require_get();
|
|
20040
|
+
module2.exports = reflectGetProto ? function getProto(O) {
|
|
20041
|
+
return reflectGetProto(O);
|
|
20042
|
+
} : originalGetProto ? function getProto(O) {
|
|
20043
|
+
if (!O || typeof O !== "object" && typeof O !== "function") {
|
|
20044
|
+
throw new TypeError("getProto: not an object");
|
|
20045
|
+
}
|
|
20046
|
+
return originalGetProto(O);
|
|
20047
|
+
} : getDunderProto ? function getProto(O) {
|
|
20048
|
+
return getDunderProto(O);
|
|
20049
|
+
} : null;
|
|
20050
|
+
}
|
|
20051
|
+
});
|
|
20052
|
+
|
|
20053
|
+
// ../../../node_modules/hasown/index.js
|
|
20054
|
+
var require_hasown = __commonJS({
|
|
20055
|
+
"../../../node_modules/hasown/index.js"(exports2, module2) {
|
|
20056
|
+
"use strict";
|
|
20057
|
+
var call = Function.prototype.call;
|
|
20058
|
+
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
20059
|
+
var bind2 = require_function_bind();
|
|
20060
|
+
module2.exports = bind2.call(call, $hasOwn);
|
|
20061
|
+
}
|
|
20062
|
+
});
|
|
20063
|
+
|
|
20064
|
+
// ../../../node_modules/es-set-tostringtag/node_modules/get-intrinsic/index.js
|
|
20065
|
+
var require_get_intrinsic = __commonJS({
|
|
20066
|
+
"../../../node_modules/es-set-tostringtag/node_modules/get-intrinsic/index.js"(exports2, module2) {
|
|
20067
|
+
"use strict";
|
|
20068
|
+
var undefined2;
|
|
20069
|
+
var $Object = require_es_object_atoms();
|
|
20070
|
+
var $Error = require_es_errors();
|
|
20071
|
+
var $EvalError = require_eval();
|
|
20072
|
+
var $RangeError = require_range();
|
|
20073
|
+
var $ReferenceError = require_ref();
|
|
20074
|
+
var $SyntaxError = require_syntax();
|
|
20075
|
+
var $TypeError = require_type();
|
|
20076
|
+
var $URIError = require_uri();
|
|
20077
|
+
var abs = require_abs();
|
|
20078
|
+
var floor = require_floor();
|
|
20079
|
+
var max = require_max();
|
|
20080
|
+
var min = require_min();
|
|
20081
|
+
var pow = require_pow();
|
|
20082
|
+
var round = require_round();
|
|
20083
|
+
var sign = require_sign();
|
|
20084
|
+
var $Function = Function;
|
|
20085
|
+
var getEvalledConstructor = function(expressionSyntax) {
|
|
20086
|
+
try {
|
|
20087
|
+
return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
|
|
20088
|
+
} catch (e) {
|
|
20089
|
+
}
|
|
20090
|
+
};
|
|
20091
|
+
var $gOPD = require_gopd();
|
|
20092
|
+
var $defineProperty = require_es_define_property();
|
|
20093
|
+
var throwTypeError = function() {
|
|
20094
|
+
throw new $TypeError();
|
|
20095
|
+
};
|
|
20096
|
+
var ThrowTypeError = $gOPD ? function() {
|
|
20097
|
+
try {
|
|
20098
|
+
arguments.callee;
|
|
20099
|
+
return throwTypeError;
|
|
20100
|
+
} catch (calleeThrows) {
|
|
20101
|
+
try {
|
|
20102
|
+
return $gOPD(arguments, "callee").get;
|
|
20103
|
+
} catch (gOPDthrows) {
|
|
20104
|
+
return throwTypeError;
|
|
20105
|
+
}
|
|
20106
|
+
}
|
|
20107
|
+
}() : throwTypeError;
|
|
20108
|
+
var hasSymbols = require_has_symbols()();
|
|
20109
|
+
var getProto = require_get_proto();
|
|
20110
|
+
var $ObjectGPO = require_Object_getPrototypeOf();
|
|
20111
|
+
var $ReflectGPO = require_Reflect_getPrototypeOf();
|
|
20112
|
+
var $apply = require_functionApply();
|
|
20113
|
+
var $call = require_functionCall();
|
|
20114
|
+
var needsEval = {};
|
|
20115
|
+
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined2 : getProto(Uint8Array);
|
|
20116
|
+
var INTRINSICS = {
|
|
20117
|
+
__proto__: null,
|
|
20118
|
+
"%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError,
|
|
20119
|
+
"%Array%": Array,
|
|
20120
|
+
"%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer,
|
|
20121
|
+
"%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined2,
|
|
20122
|
+
"%AsyncFromSyncIteratorPrototype%": undefined2,
|
|
20123
|
+
"%AsyncFunction%": needsEval,
|
|
20124
|
+
"%AsyncGenerator%": needsEval,
|
|
20125
|
+
"%AsyncGeneratorFunction%": needsEval,
|
|
20126
|
+
"%AsyncIteratorPrototype%": needsEval,
|
|
20127
|
+
"%Atomics%": typeof Atomics === "undefined" ? undefined2 : Atomics,
|
|
20128
|
+
"%BigInt%": typeof BigInt === "undefined" ? undefined2 : BigInt,
|
|
20129
|
+
"%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined2 : BigInt64Array,
|
|
20130
|
+
"%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined2 : BigUint64Array,
|
|
20131
|
+
"%Boolean%": Boolean,
|
|
20132
|
+
"%DataView%": typeof DataView === "undefined" ? undefined2 : DataView,
|
|
20133
|
+
"%Date%": Date,
|
|
20134
|
+
"%decodeURI%": decodeURI,
|
|
20135
|
+
"%decodeURIComponent%": decodeURIComponent,
|
|
20136
|
+
"%encodeURI%": encodeURI,
|
|
20137
|
+
"%encodeURIComponent%": encodeURIComponent,
|
|
20138
|
+
"%Error%": $Error,
|
|
20139
|
+
"%eval%": eval,
|
|
20140
|
+
// eslint-disable-line no-eval
|
|
20141
|
+
"%EvalError%": $EvalError,
|
|
20142
|
+
"%Float16Array%": typeof Float16Array === "undefined" ? undefined2 : Float16Array,
|
|
20143
|
+
"%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array,
|
|
20144
|
+
"%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array,
|
|
20145
|
+
"%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry,
|
|
20146
|
+
"%Function%": $Function,
|
|
20147
|
+
"%GeneratorFunction%": needsEval,
|
|
20148
|
+
"%Int8Array%": typeof Int8Array === "undefined" ? undefined2 : Int8Array,
|
|
20149
|
+
"%Int16Array%": typeof Int16Array === "undefined" ? undefined2 : Int16Array,
|
|
20150
|
+
"%Int32Array%": typeof Int32Array === "undefined" ? undefined2 : Int32Array,
|
|
20151
|
+
"%isFinite%": isFinite,
|
|
20152
|
+
"%isNaN%": isNaN,
|
|
20153
|
+
"%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined2,
|
|
20154
|
+
"%JSON%": typeof JSON === "object" ? JSON : undefined2,
|
|
20155
|
+
"%Map%": typeof Map === "undefined" ? undefined2 : Map,
|
|
20156
|
+
"%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
20157
|
+
"%Math%": Math,
|
|
20158
|
+
"%Number%": Number,
|
|
20159
|
+
"%Object%": $Object,
|
|
20160
|
+
"%Object.getOwnPropertyDescriptor%": $gOPD,
|
|
20161
|
+
"%parseFloat%": parseFloat,
|
|
20162
|
+
"%parseInt%": parseInt,
|
|
20163
|
+
"%Promise%": typeof Promise === "undefined" ? undefined2 : Promise,
|
|
20164
|
+
"%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy,
|
|
20165
|
+
"%RangeError%": $RangeError,
|
|
20166
|
+
"%ReferenceError%": $ReferenceError,
|
|
20167
|
+
"%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
|
|
20168
|
+
"%RegExp%": RegExp,
|
|
20169
|
+
"%Set%": typeof Set === "undefined" ? undefined2 : Set,
|
|
20170
|
+
"%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
20171
|
+
"%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined2 : SharedArrayBuffer,
|
|
20172
|
+
"%String%": String,
|
|
20173
|
+
"%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined2,
|
|
20174
|
+
"%Symbol%": hasSymbols ? Symbol : undefined2,
|
|
20175
|
+
"%SyntaxError%": $SyntaxError,
|
|
20176
|
+
"%ThrowTypeError%": ThrowTypeError,
|
|
20177
|
+
"%TypedArray%": TypedArray,
|
|
20178
|
+
"%TypeError%": $TypeError,
|
|
20179
|
+
"%Uint8Array%": typeof Uint8Array === "undefined" ? undefined2 : Uint8Array,
|
|
20180
|
+
"%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined2 : Uint8ClampedArray,
|
|
20181
|
+
"%Uint16Array%": typeof Uint16Array === "undefined" ? undefined2 : Uint16Array,
|
|
20182
|
+
"%Uint32Array%": typeof Uint32Array === "undefined" ? undefined2 : Uint32Array,
|
|
20183
|
+
"%URIError%": $URIError,
|
|
20184
|
+
"%WeakMap%": typeof WeakMap === "undefined" ? undefined2 : WeakMap,
|
|
20185
|
+
"%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef,
|
|
20186
|
+
"%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet,
|
|
20187
|
+
"%Function.prototype.call%": $call,
|
|
20188
|
+
"%Function.prototype.apply%": $apply,
|
|
20189
|
+
"%Object.defineProperty%": $defineProperty,
|
|
20190
|
+
"%Object.getPrototypeOf%": $ObjectGPO,
|
|
20191
|
+
"%Math.abs%": abs,
|
|
20192
|
+
"%Math.floor%": floor,
|
|
20193
|
+
"%Math.max%": max,
|
|
20194
|
+
"%Math.min%": min,
|
|
20195
|
+
"%Math.pow%": pow,
|
|
20196
|
+
"%Math.round%": round,
|
|
20197
|
+
"%Math.sign%": sign,
|
|
20198
|
+
"%Reflect.getPrototypeOf%": $ReflectGPO
|
|
20199
|
+
};
|
|
20200
|
+
if (getProto) {
|
|
20201
|
+
try {
|
|
20202
|
+
null.error;
|
|
20203
|
+
} catch (e) {
|
|
20204
|
+
errorProto = getProto(getProto(e));
|
|
20205
|
+
INTRINSICS["%Error.prototype%"] = errorProto;
|
|
20206
|
+
}
|
|
20207
|
+
}
|
|
20208
|
+
var errorProto;
|
|
20209
|
+
var doEval = function doEval2(name) {
|
|
20210
|
+
var value;
|
|
20211
|
+
if (name === "%AsyncFunction%") {
|
|
20212
|
+
value = getEvalledConstructor("async function () {}");
|
|
20213
|
+
} else if (name === "%GeneratorFunction%") {
|
|
20214
|
+
value = getEvalledConstructor("function* () {}");
|
|
20215
|
+
} else if (name === "%AsyncGeneratorFunction%") {
|
|
20216
|
+
value = getEvalledConstructor("async function* () {}");
|
|
20217
|
+
} else if (name === "%AsyncGenerator%") {
|
|
20218
|
+
var fn = doEval2("%AsyncGeneratorFunction%");
|
|
20219
|
+
if (fn) {
|
|
20220
|
+
value = fn.prototype;
|
|
20221
|
+
}
|
|
20222
|
+
} else if (name === "%AsyncIteratorPrototype%") {
|
|
20223
|
+
var gen = doEval2("%AsyncGenerator%");
|
|
20224
|
+
if (gen && getProto) {
|
|
20225
|
+
value = getProto(gen.prototype);
|
|
20226
|
+
}
|
|
20227
|
+
}
|
|
20228
|
+
INTRINSICS[name] = value;
|
|
20229
|
+
return value;
|
|
20230
|
+
};
|
|
20231
|
+
var LEGACY_ALIASES = {
|
|
20232
|
+
__proto__: null,
|
|
20233
|
+
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
20234
|
+
"%ArrayPrototype%": ["Array", "prototype"],
|
|
20235
|
+
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
20236
|
+
"%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
|
|
20237
|
+
"%ArrayProto_keys%": ["Array", "prototype", "keys"],
|
|
20238
|
+
"%ArrayProto_values%": ["Array", "prototype", "values"],
|
|
20239
|
+
"%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
|
|
20240
|
+
"%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
|
|
20241
|
+
"%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
|
|
20242
|
+
"%BooleanPrototype%": ["Boolean", "prototype"],
|
|
20243
|
+
"%DataViewPrototype%": ["DataView", "prototype"],
|
|
20244
|
+
"%DatePrototype%": ["Date", "prototype"],
|
|
20245
|
+
"%ErrorPrototype%": ["Error", "prototype"],
|
|
20246
|
+
"%EvalErrorPrototype%": ["EvalError", "prototype"],
|
|
20247
|
+
"%Float32ArrayPrototype%": ["Float32Array", "prototype"],
|
|
20248
|
+
"%Float64ArrayPrototype%": ["Float64Array", "prototype"],
|
|
20249
|
+
"%FunctionPrototype%": ["Function", "prototype"],
|
|
20250
|
+
"%Generator%": ["GeneratorFunction", "prototype"],
|
|
20251
|
+
"%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
|
|
20252
|
+
"%Int8ArrayPrototype%": ["Int8Array", "prototype"],
|
|
20253
|
+
"%Int16ArrayPrototype%": ["Int16Array", "prototype"],
|
|
20254
|
+
"%Int32ArrayPrototype%": ["Int32Array", "prototype"],
|
|
20255
|
+
"%JSONParse%": ["JSON", "parse"],
|
|
20256
|
+
"%JSONStringify%": ["JSON", "stringify"],
|
|
20257
|
+
"%MapPrototype%": ["Map", "prototype"],
|
|
20258
|
+
"%NumberPrototype%": ["Number", "prototype"],
|
|
20259
|
+
"%ObjectPrototype%": ["Object", "prototype"],
|
|
20260
|
+
"%ObjProto_toString%": ["Object", "prototype", "toString"],
|
|
20261
|
+
"%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
|
|
20262
|
+
"%PromisePrototype%": ["Promise", "prototype"],
|
|
20263
|
+
"%PromiseProto_then%": ["Promise", "prototype", "then"],
|
|
20264
|
+
"%Promise_all%": ["Promise", "all"],
|
|
20265
|
+
"%Promise_reject%": ["Promise", "reject"],
|
|
20266
|
+
"%Promise_resolve%": ["Promise", "resolve"],
|
|
20267
|
+
"%RangeErrorPrototype%": ["RangeError", "prototype"],
|
|
20268
|
+
"%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
|
|
20269
|
+
"%RegExpPrototype%": ["RegExp", "prototype"],
|
|
20270
|
+
"%SetPrototype%": ["Set", "prototype"],
|
|
20271
|
+
"%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
|
|
20272
|
+
"%StringPrototype%": ["String", "prototype"],
|
|
20273
|
+
"%SymbolPrototype%": ["Symbol", "prototype"],
|
|
20274
|
+
"%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
|
|
20275
|
+
"%TypedArrayPrototype%": ["TypedArray", "prototype"],
|
|
20276
|
+
"%TypeErrorPrototype%": ["TypeError", "prototype"],
|
|
20277
|
+
"%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
|
|
20278
|
+
"%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
|
|
20279
|
+
"%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
|
|
20280
|
+
"%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
|
|
20281
|
+
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
20282
|
+
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
20283
|
+
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
20284
|
+
};
|
|
20285
|
+
var bind2 = require_function_bind();
|
|
20286
|
+
var hasOwn = require_hasown();
|
|
20287
|
+
var $concat = bind2.call($call, Array.prototype.concat);
|
|
20288
|
+
var $spliceApply = bind2.call($apply, Array.prototype.splice);
|
|
20289
|
+
var $replace = bind2.call($call, String.prototype.replace);
|
|
20290
|
+
var $strSlice = bind2.call($call, String.prototype.slice);
|
|
20291
|
+
var $exec = bind2.call($call, RegExp.prototype.exec);
|
|
20292
|
+
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
20293
|
+
var reEscapeChar = /\\(\\)?/g;
|
|
20294
|
+
var stringToPath = function stringToPath2(string) {
|
|
20295
|
+
var first = $strSlice(string, 0, 1);
|
|
20296
|
+
var last = $strSlice(string, -1);
|
|
20297
|
+
if (first === "%" && last !== "%") {
|
|
20298
|
+
throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
|
|
20299
|
+
} else if (last === "%" && first !== "%") {
|
|
20300
|
+
throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
|
|
20301
|
+
}
|
|
20302
|
+
var result = [];
|
|
20303
|
+
$replace(string, rePropName, function(match, number, quote, subString) {
|
|
20304
|
+
result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number || match;
|
|
20305
|
+
});
|
|
20306
|
+
return result;
|
|
20307
|
+
};
|
|
20308
|
+
var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
|
|
20309
|
+
var intrinsicName = name;
|
|
20310
|
+
var alias;
|
|
20311
|
+
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
20312
|
+
alias = LEGACY_ALIASES[intrinsicName];
|
|
20313
|
+
intrinsicName = "%" + alias[0] + "%";
|
|
20314
|
+
}
|
|
20315
|
+
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
20316
|
+
var value = INTRINSICS[intrinsicName];
|
|
20317
|
+
if (value === needsEval) {
|
|
20318
|
+
value = doEval(intrinsicName);
|
|
20319
|
+
}
|
|
20320
|
+
if (typeof value === "undefined" && !allowMissing) {
|
|
20321
|
+
throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!");
|
|
20322
|
+
}
|
|
20323
|
+
return {
|
|
20324
|
+
alias,
|
|
20325
|
+
name: intrinsicName,
|
|
20326
|
+
value
|
|
20327
|
+
};
|
|
20328
|
+
}
|
|
20329
|
+
throw new $SyntaxError("intrinsic " + name + " does not exist!");
|
|
20330
|
+
};
|
|
20331
|
+
module2.exports = function GetIntrinsic(name, allowMissing) {
|
|
20332
|
+
if (typeof name !== "string" || name.length === 0) {
|
|
20333
|
+
throw new $TypeError("intrinsic name must be a non-empty string");
|
|
20334
|
+
}
|
|
20335
|
+
if (arguments.length > 1 && typeof allowMissing !== "boolean") {
|
|
20336
|
+
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
20337
|
+
}
|
|
20338
|
+
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
|
20339
|
+
throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
20340
|
+
}
|
|
20341
|
+
var parts = stringToPath(name);
|
|
20342
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
|
|
20343
|
+
var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
|
|
20344
|
+
var intrinsicRealName = intrinsic.name;
|
|
20345
|
+
var value = intrinsic.value;
|
|
20346
|
+
var skipFurtherCaching = false;
|
|
20347
|
+
var alias = intrinsic.alias;
|
|
20348
|
+
if (alias) {
|
|
20349
|
+
intrinsicBaseName = alias[0];
|
|
20350
|
+
$spliceApply(parts, $concat([0, 1], alias));
|
|
20351
|
+
}
|
|
20352
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
20353
|
+
var part = parts[i];
|
|
20354
|
+
var first = $strSlice(part, 0, 1);
|
|
20355
|
+
var last = $strSlice(part, -1);
|
|
20356
|
+
if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
|
|
20357
|
+
throw new $SyntaxError("property names with quotes must have matching quotes");
|
|
20358
|
+
}
|
|
20359
|
+
if (part === "constructor" || !isOwn) {
|
|
20360
|
+
skipFurtherCaching = true;
|
|
20361
|
+
}
|
|
20362
|
+
intrinsicBaseName += "." + part;
|
|
20363
|
+
intrinsicRealName = "%" + intrinsicBaseName + "%";
|
|
20364
|
+
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
20365
|
+
value = INTRINSICS[intrinsicRealName];
|
|
20366
|
+
} else if (value != null) {
|
|
20367
|
+
if (!(part in value)) {
|
|
20368
|
+
if (!allowMissing) {
|
|
20369
|
+
throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
|
|
20370
|
+
}
|
|
20371
|
+
return void undefined2;
|
|
20372
|
+
}
|
|
20373
|
+
if ($gOPD && i + 1 >= parts.length) {
|
|
20374
|
+
var desc = $gOPD(value, part);
|
|
20375
|
+
isOwn = !!desc;
|
|
20376
|
+
if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
|
|
20377
|
+
value = desc.get;
|
|
20378
|
+
} else {
|
|
20379
|
+
value = value[part];
|
|
20380
|
+
}
|
|
20381
|
+
} else {
|
|
20382
|
+
isOwn = hasOwn(value, part);
|
|
20383
|
+
value = value[part];
|
|
20384
|
+
}
|
|
20385
|
+
if (isOwn && !skipFurtherCaching) {
|
|
20386
|
+
INTRINSICS[intrinsicRealName] = value;
|
|
20387
|
+
}
|
|
20388
|
+
}
|
|
20389
|
+
}
|
|
20390
|
+
return value;
|
|
20391
|
+
};
|
|
20392
|
+
}
|
|
20393
|
+
});
|
|
20394
|
+
|
|
20395
|
+
// ../../../node_modules/has-symbols/shams.js
|
|
20396
|
+
var require_shams2 = __commonJS({
|
|
20397
|
+
"../../../node_modules/has-symbols/shams.js"(exports2, module2) {
|
|
20398
|
+
"use strict";
|
|
20399
|
+
module2.exports = function hasSymbols() {
|
|
20400
|
+
if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
|
|
20401
|
+
return false;
|
|
20402
|
+
}
|
|
20403
|
+
if (typeof Symbol.iterator === "symbol") {
|
|
20404
|
+
return true;
|
|
20405
|
+
}
|
|
20406
|
+
var obj = {};
|
|
20407
|
+
var sym = Symbol("test");
|
|
20408
|
+
var symObj = Object(sym);
|
|
20409
|
+
if (typeof sym === "string") {
|
|
20410
|
+
return false;
|
|
20411
|
+
}
|
|
20412
|
+
if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
|
|
20413
|
+
return false;
|
|
20414
|
+
}
|
|
20415
|
+
if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
|
|
20416
|
+
return false;
|
|
20417
|
+
}
|
|
20418
|
+
var symVal = 42;
|
|
20419
|
+
obj[sym] = symVal;
|
|
20420
|
+
for (sym in obj) {
|
|
20421
|
+
return false;
|
|
20422
|
+
}
|
|
20423
|
+
if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
|
|
20424
|
+
return false;
|
|
20425
|
+
}
|
|
20426
|
+
if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
|
|
20427
|
+
return false;
|
|
20428
|
+
}
|
|
20429
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
20430
|
+
if (syms.length !== 1 || syms[0] !== sym) {
|
|
20431
|
+
return false;
|
|
20432
|
+
}
|
|
20433
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
|
|
20434
|
+
return false;
|
|
20435
|
+
}
|
|
20436
|
+
if (typeof Object.getOwnPropertyDescriptor === "function") {
|
|
20437
|
+
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
|
|
20438
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) {
|
|
20439
|
+
return false;
|
|
20440
|
+
}
|
|
20441
|
+
}
|
|
20442
|
+
return true;
|
|
20443
|
+
};
|
|
20444
|
+
}
|
|
20445
|
+
});
|
|
20446
|
+
|
|
20447
|
+
// ../../../node_modules/es-set-tostringtag/node_modules/has-tostringtag/shams.js
|
|
20448
|
+
var require_shams3 = __commonJS({
|
|
20449
|
+
"../../../node_modules/es-set-tostringtag/node_modules/has-tostringtag/shams.js"(exports2, module2) {
|
|
20450
|
+
"use strict";
|
|
20451
|
+
var hasSymbols = require_shams2();
|
|
20452
|
+
module2.exports = function hasToStringTagShams() {
|
|
20453
|
+
return hasSymbols() && !!Symbol.toStringTag;
|
|
20454
|
+
};
|
|
20455
|
+
}
|
|
20456
|
+
});
|
|
20457
|
+
|
|
20458
|
+
// ../../../node_modules/es-set-tostringtag/index.js
|
|
20459
|
+
var require_es_set_tostringtag = __commonJS({
|
|
20460
|
+
"../../../node_modules/es-set-tostringtag/index.js"(exports2, module2) {
|
|
20461
|
+
"use strict";
|
|
20462
|
+
var GetIntrinsic = require_get_intrinsic();
|
|
20463
|
+
var $defineProperty = GetIntrinsic("%Object.defineProperty%", true);
|
|
20464
|
+
var hasToStringTag = require_shams3()();
|
|
20465
|
+
var hasOwn = require_hasown();
|
|
20466
|
+
var $TypeError = require_type();
|
|
20467
|
+
var toStringTag2 = hasToStringTag ? Symbol.toStringTag : null;
|
|
20468
|
+
module2.exports = function setToStringTag(object, value) {
|
|
20469
|
+
var overrideIfSet = arguments.length > 2 && !!arguments[2] && arguments[2].force;
|
|
20470
|
+
var nonConfigurable = arguments.length > 2 && !!arguments[2] && arguments[2].nonConfigurable;
|
|
20471
|
+
if (typeof overrideIfSet !== "undefined" && typeof overrideIfSet !== "boolean" || typeof nonConfigurable !== "undefined" && typeof nonConfigurable !== "boolean") {
|
|
20472
|
+
throw new $TypeError("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");
|
|
20473
|
+
}
|
|
20474
|
+
if (toStringTag2 && (overrideIfSet || !hasOwn(object, toStringTag2))) {
|
|
20475
|
+
if ($defineProperty) {
|
|
20476
|
+
$defineProperty(object, toStringTag2, {
|
|
20477
|
+
configurable: !nonConfigurable,
|
|
20478
|
+
enumerable: false,
|
|
20479
|
+
value,
|
|
20480
|
+
writable: false
|
|
20481
|
+
});
|
|
20482
|
+
} else {
|
|
20483
|
+
object[toStringTag2] = value;
|
|
20484
|
+
}
|
|
20485
|
+
}
|
|
20486
|
+
};
|
|
20487
|
+
}
|
|
20488
|
+
});
|
|
20489
|
+
|
|
19568
20490
|
// ../../../node_modules/form-data/lib/populate.js
|
|
19569
20491
|
var require_populate = __commonJS({
|
|
19570
20492
|
"../../../node_modules/form-data/lib/populate.js"(exports2, module2) {
|
|
20493
|
+
"use strict";
|
|
19571
20494
|
module2.exports = function(dst, src) {
|
|
19572
20495
|
Object.keys(src).forEach(function(prop) {
|
|
19573
20496
|
dst[prop] = dst[prop] || src[prop];
|
|
@@ -19580,6 +20503,7 @@ var require_populate = __commonJS({
|
|
|
19580
20503
|
// ../../../node_modules/form-data/lib/form_data.js
|
|
19581
20504
|
var require_form_data = __commonJS({
|
|
19582
20505
|
"../../../node_modules/form-data/lib/form_data.js"(exports2, module2) {
|
|
20506
|
+
"use strict";
|
|
19583
20507
|
var CombinedStream = require_combined_stream();
|
|
19584
20508
|
var util3 = require("util");
|
|
19585
20509
|
var path = require("path");
|
|
@@ -19588,11 +20512,12 @@ var require_form_data = __commonJS({
|
|
|
19588
20512
|
var parseUrl = require("url").parse;
|
|
19589
20513
|
var fs = require("fs");
|
|
19590
20514
|
var Stream = require("stream").Stream;
|
|
20515
|
+
var crypto2 = require("crypto");
|
|
19591
20516
|
var mime = require_mime_types();
|
|
19592
20517
|
var asynckit = require_asynckit();
|
|
20518
|
+
var setToStringTag = require_es_set_tostringtag();
|
|
20519
|
+
var hasOwn = require_hasown();
|
|
19593
20520
|
var populate = require_populate();
|
|
19594
|
-
module2.exports = FormData4;
|
|
19595
|
-
util3.inherits(FormData4, CombinedStream);
|
|
19596
20521
|
function FormData4(options) {
|
|
19597
20522
|
if (!(this instanceof FormData4)) {
|
|
19598
20523
|
return new FormData4(options);
|
|
@@ -19606,16 +20531,17 @@ var require_form_data = __commonJS({
|
|
|
19606
20531
|
this[option] = options[option];
|
|
19607
20532
|
}
|
|
19608
20533
|
}
|
|
20534
|
+
util3.inherits(FormData4, CombinedStream);
|
|
19609
20535
|
FormData4.LINE_BREAK = "\r\n";
|
|
19610
20536
|
FormData4.DEFAULT_CONTENT_TYPE = "application/octet-stream";
|
|
19611
20537
|
FormData4.prototype.append = function(field, value, options) {
|
|
19612
20538
|
options = options || {};
|
|
19613
|
-
if (typeof options
|
|
20539
|
+
if (typeof options === "string") {
|
|
19614
20540
|
options = { filename: options };
|
|
19615
20541
|
}
|
|
19616
20542
|
var append2 = CombinedStream.prototype.append.bind(this);
|
|
19617
|
-
if (typeof value
|
|
19618
|
-
value =
|
|
20543
|
+
if (typeof value === "number" || value == null) {
|
|
20544
|
+
value = String(value);
|
|
19619
20545
|
}
|
|
19620
20546
|
if (Array.isArray(value)) {
|
|
19621
20547
|
this._error(new Error("Arrays are not supported."));
|
|
@@ -19631,7 +20557,7 @@ var require_form_data = __commonJS({
|
|
|
19631
20557
|
FormData4.prototype._trackLength = function(header, value, options) {
|
|
19632
20558
|
var valueLength = 0;
|
|
19633
20559
|
if (options.knownLength != null) {
|
|
19634
|
-
valueLength +=
|
|
20560
|
+
valueLength += Number(options.knownLength);
|
|
19635
20561
|
} else if (Buffer.isBuffer(value)) {
|
|
19636
20562
|
valueLength = value.length;
|
|
19637
20563
|
} else if (typeof value === "string") {
|
|
@@ -19639,7 +20565,7 @@ var require_form_data = __commonJS({
|
|
|
19639
20565
|
}
|
|
19640
20566
|
this._valueLength += valueLength;
|
|
19641
20567
|
this._overheadLength += Buffer.byteLength(header) + FormData4.LINE_BREAK.length;
|
|
19642
|
-
if (!value || !value.path && !(value.readable && value
|
|
20568
|
+
if (!value || !value.path && !(value.readable && hasOwn(value, "httpVersion")) && !(value instanceof Stream)) {
|
|
19643
20569
|
return;
|
|
19644
20570
|
}
|
|
19645
20571
|
if (!options.knownLength) {
|
|
@@ -19647,26 +20573,25 @@ var require_form_data = __commonJS({
|
|
|
19647
20573
|
}
|
|
19648
20574
|
};
|
|
19649
20575
|
FormData4.prototype._lengthRetriever = function(value, callback) {
|
|
19650
|
-
if (value
|
|
20576
|
+
if (hasOwn(value, "fd")) {
|
|
19651
20577
|
if (value.end != void 0 && value.end != Infinity && value.start != void 0) {
|
|
19652
20578
|
callback(null, value.end + 1 - (value.start ? value.start : 0));
|
|
19653
20579
|
} else {
|
|
19654
20580
|
fs.stat(value.path, function(err, stat2) {
|
|
19655
|
-
var fileSize;
|
|
19656
20581
|
if (err) {
|
|
19657
20582
|
callback(err);
|
|
19658
20583
|
return;
|
|
19659
20584
|
}
|
|
19660
|
-
fileSize = stat2.size - (value.start ? value.start : 0);
|
|
20585
|
+
var fileSize = stat2.size - (value.start ? value.start : 0);
|
|
19661
20586
|
callback(null, fileSize);
|
|
19662
20587
|
});
|
|
19663
20588
|
}
|
|
19664
|
-
} else if (value
|
|
19665
|
-
callback(null,
|
|
19666
|
-
} else if (value
|
|
20589
|
+
} else if (hasOwn(value, "httpVersion")) {
|
|
20590
|
+
callback(null, Number(value.headers["content-length"]));
|
|
20591
|
+
} else if (hasOwn(value, "httpModule")) {
|
|
19667
20592
|
value.on("response", function(response) {
|
|
19668
20593
|
value.pause();
|
|
19669
|
-
callback(null,
|
|
20594
|
+
callback(null, Number(response.headers["content-length"]));
|
|
19670
20595
|
});
|
|
19671
20596
|
value.resume();
|
|
19672
20597
|
} else {
|
|
@@ -19674,7 +20599,7 @@ var require_form_data = __commonJS({
|
|
|
19674
20599
|
}
|
|
19675
20600
|
};
|
|
19676
20601
|
FormData4.prototype._multiPartHeader = function(field, value, options) {
|
|
19677
|
-
if (typeof options.header
|
|
20602
|
+
if (typeof options.header === "string") {
|
|
19678
20603
|
return options.header;
|
|
19679
20604
|
}
|
|
19680
20605
|
var contentDisposition = this._getContentDisposition(value, options);
|
|
@@ -19686,54 +20611,54 @@ var require_form_data = __commonJS({
|
|
|
19686
20611
|
// if no content type. allow it to be empty array
|
|
19687
20612
|
"Content-Type": [].concat(contentType || [])
|
|
19688
20613
|
};
|
|
19689
|
-
if (typeof options.header
|
|
20614
|
+
if (typeof options.header === "object") {
|
|
19690
20615
|
populate(headers, options.header);
|
|
19691
20616
|
}
|
|
19692
20617
|
var header;
|
|
19693
20618
|
for (var prop in headers) {
|
|
19694
|
-
if (
|
|
19695
|
-
|
|
19696
|
-
|
|
19697
|
-
|
|
19698
|
-
|
|
19699
|
-
|
|
19700
|
-
|
|
19701
|
-
|
|
19702
|
-
|
|
19703
|
-
|
|
20619
|
+
if (hasOwn(headers, prop)) {
|
|
20620
|
+
header = headers[prop];
|
|
20621
|
+
if (header == null) {
|
|
20622
|
+
continue;
|
|
20623
|
+
}
|
|
20624
|
+
if (!Array.isArray(header)) {
|
|
20625
|
+
header = [header];
|
|
20626
|
+
}
|
|
20627
|
+
if (header.length) {
|
|
20628
|
+
contents += prop + ": " + header.join("; ") + FormData4.LINE_BREAK;
|
|
20629
|
+
}
|
|
19704
20630
|
}
|
|
19705
20631
|
}
|
|
19706
20632
|
return "--" + this.getBoundary() + FormData4.LINE_BREAK + contents + FormData4.LINE_BREAK;
|
|
19707
20633
|
};
|
|
19708
20634
|
FormData4.prototype._getContentDisposition = function(value, options) {
|
|
19709
|
-
var filename
|
|
20635
|
+
var filename;
|
|
19710
20636
|
if (typeof options.filepath === "string") {
|
|
19711
20637
|
filename = path.normalize(options.filepath).replace(/\\/g, "/");
|
|
19712
|
-
} else if (options.filename || value.name || value.path) {
|
|
19713
|
-
filename = path.basename(options.filename || value.name || value.path);
|
|
19714
|
-
} else if (value.readable && value
|
|
20638
|
+
} else if (options.filename || value && (value.name || value.path)) {
|
|
20639
|
+
filename = path.basename(options.filename || value && (value.name || value.path));
|
|
20640
|
+
} else if (value && value.readable && hasOwn(value, "httpVersion")) {
|
|
19715
20641
|
filename = path.basename(value.client._httpMessage.path || "");
|
|
19716
20642
|
}
|
|
19717
20643
|
if (filename) {
|
|
19718
|
-
|
|
20644
|
+
return 'filename="' + filename + '"';
|
|
19719
20645
|
}
|
|
19720
|
-
return contentDisposition;
|
|
19721
20646
|
};
|
|
19722
20647
|
FormData4.prototype._getContentType = function(value, options) {
|
|
19723
20648
|
var contentType = options.contentType;
|
|
19724
|
-
if (!contentType && value.name) {
|
|
20649
|
+
if (!contentType && value && value.name) {
|
|
19725
20650
|
contentType = mime.lookup(value.name);
|
|
19726
20651
|
}
|
|
19727
|
-
if (!contentType && value.path) {
|
|
20652
|
+
if (!contentType && value && value.path) {
|
|
19728
20653
|
contentType = mime.lookup(value.path);
|
|
19729
20654
|
}
|
|
19730
|
-
if (!contentType && value.readable && value
|
|
20655
|
+
if (!contentType && value && value.readable && hasOwn(value, "httpVersion")) {
|
|
19731
20656
|
contentType = value.headers["content-type"];
|
|
19732
20657
|
}
|
|
19733
20658
|
if (!contentType && (options.filepath || options.filename)) {
|
|
19734
20659
|
contentType = mime.lookup(options.filepath || options.filename);
|
|
19735
20660
|
}
|
|
19736
|
-
if (!contentType && typeof value
|
|
20661
|
+
if (!contentType && value && typeof value === "object") {
|
|
19737
20662
|
contentType = FormData4.DEFAULT_CONTENT_TYPE;
|
|
19738
20663
|
}
|
|
19739
20664
|
return contentType;
|
|
@@ -19757,13 +20682,16 @@ var require_form_data = __commonJS({
|
|
|
19757
20682
|
"content-type": "multipart/form-data; boundary=" + this.getBoundary()
|
|
19758
20683
|
};
|
|
19759
20684
|
for (header in userHeaders) {
|
|
19760
|
-
if (userHeaders
|
|
20685
|
+
if (hasOwn(userHeaders, header)) {
|
|
19761
20686
|
formHeaders[header.toLowerCase()] = userHeaders[header];
|
|
19762
20687
|
}
|
|
19763
20688
|
}
|
|
19764
20689
|
return formHeaders;
|
|
19765
20690
|
};
|
|
19766
20691
|
FormData4.prototype.setBoundary = function(boundary) {
|
|
20692
|
+
if (typeof boundary !== "string") {
|
|
20693
|
+
throw new TypeError("FormData boundary must be a string");
|
|
20694
|
+
}
|
|
19767
20695
|
this._boundary = boundary;
|
|
19768
20696
|
};
|
|
19769
20697
|
FormData4.prototype.getBoundary = function() {
|
|
@@ -19790,11 +20718,7 @@ var require_form_data = __commonJS({
|
|
|
19790
20718
|
return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]);
|
|
19791
20719
|
};
|
|
19792
20720
|
FormData4.prototype._generateBoundary = function() {
|
|
19793
|
-
|
|
19794
|
-
for (var i = 0; i < 24; i++) {
|
|
19795
|
-
boundary += Math.floor(Math.random() * 10).toString(16);
|
|
19796
|
-
}
|
|
19797
|
-
this._boundary = boundary;
|
|
20721
|
+
this._boundary = "--------------------------" + crypto2.randomBytes(12).toString("hex");
|
|
19798
20722
|
};
|
|
19799
20723
|
FormData4.prototype.getLengthSync = function() {
|
|
19800
20724
|
var knownLength = this._overheadLength + this._valueLength;
|
|
@@ -19834,8 +20758,10 @@ var require_form_data = __commonJS({
|
|
|
19834
20758
|
});
|
|
19835
20759
|
};
|
|
19836
20760
|
FormData4.prototype.submit = function(params, cb) {
|
|
19837
|
-
var request
|
|
19838
|
-
|
|
20761
|
+
var request;
|
|
20762
|
+
var options;
|
|
20763
|
+
var defaults2 = { method: "post" };
|
|
20764
|
+
if (typeof params === "string") {
|
|
19839
20765
|
params = parseUrl(params);
|
|
19840
20766
|
options = populate({
|
|
19841
20767
|
port: params.port,
|
|
@@ -19846,11 +20772,11 @@ var require_form_data = __commonJS({
|
|
|
19846
20772
|
} else {
|
|
19847
20773
|
options = populate(params, defaults2);
|
|
19848
20774
|
if (!options.port) {
|
|
19849
|
-
options.port = options.protocol
|
|
20775
|
+
options.port = options.protocol === "https:" ? 443 : 80;
|
|
19850
20776
|
}
|
|
19851
20777
|
}
|
|
19852
20778
|
options.headers = this.getHeaders(params.headers);
|
|
19853
|
-
if (options.protocol
|
|
20779
|
+
if (options.protocol === "https:") {
|
|
19854
20780
|
request = https2.request(options);
|
|
19855
20781
|
} else {
|
|
19856
20782
|
request = http2.request(options);
|
|
@@ -19888,6 +20814,8 @@ var require_form_data = __commonJS({
|
|
|
19888
20814
|
FormData4.prototype.toString = function() {
|
|
19889
20815
|
return "[object FormData]";
|
|
19890
20816
|
};
|
|
20817
|
+
setToStringTag(FormData4, "FormData");
|
|
20818
|
+
module2.exports = FormData4;
|
|
19891
20819
|
}
|
|
19892
20820
|
});
|
|
19893
20821
|
|
|
@@ -22673,6 +23601,7 @@ function bind(fn, thisArg) {
|
|
|
22673
23601
|
// ../../../node_modules/axios/lib/utils.js
|
|
22674
23602
|
var { toString } = Object.prototype;
|
|
22675
23603
|
var { getPrototypeOf } = Object;
|
|
23604
|
+
var { iterator, toStringTag } = Symbol;
|
|
22676
23605
|
var kindOf = /* @__PURE__ */ ((cache) => (thing) => {
|
|
22677
23606
|
const str = toString.call(thing);
|
|
22678
23607
|
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
@@ -22707,7 +23636,7 @@ var isPlainObject = (val) => {
|
|
|
22707
23636
|
return false;
|
|
22708
23637
|
}
|
|
22709
23638
|
const prototype3 = getPrototypeOf(val);
|
|
22710
|
-
return (prototype3 === null || prototype3 === Object.prototype || Object.getPrototypeOf(prototype3) === null) && !(
|
|
23639
|
+
return (prototype3 === null || prototype3 === Object.prototype || Object.getPrototypeOf(prototype3) === null) && !(toStringTag in val) && !(iterator in val);
|
|
22711
23640
|
};
|
|
22712
23641
|
var isDate = kindOfTest("Date");
|
|
22713
23642
|
var isFile = kindOfTest("File");
|
|
@@ -22854,10 +23783,10 @@ var isTypedArray = /* @__PURE__ */ ((TypedArray) => {
|
|
|
22854
23783
|
};
|
|
22855
23784
|
})(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
|
|
22856
23785
|
var forEachEntry = (obj, fn) => {
|
|
22857
|
-
const generator = obj && obj[
|
|
22858
|
-
const
|
|
23786
|
+
const generator = obj && obj[iterator];
|
|
23787
|
+
const _iterator = generator.call(obj);
|
|
22859
23788
|
let result;
|
|
22860
|
-
while ((result =
|
|
23789
|
+
while ((result = _iterator.next()) && !result.done) {
|
|
22861
23790
|
const pair = result.value;
|
|
22862
23791
|
fn.call(obj, pair[0], pair[1]);
|
|
22863
23792
|
}
|
|
@@ -22927,7 +23856,7 @@ var toFiniteNumber = (value, defaultValue) => {
|
|
|
22927
23856
|
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
22928
23857
|
};
|
|
22929
23858
|
function isSpecCompliantForm(thing) {
|
|
22930
|
-
return !!(thing && isFunction(thing.append) && thing[
|
|
23859
|
+
return !!(thing && isFunction(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
|
|
22931
23860
|
}
|
|
22932
23861
|
var toJSONObject = (obj) => {
|
|
22933
23862
|
const stack = new Array(10);
|
|
@@ -22973,6 +23902,7 @@ var _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
|
22973
23902
|
isFunction(_global.postMessage)
|
|
22974
23903
|
);
|
|
22975
23904
|
var asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
|
23905
|
+
var isIterable = (thing) => thing != null && isFunction(thing[iterator]);
|
|
22976
23906
|
var utils_default = {
|
|
22977
23907
|
isArray,
|
|
22978
23908
|
isArrayBuffer,
|
|
@@ -23029,7 +23959,8 @@ var utils_default = {
|
|
|
23029
23959
|
isAsyncFn,
|
|
23030
23960
|
isThenable,
|
|
23031
23961
|
setImmediate: _setImmediate,
|
|
23032
|
-
asap
|
|
23962
|
+
asap,
|
|
23963
|
+
isIterable
|
|
23033
23964
|
};
|
|
23034
23965
|
|
|
23035
23966
|
// ../../../node_modules/axios/lib/core/AxiosError.js
|
|
@@ -23157,6 +24088,9 @@ function toFormData(obj, formData, options) {
|
|
|
23157
24088
|
if (utils_default.isDate(value)) {
|
|
23158
24089
|
return value.toISOString();
|
|
23159
24090
|
}
|
|
24091
|
+
if (utils_default.isBoolean(value)) {
|
|
24092
|
+
return value.toString();
|
|
24093
|
+
}
|
|
23160
24094
|
if (!useBlob && utils_default.isBlob(value)) {
|
|
23161
24095
|
throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");
|
|
23162
24096
|
}
|
|
@@ -23712,10 +24646,15 @@ var AxiosHeaders = class {
|
|
|
23712
24646
|
setHeaders(header, valueOrRewrite);
|
|
23713
24647
|
} else if (utils_default.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
23714
24648
|
setHeaders(parseHeaders_default(header), valueOrRewrite);
|
|
23715
|
-
} else if (utils_default.
|
|
23716
|
-
|
|
23717
|
-
|
|
24649
|
+
} else if (utils_default.isObject(header) && utils_default.isIterable(header)) {
|
|
24650
|
+
let obj = {}, dest, key;
|
|
24651
|
+
for (const entry of header) {
|
|
24652
|
+
if (!utils_default.isArray(entry)) {
|
|
24653
|
+
throw TypeError("Object iterator must return a key-value pair");
|
|
24654
|
+
}
|
|
24655
|
+
obj[key = entry[0]] = (dest = obj[key]) ? utils_default.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
23718
24656
|
}
|
|
24657
|
+
setHeaders(obj, valueOrRewrite);
|
|
23719
24658
|
} else {
|
|
23720
24659
|
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
23721
24660
|
}
|
|
@@ -23819,6 +24758,9 @@ var AxiosHeaders = class {
|
|
|
23819
24758
|
toString() {
|
|
23820
24759
|
return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
|
|
23821
24760
|
}
|
|
24761
|
+
getSetCookie() {
|
|
24762
|
+
return this.get("set-cookie") || [];
|
|
24763
|
+
}
|
|
23822
24764
|
get [Symbol.toStringTag]() {
|
|
23823
24765
|
return "AxiosHeaders";
|
|
23824
24766
|
}
|
|
@@ -23917,7 +24859,7 @@ function combineURLs(baseURL, relativeURL) {
|
|
|
23917
24859
|
// ../../../node_modules/axios/lib/core/buildFullPath.js
|
|
23918
24860
|
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
23919
24861
|
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
23920
|
-
if (baseURL && isRelativeUrl || allowAbsoluteUrls == false) {
|
|
24862
|
+
if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
|
|
23921
24863
|
return combineURLs(baseURL, requestedURL);
|
|
23922
24864
|
}
|
|
23923
24865
|
return requestedURL;
|
|
@@ -23932,7 +24874,7 @@ var import_follow_redirects = __toESM(require_follow_redirects(), 1);
|
|
|
23932
24874
|
var import_zlib = __toESM(require("zlib"), 1);
|
|
23933
24875
|
|
|
23934
24876
|
// ../../../node_modules/axios/lib/env/data.js
|
|
23935
|
-
var VERSION = "1.
|
|
24877
|
+
var VERSION = "1.10.0";
|
|
23936
24878
|
|
|
23937
24879
|
// ../../../node_modules/axios/lib/helpers/parseProtocol.js
|
|
23938
24880
|
function parseProtocol(url2) {
|
|
@@ -24162,7 +25104,7 @@ var formDataToStream = (form, headersHandler, options) => {
|
|
|
24162
25104
|
throw Error("boundary must be 10-70 characters long");
|
|
24163
25105
|
}
|
|
24164
25106
|
const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
|
|
24165
|
-
const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF
|
|
25107
|
+
const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
|
|
24166
25108
|
let contentLength = footerBytes.byteLength;
|
|
24167
25109
|
const parts = Array.from(form.entries()).map(([name, value]) => {
|
|
24168
25110
|
const part = new FormDataPart(name, value);
|
|
@@ -24959,7 +25901,7 @@ var resolveConfig_default = (config) => {
|
|
|
24959
25901
|
const newConfig = mergeConfig({}, config);
|
|
24960
25902
|
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
24961
25903
|
newConfig.headers = headers = AxiosHeaders_default.from(headers);
|
|
24962
|
-
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
|
|
25904
|
+
newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
|
|
24963
25905
|
if (auth) {
|
|
24964
25906
|
headers.set(
|
|
24965
25907
|
"Authorization",
|
|
@@ -25189,7 +26131,7 @@ var readStream = async function* (stream4) {
|
|
|
25189
26131
|
}
|
|
25190
26132
|
};
|
|
25191
26133
|
var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
|
|
25192
|
-
const
|
|
26134
|
+
const iterator2 = readBytes(stream4, chunkSize);
|
|
25193
26135
|
let bytes = 0;
|
|
25194
26136
|
let done;
|
|
25195
26137
|
let _onFinish = (e) => {
|
|
@@ -25201,7 +26143,7 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
|
|
|
25201
26143
|
return new ReadableStream({
|
|
25202
26144
|
async pull(controller) {
|
|
25203
26145
|
try {
|
|
25204
|
-
const { done: done2, value } = await
|
|
26146
|
+
const { done: done2, value } = await iterator2.next();
|
|
25205
26147
|
if (done2) {
|
|
25206
26148
|
_onFinish();
|
|
25207
26149
|
controller.close();
|
|
@@ -25220,7 +26162,7 @@ var trackStream = (stream4, chunkSize, onProgress, onFinish) => {
|
|
|
25220
26162
|
},
|
|
25221
26163
|
cancel(reason) {
|
|
25222
26164
|
_onFinish(reason);
|
|
25223
|
-
return
|
|
26165
|
+
return iterator2.return();
|
|
25224
26166
|
}
|
|
25225
26167
|
}, {
|
|
25226
26168
|
highWaterMark: 2
|
|
@@ -25344,7 +26286,7 @@ var fetch_default = isFetchSupported && (async (config) => {
|
|
|
25344
26286
|
duplex: "half",
|
|
25345
26287
|
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
25346
26288
|
});
|
|
25347
|
-
let response = await fetch(request);
|
|
26289
|
+
let response = await fetch(request, fetchOptions);
|
|
25348
26290
|
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
25349
26291
|
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
25350
26292
|
const options = {};
|
|
@@ -25379,7 +26321,7 @@ var fetch_default = isFetchSupported && (async (config) => {
|
|
|
25379
26321
|
});
|
|
25380
26322
|
} catch (err) {
|
|
25381
26323
|
unsubscribe && unsubscribe();
|
|
25382
|
-
if (err && err.name === "TypeError" && /fetch/i.test(err.message)) {
|
|
26324
|
+
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
25383
26325
|
throw Object.assign(
|
|
25384
26326
|
new AxiosError_default("Network Error", AxiosError_default.ERR_NETWORK, config, request),
|
|
25385
26327
|
{
|
|
@@ -25558,7 +26500,7 @@ var validator_default = {
|
|
|
25558
26500
|
var validators2 = validator_default.validators;
|
|
25559
26501
|
var Axios = class {
|
|
25560
26502
|
constructor(instanceConfig) {
|
|
25561
|
-
this.defaults = instanceConfig;
|
|
26503
|
+
this.defaults = instanceConfig || {};
|
|
25562
26504
|
this.interceptors = {
|
|
25563
26505
|
request: new InterceptorManager_default(),
|
|
25564
26506
|
response: new InterceptorManager_default()
|